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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

 Copyright 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var DRo,CtF,cWF,ojm,Wrd,poR,Ch,URo,Oh5,om,SZ,AWd,Ptr,Kh,hW,$RW,vjm,ihm,sm,Qm3,B5r,eZ,KrJ,mR5,tZ3,Ymm,wo5,Fr3,GJR,Hhm,JWR,jmd,Xe,Ud,aq,fnF,Od,PM,dRF,$g,hc,lnh,Dfr,n5,wx,XMW,Sd5,Ufo,V5,Ikj,O5h,Jc,Aco,PbZ,$fW,zN,ggn,jC,i5d,Qq3,h4F,Pp,xfr,LJ3,AP,b5h,Iw,rcj,KJt,ycj,wMr,FJm,Bp,VCj,GNd,Txh,H5t,JcJ,jqo,MCJ,dfj,R4R,C6Z,cPJ,WGW,aGn,O1W,IGm,yU,APj,utj,w3,QwR,b1J,xYJ,KGh,LGn,hoJ,Gk,z4m,VU,Tk,JP,swR,zk,EtF,mYm,eon,Rw,tNF,N3m,yPF,wpn,ntj,FGt,Z1F,GkR,f1,T3d,JP3,jwF,qXr,pf,dY3,DJm,UB,c2Z,pvR,lGm,SBj,gN5,a6m,ifm,
A25,umh,BjZ,bft,Kzm,hv5,mJJ,evh,Njh,y2J,Fz5,Gdo,VD3,Hft,jHW,l6m,eD,CGJ,c_o,oFo,nf,Fm,Gd,ff,RH,lU,OKh,Ss,PGt,iKZ,u7h,QGo,BHd,Pt,bKo,vt,iG,kF,uG,K$F,hK5,xAW,L$j,sGW,eK3,EFJ,ts3,NHm,y_5,rH,bG,nFr,wtJ,F$t,GLh,ZKo,Vsm,THn,HKW,YF,yB,nK,wH,ZN,zKJ,GL,Msm,lNt,Ht,D3n,CoW,Xdj,zL,cph,oXd,Wen,js,U3h,fK,IIJ,Oyo,dH,Pod,ApF,$3t,vXF,iyR,kv3,DI,uEm,QVd,Cy,BVZ,byo,XE,cd,oV,Wd,rph,hem,Kem,py,LeZ,sVo,m3m,UF,aV,IV,OF,Ap,Pd,eem,EXd,NVn,YFZ,nXm,wdn,Fet,Zyr,GvZ,Vor,io,TVd,HyZ,zet,jVn,Mo3,qFR,fIh,d3F,Red,QI,lIJ,rV,Ky,Ddr,
cRJ,oTF,Wv5,Sen,Udm,gTm,AR3,Pc5,$dj,vTo,iFZ,kyZ,uJ5,rRW,Ly,Kvt,hi5,xdd,Lv3,sho,mdm,ETF,HFo,JRn,zim,qeR,f1r,yI,ddr,Dmm,cwo,oUF,W5n,peZ,Sz3,Umt,gU5,aHZ,Oit,AwZ,Chn,PhF,$mn,vUn,iit,k35,ug3,QAZ,B8R,biZ,xmj,K5Z,mmZ,L5r,sAn,tn5,N8o,YzR,ePR,nUm,EUr,F5W,D1,Zit,CF,cI,G3m,T8d,Him,jAr,cUJ,qzd,Mnd,dmd,lHd,fHJ,gQm,p2F,ahj,Ihr,O7n,AUj,Pqd,vQm,$6d,i7m,k4j,urF,QeR,b7R,KxZ,hjh,x6m,sen,LxR,G4r,Sp,Vjh,H7F,JU3,zjn,jet,Mjo,fho,d65,RjZ,$T,vI,lh5,WCn,uc,QL,gz3,IfZ,BTh,LF,KCn,hGm,mGo,LCm,sQ3,tR,eGt,EzW,NTh,YY5,ygm,nzJ,wKF,
FCR,ZCm,Vq3,TT5,Jgm,HCj,Mq3,HI,jp,ffZ,dGh,RGZ,lfj,DXj,Cln,cCr,WI3,ohJ,Uz,aA,$Xn,Pe,BDF,bqZ,$U,KIn,rCr,NDr,YHR,yCd,wz5,VRF,Hqd,JCd,zxr,jpW,MRh,kU,dX3,bh,lio,DNn,CwZ,cYR,RxF,qHn,XLr,Qv,WMo,gld,SUm,OQm,AYt,Pwt,vl5,iQj,u3t,BO5,bQR,rY5,KMm,en,ham,LMm,xNh,si5,eaZ,Nm,NOj,ni,Fg,w8,wLZ,teo,TOm,qUt,Rar,dNd,CVo,T3,cIF,obt,S6Z,UIo,jn,LRj,qm,fi,eLd,N0r,yI5,nbt,wfj,d8,FRR,lh,Z2m,VfW,T0Z,H25,JIJ,jXm,c2,MfR,q6t,W2,UO,RLh,l0d,DOR,c0J,oah,pH5,Srr,PQ5,$Oo,I4r,ilW,kTJ,u2o,uq,B2,bq,r0j,KF5,K7,h2r,xOW,LFR,sSm,e2t,Eah,
tkn,Nrd,mOh,Yr5,sO,naF,Vkm,mx,GTr,Trm,y0d,Hlm,EO,z23,jSo,Mk3,qrm,dOF,f4j,R2m,CE3,l4F,c8r,grm,Ium,A8Z,vrr,$Fj,PEh,iNt,kCt,QB5,bNZ,Bln,KPm,V2,xFt,LPo,sBt,mF5,tcW,Yn3,Nld,y8m,nrm,w75,FPo,GCj,TlW,zIR,Mcm,jBW,PK,qnW,Vcn,XEJ,oCj,WUo,pEm,Q3,SpF,gCW,OtR,$CW,P5t,u_h,Q7j,Ber,btr,KUm,mCR,hkj,LU5,s75,ekh,ECt,Nej,tyj,yZd,Ypm,NG,nCm,FUF,Zto,HtZ,V3,TV,JZ5,zkZ,HK,qpm,qG,fC,dT,lSW,RQ,X_r,Cq,cXm,oPF,Wnm,p_5,op,S13,UhF,gPt,I7j,AXt,vPF,k1W,Pz,u$5,QIr,BJh,be5,rXm,Knh,hnZ,xhJ,il,mhm,enW,EPm,tV3,NJW,Y1Z,yX3,nPZ,w_3,Fno,
Zem,G1r,VVd,xh,Dzn,Cjj,Lq,sH,mI,Xlm,c93,oot,WW5,plR,S2J,Uzt,A9r,PjZ,$zj,voF,iHW,NX,yJ,nq,wD,Gb,VJ,Tb,uUR,JC,BLo,zb,bHW,r9r,jR,KWZ,hcJ,xz5,y9h,wl3,TLm,jEh,zc3,no5,M_m,dzW,IJZ,cAZ,vn3,WZ3,PHF,iGF,ll,uzt,CQ,Bi5,bGm,KZm,hOh,xwj,soJ,oi,eO5,Enj,tYW,Nir,Ys3,yAn,nnn,mw5,ZGo,GAr,VYt,pQ,MY3,qsZ,joW,dwh,ROn,D_m,COF,lJj,U_t,aRr,Obn,POh,vL,B2F,uV5,Q3n,x_m,s3h,m_W,eWm,E7m,t6m,N2r,hY,T25,Jvo,G2n,Zbd,Hbr,yvr,j35,o_d,fRj,d_3,RW5,Pum,v_n,Alo,bIZ,OIF,Y4m,B$t,q45,clF,$nJ,zWn,wcm,n7r,Fpd,V65,I5j,HL,n_F,Flt,ZIo,Grn,V5d,
dnr,XXd,cG3,C2,WYd,UH3,OTJ,Iwt,PKj,$Hh,iTt,uv3,kUW,Qat,BU5,bTm,rGj,hdn,KYt,Pf,Euh,edr,mHn,yGm,trm,nun,YNo,wX3,FYm,TUZ,GUn,Vrr,JGt,MrR,qNo,RdJ,lwo,Doj,Cyo,cmJ,WdW,Qo,SWd,aTj,UoR,ITh,$oh,vfh,u15,BEJ,hI,xb,h_t,xor,L2,s6,Ldt,mR,ef,s9m,E6,mom,tI,e_m,Efm,Yb,tbo,NE5,YWm,ymR,nft,Fdo,wCW,GtR,Hmr,TEj,Jmt,z_h,Zmd,j9m,fTh,qWZ,Vbd,doJ,R_3,Z0,lTF,CTm,D8j,XRr,cTj,Wwn,owF,pRh,Vo,U8o,gwZ,S3n,ItR,Onh,ATo,inm,Q2W,hDn,m8h,T5,tXZ,NBd,Hf,Y3m,MI,qI,G_5,z5,RX,VXj,TBt,JTt,zDo,MXr,fto,d8W,RDF,ltJ,XTj,SGn,WXd,CSF,UyJ,g5d,X2,
pTd,aat,Sk,Iaj,ORZ,Aur,PSj,kj3,$yr,iRo,bRm,ruR,skm,LX5,E5Z,wTt,FXj,Gjn,T1o,HR5,zYW,jkd,MzW,faW,dyR,RYm,Cp3,WER,pqh,Xqj,Usr,aV3,gJn,SfF,IVm,A6F,Ppn,$sm,vJm,iLt,uQ,Qk,rr,h0,QKt,Bdh,r6m,xsd,sr,mF,LE5,ek,eJd,EJ3,t$J,t0,wqt,V$F,HLm,J65,zJJ,M$o,qfr,fV3,lVm,Ya,D$5,c3d,yk,o1F,U$Z,nl,IZJ,wr,GT,Vk,OWh,Pat,A3F,v1r,iWr,kgJ,unZ,$$j,K2Z,hTr,L23,m$r,Nkr,tLt,YCm,n1o,wFo,F2o,ZWr,Gg3,VL3,Tkm,zTF,HWh,jk,MLJ,MO,qC5,fl,dr,fZJ,d$r,RTd,lZW,Dqm,RS,CFo,XPW,cs5,oxd,pPF,S9J,UqW,gxh,aso,OVt,Is5,lQ,PFd,vxt,iVj,kP5,u9Z,bVR,KNh,
c7,xqW,sJd,mqj,eVZ,ExW,tPZ,Nt3,Y9r,yst,rsm,hVm,nxR,wPn,VPZ,TtW,HVt,JsF,p63,gEm,aFJ,IFm,U4t,iXr,QNm,kZF,BFh,K05,x4F,sNo,tGh,EEo,nEm,A8,w6h,F03,P7,ZXd,$r,GZt,VGd,TF5,J7R,HXj,z8j,jNF,MGr,qLm,XGZ,oyd,pGn,W85,lFF,d4d,Uim,aEm,$it,vy3,ukd,hUR,L8j,Qy,sRZ,eUZ,Eyj,NWd,wGn,GIm,HrF,JxJ,zUd,jRo,RUW,MUR,X8j,cnj,oY3,p8m,KN,Svo,gYo,aKZ,IKj,O0W,AnF,PRJ,$Dn,i0J,kEW,mP,ulm,QCR,BPr,rnm,En,b0t,hXm,mDd,Yr,eXo,EYn,tB5,yn5,nYm,NPj,F_Z,TPZ,H0W,Jnr,GC,zXd,fKR,dDJ,J8,DUW,RX5,lK5,cfm,oOt,Wam,gOm,Oom,Ibh,abr,Afr,$U3,vOj,BYR,
io3,bod,Kaj,rft,ezm,NYj,yfh,wxo,jZF,xC,qM3,lbr,Csm,Kt,nt,Sq3,ICd,aCF,AFo,Ps3,vLr,$gm,iUh,kmF,we,HHJ,Ugj,OUd,gLo,YC,BXh,bUZ,rFh,qC,LQj,ft,sdW,mgd,ern,ELd,tm3,R7,NXd,YqF,yFo,nLW,wj3,X$,FQJ,Vmh,HUW,JFo,RrW,Dko,CPm,XVn,o3J,WHr,II,SSd,Uk5,g3Z,apt,Ipm,O_5,PPn,v3W,k0F,ujt,hbF,rh3,xkh,mkd,eb5,kP,E3h,tJr,NRn,n3j,FHm,wVo,G0F,TRh,b8,Jh5,zb5,H_Z,jcW,MJR,fpW,Rbt,dkh,lpj,qSm,DLJ,CYW,Xmh,cyo,oZd,WV5,pmd,S7F,ULj,Iem,aed,O4m,PYZ,Ayo,rJ,$Lm,klJ,b4h,vZ3,hfm,xLh,LVd,ssm,EZF,FVZ,Z4t,VO5,TpJ,wJ,jso,dLW,DM5,F$,oit,C9t,
XkJ,c$h,WO3,aYt,T1,IYW,OzW,P9Z,$MJ,vi5,izr,u5h,Q1m,mMW,hSn,LOZ,Eio,eSF,tun,Nyn,y$F,wkh,ZzR,VuJ,Tym,J$Z,CC3,ocZ,p9t,SAn,UxF,gch,aQr,Ou5,Abr,vcr,iuJ,kcd,jLF,Mvr,qAh,fQd,dxR,DlZ,odo,CH,XU,cl,Wmr,pOR,pH,Ulm,i6d,rSd,BuF,Z6F,GpJ,V0Z,adn,vdJ,ASt,H6h,JS5,zm5,j4o,u0h,M0n,fdJ,RmF,CeZ,XwZ,vl,IXn,Aeh,$V3,v9j,uZJ,BzW,QuF,Kbm,xVW,Nz5,E9J,sum,txF,mVr,YgF,FbJ,E2,t9,Mxr,Jen,fXj,dVr,lX5,D05,Yo,CBr,oAh,W1W,pYo,Skh,$0J,PBr,Hl,BQm,fH,rDo,K1Z,hpr,x0m,L1J,svj,m03,epo,EAm,tdF,NQW,RE,Ykr,yDh,nAt,wYo,F1m,Z3W,GRm,Vdh,DJ,TQ3,
H3m,JDZ,zpW,jv3,MdF,qk5,f$5,d0J,RpZ,l$Z,DWJ,C4m,cr,c1m,W3o,SKm,aDZ,A1n,P43,$Wn,ijm,uaZ,Qrd,BIF,AA,xWR,K3Z,L3t,srj,mWF,tw3,NIF,YKF,nMm,hA,F3J,ri,GGt,Vw3,xn,TId,HjW,J1o,zHW,ss,fDm,RHW,coo,Xhr,WSm,phh,nG,S$d,UcW,a8j,Odn,Aoh,$ct,v6r,I8F,idh,bdF,xcJ,LSn,wi,sfj,mc5,Y$m,eFZ,tln,N4d,GaZ,n6d,VlZ,Hdt,zFW,jfm,Mld,q$j,f8m,dch,l8h,DBR,C$m,X3r,cNJ,WAJ,SxR,aOn,P$m,iEm,uR5,bEn,JA,rNt,KAR,hwm,xBd,LAo,mBJ,ewh,EBm,t3m,NMZ,Yx5,yNZ,nBm,w3R,FAm,ZEn,V3F,GfZ,JNt,j6t,Mw,M3t,dBd,fOj,D2o,CMt,Xbd,Wt5,U2R,SVn,oeh,IqF,aqj,veR,
OZF,lH,PMF,rzm,uW5,Qzn,Bg5,bZm,Ktt,x2m,hMR,DR,Cb,Ngm,szr,t9d,EeW,m2R,eM5,ner,Ftd,GsZ,ZZ5,V9W,zMj,Jzm,M9J,d2d,lqh,fqm,Dro,XZt,CmR,o$Z,St3,pb,Urm,g$r,OsW,iso,rd5,U4,hBr,LiZ,E$3,eBh,sF3,mrF,Av,ydJ,t1Z,NnW,n$3,FiF,wZm,V1Z,TnR,JdJ,zBh,jF3,M1J,qtJ,dr3,RBJ,Lb,D7R,C35,WKm,pQF,tv,Sbn,gk3,k$J,w2,A4t,iDr,P3n,$7R,bDm,BCn,x7h,r4j,LKZ,snm,ZR,e$t,Ekh,tQW,m7m,T2,NCh,G2,wQ5,J45,z$r,jn5,MQm,qbm,f3m,d7t,Cgh,l3j,D9m,R$m,cE5,S5j,U9r,I2o,OYF,Pgt,iYo,$9F,v4t,kM3,QMZ,B_m,bY5,rEr,KuF,hyW,Lun,m9t,eyF,N_d,tSj,yEj,Y5o,n4h,wWF,
ZYm,GMh,f2F,MS3,l2F,D5Z,pSr,SDr,U5o,g8Z,axF,Ixj,PZd,$55,v8o,kq3,uqh,Qx3,Bsh,bcr,rjF,hEr,x55,LBZ,OI,E8J,eER,m5F,sx5,NsJ,n8j,YDo,FBZ,Zc5,VIF,Tsh,Hch,Jjj,zEJ,d5m,jxr,MIt,qDr,REW,lxF,DbF,fxd,v0,crd,Wqt,o0W,k_,puF,Ubr,g0d,am5,SP3,ImR,OPj,ArJ,PDR,$bo,iPr,ket,u4J,QW3,rro,bPr,sWJ,BZd,Q6,mb3,Kq5,Lqm,E0d,tam,NZW,YP3,yrd,wut,Fq3,ZPF,Vat,TZF,Jrm,jWr,RgZ,fmt,dbr,qPR,Mam,lmZ,e5,DTj,EI,CiJ,X$j,SjZ,gIj,art,IrJ,OAF,At3,Pin,w$,FA,uOj,vIJ,$TJ,iAm,eCZ,sDW,kBd,Lft,nIZ,w$J,Ffm,ZAd,GBJ,HAh,zCm,MWm,frm,dTt,RCZ,X4o,CrJ,cJo,
WTd,WX,Ujm,gVd,aMZ,IMj,O$R,AJW,PrW,Sr,gU,i$r,kFm,QyZ,rJJ,mjh,YRm,NNm,yJr,w45,FTh,Z$W,GFm,VFr,TNm,$u,H$d,dj5,Rtd,MFt,jyJ,fMn,qR5,cQd,oWj,Wc5,pUF,Sor,UZm,IjW,aj3,gWh,QTd,k9W,BKm,bBt,rQZ,xZF,sTJ,Kcd,hRF,nWj,FcJ,G9m,TKm,JQn,jTr,dZn,RR5,ljd,XBm,CNt,DvW,c5o,o2F,Wsr,pBt,S0m,Uvj,g2F,aU3,IUm,Ow5,PNZ,$vn,v2m,iwr,kXo,uQd,Bwm,bwm,r5t,KsJ,hhJ,xvZ,ehR,E2Z,NwF,y5h,Y0Z,n2m,LT,wBt,Fsd,ZwJ,GXZ,J5J,HwJ,zhW,jlh,M2r,q0J,Rh3,lU5,Da5,Czo,XDR,cBR,oqn,Wkh,pDF,Sl3,Uad,alt,gqo,IlF,OMF,ABJ,Pzr,$a5,vqh,iMt,kWn,nT,QPr,B7J,bM5,
rB5,KkW,xaW,Lkm,sPj,maZ,e6R,Eqd,N7r,Ylm,nq3,GU,ZMF,JBh,T7J,V7r,GWJ,HMh,M7h,qld,flF,dah,ll5,Dud,C2n,cLR,Xar,om3,W6h,pa3,gmj,aPW,IPj,OOh,ALm,P2h,iOn,kKt,fT,rLm,K6d,xuR,mum,sjr,e0m,Emt,dU,lK,N9m,YTZ,X1,cC,F6d,yLn,nmd,VtR,T9m,HO5,JLm,qTr,dut,R0R,lPm,DKF,Cfn,cqt,oGm,W9o,p1R,SZm,UKt,gG5,pm,aBr,IBR,UW,Ogj,Aqn,Pfj,$Kj,vGZ,igh,I9,OW,k75,uTW,Am,Q8t,BAZ,bgR,rqo,h9j,xKn,s85,NAj,t8d,EGm,YZn,yqn,TAn,F9Z,Zg3,G7Z,w1r,V8r,Hgo,Jqo,j8j,qZh,$f,R9h,lB5,DpJ,Cvt,XA3,oHo,pAh,gHh,AK5,I_m,vC,a_F,kH5,QY3,iy,BSn,bSr,rK5,Kgt,
hlW,Lgm,sYZ,elF,EHd,NS3,YQF,FgJ,wAR,GHh,VK5,TSm,HSm,zl5,jYn,MKF,qQF,f_t,dpF,RlW,l_o,DPn,Xgd,cMn,UPo,gKh,a95,I9j,hm,PA3,$P5,vKJ,iJm,kwm,u6r,B6d,bJF,rMn,KoZ,xPj,Lor,s5Z,sW,mPj,eAo,N6m,YEF,md,eb,wg3,yMr,Fot,VhZ,ZJR,T6n,JMj,Yf,zAj,j5R,Mhm,dPt,l9R,yR,CLR,XJW,ckF,opZ,Wjo,pJJ,Sch,UQR,OxJ,Ak3,ix5,PL5,vpF,kn5,u8J,QgR,rkF,KjR,hQt,LjZ,sgm,Ycn,Nmh,Gnm,Hx5,HC,Jkm,zQr,Tqo,Jm,jgd,MM5,fch,lc5,DeJ,S8R,UeF,gSm,aLr,ILR,O83,Pkm,$eZ,i8Z,uyR,vSh,kDR,Bfj,QOt,rOd,xe5,K7R,L7W,sO3,meZ,eqn,ESF,tAm,Y8j,NfW,F7R,VAr,Z8n,Tfm,H85,
JOm,Dt,zqm,jOW,WR,q8m,MA3,fL3,Rqj,det,XNW,cah,Who,pNh,U1R,gvm,ayo,Iym,P_W,vvW,uGJ,kQm,Q$j,Bhd,bar,hZ5,yaF,m1Z,wNj,FhR,GQJ,V4R,zZF,j$t,M4r,qaZ,fyZ,d1j,DEt,Cx3,XiW,cHF,pio,UEm,gsr,Sid,Ivd,avo,vsF,ip5,kxd,ubW,Q0r,BG3,bp3,K4W,L4o,s05,mEm,tir,Eso,yH5,wij,F4J,Zph,Gxh,ViJ,HpW,TGd,zut,dEj,CdF,DSR,XyZ,cV5,oDJ,pyh,xw,USd,eX,aW5,OkZ,AVJ,k6m,QUo,KLo,xSZ,LLj,mSR,e1m,EDF,NaJ,yVh,nDF,FLZ,VgR,G6j,ZkJ,ys,Hkm,Tat,JVm,z1h,jUZ,Mg3,qJj,fW3,dSh,lWh,Dtm,C0t,X5d,ciZ,oRh,WDm,p5m,ShZ,Ut3,aAm,IAd,OvF,QtJ,Bcn,bvF,KDn,h5F,xt3,
mtt,JT,yih,nRh,FDJ,Zvd,Gzd,VEj,TcW,jX,dtn,g8,M8,fn,R5F,lAh,XoN,ojd,cW5,R2,Wre,pof,Sm4,URM;DRo=function(){var D,C;return typeof CSS!=="undefined"&&((C=(D=CSS).supports)==null?void 0:C.call(D,"selector(:has(*))"))};
CtF=function(D){return D.visibility!=="hidden"&&D.display!=="none"};
cWF=function(D){if(DRo()||D.tagName!=="DETAILS"?!D.matches(XoJ):D.querySelector("summary")!==null)return-1;D=D.getAttribute("tabindex")||"0";return Number(D)};
ojm=function(D){return D.some(function(C){return cWF(C)>0})};
Wrd=function(D){if(D.textContent||D.ariaLabel)return!0;if(D instanceof HTMLInputElement){if(!D.labels)return!1;D=_.U(D.labels);for(var C=D.next();!C.done;C=D.next())if(C.value.textContent)return!0}return!1};
poR=function(D){return D.sort(function(C,X){return cWF(X)-cWF(C)})};
_.Sm3=function(D){D=Array.from(D.querySelectorAll(XoJ)).filter(function(C){return(CtF(C.style)?CtF(window.getComputedStyle(C)):!1)&&Wrd(C)});
return ojm(D)?poR(D):D};
_.Dn=function(D,C){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Dn);else{var X=Error().stack;X&&(this.stack=X)}D&&(this.message=String(D));C!==void 0&&(this.cause=C)};
Ch=function(){throw Error("E");};
URo=function(D,C){C=String.fromCharCode.apply(null,C);return D==null?C:D+C};
Oh5=function(D){var C=!1;C=C===void 0?!1:C;if(gjn){if(C&&(anR?!D.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(D)))throw Error("F");D=(Inm||(Inm=new TextEncoder)).encode(D)}else{for(var X=0,c=new Uint8Array(3*D.length),W=0;W<D.length;W++){var p=D.charCodeAt(W);if(p<128)c[X++]=p;else{if(p<2048)c[X++]=p>>6|192;else{if(p>=55296&&p<=57343){if(p<=56319&&W<D.length){var g=D.charCodeAt(++W);if(g>=56320&&g<=57343){p=(p-55296)*1024+g-56320+65536;c[X++]=p>>18|
240;c[X++]=p>>12&63|128;c[X++]=p>>6&63|128;c[X++]=p&63|128;continue}else W--}if(C)throw Error("F");p=65533}c[X++]=p>>12|224;c[X++]=p>>6&63|128}c[X++]=p&63|128}}D=X===c.length?c:c.subarray(0,X)}return D};
om=function(D){_.co.setTimeout(function(){throw D;},0)};
_.Wo=function(D,C){return D.lastIndexOf(C,0)==0};
SZ=function(D,C){var X=D.length-C.length;return X>=0&&D.indexOf(C,X)==X};
_.Um=function(D){return/^[\s\xa0]*$/.test(D)};
_.am=function(D,C){return D.indexOf(C)!=-1};
_.AW=function(D,C){return _.am(D.toLowerCase(),C.toLowerCase())};
_.vo=function(D,C){var X=0;D=Po(String(D)).split(".");C=Po(String(C)).split(".");for(var c=Math.max(D.length,C.length),W=0;X==0&&W<c;W++){var p=D[W]||"",g=C[W]||"";do{p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(p[0].length==0&&g[0].length==0)break;X=AWd(p[1].length==0?0:parseInt(p[1],10),g[1].length==0?0:parseInt(g[1],10))||AWd(p[2].length==0,g[2].length==0)||AWd(p[2],g[2]);p=p[3];g=g[3]}while(X==0)}return X};
AWd=function(D,C){return D<C?-1:D>C?1:0};
_.kj=function(){var D=_.co.navigator;return D&&(D=D.userAgent)?D:""};
Ptr=function(D){if(!ut||!bt)return!1;for(var C=0;C<bt.brands.length;C++){var X=bt.brands[C].brand;if(X&&_.am(X,D))return!0}return!1};
Kh=function(D){return _.am(_.kj(),D)};
hW=function(){return ut?!!bt&&bt.brands.length>0:!1};
$RW=function(){return hW()?!1:Kh("Opera")};
vjm=function(){return hW()?!1:Kh("Trident")||Kh("MSIE")};
ihm=function(){return hW()?Ptr("Microsoft Edge"):Kh("Edg/")};
sm=function(){return Kh("Firefox")||Kh("FxiOS")};
_.kJR=function(){return Kh("Safari")&&!(_.mr()||(hW()?0:Kh("Coast"))||$RW()||(hW()?0:Kh("Edge"))||ihm()||(hW()?Ptr("Opera"):Kh("OPR"))||sm()||Kh("Silk")||Kh("Android"))};
_.mr=function(){return hW()?Ptr("Chromium"):(Kh("Chrome")||Kh("CriOS"))&&!(hW()?0:Kh("Edge"))||Kh("Silk")};
_.udo=function(){return Kh("Android")&&!(_.mr()||sm()||$RW()||Kh("Silk"))};
Qm3=function(D){var C={};D.forEach(function(X){C[X[0]]=X[1]});
return function(X){return C[X.find(function(c){return c in C})]||""}};
B5r=function(D){var C=_.kj();if(D==="Internet Explorer"){if(vjm())if((D=/rv: *([\d\.]*)/.exec(C))&&D[1])C=D[1];else{D="";var X=/MSIE +([\d\.]+)/.exec(C);if(X&&X[1])if(C=/Trident\/(\d.\d)/.exec(C),X[1]=="7.0")if(C&&C[1])switch(C[1]){case "4.0":D="8.0";break;case "5.0":D="9.0";break;case "6.0":D="10.0";break;case "7.0":D="11.0"}else D="7.0";else D=X[1];C=D}else C="";return C}var c=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");X=[];for(var W;W=c.exec(C);)X.push([W[1],W[2],W[3]||void 0]);
C=Qm3(X);switch(D){case "Opera":if($RW())return C(["Version","Opera"]);if(hW()?Ptr("Opera"):Kh("OPR"))return C(["OPR"]);break;case "Microsoft Edge":if(hW()?0:Kh("Edge"))return C(["Edge"]);if(ihm())return C(["Edg"]);break;case "Chromium":if(_.mr())return C(["Chrome","CriOS","HeadlessChrome"])}return D==="Firefox"&&sm()||D==="Safari"&&_.kJR()||D==="Android Browser"&&_.udo()||D==="Silk"&&Kh("Silk")?(C=X[2])&&C[1]||"":""};
_.bhn=function(D){if(hW()&&D!=="Silk"){var C=bt.brands.find(function(X){return X.brand===D});
if(!C||!C.version)return NaN;C=C.version.split(".")}else{C=B5r(D);if(C==="")return NaN;C=C.split(".")}return C.length===0?NaN:Number(C[0])};
eZ=function(){return ut?!!bt&&!!bt.platform:!1};
_.rWr=function(){return eZ()?bt.platform==="Android":Kh("Android")};
KrJ=function(){return Kh("iPhone")&&!Kh("iPod")&&!Kh("iPad")};
_.tW=function(){return KrJ()||Kh("iPad")||Kh("iPod")};
_.h3F=function(){return eZ()?bt.platform==="macOS":Kh("Macintosh")};
_.xRr=function(){return eZ()?bt.platform==="Windows":Kh("Windows")};
_.Lrn=function(){return eZ()?bt.platform==="Chrome OS":Kh("CrOS")};
_.NR=function(D){return D[D.length-1]};
_.Yj=function(D,C,X){C=_.smt(D,C,X);return C<0?null:typeof D==="string"?D.charAt(C):D[C]};
_.smt=function(D,C,X){for(var c=D.length,W=typeof D==="string"?D.split(""):D,p=0;p<c;p++)if(p in W&&C.call(X,W[p],p,D))return p;return-1};
mR5=function(D){for(var C=_.nh,X=typeof D==="string"?D.split(""):D,c=D.length-1;c>=0;c--)if(c in X&&C.call(void 0,X[c],c,D))return c;return-1};
_.Zn=function(D,C){return _.w5(D,C)>=0};
_.e35=function(D,C){_.Zn(D,C)||D.push(C)};
_.VF=function(D,C){C=_.w5(D,C);var X;(X=C>=0)&&_.Ejo(D,C);return X};
_.Ejo=function(D,C){Array.prototype.splice.call(D,C,1)};
_.Ho=function(D){var C=D.length;if(C>0){for(var X=Array(C),c=0;c<C;c++)X[c]=D[c];return X}return[]};
_.zJ=function(D,C){for(var X=1;X<arguments.length;X++){var c=arguments[X];if(_.JW(c)){var W=D.length||0,p=c.length||0;D.length=W+p;for(var g=0;g<p;g++)D[W+g]=c[g]}else D.push(c)}};
_.N5m=function(D,C,X,c){Array.prototype.splice.apply(D,tZ3(arguments,1))};
tZ3=function(D,C,X){return arguments.length<=2?Array.prototype.slice.call(D,C):Array.prototype.slice.call(D,C,X)};
Ymm=function(D,C){C=C||D;for(var X=0,c=0,W={};c<D.length;){var p=D[c++],g=_.MR(p)?"o"+_.fh(p):(typeof p).charAt(0)+p;Object.prototype.hasOwnProperty.call(W,g)||(W[g]=!0,C[X++]=p)}C.length=X};
_.njn=function(D,C,X){X=X||_.yW3;for(var c=0,W=D.length,p;c<W;){var g=c+(W-c>>>1);var a=X(C,D[g]);a>0?c=g+1:(W=g,p=!a)}return p?c:-c-1};
_.lt=function(D,C,X){if(!_.JW(D)||!_.JW(C)||D.length!=C.length)return!1;var c=D.length;X=X||wo5;for(var W=0;W<c;W++)if(!X(D[W],C[W]))return!1;return!0};
_.yW3=function(D,C){return D>C?1:D<C?-1:0};
wo5=function(D,C){return D===C};
Fr3=function(D,C,X){C=Array.prototype.splice.call(D,C,1);Array.prototype.splice.call(D,X,0,C[0])};
GJR=function(D){return Zhh[D]||""};
Hhm=function(D){if(!VZW)return _.Dk(D);D=T5F.test(D)?D.replace(T5F,GJR):D;D=atob(D);for(var C=new Uint8Array(D.length),X=0;X<D.length;X++)C[X]=D.charCodeAt(X);return C};
JWR=function(D,C){D.__closure__error__context__984382||(D.__closure__error__context__984382={});D.__closure__error__context__984382.severity=C};
_.C5=function(D){D=Error(D);JWR(D,"warning");return D};
jmd=function(D,C){if(D!=null){var X;var c=(X=z3h)!=null?X:z3h={};X=c[D]||0;X>=C||(c[D]=X+1,D=Error(),JWR(D,"incident"),om(D))}};
Xe=function(D,C,X){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(X===void 0?0:X)&&Symbol.for&&D?Symbol.for(D):D!=null?Symbol(D):Symbol():C};
Ud=function(D,C){WM||_.SC in D||MZn(D,qmF);D[_.SC]|=C};
aq=function(D,C){WM||_.SC in D||MZn(D,qmF);D[_.SC]=C};
fnF=function(D){if(4&D)return 512&D?512:1024&D?1024:0};
Od=function(D){Ud(D,34);return D};
PM=function(D){Ud(D,8192);return D};
dRF=function(D){Ud(D,32);return D};
$g=function(){return typeof BigInt==="function"};
hc=function(D,C){return C===void 0?D.copyOnWrite!==BM&&!!(2&(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.SC]|0)):!!(2&C)&&D.copyOnWrite!==BM};
_.Yg=function(D,C){if(D!=null)if(typeof D==="string")D=D?new mJ(D,eC):_.tc();else if(D.constructor!==mJ)if(R3J&&D!=null&&D instanceof Uint8Array)D=D.length?new mJ(new Uint8Array(D),eC):_.tc();else{if(!C)throw Error();D=void 0}return D};
lnh=function(D,C){if(typeof C!=="number"||C<0||C>=D.length)throw Error();};
Dfr=function(D,C,X){var c=C&128?0:-1,W=D.length,p;if(p=!!W)p=D[W-1],p=p!=null&&typeof p==="object"&&p.constructor===Object;var g=W+(p?-1:0);for(C=C&128?1:0;C<g;C++)X(C-c,D[C]);if(p){D=D[W-1];for(var a in D)!isNaN(a)&&X(+a,D[a])}};
n5=function(D){return D&128?y5:void 0};
wx=function(D){D.isGuard_doNotManuallySetPrettyPlease=!0;return D};
XMW=function(){var D=Cbh;return wx(function(C){for(var X in D)if(C===D[X]&&!/^[0-9]+$/.test(X))return!0;return!1})};
_.Fe=function(D){var C=D;if(cco(C)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(C))throw Error(String(C));}else if(ogj(C)&&!Number.isSafeInteger(C))throw Error(String(C));return WJr?BigInt(D):D=pMt(D)?D?"1":"0":cco(D)?D.trim()||"0":String(D)};
Sd5=function(D,C){if(D.length>C.length)return!1;if(D.length<C.length||D===C)return!0;for(var X=0;X<D.length;X++){var c=D[X],W=C[X];if(c>W)return!1;if(c<W)return!0}};
Ufo=function(D){var C=D>>>0;Zk=C;GN=(D-C)/4294967296>>>0};
V5=function(D){if(D<0){Ufo(-D);var C=_.U(ggn(Zk,GN));D=C.next().value;C=C.next().value;Zk=D>>>0;GN=C>>>0}else Ufo(D)};
Ikj=function(D){var C=ak5||(ak5=new DataView(new ArrayBuffer(8)));C.setFloat32(0,+D,!0);GN=0;Zk=C.getUint32(0,!0)};
O5h=function(D,C){var X=C*4294967296+(D>>>0);return Number.isSafeInteger(X)?X:_.TN(D,C)};
Jc=function(D,C){var X=C&2147483648;X&&(D=~D+1>>>0,C=~C>>>0,D==0&&(C=C+1>>>0));D=O5h(D,C);return typeof D==="number"?X?-D:D:X?"-"+D:D};
Aco=function(D){var C=Zk,X=GN,c=X>>31;X=(X<<1|C>>>31)^c;D(C<<1^c,X)};
PbZ=function(D,C){var X=-(D&1);D=(D>>>1|C<<31)^X;return Jc(D,C>>>1^X)};
_.TN=function(D,C){C>>>=0;D>>>=0;if(C<=2097151)var X=""+(4294967296*C+D);else $g()?X=""+(BigInt(C)<<BigInt(32)|BigInt(D)):(X=(D>>>24|C<<8)&16777215,C=C>>16&65535,D=(D&16777215)+X*6777216+C*6710656,X+=C*8147497,C*=2,D>=1E7&&(X+=D/1E7>>>0,D%=1E7),X>=1E7&&(C+=X/1E7>>>0,X%=1E7),X=C+$fW(X)+$fW(D));return X};
$fW=function(D){D=String(D);return"0000000".slice(D.length)+D};
_.vgm=function(D,C){C&2147483648?$g()?D=""+(BigInt(C|0)<<BigInt(32)|BigInt(D>>>0)):(C=_.U(ggn(D,C)),D=C.next().value,C=C.next().value,D="-"+_.TN(D,C)):D=_.TN(D,C);return D};
zN=function(D){if(D.length<16)V5(Number(D));else if($g())D=BigInt(D),Zk=Number(D&BigInt(4294967295))>>>0,GN=Number(D>>BigInt(32)&BigInt(4294967295));else{var C=+(D[0]==="-");GN=Zk=0;for(var X=D.length,c=C,W=(X-C)%6+C;W<=X;c=W,W+=6)c=Number(D.slice(c,W)),GN*=1E6,Zk=Zk*1E6+c,Zk>=4294967296&&(GN+=Math.trunc(Zk/4294967296),GN>>>=0,Zk>>>=0);C&&(C=_.U(ggn(Zk,GN)),D=C.next().value,C=C.next().value,Zk=D,GN=C)}};
ggn=function(D,C){C=~C;D?D=~D+1:C+=1;return[D,C]};
jC=function(D){return Array.prototype.slice.call(D)};
_.qf=function(D,C){throw Error(C===void 0?"unexpected value "+D+"!":C);};
_.f5=function(D){if(D!=null&&typeof D!=="number")throw Error("L`"+typeof D+"`"+D);return D};
_.lb=function(D){if(D==null||typeof D==="number")return D;if(D==="NaN"||D==="Infinity"||D==="-Infinity")return Number(D)};
i5d=function(D){if(D!=null&&typeof D!=="boolean")throw Error("M`"+_.DG(D)+"`"+D);return D};
_.kNF=function(D){if(D==null||typeof D==="boolean")return D;if(typeof D==="number")return!!D};
_.cp=function(D){switch(typeof D){case "bigint":return!0;case "number":return Xt(D);case "string":return uem.test(D);default:return!1}};
_.Wp=function(D){if(!Xt(D))throw _.C5("enum");return D|0};
_.SN=function(D){return D==null?D:Xt(D)?D|0:void 0};
Qq3=function(D){if(typeof D!=="number")throw _.C5("int32");if(!Xt(D))throw _.C5("int32");return D|0};
_.g3=function(D){return D==null?D:Qq3(D)};
_.aw=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return Xt(D)?D|0:void 0};
_.BxZ=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return Xt(D)?D>>>0:void 0};
h4F=function(D){var C=0;C=C===void 0?0:C;if(!_.cp(D))throw _.C5("int64");var X=typeof D;switch(C){case 512:switch(X){case "string":return Iw(D);case "bigint":return String(OX(64,D));default:return b5h(D)}case 1024:switch(X){case "string":return rcj(D);case "bigint":return _.Fe(OX(64,D));default:return KJt(D)}case 0:switch(X){case "string":return Iw(D);case "bigint":return _.Fe(OX(64,D));default:return AP(D)}default:return _.qf(C,"Unknown format requested type for int64")}};
Pp=function(D){return D==null?D:h4F(D)};
xfr=function(D){var C=D.length;if(D[0]==="-"?C<20||C===20&&D<="-9223372036854775808":C<19||C===19&&D<="9223372036854775807")return D;zN(D);return _.vgm(Zk,GN)};
LJ3=function(D){if(D[0]==="-")var C=!1;else C=D.length,C=C<20?!0:C===20&&D<="18446744073709551615";if(C)return D;zN(D);return _.TN(Zk,GN)};
AP=function(D){D=$t(D);vp(D)||(V5(D),D=Jc(Zk,GN));return D};
_.sqZ=function(D){D=$t(D);D>=0&&vp(D)||(V5(D),D=O5h(Zk,GN));return D};
b5h=function(D){D=$t(D);vp(D)?D=String(D):(V5(D),D=_.vgm(Zk,GN));return D};
_.mfr=function(D){D=$t(D);D>=0&&vp(D)?D=String(D):(V5(D),D=_.TN(Zk,GN));return D};
Iw=function(D){var C=$t(Number(D));if(vp(C))return String(C);C=D.indexOf(".");C!==-1&&(D=D.substring(0,C));return xfr(D)};
rcj=function(D){var C=$t(Number(D));if(vp(C))return _.Fe(C);C=D.indexOf(".");C!==-1&&(D=D.substring(0,C));return $g()?_.Fe(OX(64,BigInt(D))):_.Fe(xfr(D))};
KJt=function(D){return vp(D)?_.Fe(AP(D)):_.Fe(b5h(D))};
_.e4m=function(D){return vp(D)?_.Fe(_.sqZ(D)):_.Fe(_.mfr(D))};
_.EgJ=function(D){var C=$t(Number(D));if(vp(C)&&C>=0)return String(C);C=D.indexOf(".");C!==-1&&(D=D.substring(0,C));return LJ3(D)};
_.tCd=function(D){var C=$t(Number(D));if(vp(C)&&C>=0)return _.Fe(C);C=D.indexOf(".");C!==-1&&(D=D.substring(0,C));return $g()?_.Fe((0,_.i6)(64,BigInt(D))):_.Fe(LJ3(D))};
_.Ydm=function(D){if(D==null)return D;if(typeof D==="bigint")return Nxt(D)?D=Number(D):(D=OX(64,D),D=Nxt(D)?Number(D):String(D)),D;if(_.cp(D))return typeof D==="number"?AP(D):Iw(D)};
ycj=function(D,C){C=C===void 0?!1:C;var X=typeof D;if(D==null)return D;if(X==="bigint")return String(OX(64,D));if(_.cp(D))return X==="string"?Iw(D):C?b5h(D):AP(D)};
_.ngd=function(D){var C=typeof D;if(D==null)return D;if(C==="bigint")return _.Fe(OX(64,D));if(_.cp(D))return C==="string"?rcj(D):KJt(D)};
wMr=function(D){if(D==null)return D;var C=typeof D;if(C==="bigint")return String(OX(64,D));if(_.cp(D)){if(C==="string")return Iw(D);if(C==="number")return AP(D)}};
FJm=function(D){if(D==null)return D;var C=typeof D;if(C==="bigint")return String((0,_.i6)(64,D));if(_.cp(D)){if(C==="string")return _.EgJ(D);if(C==="number")return _.sqZ(D)}};
_.kt=function(D){if(typeof D!=="string")throw Error();return D};
Bp=function(D){if(D!=null&&typeof D!=="string")throw Error();return D};
_.r3=function(D){return D==null||typeof D==="string"?D:void 0};
VCj=function(D,C,X,c){if(D!=null&&D[hP]===L1)return D;if(!Array.isArray(D))return X?c&2?C[Z5m]||(C[Z5m]=GNd(C)):new C:void 0;X=D[_.SC]|0;c=X|c&32|c&2;c!==X&&aq(D,c);return new C(D)};
GNd=function(D){D=new D;Od(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
Txh=function(D,C,X){D=C?Qq3(D):_.aw(D);return D==null?X?0:void 0:D|0};
H5t=function(D){return D};
JcJ=function(D){return D};
jqo=function(D,C,X,c,W,p){D=VCj(D,c,X,p);W&&(D=z4m(D));return D};
MCJ=function(D){return[D,this.get(D)]};
dfj=function(){return qdm||(qdm=new sX(Od([]),void 0,void 0,void 0,fkm))};
R4R=function(D){var C=eN(EX);return C?D[C]:void 0};
C6Z=function(D,C){var X=X===void 0?!1:X;if(eN(lkj)&&eN(EX)&&void 0===lkj){var c=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=c[EX];if(!W)return;if(W=W.reviveUnknownFields)try{W(c,C,DY5);return}catch(p){om(p)}}X&&(D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(X=eN(EX))&&X in D&&(D=D[X])&&delete D[C])};
cPJ=function(D,C){var X=eN(EX),c;WM&&X&&((c=D[X])==null?void 0:c[C])!=null&&jmd(Xpd,3)};
WGW=function(D,C){C<100||jmd(oth,1)};
aGn=function(D,C,X,c){var W=c!==void 0;c=!!c;var p=eN(EX),g;!W&&WM&&p&&(g=D[p])&&ppr(g,WGW);p=[];var a=D.length;g=4294967295;var O=!1,P=!!(C&64),k=P?C&128?0:-1:void 0;if(!(C&1)){var u=a&&D[a-1];u!=null&&typeof u==="object"&&u.constructor===Object?(a--,g=a):u=void 0;if(P&&!(C&128)&&!W){O=!0;var Q;g=((Q=SXm)!=null?Q:H5t)(g-k,k,D,u,void 0)+k}}C=void 0;for(Q=0;Q<a;Q++){var B=D[Q];if(B!=null&&(B=X(B,c))!=null)if(P&&Q>=g){var K=Q-k,L=void 0;((L=C)!=null?L:C={})[K]=B}else p[Q]=B}if(u)for(var t in u)a=u[t],
a!=null&&(a=X(a,c))!=null&&(Q=+t,B=void 0,P&&!Number.isNaN(Q)&&(B=Q+k)<g?p[B]=a:(Q=void 0,((Q=C)!=null?Q:C={})[t]=a));C&&(O?p.push(C):p[g]=C);W&&eN(EX)&&(D=R4R(D))&&D instanceof UYd&&(p[EX]=gtF(D));return p};
O1W=function(D){D[0]=IGm(D[0]);D[1]=IGm(D[1]);return D};
IGm=function(D){switch(typeof D){case "number":return Number.isFinite(D)?D:""+D;case "bigint":return Nxt(D)?Number(D):""+D;case "boolean":return D?1:0;case "object":if(Array.isArray(D)){var C=D[_.SC]|0;return D.length===0&&C&1?void 0:aGn(D,C,IGm)}if(D!=null&&D[hP]===L1)return APj(D);if(D instanceof mJ){C=D.JSC$8985_value_;if(C==null)D="";else if(typeof C==="string")D=C;else{if(VZW){for(var X="",c=0,W=C.length-10240;c<W;)X+=String.fromCharCode.apply(null,C.subarray(c,c+=10240));X+=String.fromCharCode.apply(null,
c?C.subarray(c):C);C=btoa(X)}else C=_.tP(C);D=D.JSC$8985_value_=C}return D}if(D instanceof sX)return D=D.size!==0?P6r(D,O1W):void 0,D;return}return D};
yU=function(D,C){if(C){SXm=C==null||C===H5t||C[$YF]!==vtm?H5t:C;try{return APj(D)}finally{SXm=void 0}}return APj(D)};
APj=function(D){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return aGn(D,D[_.SC]|0,IGm)};
utj=function(D){switch(typeof D){case "boolean":return i1W||(i1W=[0,void 0,!0]);case "number":return D>0?void 0:D===0?kkm||(kkm=[0,void 0]):[-D,void 0];case "string":return[0,D];case "object":return D}};
w3=function(D,C){return QwR(D,C[0],C[1])};
_.Ft=function(D,C,X){return QwR(D,C,X,2048)};
QwR=function(D,C,X,c){c=c===void 0?0:c;if(D==null){var W=32;X?(D=[X],W|=128):D=[];C&&(W=W&-16760833|(C&1023)<<14)}else{if(!Array.isArray(D))throw Error("O");W=D[_.SC]|0;if(B3t&&1&W)throw Error("P");2048&W&&!(2&W)&&b1J();if(W&256)throw Error("Q");if(W&64)return(W|c)!==W&&aq(D,W|c),D;if(X&&(W|=128,X!==D[0]))throw Error("R");a:{X=D;W|=64;var p=X.length;if(p){var g=p-1,a=X[g];if(a!=null&&typeof a==="object"&&a.constructor===Object){C=W&128?0:-1;g-=C;if(g>=1024)throw Error("T");for(var O in a)p=+O,p<g&&
(X[p+C]=a[O],delete a[O]);W=W&-16760833|(g&1023)<<14;break a}}if(C){O=Math.max(C,p-(W&128?0:-1));if(O>1024)throw Error("U");W=W&-16760833|(O&1023)<<14}}}aq(D,W|64|c);return D};
b1J=function(){if(B3t)throw Error("S");jmd(rPd,5)};
xYJ=function(D,C){if(typeof D!=="object")return D;if(Array.isArray(D)){var X=D[_.SC]|0;return D.length===0&&X&1?void 0:KGh(D,X,C)}if(D!=null&&D[hP]===L1)return hoJ(D);if(D instanceof sX){C=D.arrayState;if(C&2)return D;if(!D.size)return;X=Od(P6r(D));if(D.valueCtor)for(D=0;D<X.length;D++){var c=X[D],W=c[1];W==null||typeof W!=="object"?W=void 0:W!=null&&W[hP]===L1?W=hoJ(W):Array.isArray(W)?W=KGh(W,W[_.SC]|0,!!(C&32)):W=void 0;c[1]=W}return X}if(D instanceof mJ)return D};
KGh=function(D,C,X){if(C&2)return D;!X||4096&C||16&C?D=Gk(D,C,!1,X&&!(C&16)):(Ud(D,34),C&4&&Object.freeze(D));return D};
LGn=function(D,C,X){D=new D.constructor(C);X&&(D.copyOnWrite=BM);D.noLegacyNull=BM;return D};
hoJ=function(D){var C=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=C[_.SC]|0;return hc(D,X)?D:swR(D,C,X)?LGn(D,C):Gk(C,X)};
Gk=function(D,C,X,c){c!=null||(c=!!(34&C));D=aGn(D,C,xYJ,c);c=32;X&&(c|=2);C=C&16769217|c;aq(D,C);return D};
z4m=function(D){var C=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=C[_.SC]|0;return hc(D,X)?swR(D,C,X)?LGn(D,C,!0):new D.constructor(Gk(C,X,!1)):D};
VU=function(D){if(D.copyOnWrite!==BM)return!1;var C=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=Gk(C,C[_.SC]|0);Ud(C,2048);D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=C;D.copyOnWrite=void 0;D.noLegacyNull=void 0;return!0};
Tk=function(D){if(!VU(D)&&hc(D,D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.SC]|0))throw Error();};
JP=function(D,C){C===void 0&&(C=D[_.SC]|0);C&32&&!(C&4096)&&aq(D,C|4096)};
swR=function(D,C,X){return X&2?!0:X&32&&!(X&4096)?(aq(C,X|2),D.copyOnWrite=BM,!0):!1};
zk=function(D,C,X,c,W){var p=X+(W?0:-1),g=D.length-1;if(g>=1+(W?0:-1)&&p>=g){var a=D[g];if(a!=null&&typeof a==="object"&&a.constructor===Object)return a[X]=c,C}if(p<=g)return D[p]=c,C;if(c!==void 0){var O;g=((O=C)!=null?O:C=D[_.SC]|0)>>14&1023||536870912;X>=g?c!=null&&(p={},D[g+(W?0:-1)]=(p[X]=c,p)):D[p]=c}return C};
_.d3=function(D,C,X,c,W){var p=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.SC]|0;c=hc(D,g)?1:c;W=!!W||c===3;c===2&&VU(D)&&(p=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.SC]|0);D=mYm(p,C);var a=D===MY?7:D[_.SC]|0,O=eon(a,g);var P=4&O?!1:!0;if(P){4&O&&(D=jC(D),a=0,O=f1(O,g),g=zk(p,g,C,D));for(var k=0,u=0;k<D.length;k++){var Q=X(D[k]);Q!=null&&(D[u++]=Q)}u<k&&(D.length=u);X=(O|4)&-513;O=X&=-1025;O&=-4097}O!==a&&(aq(D,O),2&O&&Object.freeze(D));return D=EtF(D,O,p,
g,C,c,P,W)};
EtF=function(D,C,X,c,W,p,g,a){var O=C;p===1||(p!==4?0:2&C||!(16&C)&&32&c)?Rw(C)||(C|=!D.length||g&&!(4096&C)||32&c&&!(4096&C||16&C)?2:256,C!==O&&aq(D,C),Object.freeze(D)):(p===2&&Rw(C)&&(D=jC(D),O=0,C=f1(C,c),c=zk(X,c,W,D)),Rw(C)||(a||(C|=16),C!==O&&aq(D,C)));2&C||!(4096&C||16&C)||JP(X,c);return D};
mYm=function(D,C,X){D=l6(D,C,X);return Array.isArray(D)?D:MY};
eon=function(D,C){2&C&&(D|=2);return D|1};
Rw=function(D){return!!(2&D)&&!!(4&D)||!!(256&D)};
tNF=function(D){return _.Yg(D,!0)};
N3m=function(D){D=jC(D);for(var C=0;C<D.length;C++){var X=D[C]=jC(D[C]);Array.isArray(X[1])&&(X[1]=Od(X[1]))}return PM(D)};
_.YX3=function(D,C,X,c,W){var p=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.SC]|0;var a=hc(D,g);a:{!a&&VU(D)&&(p=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=p[_.SC]|0);var O=l6(p,C);D=!1;if(O==null){if(a){C=dfj();break a}O=[]}else if(O.constructor===sX)if(O.arrayState&2&&!a)O=P6r(O);else{C=O;break a}else Array.isArray(O)?D=!!((O[_.SC]|0)&2):O=[];if(a){if(!O.length){C=dfj();break a}D||(D=!0,Od(O))}else D&&(D=!1,PM(O),O=N3m(O));!D&&g&32&&dRF(O);c=new sX(O,X,c,W);g=
zk(p,g,C,c);D||JP(p,g);C=c}!a&&X&&(C.callToMutableOnAccess=!0);return C};
_.D6=function(D,C,X,c){Tk(D);var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=W[_.SC]|0;if(X==null)return zk(W,p,C),D;var g=X===MY?7:X[_.SC]|0,a=g,O=Rw(g),P=O||Object.isFrozen(X);O||(g=0);P||(X=jC(X),a=0,g=f1(g,p),P=!1);g|=5;var k;O=(k=fnF(g))!=null?k:0;for(k=0;k<X.length;k++){var u=X[k],Q=c(u,O);Object.is(u,Q)||(P&&(X=jC(X),a=0,g=f1(g,p),P=!1),X[k]=Q)}g!==a&&(P&&(X=jC(X),g=f1(g,p)),aq(X,g));zk(W,p,C,X);return D};
_.Cf=function(D,C,X,c,W){Tk(D);var p=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zk(p,p[_.SC]|0,C,(c==="0"?Number(X)===0:X===c)?void 0:X,W);return D};
_.Xm=function(D,C,X){if(C&2)throw Error();var c=n5(C),W=mYm(D,X,c),p=W===MY?7:W[_.SC]|0,g=eon(p,C);if(2&g||Rw(g)||16&g)g===p||Rw(g)||aq(W,g),W=jC(W),p=0,g=f1(g,C),zk(D,C,X,W,c);g&=-13;g!==p&&aq(W,g);return W};
yPF=function(D){if(WM){var C;return(C=D[cv])!=null?C:D[cv]=new Map}if(cv in D)return D[cv];C=new Map;Object.defineProperty(D,cv,{value:C});return C};
wpn=function(D,C,X,c,W){var p=yPF(D),g=ntj(p,D,C,X,W);g!==c&&(g&&(C=zk(D,C,g,void 0,W)),p.set(X,c));return C};
ntj=function(D,C,X,c,W){var p=D.get(c);if(p!=null)return p;for(var g=p=0;g<c.length;g++){var a=c[g];l6(C,a,W)!=null&&(p!==0&&(X=zk(C,X,p,void 0,W)),p=a)}D.set(c,p);return p};
FGt=function(D,C,X,c,W){var p=!1;c=l6(D,c,W,function(g){var a=VCj(g,X,!1,C);p=a!==g&&a!=null;return a});
if(c!=null)return p&&!hc(c)&&JP(D,C),c};
Z1F=function(D,C,X,c,W,p,g,a){var O=hc(D,X);p=O?1:p;g=!!g||p===3;O=a&&!O;(p===2||O)&&VU(D)&&(C=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=C[_.SC]|0);D=mYm(C,W);var P=D===MY?7:D[_.SC]|0,k=eon(P,X);if(a=!(4&k)){var u=D,Q=X,B=!!(2&k);B&&(Q|=2);for(var K=!B,L=!0,t=0,Y=0;t<u.length;t++){var y=VCj(u[t],c,!1,Q);if(y instanceof c){if(!B){var J=hc(y);K&&(K=!J);L&&(L=J)}u[Y++]=y}}Y<t&&(u.length=Y);k|=4;k=L?k&-4097:k|4096;k=K?k|8:k&-9}k!==P&&(aq(D,k),2&k&&Object.freeze(D));if(O&&!(8&k||!D.length&&
(p===1||(p!==4?0:2&k||!(16&k)&&32&X)))){Rw(k)&&(D=jC(D),k=f1(k,X),X=zk(C,X,W,D));c=D;O=k;for(P=0;P<c.length;P++)u=c[P],k=z4m(u),u!==k&&(c[P]=k);O|=8;k=O=c.length?O|4096:O&-4097;aq(D,k)}return D=EtF(D,k,C,X,W,p,a,g)};
GkR=function(D){D==null&&(D=void 0);return D};
f1=function(D,C){return D=(2&C?D|2:D&-3)&-273};
_.VNo=function(D,C,X,c,W){Tk(D);C=_.d3(D,C,W,2,!0);var p;W=(p=fnF(C===MY?7:C[_.SC]|0))!=null?p:0;C.push(X(c,W));return D};
T3d=function(D,C,X,c,W,p,g){Tk(D);var a=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=Z1F(D,a,a[_.SC]|0,X,C,2,!0);if(p&&g)W!=null||(W=D.length-1),lnh(D,W),D.splice(W,p),D.length||(D[_.SC]&=-4097);else{if(p){if(typeof W!=="number"||W<0||W>D.length)throw Error();}else c=c!=null?c:new X;W!=void 0?D.splice(W,p,c):D.push(c);W=X=D===MY?7:D[_.SC]|0;(c=hc(c))?(X&=-9,D.length===1&&(X&=-4097)):X|=4096;X!==W&&aq(D,X);c||JP(a)}};
JP3=function(D,C){if(typeof D==="string")return new Wv(Hhm(D),C);if(Array.isArray(D))return new Wv(new Uint8Array(D),C);if(D.constructor===Uint8Array)return new Wv(D,!1);if(D.constructor===ArrayBuffer)return D=new Uint8Array(D),new Wv(D,!1);if(D.constructor===mJ)return C=H1m(D)||new Uint8Array(0),new Wv(C,!0,D);if(D instanceof Uint8Array)return D=D.constructor===Uint8Array?D:new Uint8Array(D.buffer,D.byteOffset,D.byteLength),new Wv(D,!1);throw Error();};
jwF=function(D){switch(typeof D){case "string":zoZ(D)}};
qXr=function(D){switch(typeof D){case "string":MNR(D)}};
pf=function(){var D=function(){throw Error();};
Object.setPrototypeOf(D,D.prototype);return D};
dY3=function(D,C){var X=X===void 0?fGr:X;return new SD(D,C,X)};
DJm=function(D,C,X,c,W){Ror(D,X,lGm(C,c),W)};
UB=function(D,C,X,c){var W=c[D];if(W)return W;W={};W.binaryFields=c;W.messageMetadata=utj(c[0]);var p=c[1],g=1;p&&p.constructor===Object&&(W.extensions=p,p=c[++g],typeof p==="function"&&(W.isMessageSet=!0,CUj!=null||(CUj=p),Xv3!=null||(Xv3=c[g+1]),p=c[g+=2]));for(var a={};p&&c2Z(p);){for(var O=0;O<p.length;O++)a[p[O]]=p;p=c[++g]}for(O=1;p!==void 0;){typeof p==="number"&&(O+=p,p=c[++g]);var P=void 0;if(p instanceof SD)var k=p;else k=oNR,g--;p=void 0;if((p=k)==null?0:p.$$isMsg){p=c[++g];P=c;var u=g;
typeof p==="function"&&(p=p(),P[u]=p);P=p}p=c[++g];u=O+1;typeof p==="number"&&p<0&&(u-=p,p=c[++g]);for(;O<u;O++){var Q=a[O];P?X(W,O,k,P,Q):C(W,O,k,Q)}}return c[D]=W};
c2Z=function(D){return Array.isArray(D)&&!!D.length&&typeof D[0]==="number"&&D[0]>0};
pvR=function(D){return Array.isArray(D)?D[0]instanceof SD?D:[WzJ,D]:[D,void 0]};
lGm=function(D,C){if(D instanceof _.aH)return D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(D))return w3(D,C)};
SBj=function(D,C,X,c){var W=X.$$binaryReaderFn;D[C]=c?function(p,g,a){return W(p,g,a,c)}:W};
gN5=function(D,C,X,c,W){var p=X.$$binaryReaderFn,g,a;D[C]=function(O,P,k){return p(O,P,k,a||(a=UB(UJR,SBj,gN5,c).messageMetadata),g||(g=a6m(c)),W)}};
a6m=function(D){var C=D[I6o];if(C!=null)return C;var X=UB(UJR,SBj,gN5,D);C=X.isMessageSet?function(c,W){return CUj(c,W,X)}:function(c,W){for(;Ofh(W)&&W.nextWireType_!=4;){var p=W.nextField_,g=X[p];
if(g==null){var a=X.extensions;a&&(a=a[p])&&(a=A25(a),a!=null&&(g=X[p]=a))}if(g==null||!g(W,c,p)){a=W;g=a.fieldCursor_;PUW(a);if(a.discardUnknownFields)var O=void 0;else{var P=a.decoder_.cursor_-g;a.decoder_.cursor_=g;O=$JW(a.decoder_,P)}P=a=g=void 0;var k=c;O&&((g=(a=(P=k[EX])!=null?P:k[EX]=new UYd)[p])!=null?g:a[p]=[]).push(O)}}if(c=R4R(c))c.reviveUnknownFields=X.binaryFields[vNh];return!0};
D[I6o]=C;D[vNh]=ifm.bind(D);return C};
ifm=function(D,C,X,c){var W=this[UJR],p=this[I6o],g=w3(void 0,W.messageMetadata),a=R4R(D);if(a){var O=!1,P=W.extensions;if(P){W=function(K,L,t){if(t.length!==0)if(P[L])for(K=_.U(t),L=K.next();!L.done;L=K.next()){L=kdZ(L.value);try{O=!0,p(g,L)}finally{L.free()}}else c==null||c(D,L,t)};
if(C==null)ppr(a,W);else if(a!=null){var k=a[C];k&&W(a,C,k)}if(O){var u=D[_.SC]|0;if(u&2&&u&2048&&(X==null||!X.reviveIntoImmutable))throw Error();var Q=n5(u),B=function(K,L){if(l6(D,K,Q)!=null)switch(X==null?void 0:X.resolutionBehavior){case 1:return;default:throw Error();}L!=null&&(u=zk(D,u,K,L,Q));delete a[K]};
C==null?Dfr(g,g[_.SC]|0,function(K,L){B(K,L)}):B(C,l6(g,C,Q))}}}};
A25=function(D){D=pvR(D);var C=D[0].$$binaryReaderFn;if(D=D[1]){var X=a6m(D),c=UB(UJR,SBj,gN5,D).messageMetadata;return function(W,p,g){return C(W,p,g,c,X)}}return C};
umh=function(D,C,X){D[C]=X.$$binaryWriterFn};
BjZ=function(D,C,X,c){var W,p,g=X.$$binaryWriterFn;D[C]=function(a,O,P){return g(a,O,P,p||(p=UB(QHd,umh,BjZ,c).messageMetadata),W||(W=bft(c)))}};
bft=function(D){var C=D[r2t];if(!C){var X=UB(QHd,umh,BjZ,D);C=function(c,W){return Kzm(c,W,X)};
D[r2t]=C}return C};
Kzm=function(D,C,X){Dfr(D,D[_.SC]|0,function(c,W){if(W!=null){var p=hv5(X,c);p?p(C,W,c):c<500||jmd(xJJ,3)}});
(D=R4R(D))&&ppr(D,function(c,W,p){IH(C,C.encoder_.end());for(c=0;c<p.length;c++)IH(C,H1m(p[c])||new Uint8Array(0))})};
hv5=function(D,C){var X=D[C];if(X)return X;if(X=D.extensions)if(X=X[C]){X=pvR(X);var c=X[0].$$binaryWriterFn;if(X=X[1]){var W=bft(X),p=UB(QHd,umh,BjZ,X).messageMetadata;X=D.isMessageSet?Xv3(p,W):function(g,a,O){return c(g,a,O,p,W)}}else X=c;
return D[C]=X}};
_.LzR=function(D,C,X){if(Array.isArray(C)){var c=C[_.SC]|0;if(c&4)return C;for(var W=0,p=0;W<C.length;W++){var g=D(C[W]);g!=null&&(C[p++]=g)}p<W&&(C.length=p);D=c|1;X&&(D=(D|4)&-1537);D!==c&&aq(C,D);X&&D&2&&Object.freeze(C);return C}};
_.OB=function(D,C,X){return new SD(D,C,X)};
_.sHd=function(D,C,X){return new SD(D,C,X)};
_.Pv=function(D,C,X){zk(D,D[_.SC]|0,C,X,n5(D[_.SC]|0))};
mJJ=function(D,C,X){C=_.lb(C);C!=null&&(_.$N(D,X,1),D=D.encoder_,X=ak5||(ak5=new DataView(new ArrayBuffer(8))),X.setFloat64(0,+C,!0),Zk=X.getUint32(0,!0),GN=X.getUint32(4,!0),_.vv(D,Zk),_.vv(D,GN))};
evh=function(D,C,X){C=_.lb(C);C!=null&&(_.$N(D,X,5),D=D.encoder_,Ikj(C),_.vv(D,Zk))};
_.uU=function(D,C,X){C=wMr(C);if(C!=null&&(jwF(C),C!=null))switch(_.$N(D,X,0),typeof C){case "number":D=D.encoder_;V5(C);kN(D,Zk,GN);break;case "bigint":X=BigInt.asUintN(64,C);X=new ENt(Number(X&BigInt(4294967295)),Number(X>>BigInt(32)));kN(D.encoder_,X.JSC$9028_lo,X.JSC$9028_hi);break;default:X=zoZ(C),kN(D.encoder_,X.JSC$9028_lo,X.JSC$9028_hi)}};
Njh=function(D,C,X){C=FJm(C);if(C!=null&&(qXr(C),C!=null))switch(_.$N(D,X,0),typeof C){case "number":D=D.encoder_;V5(C);kN(D,Zk,GN);break;case "bigint":X=tD3(C);kN(D.encoder_,X.JSC$9026_lo,X.JSC$9026_hi);break;default:X=MNR(C),kN(D.encoder_,X.JSC$9026_lo,X.JSC$9026_hi)}};
y2J=function(D,C,X){C=_.aw(C);C!=null&&C!=null&&(_.$N(D,X,0),_.YBR(D.encoder_,C))};
_.wvd=function(D,C,X){nNj(D,X,FJm(C))};
Fz5=function(D,C,X){C=_.kNF(C);C!=null&&(_.$N(D,X,0),D.encoder_.JSC$9030_buffer_.push(C?1:0))};
Gdo=function(D,C,X){C=_.r3(C);C!=null&&Zfm(D,X,Oh5(C))};
VD3=function(D,C,X,c,W){Ror(D,X,lGm(C,c),W)};
_.Tjm=function(D,C,X){C=C==null||typeof C=="string"||C instanceof mJ?C:void 0;C!=null&&Zfm(D,X,JP3(C,!0).buffer)};
Hft=function(D,C,X){C=_.BxZ(C);C!=null&&C!=null&&(_.$N(D,X,0),Q$(D.encoder_,C))};
_.J2m=function(D,C,X){C=_.aw(C);C!=null&&(C=parseInt(C,10),_.$N(D,X,0),_.YBR(D.encoder_,C))};
_.Bv=function(D,C){return function(X,c){var W={treatNewDataAsImmutable:!0};c&&Object.assign(W,c);X=kdZ(X,void 0,void 0,W);try{var p=new D,g=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a6m(C)(g,X);var a=p}finally{X.free()}return a}};
_.bU=function(D){return function(C){return zvj(C,D)}};
jHW=function(D){return function(){return zvj(this,D)}};
_.MDF=function(D){return wx(function(C){return C instanceof D&&!hc(C)})};
_.rj=function(D){return function(C){return qBW(D,C)}};
l6m=function(D,C){return f6d({child:D,origin:C||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:dJZ,getPayloadCase:function(X){return X.getPayloadCase()},
createInitMessage:function(X){var c=new xN,W=new Rvo;X=_.Lf(W,1,X);return _.sB(c,5,mz,X)}})};
eD=function(D){return{valueOf:D}.valueOf()};
CGJ=function(){var D=null;if(!DAn)return D;try{var C=function(X){return X};
D=DAn.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(X){}return D};
c_o=function(){XtZ===void 0&&(XtZ=CGJ());return XtZ};
_.t2=function(D){var C=c_o();D=C?C.createScriptURL(D):D;return new EB(D)};
_.NJ=function(D){if(D instanceof EB)return D.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.YN=function(D){return Object.isFrozen(D)&&Object.isFrozen(D.raw)};
oFo=function(D){return D.toString().indexOf("`")===-1};
nf=function(D){return new _.y$(W$F,D)};
Fm=function(D){return D instanceof _.y$};
_.Z6=function(D){if(Fm(D))return D.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Gd=function(D){return new ptj(function(C){return C.substr(0,D.length+1).toLowerCase()===D+":"})};
_.V$=function(D,C){C=C===void 0?Sut:C;if(Fm(D))return D;for(var X=0;X<C.length;++X){var c=C[X];if(c instanceof ptj&&c.isValid(D))return nf(D)}};
_.Hv=function(D,C){C=C===void 0?Sut:C;return _.V$(D,C)||Td};
_.J2=function(D){var C=window;if(typeof MediaSource!=="undefined"&&D instanceof MediaSource||typeof C.ManagedMediaSource!=="undefined"&&D instanceof C.ManagedMediaSource)return nf(URL.createObjectURL(D));C=D.type;C.toLowerCase()==="application/octet-stream"?C=!0:(C=C.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),C=(C==null?void 0:C.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(C[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(C[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(C[1])||/^font\/[\w-]+$/i.test(C[1])));if(!C)throw Error("Z");return nf(URL.createObjectURL(D))};
_.UAd=function(D){for(var C=_.MJ.apply(1,arguments),X=[D[0]],c=0;c<C.length;c++)X.push(String(C[c])),X.push(D[c+1]);return nf(X.join(""))};
_.aNo=function(D){if(!gFn){a:{var C=document.createElement("a");try{C.href=D}catch(X){D=void 0;break a}D=C.protocol;D=D===":"||D===""?"https:":D}return D}try{C=new URL(D)}catch(X){return"https:"}return C.protocol};
_.qJ=function(D){D instanceof _.y$?D=_.Z6(D):D=INr.test(D)?D:void 0;return D};
ff=function(D,C){C=_.qJ(C);C!==void 0&&(D.href=C)};
RH=function(D){var C=c_o();D=C?C.createHTML(D):D;return new dj(D)};
lU=function(D){if(D instanceof dj)return D.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.CK=function(D,C){D.src=_.NJ(C).toString()};
OKh=function(D,C){D.setAttribute("sandbox","");for(var X=0;X<C.length;X++)D.sandbox.supports&&!D.sandbox.supports(C[X])||D.sandbox.add(C[X])};
_.X7=function(D,C,X){D.removeAttribute("srcdoc");switch(C){case 0:if(X instanceof EB)throw new A_5("TrustedResourceUrl",0);OKh(D,[]);C=_.qJ(X);C!==void 0&&(D.src=C);break;case 1:if(!(X instanceof EB))throw new A_5(typeof X,1);OKh(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.CK(D,X);break;case 2:if(X instanceof EB)throw new A_5("TrustedResourceUrl",2);OKh(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
C=_.qJ(X);C!==void 0&&(D.src=C);break;default:_.qf(C)}};
_.ct=function(D,C,X,c){C=_.qJ(C);return C!==void 0?D.open(C,X,c):null};
_.oG=function(D){D=D===void 0?document:D;var C,X;D=(X=(C=D).querySelector)==null?void 0:X.call(C,"script[nonce]");return D==null?"":D.nonce||D.getAttribute("nonce")||""};
_.pK=function(D){var C=c_o();D=C?C.createScript(D):D;return new _.Wt(D)};
Ss=function(D){if(D instanceof _.Wt)return D.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
PGt=function(D){var C=_.oG(D.ownerDocument);C&&D.setAttribute("nonce",C)};
_.Uu=function(D,C){D.textContent=Ss(C);PGt(D)};
_.gH=function(D,C){D.src=_.NJ(C);PGt(D)};
_.aG=function(D,C){if(D.nodeType===1&&/^(script|style)$/i.test(D.tagName))throw Error("Z");D.innerHTML=lU(C)};
_.IG=function(D,C,X,c){if(D.length===0)throw Error("Z");D=D.map(function(p){if(p instanceof $Ah)p=p.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return p});
var W=X.toLowerCase();if(D.every(function(p){return W.indexOf(p)!==0}))throw Error("aa`"+X);
C.setAttribute(X,c)};
_.Ou=function(D,C,X){if(C instanceof EB)D.href=_.NJ(C).toString(),D.rel=X;else{if(vF3.indexOf(X)===-1)throw Error("ba`"+X);C=_.qJ(C);C!==void 0&&(D.href=C,D.rel=X)}};
iKZ=function(D){if(D instanceof A_)return D.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.kLm=function(D,C){C=_.qJ(C);C!==void 0&&(D.href=C)};
u7h=function(D){return new Worker(_.NJ(D),void 0)};
QGo=function(D){return _.t2(D)};
BHd=function(D,C){D&&(C=D.indexOf(C),0<=C&&D.splice(C,1))};
Pt=function(D){return typeof D==="function"};
bKo=function(D){return D instanceof $F||D&&"closed"in D&&Pt(D.remove)&&Pt(D.add)&&Pt(D.unsubscribe)};
vt=function(){};
iG=function(D){r_F(function(){throw D;})};
kF=function(D){return D};
uG=function(){return K$F(_.MJ.apply(0,arguments))};
K$F=function(D){return D.length===0?kF:D.length===1?D[0]:function(C){return D.reduce(function(X,c){return c(X)},C)}};
hK5=function(D){var C;return(C=D!=null?D:void 0)!=null?C:Promise};
xAW=function(D,C){return new QB(function(X){var c=0;return C.schedule(function(){c===D.length?X.complete():(X.next(D[c++]),X.closed||this.schedule())})})};
L$j=function(D,C){if(!D)throw Error("ca");return new QB(function(X){var c=new $F;c.add(C.schedule(function(){var W=D[Symbol.asyncIterator]();c.add(C.schedule(function(){var p=this;W.next().then(function(g){g.done?X.complete():(X.next(g.value),p.schedule())})}))}));
return c})};
sGW=function(D,C,X){C=C.schedule(function(){try{X.call(this)}catch(c){D.error(c)}},0);
D.add(C)};
eK3=function(D,C){return new QB(function(X){var c;X.add(C.schedule(function(){c=D[mAr]();sGW(X,C,function(){var W=c.next(),p=W.value;W.done?X.complete():(X.next(p),this.schedule())})}));
return function(){var W;return Pt((W=c)==null?void 0:W.return)&&c.return()}})};
EFJ=function(D,C){return new QB(function(X){var c=new $F;c.add(C.schedule(function(){var W=D[Bt]();c.add(W.subscribe({next:function(p){c.add(C.schedule(function(){return X.next(p)}))},
error:function(p){c.add(C.schedule(function(){return X.error(p)}))},
complete:function(){c.add(C.schedule(function(){return X.complete()}))}}))}));
return c})};
ts3=function(D,C){return new QB(function(X){return C.schedule(function(){return D.then(function(c){X.add(C.schedule(function(){X.next(c);X.add(C.schedule(function(){return X.complete()}))}))},function(c){X.add(C.schedule(function(){return X.error(c)}))})})})};
NHm=function(D){return new TypeError("da`"+(D!==null&&typeof D==="object"?"an invalid object":"'"+D+"'"))};
y_5=function(D,C){if(D!=null){if(Pt(D[Bt]))return EFJ(D,C);if(Yud(D))return xAW(D,C);if(Pt(D==null?void 0:D.then))return ts3(D,C);if(Symbol.asyncIterator&&Pt(D==null?void 0:D[Symbol.asyncIterator]))return L$j(D,C);if(Pt(D==null?void 0:D[mAr]))return eK3(D,C)}throw NHm(D);};
rH=function(D,C){return C?y_5(D,C):bG(D)};
bG=function(D){if(D instanceof QB)return D;if(D!=null){if(Pt(D[Bt]))return nFr(D);if(Yud(D))return wtJ(D);if(Pt(D==null?void 0:D.then))return F$t(D);if(Symbol.asyncIterator&&Pt(D==null?void 0:D[Symbol.asyncIterator]))return ZKo(D);if(Pt(D==null?void 0:D[mAr]))return GLh(D)}throw NHm(D);};
nFr=function(D){return new QB(function(C){var X=D[Bt]();if(Pt(X.subscribe))return X.subscribe(C);throw new TypeError("ea");})};
wtJ=function(D){return new QB(function(C){for(var X=0;X<D.length&&!C.closed;X++)C.next(D[X]);C.complete()})};
F$t=function(D){return new QB(function(C){D.then(function(X){C.closed||(C.next(X),C.complete())},function(X){return C.error(X)}).then(null,iG)})};
GLh=function(D){return new QB(function(C){for(var X=D[mAr]();!C.closed;){var c=X.next(),W=c.value;c.done?C.complete():C.next(W)}return function(){return Pt(X==null?void 0:X.return)&&X.return()}})};
ZKo=function(D){return new QB(function(C){Vsm(D,C).catch(function(X){return C.error(X)})})};
Vsm=function(D,C){var X,c,W,p,g,a;return _.I(function(O){switch(O.nextAddress){case 1:_.KK(O,2,3),p=_.h_(D);case 5:return O.yield(p.next(),8);case 8:c=O.yieldResult;if(c.done){O.jumpTo(3);break}g=c.value;C.next(g);O.jumpTo(5);break;case 3:_.xF(O);_.m$(O,9);if(!c||c.done||!(W=p.return)){O.jumpTo(9);break}return O.yield(W.call(p),9);case 9:_.xF(O,0,0,1);if(X)throw X.error;_.es(O,10,1);break;case 10:_.es(O,4);break;case 2:a=_.Eu(O);X={error:a};O.jumpTo(3);break;case 4:C.complete(),_.t_(O)}})};
THn=function(D,C){return C?xAW(D,C):wtJ(D)};
HKW=function(D){return Pt(D[D.length-1])?D.pop():void 0};
YF=function(D){var C=D[D.length-1];return C&&Pt(C.schedule)?D.pop():void 0};
yB=function(){var D=_.MJ.apply(0,arguments),C=YF(D);return C?xAW(D,C):THn(D)};
nK=function(D){var C=Pt(D)?D:function(){return D};
return new QB(function(X){return X.error(C())})};
wH=function(D){return function(C){if(Pt(C==null?void 0:C.lift))return C.lift(function(X){try{return D(X,this)}catch(c){this.error(c)}});
throw new TypeError("fa");}};
ZN=function(){return wH(function(D,C){var X=null;D._refCount++;var c=new F7(C,void 0,void 0,void 0,function(){if(!D||D._refCount<=0||0<--D._refCount)X=null;else{var W=D._connection,p=X;X=null;!W||p&&W!==p||W.unsubscribe();C.unsubscribe()}});
D.subscribe(c);c.closed||(X=D.connect())})};
zKJ=function(){var D=J_j;var C=C===void 0?0:C;return wH(function(X,c){c.add(D.schedule(function(){return X.subscribe(c)},C))})};
GL=function(D){return wH(function(C,X){var c=0;C.subscribe(new F7(X,function(W){X.next(D.call(void 0,W,c++))}))})};
Msm=function(D){return GL(function(C){return jGo(C)?D.apply(null,_.VB(C)):D(C)})};
lNt=function(D){if(D.length===1){var C=D[0];if(quF(C))return{args:C,keys:null};if(C&&typeof C==="object"&&fNj(C)===dAd)return D=RKm(C),{args:D.map(function(X){return C[X]}),
keys:D}}return{args:D,keys:null}};
Ht=function(){var D=_.MJ.apply(0,arguments),C=YF(D),X=HKW(D);D=lNt(D);var c=D.args,W=D.keys;if(c.length===0)return rH([],C);C=new QB(D3n(c,C,W?function(p){for(var g={},a=0;a<p.length;a++)g[W[a]]=p[a];return g}:kF));
return X?C.pipe(Msm(X)):C};
D3n=function(D,C,X){X=X===void 0?kF:X;return function(c){CoW(C,function(){for(var W=D.length,p=Array(W),g=W,a=D.map(function(){return!1}),O=!0,P={i$jscomp$217:0};P.i$jscomp$217<W;P={i$jscomp$217:P.i$jscomp$217},P.i$jscomp$217++)CoW(C,function(k){return function(){rH(D[k.i$jscomp$217],C).subscribe(new J_(c,function(u){p[k.i$jscomp$217]=u;
O&&(a[k.i$jscomp$217]=!0,O=!a.every(kF));O||c.next(X(p.slice()))},function(){return--g===0}))}}(P),c)},c)}};
CoW=function(D,C,X){D?X.add(D.schedule(C)):C()};
Xdj=function(D,C,X,c){var W=[],p=0,g=0,a=!1,O=function(P){p++;bG(X(P,g++)).subscribe(new F7(C,function(k){C.next(k)},void 0,function(){p--;
for(var k={};W.length&&p<c;k={bufferedValue:void 0})k.bufferedValue=W.shift(),O(k.bufferedValue);!a||W.length||p||C.complete()}))};
D.subscribe(new F7(C,function(P){return p<c?O(P):W.push(P)},void 0,function(){a=!0;
!a||W.length||p||C.complete()}));
return function(){W=null}};
zL=function(D,C){var X=X===void 0?Infinity:X;if(Pt(C))return zL(function(c,W){return GL(function(p,g){return C(c,p,W,g)})(bG(D(c,W)))},X);
typeof C==="number"&&(X=C);return wH(function(c,W){return Xdj(c,W,D,X)})};
cph=function(D){D=D===void 0?Infinity:D;return zL(kF,D)};
oXd=function(){var D=_.MJ.apply(0,arguments);return cph(1)(THn(D,YF(D)))};
Wen=function(D){return new QB(function(C){bG(D()).subscribe(C)})};
js=function(D,C,X){if(Pt(X)){var c=X;X=void 0}if(c)return js(D,C,X).pipe(Msm(c));c=_.U(Pt(D.addEventListener)&&Pt(D.removeEventListener)?pdm.map(function(g){return function(a){return D[g](C,a,X)}}):Pt(D.addListener)&&Pt(D.removeListener)?SFn.map(U3h(D,C)):Pt(D.on)&&Pt(D.off)?gXZ.map(U3h(D,C)):[]);
var W=c.next().value,p=c.next().value;return!W&&Yud(D)?zL(function(g){return js(g,C,X)})(THn(D)):new QB(function(g){if(!W)throw new TypeError("ga");
var a=function(){var O=_.MJ.apply(0,arguments);return g.next(1<O.length?O:O[0])};
W(a);return function(){return p(a)}})};
U3h=function(D,C){return function(X){return function(c){return D[X](C,c)}}};
fK=function(){var D=_.MJ.apply(0,arguments),C=YF(D);var X=typeof D[D.length-1]==="number"?D.pop():Infinity;return D.length?D.length===1?bG(D[0]):cph(X)(THn(D,C)):MA};
IIJ=function(D){return D.length===1&&aIo(D[0])?D[0]:D};
Oyo=function(){var D=IIJ(_.MJ.apply(0,arguments));return wH(function(C,X){var c=[C].concat(_.VB(D)),W=function(){if(!X.closed)if(c.length>0){try{var p=bG(c.shift())}catch(a){W();return}var g=new F7(X,void 0,vt,vt);X.add(p.subscribe(g));g.add(W)}else X.complete()};
W()})};
dH=function(D){return wH(function(C,X){var c=0;C.subscribe(new F7(X,function(W){return D.call(void 0,W,c++)&&X.next(W)}))})};
Pod=function(){var D=_.MJ.apply(0,arguments);D=IIJ(D);return D.length===1?bG(D[0]):new QB(ApF(D))};
ApF=function(D){return function(C){for(var X=[],c={i$jscomp$220:0};X&&!C.closed&&c.i$jscomp$220<D.length;c={i$jscomp$220:c.i$jscomp$220},c.i$jscomp$220++)X.push(bG(D[c.i$jscomp$220]).subscribe(new F7(C,function(W){return function(p){if(X){for(var g=0;g<X.length;g++)g!==W.i$jscomp$220&&X[g].unsubscribe();X=null}C.next(p)}}(c))))}};
$3t=function(){var D=_.MJ.apply(0,arguments),C=HKW(D),X=IIJ(D);return X.length?new QB(function(c){var W=X.map(function(){return[]}),p=X.map(function(){return!1});
c.add(function(){W=p=null});
for(var g={sourceIndex$jscomp$1:0};!c.closed&&g.sourceIndex$jscomp$1<X.length;g={sourceIndex$jscomp$1:g.sourceIndex$jscomp$1},g.sourceIndex$jscomp$1++)bG(X[g.sourceIndex$jscomp$1]).subscribe(new F7(c,function(a){return function(O){W[a.sourceIndex$jscomp$1].push(O);W.every(function(P){return P.length})&&(O=W.map(function(P){return P.shift()}),c.next(C?C.apply(null,_.VB(O)):O),W.some(function(P,k){return!P.length&&p[k]})&&c.complete())}}(g),void 0,function(a){return function(){p[a.sourceIndex$jscomp$1]=
!0;
!W[a.sourceIndex$jscomp$1].length&&c.complete()}}(g)));
return function(){W=p=null}}):MA};
vXF=function(D){var C,X,c;return!!D&&typeof D.active==="boolean"&&typeof((C=D.clock)==null?void 0:C.now)==="function"&&((X=D.clock)==null?void 0:X.timeline)!==void 0&&!((c=D.lastMeasurement)==null||!c.timestamp)&&typeof D.equivalentTo==="function"&&typeof D.extrapolateToNow==="function"&&typeof D.extrapolateToTime==="function"&&typeof D.map==="function"&&typeof D.joinWith==="function"};
iyR=function(D){function C(X){return typeof X==="boolean"||typeof X==="string"||typeof X==="number"||X===void 0||X===null}
return C(D)?!0:Array.isArray(D)?D.every(C):typeof D==="object"?Object.keys(D).every(function(X){return typeof X==="string"})&&Object.values(D).every(function(X){return Array.isArray(X)?X.every(C):C(X)}):!1};
kv3=function(D){if(iyR(D))return D;if(vXF(D))return{lastMeasurement:{value:kv3(D.lastMeasurement.value),timestamp:RG(D.lastMeasurement.timestamp,new lG(0,D.lastMeasurement.timestamp.timeline))},active:D.active};try{return JSON.parse(JSON.stringify(D))}catch(C){}return String(D)};
DI=function(D,C){return function(X){return new QB(function(c){return X.subscribe(function(W){D.timeExecution(C,function(){c.next(W)})()},function(W){D.timeExecution(C,function(){c.error(W)})()},function(){D.timeExecution(C,function(){c.complete()})()})})}};
uEm=function(D,C){var X=!1;return new QB(function(c){var W=D.setTimeout(function(){X=!0;c.next(!0);c.complete()},C);
return function(){X||D.clearTimeout(W)}})};
QVd=function(D){D=D.global;if(D.fetchLater)return D.fetchLater.bind(D)};
Cy=function(D){return wH(function(C,X){var c=null,W=!1,p;c=C.subscribe(new F7(X,void 0,function(g){p=bG(D(g,Cy(D)(C)));c?(c.unsubscribe(),c=null,p.subscribe(X)):W=!0}));
W&&(c.unsubscribe(),c=null,p.subscribe(X))})};
BVZ=function(D,C,X){return function(c,W){var p=X,g=C,a=0;c.subscribe(new F7(W,function(O){var P=a++;g=p?D(g,O,P):(p=!0,O);W.next(g)},void 0,void 0))}};
byo=function(D){D=D===void 0?null:D;return wH(function(C,X){var c=!1;C.subscribe(new F7(X,function(W){c=!0;X.next(W)},void 0,function(){c||X.next(D);
X.complete()}))})};
XE=function(){return wH(function(D,C){D.subscribe(new F7(C,vt))})};
cd=function(D){return wH(function(C,X){C.subscribe(new F7(X,function(){return X.next(D)}))})};
oV=function(D){return D<=0?function(){return MA}:wH(function(C,X){var c=0;
C.subscribe(new F7(X,function(W){++c<=D&&(X.next(W),D<=c&&X.complete())}))})};
Wd=function(D){var C=C===void 0?kF:C;var X;D=(X=D)!=null?X:rph;return wH(function(c,W){var p,g=!0;c.subscribe(new F7(W,function(a){var O=C(a);if(g||!D(p,O))g=!1,p=O,W.next(a)}))})};
rph=function(D,C){return D===C};
hem=function(D){D=D===void 0?Kem:D;return wH(function(C,X){var c=!1;C.subscribe(new F7(X,function(W){c=!0;X.next(W)},void 0,function(){return c?X.complete():X.error(D())}))})};
Kem=function(){return new x3J};
py=function(){var D=_.MJ.apply(0,arguments);return function(C){return oXd(C,yB.apply(null,_.VB(D)))}};
LeZ=function(D){return wH(function(C,X){var c=0;C.subscribe(new F7(X,function(W){D.call(void 0,W,c++,C)||(X.next(!1),X.complete())},void 0,function(){X.next(!0);
X.complete()}))})};
sVo=function(){return wH(function(D,C){var X=[];D.subscribe(new F7(C,function(c){X.push(c);1<X.length&&X.shift()},void 0,function(){for(var c=_.U(X),W=c.next();!W.done;W=c.next())C.next(W.value);
C.complete()},function(){X=null}))})};
m3m=function(D,C){var X=arguments.length>=2;return function(c){return c.pipe(D?dH(function(W,p){return D(W,p,c)}):kF,sVo(),X?byo(C):hem(function(){return new x3J}))}};
UF=function(D){var C=Pt(D)?D:function(){return D};
return Pt()?wH(function(X,c){var W=C();(void 0)(W).subscribe(c).add(X.subscribe(W))}):function(X){var c=new So(X,C);
Pt(X==null?void 0:X.lift)&&(c.lift=X.lift);c.source=X;c.subjectFactory=C;return c}};
aV=function(D){var C=new gV(D,void 0,void 0);return function(X){return UF(function(){return C})(X)}};
IV=function(D,C){return wH(BVZ(D,C,arguments.length>=2))};
OF=function(){var D=_.MJ.apply(0,arguments),C=YF(D);return wH(function(X,c){(C?oXd(D,X,C):oXd(D,X)).subscribe(c)})};
Ap=function(D){return wH(function(C,X){var c=null,W=0,p=!1;C.subscribe(new F7(X,function(g){var a;(a=c)==null||a.unsubscribe();a=W++;bG(D(g,a)).subscribe(c=new F7(X,function(O){return X.next(O)},void 0,function(){c=null;
p&&!c&&X.complete()}))},void 0,function(){(p=!0,!c)&&X.complete()}))})};
Pd=function(D,C){C=C===void 0?!1:C;return wH(function(X,c){var W=0;X.subscribe(new F7(c,function(p){var g=D(p,W++);(g||C)&&c.next(p);!g&&c.complete()}))})};
eem=function(D,C,X){var c=Pt(D)||C||X?{next:D,error:C,complete:X}:D;return c?wH(function(W,p){W.subscribe(new F7(p,function(g){var a;(a=c.next)==null||a.call(c,g);p.next(g)},function(g){var a;
(a=c.error)==null||a.call(c,g);p.error(g)},function(){var g;
(g=c.complete)==null||g.call(c);p.complete()}))}):kF};
EXd=function(){var D=_.MJ.apply(0,arguments),C=HKW(D);return wH(function(X,c){for(var W=D.length,p=Array(W),g=D.map(function(){return!1}),a=!1,O={i$jscomp$230:0};O.i$jscomp$230<W;O={i$jscomp$230:O.i$jscomp$230},O.i$jscomp$230++)bG(D[O.i$jscomp$230]).subscribe(new F7(c,function(P){return function(k){p[P.i$jscomp$230]=k;
a||g[P.i$jscomp$230]||(g[P.i$jscomp$230]=!0,(a=g.every(kF))&&(g=null))}}(O),void 0,vt));
X.subscribe(new F7(c,function(P){a&&(P=[P].concat(_.VB(p)),c.next(C?C.apply(null,_.VB(P)):P))}))})};
NVn=function(D){var C=too;if(C)for(var X in C)Object.prototype.hasOwnProperty.call(C,X)&&D(C[X],X,C)};
YFZ=function(){var D=[];NVn(function(C){D.push(C)});
return D};
nXm=function(D){try{return!!D&&D.location.href!=null&&ypJ(D,"foo")}catch(C){return!1}};
_.$X=function(D){return new $Ah(D[0].toLowerCase())};
wdn=function(D){for(var C=_.MJ.apply(1,arguments),X=D[0],c=0;c<D.length-1;c++)X+=String(C[c]),X+=D[c+1];C=document.implementation.createHTMLDocument("");c=C.createElement("style");C.head.appendChild(c);C=c.sheet;C.insertRule(X,0);if(C.cssRules.length===1&&(X=C.cssRules[0],X instanceof CSSStyleRule))return new A_(X.cssText.replace(/</g,"\\3C "))};
Fet=function(D){try{return new URL(D,window.document.baseURI)}catch(C){return new URL("about:invalid")}};
Zyr=function(D,C){var X=C.createRange();X.selectNode(C.body);D=RH(D);return X.createContextualFragment(lU(D))};
GvZ=function(D){D=D.nodeName;return typeof D==="string"?D:"FORM"};
Vor=function(D){D=D.nodeType;return D===1||typeof D!=="number"};
io=function(D,C,X){D.setAttribute(C,X)};
TVd=function(D){return D.parts.map(function(C){var X=C.descriptor;return""+C.url+(X?" "+X:"")}).join(" , ")};
_.kX=function(D){var C=_.MJ.apply(1,arguments);if(C.length===0)return _.t2(D[0]);for(var X=D[0],c=0;c<C.length;c++)X+=encodeURIComponent(C[c])+D[c+1];return _.t2(X)};
_.uo=function(D,C){D=_.NJ(D).toString();var X=D.split(/[?#]/),c=/[?]/.test(D)?"?"+X[1]:"";return HyZ(X[0],c,/[#]/.test(D)?"#"+(c?X[2]:X[1]):"",C)};
HyZ=function(D,C,X,c){function W(g,a){g!=null&&(Array.isArray(g)?g.forEach(function(O){return W(O,a)}):(C+=p+encodeURIComponent(a)+"="+encodeURIComponent(g),p="&"))}
var p=C.length?"&":"?";c.constructor===Object&&(c=Object.entries(c));Array.isArray(c)?c.forEach(function(g){return W(g[1],g[0])}):c.forEach(W);
return _.t2(D+C+X)};
zet=function(){var D=Ss(JpZ).toString();return _.t2(URL.createObjectURL(new Blob([D],{type:"text/javascript"})))};
jVn=function(D){var C=[],X=0,c;for(c in D)C[X++]=c;return C};
Mo3=function(D,C){for(var X in D)if(D[X]==C)return!0;return!1};
qFR=function(D,C,X){for(var c in D)if(C.call(X,D[c],c,D))return c};
fIh=function(D){if(!D||typeof D!=="object")return D;if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);if(D instanceof Date)return new Date(D.getTime());var C=Array.isArray(D)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(D)||D instanceof DataView?{}:new D.constructor(D.length),X;for(X in D)C[X]=fIh(D[X]);return C};
d3F=function(D){var C=arguments.length;if(C==1&&Array.isArray(arguments[0]))return d3F.apply(null,arguments[0]);if(C%2)throw Error("ma");for(var X={},c=0;c<C;c+=2)X[arguments[c]]=arguments[c+1];return X};
Red=function(D){var C=arguments.length;if(C==1&&Array.isArray(arguments[0]))return Red.apply(null,arguments[0]);for(var X={},c=0;c<C;c++)X[arguments[c]]=!0;return X};
QI=function(D,C,X,c){this.top=D;this.right=C;this.bottom=X;this.left=c};
lIJ=function(D){D=D.global;if(D.PendingGetBeacon)return D.PendingGetBeacon};
rV=function(D){return function(C){return C.pipe(Ddr(D,UF(new bo)))}};
Ky=function(D){return function(C){return C.pipe(Ddr(D,aV(1)))}};
Ddr=function(D,C){function X(c){return new QB(function(W){return c.subscribe(function(p){hp(D,function(){return void W.next(p)},3)},function(p){hp(D,function(){return void W.error(p)},3)},function(){hp(D,function(){return void W.complete()},3)})})}
return uG(X,zKJ(),C,ZN(),X)};
cRJ=function(D){var C=Ccd(D);return C===null?new xX(null):C.pipe(GL(function(X){X=X.serialize();if(XIo)X=_.co.btoa(X);else{for(var c=[],W=0,p=0;p<X.length;p++){var g=X.charCodeAt(p);g>255&&(c[W++]=g&255,g>>=8);c[W++]=g}X=_.tP(c)}return X}),oV(1),Ky(D.queue))};
oTF=function(D){var C=C===void 0?{}:C;if(typeof Event==="function")return new Event(D,C);if(typeof document!=="undefined"){var X=document.createEvent("CustomEvent");X.initCustomEvent(D,C.bubbles||!1,C.cancelable||!1,C.detail);return X}throw Error();};
Wv5=function(D){return typeof D==="string"?document.getElementById(D):D};
Sen=function(D){var C=!1;C=C===void 0?!1:C;if(D.tagName==="IMG"){if(D.complete&&(!D.naturalWidth||!D.naturalHeight))return!0;var X;if(C&&((X=D.style)==null?void 0:X.display)==="none")return!0}var c,W;return pIj.test((c=D.getAttribute("width"))!=null?c:"")&&pIj.test((W=D.getAttribute("height"))!=null?W:"")};
Udm=function(D,C){if(D.tagName==="IMG")return D.naturalWidth&&D.naturalHeight?!0:!1;try{if(D.readyState)var X=D.readyState;else{var c,W;X=(c=D.contentWindow)==null?void 0:(W=c.document)==null?void 0:W.readyState}return X==="complete"}catch(p){return C===void 0?!1:C}};
gTm=function(D){D||(D=function(C,X,c){C.addEventListener(X,c)});
return D};
AR3=function(D,C){var X=a1Z();X=X===void 0?new I1W:X;if(D=Wv5(D)){var c=gTm(c);for(var W=!1,p=function(t){W||(W=!0,C(t))},g,a=2,O=0;O<OFm.length;++O)if(OFm[O]===D.tagName){a=3;
g=[D];break}g||(g=D.querySelectorAll(OFm.join(",")));var P=0,k=0,u=!0,Q=D=!1;O={};for(var B=0;B<g.length;O={isImg:void 0},B++){var K=g[B];if(!Sen(K))if(O.isImg=K.tagName==="IMG",Udm(K,X.crossDomainLoadedDefault))D=!0,O.isImg&&(u=!0);else{P++;var L=function(t){return function(Y){P--;!P&&u&&p(a);t.isImg&&(Y=Y&&Y.type==="error",k--,Y||(u=!0),!k&&Q&&u&&p(a))}}(O);
c(K,"load",L);O.isImg&&(k++,c(K,"error",L))}}k===0&&(u=!0);g=null;g=_.co.document.readyState==="complete";if(P===0&&!D&&g)a=5;else if(P||!D){c(_.co,"load",function(){!X.pendingImagesBlockLoad||!k&&u?p(4):Q=!0});
return}p(a)}};
Pc5=function(D,C,X){if(D)for(var c=0;D!=null&&c<500&&!X(D);++c)D=C(D)};
$dj=function(D,C){Pc5(D,function(X){try{return X===X.parent?null:X.parent}catch(c){}return null},C)};
vTo=function(D,C){if(D.tagName=="IFRAME")C(D);else{D=D.querySelectorAll("IFRAME");for(var X=0;X<D.length&&!C(D[X]);++X);}};
iFZ=function(D){return(D=D.ownerDocument)&&(D.parentWindow||D.defaultView)||null};
kyZ=function(D,C,X){try{var c=JSON.parse(X.data)}catch(g){}if(typeof c==="object"&&c&&c.type==="creativeLoad"){var W=iFZ(D);if(X.source&&W){var p;$dj(X.source,function(g){try{if(g.parent===W)return p=g,!0}catch(a){}});
p&&vTo(D,function(g){if(g.contentWindow===p)return C(c),!0})}}};
uJ5=function(D){return typeof D==="string"?document.getElementById(D):D};
rRW=function(){var D={};return D[0]=_.kX(Qhm,"current"),D[1]=_.kX(Boh),D[2]=_.kX(bFF),D};
Ly=function(D,C){return D.left===C.left&&D.top===C.top&&D.width===C.width&&D.height===C.height};
Kvt=function(D,C){return{left:Math.max(D.left,C.left),top:Math.max(D.top,C.top),width:Math.max(0,Math.min(D.left+D.width,C.left+C.width)-Math.max(D.left,C.left)),height:Math.max(0,Math.min(D.top+D.height,C.top+C.height)-Math.max(D.top,C.top))}};
hi5=function(D,C){return{left:Math.round(D.left+C.x),top:Math.round(D.top+C.y),width:D.width,height:D.height}};
xdd=function(D,C,X){if(D&&C!==null&&C!=C.top){if(!C.top)return new _.me(-12245933,-12245933);C=C.top}try{return(X===void 0?0:X)?(new _.me(C.innerWidth,C.innerHeight)).round():_.eo(C).round()}catch(c){return new _.me(-12245933,-12245933)}};
Lv3=function(D,C,X){try{if(D){if(!C.top)return new QI(-12245933,-12245933,-12245933,-12245933);C=C.top}var c=xdd(D,C,X),W=c.height,p=c.width;if(p===-12245933)return new QI(p,p,p,p);var g=EF(tp(C.document)),a=g.x,O=g.y;return new QI(O,a+p,O+W,a)}catch(P){return new QI(-12245933,-12245933,-12245933,-12245933)}};
sho=function(D){var C;return(C=D.google_tag_data)!=null?C:D.google_tag_data={}};
mdm=function(D){var C,X;return typeof((C=D.navigator)==null?void 0:(X=C.userAgentData)==null?void 0:X.getHighEntropyValues)==="function"};
ETF=function(D){if(!mdm(D))return null;var C=sho(D);if(C.uach_promise)return C.uach_promise;D=D.navigator.userAgentData.getHighEntropyValues(eih).then(function(X){C.uach!=null||(C.uach=X);return X});
return C.uach_promise=D};
HFo=function(D){var C;return tpJ(Nom(YeW(yRn(nTm(wIn(Fvt(ZFh(Gyh(new Vpm,D.architecture||""),D.bitness||""),D.mobile||!1),D.model||""),D.platform||""),D.platformVersion||""),D.uaFullVersion||""),((C=D.fullVersionList)==null?void 0:C.map(function(X){var c=new ToW;c=_.N3(c,1,X.brand);return _.N3(c,2,X.version)}))||[]),D.wow64||!1)};
JRn=function(D){var C,X;return(X=(C=ETF(D))==null?void 0:C.then(function(c){return HFo(c)}))!=null?X:null};
zim=function(D,C){return new QB(function(X){var c=!1,W=Array(C.length);W.fill(void 0);var p=new Set,g=new Set,a=function(u,Q){D.running?(W[Q]=u,p.add(Q),c||(c=!0,hp(D,function(){c=!1;X.next(_.Ho(W))},1))):X.error(new YX(Q))},O=function(u,Q){g.add(Q);
p.add(Q);hp(D,function(){X.error(u)},1)},P=function(u){g.add(u);
hp(D,function(){g.size===C.length&&X.complete()},1)},k=C.map(function(u,Q){return u.subscribe(function(B){return void a(B,Q)},function(B){return void O(B,Q)},function(){return void P(Q)})});
return function(){k.forEach(function(u){return void u.unsubscribe()})}})};
qeR=function(D,C,X){function c(){if(C.debugChannel){var t=C.debugChannel,Y=t.next;var y={creativeId:C.debugNames.getName(X),requiredSignals:W,signals:Object.assign({},p),hasPrematurelyCompleted:g,errorMessage:a,erroredSignalKey:O};y={specMajor:2,specMinor:0,specPatch:0,timestamp:RG(C.timeProvider.now(),new lG(0,C.timeProvider.timeline)),instanceId:C.debugNames.getName(C.symbol),creativeState:y};Y.call(t,y)}}
for(var W=Object.keys(D),p={},g=!1,a=null,O=null,P={},k=new Set,u=[],Q=[],B=_.U(W),K=B.next(),L={};!K.done;L={key$jscomp$394:void 0},K=B.next())L.key$jscomp$394=K.value,K=D[L.key$jscomp$394],K instanceof xX?(P[L.key$jscomp$394]=K.value,k.add(L.key$jscomp$394),C.debugChannel&&(p[String(L.key$jscomp$394)]=kv3(K.value))):(K=K.pipe(Wd(function(t,Y){return vXF(t)||vXF(Y)?!1:t===Y}),GL(function(t){return function(Y){C.debugChannel&&(p[String(t.key$jscomp$394)]=kv3(Y),c());
var y={};return y[t.key$jscomp$394]=Y,y}}(L)),Cy(function(t){return function(Y){if(Y instanceof YX)throw new jh3(String(t.key$jscomp$394));
throw Y;}}(L)),eem(function(t){return function(){k.add(t.key$jscomp$394)}}(L),function(t){return function(Y){O=String(t.key$jscomp$394);
a=String(Y);c()}}(L),function(t){return function(){k.has(t.key$jscomp$394)||(g=!0,c())}}(L))),Q.push(L.key$jscomp$394),u.push(K));
(D=Object.keys(p).length>0)&&c();B=zim(C.queue,u).pipe(Cy(function(t){if(t instanceof YX)throw new Mpm(String(Q[t.inputObservableIndex]));throw t;}),GL(function(t){return Object.freeze(Object.assign.apply(Object,[{},
P].concat(_.VB(t))))}));
return(u=u.length>0)&&D?fK(yB(Object.freeze(P)),B):u?B:yB(Object.freeze(P))};
f1r=function(D,C,X,c,W){return D.performanceMonitor.timeExecution.bind(D.performanceMonitor)(733,function(){var p={};try{return C.pipe(Cy(function(g){c(Object.assign({},p,{error:g}));return MA}),zL(function(g){try{var a=X(D,g)}catch(P){return c(Object.assign({},p,{error:P instanceof Error?P:String(P)})),MA}var O={};
return qeR(a,D,g.symbol).pipe(eem(function(P){O=P}),aV(1),ZN()).pipe(W,Cy(function(P){c(Object.assign({},O,{error:P}));
return MA}),py(void 0),GL(function(){return!0}))})).pipe(IV(function(g){return g+1},0),Cy(function(g){c(Object.assign({},p,{error:g}));
return MA}))}catch(g){return c(Object.assign({},p,{error:g})),MA}})()};
yI=function(D){var C=new Map;if(typeof D!=="object"||D===null)return C;Object.values(D).forEach(function(X){X&&typeof X.extrapolateToNow==="function"&&(C.has(X.clock.timeline)||C.set(X.clock.timeline,X.clock.now()))});
return C};
ddr=function(D,C){return typeof D==="string"?encodeURIComponent(D):typeof D==="number"?String(D):Array.isArray(D)?D.map(function(X){return ddr(X,C)}).join(","):D instanceof lG?D.toString():D&&typeof D.extrapolateToNow==="function"?ddr(D.extrapolateUsingTimestampMap(C).value,C):D===!0?"1":D===!1?"0":D===void 0||D===null?null:D instanceof RiZ?l1j(D):[D.top,
D.left,D.top+D.height,D.left+D.width].join()};
Dmm=function(D,C){D=Object.entries(D).map(function(X){var c=_.U(X);X=c.next().value;c=c.next().value;c=ddr(c,C);return c===null?"":X+"="+c}).filter(function(X){return X!==""});
return D.length?D.join("&"):""};
cwo=function(D,C){var X=Chn,c=XeF;C=C===void 0?.01:C;return function(W){C>0&&Math.random()<=C&&(D.global.HTMLFencedFrameElement&&D.global.fence&&typeof D.global.fence.reportEvent==="function"&&D.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),W=Object.assign({},W,{errorMessage:W.error instanceof Error&&W.error.message?W.error.message:String(W.error),errorStack:W.error instanceof Error&&W.error.stack?String(W.error.stack):null,errorName:W.error instanceof
Error&&W.error.name?String(W.error.name):null,errorContext:String(D.performanceMonitor.timedFunctionContext),errorEscapedQueryId:W.escapedQueryId}),X(Object.assign({},W,{payloadMapper:function(){return function(p){try{return c(Object.assign({},p))}catch(g){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),yI(W)).forEach(function(p){D.beaconFactory.makeBeacon(p).sendNow()}))}};
oUF=function(){var D=_.MJ.apply(0,arguments);return function(C){var X=C.pipe(aV(1),ZN());C=D.map(function(c){return X.pipe(c,py(!0))});
return Ht(C).pipe(oV(1),XE())}};
W5n=function(){var D=_.MJ.apply(0,arguments);return function(C){var X=C.pipe(aV(1),ZN());C=D.map(function(c){return X.pipe(c,py(!0))});
return fK.apply(null,_.VB(C)).pipe(oV(1),XE())}};
peZ=function(D,C){return function(X){var c=X.pipe(aV(1),ZN());X=c.pipe(D,py(!0));c=c.pipe(uG(C,aV(),ZN()),py(!0));X=Ht([X,c]);return Pod(X,c).pipe(oV(1),XE())}};
Sz3=function(D,C,X){X(!0)};
Umt=function(D,C){return uG(Ap(function(X){var c=D(X),W=C(X),p={};return c&&W&&p?new QB(function(g){W(c,p,function(a){g.next(Object.assign({},X,{canEmit:a}));g.complete()});
return function(){}}):ny}),dH(function(X){return X.canEmit}))};
gU5=function(D){var C={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(X){return X.pipe(Ap(function(c){return new QB(function(W){function p(){a.disconnect();O.unsubscribe()}
var g=D.MutationObserver;if(g&&c.ref!==void 0){var a=new g(function(P){W.next(P)});
a.observe(c.ref,C);var O=c.JSC$9525_released.subscribe(p);return p}})}))}};
aHZ=function(D){if(D.measurementDeferralState===3)return null;if(D.timeOnScreenReason!==void 0){var C=D.creativeFound===!1?"n":null;if(C!==null)return C}return D.geometricMeasurementErrors instanceof wV?"msf":D.contextValidationErrors instanceof FE?"c":D.contextVisibilityKnown===!1?"pv":D.geometricMeasurementErrors||D.contextValidationErrors?"x":null};
Oit=function(D,C){return D.replace(IHW,function(X,c){try{var W=_.ZI.get(C,c);if(W==null||W.toString()==null)return X;W=W.toString();if(W==""||!_.Um(W==null?"":String(W)))return encodeURIComponent(W).replace(/%2C/g,",")}catch(p){}return X})};
AwZ=function(D,C){var X=Object.assign({},D),c=D.userAgentClientHints;X=(delete X.userAgentClientHints,X);X=D.payloadMapper(X);var W=Dmm(X,C);return _.Gv(D.urlPrefixes,function(p){var g="";typeof c==="string"&&(g="&"+Dmm({uach:c},C));var a={};return Oit(p,(a.VIEWABILITY=W,a))+g})};
Chn=function(D,C){var X=D.payloadMapper(D),c=Dmm(X,C);return c?_.Gv(D.urlPrefixes,function(W){W=W.indexOf("?")>=0?W:W+"?";W="?&".indexOf(W.slice(-1))>=0?W:W+"&";return W+c}):D.urlPrefixes};
PhF=function(){return uG(dH(function(D){return D!==void 0}),GL(function(D){return D}))};
$mn=function(D){return uG(GL(function(){return!0}),OF(!1),Ky(D))};
vUn=function(D){return D.length<=0?MA:Ht(D.map(function(C){var X=0;return C.pipe(GL(function(c){return{index:X++,value:c}}))})).pipe(dH(function(C){return C.every(function(X){return X.index===C[0].index})}),GL(function(C){return C.map(function(X){return X.value})}))};
iit=function(D,C){D.currentState&&(D.previousState=D.currentState);D.currentState=C;D.previousState&&D.previousState.value?(C=Math.max(0,RG(C.timestamp,D.previousState.timestamp)),D.totalTime+=C,D.consecutiveTime+=C):D.consecutiveTime=0;return D};
k35=function(){return uG(IV(iit,{totalTime:0,consecutiveTime:0}),GL(function(D){return D.totalTime}))};
ug3=function(){return uG(IV(iit,{totalTime:0,consecutiveTime:0}),GL(function(D){return D.consecutiveTime}))};
QAZ=function(D,C){return function(X){return vUn(C.map(function(c){return X.pipe(D(c))}))}};
B8R=function(){var D;return uG(eem(function(C){return void(D=C.timestamp)}),ug3(),GL(function(C){return{timestamp:D,
value:Math.round(C)}}))};
biZ=function(D,C){return Ly(D.topWindowViewportExternalGeometry,C.topWindowViewportExternalGeometry)&&Ly(D.elementGeometry,C.elementGeometry)&&Ly(D.exposedViewportLocalGeometry,C.exposedViewportLocalGeometry)&&Ly(D.intersectionGeometry,C.intersectionGeometry)&&D.elementGeometrySourceName===C.elementGeometrySourceName&&D.measurementRequests===C.measurementRequests&&D.viewportGeometrySourceName===C.viewportGeometrySourceName&&D.viewportLocalAppOffset.x===C.viewportLocalAppOffset.x&&D.viewportLocalAppOffset.y===
C.viewportLocalAppOffset.y};
xmj=function(D,C){return function(X){return function(c){var W=c.pipe(UF(new bo),ZN());c=X.element.pipe(Wd());W=W.pipe(GL(function(p){return p.value}));
return Ht([c,W,C]).pipe(GL(function(p){var g=_.U(p);p=g.next().value;var a=g.next().value;g=g.next().value;if(p.ref===void 0)var O={top:0,left:0,width:0,height:0};else{O=p.ref.getBoundingClientRect();var P=p.ref,k=D.global,u=new _.VI(0,0),Q=Tv(_.Hd(P));if(ypJ(Q,"parent")){do{if(Q==k)var B=_.Jp(P);else B=rwm(P),B=new _.VI(B.left,B.top);u.x+=B.x;u.y+=B.y}while(Q&&Q!=k&&Q!=Q.parent&&(P=Q.frameElement)&&(Q=Q.parent))}O={top:u.y,left:u.x,width:O.width,height:O.height}}O=hi5(O,a.viewportLocalAppOffset);
k=Kvt(O,a.exposedViewportLocalGeometry);u=D.timeProvider.now();Q=Object;P=Q.assign;if(g!==2||D.inCrossDomainIframe||k.width<=0||k.height<=0)var K=!1;else try{var L=D.document.elementFromPoint(k.left+k.width/2,k.top+k.height/2);K=L?!K5Z(L,p):!1}catch(t){K=!1}return{timestamp:u,value:P.call(Q,{},a,{elementGeometrySourceName:"geo",intersectionGeometry:K?hPF.intersectionGeometry:k,elementGeometry:O})}}),rV(D.queue))}}};
K5Z=function(D,C,X){X=X===void 0?0:X;return D.ref===void 0||C.ref===void 0?!1:D.ref===C.ref||_.zv(C.ref,function(c){return c===D.ref})?!0:C.ref.ownerDocument&&C.ref.ownerDocument.defaultView&&C.ref.ownerDocument.defaultView===C.ref.ownerDocument.defaultView.top?!1:X<10&&C.ref.ownerDocument&&C.ref.ownerDocument.defaultView&&C.ref.ownerDocument.defaultView.frameElement?K5Z(D,new jo(C.ref.ownerDocument.defaultView.frameElement),X+1):!0};
mmZ=function(D){return function(C){return C.pipe(D.ResizeObserver?L5r(D):sAn(D),aV(1),ZN())}};
L5r=function(D){return function(C){return C.pipe(Ap(function(X){var c=D.ResizeObserver;if(!c||X.ref===void 0)return yB(hPF.elementGeometry);var W=(new QB(function(p){function g(){X.ref!==void 0&&a.unobserve(X.ref);a.disconnect();O.unsubscribe()}
if(X.ref===void 0)return p.complete(),function(){};
var a=new c(function(P){P.forEach(function(k){p.next(k)})});
a.observe(X.ref);var O=X.JSC$9525_released.subscribe(g);return g})).pipe(DI(D.performanceMonitor,736),GL(function(p){return p.contentRect}));
return fK(yB(X.ref.getBoundingClientRect()),W)}),Wd(Ly))}};
sAn=function(D){return function(C){var X=C.pipe(gU5(D)),c=D.onResize;X=fK(C.pipe(GL(function(){return oTF("resize")})),X,c);
return Ht(C,X).pipe(DI(D.performanceMonitor,737),GL(function(W){W=_.U(W).next().value;return W.ref===void 0?void 0:W.ref.getBoundingClientRect()}),PhF(),Wd(Ly))}};
tn5=function(D,C){var X=ePR(D,C).pipe(aV(1),ZN());return function(c){return function(W){W=W.pipe(Ap(function(p){return p.element}),Wd());
return Ht([X,W]).pipe(Ap(function(p){var g=_.U(p);p=g.next().value;g=g.next().value;return EUr(D,p.intersectionObserver,mmZ(D),p.observations,c,p.flushRecords,g)}),rV(D.queue))}}};
N8o=function(D){return GL(function(C){return C.value.viewportGeometrySourceName!=="nio"?C:Object.assign({},C,{value:Object.assign({},C.value,{exposedViewportLocalGeometry:M3(D,!0),topWindowViewportExternalGeometry:M3(D,!0)})})})};
YzR=function(D,C){return yB(C).pipe(D,GL(function(){return C}))};
ePR=function(D,C){return D.timeProvider.timeline!==ywr?nK(new wV(2)):D.MutationObserver?typeof IntersectionObserver==="undefined"?nK(new wV(0)):(new QB(function(X){var c=new bo,W=new q3(c.next.bind(c),{threshold:[].concat(_.VB(C))});X.next({observations:c.pipe(DI(D.performanceMonitor,735)),intersectionObserver:W,flushRecords:function(p){p=W.takeRecords(p);p.length>0&&c.next(p)}})})).pipe(oV(1),aV(1),ZN()):nK(new wV(1))};
nUm=function(D){return y_5(D.sort(function(C,X){return C.time-X.time}),J_j)};
EUr=function(D,C,X,c,W,p,g){return new QB(function(a){function O(){K||(K=!0,g.ref!==void 0&&C.unobserve(W,g.ref),k.unsubscribe(),B.unsubscribe(),Q.unsubscribe(),L.unsubscribe())}
if(g.ref!==void 0){weZ(C,W);C.observe(W,g.ref);var P=new RV({timestamp:D.timeProvider.now(),value:Object.assign({},hPF,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),k=c.pipe(zL(function(t){return nUm(t)}),dH(function(t){return t.target===g.ref}),GL(function(t){return{timestamp:new lG(t.time,ywr),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:t.rootBounds||lo,topWindowViewportExternalGeometry:t.rootBounds||M3(D,!0),measurementRequests:u,elementGeometrySourceName:"nio",intersectionGeometry:t.intersectionRect,elementGeometry:t.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:t.isIntersecting,isV2Visible:t.isVisible}}}),UF(P),ZN()).subscribe(a),u=new bo,Q=u.subscribe(function(){p(W);
a.next({timestamp:D.timeProvider.now(),value:P.value.value});g.ref!==void 0&&(C.unobserve(W,g.ref),C.observe(W,g.ref))}),B=YzR(X,g).subscribe(function(){u.next()}),K=!1,L=g.JSC$9525_released.subscribe(function(){return O()});
return O}})};
F5W=function(D,C){var X=D.getOnBackgrounded().pipe(GL(function(){return"b"}));
return Pod(C,X).pipe(oV(1),Ky(D.queue))};
D1=function(D){return function(C){var X;return C.pipe(eem(function(c){return void(X=c.timestamp)}),GL(function(c){return c.value}),D,GL(function(c){return{timestamp:X,
value:c}}))}};
Zit=function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.elementGeometry.width*D.elementGeometry.height)};
CF=function(D,C,X){X=X===void 0?function(c,W){return c===W}:X;
return D.timestamp.equals(C.timestamp)&&X(D.value,C.value)};
cI=function(D,C){return C.pipe(GL(function(X){return new XJ(D.timeProvider,{timestamp:D.timeProvider.now(),value:X})}))};
G3m=function(D){return function(C){return C.pipe(EXd(D),GL(function(X){var c=_.U(X);X=c.next().value;c=c.next().value;var W=X.value;return{timestamp:X.timestamp,value:W>=1?!0:W<=0?!1:W>=c}}))}};
T8d=function(){return uG(dH(function(D,C){return C>0}),VnR,OF(-1),Wd())};
Him=function(D,C,X){return D?Ht([C,X]).pipe(dH(function(c){var W=_.U(c);c=W.next().value;W=W.next().value;return c.timestamp.equals(W.timestamp)}),GL(function(c){var W=_.U(c);
c=W.next().value;W=W.next().value;return c.value>W.value?c:W})):C};
jAr=function(D){return function(C){var X=C.pipe(JwR),c=C.pipe(zPZ);return D instanceof QB?D.pipe(Ap(function(W){return Him(W,X,c)})):Him(D.value,X,c)}};
cUJ=function(D,C,X,c){var W=c.geometryIsOccluded,p=c.exposureThreshold,g=c.wasLargeAdAtRender,a=c.allowLargeAdThreshold,O=c.largeAdExposureThreshold,P=c.mayUseViewportShareExposure,k=c.hasMeasurementStarted;c=c.useIntersectionObserverV2;C=Mnd(D,X,C);X=qzd(D,X);c=fHJ(C,c);var u=dmd(D,W,P,C),Q=u.pipe(GL(function(H){return H.value}),Wd(),Ky(D),IV(function(H,q){return Math.max(H,q)},0)),B=u.pipe(GL(function(H){return H.value}),T8d(),Ky(D)),K=C.pipe(RPW,GL(function(H){return H.value}),oV(2),Wd(),Ky(D));
g=lHd(D,C,g,a);var L=g.pipe(OF(!1),Wd(),GL(function(H){return H?O:p}));
a=u.pipe(G3m(L),Wd(),Ky(D));var t=Ht([a,C]).pipe(dH(function(H){var q=_.U(H);H=q.next().value;q=q.next().value;return H.timestamp.equals(q.timestamp)}),GL(function(H){var q=_.U(H);
H=q.next().value;q=q.next().value;return{visible:H.value,geometry:q.value.elementGeometry}}),IV(function(H,q){return!q.visible&&H.visible?H:q},{visible:!1,
geometry:lo}),GL(function(H){return H.geometry}),OF(lo),Ky(D),Wd(Ly));
P=P instanceof QB?P.pipe(Wd(),cd()):ny;L=Ht([P,L]).pipe(cd());var Y=C.pipe(dH(function(H){return H.value.viewportGeometrySourceName!=="ns"&&H.value.elementGeometrySourceName!=="ns"}),IV(function(H){return H+1},0),OF(0),Ky(D)),y=X.pipe(cd(!0),OF(!1),Ky(D));
y=Ht([k,y]).pipe(GL(function(H){var q=_.U(H);H=q.next().value;q=q.next().value;return H&&!q}),Ky(D));
var J=C.pipe(D6t,Wd()),T=J.pipe(GL(function(H){return H.value}),IV(function(H,q){return Math.max(H,q)},0),Wd(),Ky(D));
D=J.pipe(GL(function(H){return H.value}),T8d(),Ky(D));
return{shouldResetExposureSignals:P,shouldResetViewabilitySignals:L,geometrySignals:{readyGeometryWithDefault:C,measurementStrategy:C.pipe(Cqd),creativePosition:t.pipe(Wd(Ly)),visible:a.pipe(Wd(CF)),timestampedExposure:u.pipe(Wd(CF)),maximumExposure:Q,minimumExposure:B,browserSize:C.pipe(X25,Wd(_.lt)),timestampedScreenShare:J,maxScreenShare:T,minScreenShare:D,geometricMeasurementErrors:X,measurementRequests:C.pipe(GL(function(H){return H.value.measurementRequests})),
isLargeAd:g,geometryIsOccluded:W,hasMeasurementStarted:k,geometryMeasurable:y,validMeasurementCount:Y,loadTimeExposure:K,v2VisibilityBitVector:c}}};
qzd=function(D,C){return C.pipe(dH(function(){return!1}),GL(function(X){return X}),Cy(function(X){return oh(new xX(X),D)}))};
Mnd=function(D,C,X){return C.pipe(Oyo(ny),Ky(D)).pipe(Wd(function(c,W){return CF(c,W,biZ)}),OF({timestamp:X.now(),
value:hPF}),Ky(D))};
dmd=function(D,C,X,c){X=c.pipe(jAr(X),D1(GL(function(W){return Math.round(W*100)/100})),Ky(D));
return C instanceof xX?X:Ht([X,C]).pipe(GL(function(W){var p=_.U(W);W=p.next().value;p=p.next().value;return{timestamp:p.timestamp.maximum(W.timestamp),value:p.value?0:W.value}}),Wd(CF),Ky(D))};
lHd=function(D,C,X,c){C=[C.pipe(GL(function(W){return W.value.elementGeometry.width*W.value.elementGeometry.height>=242500}))];
X instanceof QB&&C.push(X.pipe(GL(function(W){return!!W})));
X=Ht(C);return c?X.pipe(GL(function(W){return W.some(function(p){return p})}),OF(!1),Wd(),Ky(D)):oh(new xX(!1),D)};
fHJ=function(D,C){D=Ht([D,C]).pipe(GL(function(W){var p=_.U(W);W=p.next().value;if(p.next().value&&W.value.isIntersecting)return W.value.isV2Visible}),Wd());
var X=D.pipe(GL(function(W){return W===void 0?!0:W}),IV(function(W,p){return W||!p},!1)),c=D.pipe(IV(function(W,p){return p===void 0?W:p?!1:W!=null?W:!0},void 0),GL(function(W){return!!W}));
return Ht([C,$3t(D,X,c)]).pipe(GL(function(W){var p=_.U(W);W=p.next().value;var g=_.U(p.next().value);p=g.next().value;var a=g.next().value;g=g.next().value;var O=0;if(!W)return 0;if(p===void 0)return 16;p&&(O|=1);p||(O|=2);a&&(O|=4);g&&(O|=8);return O}))};
gQm=function(D,C,X,c,W){var p=oQj.timeThresholdMs;var g=g===void 0?new Wxd(C,c):g;return(new QB(function(a){var O=X.pipe(OF(void 0),Ap(function(){return p2F(W)})).pipe(GL(function(P){var k=P.value;
P=P.timestamp;var u=k.visible;k=k.consecutiveViewTime;var Q=k>=p;Q||!u?SOj(g):(P=Math.max(0,RG(C.now(),P)),U6m(g,Math.max(0,p-k-P)));return Q}),IV(function(P,k){return k||P},!1),Wd()).subscribe(a);
return function(){g.dispose();O.unsubscribe()}})).pipe(Pd(function(a){return!a},!0),Ky(D))};
p2F=function(D){return vUn([D,D.pipe(B8R())]).pipe(GL(function(C){var X=_.U(C);C=X.next().value;X=X.next().value;return{timestamp:C.timestamp,value:{visible:C.value,consecutiveViewTime:X.value}}}),Wd(function(C,X){return CF(C,X,function(c,W){return c.consecutiveViewTime===W.consecutiveViewTime&&c.visible===W.visible})}))};
ahj=function(){return uG(ug3(),IV(function(D,C){return Math.max(D,C)},0),GL(function(D){return Math.round(D)}))};
Ihr=function(D){return uG(G3m(yB(D)),ahj())};
O7n=function(D,C){return C instanceof QB?C.pipe(Ap(function(X){return(X=X?15:null)?nK(new wV(X)):D})):(C=C.value?15:null)?nK(new wV(C)):D};
AUj=function(D){var C=new wV(13);if(D.length<1)return{chain:MA,capturedErrors:MA};var X=new bo,c=D[0];return{chain:D.slice(1).reduce(function(W,p){return W.pipe(Cy(function(g){X.next(g);return p}))},c).pipe(Cy(function(W){X.next(W);
return nK(C)}),UF(new bo),ZN()),
capturedErrors:X}};
Pqd=function(D,C){var X=D.pipe(UF(new bo),ZN());return Ap(function(c){return X.pipe(C(c))})};
vQm=function(D,C){if(D.inCrossDomainIframe)return nK(new wV(6));var X=new bo;return fK(yB({}),C,X).pipe(GL(function(){return{timestamp:D.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:$6d(D),topWindowViewportExternalGeometry:M3(D,!0),measurementRequests:X,viewportLocalAppOffset:{x:0,y:0}}}}),rV(D.queue))};
$6d=function(D){var C=M3(D,!1);if(!D.inIframe||!nXm(D.global.parent)||D.global.parent===D.global)return C;var X=new WI(D.global.parent,D.debugChannel);X.beaconFactory=D.beaconFactory;X=$6d(X);D=D.global.frameElement.getBoundingClientRect();return Kvt(hi5(Kvt(X,D),{x:C.left-D.left,y:C.top-D.top}),C)};
i7m=function(D){if(D.prerendering)return 3;var C;return(C={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[D.visibilityState||D.webkitVisibilityState||D.mozVisibilityState||""])!=null?C:0};
k4j=function(D){return D.document.JSC$9536_onVisibilityChange.pipe(GL(function(C){return C==="visible"}),Wd(),Ky(D.queue))};
urF=function(D,C,X){var c;return C.pipe(Wd(),Ap(function(W){return X.pipe(GL(function(){if(!c){c=!0;try{W.next()}finally{c=!1}}return!0}))}),OF(!1),Ky(D.queue))};
QeR=function(D){return uG(D1(GL(function(C){return C>=1?!0:C<=0?!1:C>=D})),k35(),GL(function(C){return Math.round(C)}))};
b7R=function(D,C,X,c,W){var p=Bq5;if(p.length>1)for(var g=0;g<p.length-1;g++)if(p[g]<p[g+1])throw Error();g=W.pipe(OF(void 0),Ap(function(){return X.pipe(B8R())}),Wd(),Ky(D));
W=W.pipe(OF(void 0),Ap(function(){return X.pipe(ahj())}),Wd(),Ky(D));
return{totalMeasurementTime:c.pipe(OF(void 0),Ap(function(){return C.pipe(GL(function(a){return{timestamp:a.timestamp,value:!0}}),k35())}),Wd(),Ky(D)),
totalUnviewedTime:c.pipe(OF(void 0),Ap(function(){return C.pipe(GL(function(a){return{timestamp:a.timestamp,value:a.value===0}}),k35())}),Wd(),Ky(D)),
maxTimeOnScreen:c.pipe(OF(void 0),Ap(function(){return C.pipe(QAZ(Ihr,p))}),Wd(_.lt),Ky(D)),
timeOnScreen:c.pipe(OF(void 0),Ap(function(){return C.pipe(QAZ(QeR,p),GL(function(a){return a.map(function(O,P){return P>0?O-a[P-1]:O})}))}),Wd(_.lt),Ky(D)),
maxConsecutiveViewTime:W,consecutiveViewTime:g.pipe(Wd(CF),Ky(D))}};
KxZ=function(D){var C=!0;C=C===void 0?!1:C;return uG(Ap(function(X){return rUt(D.document,X,C)}),Ky(D.queue))};
hjh=function(D,C,X){var c=X.pipe(GL(function(W){return{value:W,timestamp:D.timeProvider.now()}}),Wd(CF));
return C instanceof QB?C.pipe(Wd(),Ap(function(W){return W?oh(new xX({value:!1,timestamp:D.timeProvider.now()}),D.queue):c})):C.value===!1?c:new xX(!1)};
x6m=function(D,C,X,c,W,p,g){var a=oQj;C=C instanceof QB?C.pipe(OF(!1),Wd()):C;var O=!D.isMobile();X=hjh(D,X,c);D=g.measurableCreative.pipe($mn(D.queue));return Object.assign({},a,{geometryIsOccluded:X,wasLargeAdAtRender:W,allowLargeAdThreshold:O,mayUseViewportShareExposure:C,hasMeasurementStarted:D,useIntersectionObserverV2:p})};
sen=function(D,C,X,c,W,p){var g=1;p=p===void 0?!0:p;g=g===void 0?.01:g;var a=a===void 0?D.timeProvider.intervalObservable(100).pipe(Ky(D.queue)):a;return D.performanceMonitor.timeExecution(916,function(){return LxR(D,C.pipe(rV(D.queue)),X.pipe(rV(D.queue)),c,W,p,g,a)})()};
LxR=function(D,C,X,c,W,p,g,a){var O=k4j(D).pipe(GL(function(k){return!k})),P=new m6m(D,[new ejm(D,Bq5),
new EQ3(D,a)]);a=oUF(tjZ,Nqm);return f1r(D,C,function(k,u){var Q=oh(new xX(u.element),k.queue).pipe(KxZ(k),Ky(k.queue)),B={loadedElement:Q,shouldMeasure:Q.pipe(cd(!0)),measurableCreative:Q.pipe(GL(function(H){var q=q===void 0?Symbol():q;return Object.freeze({symbol:q,element:oh(new xX(H),k.queue)})})),
creativeSearchResult:oh(new xX("mue"),k.queue)},K=new xX(!1),L=new xX(!1),t=new xX(17),Y=new xX(!1),y=new xX(!1),J=oh(pF,k.queue);K=P.buildGeometrySource(B,{inApp:K,useV2:!1,requestSource:oh(t,k.queue)}).geometrySource;B=x6m(k,Y,L,O,y,J,B);L=cUJ(k.queue,k.timeProvider,K,B);B=L.geometrySignals;Y=L.shouldResetViewabilitySignals;L=b7R(k.queue,B.timestampedExposure,B.visible,L.shouldResetExposureSignals,Y);Y=gQm(k.queue,k.timeProvider,Y,B.measurementRequests,B.visible);y=X.pipe(dH(function(H){return H===
u.element.ref}),GL(function(){return"ur"}));
J=uEm(k.timeProvider,W).pipe(cd("t"));y=F5W(k,fK(y,J));J=urF(k,B.measurementRequests,y.pipe(dH(function(H){return H!==null})));
K=y.pipe(dH(function(H){return H!==null}),GL(function(){return i7m(k.global.document)===1}));
var T=YOt(k.document);return Object.assign({},{beaconFactory:new xX(k.beaconFactory),context:new xX(k),inferredPingId:new xX("lidar2"),timeOnScreenPingId:new xX("lidartos"),binaryContext:new xX(17),binaryVersion:new xX(c),requestSource:t,contextValidationErrors:new xX(k.validate()?null:new FE),contextVisibilityKnown:new xX(T),payloadMapper:new xX(XeF),endOfSessionReason:y,timeOnScreenReason:y,requestMeasurementOnEndOfSession:J,hasImpressionFired:yUJ,crossDomainIframeState:new xX(k.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:pF,inFetchLaterBeaconExperiment:pF,isTurtlex:pF,turtlexReportEventData:new xX(""),reportFencedFrameEvent:ny,isViewableAttributionEnabled:pF,inViewableAttributionExperiment:new xX(0),fetchBeaconFactory:ny,supportsPendingBeacon:pF,supportsFetchLater:pF,emit:new xX(Sz3),beginToRenderEvent:new xX(Symbol()),activeViewUnmeasurableEvent:new xX(Symbol()),activeViewViewableEvent:new xX(Symbol()),creativeFound:yUJ,immediateUrlPrefixes:new xX(u.immediateUrls),timeOnScreenUrlPrefixes:new xX(u.timeOnScreenUrls),
cpmavUrls:ny,viewableRelayUrls:ny,measurementDeferralState:new xX(2),urlSerializer:new xX(AwZ),viewUrlSerializer:new xX(nQm),isCreativeLoaded:Q.pipe($mn(k.queue)),pageVisible:O.pipe(GL(function(H){return!H})),
eosPageVisible:K,timestampedExposureHistory:B.timestampedExposure.pipe(IV(function(H,q){H.push(q);return H},[]))},B,{viewable:cI(k,Y),
maxTimeOnScreen:cI(k,L.maxTimeOnScreen),timeOnScreen:cI(k,L.timeOnScreen),maxConsecutiveViewTime:cI(k,L.maxConsecutiveViewTime),consecutiveViewTime:L.consecutiveViewTime.pipe(GL(function(H){return new XJ(k.timeProvider,H)})),
totalMeasurementTime:cI(k,L.totalMeasurementTime),totalUnviewedTime:cI(k,L.totalUnviewedTime),userAgentClientHints:cRJ(k),clientOrderPingCounter:new xX(new RiZ)})},cwo(D,g),W5n(p?peZ(a,w2j):peZ(a,Fxn),Z7Z))};
G4r=function(D){var C=_.MJ.apply(1,arguments).filter(Boolean).join("&");if(!C)return D;var X=D.match(/[?&]adurl=/);return X?D.slice(0,X.index+1)+C+"&"+D.slice(X.index+1):D+(D.indexOf("?")<0?"?":"&")+C};
Sp=function(D,C){return C?"&"+D+"="+encodeURIComponent(C):""};
Vjh=function(){try{var D,C;return!!((D=window)==null?0:(C=D.top)==null?0:C.location.href)&&!1}catch(X){return!0}};
_.Ue=function(D){D&&typeof D.dispose=="function"&&D.dispose()};
_.go=function(D){for(var C=0,X=arguments.length;C<X;++C){var c=arguments[C];_.JW(c)?_.go.apply(null,c):_.Ue(c)}};
H7F=function(){var D=Tqo();D=D===void 0?"bevasrsg":D;return new Promise(function(C){var X=window===window.top?window:Vjh()?window:window.top,c=X[D],W;((W=c)==null?0:W.bevasrs)?C(new ah(c.bevasrs)):(c||(c={},c=(c.nqfbel=[],c),X[D]=c),c.nqfbel.push(function(p){C(new ah(p))}))})};
JU3=function(D){var C={c:D.m1,e:D.fcn,mc:D.dZm,me:D.ccQ};D.lQ&&(C.co={c:D.lQ.eJe,a:D.lQ.rXa,s:D.lQ.ycj});return C};
zjn=function(D){var C,X,c={m1:D.c,fcn:D.e,dZm:(C=D.mc)!=null?C:!1,ccQ:(X=D.me)!=null?X:!1};D.co&&(c.lQ={eJe:D.co.c,rXa:D.co.a,ycj:D.co.s});return c};
jet=function(D){return function(){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D(),2);C=X.yieldResult;return X.return({f:function(){return C.gpf()},
c:function(c){return C.eaG(c)},
m:function(c){return C.t6(zjn(c))},
mws:function(c){return C.mjn(zjn(c))}})})}};
Mjo=function(D,C){var X=Tqo();X=X===void 0?"bevasrsg":X;C={s:function(p){var g;return D.snapshot(Object.assign({},p.c&&{m1:p.c},p.s&&{cDw:p.s},{zAo:(g=p.p)!=null?g:!0}))},
e:function(p){var g;return void((g=D.nHL)==null?void 0:g.call(D,p))},
c:function(p,g){return D.jRl(p,g)},
p:D.tFL,l:function(){return D.dhl()},
wpc:C?jet(C):void 0};var c=window===window.top?window:Vjh()?window:window.top,W=c[X];if(W){W.bevasrs=C;if(W.nqfbel!==void 0)for(X=_.U(W.nqfbel),c=X.next();!c.done;c=X.next())c=c.value,c(C);W.nqfbel=void 0}else W={},W=(W.bevasrs=C,W.nqfbel=void 0,W),c[X]=W};
fho=function(D){var C=C===void 0?52:C;var X=[];_.Ih(D,qOR,6,_.AR()).forEach(function(c){_.PI(c,2)<=C&&X.push(_.PI(c,1))});
return X};
d65=function(D){var C=C===void 0?52:C;var X=[];_.Ih(D,qOR,6,_.AR()).forEach(function(c){_.PI(c,2)>C&&X.push(_.PI(c,1))});
return X};
RjZ=function(D){D.then(function(){},function(){})};
$T=function(D){return{fieldType:1,fieldName:D}};
vI=function(D){return{fieldType:2,fieldName:D}};
_.ic=function(D){return{fieldType:3,fieldName:D}};
lh5=function(){function D(){W[0]=1732584193;W[1]=4023233417;W[2]=2562383102;W[3]=271733878;W[4]=3285377520;k=P=0}
function C(u){for(var Q=g,B=0;B<64;B+=4)Q[B/4]=u[B]<<24|u[B+1]<<16|u[B+2]<<8|u[B+3];for(B=16;B<80;B++)u=Q[B-3]^Q[B-8]^Q[B-14]^Q[B-16],Q[B]=(u<<1|u>>>31)&4294967295;u=W[0];var K=W[1],L=W[2],t=W[3],Y=W[4];for(B=0;B<80;B++){if(B<40)if(B<20){var y=t^K&(L^t);var J=1518500249}else y=K^L^t,J=1859775393;else B<60?(y=K&L|t&(K|L),J=2400959708):(y=K^L^t,J=3395469782);y=((u<<5|u>>>27)&4294967295)+y+Y+J+Q[B]&4294967295;Y=t;t=L;L=(K<<30|K>>>2)&4294967295;K=u;u=y}W[0]=W[0]+u&4294967295;W[1]=W[1]+K&4294967295;W[2]=
W[2]+L&4294967295;W[3]=W[3]+t&4294967295;W[4]=W[4]+Y&4294967295}
function X(u,Q){if(typeof u==="string"){u=unescape(encodeURIComponent(u));for(var B=[],K=0,L=u.length;K<L;++K)B.push(u.charCodeAt(K));u=B}Q||(Q=u.length);B=0;if(P==0)for(;B+64<Q;)C(u.slice(B,B+64)),B+=64,k+=64;for(;B<Q;)if(p[P++]=u[B++],k++,P==64)for(P=0,C(p);B+64<Q;)C(u.slice(B,B+64)),B+=64,k+=64}
function c(){var u=[],Q=k*8;P<56?X(a,56-P):X(a,64-(P-56));for(var B=63;B>=56;B--)p[B]=Q&255,Q>>>=8;C(p);for(B=Q=0;B<5;B++)for(var K=24;K>=0;K-=8)u[Q++]=W[B]>>K&255;return u}
for(var W=[],p=[],g=[],a=[128],O=1;O<64;++O)a[O]=0;var P,k;D();return{reset:D,update:X,digest:c,digestString:function(){for(var u=c(),Q="",B=0;B<u.length;B++)Q+="0123456789ABCDEF".charAt(Math.floor(u[B]/16))+"0123456789ABCDEF".charAt(u[B]%16);return Q}}};
WCn=function(D,C){C=C===void 0?DGr:C;if(!CXd){var X;D=(X=D.navigator)==null?void 0:X.userAgentData;if(!D||typeof D.getHighEntropyValues!=="function"||D.brands&&typeof D.brands.map!=="function")return Promise.reject(Error("ua"));XKj((D.brands||[]).map(function(W){var p=new cgd;p=_.N3(p,1,W.brand);return _.N3(p,2,W.version)}));
typeof D.mobile==="boolean"&&_.kT(oz3,2,D.mobile);CXd=D.getHighEntropyValues(C)}var c=new Set(C);return CXd.then(function(W){var p=oz3.clone();c.has("platform")&&_.N3(p,3,W.platform);c.has("platformVersion")&&_.N3(p,4,W.platformVersion);c.has("architecture")&&_.N3(p,5,W.architecture);c.has("model")&&_.N3(p,6,W.model);c.has("uaFullVersion")&&_.N3(p,7,W.uaFullVersion);return p.serialize()}).catch(function(){return oz3.serialize()})};
uc=function(D,C,X,c){this.initialValue_=D;this.maxValue_=C;this.currBaseValue_=this.currValue_=D;this.randomFactor_=X||0;this.backoffFactor_=c||2};
QL=function(D){this.src=D;this.listeners={};this.typeCount_=0};
gz3=function(){for(var D;D=pK5.remove();){try{D.fn.call(D.scope)}catch(C){om(C)}SYm.put(D)}UGm=!1};
_.afh=function(D){switch(D){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}};
IfZ=function(D){switch(D){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""}};
_.OC3=function(){};
BTh=function(D,C,X,c){D=Agm(PXm($Gn(new _.BI(1828,"0"),D),new vzt)).disableWithCredentials();C.length&&iC5(D,kVd(new uLj,C));c!==void 0&&(D.destinationUrl=c);var W=new QQW(1828,"","",!1,"",D.build());_.hR(W,D);var p=new xT({flush:function(g){try{W.flush(g)}catch(a){X(a)}}});
p.addOnDisposeCallback(function(){setTimeout(function(){try{p.snapshotAndFlush()}finally{W.dispose()}})});
p.invocationLimit=1E5;p.flushInterval=3E4;p.JSC$9952_flushTimer.setInterval(3E4);return p};
LF=function(){var D,C,X;return(X=(D=globalThis.performance)==null?void 0:(C=D.now)==null?void 0:C.call(D))!=null?X:Date.now()};
KCn=function(D,C){if(D.disable)return new bCR;C=C?fho(C):[];D={s0:D.s0,mrL:D.ham,giX:D.cgI,destinationUrl:D.destinationUrl,esL:D.esL,uxJ:D.uxJ};C=C===void 0?[]:C;return new rgZ(D,C)};
hGm=function(D){if(!D)return null;D=_.se(D,2);return D===null||D===void 0?null:RH(D)};
_.xGF=function(D){if(!D)return null;D=_.se(D,4);return D===null||D===void 0?null:_.t2(D)};
mGo=function(D,C){return C?LCm(C):D?sQ3(D):Promise.resolve()};
LCm=function(D){return new Promise(function(C,X){var c=_.mv("SCRIPT"),W=_.xGF(D);_.gH(c,W);c.onload=function(){_.ep(c);C()};
c.onerror=function(){_.ep(c);X(Error("Fa"))};
(Ee("HEAD")[0]||document.documentElement).appendChild(c)})};
sQ3=function(D){return new Promise(function(C){var X=_.mv("SCRIPT");if(D){var c=_.se(D,6);c=c===null||c===void 0?null:_.pK(c)}else c=null;_.Uu(X,c);(Ee("HEAD")[0]||document.documentElement).appendChild(X);_.ep(X);C()})};
tR=function(D,C,X){var c,W=new Promise(function(p){c=setTimeout(p,C)});
return Promise.race([D.finally(function(){return void clearTimeout(c)}),
W.then(X)])};
eGt=function(D,C){try{return globalThis.sessionStorage.setItem(D,C),!0}catch(X){return!1}};
EzW=function(D,C,X,c){C=C===void 0?0:C;X=X===void 0?D.length:X;var W=0;for(c&&(W=EzW(c));C<X;C++)c=typeof D==="string"?D.charCodeAt(C):D[C],W=tqh(31,W)+c|0;return W};
NTh=function(D,C){return[EzW(D,0,D.length>>1,C),EzW(D,D.length>>1)]};
YY5=function(D){var C=_.U(NTh(D,Nd));D=C.next().value;C=C.next().value;return D.toString(16)+C.toString(16)};
ygm=function(D,C){var X=NTh(C);D=new Uint32Array(D.buffer);C=D[0];var c=_.U(X);X=c.next().value;c=c.next().value;for(var W=1;W<D.length;W+=2){for(var p=C,g=W,a=X,O=c,P=0;P<22;P++)g=g>>>8|g<<24,g+=p|0,g^=a+38293,p=p<<3|p>>>29,p^=g,O=O>>>8|O<<24,O+=a|0,O^=P+38293,a=a<<3|a>>>29,a^=O;p=[p,g];D[W]^=p[0];W+1<D.length&&(D[W+1]^=p[1])}};
nzJ=function(D,C,X,c,W){var p=(4-(Nd.length+X.length)%4)%4,g=new Uint8Array(4+p+Nd.length+4+X.length),a=new DataView(g.buffer),O=0;a.setUint32(O,Math.random()*4294967295);O=O+4+p;g.set(Nd,O);O+=Nd.length;a.setUint32(O,W);g.set(X,O+4);ygm(g,c);return D.insert(C,function(P){return void globalThis.sessionStorage.removeItem(P)})?eGt(C,_.tP(g))?"s":"t":"i"};
wKF=function(D,C){var X=globalThis.sessionStorage.getItem(D);if(!X)return["m"];try{var c=_.Dk(X);ygm(c,C)}catch(W){return globalThis.sessionStorage.removeItem(D),["c"]}for(C=4;C<7&&c[C]===0;)C++;for(X=0;X<Nd.length;X++)if(c[C++]!==Nd[X])return globalThis.sessionStorage.removeItem(D),["d"];X=(new DataView(c.buffer)).getUint32(C);return Math.floor(Date.now()/1E3)>=X?(globalThis.sessionStorage.removeItem(D),["e"]):["a",new Uint8Array(c.buffer,C+4)]};
FCR=function(D){return globalThis.TextEncoder?(new TextEncoder).encode(D):_.yL(D)};
ZCm=function(D){var C=D,X;return function(){if(C){var c=C;C=void 0;X=c.apply(this,arguments)}return X}};
Vq3=function(D){return wx(function(C){if(C instanceof D)return!0;var X,c,W=C==null?void 0:(X=C.ownerDocument)==null?void 0:(c=X.defaultView)==null?void 0:c[D.name];return GVR(W)&&C instanceof W})};
_.FJ=function(D,C,X){_.nF.call(this);this.JSC$10166_listener_=D;this.JSC$10166_interval_=C||0;this.handler_=X;this.callback_=(0,_.wo)(this.JSC$10168_doAction_,this)};
_.Z1=function(D){D=TT5(D);return _.t2(D)};
TT5=function(D){return D===null?"null":D===void 0?"undefined":D};
Jgm=function(D){if(D&&D.focus)if(D!==document.activeElement)D.focus();else return HCj(function(){return _.I(function(C){document.activeElement&&document.activeElement.blur();return C.return(HCj(function(){D.focus()}))})})};
_.zGo=function(D){var C=C===void 0?5:C;setTimeout(function(){var X;return _.I(function(c){c.nextAddress==1&&(X=document.activeElement);if(c.nextAddress!=5)return(document.activeElement===X||document.activeElement===document.body)&&C>=0&&D?c.yield(Jgm(D),5):c.jumpTo(0);if(document.activeElement===D)return c.return();D=D.parentElement;--C;return c.jumpTo(2)})},15)};
HCj=function(D){return new Promise(function(C){requestAnimationFrame(function(){C(D())})})};
Mq3=function(D){if(_.Gy)D(_.Gy);else{var C;((C=jQJ)!=null?C:jQJ=[]).push(D)}};
HI=function(){!_.Gy&&_.Ty&&_.qYr(_.Ty());return _.Gy};
_.qYr=function(D){_.Gy=D;var C;(C=jQJ)==null||C.forEach(Mq3);jQJ=void 0};
_.JR=function(D){_.Gy&&_.Gy.beforeLoadModuleCode(D)};
_.zy=function(){_.Gy&&_.Gy.JSC$11220_setLoaded()};
jp=function(D){return Nxt(D)?Number(D):String(D)};
ffZ=function(D){this.action=D;this.wfv=!1};
dGh=function(D,C){ffZ.call(this,"set-drive-options");this.appId=D;this.appOrigin=C};
RGZ=function(D){ffZ.call(this,"visibility");this.visible=D};
lfj=function(D,C,X){Md.call(this,D,C,X)};
DXj=function(D){qd.call(this,D)};
Cln=function(D){D=D&&D.getWindow()||window;return D.gadgets&&D.gadgets.rpc};
cCr=function(D,C){var X=C&&C.getWindow()||window;if(Cln(C))D();else if(Xzd)Xzd.push(D);else var c=Xzd=[D],W=X.setInterval(function(){if(Cln(C)){X.clearInterval(W);for(var p=0;p<c.length;p++)c[p]();Xzd=null}},100)};
WI3=function(D,C){var X=new fF(D);_.hR(C,X);var c={passive:!1};C.listen(X,"mousewheel",function(W){return void ohJ(D,W)},c).listen(D,"scroll",function(W){return void ohJ(D,W)},c)};
ohJ=function(D,C){var X;a:{for(X=C.target;X;){if(X.nodeType==1){var c=_.Rh(X,"overflowY");if(c=="auto"||c=="scroll")break a}X=X.parentNode}X=null}if(!X||!_.lc(D,X)||X.scrollHeight==X.clientHeight||C.deltaY>0&&Math.abs(X.scrollTop-(X.scrollHeight-X.clientHeight))<=1||C.deltaY<0&&X.scrollTop==0)C.preventDefault(),C.stopPropagation()};
Uz=function(D,C,X,c,W,p,g,a,O){a=a===void 0?!1:a;O=O===void 0?!1:O;Md.call(this,void 0,void 0,void 0);Md.call(this,p?p+" picker modal-dialog":"picker modal-dialog",!0,X);_.DH(D,"protocol");this.iframeManager_=new pzd;this.targetId_=Ci();this.rpcToken_=Ci();D=_.Xg(D);_.ce(D,"hostId");X=_.ce(D,"parent");this.useGapi_=!O&&!0||(X==null?void 0:X.includes("onepick.corp.google.com"));a&&_.oA(D,"fv2","true");this.setUrl(D.toString());this.preferredDialogWidth_=c;this.preferredDialogHeight_=W;c!==void 0||
W!==void 0?c=!0:(c=_.ce(_.Xg(D.toString()),"hostId"),SHR||(SHR=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!SHR.has(c));this.autoSizeDialog_=c;this.JSC$10356_gadgetsDomHelper_=g||this.JSC$10307_dom_;C&&(g=this.JSC$10356_gadgetsDomHelper_,C=_.ce(_.Xg(this.JSC$10358_url_),"grugl")=="true"?UXo:gho,Cln(g)||(g=g||tp(document),c=g.createElement("SCRIPT"),_.gH(c,C),c.type="text/javascript",g.JSC$9491_document_.body.appendChild(c)));
D=D.toString();C=null;g=D.indexOf("/picker?");g>-1?C=D.substring(0,g+8-1):SZ(D,"/picker")&&(C=D);C&&this.setRelayUrl(C+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(D=this.buttons_,D.JSC$10341_element_=this.buttonEl_,D.render()):_.aG(this.buttonEl_,ai3),_.Sn(this.buttonEl_,!!this.buttons_))};
_.PlJ=function(D){var C=C===void 0?IiJ:C;var X=_.fh(D),c=function(p){p=_.U(p);p.next();p=g8(p);return C(X,p)},W=function(p){var g=_.U(p);
p=g.next().value;g=g8(g);return D.apply(p,g)};
return function(){var p=_.MJ.apply(0,arguments),g=this||_.co,a=Oqt.get(g);a||(a={},Oqt.set(g,a));return ACZ(a,[this].concat(_.VB(p)),W,c)}};
aA=function(D){var C={};D=D.replace(/\r/g,"").split("\n");for(var X=0;X<D.length;X++){var c=D[X],W=c.indexOf(":");W<0||(C[c.substring(0,W)]=c.substring(W+2,c.length))}return C};
$Xn=function(D,C,X){X=X===void 0?function(){}:X;
return D?C():X()};
_.iqh=function(D){var C;return((C=vhJ.documentOverride)!=null?C:D).__wizdispatcher};
_.Oz=function(D){var C=IA;IA=D;return C};
_.usr=function(D){return D===kbh||(D==null?void 0:D.name)==="\u0275NotFound"};
_.Aw=function(D,C){var X;if((X=D)==null?0:X.isDisposed)throw Error("jb`"+String(D.debugName));for(;D!==void 0;){X=D;if(X.retrieve)return X.retrieve(C,{optional:!0});D=D.parent}return kbh};
Pe=function(D){return{"\u0275prov":{providedIn:"root",token:Symbol(D),factory:void 0,value:void 0}}};
_.QpZ=function(D){var C=IA;if(!C){switch(D===void 0?3:D){case 0:D=Error("ib");break;case 1:D=Error("kb");break;case 2:D=Error("lb");break;default:D=Error("mb")}throw D;}return C};
BDF=function(D){var C=_.Oz(D);D={};return D[Symbol.dispose]=function(){_.Oz(C)},D};
bqZ=function(D,C){D.disposables||(D.disposables=[]);D.disposables.push(C)};
$U=function(D){var C=IA;C&&!C.isDisposed&&(bqZ(C,D),D.parent=C)};
KIn=function(D){if(D.disposables){for(var C=_.U(D.disposables),X=C.next();!X.done;X=C.next())X=X.value,typeof X==="function"?X():rCr(X);D.disposables.length=0}};
rCr=function(D){if(!D.isDisposed){D.isDisposed=!0;var C;(C=D[Symbol.dispose])==null||C.call(D);delete D.parent;KIn(D)}};
NDr=function(D){var C={retrieve:function(X){switch(X.\u0275prov.token){case hxm.\u0275prov.token:var c=D.asyncDeps;break;case _.xXm.\u0275prov.token:c=D.rootElement;break;case LIm.\u0275prov.token:c=D.modelRootElement;break;case spZ.\u0275prov.token:c=D.appContext;break;case mXJ.\u0275prov.token:c=D.rendererData;break;case ext.\u0275prov.token:c=D.injectingConstructor;break;case Eh3.\u0275prov.token:c=D.dispatcher}if(c)X=c;else a:{for(c=C.parent;c;){var W=c;if(W.retrieve){X=W.retrieve(X);break a}c=
c.parent}c=X.\u0275prov.token;W=tRJ[c];W!==void 0?X=W:(W=X.\u0275prov.providedIn,X.\u0275prov.factory?(X=X.\u0275prov.factory(),c&&W==="root"&&(tRJ[c]=X)):X=kbh)}return X}};
$U(C);return C};
YHR=function(){var D=_.QpZ(1),C=_.Aw(D,spZ);if(!_.usr(C))return C;D=_.Aw(D,Eh3);if(!_.usr(D))return D.getOptionalAppContext()};
yCd=function(D){if(typeof document!=="undefined"&&document&&document.getElementById&&(D=document.getElementById(D))){var C=D.tagName.toUpperCase();if(C=="SCRIPT"||C=="LINK")return D}return null};
wz5=function(D,C){if((D=D===void 0?"":D)&&C)throw Error("sb");var X="";var c=_.co._F_jsUrl;(D=C||yCd(D))&&(X=D.src?D.src:D.getAttribute("href"));if(c&&X){if(c!=X)throw Error("tb`"+c+"`"+X);X=c}else X=c||X;if(!nhZ(X))throw Error("ub");return X};
VRF=function(){if(!FIn){FIn=!0;try{var D=wz5(_.co._F_jsUrl?"":"base-js")}catch(c){return}var C=Zqr(GbW(D)),X=Object.keys(C);X.length!==0&&Mq3(function(c){for(var W=_.U(X),p=W.next();!p.done;p=W.next()){p=p.value;for(var g=_.U(Object.keys(C[p])),a=g.next();!a.done;a=g.next())c.addExtraEdge(p,a.value)}})}};
Hqd=function(){var D=Object.assign({},TDn);Object.getOwnPropertyNames(TDn).forEach(function(C){ve[C]!==void 0&&(D[C]=ve[C])});
return D};
JCd=function(D,C){if(ve.enablePerformanceTiming){var X,c;(c=(X=performance).mark)==null||c.call(X,D+"Start__"+C)}};
zxr=function(D,C){if(ve.enablePerformanceTiming){var X,c;(c=(X=performance).measure)==null||c.call(X,D+"__"+C,D+"Start__"+C)}};
jpW=function(D,C,X){var c;return D&&C?D+"__"+C:(c=D!=null?D:C)!=null?c:X};
MRh=function(D,C){return Object.is(D,C)};
kU=function(D){var C=ih;ih=D;return C};
dX3=function(D){if(uh)throw Error("Z");if(ih!==null){var C=ih.producersTail;if(C===void 0||C.producer!==D){var X=void 0,c=ih.recomputing;if(c&&(X=C!==void 0?C.nextProducer:ih.producers,X!==void 0&&X.producer===D)){ih.producersTail=X;X.lastReadVersion=D.version;return}var W=D.consumersTail,p;if(!(p=W===void 0||W.consumer!==ih)){if(c){a:{p=ih;c=p.producersTail;if(c!==void 0){p=p.producers;do{if(p===W){c=!0;break a}if(p===c)break;p=p.nextProducer}while(p!==void 0)}c=!1}c=!c}p=c}p&&(c=Qv(ih),X={producer:D,
consumer:ih,nextProducer:X,prevConsumer:W,lastReadVersion:D.version,nextConsumer:void 0},ih.producersTail=X,C!==void 0?C.nextProducer=X:ih.producers=X,c&&qHn(D,X))}}};
bh=function(D){if(!Qv(D)||D.dirty)if(D.dirty||D.lastCleanEpoch!==Be)(D.producerMustRecompute(D)||RxF(D))&&D.producerRecomputeValue(D),D.dirty=!1,D.lastCleanEpoch=Be};
lio=function(D){if(D.consumers!==void 0){var C=uh;uh=!0;try{for(var X=D.consumers;X!==void 0;X=X.nextConsumer){var c=X.consumer;c.dirty||(D=void 0,c.dirty=!0,lio(c),(D=c.consumerMarkedDirty)==null||D.call(c,c))}}finally{uh=C}}};
DNn=function(){var D;return((D=ih)==null?void 0:D.consumerAllowSignalWrites)!==!1};
CwZ=function(D){D&&(D.producersTail=void 0,D.recomputing=!0);return kU(D)};
cYR=function(D){D.recomputing=!1;var C=D.producersTail,X=C!==void 0?C.nextProducer:D.producers;if(X!==void 0){if(Qv(D)){do X=XLr(X);while(X!==void 0)}C!==void 0?C.nextProducer=void 0:D.producers=void 0}};
RxF=function(D){for(D=D.producers;D!==void 0;D=D.nextProducer){var C=D.producer,X=D.lastReadVersion;if(X!==C.version)return!0;bh(C);if(X!==C.version)return!0}return!1};
qHn=function(D,C){var X=D.consumersTail,c=Qv(D);X!==void 0?(C.nextConsumer=X.nextConsumer,X.nextConsumer=C):(C.nextConsumer=void 0,D.consumers=C);C.prevConsumer=X;D.consumersTail=C;if(!c)for(D=D.producers;D!==void 0;D=D.nextProducer)qHn(D.producer,D)};
XLr=function(D){var C=D.producer,X=D.nextProducer,c=D.nextConsumer,W=D.prevConsumer;D.nextConsumer=void 0;D.prevConsumer=void 0;c!==void 0?c.prevConsumer=W:C.consumersTail=W;if(W!==void 0)W.nextConsumer=c;else if(C.consumers=c,!Qv(C))for(D=C.producers;D!==void 0;)D=XLr(D);return X};
Qv=function(D){return D.consumerIsAlwaysLive||D.consumers!==void 0};
WMo=function(D){var C=Object.create(olm);C.computation=D;D=function(){bh(C);dX3(C);if(C.value===r8)throw C.error;return C.value};
D[Ki]=C;return D};
gld=function(D,C){var X=Object.create(pLF);X.value=D;C!==void 0&&(X.equal=C);D=function(){dX3(X);return X.value};
D[Ki]=X;return[D,function(c){return SUm(X,c)},
function(c){DNn()||UNd(X);SUm(X,c(X.value))}]};
SUm=function(D,C){DNn()||UNd(D);if(!D.equal(D.value,C)){D.value=C;D.version++;Be++;lio(D);var X;(X=aoZ)==null||X(D)}};
OQm=function(D,C,X){var c=Object.create(IoJ);c.source=D;c.computation=C;X!=void 0&&(c.equal=X);D=function(){bh(c);dX3(c);if(c.value===r8)throw c.error;return c.value};
D[Ki]=c;return D};
_.hw=function(D){var C=kU(null);try{return D()}finally{kU(C)}};
AYt=function(D,C){JCd("signalSet",C.debugName);try{D()}finally{zxr("signalSet",C.debugName)}};
Pwt=function(D,C,X){D=gld(D,C.equals);var c=D[0],W=c[Ki];W.debugName=jpW(C.debugName,X,"[signal]");if(!ve.enablePerformanceTiming)return D;var p=D[1],g=D[2];return[c,function(a){AYt(function(){return void p(a)},W)},
function(a){AYt(function(){return void g(a)},W)}]};
vl5=function(D){var C=Object.create($NF);C.debugName=D;!IA||$U(C);return C};
iQj=function(D,C){var X=vl5(C);C=_.Oz(X);try{D(X)}finally{_.Oz(C)}return function(){return void rCr(X)}};
u3t=function(D){return xU(D)&&kut in D};
_.Li=function(D,C,X){return Pwt(D,C!=null?C:{},X===void 0?"":X)};
BO5=function(D,C){var X=_.U(_.Li(D,void 0,"cPpJzc"));D=X.next().value;X=X.next().value;D[Qij]=X;D[sz]=C;return D};
bQR=function(D){return!!D&&typeof D==="object"&&Object.getPrototypeOf(D)===Object.prototype};
rY5=function(D){return typeof D==="function"&&Qij in D&&typeof D[Qij]==="function"};
KMm=function(D,C){Object.defineProperty(D,sz,{get:function(){return C}})};
en=function(D,C){if(m5(D)){var X=D.map(function(p){return en(p,C)});
KMm(X,C);return X}if(bQR(D)){X={};D=_.U(Object.entries(D));for(var c=D.next();!c.done;c=D.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;X[c]=en(W,C)}KMm(X,C);return X}return BO5(D,C)};
ham=function(D){if(m5(D))return D.map(function(W){return ham(W)});
if(bQR(D)){var C={};D=_.U(Object.entries(D));for(var X=D.next();!X.done;X=D.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;C[X]=ham(c)}return C}return rY5(D)?D():D};
LMm=function(){var D={height:0,width:0};if(!bQR(D))throw Error("Jb");var C=Symbol("Kb");return[en(D,C),function(X,c){if(X[sz]===C)if(typeof c==="function"){var W=[].concat(_.VB(ham(X)));c=c(W)||W;xNh(X,[].concat(_.VB(c)))}else xNh(X,c);else throw Error("Lb");}]};
xNh=function(D,C){if(rY5(D))D[Qij](C);else if(m5(D)&&m5(C))C=en(C,D[sz]),D.length=0,D.push.apply(D,_.VB(C));else if((bQR(D)||m5(D))&&(m5(C)||typeof C==="object"&&C!==null)){C=_.U(Object.entries(C));for(var X=C.next();!X.done;X=C.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;var W=D,p=W[X];Object.hasOwn(D,X)?xNh(p,c):W[X]=en(c,D[sz])}}else throw Error("Mb");};
si5=function(D){return Object.create(Object.assign({},Ez,D))};
eaZ=function(){var D;return(D=mN5)!=null?D:mN5=si5({consumerAllowSignalWrites:!0})};
_.tw=function(D,C,X){X=X===void 0?"":X;D=WMo(D);var c=D[Ki];c.debugName=jpW(C==null?void 0:C.debugName,X,"[computed]");(C==null?void 0:C.equals)!=null&&(c.equal=C.equals);return D};
Nm=function(D){var C=kU(ElW);try{D()}finally{kU(C)}};
NOj=function(D,C,X){var c=teo(D);YU={name:X?c+" ("+X+")":c,isReactive:D.componentType!==yv,parent:YU};D=C();YU=YU.parent;return D};
ni=function(){var D=YU;return D?D.isReactive:!1};
Fg=function(D,C,X){var c=YU;C&&(YU=C);try{return X==null?D():D.call(X)}catch(p){D=p;w8(D,YU);if(D!==YUF){yYn=YU;C=[];for(X=IA;X;){var W=void 0;C.push((W=X.debugName)!=null?W:"[context]");W=void 0;X=(W=X.parent)!=null?W:null}nln=C.reverse()}YUF=D;throw D;}finally{YU=c}};
w8=function(D,C){try{var X=wLZ(C);if(X&&!D.componentStack&&(D.componentStack=X,ve.enableComponentStacksInErrorMessages)){var c=D.message+"\n\nComponent stack: "+X;D.stack&&(D.stack=D.stack.replace(D.message,c));D.message=c}}catch(W){}};
wLZ=function(D){if(xU(D)&&D.name!==void 0&&D.isReactive!==void 0&&D.parent!==void 0||D===null){for(var C=0,X="";C<20&&D;)X+=D.name+" > ",D=D.parent,C++;D=X.slice(0,-3)}else if(ve.enableContextBasedComponentStacks){a:{for(D=D===void 0?IA:D;D;){if(u3t(D))break a;C=void 0;D=(C=D.parent)!=null?C:null}D=null}D=D.getComponentStack().slice(0,20).join(" > ")}else D="";return D};
teo=function(D){return D.debugName||D.name||"[component]"};
TOm=function(D){switch(D.onInitType){case FMm:ZQh.schedule(D);break;case Guo:ve.enableQueueEffectAndOnInitInitialRuns?Vem.enqueue(D):Vem.schedule(D);break;default:_.qf(D.onInitType)}};
qUt=function(D){if(!D.isDisposed)switch(D.effectType){case ZH:HQm.schedule(D);break;case JYJ:zaW.schedule(D);break;case jiZ:ve.enableQueueEffectAndOnInitInitialRuns||D.version!==0?MeZ.enqueue(D):MeZ.schedule(D);break;default:_.qf(D.effectType)}};
Rar=function(){if(G3>0)ve.flushRenderEffectsDuringRender&&HQm.flush();else{for(var D=_.U(foW),C=D.next();!C.done;C=D.next())C.value.flush();dNd()}};
dNd=function(){_.I(function(D){if(D.nextAddress==1)return D.yield(Promise.resolve(),2);for(var C=_.U(loF),X=C.next();!X.done;X=C.next())X.value.flush();_.t_(D)})};
CVo=function(D){Vv=!0;try{for(var C=_.U(D),X=C.next();!X.done;X=C.next()){for(var c=X.value,W=[c],p=c;p.parent!==void 0;)p=p.parent,DIn(p)&&D.has(p)&&W.push(p);for(;W.length>0;){var g=W.pop();D.delete(g);g.run()}}}finally{Vv=!1}};
T3=function(D){G3--;if(D){D=_.U(Xfr);for(var C=D.next();!C.done;C=D.next())C.value.clear()}else G3>0||Vv&&!ve.flushRenderEffectsDuringRender||Rar()};
cIF=function(D,C,X){D=Object.create(D);C&&(D.fn=C);X&&(D.debugName=X);$U(D);D.componentStack=YU;return D};
obt=function(D){if(!D.isDisposed){if(uh)throw Error("Qb");var C=_.Oz(D);JCd("effectRun",D.debugName);try{Fg(function(){D.dirty=!1;if(!(D.version>0)||RxF(D)){D.version++;var X=CwZ(D);try{D.cleanup(),D.fn()}finally{kU(X),D&&cYR(D)}}},D.componentStack,D)}catch(X){throw ve.enableContextBasedComponentStacks&&w8(X),X;
}finally{zxr("effectRun",D.debugName),_.Oz(C)}}};
_.He=function(D,C){D=cIF(WRt,D,C);qUt(D)};
_.Jw=function(D,C){D=cIF(pfm,D,C);qUt(D)};
S6Z=function(D){return D};
UIo=function(D,C){function X(){return W()}
var c=c===void 0?"":c;var W=typeof D==="function"?OQm(D,S6Z,C==null?void 0:C.equals):OQm(D.source,D.computation,C==null?void 0:C.equals);var p=W[Ki];p.debugName=jpW(C==null?void 0:C.debugName,c,"[linkedSignal]");X[Ki]=p;return[X,function(g){AYt(function(){bh(p);SUm(p,g);p.dirty=!1;p.lastCleanEpoch=Be},p)},
function(g){AYt(function(){bh(p);DNn()||UNd(p);SUm(p,g(p.value));p.dirty=!1;p.lastCleanEpoch=Be},p)}]};
_.z3=function(D){var C=IA;if(C){var X=YU;bqZ(C,function(){var c=kU(eaZ());try{Fg(function(){return void D()},X)}catch(W){throw ve.enableContextBasedComponentStacks&&w8(W),W;
}finally{kU(c)}})}};
jn=function(D,C){var X={};(C===void 0||C)&&$U(X);C=_.Oz(X);try{D(X)}finally{_.Oz(C)}return function(){return void rCr(X)}};
_.Mm=function(D){return typeof D==="function"?D():(D==null?0:D[xIo])?D.get():D};
LRj=function(D){if(IA)throw Error("nb");jn(D,!1)};
qm=function(D,C){D=_.Oz(D);try{return _.hw(C)}finally{_.Oz(D)}};
fi=function(D,C){var X=wLZ(yYn),c,W;var p=(W=(c=nln)==null?void 0:c.slice())!=null?W:[];C={componentStack:X,contextTrace:p,errorSeverity:3,featureFlags:Hqd(),tagName:C};return[D,C]};
eLd=function(D,C,X){if(Object.hasOwnProperty.call(sXm,D)&&(D=sXm[D],Object.hasOwnProperty.call(D,C)&&(D=D[C],D instanceof Array))){for(var c=null,W=!1,p=0,g=D.length;p<g;++p){var a=D[p],O=a.contingentAttribute;if(!O)return a.contract;c===null&&(c={});O=Object.hasOwnProperty.call(c,O)?c[O]:c[O]=X(O);if(O===a.requiredValue)return a.contract;O==null&&(W=!0)}if(W)return null}C=mIJ[C];return typeof C==="number"?C:null};
N0r=function(D,C,X){var c=null;(D=Ebj[D])&&(c=D[C]);return typeof c!=="number"&&((D=Ebj["*"])&&(c=D[C]),typeof c!=="number")?!1:!0===tfR[c][String(X).toLowerCase()]};
yI5=function(D,C){C=eLd(D.toLowerCase(),C,function(){var c;(c=ve.handleError)==null||c.call.apply(c,[ve].concat(_.VB(fi(Error("Tb"),D.toLowerCase()))))});
if(C===null)return null;var X;return(X=Y6j[C])!=null?X:null};
nbt=function(D,C,X){if(X===null||X===void 0)return X;C=C.toLowerCase();D=yI5(D,C);return D===null?X:D(C,X)};
wfj=function(){};
d8=function(D,C){for(;D.length>C;)D.pop()};
FRR=function(D){D=Array(D);d8(D,0);return D};
lh=function(D,C,X){if(X==null)D.removeAttribute(C);else{var c;(c=C.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":C.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?D.setAttributeNS(c,C,X):D.setAttribute(C,X)}};
Z2m=function(D,C,X){D[C]=X};
VfW=function(D,C,X){D=D.style;if(typeof X==="string")D.cssText=X;else{D.cssText="";for(var c in X)if(G5d.call(X,c)){C=D;var W=c,p=X[c];W.indexOf("-")>=0?C.setProperty(W,p):C[W]=p}}};
T0Z=function(D,C,X){var c=typeof X;c==="object"||c==="function"?D[C]=X:lh(D,C,X)};
H25=function(){var D=new wfj;D[Dh.default]=T0Z;D.style=VfW;return D};
JIJ=function(D,C,X,c){(c[C]||c[Dh.default])(D,C,X)};
jXm=function(D,C,X){C=new zLo(C,X);return D.__incrementalDOMData=C};
c2=function(D,C){if(D.__incrementalDOMData)return D.__incrementalDOMData;var X=D.nodeType===1?D.localName:D.nodeName,c=D.nodeType===1?D.getAttribute("key"):null;C=jXm(D,X,D.nodeType===1?c||C:null);if(D.nodeType===1&&(D=D.attributes,X=D.length)){c=C._attrsArr||(C._attrsArr=FRR(X*2));for(var W=0,p=0;W<X;W+=1,p+=2){var g=D[W],a=g.value;c[p]=g.name;c[p+1]=a}}return C};
MfR=function(D,C,X,c,W){return C==X&&c==W};
q6t=function(D){for(var C=oe,X=W2();X!==D;){var c=X.nextSibling;C.removeChild(X);p7.deleted.push(X);X=c}};
W2=function(){return Sj?Sj.nextSibling:oe.firstChild};
UO=function(){Sj=W2()};
RLh=function(D,C,X){UO();var c;a:{if(c=Sj){do{var W=c,p=D,g=C,a=c2(W,g);if(f03(W,p,a.nameOrCtor,g,a.key))break a}while(C&&(c=c.nextSibling))}c=null}c||(D==="#text"?(X=gq.createTextNode(""),jXm(X,"#text",null),D=X):(c=gq,W=oe,typeof D==="function"?c=new D:c=(W=D==="svg"?"http://www.w3.org/2000/svg":D==="math"?"http://www.w3.org/1998/Math/MathML":W==null||c2(W).nameOrCtor==="foreignObject"?null:W.namespaceURI)?c.createElementNS(W,D):c.createElement(D),jXm(c,D,C),D=c,X&&D.setAttribute("nonce",X)),p7.created.push(D),
c=D);X=c;if(X!==Sj){if(dIt.indexOf(X)>=0)for(D=oe,C=X.nextSibling,c=Sj;c!==null&&c!==X;)W=c.nextSibling,D.insertBefore(c,C),c=W;else oe.insertBefore(X,Sj);Sj=X}};
l0d=function(D,C,X){RLh(D,C,X);oe=Sj;Sj=null;return oe};
DOR=function(){q6t(null);Sj=oe;oe=oe.parentNode};
c0J=function(D,C){C=C===void 0?{}:C;var X=C.matches===void 0?MfR:C.matches;return function(c,W,p){var g=p7,a=gq,O=dIt,P=ae,k=Ie,u=Sj,Q=oe,B=f03;gq=c.ownerDocument;p7=new CQm(c);f03=X;ae=[];Ie=[];Sj=null;var K=oe=c.parentNode,L,t=XHm.call(c);if((L=t.nodeType===11||t.nodeType===9?t.activeElement:null)&&c.contains(L)){for(t=[];L!==K;)t.push(L),L=L.parentNode||(K?L.host:null);K=t}else K=[];dIt=K;try{return D(c,W,p)}finally{c=p7,OO&&c.deleted.length>0&&OO(c.deleted),gq=a,p7=g,f03=B,ae=P,Ie=k,Sj=u,oe=Q,
dIt=O}}};
oah=function(D,C,X,c){AU.push(JIJ);AU.push(D);AU.push(C);AU.push(X);AU.push(c)};
pH5=function(D,C,X){var c=Ie;C=C._attrsArr||(C._attrsArr=FRR(c.length));for(var W=!C.length||!1,p=0;p<c.length;p+=2){var g=c[p];if(W)C[p]=g;else if(C[p]!==g)break;var a=c[p+1];if(W||C[p+1]!==a)C[p+1]=a,oah(D,g,a,X)}if(p<c.length||p<C.length){for(p=W=p;p<C.length;p+=2)P2[C[p]]=C[p+1];for(p=W;p<c.length;p+=2)W=c[p],g=c[p+1],P2[W]!==g&&oah(D,W,g,X),C[p]=W,C[p+1]=g,delete P2[W];d8(C,c.length);for(var O in P2)oah(D,O,void 0,X),delete P2[O]}D=WFr;WFr=X=AU.length;for(O=D;O<X;O+=5)(0,AU[O])(AU[O+1],AU[O+
2],AU[O+3],AU[O+4]);WFr=D;d8(AU,D);d8(c,0)};
Srr=function(D){RLh("#text",null);var C=Sj;var X=c2(C);if(X.text!==D){X=X.text=D;for(var c=1;c<arguments.length;c+=1)X=(0,arguments[c])(X);C.data!==X&&(C.data=X)}};
PQ5=function(D,C,X){if(X===!1&&UOW.has(C))lh(D,C,null);else if(C!=="idomKey"&&C!=="skip"&&C!=="skipchildren"&&C!=="children"&&C!=="el")if(C.startsWith("on")){if(C[2]!==":")throw Error("Sb`"+C);if(X===void 0||X===null){var c;(c=ve.handleError)==null||c.call.apply(c,[ve].concat(_.VB(fi(Error("Xb`"+C),D.tagName))));D[C]=void 0}else{var W=C.slice(3);c=ni();if(W==="jsaction"){X=Array.isArray(X)?X:[X];X=_.U(X);for(var p=X.next();!p.done;p=X.next()){p=p.value;if(typeof p!=="object"||p===null||typeof p.selfReg!==
"function")throw Error("$b`"+C);p.selfReg(0,D,c?_.z3:function(){})}}else{if(typeof X!=="object"||X===null)throw Error("Yb`"+C+"`"+typeof X);
if(typeof X.getFn!=="function")throw Error("Zb`"+C+"`"+Object.keys(X));if(X.selfReg)X.selfReg(0,D,W,c?_.z3:function(){});
else if(c&&D["on"+W]===void 0){var g=X.getFn(0);D.addEventListener(W,g);_.z3(function(){return void D.removeEventListener(W,g)})}else if(c||!gaj.includes(W))D["on"+W]=X.getFn(0)}}}else{if(C.startsWith("data-")&&typeof X==="string")try{X=a4F(X)}catch(a){X="zSoyz"}typeof X!=="function"||D._disposeEffects!=null?((c=C.startsWith("prop:"))&&(C=C.slice(5)),ve.enableAttributeSanitization&&(c&&I4r(D.tagName)||(X=nbt(D.tagName,C,X))),C==="style"?("function"==typeof _.$Q&&X instanceof _.$Q&&(X=X.toString()),
Ol3(D,C,X)):c?D[C]=X:A0F(D,C,X)):(D._signalProps||(D._signalProps=[]),D._signalValues||(D._signalValues=[]),D._signalProps.push(C))}};
$Oo=function(D,C,X){X=(X===void 0?{}:X).isReactive;if(C==null?0:C.el){var c=C.el,W;(W=c.onRender)==null||W.call(c,D);D._disposeRef||(D._disposeRef=function(){var p;(p=c.onUnmount)==null||p.call(c);delete D._disposeRef},X&&_.z3(function(){var p;
(p=D._disposeRef)==null||p.call(D)}))}};
I4r=function(D){return D.length>0&&D.includes("-")&&!vaj.includes(D.toLowerCase())};
ilW=function(D){return xU(D)&&v2 in D};
kTJ=function(D){return ilW(D)?D[v2].flattened:D};
u2o=function(D,C){var X=_.MJ.apply(2,arguments),c;C=(c=C)!=null?c:{};c={};return c.type=D,c.props=C,c.children=X,c[iq]=!0,c};
_.kQ=function(D){return D.children};
uq=function(D){var C=QSt!==u2o;QSt=D?Brd:u2o;return C};
_.Q2=function(D){return _.MR(D)?"nodeType"in D:!1};
B2=function(){return document.createTextNode("")};
bq=function(D){D=document.createTextNode(String(D));D._isSignalTextNode=!0;return D};
r0j=function(D){return D!=null&&D.contentKind===rq||D instanceof dj||blo(D)};
KF5=function(D){var C=document.createElement("div");if(blo(D)&&hGm(D))_.aG(C,hGm(D));else if(D instanceof dj)_.aG(C,D);else if(D!=null&&D.contentKind===rq){if(D.contentKind!==rq)throw Error("Wb");D=RH(D.toString());_.aG(C,D)}D=_.U(C.childNodes);for(var X=D.next();!X.done;X=D.next())X.value._isSafeOrSanitizedHtmlNode=!0;return C};
K7=function(D){D=typeof D;return D==="string"||D==="number"||D==="boolean"};
h2r=function(D){return D instanceof EB||Fm(D)||D instanceof A_||"function"==typeof _.$Q&&D instanceof _.$Q};
xOW=function(D,C){var X=D.parentElement;if(!X)return C;X.replaceChild(C,D);return C};
LFR=function(D,C){var X=D[0].parentElement;if(X)if(D[0].previousSibling||D[D.length-1].nextSibling){X.insertBefore(C,D[0]);for(var c=D.length-1;c>=0;c--)X.removeChild(D[c])}else X.textContent="",X.appendChild(C);return C};
sSm=function(D,C){if(D[0].parentElement)for(var X=D[0].parentElement,c=C.length,W=D.length,p=c,g=0,a=0,O=D[W-1].nextSibling,P=null;g<W||a<p;)if(D[g]===C[a])g++,a++;else{for(;D[W-1]===C[p-1];)W--,p--;if(W===g)for(var k=p<c?a?C[a-1].nextSibling:C[p-a]:O;a<p;){var u=C[a++];X.insertBefore(u,k)}else if(p===a)for(;g<W;)k=D[g],P&&P.has(k)||X.removeChild(k),g++;else if(D[g]===C[p-1]&&C[a]===D[W-1])k=D[--W].nextSibling,X.insertBefore(C[a++],D[g++].nextSibling),X.insertBefore(C[--p],k),D[W]=C[p];else{if(!P)for(P=
new Map,k=a;k<p;)P.set(C[k],k++);k=P.get(D[g]);if(k==null)X.removeChild(D[g]),g++;else if(a<k&&k<p){u=g;for(var Q=1,B=void 0;++u<W&&u<p&&(B=P.get(D[u]))!=null&&B===k+Q;)Q++;if(Q>k-a)for(u=D[g];a<k;)X.insertBefore(C[a++],u);else X.replaceChild(C[a++],D[g++])}else g++}}return C};
e2t=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("jc`"+D.length+"`"+D.map(mOh).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof _.Wt)){var C,X;if((C=window)==null?0:(X=C.trustedTypes)==null?0:X.isScript(D))throw Error("ic");if(String(D).trim().length===0)return null;throw Error("kc`"+mOh(D));}return D};
Eah=function(D,C){C=e2t(C);C!==null&&_.Uu(D,C)};
tkn=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("lc`"+D.length+"`"+D.map(mOh).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof A_)){if(String(D).trim().length===0)return null;throw Error("mc`"+mOh(D));}return D};
Nrd=function(D,C){C=tkn(C);C!==null&&(D.textContent=iKZ(C))};
mOh=function(D){return"("+typeof D+") "+(D!=null&&typeof D==="object"?D.constructor.name:typeof D)+" "+D};
Yr5=function(){};
sO=function(D,C){C=C===void 0?{}:C;var X=y0d(),c=!0,W,p=!!ve.legacyTriggerSoyRendererEvents;p&&(W=YHR());_.He(function(){var g=!c&&C.isControlFlowComponent&&p,a=g?X[v2].flattened[0].parentElement:void 0;c=!1;_.hU.setUp();C.isControlFlowComponent&&G3++;var O=X[0],P=X[v2].flattened,k=uq(!0);try{var u=D(),Q=naF(O,u,X);Array.isArray(Q)||(X[v2].flattened=[Q]);var B=X[v2].flattened;if(P&&(!Array.isArray(P)||P.length!==0)){var K=Array.isArray(P)?P[0]:P,L=K[xQ],t=K._disposeEffects;K._disposeEffects=void 0;
K=Array.isArray(B)?B[0]:B;K[xQ]=L;K[xQ]&&(K[xQ].numNodes=K===B?1:B.length);K._disposeEffects=t}X[0]=Q;C.isControlFlowComponent&&T3(!1)}catch(Y){throw C.isControlFlowComponent&&T3(!0),Y;}finally{uq(k),_.hU.tearDown()}g&&(g=W,g!=null||(g=_.iqh(document).getAppContext()),g.get(wHm).JSC$29790_getEventTarget().dispatchEvent(new FFR(ZlW,a,rq)))},C.debugName);
return X};
naF=function(D,C,X){for(;typeof C==="function";)C=C();if(C!=null&&C[iq]){var c,W,p;(p=ve.handleError)==null||p.call.apply(p,[ve].concat(_.VB(fi(Error("nc`"+((c=C.type)==null?void 0:c.TAG_NAME)),(W=C.type)==null?void 0:W.TAG_NAME))))}if(D==null)return C==null?B2():K7(C)?bq(C):h2r(C)?bq(C.toString()):_.Q2(C)?C:C.length===0?B2():GTr(C,X);if(_.Q2(D)){if(C==null)return xOW(D,B2());if(K7(C))return Vkm(D,C);if(h2r(C))return Vkm(D,C.toString());if(_.Q2(C))return xOW(D,C);if(C.length===0)return xOW(D,B2());
C=GTr(C,X);sSm([D],X[v2].flattened);return C}D=mx(D);if(C==null)return LFR(D,B2());if(K7(C))return LFR(D,bq(C));if(h2r(C))return LFR(D,bq(C.toString()));if(_.Q2(C))return sSm(D,[C])[0];if(C.length===0)return LFR(D,B2());C=GTr(C,X);sSm(D,X[v2].flattened);return C};
Vkm=function(D,C){D.nodeType===Node.TEXT_NODE?D.textContent!==String(C)&&(D.textContent=String(C)):D=xOW(D,bq(C));return D};
mx=function(D,C,X){return Trm(D,C!=null?C:[],X===void 0?!1:X)};
GTr=function(D,C){var X=mx(D,void 0,!0);if(X.length===0)return B2();C[v2].flattened=X;return D};
Trm=function(D,C,X,c,W){C=C===void 0?[]:C;X=X===void 0?!1:X;W=W===void 0?-1:W;if(D==null)return C;if(D instanceof ej){var p=D.render();return Trm(p,C,X,c,W)}if(_.Q2(C)&&C.nodeType===Node.ELEMENT_NODE)switch(C.tagName){case "SCRIPT":Eah(C,D);return;case "STYLE":Nrd(C,D);return}K7(D)&&(D=bq(D),c&&X&&(c[W]=D));if(r0j(D)){X=KF5(D);X=Array.from(X.childNodes);X=_.U(X);for(p=X.next();!p.done;p=X.next())Hlm(C,p.value);return C}h2r(D)&&(D=bq(D.toString()),c&&X&&(c[W]=D));if(_.Q2(D))return Hlm(C,D);if(Array.isArray(D)){for(p=
0;p<D.length;p++)Trm(D[p],C,X,D,p);return C}if(typeof D==="function"){p=sO(function(){var a=D();return a!=null&&!K7(a)&&r0j(a)?(a=KF5(a),Array.from(a.childNodes)):a},{debugName:"qmF2ne",
debugFn:D})[0];if(Array.isArray(p)){X=_.U(p);for(p=X.next();!p.done;p=X.next())Hlm(C,p.value);return C}c&&X&&(c[W]=p);return Hlm(C,p)}if(D!=null&&D[iq]){c=D;W=uq(!0);var g=QSt;try{p=g.apply(null,[c.type,c.props].concat(_.VB(c.children)))}finally{uq(W)}return Trm(p,C,X)}(g=ve.handleError)==null||g.call.apply(g,[ve].concat(_.VB(fi(Error("oc")))));return C};
y0d=function(D){var C={};C=Object.assign([],(C[v2]={flattened:[]},C));if(!D)return C;C[0]=GTr(D,C);return C};
Hlm=function(D,C){Array.isArray(D)?D.push(C):D.appendChild(C);return D};
EO=function(D){if(!ve.enableLazyTsx)return D;if(Array.isArray(D)){for(var C=0;C<D.length;C++)D[C]=EO(D[C]);return D}return D instanceof ej?(D=D.render(),EO(D)):D};
z23=function(D,C){var X,c,W=teo(D),p=function(B){c=B;B=uq(!0);var K=kU(tU);JCd("render",W);try{X=EO(D(C))}finally{zxr("render",W),kU(K),uq(B)}};
p=ve.enableContextPerComponent?iQj(p,W):jn(p,ve.alwaysTrackContexts||!!IA);u3t(c);if(!C.renderedFromIdom){var g=_.Oz(c);try{return J0m(D,C,X),X}finally{_.Oz(g)}}!ilW(X)&&Array.isArray(X)&&(X=y0d(X));var a=kTJ(X);g=Array.isArray(a)?a[0]:a;var O=!1;if(g){var P,k=(P=C==null?void 0:C.idomKey)!=null?P:D;P=a!==g;g._disposeEffects=p;var u=g[xQ]||{},Q=ilW(X)?X:u.sourceDynamicRange;Object.assign(u,{key:k,numNodes:P?a.length:1,context:c,higherOrder:!!g[xQ],sourceDynamicRange:Q});g[xQ]=u}else O=!0;(function(){var B=
_.Oz(c);try{J0m(D,C,a)}finally{_.Oz(B)}})();
O&&p();return X};
jSo=function(D){var C={},X;for(X in D)C={prev$jscomp$24:void 0,next$jscomp$33:void 0},C.prev$jscomp$24=N6[X],C.next$jscomp$33=D[X],N6[X]=function(c){return function(){var W=_.MJ.apply(0,arguments);c.prev$jscomp$24.apply(null,_.VB(W));c.next$jscomp$33.apply(null,_.VB(W))}}(C)};
Mk3=function(){if(ni())throw Error("pc");return YQ};
qrm=function(D,C){if(!D.__unmounted&&C){D.__unmounted=!0;try{D.didUnmount()}catch(W){var X,c;(c=ve.handleError)==null||c.call.apply(c,[ve].concat(_.VB(fi(W,(X=D.__type)==null?void 0:X.TAG_NAME))))}N6.didUnmount(D);D.el=null;C.__instance&&delete C.__instance}};
dOF=function(D,C,X){D._signalProps!=null&&D._disposeEffects==null&&((X===void 0?0:X)?D._disposeEffects=jn(function(){return void f4j(D,C)},ve.alwaysTrackContexts||!!IA):f4j(D,C))};
f4j=function(D,C){_.He(function(){for(var X=D._signalProps,c=D._signalValues,W=0;W<X.length;W++){var p=X[W],g=C[p]();c[W]!==g&&(c[W]=g,PQ5(D,p,g))}},"e3YVbb")};
R2m=function(D,C,X){var c,W=[];D._disposeEffects=jn(function(){_.He(function(){var p=X();if(p===null||p===void 0)p="";if(K7(p)||p===null)c!=null||(c=document.createTextNode("")),c.parentNode!==D&&(c._isSignalTextNode=!0,D.insertBefore(c,C)),c.textContent=String(p);else if(r0j(p)){for(var g=W.length>0?W[W.length-1].nextSibling:C,a=_.U(W),O=a.next();!O.done;O=a.next())D.removeChild(O.value);p=KF5(p);W=Array.from(p.childNodes);p=_.U(W);for(a=p.next();!a.done;a=p.next())D.insertBefore(a.value,g)}else throw O=
(a=(g=YU)==null?void 0:g.name)!=null?a:"unknown",Error("ec`"+O+"`"+typeof p);},"VvDgC")},ve.alwaysTrackContexts||!!IA)};
CE3=function(D,C){var X=_.MJ.apply(2,arguments);C!=null||(C={});return!ve.enableLazyTsx||YU!=null&&!ni()?l4F(D,C,X):new DFt(D,C,X)};
l4F=function(D,C,X){if(D===_.kQ)return X;if(typeof D==="function")return YU&&!ni()&&(C.renderedFromIdom=!0),NOj(D,function(){var p=X7r(D,C,X);if(p)return p;X.length>0&&(C.children=X.length===1?X[0]:X);if(D.componentType===yv){var g;iQj(function(){var a=C;if(D.componentType!==yv)g=!1;else{a||(a={});var O=new y2(a,D),P=kU(tU);try{var k=O.render(a)}finally{kU(P)}k instanceof HTMLElement?(k.__instance=O,O.el=k,O.__type=D,D.TAG_NAME=k.tagName.toLowerCase(),N6.didPatch(O),g=k):g=k}},D.name);
if(g)return g}return z23(D,C)},C.debugInstance);
var c=c8r(D,C),W;for(W in C)PQ5(c,W,C[W]);dOF(c,C);mx(X,c);$Oo(c,C,{isReactive:!0});or5(c,C);return c};
c8r=function(D,C){D=(WPm.has(D.toLowerCase())?0:p7j.has(D.startsWith("svg:")?D.replace("svg:",""):D))?document.createElementNS("http://www.w3.org/2000/svg",D.startsWith("svg:")?D.replace("svg:",""):D):SnF(D,C)||document.createElement(D);D[UFd]=!0;return D};
grm=function(D){if(D){var C;(C=D._disposeRef)==null||C.call(D);var X;(X=D._disposeEffects)==null||X.call(D);D.__instance&&D.__instance instanceof n7&&(C=D.__instance,qrm(C,D),C instanceof y2&&C.disposeEffects());for(C=0;C<D.childNodes.length;C++)grm(D.childNodes[C])}};
Ium=function(D){auZ.push(D)===1&&requestAnimationFrame(function(){setTimeout(function(){var C=[].concat(_.VB(auZ));auZ=[];C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;try{for(var c=0;c<X.length;c++)grm(X[c])}catch(W){c=X=void 0,(c=(X=ve).handleError)==null||c.call.apply(c,[X].concat(_.VB(fi(W))))}}})})};
_.A=function(D,C){return QSt.apply(null,[D,C].concat(_.VB(_.MJ.apply(2,arguments))))};
_.wq=function(D){return D};
_.Fr=function(D){return{isDefault:!0,children:D.children}};
_.v=function(D){var C=D.cond;if(C===void 0)return D.else&&D.else();var X=_.tw(function(){return!!C()},void 0,"JHVi8"),c=function(){var W=C();
if(!W){var p;(p=ve.handleError)==null||p.call.apply(p,[ve].concat(_.VB(fi(ONZ.nonNullableCondIsNull()))))}return W};
return sO(function(){var W=X(),p;jn(function(){var g=kU(tU);try{p=EO(W?D.then(c):D.else&&D.else())}finally{kU(g)}},!0);
return p},{debugName:D.debugInstance,
debugFn:D.then,isControlFlowComponent:!0})};
A8Z=function(D){return _.v(D)};
_.Zh=function(D){return D.keyBy==="INDEX"?PEh(D):$Fj(D)};
vrr=function(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next()){var X=void 0;(X=C.value)==null||X()}};
$Fj=function(D){var C=D.keyBy===void 0||D.keyBy==="REFERENCE",X=C?function(k){return k}:D.keyBy,c=[],W=[],p=[],g=[],a=[],O=[],P=!0;
_.z3(function(){vrr(g)});
return sO(function(){var k=iNt(D),u=k.length;if(u===0){if(c.length===0&&!P)return p;vrr(g);c=k;W=[];for(k=0;k<c.length;k++)W.push(X(c[k]));p=[];g=[];a=[];O=[];D.fallback&&(g[0]=kCt(function(){p[0]=EO(D.fallback())}));
P=!1;return p}for(var Q=new uoo,B=c.length-1;B>=0;B--)Q.push(W[B],B);B=Array(u);for(var K=Array(u),L=Array(u),t=Array(u),Y=Array(C?0:u),y={i$jscomp$450:0};y.i$jscomp$450<u;y={i$jscomp$450:y.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},y.i$jscomp$450++){y.item$jscomp$104=k[y.i$jscomp$450];y.key$jscomp$563=X(y.item$jscomp$104);var J=Q.pop(y.key$jscomp$563);J!=null?(L[y.i$jscomp$450]=p[J],K[y.i$jscomp$450]=W[J],B[y.i$jscomp$450]=g[J],t[y.i$jscomp$450]=a[J],C||(Y[y.i$jscomp$450]=O[J]),Nm(function(T){return function(){t[T.i$jscomp$450](T.i$jscomp$450);
if(!C)Y[T.i$jscomp$450](T.item$jscomp$104)}}(y)),delete g[J]):B[y.i$jscomp$450]=kCt(function(T){return function(){var H=_.U(_.Li(T.i$jscomp$450,void 0,"Fqk1zd")),q=H.next().value;
H=H.next().value;t[T.i$jscomp$450]=H;K[T.i$jscomp$450]=T.key$jscomp$563;if(C)L[T.i$jscomp$450]=EO(D.children(T.item$jscomp$104,q));else{var R=_.U(_.Li(T.item$jscomp$104,void 0,"GBj5de"));H=R.next().value;R=R.next().value;Y[T.i$jscomp$450]=R;L[T.i$jscomp$450]=EO(D.children(H,q))}}}(y))}vrr(g);
c=k;W=K;p=L;g=B;a=t;O=Y;P=!1;return L},{debugName:D.debugInstance,
debugFn:D.each,isControlFlowComponent:!0})};
PEh=function(D){var C=[],X=[],c=[],W=[],p=!1;_.z3(function(){for(var g=_.U(W),a=g.next();!a.done;a=g.next())a=a.value,a()});
return sO(function(){var g=iNt(D);p&&g.length>0&&(W.pop()(),C.pop(),p=!1);for(var a=Array(g.length),O={i$jscomp$451:0};O.i$jscomp$451<g.length;O={i$jscomp$451:O.i$jscomp$451},O.i$jscomp$451++)if(O.i$jscomp$451<C.length)C[O.i$jscomp$451]!==g[O.i$jscomp$451]&&(Nm(function(k){return function(){return void X[k.i$jscomp$451](g[k.i$jscomp$451])}}(O)),C[O.i$jscomp$451]=g[O.i$jscomp$451]),a[O.i$jscomp$451]=c[O.i$jscomp$451];
else{var P=kCt(function(k){return function(){C[k.i$jscomp$451]=g[k.i$jscomp$451];var u=_.U(_.Li(g[k.i$jscomp$451],void 0,"JMMLmd")),Q=u.next().value;u=u.next().value;X[k.i$jscomp$451]=u;a[k.i$jscomp$451]=EO(D.children(Q,k.i$jscomp$451))}}(O));
W[O.i$jscomp$451]=P}for(;C.length>g.length;)C.pop(),W.pop()(),X.pop();g.length===0&&!p&&D.fallback&&(O=kCt(function(){a[0]=EO(D.fallback())}),W[0]=O,p=!0);
return c=a},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
iNt=function(D){D=D.each();return Array.isArray(D)?D:Array.from(D)};
kCt=function(D){var C=IA;return jn(function(X){var c=kU(tU);try{X.parent=C,D(X)}finally{kU(c)}},!1)};
_.G4=function(D){var C=QB5(D),X=_.tw(function(){return Bln(C)},void 0,"F1PF4");
return sO(function(){var c=X(),W;jn(function(){var p=kU(tU);try{W=EO(c())}finally{kU(p)}});
return W},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
QB5=function(D){D=D.children;return Array.isArray(D)?D:[D]};
bNZ=function(D){var C=D.props;D=D.getChildren()[0];return C.when?{when:C.when,children:D}:{isDefault:!0,children:D}};
Bln=function(D){var C=function(){return null};
D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X!=null&&X[iq]&&(X=X.type===_.Fr?{isDefault:!0,children:X.children[0]}:{when:X.props.when,children:X.children[0]}),X instanceof ej&&(X=bNZ(X)),X.isDefault)C=X.children;else if(X.when())return X.children;return C};
KPm=function(D){var C=null,X,c={get value(){var p,g;(g=(p=W).validateGetValue)==null||g.call(p);return W.__value},set value(p){var g,a;(a=(g=W).validateSetValue)==null||a.call(g,p);W.__value=p;W.__hasBeenSet=!0}},W=(c.__value=null,c.__hasBeenSet=!1,c.__hasErrored=!1,c.onRender=function(p){if(X&&p!==X){X._disposeRef=void 0;var g;(g=C)==null||g()}X=p;C=D(p)||null},c.onUnmount=function(){var p;
(p=C)==null||p();C=W.value=null},c[_.r8h]=!0,c);
return W};
V2=function(D){return typeof D==="symbol"};
xFt=function(D){var C=Mk3();if(C==null)throw _.hIt.PRIMITIVE_INVALID_HOOK_CALL();var X=C.hookCounter++;C.hooks||(C.hooks=[]);var c=C.hooks;c[X]||(c[X]={key:D,host:C});if(D!==c[X].key){if(C.__type){var W;D=(W=C.__type)==null?void 0:W.name}else D=C instanceof y2?teo(C.functionComponent):"<"+C.el.tagName.toLowerCase()+">";throw _.hIt.OUT_OF_ORDER_HOOK_CALL(D);}return c[X]};
LPo=function(D,C){return!D||D.length!==(C==null?void 0:C.length)||D.some(function(X,c){return X!==C[c]})};
sBt=function(D,C){var X=xFt("onChange"),c=Mk3();LPo(X.deps,C)&&(X.deps=C,X.pendingEffect=D,c.__syncEffects||(c.__syncEffects=[]),c.__syncEffects.push(X))};
_.T4=function(D,C,X){X!=null||(X={});X=X.appContext;var c=!!ve.legacyTriggerSoyRendererEvents;_.hU.setUp();try{var W=mF5(D,C,X);c&&(C=X,C!=null||(C=_.iqh(document).getAppContext()),C.get(wHm).JSC$29790_getEventTarget().dispatchEvent(new FFR(eIh,D,rq)));_.hU.log(D);return W}finally{_.hU.tearDown()}};
mF5=function(D,C,X){var c=Fg(function(){var W=kU(tU);try{return jn(function(){var p=_.iqh(_.Hd(D)),g;var a=NDr({rootElement:{value:D},appContext:X||(p==null?void 0:(g=p.getOptionalAppContext)==null?void 0:g.call(p)),dispatcher:p});p=_.Oz(a);a=uq(!0);G3++;try{mx(C(),D),T3(!1)}catch(O){throw T3(!0),O;}finally{uq(a),_.Oz(p)}},!1)}catch(p){throw ve.enableContextBasedComponentStacks&&w8(p),p;
}finally{kU(W)}});
D[ErW]=!0;return function(){D.textContent="";c();D[ErW]=!1}};
_.H2=function(D){if(DIn(ih)){var C;(C=ve.handleError)==null||C.call.apply(C,[ve].concat(_.VB(fi(Error("dc")))))}var X=IA,c=YU;TOm({onInitType:Guo,run:function(){if(X&&!X.isDisposed){var W=_.Oz(X);try{Fg(function(){return void D()},c)}catch(p){throw ve.enableContextBasedComponentStacks&&w8(p),p;
}finally{_.Oz(W)}}}})};
tcW=function(D,C){sBt(function(){return _.hw(D)},C)};
_.JU=function(D){ni()?_.H2(function(){_.hw(D)}):sBt(function(){return _.hw(D)},[])};
Yn3=function(D){var C=[].concat(_.VB(D));D.length=0;D=_.U(C);for(C=D.next();!C.done;C=D.next()){C=C.value;Nld(C);var X=C.pendingEffect;C.pendingEffect=null;if(X=X==null?void 0:X())C.pendingCleanup=X}};
Nld=function(D){var C=D.pendingCleanup;D.pendingCleanup=null;C==null||C()};
y8m=function(D,C){if(ni())return D();var X=xFt("useMemoInternal");LPo(X.deps,C)&&(X.deps=C,X.value=D());return X.value};
nrm=function(D,C){return y8m(D,C)};
w75=function(D){return y8m(function(){return{value:D}},[])};
_.z4=function(D,C){if(!D)return null;D=Object.keys(D);D=_.U(D);for(var X=D.next();!X.done;X=D.next()){X=X.value;var c=X.toLowerCase();if(c.indexOf(C,c.length-C.length)>-1)return X}return null};
_.M6=function(){var D=arguments,C=_.jj;D.length>1?C[D[0]]=D[1]:D.length===1&&Object.assign(C,D[0])};
_.q6=function(D,C){return D in _.jj?_.jj[D]:C};
_.dq=function(D,C){return!!_.q6(D,C)};
FPo=function(D){var C=_.jj.EXPERIMENT_FLAGS;return C?C[D]:void 0};
GCj=function(D){ZNZ.forEach(function(C){return C(D)})};
_.lq=function(D){return D&&window.yterr?function(){try{return D.apply(this,arguments)}catch(C){_.Re(C)}}:D};
_.Re=function(D){var C=_.Df("yt.logging.errors.log");C?C(D,"ERROR",void 0,void 0,void 0,void 0,void 0):(C=_.q6("ERRORS",[]),C.push([D,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.M6("ERRORS",C));GCj(D)};
_.CC=function(D,C,X,c,W){var p=_.Df("yt.logging.errors.log");p?p(D,"WARNING",C,X,c,void 0,W):(p=_.q6("ERRORS",[]),p.push([D,"WARNING",C,X,c,void 0,W]),_.M6("ERRORS",p))};
TlW=function(D,C){C=D.split(C);for(var X={},c=0,W=C.length;c<W;c++){var p=C[c].split("=");if(p.length===1&&p[0]||p.length===2)try{var g=Vcn(p[0]||""),a=Vcn(p[1]||"");if(g in X){var O=X[g];Array.isArray(O)?_.zJ(O,a):X[g]=[O,a]}else X[g]=a}catch(Q){var P=Q,k=p[0],u=String(TlW);P.args=[{key:k,value:p[1],query:D,method:HNo===u?"unchanged":u}];J8F.hasOwnProperty(k)||_.CC(P)}}return X};
zIR=function(D){var C=[];_.ZI.forEach(D,function(X,c){var W=_.WK(c);X=Array.isArray(X)?X:[X];_.pC(X,function(p){p==""?C.push(W):C.push(W+"="+_.WK(p))})});
return C.join("&")};
_.Sq=function(D){D.charAt(0)==="?"&&(D=D.substring(1));return TlW(D,"&")};
_.UY=function(D){return D.indexOf("?")!==-1?(D=(D||"").split("#")[0],D=D.split("?",2),_.Sq(D.length>1?D[1]:D[0])):{}};
_.gT=function(D,C){return jBW(D,C||{},!0)};
Mcm=function(D,C){return jBW(D,C||{},!1)};
jBW=function(D,C,X){var c=D.split("#",2);D=c[0];c=c.length>1?"#"+c[1]:"";var W=D.split("?",2);D=W[0];W=_.Sq(W[1]||"");for(var p in C)if(X||!_.ZI.containsKey(W,p))W[p]=C[p];return _.aQ(D,W)+c};
PK=function(D){if(!C)var C=window.location.href;var X=_.IQ(D)[1]||null,c=_.OY(D);return X&&c?Ag(D,C):c?_.OY(C)===c&&(Number(_.IQ(C)[4]||null)||null)===(Number(_.IQ(D)[4]||null)||null):!0};
_.fuj=function(D){D=qnW(D);return D===null?!1:D[0]==="com"&&D[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
qnW=function(D){D=_.OY(D);return D!==null?D.split(".").reverse():null};
Vcn=function(D){return D&&D.match(dFF)?D:$z(D)};
_.vK=function(D){return new RI3(D)};
_.iX=function(){lun||(lun=new DCd);return lun};
XEJ=function(){var D=C55;return function(){var C=_.iX();if(!C.resolve(_.vK(D))){var X={};C.addProvider((X.provide=D,X.useClass=D,X[kz]=void 0,X))}return C.resolve(D)}};
oCj=function(D){var C=_.uX,X,c;_.I(function(W){X=_.iX();return(c=X.resolve(_.vK(C)))?(D(c),W.return(Promise.resolve(c))):W.return(X.resolve(new cZr(C)).then(function(p){D(p);return p}))})};
_.b=function(D){D=Q3(D);return typeof D==="string"&&D==="false"?!1:!!D};
_.BK=function(D,C){D=Q3(D);return D===void 0&&C!==void 0?C:Number(D||0)};
WUo=function(D){D=Q3(D);return Array.isArray(D)?_.Gv(D,function(C){return Number(C||0)}):[Number(D||0)]};
_.bX=function(D){D=Q3(D);return D!==void 0?String(D):""};
_.rT=function(D){D=Q3(D);return Array.isArray(D)?_.Gv(D,function(C){return String(C||"")}):[String(D||"")]};
pEm=function(){return _.q6("EXPERIMENTS_TOKEN","")};
Q3=function(D){return _.q6("EXPERIMENT_FLAGS",{})[D]};
SpF=function(){for(var D=[],C=_.q6("EXPERIMENTS_FORCED_FLAGS",{}),X=_.U(Object.keys(C)),c=X.next();!c.done;c=X.next())c=c.value,D.push({key:c,value:String(C[c])});X=_.q6("EXPERIMENT_FLAGS",{});c=_.U(Object.keys(X));for(var W=c.next();!W.done;W=c.next())W=W.value,W.startsWith("force_")&&C[W]===void 0&&D.push({key:W,value:String(X[W])});return D};
gCW=function(){if(!UCh)return null;var D=UCh();return"open"in D?D:null};
_.aS3=function(D){switch(_.KC(D)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.KC=function(D){return D&&"status"in D?D.status:-1};
_.xz=function(D,C){typeof D==="function"&&(D=_.lq(D));return window.setTimeout(D,C)};
_.LC=function(D,C){typeof D==="function"&&(D=_.lq(D));return window.setInterval(D,C)};
_.sY=function(D){window.clearTimeout(D)};
OtR=function(D){D=_.UY(D);for(var C=_.U(ISj),X=C.next();!X.done;X=C.next())if(D[X.value]!==void 0)return!0;return!1};
$CW=function(D,C,X,c,W,p,g,a,O){X=X===void 0?"GET":X;c=c===void 0?"":c;a=a===void 0?!1:a;var P=gCW();if(!P)return null;var k=function(){(P&&"readyState"in P?P.readyState:0)===4&&C&&_.lq(C)(P)};
"onloadend"in P?P.addEventListener("loadend",k,!1):P.onreadystatechange=k;_.b("debug_forward_web_query_parameters")&&(D=AZo(D,window.location.search));P.open(X,D,!0);p&&(P.responseType=p);g&&(P.withCredentials=!0);X=X==="POST"&&(window.FormData===void 0||!(c instanceof FormData));if(W=P5t(D,W))for(var u in W)P.setRequestHeader(u,W[u]),"content-type"===u.toLowerCase()&&(X=!1);X&&P.setRequestHeader("Content-Type","application/x-www-form-urlencoded");O&&"onprogress"in P&&(P.onprogress=function(){O(P.responseText)});
if(a&&"setAttributionReporting"in XMLHttpRequest.prototype){D={eventSourceEligible:!0,triggerEligible:!1};try{P.setAttributionReporting(D)}catch(Q){_.CC(Q)}}P.send(c);return P};
P5t=function(D,C){C=C===void 0?{}:C;var X=PK(D),c=_.q6("INNERTUBE_CLIENT_NAME"),W=_.b("web_ajax_ignore_global_headers_if_set"),p;for(p in vCr){var g=_.q6(vCr[p]),a=p==="X-Goog-AuthUser"||p==="X-Goog-PageId";p!=="X-Goog-Visitor-Id"||g||(g=_.q6("VISITOR_DATA"));var O;if(!(O=!g)){if(!(O=X||(_.OY(D)?!1:!0))){O=D;var P;if(P=_.b("add_auth_headers_to_remarketing_google_dot_com_ping")&&p==="Authorization"&&(c==="TVHTML5"||c==="TVHTML5_UNPLUGGED"||c==="TVHTML5_SIMPLY"))P=qnW(O),P=P===null?!1:P[1]==="google"?
!0:P[2]==="google"?P[0]==="au"&&P[1]==="com"?!0:P[0]==="uk"&&P[1]==="co"?!0:!1:!1;P&&(O=_.mC(O)||"",O=O.split("/"),O="/"+(O.length>1?O[1]:""),P=O==="/pagead");O=P?!0:!1}O=!O}O||W&&C[p]!==void 0||c==="TVHTML5_UNPLUGGED"&&a||(C[p]=g)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];if(X||!_.OY(D))C["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(X||!_.OY(D)){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(u){}k&&(C["X-YouTube-Time-Zone"]=
k)}document.location.hostname.endsWith("youtubeeducation.com")||!X&&_.OY(D)||(C["X-YouTube-Ad-Signals"]=zIR(itt()));return C};
_.ko5=function(D,C){var X=_.OY(D);_.b("debug_handle_relative_url_for_query_forward_killswitch")||!X&&PK(D)&&(X=document.location.hostname);var c=_.mC(D);c=(X=X&&(X.endsWith("youtube.com")||X.endsWith("youtube-nocookie.com")))&&c&&c.startsWith("/api/");if(!X||c)return D;var W=_.Sq(C),p={};_.pC(ISj,function(g){W[g]&&(p[g]=W[g])});
return Mcm(D,p)};
u_h=function(D,C){C.method="POST";C.postParams||(C.postParams={});return _.eq(D,C)};
Q7j=function(D,C){var X=_.q6("XSRF_FIELD_NAME"),c;C.headers&&(c=C.headers["Content-Type"]);return!C.excludeXsrf&&(!_.OY(D)||C.withCredentials||_.OY(D)===document.location.hostname)&&C.method==="POST"&&(!c||c==="application/x-www-form-urlencoded")&&!(C.postParams&&C.postParams[X])};
_.eq=function(D,C){var X=C.format||"JSON";D=Ber(D,C);var c=btr(D,C),W=!1,p=rZd(D,function(O){if(!W){W=!0;a&&_.sY(a);var P=_.aS3(O),k=null,u=400<=O.status&&O.status<500,Q=500<=O.status&&O.status<600;if(P||u||Q)k=KUm(D,X,O,C.convertToSafeHtml);P&&(P=hkj(X,O,k));k=k||{};u=C.context||_.co;P?C.onSuccess&&C.onSuccess.call(u,O,k):C.onError&&C.onError.call(u,O,k);C.onFinish&&C.onFinish.call(u,O,k)}},C.method,c,C.headers,C.responseType,C.withCredentials,!1,C.onProgress);
c=C.timeout||0;if(C.onTimeout&&c>0){var g=C.onTimeout;var a=_.xz(function(){W||(W=!0,p.abort(),_.sY(a),g.call(C.context||_.co,p))},c)}return p};
Ber=function(D,C){C.includeDomain&&(D=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+D);var X=_.q6("XSRF_FIELD_NAME");if(C=C.urlParams)C[X]&&delete C[X],D=_.gT(D,C);return D};
btr=function(D,C){var X=_.q6("XSRF_FIELD_NAME"),c=_.q6("XSRF_TOKEN"),W=C.postBody||"",p=C.postParams;Q7j(D,C)&&(p||(p={}),p[X]=c);(_.b("ajax_parse_query_data_only_when_filled")&&p&&Object.keys(p).length>0||p)&&typeof W==="string"&&(W=_.Sq(W),_.ZI.extend(W,p),W=C.postBodyFormat&&C.postBodyFormat==="JSON"?JSON.stringify(W):_.EY(W));p=W||p&&!_.ZI.isEmpty(p);!xCt&&p&&C.method!=="POST"&&(xCt=!0,_.Re(Error("Jc")));return W};
KUm=function(D,C,X,c){var W=null;switch(C){case "JSON":try{var p=X.responseText}catch(g){throw c=Error("Kc"),c.params=D,_.CC(c),g;}D=X.getResponseHeader("Content-Type")||"";p&&D.indexOf("json")>=0&&(p.substring(0,5)===")]}'\n"&&(p=p.substring(5)),W=JSON.parse(p));break;case "XML":if(D=(D=X.responseXML)?LU5(D):null)W={},_.pC(D.getElementsByTagName("*"),function(g){W[g.tagName]=s75(g)})}c&&mCR(W);
return W};
mCR=function(D){if(_.MR(D))for(var C in D)C==="html_content"||SZ(C,"_html")?D[C]=RH(D[C]):mCR(D[C])};
hkj=function(D,C,X){if(C&&C.status===204)return!0;switch(D){case "JSON":return!!X;case "XML":return Number(X&&X.return_code)===0;case "RAW":return!0;default:return!!X}};
LU5=function(D){return D?(D=("responseXML"in D?D.responseXML:D).getElementsByTagName("root"))&&D.length>0?D[0]:null:null};
s75=function(D){var C="";_.pC(D.childNodes,function(X){C+=X.nodeValue});
return C};
ekh=function(D){if(D.name==="JavaException")return!0;D=D.stack;return D.includes("chrome://")||D.includes("-extension://")||D.includes("webkit-masked-url://")};
ECt=function(D){if(!D.stack)return!0;var C=!D.stack.includes("\n");return C&&D.stack.includes("ErrorType: ")||C&&D.stack.includes("Anonymous function (Unknown script")||D.stack.toLowerCase()==="not available"||D.fileName==="user-script"||D.fileName.startsWith("user-script:")?!0:!1};
_.tg=function(D){_.nF.call(this);this.JSC$10684_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!D};
Nej=function(D,C){var X=D.length,c=0,W=function(){return D.charCodeAt(c++)};
do{var p=tyj(W);if(p===Infinity)break;var g=p>>3;switch(p&7){case 0:p=tyj(W);if(g===C)return p;break;case 1:if(g===C)return;c+=8;break;case 2:p=tyj(W);if(g===C)return D.substr(c,p);c+=p;break;case 5:if(g===C)return;c+=4;break;default:return}}while(c<X)};
tyj=function(D){var C=D(),X=C&127;if(C<128)return X;C=D();X|=(C&127)<<7;if(C<128)return X;C=D();X|=(C&127)<<14;if(C<128)return X;C=D();return C<128?X|(C&127)<<21:Infinity};
yZd=function(D,C,X,c){if(D)if(Array.isArray(D)){var W=c;for(c=0;c<D.length&&!(D[c]&&(W+=Ypm(c,D[c],C,X),W>500));c++);c=W}else if(typeof D==="object")for(W in D){if(D[W]){var p=W;var g=D[W],a=C,O=X;p=typeof g!=="string"||p!=="clickTrackingParams"&&p!=="trackingParams"?0:(g=Nej(atob(g.replace(/-/g,"+").replace(/_/g,"/")),2))?Ypm(p+".ve",g,a,O):0;c+=p;c+=Ypm(W,D[W],C,X);if(c>500)break}}else X[C]=NG(D),c+=X[C].length;else X[C]=NG(D),c+=X[C].length;return c};
Ypm=function(D,C,X,c){X+="."+D;D=NG(C);c[X]=D;return X.length+D.length};
NG=function(D){try{return(typeof D==="string"?D:String(JSON.stringify(D))).substr(0,500)}catch(C){return"unable to serialize "+typeof D+" ("+C.message+")"}};
nCm=function(D){switch(D){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}};
_.y3=function(D,C,X,c,W){_.Yz.set(D,C,{maxAge:X,path:"/",domain:c===void 0?"youtube.com":c,secure:W===void 0?!1:W})};
_.wE3=function(D,C,X){_.Yz.remove(D,C===void 0?"/":C,X===void 0?"youtube.com":X)};
_.nC=function(){if(_.b("embeds_web_enable_cookie_detection_fix")){if(!_.co.navigator.cookieEnabled)return!1}else if(!_.Yz.isEnabled())return!1;if(!_.Yz.isEmpty())return!0;_.b("embeds_web_enable_cookie_detection_fix")?_.Yz.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Yz.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Yz.get("TESTCOOKIESENABLED")!=="1")return!1;_.Yz.remove("TESTCOOKIESENABLED");return!0};
FUF=function(){var D=_.co.navigator;return D?D.connection:void 0};
Zto=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(D){}};
_.VyZ=function(){var D=FUF();if(D){var C=Go3[D.type||"unknown"]||"CONN_UNKNOWN";D=Go3[D.effectiveType||"unknown"]||"CONN_UNKNOWN";C==="CONN_CELLULAR_UNKNOWN"&&D!=="CONN_UNKNOWN"&&(C=D);if(C!=="CONN_UNKNOWN")return C;if(D!=="CONN_UNKNOWN")return D}};
HtZ=function(){var D=FUF();if(D!=null&&D.effectiveType)return TeJ.hasOwnProperty(D.effectiveType)?TeJ[D.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.FL=function(){try{return _.wT(),!0}catch(D){return!1}};
_.wT=function(D){if(_.q6("DATASYNC_ID")!==void 0)return _.q6("DATASYNC_ID");throw new _.Zf("Datasync ID not set",D===void 0?"unknown":D);};
_.GV=function(D){this.mechanism=D};
V3=function(D){this.mechanism=D};
TV=function(D){this.storage_=D;this.cachedIsStorageAvailable_=null};
JZ5=function(){var D=null;try{D=_.co.localStorage||null}catch(C){}TV.call(this,D)};
zkZ=function(){var D=null;try{D=_.co.sessionStorage||null}catch(C){}TV.call(this,D)};
HK=function(D,C){this.mechanism_=D;this.JSC$10787_prefix_=C+"::"};
_.Jg=function(D){var C=new JZ5;return C.isAvailable()?D?new HK(C,D):C:null};
_.j7F=function(D){var C=new zkZ;return C.isAvailable()?D?new HK(C,D):C:null};
qpm=function(){var D;return(D=Myt())==null?void 0:D.get("LAST_RESULT_ENTRY_KEY",!0)};
_.MG=function(D){fSn||(_.zV?_.zV.logError(D):(_.jq.push({type:"ERROR",payload:D}),_.jq.length>10&&_.jq.shift()))};
qG=function(D,C){fSn||(_.zV?_.zV.logEvent(D,C):(_.jq.push({type:"EVENT",eventType:D,payload:C}),_.jq.length>10&&_.jq.shift()))};
fC=function(D){if(D.indexOf(":")>=0)throw Error("Rc");};
dT=function(D){return D.substr(0,D.indexOf(":"))||D};
lSW=function(){return(dCm||Rko)&&RQ("applewebkit")&&!RQ("version")&&(!RQ("safari")||RQ("gsa/"))};
RQ=function(D){var C=_.kj();return C?C.toLowerCase().indexOf(D)>=0:!1};
X_r=function(D,C,X,c){C=dT(C);var W=D instanceof Error?D:Error("Sc`"+D);if(W instanceof lX)return W;D={objectStoreNames:X,dbName:C,dbVersion:c};if(W.name==="QuotaExceededError")return new lX("QUOTA_EXCEEDED",D);if(_.Di&&W.name==="UnknownError")return new lX("QUOTA_MAYBE_EXCEEDED",D);if(W instanceof Dht)return new lX("MISSING_INDEX",Object.assign({},D,{objectStore:W.objectStore,index:W.index}));if(W.name==="InvalidStateError"&&C8J.some(function(p){return W.message.includes(p)}))return new lX("EXECUTE_TRANSACTION_ON_CLOSED_DB",
D);
if(W.name==="AbortError")return new lX("UNKNOWN_ABORT",D,W.message);W.args=[Object.assign({},D,{name:"IdbError",originalName:W.name})];W.level="WARNING";return W};
Cq=function(D,C,X){var c=qpm();return new lX("IDB_NOT_SUPPORTED",{context:{caller:D,publicName:C,version:X,hasSucceededOnce:c==null?void 0:c.hasSucceededOnce}})};
cXm=function(D){if(!D)throw Error();throw D;};
oPF=function(D){return D};
Wnm=function(D,C,X){var c=function(){try{D.removeEventListener("success",W),D.removeEventListener("error",p)}catch(g){}},W=function(){C(D.result);
c()},p=function(){X(D.error);
c()};
D.addEventListener("success",W);D.addEventListener("error",p)};
p_5=function(D){return new Promise(function(C,X){Wnm(D,C,X)})};
op=function(D){return new Xs(new cz(function(C,X){Wnm(D,C,X)}))};
S13=function(D,C){return new Xs(new cz(function(X,c){var W=function(){var p=D?C(D):null;p?p.then(function(g){D=g;W()},c):X()};
W()}))};
UhF=function(D,C,X){return new Promise(function(c,W){var p=C!==void 0?self.indexedDB.open(D,C):self.indexedDB.open(D);var g=X.blocked,a=X.blocking,O=X.terminated,P=X.upgrade,k=X.closed,u,Q=function(){u||(u=new Wz(p.result,{closed:k}));return u};
p.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Xc");if(p.transaction===null)throw Error("Yc");B.dataLoss&&B.dataLoss!=="none"&&qG("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:dT(D)});var K=Q(),L=new pq(p.transaction);P&&P(K,function(t){return B.oldVersion<t&&B.newVersion>=t},L);
L.done.catch(function(t){W(t)})}catch(t){W(t)}});
p.addEventListener("success",function(){var B=p.result;a&&B.addEventListener("versionchange",function(){a(Q())});
B.addEventListener("close",function(){qG("IDB_UNEXPECTEDLY_CLOSED",{dbName:dT(D),dbVersion:B.version});O&&O()});
c(Q())});
p.addEventListener("error",function(){W(p.error)});
g&&p.addEventListener("blocked",function(){g()})})};
gPt=function(D,C,X){X=X===void 0?{}:X;return UhF(D,C,X)};
_.UH=function(D,C){C=C===void 0?{}:C;var X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return _.KK(g,2),X=self.indexedDB.deleteDatabase(D),c=C,(W=c.blocked)&&X.addEventListener("blocked",function(){W()}),g.yield(p_5(X),4);
if(g.nextAddress!=2)return _.SR(g,0);p=_.Eu(g);throw X_r(p,D,"",-1);})};
I7j=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1)return c.yield(_.gD(a7h,C),2);X=c.yieldResult;return c.return(_.ap(X,["databases"],{enableRetries:!0,mode:"readwrite"},function(W){var p=W.objectStore("databases");return p.get(D.actualName).then(function(g){if(g?D.actualName!==g.actualName||D.publicName!==g.publicName||D.userIdentifier!==g.userIdentifier:1)return p.put(D).then(function(){})})}))})};
_.Ip=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1)return D?c.yield(_.gD(a7h,C),2):c.return();X=c.yieldResult;return c.return(X.delete("databases",D))})};
_.OeR=function(D,C){var X,c;return _.I(function(W){return W.nextAddress==1?(X=[],W.yield(_.gD(a7h,C),2)):W.nextAddress!=3?(c=W.yieldResult,W.yield(_.ap(c,["databases"],{enableRetries:!0,mode:"readonly"},function(p){X.length=0;return OH(p.objectStore("databases"),{},function(g){D(g.getValue())&&X.push(g.getValue());return g.continue()})}),3)):W.return(X)})};
AXt=function(D,C){return _.OeR(function(X){return X.publicName===D&&X.userIdentifier!==void 0},C)};
vPF=function(){var D,C,X,c;return _.I(function(W){switch(W.nextAddress){case 1:D=qpm();if((C=D)==null?0:C.hasSucceededOnce)return W.return(!0);var p;if(p=P8m)p=/WebKit\/([0-9]+)/.exec(_.kj()),p=!!(p&&parseInt(p[1],10)>=600);p&&(p=/WebKit\/([0-9]+)/.exec(_.kj()),p=!(p&&parseInt(p[1],10)>=602));if(p||AC)return W.return(!1);try{if(X=self,!(X.indexedDB&&X.IDBIndex&&X.IDBKeyRange&&X.IDBObjectStore))return W.return(!1)}catch(g){return W.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return W.return(!1);
_.KK(W,2);c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return W.yield(I7j(c,$hd),4);case 4:return W.yield(_.Ip("yt-idb-test-do-not-use",$hd),5);case 5:return W.return(!0);case 2:return _.Eu(W),W.return(!1)}})};
k1W=function(){if(ieR!==void 0)return ieR;fSn=!0;return ieR=vPF().then(function(D){fSn=!1;var C;if((C=Myt())!=null&&C.hasLocalStorage()){var X;C={hasSucceededOnce:((X=qpm())==null?void 0:X.hasSucceededOnce)||D};var c;(c=Myt())==null||c.set("LAST_RESULT_ENTRY_KEY",C,2592E3,!0)}return D})};
Pz=function(){return _.Df("ytglobal.idbToken_")||void 0};
_.vz=function(){var D=Pz();return D?Promise.resolve(D):k1W().then(function(C){(C=C?$hd:void 0)&&_.$h("ytglobal.idbToken_",C);return C})};
u$5=function(D){if(!_.FL())throw D=new lX("AUTH_INVALID",{dbName:D}),_.MG(D),D;var C=_.wT();return{actualName:D+":"+C,publicName:D,userIdentifier:C}};
QIr=function(D,C,X,c){var W,p,g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:return p=(W=Error().stack)!=null?W:"",k.yield(_.vz(),2);case 2:g=k.yieldResult;if(!g)throw a=Cq("openDbImpl",D,C),_.b("ytidb_async_stack_killswitch")||(a.stack=a.stack+"\n"+p.substring(p.indexOf("\n")+1)),_.MG(a),a;fC(D);O=X?{actualName:D,publicName:D,userIdentifier:void 0}:u$5(D);_.KK(k,3);return k.yield(I7j(O,g),5);case 5:return k.yield(gPt(O.actualName,C,c),6);case 6:return k.return(k.yieldResult);case 3:return P=
_.Eu(k),_.KK(k,7),k.yield(_.Ip(O.actualName,g),9);case 9:_.SR(k,8);break;case 7:_.Eu(k);case 8:throw P;}})};
BJh=function(D,C,X){X=X===void 0?{}:X;return QIr(D,C,!1,X)};
be5=function(D,C,X){X=X===void 0?{}:X;return QIr(D,C,!0,X)};
rXm=function(D,C){C=C===void 0?{}:C;var X,c;return _.I(function(W){if(W.nextAddress==1)return W.yield(_.vz(),2);if(W.nextAddress!=3){X=W.yieldResult;if(!X)return W.return();fC(D);c=u$5(D);return W.yield(_.UH(c.actualName,C),3)}return W.yield(_.Ip(c.actualName,X),0)})};
Knh=function(D,C,X){D=D.map(function(c){return _.I(function(W){return W.nextAddress==1?W.yield(_.UH(c.actualName,C),2):W.yield(_.Ip(c.actualName,X),0)})});
return Promise.all(D).then(function(){})};
hnZ=function(D){var C=C===void 0?{}:C;var X,c;return _.I(function(W){if(W.nextAddress==1)return W.yield(_.vz(),2);if(W.nextAddress!=3){X=W.yieldResult;if(!X)return W.return();fC(D);return W.yield(AXt(D,X),3)}c=W.yieldResult;return W.yield(Knh(c,C,X),0)})};
xhJ=function(D,C){C=C===void 0?{}:C;var X;return _.I(function(c){if(c.nextAddress==1)return c.yield(_.vz(),2);if(c.nextAddress!=3){X=c.yieldResult;if(!X)return c.return();fC(D);return c.yield(_.UH(D,C),3)}return c.yield(_.Ip(D,X),0)})};
il=function(D,C){return LnR(D,C)};
mhm=function(D){return _.gD(sI3(),D)};
enW=function(D,C,X,c){var W,p,g;return _.I(function(a){switch(a.nextAddress){case 1:return W={config:D,hashData:C,timestamp:c!==void 0?c:(0,_.kh)()},a.yield(mhm(X),2);case 2:return p=a.yieldResult,a.yield(p.clear("hotConfigStore"),3);case 3:return a.yield(p.put("hotConfigStore",W),4);case 4:return g=a.yieldResult,a.return(g)}})};
EPm=function(D,C,X,c,W){var p,g,a;return _.I(function(O){switch(O.nextAddress){case 1:return p={config:D,hashData:C,configData:X,timestamp:W!==void 0?W:(0,_.kh)()},O.yield(mhm(c),2);case 2:return g=O.yieldResult,O.yield(g.clear("coldConfigStore"),3);case 3:return O.yield(g.put("coldConfigStore",p),4);case 4:return a=O.yieldResult,O.return(a)}})};
tV3=function(D){var C,X;return _.I(function(c){return c.nextAddress==1?c.yield(mhm(D),2):c.nextAddress!=3?(C=c.yieldResult,X=void 0,c.yield(_.ap(C,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.ul(W.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(p){X=p.getValue()})}),3)):c.return(X)})};
NJW=function(D){var C,X;return _.I(function(c){return c.nextAddress==1?c.yield(mhm(D),2):c.nextAddress!=3?(C=c.yieldResult,X=void 0,c.yield(_.ap(C,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.ul(W.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(p){X=p.getValue()})}),3)):c.return(X)})};
Y1Z=function(){return _.I(function(D){return D.yield(hnZ("ytGcfConfig"),0)})};
yX3=function(){return"INNERTUBE_API_KEY"in _.jj&&"INNERTUBE_API_VERSION"in _.jj};
_.QJ=function(){return{innertubeApiKey:_.q6("INNERTUBE_API_KEY"),innertubeApiVersion:_.q6("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.q6("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.q6("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.q6("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.q6("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.q6("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.q6("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.q6("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.dq("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.dq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.q6("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.TJJ=function(D){var C={client:{hl:D.innertubeContextHostLanguage,gl:D.innertubeContextGeoLocation,clientName:D.innertubeContextClientName,clientVersion:D.innertubeContextClientVersion,configInfo:D.innertubeContextClientConfigInfo}};navigator.userAgent&&(C.client.userAgent=String(navigator.userAgent));var X=_.co.devicePixelRatio;X&&X!=1&&(C.client.screenDensityFloat=String(X));X=pEm();X!==""&&(C.client.experimentsToken=X);X=SpF();X.length>0&&(C.request={internalExperimentFlags:X});nPZ(D,void 0,C);
w_3(void 0,C);Fno(void 0,C);Zem(D,void 0,C);G1r(void 0,C);_.b("start_client_gcf")&&VVd(void 0,C);_.q6("DELEGATED_SESSION_ID")&&!_.b("pageid_as_header_web")&&(C.user={onBehalfOfUser:_.q6("DELEGATED_SESSION_ID")});!_.b("fill_delegate_context_in_gel_killswitch")&&(D=_.q6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(C.user=Object.assign({},C.user,{serializedDelegationContext:D}));D=_.q6("INNERTUBE_CONTEXT");var c;if(_.b("enable_persistent_device_token")&&(D==null?0:(c=D.client)==null?0:c.rolloutToken)){var W;
C.client.rolloutToken=D==null?void 0:(W=D.client)==null?void 0:W.rolloutToken}c=Object;W=c.assign;D=C.client;X={};for(var p=_.U(Object.entries(_.Sq(_.q6("DEVICE","")))),g=p.next();!g.done;g=p.next()){var a=_.U(g.value);g=a.next().value;a=a.next().value;g==="cbrand"?X.deviceMake=a:g==="cmodel"?X.deviceModel=a:g==="cbr"?X.browserName=a:g==="cbrver"?X.browserVersion=a:g==="cos"?X.osName=a:g==="cosver"?X.osVersion=a:g==="cplatform"&&(X.platform=a)}C.client=W.call(c,D,X);return C};
nPZ=function(D,C,X){D=D.innertubeContextClientName;if(D==="WEB"||D==="MWEB"||D===1||D===2)if(C){X=_.Bz(C,HeZ,96)||new HeZ;var c=JXr();c=Object.keys(znh).indexOf(c);c=c===-1?null:c;c!==null&&_.bl(X,3,c);_.Lf(C,96,X)}else X&&(X.client.mainAppWebInfo=(c=X.client.mainAppWebInfo)!=null?c:{},X.client.mainAppWebInfo.webDisplayMode=JXr())};
w_3=function(D,C){var X=_.Df("yt.embedded_player.embed_url");X&&(D?(C=_.Bz(D,jIF,7)||new jIF,_.N3(C,4,X),_.Lf(D,7,C)):C&&(C.thirdParty={embedUrl:X}))};
Fno=function(D,C){var X;if(_.b("web_log_memory_total_kbytes")&&((X=_.co.navigator)==null?0:X.deviceMemory)){var c;X=(c=_.co.navigator)==null?void 0:c.deviceMemory;D?_.rD(D,95,Pp(X*1E6)):C&&(C.client.memoryTotalKbytes=""+X*1E6)}};
Zem=function(D,C,X){if(D.appInstallData)if(C){var c;X=(c=_.Bz(C,hC,62))!=null?c:new hC;_.N3(X,6,D.appInstallData);_.Lf(C,62,X)}else X&&(X.client.configInfo=X.client.configInfo||{},X.client.configInfo.appInstallData=D.appInstallData)};
G1r=function(D,C){var X=_.VyZ();X&&(D?_.bl(D,61,MVd[X]):C&&(C.client.connectionType=X));_.b("web_log_effective_connection_type")&&(X=HtZ())&&(D?_.bl(D,94,q1Z[X]):C&&(C.client.effectiveConnectionType=X))};
_.RnW=function(D,C,X){X=X===void 0?{}:X;var c={};_.q6("EOM_VISITOR_DATA")?c={"X-Goog-EOM-Visitor-Id":_.q6("EOM_VISITOR_DATA")}:c={"X-Goog-Visitor-Id":X.visitorData||_.q6("VISITOR_DATA","")};if(C&&C.includes("www.youtube-nocookie.com"))return c;C=X.authorization||_.q6("AUTHORIZATION");C||(D?C="Bearer "+_.Df("gapi.auth.getToken")().access_token:(f7t.instance||(f7t.instance=new f7t),D=dho(),_.b("pageid_as_header_web")||delete D["X-Goog-PageId"],c=Object.assign({},c,D)));C&&(c.Authorization=C);return c};
VVd=function(D,C){var X=l75();if(X){var c=X.coldConfigData,W=X.coldHashData;X=X.hotHashData;if(D){var p;C=(p=_.Bz(D,hC,62))!=null?p:new hC;c=_.N3(C,1,c);_.N3(c,3,W).setHotHashData(X);_.Lf(D,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},c&&(C.client.configInfo.coldConfigData=c),W&&(C.client.configInfo.coldHashData=W),X&&(C.client.configInfo.hotHashData=X))}};
xh=function(D){for(var C=D.length;--C>=0;)D[C]=0};
Dzn=function(D,C,X,c,W){this.static_tree=D;this.extra_bits=C;this.extra_base=X;this.elems=c;this.max_length=W;this.has_stree=D&&D.length};
Cjj=function(D,C){this.dyn_tree=D;this.max_code=0;this.stat_desc=C};
Lq=function(D,C){D.pending_buf[D.pending++]=C&255;D.pending_buf[D.pending++]=C>>>8&255};
sH=function(D,C,X){D.bi_valid>16-X?(D.bi_buf|=C<<D.bi_valid&65535,Lq(D,D.bi_buf),D.bi_buf=C>>16-D.bi_valid,D.bi_valid+=X-16):(D.bi_buf|=C<<D.bi_valid&65535,D.bi_valid+=X)};
mI=function(D,C,X){sH(D,X[C*2],X[C*2+1])};
Xlm=function(D,C){var X=0;do X|=D&1,D>>>=1,X<<=1;while(--C>0);return X>>>1};
c93=function(D,C,X){var c=Array(16),W=0,p;for(p=1;p<=15;p++)c[p]=W=W+X[p-1]<<1;for(X=0;X<=C;X++)W=D[X*2+1],W!==0&&(D[X*2]=Xlm(c[W]++,W))};
oot=function(D){var C;for(C=0;C<286;C++)D.dyn_ltree[C*2]=0;for(C=0;C<30;C++)D.dyn_dtree[C*2]=0;for(C=0;C<19;C++)D.bl_tree[C*2]=0;D.dyn_ltree[512]=1;D.opt_len=D.static_len=0;D.last_lit=D.matches=0};
WW5=function(D){D.bi_valid>8?Lq(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf);D.bi_buf=0;D.bi_valid=0};
plR=function(D,C,X){WW5(D);Lq(D,X);Lq(D,~X);eR.arraySet(D.pending_buf,D.window,C,X,D.pending);D.pending+=X};
S2J=function(D,C,X,c){var W=C*2,p=X*2;return D[W]<D[p]||D[W]===D[p]&&c[C]<=c[X]};
Uzt=function(D,C,X){for(var c=D.heap[X],W=X<<1;W<=D.heap_len;){W<D.heap_len&&S2J(C,D.heap[W+1],D.heap[W],D.depth)&&W++;if(S2J(C,c,D.heap[W],D.depth))break;D.heap[X]=D.heap[W];X=W;W<<=1}D.heap[X]=c};
A9r=function(D,C,X){var c=0;if(D.last_lit!==0){do{var W=D.pending_buf[D.d_buf+c*2]<<8|D.pending_buf[D.d_buf+c*2+1];var p=D.pending_buf[D.l_buf+c];c++;if(W===0)mI(D,p,C);else{var g=EH[p];mI(D,g+256+1,C);var a=god[g];a!==0&&(p-=agj[g],sH(D,p,a));W--;g=W<256?tC[W]:tC[256+(W>>>7)];mI(D,g,X);a=Ign[g];a!==0&&(W-=OHm[g],sH(D,W,a))}}while(c<D.last_lit)}mI(D,256,C)};
PjZ=function(D,C){var X=C.dyn_tree,c=C.stat_desc.static_tree,W=C.stat_desc.has_stree,p=C.stat_desc.elems,g,a=-1;D.heap_len=0;D.heap_max=573;for(g=0;g<p;g++)X[g*2]!==0?(D.heap[++D.heap_len]=a=g,D.depth[g]=0):X[g*2+1]=0;for(;D.heap_len<2;){var O=D.heap[++D.heap_len]=a<2?++a:0;X[O*2]=1;D.depth[O]=0;D.opt_len--;W&&(D.static_len-=c[O*2+1])}C.max_code=a;for(g=D.heap_len>>1;g>=1;g--)Uzt(D,X,g);O=p;do g=D.heap[1],D.heap[1]=D.heap[D.heap_len--],Uzt(D,X,1),c=D.heap[1],D.heap[--D.heap_max]=g,D.heap[--D.heap_max]=
c,X[O*2]=X[g*2]+X[c*2],D.depth[O]=(D.depth[g]>=D.depth[c]?D.depth[g]:D.depth[c])+1,X[g*2+1]=X[c*2+1]=O,D.heap[1]=O++,Uzt(D,X,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1];g=C.dyn_tree;O=C.max_code;c=C.stat_desc.static_tree;W=C.stat_desc.has_stree;p=C.stat_desc.extra_bits;var P=C.stat_desc.extra_base,k=C.stat_desc.max_length,u,Q=0;for(u=0;u<=15;u++)D.bl_count[u]=0;g[D.heap[D.heap_max]*2+1]=0;for(C=D.heap_max+1;C<573;C++){var B=D.heap[C];u=g[g[B*2+1]*2+1]+1;u>k&&(u=k,Q++);g[B*2+1]=u;if(!(B>
O)){D.bl_count[u]++;var K=0;B>=P&&(K=p[B-P]);var L=g[B*2];D.opt_len+=L*(u+K);W&&(D.static_len+=L*(c[B*2+1]+K))}}if(Q!==0){do{for(u=k-1;D.bl_count[u]===0;)u--;D.bl_count[u]--;D.bl_count[u+1]+=2;D.bl_count[k]--;Q-=2}while(Q>0);for(u=k;u!==0;u--)for(B=D.bl_count[u];B!==0;)c=D.heap[--C],c>O||(g[c*2+1]!==u&&(D.opt_len+=(u-g[c*2+1])*g[c*2],g[c*2+1]=u),B--)}c93(X,a,D.bl_count)};
$zj=function(D,C,X){var c,W=-1,p=C[1],g=0,a=7,O=4;p===0&&(a=138,O=3);C[(X+1)*2+1]=65535;for(c=0;c<=X;c++){var P=p;p=C[(c+1)*2+1];++g<a&&P===p||(g<O?D.bl_tree[P*2]+=g:P!==0?(P!==W&&D.bl_tree[P*2]++,D.bl_tree[32]++):g<=10?D.bl_tree[34]++:D.bl_tree[36]++,g=0,W=P,p===0?(a=138,O=3):P===p?(a=6,O=3):(a=7,O=4))}};
voF=function(D,C,X){var c,W=-1,p=C[1],g=0,a=7,O=4;p===0&&(a=138,O=3);for(c=0;c<=X;c++){var P=p;p=C[(c+1)*2+1];if(!(++g<a&&P===p)){if(g<O){do mI(D,P,D.bl_tree);while(--g!==0)}else P!==0?(P!==W&&(mI(D,P,D.bl_tree),g--),mI(D,16,D.bl_tree),sH(D,g-3,2)):g<=10?(mI(D,17,D.bl_tree),sH(D,g-3,3)):(mI(D,18,D.bl_tree),sH(D,g-11,7));g=0;W=P;p===0?(a=138,O=3):P===p?(a=6,O=3):(a=7,O=4)}}};
iHW=function(D){var C=4093624447,X;for(X=0;X<=31;X++,C>>>=1)if(C&1&&D.dyn_ltree[X*2]!==0)return 0;if(D.dyn_ltree[18]!==0||D.dyn_ltree[20]!==0||D.dyn_ltree[26]!==0)return 1;for(X=32;X<256;X++)if(D.dyn_ltree[X*2]!==0)return 1;return 0};
NX=function(D,C,X){D.pending_buf[D.d_buf+D.last_lit*2]=C>>>8&255;D.pending_buf[D.d_buf+D.last_lit*2+1]=C&255;D.pending_buf[D.l_buf+D.last_lit]=X&255;D.last_lit++;C===0?D.dyn_ltree[X*2]++:(D.matches++,C--,D.dyn_ltree[(EH[X]+256+1)*2]++,D.dyn_dtree[(C<256?tC[C]:tC[256+(C>>>7)])*2]++);return D.last_lit===D.lit_bufsize-1};
yJ=function(D,C){D.msg=Yh[C];return C};
nq=function(D){for(var C=D.length;--C>=0;)D[C]=0};
wD=function(D){var C=D.state,X=C.pending;X>D.avail_out&&(X=D.avail_out);X!==0&&(eR.arraySet(D.output,C.pending_buf,C.pending_out,X,D.next_out),D.next_out+=X,C.pending_out+=X,D.total_out+=X,D.avail_out-=X,C.pending-=X,C.pending===0&&(C.pending_out=0))};
Gb=function(D,C){var X=D.block_start>=0?D.block_start:-1,c=D.strstart-D.block_start,W=0;if(D.level>0){D.strm.data_type===2&&(D.strm.data_type=iHW(D));PjZ(D,D.l_desc);PjZ(D,D.d_desc);$zj(D,D.dyn_ltree,D.l_desc.max_code);$zj(D,D.dyn_dtree,D.d_desc.max_code);PjZ(D,D.bl_desc);for(W=18;W>=3&&D.bl_tree[khr[W]*2+1]===0;W--);D.opt_len+=3*(W+1)+5+5+4;var p=D.opt_len+3+7>>>3;var g=D.static_len+3+7>>>3;g<=p&&(p=g)}else p=g=c+5;if(c+4<=p&&X!==-1)sH(D,C?1:0,3),plR(D,X,c);else if(D.strategy===4||g===p)sH(D,2+(C?
1:0),3),A9r(D,Fs,Zi);else{sH(D,4+(C?1:0),3);X=D.l_desc.max_code+1;c=D.d_desc.max_code+1;W+=1;sH(D,X-257,5);sH(D,c-1,5);sH(D,W-4,4);for(p=0;p<W;p++)sH(D,D.bl_tree[khr[p]*2+1],3);voF(D,D.dyn_ltree,X-1);voF(D,D.dyn_dtree,c-1);A9r(D,D.dyn_ltree,D.dyn_dtree)}oot(D);C&&WW5(D);D.block_start=D.strstart;wD(D.strm)};
VJ=function(D,C){D.pending_buf[D.pending++]=C};
Tb=function(D,C){D.pending_buf[D.pending++]=C>>>8&255;D.pending_buf[D.pending++]=C&255};
uUR=function(D,C){var X=D.max_chain_length,c=D.strstart,W=D.prev_length,p=D.nice_match,g=D.strstart>D.w_size-262?D.strstart-(D.w_size-262):0,a=D.window,O=D.w_mask,P=D.prev,k=D.strstart+258,u=a[c+W-1],Q=a[c+W];D.prev_length>=D.good_match&&(X>>=2);p>D.lookahead&&(p=D.lookahead);do{var B=C;if(a[B+W]===Q&&a[B+W-1]===u&&a[B]===a[c]&&a[++B]===a[c+1]){c+=2;for(B++;a[++c]===a[++B]&&a[++c]===a[++B]&&a[++c]===a[++B]&&a[++c]===a[++B]&&a[++c]===a[++B]&&a[++c]===a[++B]&&a[++c]===a[++B]&&a[++c]===a[++B]&&c<k;);
B=258-(k-c);c=k-258;if(B>W){D.match_start=C;W=B;if(B>=p)break;u=a[c+W-1];Q=a[c+W]}}}while((C=P[C&O])>g&&--X!==0);return W<=D.lookahead?W:D.lookahead};
JC=function(D){var C=D.w_size,X;do{var c=D.window_size-D.lookahead-D.strstart;if(D.strstart>=C+(C-262)){eR.arraySet(D.window,D.window,C,C,0);D.match_start-=C;D.strstart-=C;D.block_start-=C;var W=X=D.hash_size;do{var p=D.head[--W];D.head[W]=p>=C?p-C:0}while(--X);W=X=C;do p=D.prev[--W],D.prev[W]=p>=C?p-C:0;while(--X);c+=C}if(D.strm.avail_in===0)break;W=D.strm;X=D.window;p=D.strstart+D.lookahead;var g=W.avail_in;g>c&&(g=c);g===0?X=0:(W.avail_in-=g,eR.arraySet(X,W.input,W.next_in,g,p),W.state.wrap===
1?W.adler=QEm(W.adler,X,g,p):W.state.wrap===2&&(W.adler=Hz(W.adler,X,g,p)),W.next_in+=g,W.total_in+=g,X=g);D.lookahead+=X;if(D.lookahead+D.insert>=3)for(c=D.strstart-D.insert,D.ins_h=D.window[c],D.ins_h=(D.ins_h<<D.hash_shift^D.window[c+1])&D.hash_mask;D.insert&&!(D.ins_h=(D.ins_h<<D.hash_shift^D.window[c+3-1])&D.hash_mask,D.prev[c&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=c,c++,D.insert--,D.lookahead+D.insert<3););}while(D.lookahead<262&&D.strm.avail_in!==0)};
BLo=function(D,C){for(var X;;){if(D.lookahead<262){JC(D);if(D.lookahead<262&&C===0)return 1;if(D.lookahead===0)break}X=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,X=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);X!==0&&D.strstart-X<=D.w_size-262&&(D.match_length=uUR(D,X));if(D.match_length>=3)if(X=NX(D,D.strstart-D.match_start,D.match_length-3),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=3){D.match_length--;
do D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart;while(--D.match_length!==0);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else X=NX(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(X&&(Gb(D,!1),D.strm.avail_out===0))return 1}D.insert=D.strstart<2?D.strstart:2;return C===4?(Gb(D,
!0),D.strm.avail_out===0?3:4):D.last_lit&&(Gb(D,!1),D.strm.avail_out===0)?1:2};
zb=function(D,C){for(var X,c;;){if(D.lookahead<262){JC(D);if(D.lookahead<262&&C===0)return 1;if(D.lookahead===0)break}X=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,X=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);D.prev_length=D.match_length;D.prev_match=D.match_start;D.match_length=2;X!==0&&D.prev_length<D.max_lazy_match&&D.strstart-X<=D.w_size-262&&(D.match_length=uUR(D,X),D.match_length<=5&&(D.strategy===1||D.match_length===3&&
D.strstart-D.match_start>4096)&&(D.match_length=2));if(D.prev_length>=3&&D.match_length<=D.prev_length){c=D.strstart+D.lookahead-3;X=NX(D,D.strstart-1-D.prev_match,D.prev_length-3);D.lookahead-=D.prev_length-1;D.prev_length-=2;do++D.strstart<=c&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);while(--D.prev_length!==0);D.match_available=0;D.match_length=2;D.strstart++;if(X&&(Gb(D,!1),D.strm.avail_out===0))return 1}else if(D.match_available){if((X=
NX(D,0,D.window[D.strstart-1]))&&Gb(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return 1}else D.match_available=1,D.strstart++,D.lookahead--}D.match_available&&(NX(D,0,D.window[D.strstart-1]),D.match_available=0);D.insert=D.strstart<2?D.strstart:2;return C===4?(Gb(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(Gb(D,!1),D.strm.avail_out===0)?1:2};
bHW=function(D,C){for(var X,c,W,p=D.window;;){if(D.lookahead<=258){JC(D);if(D.lookahead<=258&&C===0)return 1;if(D.lookahead===0)break}D.match_length=0;if(D.lookahead>=3&&D.strstart>0&&(c=D.strstart-1,X=p[c],X===p[++c]&&X===p[++c]&&X===p[++c])){for(W=D.strstart+258;X===p[++c]&&X===p[++c]&&X===p[++c]&&X===p[++c]&&X===p[++c]&&X===p[++c]&&X===p[++c]&&X===p[++c]&&c<W;);D.match_length=258-(W-c);D.match_length>D.lookahead&&(D.match_length=D.lookahead)}D.match_length>=3?(X=NX(D,1,D.match_length-3),D.lookahead-=
D.match_length,D.strstart+=D.match_length,D.match_length=0):(X=NX(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++);if(X&&(Gb(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return C===4?(Gb(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(Gb(D,!1),D.strm.avail_out===0)?1:2};
r9r=function(D,C){for(var X;;){if(D.lookahead===0&&(JC(D),D.lookahead===0)){if(C===0)return 1;break}D.match_length=0;X=NX(D,0,D.window[D.strstart]);D.lookahead--;D.strstart++;if(X&&(Gb(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return C===4?(Gb(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(Gb(D,!1),D.strm.avail_out===0)?1:2};
jR=function(D,C,X,c,W){this.good_length=D;this.max_lazy=C;this.nice_length=X;this.max_chain=c;this.func=W};
KWZ=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 eR.Buf16(1146);this.dyn_dtree=new eR.Buf16(122);this.bl_tree=new eR.Buf16(78);nq(this.dyn_ltree);nq(this.dyn_dtree);nq(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new eR.Buf16(16);this.heap=new eR.Buf16(573);nq(this.heap);this.heap_max=this.heap_len=0;this.depth=new eR.Buf16(573);nq(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};
hcJ=function(D,C){if(!D||!D.state||C>5||C<0)return D?yJ(D,-2):-2;var X=D.state;if(!D.output||!D.input&&D.avail_in!==0||X.status===666&&C!==4)return yJ(D,D.avail_out===0?-5:-2);X.strm=D;var c=X.last_flush;X.last_flush=C;if(X.status===42)if(X.wrap===2)D.adler=0,VJ(X,31),VJ(X,139),VJ(X,8),X.gzhead?(VJ(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)),VJ(X,X.gzhead.time&255),VJ(X,X.gzhead.time>>8&255),VJ(X,X.gzhead.time>>16&255),VJ(X,X.gzhead.time>>
24&255),VJ(X,X.level===9?2:X.strategy>=2||X.level<2?4:0),VJ(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length&&(VJ(X,X.gzhead.extra.length&255),VJ(X,X.gzhead.extra.length>>8&255)),X.gzhead.hcrc&&(D.adler=Hz(D.adler,X.pending_buf,X.pending,0)),X.gzindex=0,X.status=69):(VJ(X,0),VJ(X,0),VJ(X,0),VJ(X,0),VJ(X,0),VJ(X,X.level===9?2:X.strategy>=2||X.level<2?4:0),VJ(X,3),X.status=113);else{var W=8+(X.w_bits-8<<4)<<8;W|=(X.strategy>=2||X.level<2?0:X.level<6?1:X.level===6?2:3)<<6;X.strstart!==0&&(W|=
32);X.status=113;Tb(X,W+(31-W%31));X.strstart!==0&&(Tb(X,D.adler>>>16),Tb(X,D.adler&65535));D.adler=1}if(X.status===69)if(X.gzhead.extra){for(W=X.pending;X.gzindex<(X.gzhead.extra.length&65535)&&(X.pending!==X.pending_buf_size||(X.gzhead.hcrc&&X.pending>W&&(D.adler=Hz(D.adler,X.pending_buf,X.pending-W,W)),wD(D),W=X.pending,X.pending!==X.pending_buf_size));)VJ(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++;X.gzhead.hcrc&&X.pending>W&&(D.adler=Hz(D.adler,X.pending_buf,X.pending-W,W));X.gzindex===X.gzhead.extra.length&&
(X.gzindex=0,X.status=73)}else X.status=73;if(X.status===73)if(X.gzhead.name){W=X.pending;do{if(X.pending===X.pending_buf_size&&(X.gzhead.hcrc&&X.pending>W&&(D.adler=Hz(D.adler,X.pending_buf,X.pending-W,W)),wD(D),W=X.pending,X.pending===X.pending_buf_size)){var p=1;break}p=X.gzindex<X.gzhead.name.length?X.gzhead.name.charCodeAt(X.gzindex++)&255:0;VJ(X,p)}while(p!==0);X.gzhead.hcrc&&X.pending>W&&(D.adler=Hz(D.adler,X.pending_buf,X.pending-W,W));p===0&&(X.gzindex=0,X.status=91)}else X.status=91;if(X.status===
91)if(X.gzhead.comment){W=X.pending;do{if(X.pending===X.pending_buf_size&&(X.gzhead.hcrc&&X.pending>W&&(D.adler=Hz(D.adler,X.pending_buf,X.pending-W,W)),wD(D),W=X.pending,X.pending===X.pending_buf_size)){p=1;break}p=X.gzindex<X.gzhead.comment.length?X.gzhead.comment.charCodeAt(X.gzindex++)&255:0;VJ(X,p)}while(p!==0);X.gzhead.hcrc&&X.pending>W&&(D.adler=Hz(D.adler,X.pending_buf,X.pending-W,W));p===0&&(X.status=103)}else X.status=103;X.status===103&&(X.gzhead.hcrc?(X.pending+2>X.pending_buf_size&&wD(D),
X.pending+2<=X.pending_buf_size&&(VJ(X,D.adler&255),VJ(X,D.adler>>8&255),D.adler=0,X.status=113)):X.status=113);if(X.pending!==0){if(wD(D),D.avail_out===0)return X.last_flush=-1,0}else if(D.avail_in===0&&(C<<1)-(C>4?9:0)<=(c<<1)-(c>4?9:0)&&C!==4)return yJ(D,-5);if(X.status===666&&D.avail_in!==0)return yJ(D,-5);if(D.avail_in!==0||X.lookahead!==0||C!==0&&X.status!==666){c=X.strategy===2?r9r(X,C):X.strategy===3?bHW(X,C):MX[X.level].func(X,C);if(c===3||c===4)X.status=666;if(c===1||c===3)return D.avail_out===
0&&(X.last_flush=-1),0;if(c===2&&(C===1?(sH(X,2,3),mI(X,256,Fs),X.bi_valid===16?(Lq(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):X.bi_valid>=8&&(X.pending_buf[X.pending++]=X.bi_buf&255,X.bi_buf>>=8,X.bi_valid-=8)):C!==5&&(sH(X,0,3),plR(X,0,0),C===3&&(nq(X.head),X.lookahead===0&&(X.strstart=0,X.block_start=0,X.insert=0))),wD(D),D.avail_out===0))return X.last_flush=-1,0}if(C!==4)return 0;if(X.wrap<=0)return 1;X.wrap===2?(VJ(X,D.adler&255),VJ(X,D.adler>>8&255),VJ(X,D.adler>>16&255),VJ(X,D.adler>>24&255),VJ(X,
D.total_in&255),VJ(X,D.total_in>>8&255),VJ(X,D.total_in>>16&255),VJ(X,D.total_in>>24&255)):(Tb(X,D.adler>>>16),Tb(X,D.adler&65535));wD(D);X.wrap>0&&(X.wrap=-X.wrap);return X.pending!==0?0:1};
xz5=function(D){if(!(this instanceof xz5))return new xz5(D);D=this.options=eR.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},D||{});D.raw&&D.windowBits>0?D.windowBits=-D.windowBits:D.gzip&&D.windowBits>0&&D.windowBits<16&&(D.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new LWj;this.strm.avail_out=0;var C=this.strm;var X=D.level,c=D.method,W=D.windowBits,p=D.memLevel,g=D.strategy;if(C){var a=1;X===-1&&(X=6);W<0?(a=0,W=-W):W>15&&
(a=2,W-=16);if(p<1||p>9||c!==8||W<8||W>15||X<0||X>9||g<0||g>4)C=yJ(C,-2);else{W===8&&(W=9);var O=new KWZ;C.state=O;O.strm=C;O.wrap=a;O.gzhead=null;O.w_bits=W;O.w_size=1<<O.w_bits;O.w_mask=O.w_size-1;O.hash_bits=p+7;O.hash_size=1<<O.hash_bits;O.hash_mask=O.hash_size-1;O.hash_shift=~~((O.hash_bits+3-1)/3);O.window=new eR.Buf8(O.w_size*2);O.head=new eR.Buf16(O.hash_size);O.prev=new eR.Buf16(O.w_size);O.lit_bufsize=1<<p+6;O.pending_buf_size=O.lit_bufsize*4;O.pending_buf=new eR.Buf8(O.pending_buf_size);
O.d_buf=O.lit_bufsize;O.l_buf=3*O.lit_bufsize;O.level=X;O.strategy=g;O.method=c;if(C&&C.state){C.total_in=C.total_out=0;C.data_type=2;X=C.state;X.pending=0;X.pending_out=0;X.wrap<0&&(X.wrap=-X.wrap);X.status=X.wrap?42:113;C.adler=X.wrap===2?0:1;X.last_flush=0;if(!sEo){c=Array(16);for(p=g=0;p<28;p++)for(agj[p]=g,W=0;W<1<<god[p];W++)EH[g++]=p;EH[g-1]=p;for(p=g=0;p<16;p++)for(OHm[p]=g,W=0;W<1<<Ign[p];W++)tC[g++]=p;for(g>>=7;p<30;p++)for(OHm[p]=g<<7,W=0;W<1<<Ign[p]-7;W++)tC[256+g++]=p;for(W=0;W<=15;W++)c[W]=
0;for(W=0;W<=143;)Fs[W*2+1]=8,W++,c[8]++;for(;W<=255;)Fs[W*2+1]=9,W++,c[9]++;for(;W<=279;)Fs[W*2+1]=7,W++,c[7]++;for(;W<=287;)Fs[W*2+1]=8,W++,c[8]++;c93(Fs,287,c);for(W=0;W<30;W++)Zi[W*2+1]=5,Zi[W*2]=Xlm(W,5);mzJ=new Dzn(Fs,god,257,286,15);ecF=new Dzn(Zi,Ign,0,30,15);EoR=new Dzn([],t_d,0,19,7);sEo=!0}X.l_desc=new Cjj(X.dyn_ltree,mzJ);X.d_desc=new Cjj(X.dyn_dtree,ecF);X.bl_desc=new Cjj(X.bl_tree,EoR);X.bi_buf=0;X.bi_valid=0;oot(X);X=0}else X=yJ(C,-2);X===0&&(C=C.state,C.window_size=2*C.w_size,nq(C.head),
C.max_lazy_match=MX[C.level].max_lazy,C.good_match=MX[C.level].good_length,C.nice_match=MX[C.level].nice_length,C.max_chain_length=MX[C.level].max_chain,C.strstart=0,C.block_start=0,C.lookahead=0,C.insert=0,C.match_length=C.prev_length=2,C.match_available=0,C.ins_h=0);C=X}}else C=-2;if(C!==0)throw Error(Yh[C]);D.header&&(C=this.strm)&&C.state&&C.state.wrap===2&&(C.state.gzhead=D.header);if(D.dictionary){var P;typeof D.dictionary==="string"?P=NLh(D.dictionary):Y2r.call(D.dictionary)==="[object ArrayBuffer]"?
P=new Uint8Array(D.dictionary):P=D.dictionary;D=this.strm;p=P;g=p.length;if(D&&D.state)if(P=D.state,C=P.wrap,C===2||C===1&&P.status!==42||P.lookahead)C=-2;else{C===1&&(D.adler=QEm(D.adler,p,g,0));P.wrap=0;g>=P.w_size&&(C===0&&(nq(P.head),P.strstart=0,P.block_start=0,P.insert=0),X=new eR.Buf8(P.w_size),eR.arraySet(X,p,g-P.w_size,P.w_size,0),p=X,g=P.w_size);X=D.avail_in;c=D.next_in;W=D.input;D.avail_in=g;D.next_in=0;D.input=p;for(JC(P);P.lookahead>=3;){p=P.strstart;g=P.lookahead-2;do P.ins_h=(P.ins_h<<
P.hash_shift^P.window[p+3-1])&P.hash_mask,P.prev[p&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=p,p++;while(--g);P.strstart=p;P.lookahead=2;JC(P)}P.strstart+=P.lookahead;P.block_start=P.strstart;P.insert=P.lookahead;P.lookahead=0;P.match_length=P.prev_length=2;P.match_available=0;D.next_in=c;D.input=W;D.avail_in=X;P.wrap=C;C=0}else C=-2;if(C!==0)throw Error(Yh[C]);this._dict_set=!0}};
y9h=function(D,C){C=C||{};C.gzip=!0;C=new xz5(C);C.push(D,!0);if(C.err)throw C.msg||Yh[C.err];return C.result};
wl3=function(D,C){var X=no5();X&&X.publish.call(X,D.toString(),D,C)};
TLm=function(D,C,X){var c=no5();if(!c)return 0;var W=c.subscribe(D.toString(),function(p,g){var a=_.Df("ytPubsub2Pubsub2SkipSubKey");a&&a==W||(a=function(){if(FWo[W])try{if(g&&D instanceof ZHJ&&D!=p)try{var O=D.dataClass,P=g;if(!P.args||!P.version)throw Error("$c");try{if(!O.version_){var k=new O;O.version_=k.version}var u=O.version_}catch(Q){}if(!u||P.version!=u)throw Error("ad");try{g=Reflect.construct(O,_.Ho(P.args))}catch(Q){throw Q.message="yt.pubsub2.Data.deserialize(): "+Q.message,Q;}}catch(Q){throw Q.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+D.toString()+": "+Q.message,Q;}C.call(X||window,g)}catch(Q){_.Re(Q)}},GhR[D.toString()]?_.Df("yt.scheduler.instance")?_.qX.addLowPriorityJob(a):_.xz(a,0):a())});
FWo[W]=!0;V_j[D.toString()]||(V_j[D.toString()]=[]);V_j[D.toString()].push(W);return W};
jEh=function(){var D=HHJ,C=TLm(J9J,function(X){D.apply(void 0,arguments);zc3(C)});
return C};
zc3=function(D){var C=no5();C&&(typeof D==="number"&&(D=[D]),_.pC(D,function(X){C.unsubscribeByKey(X);delete FWo[X]}))};
no5=function(){return _.Df("ytPubsub2Pubsub2Instance")};
M_m=function(D,C,X){X=X===void 0?{sampleRate:.1}:X;Math.random()<Math.min(.02,X.sampleRate/100)&&wl3("meta_logging_csi_event",{timerName:D,timelineData:C})};
_.q2m=function(D){return D?(D=D.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.pK(D):null:null};
_.fq=function(D){return D?(D=D.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.t2(D):null:null};
dzW=function(){fgo||(fgo=_.fq(_.q6("WORKER_SERIALIZATION_URL")));return fgo||void 0};
_.lgJ=function(){var D=dzW();RcW||D===void 0||(RcW=u7h(D));return RcW};
_.DwZ=function(){return typeof Worker==="function"&&dzW()?!0:!1};
_.on5=function(){if(_.DwZ()&&!CHd){var D=function(X){X=X.data;if(X.op==="gzippedGelBatch"){var c=Xrm.get(X.key);c&&(cAZ(X.gzippedBatch,c.latencyPayload,c.url,c.options,c.sendFn),Xrm.delete(X.key))}},C=_.lgJ();
C&&(C.addEventListener("message",D),C.onerror=function(){Xrm.clear()},CHd=!0)}};
IJZ=function(D,C,X,c,W){W=W===void 0?!1:W;var p={startTime:(0,_.kh)(),ticks:{},infos:{}};if(dD)try{var g=WZ3(C);if(g!=null&&(g>prZ||g<Sso))c(D,X);else{if(_.b("gzip_gel_with_worker")&&(_.b("initial_gzip_use_main_thread")&&!UwJ||!_.b("initial_gzip_use_main_thread"))){CHd||_.on5();var a=_.lgJ();if(a&&!W){Xrm.set(gno,{latencyPayload:p,url:D,options:X,sendFn:c});a.postMessage({op:"gelBatchToGzip",serializedBatch:C,key:gno});gno++;return}}var O=y9h(aJm(C));cAZ(O,p,D,X,c)}}catch(P){_.CC(P),c(D,X)}else c(D,
X)};
cAZ=function(D,C,X,c,W){UwJ=!1;var p=(0,_.kh)();C.ticks.gelc=p;Rp++;_.b("disable_compression_due_to_performance_degredation")&&p-C.startTime>=OGt&&(AAr++,dD=!1);PHF(C);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=D;c.postParams=void 0;W(X,c)};
vn3=function(D){var C=C===void 0?!1:C;var X=X===void 0?!1:X;var c=(0,_.kh)(),W={startTime:c,ticks:{},infos:{}},p=C?_.Df("yt.logging.gzipForFetch",!1):!0;if(dD&&p){if(!D.body)return D;try{var g=X?D.body:typeof D.body==="string"?D.body:JSON.stringify(D.body);p=g;if(!X&&typeof g==="string"){var a=WZ3(g);if(a!=null&&(a>prZ||a<Sso))return D;X=C?{level:1}:void 0;p=y9h(aJm(g),X);var O=(0,_.kh)();W.ticks.gelc=O;if(C){Rp++;if((_.b("disable_compression_due_to_performance_degredation")||_.b("disable_compression_due_to_performance_degradation_lr"))&&
O-c>=OGt)if(AAr++,_.b("abandon_compression_after_N_slow_zips_lr")){C=AAr/Rp;var P=$wF/_.BK("compression_disable_point");Rp>0&&Rp%_.BK("compression_disable_point")===0&&C>=P&&(dD=!1)}else dD=!1;PHF(W)}}D.headers=Object.assign({},{"Content-Encoding":"gzip"},D.headers||{});D.body=p;return D}catch(k){return _.CC(k),D}}else return D};
WZ3=function(D){try{return(new Blob(D.split(""))).size}catch(C){return _.CC(C),null}};
PHF=function(D){_.b("gel_compression_csi_killswitch")||!_.b("log_gel_compression_latency")&&!_.b("log_gel_compression_latency_lr")||M_m("gel_compression",D,{sampleRate:.1})};
iGF=function(){this.blockSize=-1};
ll=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var D=1;D<this.blockSize;++D)this.pad_[D]=0;this.total_=this.inbuf_=0;this.reset()};
uzt=function(D){D=Object.assign({},D);delete D.Authorization;var C=_.kA5();if(C){var X=new ll;X.update(_.q6("INNERTUBE_API_KEY"));X.update(C);D.hash=_.tP(X.digest(),3)}return D};
CQ=function(){Qo3||(Qo3=new _.Do("yt.innertube"));return Qo3};
Bi5=function(D,C,X,c){if(c)return null;c=CQ().get("nextId",!0)||1;var W=CQ().get("requests",!0)||{};W[c]={method:D,request:C,authState:uzt(X),requestTime:Math.round((0,_.kh)())};CQ().set("nextId",c+1,86400,!0);CQ().set("requests",W,86400,!0);return c};
bGm=function(D){var C=CQ().get("requests",!0)||{};delete C[D];CQ().set("requests",C,86400,!0)};
KZm=function(D){var C=CQ().get("requests",!0);if(C){for(var X in C){var c=C[X];if(!(Math.round((0,_.kh)())-c.requestTime<6E4)){var W=c.authState,p=uzt(_.RnW(!1));_.ZI.equals(W,p)&&(W=c.request,"requestTimeMs"in W&&(W.requestTimeMs=Math.round((0,_.kh)())),rAJ(D,c.method,W,{}));delete C[X]}}CQ().set("requests",C,86400,!0)}};
hOh=function(D){var C;return(D=D==null?void 0:(C=D.error)==null?void 0:C.code)&&D>=400&&D<=599?!1:!0};
xwj=function(D){var C;D=D==null?void 0:(C=D.error)==null?void 0:C.code;return!(D!==400&&D!==415)};
soJ=function(){if(LZJ)return LZJ();var D={};LZJ=il("LogsDatabaseV2",{objectStores:(D.LogsRequestsStore={addedAtVersion:2},D),shared:!1,upgrade:function(C,X,c){X(2)&&X3(C,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});X(3);X(5)&&(c=c.objectStore("LogsRequestsStore"),c.JSC$10846_wrapped.indexNames.contains("newRequest")&&c.JSC$10846_wrapped.deleteIndex("newRequest"),cL(c,"newRequestV2",["status","interface","timestamp"]));X(7)&&C.JSC$10831_wrapped.objectStoreNames.contains("sapisid")&&C.JSC$10831_wrapped.deleteObjectStore("sapisid");
X(9)&&C.JSC$10831_wrapped.objectStoreNames.contains("SWHealthLog")&&C.JSC$10831_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return LZJ()};
oi=function(D){return _.gD(soJ(),D)};
eO5=function(D,C){var X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return X={startTime:(0,_.kh)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(oi(C),2);if(g.nextAddress!=3)return c=g.yieldResult,W=Object.assign({},D,{options:JSON.parse(JSON.stringify(D.options)),interface:_.q6("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(c.put("LogsRequestsStore",W),3);p=g.yieldResult;X.ticks.tc=(0,_.kh)();mw5(X);return g.return(p)})};
Enj=function(D,C){var X,c,W,p,g,a,O,P,k;return _.I(function(u){if(u.nextAddress==1)return X={startTime:(0,_.kh)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},u.yield(oi(C),2);if(u.nextAddress!=3)return c=u.yieldResult,W=_.q6("INNERTUBE_CONTEXT_CLIENT_NAME",0),p=[D,W,0],g=[D,W,(0,_.kh)()],a=IDBKeyRange.bound(p,g),O="prev",_.b("use_fifo_for_networkless")&&(O="next"),P=void 0,k=D==="NEW"?"readwrite":"readonly",_.b("use_readonly_for_get_most_recent_by_status_killswitch")&&(k="readwrite"),
u.yield(_.ap(c,["LogsRequestsStore"],{mode:k,enableRetries:!0},function(Q){return _.ul(Q.objectStore("LogsRequestsStore").index("newRequestV2"),{query:a,direction:O},function(B){B.getValue()&&(P=B.getValue(),D==="NEW"&&(P.status="QUEUED",B.update(P)))})}),3);
X.ticks.tc=(0,_.kh)();mw5(X);return u.return(P)})};
tYW=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1)return c.yield(oi(C),2);X=c.yieldResult;return c.return(_.ap(X,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){var p=W.objectStore("LogsRequestsStore");return p.get(D).then(function(g){if(g)return g.status="QUEUED",p.put(g).then(function(){return g})})}))})};
Nir=function(D,C,X,c){X=X===void 0?!0:X;var W;return _.I(function(p){if(p.nextAddress==1)return p.yield(oi(C),2);W=p.yieldResult;return p.return(_.ap(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(g){var a=g.objectStore("LogsRequestsStore");return a.get(D).then(function(O){return O?(O.status="NEW",X&&(O.sendCount+=1),c!==void 0&&(O.options.compress=c),a.put(O).then(function(){return O})):Xs.resolve(void 0)})}))})};
Ys3=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1)return c.yield(oi(C),2);X=c.yieldResult;return c.return(X.delete("LogsRequestsStore",D))})};
yAn=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(oi(D),2);C=c.yieldResult;X=(0,_.kh)()-2592E6;return c.yield(_.ap(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){return OH(W.objectStore("LogsRequestsStore"),{},function(p){if(p.getValue().timestamp<=X)return p.delete().then(function(){return p.continue()})})}),0)})};
nnn=function(){_.I(function(D){return D.yield(hnZ("LogsDatabaseV2"),0)})};
mw5=function(D){_.b("nwl_csi_killswitch")||M_m("networkless_performance",D,{sampleRate:1})};
_.FZn=function(D){return _.gD(wrr(),D)};
ZGo=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(_.FZn(D),2);C=c.yieldResult;X=(0,_.kh)()-2592E6;return c.yield(_.ap(C,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(W){return OH(W.objectStore("SWHealthLog"),{},function(p){if(p.getValue().timestamp<=X)return p.delete().then(function(){return p.continue()})})}),0)})};
GAr=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(_.FZn(D),2);C=X.yieldResult;return X.yield(C.clear("SWHealthLog"),0)})};
_.WL=function(D,C,X,c,W,p,g){W=W===void 0?"":W;p=p===void 0?!1:p;g=g===void 0?!1:g;if(D)if(X&&!RQ("cobalt"))_.CC(new _.Zf("Legacy referrer-scrubbed ping detected")),D&&VYt(D,void 0,{scrubReferrer:!0});else if(W)$CW(D,C,"POST",W,c);else if(_.q6("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||c||g)$CW(D,C,"GET","",c,void 0,p,g);else{b:{try{c:{var a=new Tij({url:D});if(a.urlParamValues_.dsh==="1")var O=null;else{var P=a.urlParamValues_.ae;if(P==="1"){var k=a.urlParamValues_.adurl;if(k)try{O={version:3,directUrl:decodeURIComponent(k),
asyncUrl:G4r(a.JSC$9641_url_,"act=1","ri=1",HGh(a))};break c}catch(K){}}O=P==="2"?{version:4,directUrl:G4r(a.JSC$9641_url_,"dct=1","suid="+a.suid_,"ri=1"),asyncUrl:G4r(a.JSC$9641_url_,"act=1","ri=1","suid="+a.suid_)}:null}}if(O){var u=_.mC(D);var Q=!(!u||!u.endsWith("/aclk")||_.DH(D,"ri")!=="1");break b}}catch(K){}Q=!1}if(Q){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(D,"")){var B=!0;break b}}catch(K){}B=!1}B?(C&&C(),X=!0):X=!1}else X=!1;X||VYt(D,C)}};
VYt=function(D,C,X){X=X===void 0?{}:X;var c=new Image,W=""+JAm++;zOm[W]=c;c.onload=c.onerror=function(){C&&zOm[W]&&C();delete zOm[W]};
X.scrubReferrer&&(c.referrerPolicy="no-referrer");c.src=D};
pQ=function(D,C){joW(D,C==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
MY3=function(D){var C;return((C=document.featurePolicy)==null?0:C.allowedFeatures().includes("attribution-reporting"))?D+"&nis=6":D+"&nis=5"};
qsZ=function(D){if(!D)return!1;try{var C;if(((C=_.Sq(D))==null?void 0:C.asm)==="4")return!0}catch(X){_.Re(X)}return!1};
joW=function(D,C){C?(D=MY3(D),_.WL(D,void 0,void 0,void 0,"",!0,!0)):_.WL(D)};
dwh=function(){fJZ||(fJZ=new _.Do("yt.offline"));return fJZ};
ROn=function(D){if(_.b("offline_error_handling")){var C=dwh().get("errors",!0)||{};C[D.message]={name:D.name,stack:D.stack};D.level&&(C[D.message].level=D.level);dwh().set("errors",C,2592E3,!0)}};
D_m=function(D,C,X,c){c=c===void 0?!1:c;C=_.b("web_fp_via_jspb")?Object.assign({},C):C;_.b("use_cfr_monitor")&&lJj(D,C);if(_.b("use_request_time_ms_header"))C.headers&&PK(D)&&(C.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.kh)())));else{var W;if((W=C.postParams)==null?0:W.requestTimeMs)C.postParams.requestTimeMs=Math.round((0,_.kh)())}X&&Object.keys(C).length===0?_.WL(D):C.compress?C.postBody?(typeof C.postBody!=="string"&&(C.postBody=JSON.stringify(C.postBody)),IJZ(D,C.postBody,
C,_.eq,c)):IJZ(D,JSON.stringify(C.postParams),C,u_h,c):_.eq(D,C)};
COF=function(D,C){_.b("use_event_time_ms_header")&&PK(D)&&(C.headers||(C.headers={}),C.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.kh)())));return C};
_.cvd=function(){Xc3||(Xc3=new _.Se({logOfflineErrors:!0,enablePolling:!0}));return Xc3};
lJj=function(D,C){var X=C.onError?C.onError:function(){};
C.onError=function(W,p){UU().requestComplete(D,!1);X(W,p)};
var c=C.onSuccess?C.onSuccess:function(){};
C.onSuccess=function(W,p){UU().requestComplete(D,!0);c(W,p)}};
_.o7d=function(){return _.OY(document.location.toString())!=="www.youtube-nocookie.com"};
_.S4m=function(){return _.Df("ytNetworklessLoggingInitializationOptions")?_.Wpt.isNwlInitialized:_.pc5};
U_t=function(D,C){if(_.b("polymer_on_demand_shady_dom")){var X;var c=(X=D.__shady_native_firstElementChild)!=null?X:D.firstElementChild}else c=D.firstElementChild;for(;c;){if(D=C(c)?c:U_t(c,C))return D;c=c.nextElementSibling}return null};
aRr=function(){var D=document;if("visibilityState"in D)return D.visibilityState;var C=g7t+"VisibilityState";if(C in D)return D[C]};
_.IRn=function(D,C){var X;gO(D,function(c){X=C[c];return!!X});
return X};
_.Ii=function(D){var C=Obn(D);C?C.focus(void 0):_.ai(D)};
Obn=function(D){return(D=U_t(D,function(C){return _.OU(C)?AvF(C)&&!!C.offsetParent:!1}))?D:null};
_.ai=function(D,C){D.hasAttribute("tabindex")||D.setAttribute("tabindex","-1");D.focus(C)};
POh=function(D,C,X,c){c=c===void 0?{}:c;D.addEventListener&&(C!="mouseenter"||"onmouseenter"in document?C!="mouseleave"||"onmouseenter"in document?C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"):C="mouseout":C="mouseover");return _.ZI.findKey(AY,function(W){var p=typeof W[4]==="boolean"&&W[4]==!!c,g=_.MR(W[4])&&_.MR(c)&&_.ZI.equals(W[4],c);return!!W.length&&W[0]==D&&W[1]==C&&W[2]==X&&(p||g)})};
_.$l=function(D,C,X,c){c=c===void 0?{}:c;if(!D||!D.addEventListener&&!D.attachEvent)return"";var W=POh(D,C,X,c);if(W)return W;W=++$_3.count+"";var p=!(C!="mouseenter"&&C!="mouseleave"||!D.addEventListener||"onmouseenter"in document);var g=p?function(a){a=new PL(a);if(!_.zv(a.relatedTarget,function(O){return O==D},!0))return a.currentTarget=D,a.type=C,X.call(D,a)}:function(a){a=new PL(a);
a.currentTarget=D;return X.call(D,a)};
g=_.lq(g);D.addEventListener?(C=="mouseenter"&&p?C="mouseover":C=="mouseleave"&&p?C="mouseout":C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"),v7Z()||typeof c==="boolean"?D.addEventListener(C,g,c):D.addEventListener(C,g,!!c.capture)):D.attachEvent("on"+C,g);AY[W]=[D,C,X,g,c];return W};
_.k2m=function(D,C,X){var c=c===void 0?{}:c;var W=_.$l(D,C,function(){_.ibZ(W);X.apply(D,arguments)},c)};
_.ibZ=function(D){D&&(typeof D=="string"&&(D=[D]),_.pC(D,function(C){if(C in AY){var X=AY[C],c=X[0],W=X[1],p=X[3];X=X[4];c.removeEventListener?v7Z()||typeof X==="boolean"?c.removeEventListener(W,p,X):c.removeEventListener(W,p,!!X.capture):c.detachEvent&&c.detachEvent("on"+W,p);delete AY[C]}}))};
vL=function(D){this.callback_=D;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(D=0;D<4;D++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.$l(window,"mousemove",(0,_.wo)(this.onMouseMove_,this));this.timerId_=_.LC((0,_.wo)(this.checkPosition_,this),25)};
B2F=function(){var D={};var C=D.preferMobileEvents===void 0?!1:D.preferMobileEvents;D=D.enableScrollEventListener===void 0?!0:D.enableScrollEventListener;if(_.Df("_lact",window)==null){var X=parseInt(_.q6("LACT"),10);X=isFinite(X)?Date.now()-Math.max(X,0):-1;_.$h("_lact",X,window);_.$h("_fact",X,window);X==-1&&_.iw();uV5(window,C,D);new vL(function(){Q3n("mouse",100)})}};
uV5=function(D,C,X){C=C===void 0?!1:C;X=X===void 0?!0:X;_.$l(D.document,"keydown",_.iw);_.$l(D.document,"keyup",_.iw);_.$l(D.document,"mousedown",_.iw);_.$l(D.document,"mouseup",_.iw);C?_.$l(D,"touchmove",function(){Q3n("touchmove",200)},{passive:!0}):(_.$l(D,"resize",function(){Q3n("resize",200)}),X&&_.$l(D,"scroll",function(){Q3n("scroll",200)}));
_.$l(D.document,"touchstart",_.iw,{passive:!0});_.$l(D.document,"touchend",_.iw,{passive:!0})};
Q3n=function(D,C){bbo[D]||(bbo[D]=!0,_.qX.addLowPriorityJob(function(){_.iw();bbo[D]=!1},C))};
_.iw=function(){_.Df("_lact",window)==null&&B2F();var D=Date.now();_.$h("_lact",D,window);_.Df("_fact",window)==-1&&_.$h("_fact",D,window);(D=_.Df("ytglobal.ytUtilActivityCallback_"))&&D()};
_.kl=function(){var D=_.Df("_lact",window);return D==null?-1:Math.max(Date.now()-D,0)};
_.bw=function(D,C,X){var c=_.uw();if(c&&C){var W=c.subscribe(D,function(){var p=arguments,g=function(){QC[W]&&C.apply&&typeof C.apply=="function"&&C.apply(X||window,p)};
try{_.rvd[D]?g():_.xz(g,0)}catch(a){_.Re(a)}},X);
QC[W]=!0;BL[D]||(BL[D]=[]);BL[D].push(W);return W}return 0};
_.KpW=function(D){var C=_.uw();C&&(typeof D==="number"?D=[D]:typeof D==="string"&&(D=[parseInt(D,10)]),_.pC(D,function(X){C.unsubscribeByKey(X);delete QC[X]}))};
_.hWJ=function(D,C){var X=_.uw();X&&X.publish.apply(X,arguments)};
_.LpF=function(D){var C=_.uw();if(C)if(C.clear(D),D)x_m(D);else for(var X in BL)x_m(X)};
_.uw=function(){return _.co.ytPubsubPubsubInstance};
x_m=function(D){BL[D]&&(D=BL[D],_.pC(D,function(C){QC[C]&&delete QC[C]}),D.length=0)};
s3h=function(){var D,C;return"h5vcc"in rO&&((D=rO.h5vcc.traceEvent)==null?0:D.traceBegin)&&((C=rO.h5vcc.traceEvent)==null?0:C.traceEnd)?1:"performance"in rO&&rO.performance.mark&&rO.performance.measure?2:0};
m_W=function(D){var C=s3h();switch(C){case 1:rO.h5vcc.traceEvent.traceBegin("YTLR",D);break;case 2:rO.performance.mark(D+"-start");break;case 0:break;default:_.qf(C,"unknown trace type")}};
eWm=function(D){var C=s3h();switch(C){case 1:rO.h5vcc.traceEvent.traceEnd("YTLR",D);break;case 2:C=D+"-start";var X=D+"-end";rO.performance.mark(X);rO.performance.measure(D,C,X);break;case 0:break;default:_.qf(C,"unknown trace type")}};
E7m=function(D){var C,X;(X=(C=window).onerror)==null||X.call(C,D.message,"",0,0,D)};
t6m=function(D){if(_.b("web_lifecycle_error_handling_killswitch"))return D();try{return D()}catch(C){E7m(C)}};
N2r=function(D){return[D.auth===void 0?"undefined":D.auth,D.isJspb===void 0?"undefined":D.isJspb,D.cttAuthInfo===void 0?"undefined":D.cttAuthInfo,D.tier===void 0?"undefined":D.tier].join("/")};
_.r=function(D,C){if(D)return D[C.name]};
hY=function(){var D=_.Df("yt.logging.ims");D||(D=new KQ,_.$h("yt.logging.ims",D));return D};
T25=function(D,C){if(D.endpoint==="log_event"){Y4m(D);var X=yvr(D),c=n7r(D.payload)||"",W=wcm(c),p=200;if(W){if(W.enabled===!1&&!_.b("web_payload_policy_disabled_killswitch"))return;p=Fpd(W.tier);if(p===400){Zbd(D,C);return}}xl[X]=!0;X={cttAuthInfo:X,isJspb:!1,tier:p};hY().storePayload(X,D.payload);G2n(C,!1,X,V65(c))}};
Jvo=function(D,C,X){if(C.endpoint==="log_event"){Y4m(void 0,C);var c=yvr(C,!0),W=wcm(D),p=200;if(W){if(W.enabled===!1&&!_.b("web_payload_policy_disabled_killswitch"))return;p=Fpd(W.tier);if(p===400){Hbr(D,C,X);return}}xl[c]=!0;c={cttAuthInfo:c,isJspb:!0,tier:p};hY().storePayload(c,yU(C.payload));G2n(X,!0,c,V65(D))}};
G2n=function(D,C,X,c){C=C===void 0?!1:C;c=c===void 0?!1:c;D&&(LQ=new D);D=_.BK("tvhtml5_logging_max_batch_ads_fork")||_.BK("tvhtml5_logging_max_batch")||_.BK("web_logging_max_batch")||100;var W=(0,_.kh)(),p=zWn(C,X.tier),g=p.lastDebounceQueueFromLogTimeMs;c&&(p.useVideoStatsEndPoint=!0);c=0;X&&(c=hY().getSequenceCount(X));var a=function(){j35({writeThenSend:!0},C,X.tier)};
c>=1E3?a():c>=D?M6Z||(M6Z=q45(function(){a();M6Z=void 0},0)):W-g>=10&&(fRj(C,X.tier),p.lastDebounceQueueFromLogTimeMs=W)};
Zbd=function(D,C){if(D.endpoint==="log_event"){_.b("more_accurate_gel_parser")&&hY().storePayload({isJspb:!1},D.payload);Y4m(D);var X=yvr(D),c=new Map;c.set(X,[D.payload]);var W=n7r(D.payload)||"";C&&(LQ=new C);return new _.mM(function(p,g){LQ&&LQ.isReady()?d_3(c,LQ,p,g,{bypassNetworkless:!0},!0,V65(W)):p()})}};
Hbr=function(D,C,X){if(C.endpoint==="log_event"){Y4m(void 0,C);var c=yvr(C,!0),W=new Map;W.set(c,[yU(C.payload)]);X&&(LQ=new X);return new _.mM(function(p){LQ&&LQ.isReady()?RW5(W,LQ,p,{bypassNetworkless:!0},!0,V65(D)):p()})}};
yvr=function(D,C){var X="";if(D.dangerousLogToVisitorSession)X="visitorOnlyApprovedKey";else if(D.cttAuthInfo){if(C===void 0?0:C){C=D.cttAuthInfo.token;X=D.cttAuthInfo;var c=new lRm;X.videoId?c.setVideoId(X.videoId):X.playlistId&&ee(c,2,Dn3,Bp(X.playlistId));Cum[C]=c}else C=D.cttAuthInfo,X={},C.videoId?X.videoId=C.videoId:C.playlistId&&(X.playlistId=C.playlistId),X0h[D.cttAuthInfo.token]=X;X=D.cttAuthInfo.token}return X};
j35=function(D,C,X){D=D===void 0?{}:D;C=C===void 0?!1:C;new _.mM(function(c,W){var p=zWn(C,X),g=p.useVideoStatsEndPoint;p.useVideoStatsEndPoint=!1;clF(p.queueTimer);clF(p.queueMaxTimer);p.queueMaxTimer=0;LQ&&LQ.isReady()?X===void 0&&_.b("enable_web_tiered_gel")?o_d(c,W,D,C,300,g):o_d(c,W,D,C,X,g):(fRj(C,X),c())})};
o_d=function(D,C,X,c,W,p){var g=LQ;X=X===void 0?{}:X;c=c===void 0?!1:c;W=W===void 0?200:W;p=p===void 0?!1:p;var a=new Map,O=new Map,P={isJspb:c,cttAuthInfo:void 0,tier:W},k={isJspb:c,cttAuthInfo:void 0};if(c){C=_.U(Object.keys(xl));for(W=C.next();!W.done;W=C.next())W=W.value,O=_.b("enable_web_tiered_gel")?hY().smartExtractMatchingEntries({keys:[P,k],sizeLimit:1E3}):hY().extractMatchingEntries({isJspb:!0,cttAuthInfo:W}),O.length>0&&a.set(W,O),(_.b("web_fp_via_jspb_and_json")&&X.writeThenSend||!_.b("web_fp_via_jspb_and_json"))&&
delete xl[W];RW5(a,g,D,X,!1,p)}else{a=_.U(Object.keys(xl));for(P=a.next();!P.done;P=a.next())P=P.value,k=_.b("enable_web_tiered_gel")?hY().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:P,tier:W},{isJspb:!1,cttAuthInfo:P}],sizeLimit:1E3}):hY().extractMatchingEntries({isJspb:!1,cttAuthInfo:P}),k.length>0&&O.set(P,k),(_.b("web_fp_via_jspb_and_json")&&X.writeThenSend||!_.b("web_fp_via_jspb_and_json"))&&delete xl[P];d_3(O,g,D,C,X,!1,p)}};
fRj=function(D,C){D=D===void 0?!1:D;C=C===void 0?200:C;var X=function(){j35({writeThenSend:!0},D,C)},c=zWn(D,C),W=c===Wlh||c===p0J?5E3:SIo;
_.b("web_gel_timeout_cap")&&!c.queueMaxTimer&&(W=q45(function(){X()},W),c.queueMaxTimer=W);
clF(c.queueTimer);W=_.q6("LOGGING_BATCH_TIMEOUT",_.BK("web_gel_debounce_ms",1E4));_.b("shorten_initial_gel_batch_timeout")&&Und&&(W=g_d);W=q45(function(){_.BK("gel_min_batch_size")>0?hY().getSequenceCount({cttAuthInfo:void 0,isJspb:D,tier:C})>=a55&&X():X()},W);
c.queueTimer=W};
d_3=function(D,C,X,c,W,p,g){W=W===void 0?{}:W;var a=Math.round((0,_.kh)()),O=D.size,P=I5j(g);D=_.U(D);var k=D.next();for(g={};!k.done;g={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},k=D.next()){var u=_.U(k.value);k=u.next().value;u=u.next().value;g.batchRequest=_.ZI.unsafeClone({context:_.TJJ(C.config_||_.QJ())});if(!_.JW(u)&&!_.b("throw_err_when_logevent_malformed_killswitch")){c();break}g.batchRequest.events=u;
(u=X0h[k])&&OIF(g.batchRequest,k,u);delete X0h[k];g.dangerousLogToVisitorSession=k==="visitorOnlyApprovedKey";Alo(g.batchRequest,a,g.dangerousLogToVisitorSession);Pum(W);g.onSuccess$jscomp$3=function(Q){_.b("start_client_gcf")&&_.qX.addLowPriorityJob(function(){return _.I(function(B){return B.yield($nJ(Q),0)})});
O--;O||X()};
g.networkFailures=0;g.onError$jscomp$5=function(Q){return function(){Q.networkFailures++;if(W.bypassNetworkless&&Q.networkFailures===1)try{rAJ(C,P,Q.batchRequest,v_n({writeThenSend:!0},Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,p)),Und=!1}catch(B){_.Re(B),c()}O--;O||X()}}(g);
try{rAJ(C,P,g.batchRequest,v_n(W,g.dangerousLogToVisitorSession,g.onSuccess$jscomp$3,g.onError$jscomp$5,p)),Und=!1}catch(Q){_.Re(Q),c()}}};
RW5=function(D,C,X,c,W,p){c=c===void 0?{}:c;var g=Math.round((0,_.kh)()),a={value:D.size},O=new Map([].concat(_.VB(D)));O=_.U(O);for(var P=O.next();!P.done;P=O.next()){var k=_.U(P.value).next().value,u=D.get(k);P=new iIh;var Q=C.config_||_.QJ(),B=new EU,K=new kro;_.N3(K,1,Q.innertubeContextHostLanguage);_.N3(K,2,Q.innertubeContextGeoLocation);_.bl(K,16,Q.innertubeContextClientNameFieldNumber);_.N3(K,17,Q.innertubeContextClientVersion);if(Q.innertubeContextClientConfigInfo){var L=Q.innertubeContextClientConfigInfo,
t=new hC;L.coldConfigData&&_.N3(t,1,L.coldConfigData);L.appInstallData&&_.N3(t,6,L.appInstallData);L.coldHashData&&_.N3(t,3,L.coldHashData);L.hotHashData&&t.setHotHashData(L.hotHashData);_.Lf(K,62,t)}(L=_.co.devicePixelRatio)&&L!=1&&_.rD(K,65,_.f5(L));L=pEm();L!==""&&_.N3(K,54,L);L=SpF();if(L.length>0){t=new uAh;for(var Y=0;Y<L.length;Y++){var y=new tY;y.setKey(L[Y].key);ee(y,2,Q_n,Bp(L[Y].value));NN(t,15,tY,y)}_.Lf(B,5,t)}nPZ(Q,K);w_3(B);Fno(K);Zem(Q,K);G1r(K);_.b("start_client_gcf")&&VVd(K);_.q6("DELEGATED_SESSION_ID")&&
!_.b("pageid_as_header_web")&&(Q=new Yl,_.N3(Q,3,_.q6("DELEGATED_SESSION_ID")));!_.b("fill_delegate_context_in_gel_killswitch")&&(L=_.q6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t=_.Bz(B,Yl,3)||new Yl,Q=B,L=_.N3(t,18,L),_.Lf(Q,3,L));Q=K;L=_.U(Object.entries(_.Sq(_.q6("DEVICE",""))));for(t=L.next();!t.done;t=L.next())Y=_.U(t.value),t=Y.next().value,Y=Y.next().value,t==="cbrand"?_.N3(Q,12,Y):t==="cmodel"?_.N3(Q,13,Y):t==="cbr"?_.N3(Q,87,Y):t==="cbrver"?_.N3(Q,88,Y):t==="cos"?_.N3(Q,18,
Y):t==="cosver"?_.N3(Q,19,Y):t==="cplatform"&&_.bl(Q,42,nCm(Y));B.setClient(K);_.Lf(P,1,B);if(K=Cum[k])a:{if(_.se(K,yC(K,Dn3,1)))B=1;else if(K.getPlaylistId())B=2;else break a;_.Lf(P,4,K);K=P.getContext()||new EU;Q=_.Bz(K,Yl,3)||new Yl;L=new nQ;L.setToken(k);_.bl(L,1,B);NN(Q,12,nQ,L);_.Lf(K,3,Q)}delete Cum[k];k=k==="visitorOnlyApprovedKey";B$t()||_.wO(P,2,g);!k&&(B=_.q6("EVENT_ID"))&&(K=bIZ(),Q=new rlj,_.N3(Q,1,B),_.wO(Q,2,K),_.Lf(P,5,Q));Pum(c);if(_.b("jspb_serialize_with_worker")&&(B=_.lgJ())&&
c.writeThenSend){_.KlW.set(h7j,{client:C,resolve:X,networklessOptions:c,isIsolated:W,useVSSEndpoint:p,dangerousLogToVisitorSession:k,requestsOutstanding:a});B.postMessage({op:"gelBatchToSerialize",batchRequest:yU(P),clientEvents:u,key:h7j});h7j++;break}if(u){B=[];for(K=0;K<u.length;K++)try{B.push(new F3(u[K]))}catch(J){_.Re(new _.Zf("Transport failed to deserialize "+String(u[K])))}u=B}else u=[];u=_.U(u);for(B=u.next();!B.done;B=u.next())NN(P,3,F3,B.value);u={startTime:(0,_.kh)(),ticks:{},infos:{}};
P=P.serialize();u.ticks.geljspc=(0,_.kh)();_.b("log_jspb_serialize_latency")&&M_m("gel_jspb_serialize",u,{sampleRate:.1});_.xnF(P,C,X,c,W,p,k,a)}};
_.xnF=function(D,C,X,c,W,p,g,a){c=c===void 0?{}:c;a=a===void 0?{value:0}:a;p=I5j(p);c=v_n(c,g,function(O){_.b("start_client_gcf")&&_.qX.addLowPriorityJob(function(){return _.I(function(P){return P.yield($nJ(O),0)})});
a.value--;a.value||X()},function(){a.value--;
a.value||X()},W);
c.headers["Content-Type"]="application/json+protobuf";c.postBodyFormat="JSPB";c.postBody=D;rAJ(C,p,"",c);Und=!1};
Pum=function(D){_.b("always_send_and_write")&&(D.writeThenSend=!1)};
v_n=function(D,C,X,c,W){D={retry:!0,onSuccess:X,onError:c,networklessOptions:D,dangerousLogToVisitorSession:C,bypassMonitoring:!!W,headers:{},postBodyFormat:"",postBody:"",compress:_.b("compress_gel")||_.b("compress_gel_lr")};B$t()&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.kh)())));return D};
Alo=function(D,C,X){B$t()||(D.requestTimeMs=String(C));_.b("unsplit_gel_payloads_in_logs")&&(D.unsplitGelPayloadsInLogs=!0);!X&&(C=_.q6("EVENT_ID"))&&(X=bIZ(),D.serializedClientEventId={serializedEventId:C,clientCounter:String(X)})};
bIZ=function(){var D=_.q6("BATCH_CLIENT_COUNTER")||0;D||(D=Math.floor(Math.random()*65535/2));D++;D>65535&&(D=1);_.M6("BATCH_CLIENT_COUNTER",D);return D};
OIF=function(D,C,X){if(X.videoId)var c="VIDEO";else if(X.playlistId)c="PLAYLIST";else return;D.credentialTransferTokenTargetId=X;D.context=D.context||{};D.context.user=D.context.user||{};D.context.user.credentialTransferTokens=[{token:C,scope:c}]};
Y4m=function(D,C){var X=_.bX("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Df("yt.logging.transport.enableScrapingForTest"))if(X)Llj=[],_.$h("yt.logging.transport.enableScrapingForTest",!0),_.$h("yt.logging.transport.scrapedPayloadsForTesting",Llj),_.$h("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.$h("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.$h("yt.logging.transport.scrapeClientEvent",!0);else return;X=_.Df("yt.logging.transport.scrapedPayloadsForTesting");var c=_.Df("yt.logging.transport.payloadToScrape");C&&(C=_.Df("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(C.payload)())&&X.push(C);C=_.Df("yt.logging.transport.scrapeClientEvent");if(c&&c.length>=1)for(var W=0;W<c.length;W++)if(D&&D.payload[c[W]])if(C)X.push(D.payload);else{var p=void 0;X.push(((p=D)==null?void 0:p.payload)[c[W]])}_.$h("yt.logging.transport.scrapedPayloadsForTesting",
X)};
B$t=function(){return _.b("use_request_time_ms_header")||_.b("lr_use_request_time_ms_header")};
q45=function(D,C){return _.b("transport_use_scheduler")===!1?_.xz(D,C):_.b("logging_avoid_blocking_during_navigation")||_.b("lr_logging_avoid_blocking_during_navigation")?_.Zo(_.qX,function(){if(_.s_j().currentState==="none")D();else{var X={};_.s_j().install((X.none={callback:D},X))}},C):_.Zo(_.qX,D,C)};
clF=function(D){_.b("transport_use_scheduler")?_.qX.cancelJob(D):_.sY(D)};
$nJ=function(D){var C,X,c,W,p,g,a,O,P,k;return _.I(function(u){return u.nextAddress==1?(c=(C=D)==null?void 0:(X=C.responseContext)==null?void 0:X.globalConfigGroup,W=_.r(c,mnd),g=(p=c)==null?void 0:p.hotHashData,a=_.r(c,e7J),P=(O=c)==null?void 0:O.coldHashData,(k=_.iX().resolve(_.vK(Gu)))?g?W?u.yield(E_Z(k,g,W),2):u.yield(E_Z(k,g),2):u.jumpTo(2):u.return()):P?a?u.yield(t5R(k,P,a),0):u.yield(t5R(k,P),0):u.jumpTo(0)})};
zWn=function(D,C){C=C===void 0?200:C;return D?C===300?Wlh:N$m:C===300?p0J:YIn};
wcm=function(D){if(_.b("enable_web_tiered_gel")){D=ylW[D||""];var C,X,c,W=_.iX().resolve(_.vK(Gu))==null?void 0:(C=VC())==null?void 0:(X=C.loggingHotConfig)==null?void 0:(c=X.eventLoggingConfig)==null?void 0:c.payloadPolicies;if(W)for(C=0;C<W.length;C++)if(W[C].payloadNumber===D)return W[C]}};
n7r=function(D){D=Object.keys(D);D=_.U(D);for(var C=D.next();!C.done;C=D.next())if(C=C.value,ylW[C])return C};
Fpd=function(D){switch(D){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}};
V65=function(D){return D==="gelDebuggingEvent"};
I5j=function(D){return(D===void 0?0:D)&&_.b("vss_through_gel_video_stats")?"video_stats":"log_event"};
HL=function(D,C,X,c){c=c===void 0?{}:c;var W={},p=Math.round(c.timestamp||(0,_.kh)());W.eventTimeMs=p<Number.MAX_SAFE_INTEGER?p:0;W[D]=C;D=_.kl();W.context={lastActivityMs:String(c.timestamp||!isFinite(D)?-1:D)};c.sequenceGroup&&!_.b("web_gel_sequence_info_killswitch")&&(D=W.context,C=c.sequenceGroup,C={index:n_F(C),groupKey:C},D.sequence=C,c.endOfSequence&&delete Tu[c.sequenceGroup]);_.b("web_tag_automated_log_events")&&(W.context.automatedLogEventSource=c.automatedLogEventSource);(c.sendIsolatedPayload?
Zbd:T25)({endpoint:"log_event",payload:W,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},X)};
n_F=function(D){Tu[D]=D in Tu?Tu[D]+1:0;return Tu[D]};
_.zu=function(D,C,X){X=X===void 0?{}:X;var c=JY;_.dq("ytLoggingEventsDefaultDisabled",!1)&&JY===JY&&(c=null);HL(D,C,c,X)};
_.je=function(){if(_.b("web_fp_via_jspb")){var D=!0;D=D===void 0?!1:D;var C=w0J;w0J=[];if(C){C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,D?HL(X.payloadName,X.payload,JY,X.options):_.zu(X.payloadName,X.payload,X.options)}j35(void 0,!0);if(!_.b("web_fp_via_jspb_and_json"))return}j35(void 0,!1)};
Flt=function(D,C){var X;if((X=C)==null?0:X.componentStack)return C;if(D=D.componentStack)C||(C={}),C.componentStack=D;return C};
ZIo=function(){_.pC(_.q6("ERRORS")||[],function(D){_.MN.apply(null,D)});
_.M6("ERRORS",[])};
_.qN=function(D){_.MN(D)};
_.fQ=function(D){_.MN(D,"WARNING")};
Grn=function(D){D instanceof Error?_.MN(D):(D=_.MR(D)?JSON.stringify(D):String(D),D=new _.Zf(D),D.name="RejectedPromiseError",_.fQ(D))};
V5d=function(D,C,X,c,W,p){C=C===void 0?"Unknown file":C;X=X===void 0?0:X;var g=!1,a=FPo("log_window_onerror_fraction");if(a&&Math.random()<a)g=!0;else{a=document.getElementsByTagName("script");for(var O=0,P=a.length;O<P;O++)if(a[O].src.indexOf("/debug-")>0){g=!0;break}}g&&(g=!1,W?g=!0:(typeof D==="string"?a=D:ErrorEvent&&D instanceof ErrorEvent?(g=!0,a=D.message,C=D.filename,X=D.lineno,c=D.colno):(a="Unknown error",C="Unknown file",X=0),W=new _.Zf(a),W.name="UnhandledWindowError",W.message=a,W.fileName=
C,W.lineNumber=X,isNaN(c)?delete W.columnNumber:W.columnNumber=c),_.b("wiz_enable_component_stack_propagation_killswitch")||(p=Flt(W,p)),p&&_.dO(W,p),g?_.MN(W):_.fQ(W))};
_.MN=function(D,C,X,c,W,p,g,a){p=p===void 0?{}:p;p.name=X||_.q6("INNERTUBE_CONTEXT_CLIENT_NAME",1);p.version=c||_.q6("INNERTUBE_CONTEXT_CLIENT_VERSION");X=p;C=C===void 0?"ERROR":C;g=g===void 0?!1:g;C=C===void 0?"ERROR":C;g=g===void 0?!1:g;if(D&&(D.hasOwnProperty("level")&&D.level&&(C=D.level),_.b("console_log_js_exceptions")&&(c=[],c.push("Name: "+D.name),c.push("Message: "+D.message),D.hasOwnProperty("params")&&c.push("Error Params: "+JSON.stringify(D.params)),D.hasOwnProperty("args")&&c.push("Error args: "+
JSON.stringify(D.args)),c.push("File name: "+D.fileName),c.push("Stacktrace: "+D.stack),c=c.join("\n"),window.console.log(c,D)),!(T$J>=5))){c=[];W=_.U(HIr);for(p=W.next();!p.done;p=W.next()){p=p.value;try{p()&&c.push(p())}catch(t){}}c=[].concat(_.VB(Jlm),_.VB(c));var O=z7Z(D);W=O.message||"Unknown Error";p=O.name||"UnknownError";var P=O.stack||D.stacktrace||"Not available";if(P.startsWith(p+": "+W)){var k=P.split("\n");k.shift();P=k.join("\n")}k=O.lineNumber||"Not available";O=O.fileName||"Not available";
var u=0;if(D.hasOwnProperty("args")&&D.args&&D.args.length)for(var Q=0;Q<D.args.length&&!(u=yZd(D.args[Q],"params."+Q,X,u),u>=500);Q++);else if(D.hasOwnProperty("params")&&D.params){var B=D.params;if(typeof D.params==="object")for(Q in B){if(B[Q]){var K="params."+Q,L=NG(B[Q]);X[K]=L;u+=K.length+L.length;if(u>500)break}}else X.params=NG(B)}if(c.length)for(Q=0;Q<c.length&&!(u=yZd(c[Q],"params.context."+Q,X,u),u>=500);Q++);navigator.vendor&&!X.hasOwnProperty("vendor")&&(X["device.vendor"]=navigator.vendor);
Q={message:W,name:p,lineNumber:k,fileName:O,stack:P,params:X,sampleWeight:1};X=Number(D.columnNumber);isNaN(X)||(Q.lineNumber=Q.lineNumber+":"+X);if(D.level==="IGNORED")D=0;else a:{D=j_Z();X=_.U(D.messageWeights);for(c=X.next();!c.done;c=X.next())if(c=c.value,Q.message&&Q.message.match(c.messageRegExp)){D=c.weight;break a}D=_.U(D.callbackWeights);for(X=D.next();!X.done;X=D.next())if(X=X.value,X.callback(Q)){D=X.weight;break a}D=1}Q.sampleWeight=D;D=_.U(M5R);for(X=D.next();!X.done;X=D.next())if(X=
X.value,X.patternsForType[Q.name])for(W=_.U(X.patternsForType[Q.name]),c=W.next();!c.done;c=W.next())if(p=c.value,c=Q.message.match(p.regexp)){Q.params["params.error.original"]=c[0];W=p.groups;p={};for(k=0;k<W.length;k++)p[W[k]]=c[k+1],Q.params["params.error."+W[k]]=c[k+1];Q.message=X.messageFn(p);break}Q.params||(Q.params={});D=j_Z();Q.params["params.errorServiceSignature"]="msg="+D.messageWeights.length+"&cb="+D.callbackWeights.length;Q.params["params.serviceWorker"]="false";_.co.document&&_.co.document.querySelectorAll&&
(Q.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Ri(qIm,"sample")).constructor!==Ri&&(Q.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Q);if(Q.sampleWeight!==0&&!f5t.has(Q.message)){if(g&&_.b("web_enable_error_204"))dnr(C===void 0?"ERROR":C,Q);else{C=C===void 0?"ERROR":C;C==="ERROR"?(lw.publish("handleError",Q),_.b("record_app_crashed_web")&&R7Z===0&&Q.sampleWeight===1&&(R7Z++,g={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.b("report_client_error_with_app_crash_ks")||(g.systemHealth={crashData:{clientError:{logMessage:{message:Q.message}}}}),_.zu("appCrashed",g)),l5Z++):C==="WARNING"&&lw.publish("handleWarning",Q);if(_.b("kevlar_gel_error_routing")){g=C;a=a===void 0?{}:a;b:{D=_.U(DHh);for(X=D.next();!X.done;X=D.next())if(RQ(X.value.toLowerCase())){D=!0;break b}D=!1}if(D)a=void 0;else{X={stackTrace:Q.stack};Q.fileName&&(X.filename=Q.fileName);D=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];D.length!==
0&&(D.length!==1||isNaN(Number(D[0]))?D.length!==2||isNaN(Number(D[0]))||isNaN(Number(D[1]))||(X.lineNumber=Number(D[0]),X.columnNumber=Number(D[1])):X.lineNumber=Number(D[0]));D={level:"ERROR_LEVEL_UNKNOWN",message:Q.message,errorClassName:Q.name,sampleWeight:Q.sampleWeight};g==="ERROR"?D.level="ERROR_LEVEL_ERROR":g==="WARNING"&&(D.level="ERROR_LEVEL_WARNNING");X={isObfuscated:!0,browserStackInfo:X};a.pageUrl=window.location.href;a.kvPairs=[];_.q6("FEXP_EXPERIMENTS")&&(a.experimentIds=_.q6("FEXP_EXPERIMENTS"));
c=_.q6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!FPo("web_disable_gel_stp_ecatcher_killswitch")&&c)for(W=_.U(Object.keys(c)),p=W.next();!p.done;p=W.next())p=p.value,a.kvPairs.push({key:p,value:String(c[p])});if(c=Q.params)for(W=_.U(Object.keys(c)),p=W.next();!p.done;p=W.next())p=p.value,a.kvPairs.push({key:"client."+p,value:String(c[p])});c=_.q6("SERVER_NAME");W=_.q6("SERVER_VERSION");c&&W&&(a.kvPairs.push({key:"server.name",value:c}),a.kvPairs.push({key:"server.version",value:W}));a={errorMetadata:a,
stackTrace:X,logMessage:D}}a&&(_.zu("clientError",a),(g==="ERROR"||_.b("errors_flush_gel_always_killswitch"))&&_.je())}_.b("suppress_error_204_logging")||dnr(C,Q)}try{f5t.add(Q.message)}catch(t){}T$J++}}};
dnr=function(D,C){var X=C.params||{};D={urlParams:{a:"logerror",t:"jserror",type:C.name,msg:C.message.substr(0,250),line:C.lineNumber,level:D,"client.name":X.name},postParams:{url:_.q6("PAGE_NAME",window.location.href),file:C.fileName},method:"POST"};X.version&&(D["client.version"]=X.version);if(D.postParams){C.stack&&(D.postParams.stack=C.stack);C=_.U(Object.keys(X));for(var c=C.next();!c.done;c=C.next())c=c.value,D.postParams["client."+c]=X[c];if(X=_.q6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(C=
_.U(Object.keys(X)),c=C.next();!c.done;c=C.next())c=c.value,D.postParams[c]=X[c];(X=_.q6("LAVA_VERSION"))&&(D.postParams["lava.version"]=X);X=_.q6("SERVER_NAME");C=_.q6("SERVER_VERSION");X&&C&&(D.postParams["server.name"]=X,D.postParams["server.version"]=C)}_.eq(_.q6("ECATCHER_REPORT_HOST","")+"/error_204",D)};
_.CKZ=function(D,C){C=C===void 0?"ERROR":C;var X=X===void 0?{}:X;var c=_.Df("ytbin.polymer.shared.lib.tampering.info");c&&(c=c())&&(X["params.tamperingInfo"]=c.sort().join(","));_.MN(D,C,void 0,void 0,!0,X)};
_.dO=function(D){var C=_.MJ.apply(1,arguments);D.args||(D.args=[]);Array.isArray(D.args)&&D.args.push.apply(D.args,_.VB(C))};
XXd=function(D){D.level="IGNORED"};
cG3=function(D,C){Jlm.push(D);C();Jlm.pop()};
C2=function(D,C){for(var X in C)C.hasOwnProperty(X)&&(D=_.D0(D,X,C[X]));return D};
_.ouj=function(D,C,X){X=X===void 0?!1:X;if(!D)return null;if(D.adInfoDialogEndpoint||D.backstageImageUploadEndpoint||D.confirmDialogEndpoint||D.clientActionEndpoint||D.createBackstagePostDialogEndpoint||D.createCommentReplyDialogEndpoint||D.flowEndpoint||D.guideBuilderEndpoint||D.liveChatDialogEndpoint||D.modalEndpoint||D.openPopupAction||D.shareEndpoint||D.shareEntityEndpoint||D.showLiveChatItemEndpoint||D.subscriptionManagerEndpoint||D.unlimitedCreateFamilyEndpoint||D.unlimitedFamilyFlowEndpoint||
D.updateCommentDialogEndpoint||D.updateCommentReplyDialogEndpoint||D.userFeedbackEndpoint||D.videoEditorEndpoint||D.ypcCancelSurveyEndpoint)return C=_.BK("polymer_report_client_url_requested_rate"),!X&&Math.random()<C&&_.fQ(new _.Zf("urlForEndpoint used on client endpoint",D)),null;var c=_.BK("polymer_report_missing_web_navigation_endpoint_rate");if(D.liveChatEndpoint||D.liveChatReplayEndpoint)c=0;if(!D.commandMetadata&&!D.clickTrackingParams&&Math.random()<c){var W={},p;for(p in D)W[p]="1";_.fQ(new _.Zf("Missing navigation data",
W))}W="";if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url)W=D.commandMetadata.webCommandMetadata.url;else if(D.searchEndpoint)Math.random()<c&&_.fQ(new _.Zf("Should not manually handle search",D)),W="/results?search_query="+encodeURIComponent(D.searchEndpoint.query).replace(/%20/g,"+"),D.searchEndpoint.params&&(W+="&sp="+D.searchEndpoint.params);else if(D.watchEndpoint)Math.random()<c&&_.fQ(new _.Zf("Should not manually handle watch",D)),W="/watch?v="+
D.watchEndpoint.videoId,D.watchEndpoint.playlistId&&(W+="&list="+D.watchEndpoint.playlistId),D.watchEndpoint.index&&(W+="&index="+D.watchEndpoint.index),D.watchEndpoint.startTimeSeconds&&(W+="&t="+D.watchEndpoint.startTimeSeconds);else if(D.browseEndpoint)c=D.browseEndpoint.browseId,(p=D.browseEndpoint.canonicalBaseUrl)?W=p:c&&(W=c.substr(0,2),W=W==="FE"?c==="FEwhat_to_watch"?"/":c==="FEmy_videos"?"/my_videos":"/feed/"+c.substr(2):W==="VL"?"/playlist?list="+c.substr(2):"/channel/"+c),W&&D.browseEndpoint.query&&
(W=C2(W+"/search",{query:D.browseEndpoint.query})),W&&D.browseEndpoint.params&&(W=C2(W,{params:D.browseEndpoint.params}));else{if(D.urlEndpoint)return D.urlEndpoint.url;D.signInEndpoint?(W="https://accounts.google.com/ServiceLogin",c={},_.ZI.extend(c,C||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),C=c):D.uploadEndpoint?W="//www.youtube.com/upload":D.liveChatEndpoint?(W=D.liveChatEndpoint,c=_.ZI.clone(W),_.MR(W.continuation)&&(p=Object.keys(W.continuation)[0],
c.continuation=W.continuation[p].continuation),W=C2("/youtubei/v1/live_chat/get_live_chat",c)):D.liveChatReplayEndpoint?(W=_.ZI.clone(D.liveChatReplayEndpoint),W.currentPlayerState&&(_.ZI.extend(W,W.currentPlayerState),delete W.currentPlayerState),W=C2("/youtubei/v1/live_chat/get_live_chat_replay",W)):D.liveChatItemContextMenuEndpoint?W=C2("/youtubei/v1/live_chat/get_item_context_menu",D.liveChatItemContextMenuEndpoint):D.liveChatPurchaseMessageEndpoint?W=C2("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
D.liveChatPurchaseMessageEndpoint):D.openSuperStickerBuyFlowCommand?W=C2("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",D.openSuperStickerBuyFlowCommand):D.videoEditEndpoint?W=C2("/edit",{video_id:D.videoEditEndpoint.videoId}):D.liveDashboardEndpoint?W=D.liveDashboardEndpoint.videoId?C2("/live_dashboard",{v:D.liveDashboardEndpoint.videoId}):"/live_dashboard":D.signalNavigationEndpoint&&D.signalNavigationEndpoint.signal&&D.signalNavigationEndpoint.signal==="WEBCAM"?W="/webcam":D.getPdgBuyFlowCommand&&
(W=C2(D.getPdgBuyFlowCommand.buyflowApiPath,{params:D.getPdgBuyFlowCommand.params}))}return W||X?C2(W,C||{}):(_.fQ(new _.Zf("Error: Can't construct url for endpoint","keys:"+Object.keys(D).sort().join(","),D)),null)};
WYd=function(D){if(D){if(D.browseEndpoint)return!!D.browseEndpoint.nofollow;if(D.watchEndpoint)return!!D.watchEndpoint.nofollow;if(D.urlEndpoint)return!!D.urlEndpoint.nofollow}return!1};
_.SNt=function(D,C){var X=C+D,c=pX5.get(X);if(c)return c;D=C+"-"+D.replace(/([A-Z])/g,"-$1").toLowerCase();pX5.set(X,D);return D};
UH3=function(D){var C=_.z4(D,"action")||_.z4(D,"command")||_.z4(D,"endpoint");if(!C)return null;C=_.SNt(C,"yt");_.r(D,_.Xf)&&(C+="-"+_.r(D,_.Xf).signal.toLowerCase().replace(/_/g,"-"));return C};
OTJ=function(D){try{var C=Object.keys(D)}catch(W){return[]}for(var X=0;X<C.length;X++){var c=C[X];if(gum.test(c)||awr.test(c))return Iwt(D[c])}return[]};
Iwt=function(D){return D.command?[D.command]:D.onExecutionAction?[D.onExecutionAction]:D.onResponseReceivedCommand?[D.onResponseReceivedCommand]:D.updateFlowCommand?[D.updateFlowCommand]:D.clientActions?D.clientActions:D.action?[D.action]:D.actions||D.commands||D.onResponseReceivedActions||D.onResponseReceivedCommands||D.onResponseReceivedEndpoints||[]};
PKj=function(D,C){C=C===void 0?!1:C;var X=_.iX().resolve(_.vK(cf));X||(X=new AGd,_.iX().addProvider({provide:cf,useValue:X}));return X&&D&&!_.ZI.isEmpty(D)?X.getUrl(D,C):""};
$Hh=function(D,C,X){X=X===void 0?"":X;if(C){D.data=C;var c=PKj(C);c?(ff(D,c),WYd(C)||!PK(c)?D.rel="nofollow":D.removeAttribute("rel"),_.r(C,_.oX)&&_.r(C,_.oX).target==="TARGET_NEW_WINDOW"?D.target="_blank":X?D.target=X:D.removeAttribute("target")):(D.removeAttribute("href"),D.removeAttribute("rel"),D.removeAttribute("target"))}};
_.g0=function(D,C){var X=IA;if(ni())vu3(D,function(){var p=_.MJ.apply(0,arguments);qm(X,function(){C.apply(null,_.VB(p))})});
else{var c=_.Wf.getInstance(),W=w75(C);sBt(function(){W.value=C});
_.JU(function(){var p={},g=_.p2(c,(p[D]=function(){var a=_.MJ.apply(0,arguments);qm(X,function(){W.value.apply(W,_.VB(a))})},p));
return function(){var a={};_.U6(c,(a[D]="",a),g)}})}};
_.aX=function(D,C){return iTt(D,!1,C)};
_.IX=function(D,C){return iTt(D,!0,C)};
iTt=function(D,C,X){return ni()?kUW(D,C,X):uv3(D,C,X)};
uv3=function(D,C,X){return y8m(function(){return kUW(D,C,X)},[])};
kUW=function(D,C,X){var c=KPm(function(W){c.value=W;var p=function(){var g=kU(null);try{return X==null?void 0:X(W)}finally{kU(g)}}();
return function(){p==null||p()}});
c.__expectedTagName=D;c.__optional=C;c.isIdom=!ni();return c};
Qat=function(D){var C=IA,X=YU;return{getFn:function(){return function(c){if(!C.isDisposed){var W=function(){return D(c)};
Fg(function(){return _.hw(W)},X)!==!0&&c.stopPropagation()}}}}};
BU5=function(D){if(typeof D.children==="function")return D.children(),null;D=_.U(D.children);for(var C=D.next();!C.done;C=D.next())C=C.value,C();return null};
bTm=function(D){var C;return((C=D.prototype)==null?void 0:C.render)===void 0};
rGj=function(D){var C=Array.isArray(D.items)?D.items:Array.from(D.items);D=D.children;return(Array.isArray(C)?C:Array.from(C)).map(D)};
hdn=function(D,C,X){X=X===void 0?!1:X;Fg(function(){return KYt(D,C,X)})};
KYt=function(D,C,X){var c=null;G3++;X=(X===void 0?0:X)?xH3:LYj;try{c=X(D,function(){Pf(C)}),T3(!1)}catch(W){throw T3(!0),W;
}return c===null?D:c};
Pf=function(D){if(D!==void 0&&D!==null)if(D instanceof ej)for(var C=oe;W2()!=null&&UFd in W2()&&C.contains(W2());)UO();else if(Array.isArray(D))for(C=_.U(D),D=C.next();!D.done;D=C.next())Pf(D.value);else if(D instanceof EB||D instanceof A_||"function"==typeof _.$Q&&D instanceof _.$Q)Srr(D.toString());else if(_.Q2(D)){if(W2()!==D){var X,c;C=(c=(X=YU)==null?void 0:X.name)!=null?c:"unknown";throw Error("hc`"+D.tagName+"`"+C);}UO()}else if(D!=null&&D.contentKind===rq||D instanceof dj||blo(D))for(C=KF5(D),
C=Array.from(C.childNodes),C=_.U(C),D=C.next();!D.done;D=C.next())oe.appendChild(D.value),UO();else if(Fm(D)&&(D=D.toString()),X=typeof D,X==="boolean"||X==="number"||X==="string")Srr(D);else if(typeof D==="function"){C=oe;var W=W2();W&&(W._isSignalTextNode||W._isSafeOrSanitizedHtmlNode)||R2m(C,W,D);UO()}else if(D.type===rGj)Pf(D.type(Object.assign({},D.props,{children:D.children[0]})));else{if(typeof D.type==="string"){a:{D.__open||l0d(D.type,D.props.idomKey);W=oe;for(C in D.props)if(D.props[C]!==
saW){var p=D.props[C];X=Ie;X.push(C);X.push(p)}C=ve.attributes;C=C===void 0?$b:C;p=oe;X=c2(p);pH5(p,X,C);dOF(W,D.props,!0);if((D.props.skip||D.props.skipchildren)&&oe.hasChildNodes())Sj=oe.lastChild;else{if(D.type==="style"&&tkn(D.children)===null){Sj=oe.lastChild;C=void 0;break a}Pf(D.children)}DOR();D.__open&&(D.__open=!1);$Oo(W,D.props);C=W}return C}if(D.type===_.kQ)Pf(D.children);else if(!mHn(D)){C=D;try{edr(C)}catch(g){D=g,(p=ve.handleError)==null||p.call.apply(p,[ve].concat(_.VB(fi(D,(W=C.type)==
null?void 0:W.TAG_NAME))))}C.__open&&(DOR(),C.__open=!1)}}};
Euh=function(D,C){var X;bTm(D)?X=new y2(C,D):X=new D(C);X.__type=D;X.__updateContext={nextState:X.state,isForced:!1};return X};
edr=function(D){var C=D.type,X=C.TAG_NAME;if(C===BU5)D.props.children=D.children,C(D.props);else{D.children.length>0&&(D.props.children=D.children);var c;(c=D.props).idomKey||(c.idomKey=C);if(X){var W=l0d(X,D.props.idomKey);D.__open=!0;var p=W.__instance}p||(p=Euh(C,D.props),p.props=null,W&&(W.__instance=p,p.el=W));var g;X=((g=p.__updateContext)!=null?g:{nextState:p.state,isForced:!1}).nextState;p.__updateContext=void 0;C.getDerivedStateFromProps&&(X=C.getDerivedStateFromProps(D.props,X));p.props=
D.props;p.state=X;g=function(){var a=p;N6.beforeRender(a);var O=a.render(a.props);O?(a.props.idomKey&&(O.props.idomKey=a.props.idomKey),a=O):a=void 0;if(O=a)if(O.__open=D.__open,a=Pf(O),D.__open=O.__open,!C.TAG_NAME)if(a)C.TAG_NAME=a.tagName.toLowerCase(),a.__instance=p,p.el=a;else{var P;if((P=p.hooks)==null?0:P.length){var k;(k=ve.handleError)==null||k.call.apply(k,[ve].concat(_.VB(fi(Error("od")))))}}p.didPatch();N6.didPatch(p)};
(X=p.functionComponent)?NOj(X,g,p.props.debugInstance):g()}};
mHn=function(D){var C=D.type;if(!bTm(C)||C===BU5||C.componentType===yv)return!1;D.props.children=D.children.length>1?D.children:D.children[0];var X,c=(X=D.props.idomKey)!=null?X:D.type,W;if(W2()&&((W=W2()[xQ])==null?void 0:W.key)===c){var p=W2(),g=p[xQ];if(!g)throw Error("gc`"+p.tagName);var a;(a=g.updateSignalsFromIdomProps)==null||a.call(g,D.props);trm(g);return!0}if(NUZ.has(C.name))throw a=C.name,C=(g=(p=YU)==null?void 0:p.name)!=null?g:"unknown",Error("fc`"+a+"`"+C);X7r(D.type,D.props,D.children);
D.props.renderedFromIdom=!0;(a=NOj(D.type,function(){return z23(D.type,D.props)},D.props.debugInstance))&&YNo(a);
return!0};
yGm=function(D){for(var C=0;C<mx(D).length;C++)UO()};
trm=function(D){var C=nun();if(C)yGm(C);else for(var X=0;X<D.numNodes;X++)(C=nun())?yGm(C):UO()};
nun=function(){var D;return(D=W2()[xQ])==null?void 0:D.sourceDynamicRange};
YNo=function(D){D=kTJ(D);D=Array.isArray(D)?D:[D];D=_.U(D);for(var C=D.next();!C.done;C=D.next())oe.insertBefore(C.value,W2()),UO()};
wX3=function(){var D=Mk3(),C=y8m(function(){return{value:0}},[]);
return[C.value,function(X){if(YQ!==null){var c;(c=ve.handleError)==null||c.call.apply(c,[ve].concat(_.VB(fi(Error("pd")))))}C.value=typeof X==="function"?X(C.value):X;D.__updateContext={nextState:D.state,isForced:!0};X=_.Oz(D.effectContext);c=uq(!1);try{if(D.el){var W,p={},g=(p.props=D.props,p.type=D.__type,p.children=(W=D.props.children)!=null?W:[],p[iq]=!0,p);try{hdn(D.el,g,!0)}catch(P){var a,O;(O=ve.handleError)==null||O.call.apply(O,[ve].concat(_.VB(fi(P,(a=D.__type)==null?void 0:a.TAG_NAME))))}}}finally{uq(c),
_.Oz(X)}}]};
_.vf=function(D,C){var X=IA,c=function(W){qm(X,function(){C(W)})};
window.addEventListener(D,c,void 0);_.z3(function(){window.removeEventListener(D,c,void 0)})};
_.kb=function(D){var C=IA;return function(X){var c,W=(c=D.observer)!=null?c:_.iX().resolve(iV);c=FYm(X);var p=[];D.showOption&&p.push(W.observe(X,function(){qm(C,function(){D.visibilityCallback(!0,X)})},D.showOption));
D.hideOption&&p.push(W.observe(X,function(){qm(C,function(){D.visibilityCallback(!1,X)})},D.hideOption));
D.prescanOption&&D.prescanCallback&&p.push(W.observe(X,function(){qm(C,function(){D.prescanCallback()})},D.prescanOption));
var g;c.visibilityMonitorKeys=((g=c.visibilityMonitorKeys)!=null?g:[]).concat(p)}};
FYm=function(D){var C;return(C=D.polymerController)!=null?C:D};
TUZ=function(D,C){var X=ZTZ;return _.A(_.kQ,null,$Xn(ve.enableLazyTsx,function(){return _.A(GUn,{id:X,value:D,children:C})},function(){var c=Vrr(X,D);
$U(c);c=_.Oz(c);try{return C()}finally{_.Oz(c)}}))};
GUn=function(D){var C=D.children;D=Vrr(D.id,D.value);$U(D);D=_.Oz(D);try{return _.A(_.kQ,null,EO(C()))}finally{_.Oz(D)}};
Vrr=function(D,C){return Object.assign(Object.create(HTo),{id:D,contextValue:C})};
JGt=function(D){var C,X=IA;_.He(function(){var c=_.Oz(X),W=uq(!C);try{if(C)hdn(C,D.children(),!0);else if(C=EO(D.children()),!(C instanceof Element))throw Error("qd");}finally{uq(W),_.Oz(c)}},"g");
return C};
_.zdZ=function(D,C){var X;C=jn(function(){var c=uq(!0);G3++;try{X=mx(D()),T3(!1)}catch(W){throw T3(!0),W;}finally{uq(c)}},C===void 0?!1:C);
return[X,C]};
MrR=function(D){var C=new jan;C.abort(D);return C.signal};
qNo=function(){if(this.aborted){var D;throw(D=this.reason)!=null?D:new DOMException("signal is aborted without reason","AbortError");}};
RdJ=function(D){var C=new jan;D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.aborted){C.abort(X.reason);break}else fwF.set(C.signal,C),dHF.add(X,C.signal);return C.signal};
lwo=function(){for(var D=_.U(dHF.get(this)),C=D.next();!C.done;C=D.next())fwF.get(C.value).abort(this.reason)};
Doj=function(D){var C=new jan;setTimeout(function(){C.abort(new DOMException("signal timed out","TimeoutError"))},D);
return C.signal};
Cyo=function(){var D,C;return{promise:new Promise(function(X,c){D=X;C=c}),
resolve:D,reject:C}};
cmJ=function(D){var C=Cyo(),X=C.promise;XCr.set(D,{promise:X,resolve:C.resolve,reject:C.reject});uV||(uV=[],queueMicrotask(function(){var c=[].concat(_.VB(uV));uV=null;var W=HI().loadMultiple(c);c=_.U(c);for(var p=c.next();!p.done;p=c.next())p=p.value,W[p].then(XCr.get(p).resolve,XCr.get(p).reject)}));
uV.push(D);return X};
WdW=function(D){D=D.buf.charCodeAt(D.pos++);return ofr[D]};
Qo=function(D){var C=0,X=0;do{var c=WdW(D);C|=(c&31)<<X;X+=5}while(c&32);return C<0?C+4294967296:C};
SWd=function(D,C,X,c){var W=!0;W=W===void 0?!1:W;C=C===void 0?!1:C;c=c===void 0?{}:c;var p=c.cssRowKey||"",g=c.combinedSignature||"";!p&&window&&window._F_cssRowKey&&(p=window._F_cssRowKey,!g&&window._F_combinedSignature&&(g=window._F_combinedSignature));if(p&&typeof window._F_installCss!=="function")throw Error("Ad");var a=c.loaderClass||_.Bf;D=yCd(D===void 0?"base-js":D);C=new a(QGo(wz5("",D)),p,g,W,C);W=c.useCors||D&&D.hasAttribute("crossorigin");D=c.corsMode||D&&D.getAttribute("crossorigin");
W&&(C.useCors_=W);D&&(C.corsMode_=D);c.urlMaxLength&&(C.urlMaxLength=c.urlMaxLength);X&&(C.insertPos=X);c.fetchPriority&&(C.fetchPriority=c.fetchPriority);var O=HI();O.JSC$10219_loader_=C;O.setBatchModeEnabled(!0);_.pCJ=c.batchingStrategy==="BATCH"?cmJ:function(P){return Promise.resolve(O.load(P))}};
aTj=function(D,C,X){UoR(D,C);D[C][gfo].unshift(X)};
UoR=function(D,C){if(!D[C]||!D[C][gfo]){var X=D[C],c=X?[X]:[];D[C]=function(){for(var W=_.U(c),p=W.next();!p.done;p=W.next())p.value.apply(this,arguments)};
D[C][gfo]=c}};
ITh=function(D){if(!D)return[];var C=[];D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,Array.isArray(X)?C.push.apply(C,_.VB(ITh(X))):C.push(X);return C};
_.r0=function(D,C){if(D&&Omj.test(D)||D==="//")return D;if(Amh===void 0){Amh=!1;try{var X=new URL("b","http://a");X.pathname="c%20d";Amh=X.href==="http://a/c%20d"}catch(c){}}C||(C=document.baseURI||window.location.href);if(Amh)try{return(new URL(D,C)).href}catch(c){return D}bV||(bV=document.implementation.createHTMLDocument("temp"),bV.base=bV.createElement("base"),bV.head.appendChild(bV.base),bV.anchor=bV.createElement("a"),bV.body.appendChild(bV.anchor));bV.base.href=C;bV.anchor.href=D;return bV.anchor.href||
D};
$oh=function(D,C){return D.replace(Pym,function(X,c,W,p){return c+"'"+_.r0(W.replace(/["']/g,""),C)+"'"+p})};
vfh=function(D){return D.substring(0,D.lastIndexOf("/")+1)};
u15=function(){im5=!1;for(var D=K2.length,C=0;C<D;C++){var X=K2[C];if(X)try{X()}catch(c){setTimeout(function(){throw c;})}}K2.splice(0,D);
ktZ+=D};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(D){console.log("["+D.is+"]: registered")};
BEJ=function(D){Q9J.push(D)};
hI=function(D){return bmd[D]||(bmd[D]=D.indexOf("-")<0?D:D.replace(rm3,function(C){return C[1].toUpperCase()}))};
xb=function(D){return bmd[D]||(bmd[D]=D.replace(Kdj,"-$1").toLowerCase())};
h_t=function(D,C){var X=C.parentInfo&&h_t(D,C.parentInfo);if(X)for(D=X.firstChild,X=0;D;D=D.nextSibling){if(C.parentIndex===X++)return D}else return D};
xor=function(D,C){D=D._methodHost||D;return function(X){if(D[C])D[C](X,X.detail);else console.warn("listener method `"+C+"` not defined")}};
L2=function(D){return D.indexOf(".")>=0};
s6=function(D){var C=D.indexOf(".");return C===-1?D:D.slice(0,C)};
Ldt=function(D,C){return D.indexOf(C+".")===0};
mR=function(D,C){return C.indexOf(D+".")===0};
ef=function(D,C,X){return C+X.slice(D.length)};
s9m=function(D,C){return D===C||Ldt(D,C)||mR(D,C)};
E6=function(D){if(Array.isArray(D)){for(var C=[],X=0;X<D.length;X++)for(var c=D[X].toString().split("."),W=0;W<c.length;W++)C.push(c[W]);return C.join(".")}return D};
mom=function(D){return Array.isArray(D)?E6(D).split("."):D.toString().split(".")};
tI=function(D,C,X){C=mom(C);for(var c=0;c<C.length;c++){if(!D)return;D=D[C[c]]}X&&(X.path=C.join("."));return D};
e_m=function(D,C,X){var c=mom(C),W=c[c.length-1];if(c.length>1){for(C=0;C<c.length-1;C++)if(D=D[c[C]],!D)return;D[W]=X}else D[C]=X;return c.join(".")};
Efm=function(D,C,X){var c=D[C];if(!c)c=D[C]={};else if(!D.hasOwnProperty(C)&&(c=D[C]=Object.create(D[C]),X))for(var W in c)for(D=c[W],C=c[W]=Array(D.length),X=0;X<D.length;X++)C[X]=D[X];return c};
Yb=function(D,C,X,c,W,p){if(C){var g=!1,a=NI++,O;for(O in X){var P=W?s6(O):O;if(P=C[P])for(var k=0,u=P.length,Q=void 0;k<u&&(Q=P[k]);k++)Q.info&&Q.info.lastRun===a||W&&!tbo(O,Q.trigger)||(Q.info&&(Q.info.lastRun=a),Q.fn(D,O,X,c,Q.info,W,p),g=!0)}return g}return!1};
tbo=function(D,C){if(C){var X=C.name;return X==D||!(!C.structured||!Ldt(X,D))||!(!C.wildcard||!mR(X,D))}return!0};
NE5=function(D,C,X,c,W){C=typeof W.method==="string"?D[W.method]:W.method;X=W.property;C?C.call(D,D.__data[X],c[X]):W.dynamicFn||console.warn("observer method `"+W.method+"` not defined")};
YWm=function(D,C,X,c){X={value:X,queueProperty:!0};c&&(X.path=c);(0,_.yo)(D).dispatchEvent(new CustomEvent(C,{detail:X}))};
ymR=function(D,C,X,c,W,p){p=(c=(p?s6(C):C)!=C?C:null)?tI(D,c):D.__data[C];c&&p===void 0&&(p=X[C]);YWm(D,W.eventName,p,c)};
nft=function(D,C,X,c,W){X=D.__data[C];n2&&(X=n2(X,W.attrName,"attribute",D));D._propertyToAttribute(C,W.attrName,X)};
Fdo=function(D){var C=D.constructor.__orderedComputedDeps;if(!C){C=new Map;for(var X=D.__computeEffects,c=wCW(D),W=c.counts,p=c.ready,g=c.total;c=p.shift();)C.set(c,C.size),(c=X[c])&&c.forEach(function(a){a=a.info.methodInfo;--g;--W[a]===0&&p.push(a)});
g!==0&&console.warn("Computed graph for "+D.localName+" incomplete; circular?");D.constructor.__orderedComputedDeps=C}return C};
wCW=function(D){var C=D.__computeInfo,X={};D=D.__computeEffects;var c=[],W=0,p;for(p in C){var g=C[p];W+=X[p]=g.args.filter(function(O){return!O.literal}).length+(g.dynamicFn?1:0)}for(var a in D)C[a]||c.push(a);
return{counts:X,ready:c,total:W}};
GtR=function(D,C,X,c,W){C=Zmd(D,C,X,c,W);if(C===w0)return!1;W=W.methodInfo;if(D.__dataHasAccessor&&D.__dataHasAccessor[W])return D._setPendingProperty(W,C,!0);D[W]=C;return!1};
Hmr=function(D,C,X,c,W,p,g){X.bindings=X.bindings||[];c={kind:c,target:W,parts:p,literal:g,isCompound:p.length!==1};X.bindings.push(c);c.target&&c.kind!="attribute"&&c.kind!="text"&&!c.isCompound&&c.parts[0].mode==="{"&&(X=c.parts[0],p=X.negate,c.listenerEvent=X.event||xb(W)+"-changed",c.listenerNegate=p);W=C.nodeInfoList.length;for(X=0;X<c.parts.length;X++){var a=c.parts[X];a.compoundIndex=X;p=D;g=C;var O=c,P=a,k=W;if(!P.literal)if(O.kind==="attribute"&&O.target[0]==="-")console.warn("Cannot set attribute "+
O.target+' because "-" is not a valid attribute starting character');else for(a=P.dependencies,O={index:k,binding:O,part:P,evaluator:p},P=0;P<a.length;P++)k=a[P],typeof k=="string"&&(k=Vbd(k),k.wildcard=!0),p._addTemplatePropertyEffect(g,k.rootProperty,{fn:TEj,info:O,trigger:k})}};
TEj=function(D,C,X,c,W,p,g){g=g[W.index];var a=W.binding,O=W.part;p&&O.source&&C.length>O.source.length&&a.kind=="property"&&!a.isCompound&&g.__isPropertyEffectsClient&&g.__dataHasAccessor&&g.__dataHasAccessor[a.target]?(X=X[C],C=ef(O.source,a.target,C),g._setPendingPropertyOrPath(C,X,!1,!0)&&D._enqueueClient(g)):(C=W.evaluator._evaluateBinding(D,O,C,X,c,p),C!==w0&&(a.isCompound&&(X=g.__dataCompoundStorage[a.target],X[O.compoundIndex]=C,C=X.join("")),a.kind==="attribute"||a.target!=="textContent"&&
(a.target!=="value"||g.localName!=="input"&&g.localName!=="textarea")||(C=C==void 0?"":C),O=C,n2&&(O=n2(O,a.target,a.kind,g)),a.kind=="attribute"?D._valueToNodeAttribute(g,O,a.target):(a=a.target,g.__isPropertyEffectsClient&&g.__dataHasAccessor&&g.__dataHasAccessor[a]?g.__readOnly&&g.__readOnly[a]||g._setPendingProperty(a,O)&&D._enqueueClient(g):D._setUnmanagedPropertyToNode(g,a,O))))};
Jmt=function(D,C,X){if(X.listenerEvent){var c=X.parts[0];D.addEventListener(X.listenerEvent,function(W){var p=X.target,g=c.source,a=c.negate,O=W.detail,P=O&&O.path;P?(g=ef(p,g,P),W=O&&O.value):W=W.currentTarget[p];C.__readOnly&&C.__readOnly[g]||!C._setPendingPropertyOrPath(g,a?!W:W,!0,!!P)||O&&O.queueProperty||C._invalidateProperties()})}};
z_h=function(D,C,X,c,W,p){p=C.static||p&&(typeof p!=="object"||p[C.methodName]);W={methodName:C.methodName,args:C.args,methodInfo:W,dynamicFn:p};for(var g=0,a=void 0;g<C.args.length&&(a=C.args[g]);g++)a.literal||D._addPropertyEffect(a.rootProperty,X,{fn:c,info:W,trigger:a});p&&D._addPropertyEffect(C.methodName,X,{fn:c,info:W});return W};
Zmd=function(D,C,X,c,W){c=D._methodHost||D;var p=c[W.methodName];if(p)return D=D._marshalArgs(W.args,C,X),D===w0?w0:p.apply(c,D);W.dynamicFn||console.warn("method `"+W.methodName+"` not defined")};
j9m=function(D){for(var C="",X=0;X<D.length;X++)C+=D[X].literal||"";return C};
fTh=function(D){if(D=D.match(/([^\s]+?)\(([\s\S]*)\)/)){var C={methodName:D[1],static:!0,args:MbZ};return D[2].trim()?qWZ(D[2].replace(/\\,/g,"&comma;").split(","),C):C}return null};
qWZ=function(D,C){C.args=D.map(function(X){X=Vbd(X);X.literal||(C.static=!1);return X},this);
return C};
Vbd=function(D){D=D.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var C={name:D,value:"",literal:!1},X=D[0];X==="-"&&(X=D[1]);X>="0"&&X<="9"&&(X="#");switch(X){case "'":case '"':C.value=D.slice(1,-1);C.literal=!0;break;case "#":C.value=Number(D),C.literal=!0}C.literal||(C.rootProperty=s6(D),C.structured=L2(D),C.structured&&(C.wildcard=D.slice(-2)==".*",C.wildcard&&(C.name=D.slice(0,-2))));return C};
doJ=function(D,C,X){D=tI(D,X);D===void 0&&(D=C[X]);return D};
R_3=function(D,C,X,c){c={indexSplices:c};Ff&&!D._overrideLegacyUndefined&&(C.splices=c);D.notifyPath(X+".splices",c);D.notifyPath(X+".length",C.length);Ff&&!D._overrideLegacyUndefined&&(c.indexSplices=[])};
Z0=function(D,C,X,c,W,p){R_3(D,C,X,[{index:c,addedCount:W,removed:p,object:C,type:"splice"}])};
lTF=function(D){D=$oh((D.body?D.body:D).textContent,D.baseURI);var C=document.createElement("style");C.textContent=D;return C};
CTm=function(D){D=D.trim().split(/\s+/);for(var C=[],X=0;X<D.length;X++)C.push.apply(C,_.VB(D8j(D[X])));return C};
D8j=function(D){var C=G5.import(D);if(!C)return console.warn("Could not find style data in module named",D),[];if(C._styles===void 0){D=[];D.push.apply(D,_.VB(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C)));var X=C.querySelector("template");X&&D.push.apply(D,_.VB(XRr(X,C.assetpath)));C._styles=D}return C._styles};
XRr=function(D,C){if(!D._styles){for(var X=[],c=D.content.querySelectorAll("style"),W=0;W<c.length;W++){var p=c[W],g=p.getAttribute("include");g&&X.push.apply(X,_.VB(CTm(g).filter(function(a,O,P){return P.indexOf(a)===O})));
C&&(p.textContent=$oh(p.textContent,C));X.push(p)}D._styles=X}return D._styles};
cTj=function(D){return(D=G5.import(D))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var C=[];D=D.querySelectorAll("link[rel=import][type~=css]");for(var X=0;X<D.length;X++){var c=D[X];if(c.import){var W=c.import;if((c=c.hasAttribute("shady-unscoped"))&&!W._unscopedStyle){var p=lTF(W);p.setAttribute("shady-unscoped","");W._unscopedStyle=p}else W._style||(W._style=lTF(W));C.push(c?W._unscopedStyle:W._style)}}return C};
Wwn=function(D){D=D.trim().split(/\s+/);for(var C="",X=0;X<D.length;X++)C+=owF(D[X]);return C};
owF=function(D){var C=G5.import(D);if(C&&C._cssText===void 0){var X=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C),c=C.querySelector("template");c&&(X+=pRh(c,C.assetpath));C._cssText=X||null}C||console.warn("Could not find style data in module named",D);return C&&C._cssText||""};
pRh=function(D,C){var X="";D=XRr(D,C);for(C=0;C<D.length;C++){var c=D[C];c.parentNode&&c.parentNode.removeChild(c);X+=c.textContent}return X};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var C="";D=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D);for(var X=0;X<D.length;X++)C+=D[X].textContent;return C};
Vo=function(D,C){return{index:D,removed:[],addedCount:C}};
U8o=function(D,C,X,c){var W=0,p=0,g=0,a=0,O=Math.min(C-W,c-p);if(W==0&&p==0)a:{for(g=0;g<O;g++)if(D[g]!==X[g])break a;g=O}if(C==D.length&&c==X.length){a=D.length;for(var P=X.length,k=0;k<O-g&&S3n(D[--a],X[--P]);)k++;a=k}W+=g;p+=g;C-=a;c-=a;if(C-W==0&&c-p==0)return[];if(W==C){for(C=Vo(W,0);p<c;)C.removed.push(X[p++]);return[C]}if(p==c)return[Vo(W,C-W)];O=W;g=p;c=c-g+1;a=C-O+1;C=Array(c);for(P=0;P<c;P++)C[P]=Array(a),C[P][0]=P;for(P=0;P<a;P++)C[0][P]=P;for(P=1;P<c;P++)for(k=1;k<a;k++)if(D[O+k-1]===
X[g+P-1])C[P][k]=C[P-1][k-1];else{var u=C[P-1][k]+1,Q=C[P][k-1]+1;C[P][k]=u<Q?u:Q}O=C.length-1;g=C[0].length-1;c=C[O][g];for(D=[];O>0||g>0;)O==0?(D.push(2),g--):g==0?(D.push(3),O--):(a=C[O-1][g-1],P=C[O-1][g],k=C[O][g-1],u=P<k?P<a?P:a:k<a?k:a,u==a?(a==c?D.push(0):(D.push(1),c=a),O--,g--):u==P?(D.push(3),O--,c=P):(D.push(2),g--,c=k));D.reverse();C=void 0;O=[];for(g=0;g<D.length;g++)switch(D[g]){case 0:C&&(O.push(C),C=void 0);W++;p++;break;case 1:C||(C=Vo(W,0));C.addedCount++;W++;C.removed.push(X[p]);
p++;break;case 2:C||(C=Vo(W,0));C.addedCount++;W++;break;case 3:C||(C=Vo(W,0)),C.removed.push(X[p]),p++}C&&O.push(C);return O};
gwZ=function(D,C){return U8o(D,D.length,C,C.length)};
S3n=function(D,C){return D===C};
ItR=function(D){if(D instanceof ath)return D.value;throw Error("Id`"+D);};
Onh=function(D,C){for(var X in C)X===null?D.style.removeProperty(X):D.style.setProperty(X,C[X])};
ATo=function(D,C){return(D=window.getComputedStyle(D).getPropertyValue(C))?D.trim():""};
inm=function(D){requestAnimationFrame(function(){PTt?PTt(D):($8t||($8t=new Promise(function(C){vw3=C}),document.readyState==="complete"?vw3():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&vw3()})),$8t.then(function(){D&&D()}))})};
Q2W=function(D){k_W=D&&D.shimcssproperties?!1:uxm||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
hDn=function(D){if(!(BBh.indexOf(D)>-1)&&D!=="touchend"&&bnj&&rTF&&Kwm)return{passive:!0}};
m8h=function(D){for(var C=x8F?["click"]:BBh,X=0,c;X<C.length;X++)c=C[X],D?(Lwo.length=0,document.addEventListener(c,s2m,!0)):document.removeEventListener(c,s2m,!0)};
T5=function(D){var C=D.type;return BBh.indexOf(C)>-1?C==="mousemove"?(C=D.buttons===void 0?1:D.buttons,D instanceof window.MouseEvent&&!eDJ&&(C=EwJ[D.which]||0),!!(C&1)):(D.button===void 0?0:D.button)===0:!1};
tXZ=function(D){if(D.type==="click"){if(D.detail===0)return!0;var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);if(!C.nodeType||C.nodeType!==Node.ELEMENT_NODE)return!0;C=C.getBoundingClientRect();var X=D.pageX;D=D.pageY;return!(X>=C.left&&X<=C.right&&D>=C.top&&D<=C.bottom)}return!1};
NBd=function(D,C,X){D.movefn=C;D.upfn=X;document.addEventListener("mousemove",C);document.addEventListener("mouseup",X)};
Hf=function(D){document.removeEventListener("mousemove",D.movefn);document.removeEventListener("mouseup",D.upfn);D.movefn=null;D.upfn=null};
Y3m=function(D,C){for(var X=document.elementFromPoint(D,C),c=X;c&&c.shadowRoot&&!window.ShadyDOM;){var W=c;c=c.shadowRoot.elementFromPoint(D,C);if(W===c)break;c&&(X=c)}return X};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var C=yTj(D);return C.length>0?C[0]:D.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var C=D.type,X=D.currentTarget.__polymerGestures;if(X&&(X=X[C])){if(!D.__polymerGesturesHandled&&(D.__polymerGesturesHandled={},C.slice(0,5)==="touch")){var c=D.changedTouches[0];C==="touchstart"&&D.touches.length===1&&(nw5=c.identifier);if(nw5!==c.identifier)return;bnj||(C==="touchstart"||C==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)}c=
D.__polymerGesturesHandled;if(!c.skip){for(var W=0,p;W<JI.length;W++)p=JI[W],X[p.name]&&!c[p.name]&&p.flow&&p.flow.start.indexOf(D.type)>-1&&p.reset&&p.reset();for(W=0;W<JI.length;W++)p=JI[W],X[p.name]&&!c[p.name]&&(c[p.name]=!0,p[C](D))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var C=D.changedTouches[0],X=D.type;if(X==="touchstart")wR3=C.clientX,FwZ=C.clientY,ZnR=!1;else if(X==="touchmove"&&!ZnR){ZnR=!0;X="auto";for(var c=yTj(D),W=0,p;W<c.length;W++)if(p=c[W],p.__polymerGesturesTouchAction){X=p.__polymerGesturesTouchAction;break}c=!1;W=Math.abs(wR3-C.clientX);C=Math.abs(FwZ-C.clientY);D.cancelable&&(X==="none"?c=!0:X==="pan-x"?c=C>W:X==="pan-y"&&(c=W>C));c?D.preventDefault():
z5("track")}};
MI=function(D,C,X){return jf[C]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,C,X),!0):!1};
qI=function(D,C,X){return jf[C]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,C,X),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,C,X){var c=jf[C],W=c.deps,p=c.name,g=D.__polymerGestures;g||(D.__polymerGestures=g={});for(var a=0,O,P;a<W.length;a++)O=W[a],x8F&&BBh.indexOf(O)>-1&&O!=="click"||((P=g[O])||(g[O]=P={_count:0}),P._count===0&&D.addEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,hDn(O)),P[p]=(P[p]||0)+1,P._count=(P._count||0)+1);D.addEventListener(C,X);c.touchAction&&_.f2(D,c.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,C,X){var c=jf[C],W=c.deps;c=c.name;var p=D.__polymerGestures;if(p)for(var g=0,a,O;g<W.length;g++)a=W[g],(O=p[a])&&O[c]&&(O[c]=(O[c]||1)-1,O._count=(O._count||1)-1,O._count===0&&D.removeEventListener(a,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,hDn(a)));D.removeEventListener(C,X)};
G_5=function(D){JI.push(D);for(var C=0;C<D.emits.length;C++)jf[D.emits[C]]=D};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){for(var C=0,X;C<JI.length;C++){X=JI[C];for(var c=0,W;c<X.emits.length;c++)if(W=X.emits[c],W===D)return X}return null};
_.f2=function(D,C){bnj&&D instanceof HTMLElement&&d0.run(function(){D.style.touchAction=C});
D.__polymerGesturesTouchAction=C};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,C,X){C=new Event(C,{bubbles:!0,cancelable:!0,composed:!0});C.detail=X;(0,_.yo)(D).dispatchEvent(C);C.defaultPrevented&&(D=X.preventer||X.sourceEvent)&&D.preventDefault&&D.preventDefault()};
z5=function(D){D=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D.info&&(D.info.prevent=!0)};
RX=function(D,C,X,c){C&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,D,{x:X.clientX,y:X.clientY,sourceEvent:X,preventer:c,prevent:function(W){return z5(W)}})};
VXj=function(D,C,X){if(D.prevent)return!1;if(D.started)return!0;X=Math.abs(D.y-X);return Math.abs(D.x-C)>=5||X>=5};
TBt=function(D,C,X){if(C){var c=D.moves[D.moves.length-2],W=D.moves[D.moves.length-1],p=W.x-D.x,g=W.y-D.y,a=0;if(c){var O=W.x-c.x;a=W.y-c.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,"track",{state:D.state,x:X.clientX,y:X.clientY,dx:p,dy:g,ddx:O,ddy:a,sourceEvent:X,hover:function(){return Y3m(X.clientX,X.clientY)}})}};
JTt=function(D,C,X){var c=Math.abs(C.clientX-D.x),W=Math.abs(C.clientY-D.y),p=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X||C);!p||Hn5[p.localName]&&p.hasAttribute("disabled")||!(isNaN(c)||isNaN(W)||c<=25&&W<=25||tXZ(C))||D.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,"tap",{x:C.clientX,y:C.clientY,sourceEvent:C,preventer:X})};
zDo=function(D,C,X,c,W){var p;W&&(p=typeof X==="object"&&X!==null)&&(c=D.__dataTemp[C]);c=c!==X&&(c===c||X===X);p&&c&&(D.__dataTemp[C]=X);return c};
MXr=function(){if(lV&&!D4){if(!j2o){j2o=!0;var D=document.createElement("style");D.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(D)}return!0}return!1};
fto=function(){return q3o};
d8W=function(D,C){q3o=D;Object.setPrototypeOf(D,C.prototype);new C;q3o=null};
RDF=function(D,C){for(var X=0;X<C.length;X++){var c=C[X];if(!!D!=!!c.__hideTemplateChildren__)if(c.nodeType===Node.TEXT_NODE)D?(c.__polymerTextContent__=c.textContent,c.textContent=""):c.textContent=c.__polymerTextContent__;else if(c.localName==="slot")if(D)c.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.yo)((0,_.yo)(c).parentNode).replaceChild(c.__polymerReplaced__,c);else{var W=c.__polymerReplaced__;W&&(0,_.yo)((0,_.yo)(W).parentNode).replaceChild(c,W)}else c.style&&(D?(c.__polymerDisplay__=
c.style.display,c.style.display="none"):c.style.display=c.__polymerDisplay__);c.__hideTemplateChildren__=D;c._showHideChildren&&c._showHideChildren(D)}};
ltJ=function(D){return(D=D.__dataHost)&&D._methodHost||D};
XTj=function(D,C,X){var c=X.mutableData?DyW:Cl;X2.mixin&&(c=X2.mixin(c));var W=function(){return c.apply(this,arguments)||this};
_.h(W,c);W.prototype.__templatizeOptions=X;W.prototype._bindTemplate(D);CSF(W,D,C,X);return W};
SGn=function(D,C,X,c){var W=X.forwardHostProp;if(W&&C.hasHostProps){var p=D.localName=="template",g=C.templatizeTemplateClass;if(!g){if(p){var a=X.mutableData?cut:o5m;g=function(){return a.apply(this,arguments)||this};
_.h(g,a);g=C.templatizeTemplateClass=g}else{var O=D.constructor;g=function(){return O.apply(this,arguments)||this};
_.h(g,O);g=C.templatizeTemplateClass=g}var P=C.hostProps,k;for(k in P)g.prototype._addPropertyEffect("_host_"+k,g.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:WXd(W)}),g.prototype._createNotifyingProperty("_host_"+k);WH&&c&&pTd(C,X,c)}D.__dataProto&&Object.assign(D.__data,D.__dataProto);if(p)d8W(D,g),D.__dataTemp={},D.__dataPending=null,D.__dataOld=null,D._enableProperties();else{Object.setPrototypeOf(D,g.prototype);C=C.hostProps;for(var u in C)u="_host_"+u,u in D&&(C=D[u],delete D[u],D.__data[u]=
C)}}};
WXd=function(D){return function(C,X,c){D.call(C.__templatizeOwner,X.substring(6),c[X])}};
CSF=function(D,C,X,c){var W=X.hostProps||{},p;for(p in c.instanceProps){delete W[p];var g=c.notifyInstanceProp;g&&D.prototype._addPropertyEffect(p,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:UyJ(g)})}if(c.forwardHostProp&&C.__dataHost)for(var a in W)X.hasHostProps||(X.hasHostProps=!0),D.prototype._addPropertyEffect(a,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:g5d()})};
UyJ=function(D){return function(C,X,c){D.call(C.__templatizeOwner,C,X,c[X])}};
g5d=function(){return function(D,C,X){D.__dataHost._setPendingPropertyOrPath("_host_"+C,X[C],!0,!0)}};
X2=function(D,C,X){if(pl&&!ltJ(D))throw Error("Od");X=X||{};if(D.__templatizeOwner)throw Error("Pd");D.__templatizeOwner=C;var c=(C?C.constructor:Cl)._parseTemplate(D),W=c.templatizeInstanceClass;W||(W=XTj(D,c,X),c.templatizeInstanceClass=W);var p=ltJ(D);SGn(D,c,X,p);X=function(){return W.apply(this,arguments)||this};
_.h(X,W);X.prototype._methodHost=p;X.prototype.__dataHost=D;X.prototype.__templatizeOwner=C;X.prototype.__hostProps=c.hostProps;return X};
pTd=function(D,C,X){X=X.constructor._properties;D=D.propertyEffects;C=C.instanceProps;for(var c in D)if(!(X[c]||C&&C[c]))for(var W=D[c],p=0;p<W.length;p++){var g=W[p].info.part;if(!g.signature||!g.signature.static){console.warn("Property '"+c+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
aat=function(D,C){for(var X;C;)if(X=C.__dataHost?C:C.__templatizeInstance)if(X.__dataHost!=D)C=X.__dataHost;else return X;else C=(0,_.yo)(C).parentNode;return null};
Sk=function(D){return D.localName==="slot"};
Iaj=function(){for(var D=Ur.prototype,C="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),X={},c=0;c<C.length;X={method$jscomp$33:void 0},c++)X.method$jscomp$33=C[c],D[X.method$jscomp$33]=function(W){return function(){return this.node[W.method$jscomp$33].apply(this.node,arguments)}}(X)};
ORZ=function(D,C){for(var X={},c=0;c<C.length;X={name$jscomp$448:void 0},c++)X.name$jscomp$448=C[c],Object.defineProperty(D,X.name$jscomp$448,{get:function(W){return function(){return this.node[W.name$jscomp$448]}}(X),
configurable:!0})};
Aur=function(){for(var D=Ur.prototype,C=["textContent","innerHTML","className"],X={},c=0;c<C.length;X={name$jscomp$449:void 0},c++)X.name$jscomp$449=C[c],Object.defineProperty(D,X.name$jscomp$449,{get:function(W){return function(){return this.node[W.name$jscomp$449]}}(X),
set:function(W){return function(p){this.node[W.name$jscomp$449]=p}}(X),
configurable:!0})};
PSj=function(){gr=document.documentElement.getAttribute("dir");gr=document.documentElement.getAttribute("dir");for(var D=0;D<aS.length;D++){var C=aS[D];C.__autoDirOptOut||C.setAttribute("dir",gr)}};
kj3=function(){IS=!0;requestAnimationFrame(function(){IS=!1;$yr(v5R);setTimeout(function(){for(var D=0,C=Or.length;D<C;D++)iRo(Or.shift())})})};
$yr=function(D){for(;D.length;)iRo(D.shift())};
iRo=function(D){var C=D[0],X=D[1];D=D[2];try{X.apply(C,D)}catch(c){setTimeout(function(){throw c;})}};
_.uNJ=function(D,C,X){IS||kj3();v5R.push([D,C,X])};
_.A0=function(D,C,X){IS||kj3();Or.push([D,C,X])};
bRm=function(D,C){C=C===void 0?!1:C;if(!QkJ||!B1j||!QkJ.handlesDynamicScoping)return null;var X=B1j.ScopingShim;if(!X)return null;var c=X.scopeForNode(D),W=(0,_.yo)(D).getRootNode(),p=function(g){if((0,_.yo)(g).getRootNode()===W){var a=Array.from(QkJ.nativeMethods.querySelectorAll.call(g,"*"));a.push(g);for(g=0;g<a.length;g++){var O=a[g];if((0,_.yo)(O).getRootNode()===W){var P=X.currentScopeForNode(O);P!==c&&(P!==""&&X.unscopeNode(O,P),X.scopeNode(O,c))}}}};
p(D);return C?(C=new MutationObserver(function(g){for(var a=0;a<g.length;a++)for(var O=g[a],P=0;P<O.addedNodes.length;P++){var k=O.addedNodes[P];k.nodeType===Node.ELEMENT_NODE&&p(k)}}),C.observe(D,{childList:!0,
subtree:!0}),C):null};
ruR=function(){document.body.removeAttribute("unresolved")};
skm=function(D){var C=D=D.replace(KXo,"").replace(hYo,""),X=new xym;X.start=0;X.end=C.length;for(var c=X,W=0,p=C.length;W<p;W++)if(C[W]==="{"){c.rules||(c.rules=[]);var g=c,a=g.rules[g.rules.length-1]||null;c=new xym;c.start=W+1;c.parent=g;c.previous=a;g.rules.push(c)}else C[W]==="}"&&(c.end=W+1,c=c.parent||X);return LX5(X,D)};
LX5=function(D,C){var X=C.substring(D.start,D.end-1);D.parsedCssText=D.cssText=X.trim();D.parent&&(X=C.substring(D.previous?D.previous.end:D.parent.start,D.start-1),X=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(X),X=X.replace(my3," "),X=X.substring(X.lastIndexOf(";")+1),X=D.parsedSelector=D.selector=X.trim(),D.atRule=X.indexOf("@")===0,D.atRule?X.indexOf("@media")===0?D.type=4:X.match(eYR)&&(D.type=7,D.keyframesName=D.selector.split(my3).pop()):X.indexOf("--")===
0?D.type=1E3:D.type=1);if(X=D.rules)for(var c=0,W=X.length,p=void 0;c<W&&(p=X[c]);c++)LX5(p,C);return D};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){return D.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var C=arguments[1],X=6-C.length;X--;)C="0"+C;return"\\"+C})};
E5Z=function(D,C,X){X=X===void 0?"":X;var c="";if(D.cssText||D.rules){var W=D.rules;if(W&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(W))for(var p=0,g=W.length,a=void 0;p<g&&(a=W[p]);p++)c=E5Z(a,C,c);else C?C=D.cssText:(C=D.cssText,C=C.replace(tzh,"").replace(N1J,""),C=C.replace(YGj,"").replace(yuW,"")),(c=C.trim())&&(c="  "+c+"\n")}c&&(D.selector&&(X+=D.selector+" {\n"),X+=c,D.selector&&(X+="}\n\n"));return X};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){D=D[0];return!!D&&!!D.selector&&D.selector.indexOf("--")===0};
wTt=function(D){if(D=n5F[D])D._applyShimCurrentVersion=D._applyShimCurrentVersion||0,D._applyShimValidatingVersion=D._applyShimValidatingVersion||0,D._applyShimNextVersion=(D._applyShimNextVersion||0)+1};
FXj=function(D){return D._applyShimCurrentVersion===D._applyShimNextVersion};
Gjn=function(D){D._applyShimValidatingVersion=D._applyShimNextVersion;D._validating||(D._validating=!0,ZRt.then(function(){D._applyShimCurrentVersion=D._applyShimNextVersion;D._validating=!1}))};
T1o=function(D){if(!D)return"";typeof D==="string"&&(D=skm(D));return E5Z(D,Vzr)};
HR5=function(D){!D.__cssRules&&D.textContent&&(D.__cssRules=skm(D.textContent));return D.__cssRules||null};
zYW=function(D,C,X,c){if(D){var W=!1,p=D.type;if(c&&p===4){var g=D.selector.match(Jut);g&&(window.matchMedia(g[1]).matches||(W=!0))}p===1?C(D):X&&p===7?X(D):p===1E3&&(W=!0);if((D=D.rules)&&!W)for(W=0,p=D.length,g=void 0;W<p&&(g=D[W]);W++)zYW(g,C,X,c)}};
jkd=function(D,C){var X=D.indexOf("var(");if(X===-1)return C(D,"","","");a:{var c=0;var W=X+3;for(var p=D.length;W<p;W++)if(D[W]==="(")c++;else if(D[W]===")"&&--c===0)break a;W=-1}c=D.substring(X+4,W);X=D.substring(0,X);D=jkd(D.substring(W+1),C);p=c.indexOf(",");if(p===-1)return C(X,c.trim(),"",D);W=c.substring(0,p).trim();c=c.substring(p+1).trim();return C(X,W,c,D)};
MzW=function(D){if(PH!==void 0)return PH;if(D.__cssBuild===void 0){var C=D.getAttribute("css-build");if(C)D.__cssBuild=C;else{a:{C=D.localName==="template"?D.content.firstChild:D.firstChild;if(C instanceof Comment&&(C=C.textContent.trim().split(":"),C[0]==="css-build")){C=C[1];break a}C=""}if(C!==""){var X=D.localName==="template"?D.content.firstChild:D.firstChild;X.parentNode.removeChild(X)}D.__cssBuild=C}}return D.__cssBuild||""};
faW=function(D,C,X,c){for(var W=C._noAccessors,p=Object.getOwnPropertyNames(C),g=0;g<p.length;g++){var a=p[g];if(!(a in c))if(W)D[a]=C[a];else{var O=Object.getOwnPropertyDescriptor(C,a);O&&(O.configurable=!0,Object.defineProperty(D,a,O))}}for(var P in qGZ)C[P]&&(X[P]=X[P]||[],X[P].push(C[P]))};
dyR=function(D,C,X){C=C||[];for(var c=D.length-1;c>=0;c--){var W=D[c];W?Array.isArray(W)?dyR(W,C):C.indexOf(W)<0&&(!X||X.indexOf(W)<0)&&C.unshift(W):console.warn("behavior is null, check for missing or 404 import")}return C};
RYm=function(D,C){for(var X in C){var c=D[X],W=C[X];D[X]=!("value"in W)&&c&&"value"in c?Object.assign({value:c.value},W):W}};
Cp3=function(D,C,X){var c={},W=function(){return C.apply(this,arguments)||this};
_.h(W,C);W._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(g)for(var O=0,P;O<g.length;O++)P=g[O],P.properties&&this.createProperties(P.properties),P.observers&&this.createObservers(P.observers,P.properties);D.properties&&this.createProperties(D.properties);D.observers&&this.createObservers(D.observers,D.properties);this._prepareTemplate()}else C._finalizeClass.call(this)};
W.prototype.created=function(){C.prototype.created.call(this);var O=c.created;if(O)for(var P=0;P<O.length;P++)O[P].call(this)};
W.prototype._registered=function(){var O=W.prototype;if(!O.hasOwnProperty("__hasRegisterFinished")){O.__hasRegisterFinished=!0;C.prototype._registered.call(this);lV&&a(O);O=Object.getPrototypeOf(this);var P=c.beforeRegister;if(P)for(var k=0;k<P.length;k++)P[k].call(O);if(P=c.registered)for(k=0;k<P.length;k++)P[k].call(O)}};
W.prototype._applyListeners=function(){C.prototype._applyListeners.call(this);var O=c.listeners;if(O)for(var P=0;P<O.length;P++){var k=O[P];if(k)for(var u in k)this._addMethodEventListenerToNode(this,u,k[u])}};
W.prototype._ensureAttributes=function(){var O=c.hostAttributes;if(O)for(var P=O.length-1;P>=0;P--){var k=O[P],u;for(u in k)this._ensureAttribute(u,k[u])}C.prototype._ensureAttributes.call(this)};
W.prototype.ready=function(){C.prototype.ready.call(this);var O=c.ready;if(O)for(var P=0;P<O.length;P++)O[P].call(this)};
W.prototype.attached=function(){C.prototype.attached.call(this);var O=c.attached;if(O)for(var P=0;P<O.length;P++)O[P].call(this)};
W.prototype.detached=function(){C.prototype.detached.call(this);var O=c.detached;if(O)for(var P=0;P<O.length;P++)O[P].call(this)};
W.prototype.attributeChanged=function(O,P,k){C.prototype.attributeChanged.call(this);var u=c.attributeChanged;if(u)for(var Q=0;Q<u.length;Q++)u[Q].call(this,O,P,k)};
_.$a.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){var O={};if(g)for(var P=0;P<g.length;P++)RYm(O,g[P].properties);RYm(O,D.properties);return O}},
observers:{configurable:!0,enumerable:!0,get:function(){var O=[];if(g)for(var P=0,k;P<g.length;P++)k=g[P],k.observers&&(O=O.concat(k.observers));D.observers&&(O=O.concat(D.observers));return O}}});
if(X){Array.isArray(X)||(X=[X]);var p=C.prototype.behaviors;var g=dyR(X,null,p);W.prototype.behaviors=p?p.concat(X):g}var a=function(O){if(g)for(var P=g,k=0;k<P.length;k++)faW(O,P[k],c,lar);faW(O,D,c,DsF)};
lV||a(W.prototype);W.generatedFrom=D;return W};
WER=function(D){var C=typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0};C.fastInit===void 0&&(C.fastInit=!0);return function(X){if(!C.disableInheritanceCheck&&Object.getPrototypeOf(X.prototype).constructor!==_.vH)throw Error("Td");var c=X.prototype;c.is=C.is;aTj(c,"created",function(){this.hostElement=this;this.polymerController=this});
Xqj(c,X,C.fastInit);C.notifyObserversOnUndefined&&(c._overrideLegacyUndefined=!0);if(c6o)for(var W=_.U(Object.getOwnPropertyNames(c)),p=W.next();!p.done;p=W.next()){p=p.value;var g=Object.getOwnPropertyDescriptor(c,p);g.enumerable===!1&&(g.enumerable=!0,Object.defineProperty(c,p,g))}if("template"in X)var a=function(){return X.template};
else C.template!==void 0&&(a=C.template);if(a!==void 0){var O;Object.defineProperty(c,"_template",{get:function(){O===void 0&&(O=a());return O},
set:function(P){O=P},
configurable:!0,enumerable:!0})}Polymer(c);X[oJZ]=c}};
pqh=function(D){D=D===void 0?{}:D;D.fastInit===void 0&&(D.fastInit=!0);return function(C){if(!D.disableInheritanceCheck&&Object.getPrototypeOf(C.prototype).constructor!==iQ)throw Error("Ud");Xqj(C.prototype,C,D.fastInit)}};
Xqj=function(D,C,X){X=X===void 0?!1:X;SfF(C);X?aTj(D,"created",function(){this.disableEnforceFastDefaultValuesCheck||Usr(C,this)}):aTj(D,"ready",function(){for(var c={},W=_.U(ITh(this.behaviors)),p=W.next();!p.done;p=W.next())p=p.value,p.properties&&Object.assign(c,gJn(this,p.properties));
Object.assign(c,gJn(this,this.properties));Usr(C,this);W=_.U(Object.keys(c));for(p=W.next();!p.done;p=W.next())p=p.value,this[p]=c[p]})};
Usr=function(D,C){if(c6o){D=new D;for(var X=_.U(Object.getOwnPropertyNames(D)),c=X.next();!c.done;c=X.next())c=c.value,C[c]=D[c];for(X=C;X&&X!==Object.prototype;X=Object.getPrototypeOf(X)){c=_.U(Object.getOwnPropertyNames(X));for(var W=c.next();!W.done;W=c.next())W=W.value,D.hasOwnProperty(W)||Object.defineProperty(D,W,aV3(C,W))}}else D.apply(C)};
aV3=function(D,C){return{get:function(){var X=D[C];return X instanceof Function?X.bind(D):X},
set:function(X){D[C]=X}}};
gJn=function(D,C){if(!C)return{};for(var X={},c=_.U(Object.keys(C)),W=c.next();!W.done;W=c.next())if(W=W.value,!C[W].readOnly){var p=D[W];p!==void 0&&(X[W]=p)}return X};
SfF=function(D){var C=new D;D=D.prototype.properties||{};for(var X=_.U(Object.keys(D)),c=X.next();!c.done;c=X.next())if(c=c.value,C.hasOwnProperty(c)){var W=D[c];typeof W==="function"&&(D[c]=W={type:W});C[c]!=null&&W.type===Object&&(W.type=IVm(C[c].constructor))}};
IVm=function(D){for(var C=_.U(OLh),X=C.next();!X.done;X=C.next())if(X=X.value,D===X)return X;return Object};
A6F=function(D){return function(C,X){C.behaviors=C.behaviors||[];C.behaviors.push(D||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",C,X).prototype:void 0));Object.defineProperty(C,X,{get:function(){return this},
enumerable:!0,configurable:!0})}};
Ppn=function(D){D=D===void 0?{}:D;return function(C,X){C.properties=C.properties||{};D.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?D.type=IVm(Reflect.getMetadata("design:type",C,X)):D.type=String);var c=D,W=C.properties[X];C.properties[X]=W?Object.assign({},W,c):c}};
$sm=function(D){return function(C,X){C.listeners=C.listeners||{};C.listeners[D]=X}};
vJm=function(){var D=_.MJ.apply(0,arguments);if(D.length===0)throw Error("Vd");return function(C,X){C.observers=C.observers||[];C.observers.push(X+"("+D.join(",")+")")}};
iLt=function(){var D=_.MJ.apply(0,arguments);return function(C,X,c){var W=Object.getOwnPropertyDescriptor(C,X).get,p="__compute__"+X;Object.defineProperty(C,p,{value:W,enumerable:!0});C.properties=C.properties||{};W=C.properties[X];W||(W={},C.properties[X]=W);W.computed=p+"("+D.join(",")+")";c.get=void 0}};
_.ka=function(D,C,X){_.nF.call(this);this.JSC$11476_id_=null;this.usingListeners_=!1;this.JSC$11476_listener_=D;this.handler_=X;this.JSC$11476_win_=C||window;this.callback_=(0,_.wo)(this.JSC$11478_doAction_,this)};
uQ=function(D){this.range_=D};
Qk=function(D){this.range_=D};
rr=function(D,C,X){_.nF.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=D;this.scrollTimer_=new _.BH(50);this.JSC$11555_eventHandler_=new _.bQ(this);this.scrollDelta_=new _.VI;this.containerIsActuallyContent_=D.tagName==="BODY"||D.tagName==="HTML";this.containerBounds_=kim(D);this.containerIsActuallyContent_&&(D=_.eo(),this.containerBounds_.height=D.height,this.containerBounds_.width=D.width);this.margin_=C||0;if(C){if(C=this.containerBounds_.clone(),D=this.margin_){var c=
Math.min(D,C.height*.25);C.top+=c;C.height-=2*c;D=Math.min(D,C.width*.25);C.left+=D;C.width-=2*D}}else C=this.containerBounds_;this.scrollBounds_=C;X||this.JSC$11555_eventHandler_.listen(_.Hd(this.containerNode_),"mousemove",this.JSC$11557_onMouseMove);this.JSC$11555_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11557_onTick_)};
_.Kl=function(D){this.mechanism=D};
h0=function(D,C){this.JSC$11653_key_=D;this.JSC$11653_value_=C};
QKt=function(D){if(D>=55296&&D<=57343||D>1114111)return"\ufffd";D in uDt&&(D=uDt[D]);var C="";D>65535&&(D-=65536,C+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023);return C+=String.fromCharCode(D)};
Bdh=function(D,C){return D<C?1:-1};
r6m=function(){return function(D){return D.charAt(1)==="#"?D.charAt(2)==="X"||D.charAt(2)==="x"?QKt(parseInt(D.substr(3),16)):QKt(parseInt(D.substr(2),10)):bLr[D.slice(1,-1)]}};
xsd=function(D){return D.slice(1,D.length-1).trim().replace(KEd,function(C){return hJh[C]||" "})};
sr=function(D){return D===32||D===9};
mF=function(D,C){return C<D.length?D.charCodeAt(C):-1};
LE5=function(D){for(;D;){if(D._lastLineBlank)return!0;var C=D.type;if(C==="list"||C==="item")D=D._lastChild;else break}return!1};
ek=function(D){if(sKW.test(D)){var C=1,X=0,c=0;for(D[X]=="|"&&X++;X<D.length;){switch(D[X]){case "|":c=1;break;case " ":break;case "\t":break;default:c&&(c=0,C++)}X++}return mso.test(D)?-C:C}return 0};
eJd=function(D){return D=="table"||D=="row"||D=="cell"};
EJ3=function(){return new Er("document",[[1,1],[0,0]])};
t$J=function(){};
t0=function(){var D={safe:!1};D=D||{};D.softbreak=D.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=D};
wqt=function(D,C){var X="";if(D)if(D=D.toLowerCase(),D===" "||Ndr.test(D))X="space";else if(YfW.test(D))X="esc";else if(D.length==1){if(!C||y6o.test(D))X=D}else X=nJW.test(D)?D.replace("arrow",""):D=="multiply"?"*":D;return X};
V$F=function(D,C){var X=D.hasModifiers;if(C.key)X=wqt(C.key,X);else if(C.detail&&C.detail.key)X=wqt(C.detail.key,X);else{X=C.keyIdentifier;var c="";X&&(X in FEo?c=FEo[X]:ZL5.test(X)?(X=parseInt(X.replace("U+","0x"),16),c=String.fromCharCode(X).toLowerCase()):c=X.toLowerCase());(X=c)||(X=C.keyCode,c="",Number(X)&&(X>=65&&X<=90?c=String.fromCharCode(32+X):X>=112&&X<=123?c="f"+(X-112+1):X>=48&&X<=57?c=String(X-48):X>=96&&X<=105?c=String(X-96):c=Gi3[X]),X=c);X=X||""}return X===D.key&&(!D.hasModifiers||
!!C.shiftKey===!!D.shiftKey&&!!C.ctrlKey===!!D.ctrlKey&&!!C.altKey===!!D.altKey&&!!C.metaKey===!!D.metaKey)};
HLm=function(D){return D.length===1?{combo:D,key:D,event:"keydown"}:D.split("+").reduce(function(C,X){var c=X.split(":");X=c[0];c=c[1];X in TdF?(C[TdF[X]]=!0,C.hasModifiers=!0):(C.key=X,C.event=c||"keydown");return C},{combo:D.split(":").shift()})};
J65=function(D){return D.trim().split(" ").map(function(C){return HLm(C)})};
zJJ=function(D,C){if(D&&D.fn){var X=D.fn;D.fn=function(){try{X.apply(this,arguments)}catch(c){if(c instanceof NO)console.warn("Argument '"+c.arg+"'"+(C?" for method '"+C+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw c;}}}return D};
M$o=function(){var D=[],C;var X=X||_.jKn.length;for(C=0;C<8;C++)D[C]=_.jKn[0|Math.random()*X];return D.join("")};
qfr=function(){var D=_.MJ.apply(0,arguments);return D.length===0?function(C){return C}:D.length===1?D[0]:D.reduce(function(C,X){return function(){return C(X.apply(null,_.VB(_.MJ.apply(0,arguments))))}})};
fV3=function(){var D=_.MJ.apply(0,arguments);return function(C){return function(X,c){X=C(X,c);var W=function(){throw Error("Fe");},p={getState:X.getState,
dispatch:function(g){return W.apply(null,[g].concat(_.VB(_.MJ.apply(1,arguments))))}};
c=D.map(function(g){return g(p)});
W=qfr.apply(null,_.VB(c))(X.dispatch);return Object.assign({},X,{dispatch:W})}}};
lVm=function(D){Object.keys(D).forEach(function(C){var X=D[C];if(typeof X(void 0,{type:dsF})==="undefined")throw Error("Ge`"+C);if(typeof X(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+RJm()})==="undefined")throw Error("He`"+C+"`"+dsF);})};
Ya=function(D){for(var C=Object.keys(D),X={},c=0;c<C.length;c++){var W=C[c];typeof D[W]==="function"&&(X[W]=D[W])}var p=Object.keys(X);try{lVm(X)}catch(a){var g=a}return function(a,O){a=a===void 0?{}:a;if(g)throw g;for(var P=!1,k={},u=0;u<p.length;u++){var Q=p[u],B=a[Q],K=(0,X[Q])(B,O);if(typeof K==="undefined")throw a=O&&O.type,Error("Ie`"+(a?'"'+String(a)+'"':"(unknown type)")+"`"+Q);k[Q]=K;P=P||K!==B}return(P=P||p.length!==Object.keys(a).length)?k:a}};
D$5=function(D,C,X){function c(){if(k)throw Error("Je");return a}
function W(B){if(typeof B!=="function")throw Error("Ke`"+typeof B);if(k)throw Error("Le");var K=!0;P===O&&(P=O.slice());P.push(B);return function(){if(K){if(k)throw Error("Me");K=!1;P===O&&(P=O.slice());var L=P.indexOf(B);P.splice(L,1);O=null}}}
function p(B){if(typeof B!=="object"||B===null)var K=!1;else{for(K=B;Object.getPrototypeOf(K)!==null;)K=Object.getPrototypeOf(K);K=Object.getPrototypeOf(B)===K}if(!K)throw Error("Ne`"+typeof B);if(typeof B.type==="undefined")throw Error("Oe");if(k)throw Error("Pe");try{k=!0,a=g(a,B)}finally{k=!1}K=O=P;for(var L=0;L<K.length;L++)(0,K[L])();return B}
if(typeof C==="function"&&typeof X==="function"||typeof X==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof C==="function"&&typeof X==="undefined"&&(X=C,C=void 0);if(typeof X!=="undefined"){if(typeof X!=="function")throw Error("Re`"+typeof X);return X(D$5)(D,C)}if(typeof D!=="function")throw Error("Se`"+typeof D);var g=D,a=C,O=[],P=O,k=!1;p({type:dsF});var u={},Q=(u.dispatch=p,u.subscribe=W,u.getState=c,u.replaceReducer=function(B){if(typeof B!=="function")throw Error("Te`"+
typeof B);g=B;p({type:CaZ});return Q},u[XFh]=function(){var B={};
return B.subscribe=function(K){function L(){K.next&&K.next(c())}
if(typeof K!=="object"||K===null)throw new TypeError("Ue`"+typeof K);L();return{unsubscribe:W(L)}},B[XFh]=function(){return this},B},u);
return Q};
c3d=function(D){function C(){W&&(W=!1,D());p&&c()}
function X(){requestAnimationFrame(C)}
function c(){var a=Date.now();if(W){if(a-g<2)return;p=!0}else W=!0,p=!1,setTimeout(X,20);g=a}
var W=!1,p=!1,g=0;return c};
yk=function(D){return typeof D==="number"?D:parseFloat(D)||0};
o1F=function(D){return _.MJ.apply(1,arguments).reduce(function(C,X){return C+yk(D["border-"+X+"-width"])},0)};
U$Z=function(D){if(W2m[D])return W2m[D];var C=globalThis[D],X=C.prototype,c=D in pFW?pFW[D]:void 0;c=!(!c||!c.every(function(O){var P,k;return!!((P=Object.getOwnPropertyDescriptor(X,O))==null?0:(k=P.get)==null?0:k.toString().includes("[native code]"))}));
var W=D in SCZ?SCZ[D]:void 0;W=!(!W||!W.every(function(O){var P;return typeof X[O]==="function"&&((P=X[O])==null?void 0:P.toString().includes("[native code]"))}));
if(c&&W&&!globalThis.Zone)return W2m[D]=C.prototype;try{var p=document.createElement("iframe");document.body.appendChild(p);var g=p.contentWindow;if(!g)return C.prototype;var a=g[D].prototype;document.body.removeChild(p);return a?W2m[D]=a:X}catch(O){return X}};
nl=function(D,C,X){var c=D+"."+String(X);if(g1n[c])return g1n[c].call(C);D=U$Z(D);var W;D=(W=Object.getOwnPropertyDescriptor(D,X))==null?void 0:W.get;if(!D)return C[X];g1n[c]=D;return D.call(C)};
IZJ=function(D,C){var X="Node."+String(C);if(aZt[X])return aZt[X].bind(D);var c=U$Z("Node")[C];if(typeof c!=="function")return D[C];aZt[X]=c;return c.bind(D)};
wr=function(D,C,X){try{if(!(C in D))return function(){};
var c=D[C],W=X(c);typeof W==="function"&&(W.prototype=W.prototype||{},Object.defineProperties(W,{__rrweb_original__:{enumerable:!1,value:c}}));D[C]=W;return function(){D[C]=c}}catch(p){return function(){}}};
GT=function(D){var C=D&&"host"in D&&"mode"in D&&F2(D)||null;return!!(C&&"shadowRoot"in C&&Z4(C)===D)};
Vk=function(D){return Object.prototype.toString.call(D)==="[object ShadowRoot]"};
OWh=function(D){D.includes(" background-clip: text;")&&!D.includes(" -webkit-background-clip: text;")&&(D=D.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return D};
Pat=function(D){try{var C=D.rules||D.cssRules;if(!C)return null;var X=D.href;!X&&D.ownerNode&&(X=D.ownerNode.baseURI);var c=Array.from(C,function(W){return A3F(W,X)}).join("");
return OWh(c)}catch(W){return null}};
A3F=function(D,C){if("styleSheet"in D){try{var X;if(!(X=Pat(D.styleSheet))){var c=D.cssText;if(c.split('"').length<3)X=c;else{var W=["@import","url("+JSON.stringify(D.href)+")"];D.layerName===""?W.push("layer"):D.layerName&&W.push("layer("+D.layerName+")");D.supportsText&&W.push("supports("+D.supportsText+")");D.media.length&&W.push(D.media.mediaText);X=W.join(" ")+";"}}var p=X}catch(g){p=D.cssText}return D.styleSheet.href?$$j(p,D.styleSheet.href):p}p=D.cssText;"selectorText"in D&&D.selectorText.includes(":")&&
(p=p.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return C?$$j(p,C):p};
v1r=function(D){var C=D.element;var X=D.maskInputOptions;var c=D.tagName;var W=D.type;var p=D.value;D=D.maskInputFn;p=p||"";W=W&&W.toLowerCase();if(X[c.toLowerCase()]||W&&X[W])p=D?D(p,C):"*".repeat(p.length);return p};
iWr=function(D){var C=D.getContext("2d");if(!C)return!0;for(var X=0;X<D.width;X+=50)for(var c=0;c<D.height;c+=50){var W=C.getImageData;if((new Uint32Array(("__rrweb_original__"in W?W.__rrweb_original__:W).call(C,X,c,Math.min(50,D.width-X),Math.min(50,D.height-c)).data.buffer)).some(function(p){return p!==0}))return!1}return!0};
kgJ=function(D){var C=D.type;return D.hasAttribute("data-rr-is-password")?"password":C?C.toLowerCase():null};
unZ=function(D){try{var C=new URL(D,window.location.href)}catch(W){return null}var X,c;return(c=(X=C.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:X[1])!=null?c:null};
$$j=function(D,C){return(D||"").replace(Qbm,function(X,c,W,p,g,a){W=W||g||a;c=c||p||"";if(!W)return X;if(Bkm.test(W)||bWo.test(W)||r3o.test(W))return"url("+c+W+c+")";if(W[0]==="/")return X=C.indexOf("//")>-1?C.split("/").slice(0,3).join("/"):C.split("/")[0],X=X.split("?")[0],"url("+c+(X+W)+c+")";X=C.split("/");p=W.split("/");X.pop();p=_.U(p);for(W=p.next();!W.done;W=p.next())W=W.value,W!=="."&&(W===".."?X.pop():X.push(W));return"url("+c+X.join("/")+c+")"})};
K2Z=function(D,C){return(C=C===void 0?!1:C)?D.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):D.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
hTr=function(D,C){var X=X===void 0?!1:X;C=Array.from(C.childNodes);var c=[],W=0;if(C.length>1&&D&&typeof D==="string")for(var p=K2Z(D,X),g=p.length/D.length,a=1;a<C.length;a++)if(C[a].textContent&&typeof C[a].textContent==="string"){for(var O=K2Z(C[a].textContent,X),P=3;P<O.length&&(O[P].match(/[a-zA-Z0-9]/)||O.indexOf(O.substring(0,P),1)!==-1);P++);for(;P<O.length;P++){var k=O.substring(0,P),u=p.split(k),Q=-1;if(u.length===2)Q=u[0].length;else if(u.length>2&&u[0]===""&&C[a-1].textContent!=="")Q=
p.indexOf(k,1);else if(u.length===1){k=k.substring(0,k.length-1);u=p.split(k);if(u.length<=1)return c.push(D),c;P=101}else P===O.length-1&&(Q=p.indexOf(k));if(u.length>=2&&P>100){var B=C[a-1].textContent;B&&typeof B==="string"&&(Q=p.indexOf(k,K2Z(B).length));Q===-1&&(Q=u[0].length)}if(Q!==-1){for(O=Math.floor(Q/g);O>0&&O<D.length;){W+=1;if(W>50*C.length)return c.push(D),c;P=K2Z(D.substring(0,O),X);if(P.length===Q){c.push(D.substring(0,O));D=D.substring(O);p=p.substring(Q);break}else O=P.length<Q?
O+Math.max(1,Math.floor((Q-P.length)/g)):O-Math.max(1,Math.floor((P.length-Q)*g))}break}}}c.push(D);return c};
L23=function(){return x$o++};
m$r=function(D){if(D instanceof HTMLFormElement)return"form";D=D.tagName.toLowerCase();return sb5.test(D)?"div":D};
Nkr=function(D,C){function X(P){return(P=P.exec(C.substring(c)))?(P=P[0],c+=P.length,P):""}
if(C.trim()==="")return C;for(var c=0,W=[];;){X(eTd);if(c>=C.length)break;var p=X(E1F);if(p.slice(-1)===",")p=tLt(D,p.substring(0,p.length-1)),W.push(p);else{var g="";p=tLt(D,p);for(var a=!1;;){var O=C.charAt(c);if(O===""){W.push((p+g).trim());break}else if(a)O===")"&&(a=!1);else if(O===","){c+=1;W.push((p+g).trim());break}else O==="("&&(a=!0);g+=O;c+=1}}}return W.join(", ")};
tLt=function(D,C){return C&&C.trim()!==""?YCm(D,C):C};
YCm=function(D,C){var X=y35.get(D);X||(X=D.createElement("a"),y35.set(D,X));if(!C)C="";else if(C.startsWith("blob:")||C.startsWith("data:"))return C;ff(X,C);return X.href};
n1o=function(D,C,X,c){return c?X==="src"||X==="href"&&(C!=="use"||c[0]!=="#")||X==="xlink:href"&&c[0]!=="#"||X==="background"&&(C==="table"||C==="td"||C==="th")?tLt(D,c):X==="srcset"?Nkr(D,c):X==="style"?$$j(c,YCm(D)):C==="object"&&X==="data"?tLt(D,c):c:c};
wFo=function(D,C){return(D==="video"||D==="audio")&&C==="autoplay"};
F2o=function(D,C,X){try{if(typeof C==="string"){if(D.classList.contains(C))return!0}else for(var c=D.classList.length;c--;)if(C.test(D.classList[c]))return!0;if(X)return D.matches(X)}catch(W){}return!1};
ZWr=function(D,C,X){if(!D)return!1;if(D.nodeType!==D.ELEMENT_NODE)return X?ZWr(TT(D),C,X):!1;for(var c=D.classList.length;c--;)if(C.test(D.classList[c]))return!0;return X?ZWr(TT(D),C,X):!1};
Gg3=function(D,C,X,c){if(D.nodeType===D.ELEMENT_NODE){if(!HH(D).length)return!1}else{if(J0(D)===null)return!1;D=J0(D)}try{if(typeof C==="string")if(c){if(D.closest("."+C))return!0}else{if(D.classList.contains(C))return!0}else if(ZWr(D,C,c))return!0;if(X)if(c){if(D.closest(X))return!0}else if(D.matches(X))return!0}catch(W){}return!1};
VL3=function(D,C,X){var c=D.contentWindow;if(c){var W=!1;try{var p=c.document.readyState}catch(a){return}if(p!=="complete"){var g=setTimeout(function(){W||(C(),W=!0)},X);
D.addEventListener("load",function(){clearTimeout(g);W=!0;C()})}else c.location.href==="about:blank"&&D.src!=="about:blank"&&D.src!==""||setTimeout(C,0),D.addEventListener("load",C)}};
Tkm=function(D,C,X){var c=!1;try{var W=D.sheet}catch(g){return}if(!W){var p=setTimeout(function(){c||(C(),c=!0)},X);
D.addEventListener("load",function(){clearTimeout(p);c=!0;C()})}};
zTF=function(D,C){var X=C.doc,c=C.blockClass,W=C.blockSelector,p=C.needsMask,g=C.inlineStylesheet,a=C.maskInputOptions===void 0?{}:C.maskInputOptions,O=C.maskTextFn,P=C.maskInputFn,k=C.dataURLOptions===void 0?{}:C.dataURLOptions,u=C.inlineImages,Q=C.recordCanvas,B=C.keepIframeSrcFn,K=C.newlyAddedElement===void 0?!1:C.newlyAddedElement,L=C.cssCaptured===void 0?!1:C.cssCaptured;C=C.mirror;C.nodeMetaMap.has(X)?(C=C.getId(X),C=C===1?void 0:C):C=void 0;switch(D.nodeType){case D.DOCUMENT_NODE:return D.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:D.compatMode}:{type:0,childNodes:[]};case D.DOCUMENT_TYPE_NODE:return{type:1,name:D.name,publicId:D.publicId,systemId:D.systemId,rootId:C};case D.ELEMENT_NODE:return HWh(D,{doc:X,blockClass:c,blockSelector:W,inlineStylesheet:g,maskInputOptions:a,maskInputFn:P,dataURLOptions:k,inlineImages:u,recordCanvas:Q,keepIframeSrcFn:B,newlyAddedElement:K,rootId:C});case D.TEXT_NODE:return g=(c=TT(D))&&c.tagName,c="",W=g==="STYLE"?!0:void 0,(g=g==="SCRIPT"?!0:void 0)?
c="SCRIPT_PLACEHOLDER":L||(c=J3W(D),W&&c&&(c=$$j(c,YCm(X)))),!W&&!g&&c&&p&&(c=O?O(c,J0(D)):c.replace(/[\S]/g,"*")),{type:3,textContent:c||"",rootId:C};case D.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:C};case D.COMMENT_NODE:return{type:5,textContent:J3W(D)||"",rootId:C};default:return!1}};
HWh=function(D,C){var X=C.doc,c=C.inlineStylesheet,W=C.maskInputOptions===void 0?{}:C.maskInputOptions,p=C.maskInputFn,g=C.dataURLOptions===void 0?{}:C.dataURLOptions,a=C.inlineImages,O=C.recordCanvas,P=C.keepIframeSrcFn,k=C.newlyAddedElement===void 0?!1:C.newlyAddedElement,u=C.rootId;C=F2o(D,C.blockClass,C.blockSelector);for(var Q=m$r(D),B={},K=D.attributes.length,L=0;L<K;L++){var t=D.attributes[L];wFo(Q,t.name)||(B[t.name]=n1o(X,Q,t.name.toLowerCase(),t.value))}Q==="link"&&c&&(c=Array.from(X.styleSheets).find(function(H){return H.href===
D.href}),K=null,c&&(K=Pat(c)),K&&(delete B.rel,delete B.href,B._cssText=K));
Q==="style"&&D.sheet&&(c=Pat(D.sheet))&&(D.childNodes.length>1&&(c=hTr(c,D).join("/* rr_split */")),B._cssText=c);if(Q==="input"||Q==="textarea"||Q==="select")c=D.value,K=D.checked,B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&c?B.value=v1r({element:D,type:kgJ(D),tagName:Q,value:c,maskInputOptions:W,maskInputFn:p}):K&&(B.checked=K);Q==="option"&&(D.selected&&!W.select?B.selected=!0:delete B.selected);Q==="dialog"&&D.open&&(B.rr_open_mode=D.matches("dialog:modal")?"modal":
"non-modal");Q==="canvas"&&O&&(D.__context==="2d"?iWr(D)||(B.rr_dataURL=D.toDataURL(g.type,g.quality)):"__context"in D||(W=D.toDataURL(g.type,g.quality),p=X.createElement("canvas"),p.width=D.width,p.height=D.height,p=p.toDataURL(g.type,g.quality),W!==p&&(B.rr_dataURL=W)));if(Q==="img"&&a){zT||(zT=X.createElement("canvas"),jbj=zT.getContext("2d"));var Y=D.currentSrc||D.getAttribute("src")||"<unknown-src>",y=D.crossOrigin,J=function(){D.removeEventListener("load",J);try{zT.width=D.naturalWidth,zT.height=
D.naturalHeight,jbj.drawImage(D,0,0),B.rr_dataURL=zT.toDataURL(g.type,g.quality)}catch(H){if(D.crossOrigin!=="anonymous"){D.crossOrigin="anonymous";D.complete&&D.naturalWidth!==0?J():D.addEventListener("load",J);return}console.warn("Cannot inline img src="+Y+"! Error: "+H)}D.crossOrigin==="anonymous"&&(y?B.crossOrigin=y:D.removeAttribute("crossorigin"))};
D.complete&&D.naturalWidth!==0?J():D.addEventListener("load",J)}if(Q==="audio"||Q==="video")X=B,X.rr_mediaState=D.paused?"paused":"played",X.rr_mediaCurrentTime=D.currentTime,X.rr_mediaPlaybackRate=D.playbackRate,X.rr_mediaMuted=D.muted,X.rr_mediaLoop=D.loop,X.rr_mediaVolume=D.volume;k||(D.scrollLeft&&(B.rr_scrollLeft=D.scrollLeft),D.scrollTop&&(B.rr_scrollTop=D.scrollTop));C&&(k=D.getBoundingClientRect(),B={class:B.class,rr_width:k.width+"px",rr_height:k.height+"px"});Q!=="iframe"||P(B.src)||(D.contentDocument||
(B.rr_src=B.src),delete B.src);var T;try{customElements.get(Q)&&(T=!0)}catch(H){}return{type:2,tagName:Q,attributes:B,childNodes:[],isSVG:!(D.tagName!=="svg"&&!D.ownerSVGElement)||void 0,needBlock:C,rootId:u,isCustom:T}};
jk=function(D){return D===void 0||D===null?"":D.toLowerCase()};
MLJ=function(D,C){return C.comment&&D.type===5||D.type===2&&(C.script&&(D.tagName==="script"||D.tagName==="link"&&(D.attributes.rel==="preload"&&D.attributes.as==="script"||D.attributes.rel==="modulepreload")||D.tagName==="link"&&D.attributes.rel==="prefetch"&&typeof D.attributes.href==="string"&&unZ(D.attributes.href)==="js")||C.headFavicon&&(D.tagName==="link"&&D.attributes.rel==="shortcut icon"||D.tagName==="meta"&&(jk(D.attributes.name).match(/^msapplication-tile(image|color)$/)||jk(D.attributes.name)===
"application-name"||jk(D.attributes.rel)==="icon"||jk(D.attributes.rel)==="apple-touch-icon"||jk(D.attributes.rel)==="shortcut icon"))||D.tagName==="meta"&&(C.headMetaDescKeywords&&jk(D.attributes.name).match(/^description|keywords$/)||C.headMetaSocial&&(jk(D.attributes.property).match(/^(og|twitter|fb):/)||jk(D.attributes.name).match(/^(og|twitter):/)||jk(D.attributes.name)==="pinterest")||C.headMetaRobots&&(jk(D.attributes.name)==="robots"||jk(D.attributes.name)==="googlebot"||jk(D.attributes.name)===
"bingbot")||C.headMetaHttpEquiv&&D.attributes["http-equiv"]!==void 0||C.headMetaAuthorship&&(jk(D.attributes.name)==="author"||jk(D.attributes.name)==="generator"||jk(D.attributes.name)==="framework"||jk(D.attributes.name)==="publisher"||jk(D.attributes.name)==="progid"||jk(D.attributes.property).match(/^article:/)||jk(D.attributes.property).match(/^product:/))||C.headMetaVerification&&(jk(D.attributes.name)==="google-site-verification"||jk(D.attributes.name)==="yandex-verification"||jk(D.attributes.name)===
"csrf-token"||jk(D.attributes.name)==="p:domain_verify"||jk(D.attributes.name)==="verify-v1"||jk(D.attributes.name)==="verification"||jk(D.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
MO=function(D,C){var X=C.doc,c=C.mirror,W=C.blockClass,p=C.blockSelector,g=C.maskTextClass,a=C.maskTextSelector,O=C.skipChild===void 0?!1:C.skipChild,P=C.inlineStylesheet===void 0?!0:C.inlineStylesheet,k=C.maskInputOptions===void 0?{}:C.maskInputOptions,u=C.maskTextFn,Q=C.maskInputFn,B=C.slimDOMOptions,K=C.dataURLOptions===void 0?{}:C.dataURLOptions,L=C.inlineImages===void 0?!1:C.inlineImages,t=C.recordCanvas===void 0?!1:C.recordCanvas,Y=C.onSerialize,y=C.onIframeLoad,J=C.iframeLoadTimeout===void 0?
5E3:C.iframeLoadTimeout,T=C.onStylesheetLoad,H=C.stylesheetLoadTimeout===void 0?5E3:C.stylesheetLoadTimeout,q=C.keepIframeSrcFn===void 0?function(){return!1}:C.keepIframeSrcFn,R=C.newlyAddedElement===void 0?!1:C.newlyAddedElement,ph=C.cssCaptured===void 0?!1:C.cssCaptured,Om=C.needsMask,xj=C.preserveWhiteSpace===void 0?!0:C.preserveWhiteSpace;
Om||(Om=Gg3(D,g,a,Om===void 0));var Bo=zTF(D,{doc:X,mirror:c,blockClass:W,blockSelector:p,needsMask:Om,inlineStylesheet:P,maskInputOptions:k,maskTextFn:u,maskInputFn:Q,dataURLOptions:K,inlineImages:L,recordCanvas:t,keepIframeSrcFn:q,newlyAddedElement:R,cssCaptured:ph});if(!Bo)return console.warn(D,"not serialized"),null;R=c.nodeMetaMap.has(D)?c.getId(D):MLJ(Bo,B)||!xj&&Bo.type===3&&!Bo.textContent.replace(/^\s+|\s+$/gm,"").length?-2:x$o++;C=Object.assign(Bo,{id:R});c.add(D,C);if(R===-2)return null;
Y&&Y(D);R=!O;C.type===2&&(R=R&&!C.needBlock,delete C.needBlock,(ph=Z4(D))&&Vk(ph)&&(C.isShadowHost=!0));if((C.type===0||C.type===2)&&R){B.headWhitespace&&C.type===2&&C.tagName==="head"&&(xj=!1);O={doc:X,mirror:c,blockClass:W,blockSelector:p,needsMask:Om,maskTextClass:g,maskTextSelector:a,skipChild:O,inlineStylesheet:P,maskInputOptions:k,maskTextFn:u,maskInputFn:Q,slimDOMOptions:B,dataURLOptions:K,inlineImages:L,recordCanvas:t,preserveWhiteSpace:xj,onSerialize:Y,onIframeLoad:y,iframeLoadTimeout:J,
onStylesheetLoad:T,stylesheetLoadTimeout:H,keepIframeSrcFn:q,cssCaptured:!1};if(C.type!==2||C.tagName!=="textarea"||C.attributes.value===void 0)for(C.type===2&&C.attributes._cssText!==void 0&&typeof C.attributes._cssText==="string"&&(O.cssCaptured=!0),R=_.U(Array.from(HH(D))),ph=R.next();!ph.done;ph=R.next())(ph=MO(ph.value,O))&&C.childNodes.push(ph);R=null;if(D.nodeType===D.ELEMENT_NODE&&(R=Z4(D))){ph=_.U(Array.from(HH(R)));for(var r5=ph.next();!r5.done;r5=ph.next())if(r5=MO(r5.value,O))Vk(R)&&(r5.isShadow=
!0),C.childNodes.push(r5)}}(O=TT(D))&&GT(O)&&Vk(O)&&(C.isShadow=!0);C.type===2&&C.tagName==="iframe"&&VL3(D,function(){var Fd=D.contentDocument;Fd&&y&&(Fd=MO(Fd,{doc:Fd,mirror:c,blockClass:W,blockSelector:p,needsMask:Om,maskTextClass:g,maskTextSelector:a,skipChild:!1,inlineStylesheet:P,maskInputOptions:k,maskTextFn:u,maskInputFn:Q,slimDOMOptions:B,dataURLOptions:K,inlineImages:L,recordCanvas:t,preserveWhiteSpace:xj,onSerialize:Y,onIframeLoad:y,iframeLoadTimeout:J,onStylesheetLoad:T,stylesheetLoadTimeout:H,
keepIframeSrcFn:q}))&&y(D,Fd)},J);
C.type===2&&C.tagName==="link"&&typeof C.attributes.rel==="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href==="string"&&unZ(C.attributes.href)==="css")&&Tkm(D,function(){if(T){var Fd=MO(D,{doc:X,mirror:c,blockClass:W,blockSelector:p,needsMask:Om,maskTextClass:g,maskTextSelector:a,skipChild:!1,inlineStylesheet:P,maskInputOptions:k,maskTextFn:u,maskInputFn:Q,slimDOMOptions:B,dataURLOptions:K,inlineImages:L,recordCanvas:t,preserveWhiteSpace:xj,onSerialize:Y,
onIframeLoad:y,iframeLoadTimeout:J,onStylesheetLoad:T,stylesheetLoadTimeout:H,keepIframeSrcFn:q});Fd&&T(D,Fd)}},H);
return C};
qC5=function(D){var C=document;D=D||{};var X=D.maskAllInputs===void 0?!1:D.maskAllInputs,c=D.slimDOM===void 0?!1:D.slimDOM;return MO(C,{doc:C,mirror:D.mirror===void 0?new qO:D.mirror,blockClass:D.blockClass===void 0?"rr-block":D.blockClass,blockSelector:D.blockSelector===void 0?null:D.blockSelector,maskTextClass:D.maskTextClass===void 0?"rr-mask":D.maskTextClass,maskTextSelector:D.maskTextSelector===void 0?null:D.maskTextSelector,skipChild:!1,inlineStylesheet:D.inlineStylesheet===void 0?!0:D.inlineStylesheet,
maskInputOptions:X===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:X===!1?{password:!0}:X,maskTextFn:D.maskTextFn,maskInputFn:D.maskInputFn,slimDOMOptions:c===!0||c==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:c==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:c===!1?{}:c,dataURLOptions:D.dataURLOptions,
inlineImages:D.inlineImages===void 0?!1:D.inlineImages,recordCanvas:D.recordCanvas===void 0?!1:D.recordCanvas,preserveWhiteSpace:D.preserveWhiteSpace,onSerialize:D.onSerialize,onIframeLoad:D.onIframeLoad,iframeLoadTimeout:D.iframeLoadTimeout,onStylesheetLoad:D.onStylesheetLoad,stylesheetLoadTimeout:D.stylesheetLoadTimeout,keepIframeSrcFn:D.keepIframeSrcFn===void 0?function(){return!1}:D.keepIframeSrcFn,
newlyAddedElement:!1})};
fl=function(D,C,X){X=X===void 0?document:X;var c={capture:!0,passive:!0};X.addEventListener(D,C,c);return function(){return X.removeEventListener(D,C,c)}};
dr=function(D,C,X){X=X===void 0?{}:X;var c=null,W=0;return function(){var p=_.MJ.apply(0,arguments),g=Date.now();W||X.leading!==!1||(W=g);var a=C-(g-W),O=this;a<=0||a>C?(c&&(clearTimeout(c),c=null),W=g,D.apply(O,p)):c||X.trailing===!1||(c=setTimeout(function(){W=X.leading===!1?0:Date.now();c=null;D.apply(O,p)},a))}};
fZJ=function(D,C,X,c,W){W=W===void 0?window:W;var p=W.Object.getOwnPropertyDescriptor(D,C);W.Object.defineProperty(D,C,c?X:{set:function(g){var a=this;setTimeout(function(){X.set.call(a,g)},0);
p&&p.set&&p.set.call(this,g)}});
return function(){return fZJ(D,C,p||{},!0)}};
d$r=function(D){var C=D.document,X,c,W,p;return{left:C.scrollingElement?C.scrollingElement.scrollLeft:D.pageXOffset!==void 0?D.pageXOffset:C.documentElement.scrollLeft||(C==null?void 0:C.body)&&((X=J0(C.body))==null?void 0:X.scrollLeft)||(C==null?void 0:(c=C.body)==null?void 0:c.scrollLeft)||0,top:C.scrollingElement?C.scrollingElement.scrollTop:D.pageYOffset!==void 0?D.pageYOffset:(C==null?void 0:C.documentElement.scrollTop)||(C==null?void 0:C.body)&&((W=J0(C.body))==null?void 0:W.scrollTop)||(C==
null?void 0:(p=C.body)==null?void 0:p.scrollTop)||0}};
RTd=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
lZW=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
Dqm=function(D){return D?D.nodeType===D.ELEMENT_NODE?D:J0(D):null};
RS=function(D,C,X,c){if(!D)return!1;D=Dqm(D);if(!D)return!1;try{if(typeof C==="string"){if(D.classList.contains(C)||c&&D.closest("."+C)!==null)return!0}else if(ZWr(D,C,c))return!0}catch(W){}return X&&(D.matches(X)||c&&D.closest(X)!==null)?!0:!1};
CFo=function(D,C,X){return D.tagName==="TITLE"&&X.headTitleMutations?!0:C.getId(D)===-2};
XPW=function(D,C){if(GT(D))return!1;var X=C.getId(D);return C.has(X)?(X=TT(D))&&X.nodeType===D.DOCUMENT_NODE?!1:X?XPW(X,C):!0:!0};
cs5=function(){var D=D===void 0?window:D;"NodeList"in D&&!D.NodeList.prototype.forEach&&(D.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in D&&!D.DOMTokenList.prototype.forEach&&(D.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
oxd=function(D,C){return!(D.nodeName!=="LINK"||D.nodeType!==D.ELEMENT_NODE||!D.getAttribute||D.getAttribute("rel")!=="stylesheet"||!C.nodeMetaMap.get(D))};
pPF=function(D){var C=null,X;"getRootNode"in D&&((X=WNZ(D))==null?void 0:X.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&F2(WNZ(D))&&(C=F2(WNZ(D)));return C};
S9J=function(D){var C=D.ownerDocument;if(C){if(!(C=IZJ(C,"contains")(D)))if(C=D.ownerDocument){for(var X;X=pPF(D);)D=X;C=IZJ(C,"contains")(D)}else C=!1}else C=!1;return C};
UqW=function(D,C){D.delete(C);HH(C).forEach(function(X){return UqW(D,X)})};
gxh=function(D,C){for(var X=[D];X.length;)D=X.pop(),C.has(D)||(C.add(D),HH(D).forEach(function(c){return X.push(c)}))};
aso=function(D,C){D.size===0?D=!1:D=(C=TT(C))?D.has(C):!1;return D};
OVt=function(D,C){return D.size===0?!1:Is5(D,C)};
Is5=function(D,C){return(C=TT(C))?D.has(C)?!0:Is5(D,C):!1};
lQ=function(D){try{if("composedPath"in D){var C=D.composedPath();if(C.length)return C[0]}else if("path"in D&&D.path.length)return D.path[0]}catch(X){}return D&&D.target};
PFd=function(D,C){var X=new AsZ;Du.push(X);X.init(D);D=new (U$Z("MutationObserver").constructor)(CN(X.processMutations.bind(X)));D.observe(C,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return D};
vxt=function(D){var C=D.mousemoveCb;var X=D.sampling;var c=D.doc;var W=D.mirror;if(X.mousemove===!1)return function(){};
var p=[],g,a=dr(CN(function(P){var k=Date.now()-g;C(p.map(function(u){u.timeOffset-=k;return u}),P);
p=[];g=null}),typeof X.mousemoveCallback==="number"?X.mousemoveCallback:500);
D=CN(dr(CN(function(P){var k=lQ(P),u=P.changedTouches?P.changedTouches[0]:P,Q=u.clientX;u=u.clientY;g||(g=$qZ());p.push({x:Q,y:u,id:W.getId(k),timeOffset:$qZ()-g});a(typeof DragEvent!=="undefined"&&P instanceof DragEvent?12:P instanceof MouseEvent?1:6)}),typeof X.mousemove==="number"?X.mousemove:50,{trailing:!1}));
var O=[fl("mousemove",D,c),fl("touchmove",D,c),fl("drag",D,c)];return CN(function(){O.forEach(function(P){return P()})})};
iVj=function(D){var C=D.mouseInteractionCb;var X=D.doc;var c=D.mirror;var W=D.blockClass;var p=D.blockSelector;D=D.sampling;if(D.mouseInteraction===!1)return function(){};
var g=D.mouseInteraction===!0||D.mouseInteraction===void 0?{}:D.mouseInteraction,a=[],O=null,P=function(k){return function(u){var Q=lQ(u);if(!RS(Q,W,p,!0)){var B=null,K=k;if("pointerType"in u){switch(u.pointerType){case "mouse":B=0;break;case "touch":B=2;break;case "pen":B=1}B===2&&(Xo[k]===1?K="TouchStart":Xo[k]===0&&(K="TouchEnd"))}else u.changedTouches&&(B=2);if(B!==null){if(O=B,K.startsWith("Touch")&&B===2||K.startsWith("Mouse")&&B===0)B=null}else Xo[k]===2&&(B=O,O=null);if(u=u.changedTouches?
u.changedTouches[0]:u)Q=c.getId(Q),CN(C)(Object.assign({},{type:Xo[K],id:Q,x:u.clientX,y:u.clientY},B!==null&&{pointerType:B}))}}};
Object.keys(Xo).filter(function(k){return Number.isNaN(Number(k))&&!k.endsWith("_Departed")&&g[k]!==!1}).forEach(function(k){var u=k.toLowerCase(),Q=P(k);
if(window.PointerEvent)switch(Xo[k]){case 1:case 0:u=u.replace("mouse","pointer");break;case 7:case 9:return}a.push(fl(u,Q,X))});
return CN(function(){a.forEach(function(k){return k()})})};
kP5=function(D){var C=D.scrollCb;var X=D.doc;var c=D.mirror;var W=D.blockClass;var p=D.blockSelector;return fl("scroll",CN(dr(CN(function(g){var a=lQ(g);a&&!RS(a,W,p,!0)&&(g=c.getId(a),a===X&&X.defaultView?(a=d$r(X.defaultView),C({id:g,x:a.left,y:a.top})):C({id:g,x:a.scrollLeft,y:a.scrollTop}))}),D.sampling.scroll||100)),X)};
u9Z=function(D,C){var X=D.viewportResizeCb;var c=-1,W=-1;return fl("resize",CN(dr(CN(function(){var p=RTd(),g=lZW();if(c!==p||W!==g)X({width:Number(g),height:Number(p)}),c=p,W=g}),200)),C.win)};
bVR=function(D){function C(t){var Y=lQ(t),y=t.isTrusted,J=Y&&Y.tagName;Y&&J==="OPTION"&&(Y=J0(Y));if(!(!Y||!J||QJm.indexOf(J)<0||RS(Y,g,a,!0)||Y.classList.contains(O)||P&&Y.matches(P))){var T=Y.value,H=!1;t=kgJ(Y)||"";if(t==="radio"||t==="checkbox")H=Y.checked;else if(k[J.toLowerCase()]||k[t])T=v1r({element:Y,maskInputOptions:k,tagName:J,type:t,value:T,maskInputFn:u});X(Y,B?{text:T,isChecked:H,userTriggered:y}:{text:T,isChecked:H});y=Y.name;t==="radio"&&y&&H&&W.querySelectorAll('input[type="radio"][name="'+
y+'"]').forEach(function(q){if(q!==Y){var R=q.value;X(q,B?{text:R,isChecked:!H,userTriggered:!1}:{text:R,isChecked:!H})}})}}
function X(t,Y){var y=BtR.get(t);y&&y.text===Y.text&&y.isChecked===Y.isChecked||(BtR.set(t,Y),t=p.getId(t),CN(c)(Object.assign({},Y,{id:t})))}
var c=D.inputCb;var W=D.doc;var p=D.mirror;var g=D.blockClass;var a=D.blockSelector;var O=D.ignoreClass;var P=D.ignoreSelector;var k=D.maskInputOptions;var u=D.maskInputFn;var Q=D.sampling;var B=D.userTriggeredOnInput;var K=(Q.input==="last"?["change"]:["input","change"]).map(function(t){return fl(t,CN(C),W)}),L=W.defaultView;
if(!L)return function(){K.forEach(function(t){return t()})};
D=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value");Q=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];D&&D.set&&K.push.apply(K,_.VB(Q.map(function(t){return fZJ(t[0],t[1],{set:function(){CN(C)({target:this,isTrusted:!1})}},!1,L)})));
return CN(function(){K.forEach(function(t){return t()})})};
KNh=function(D){var C=[],X,c,W,p;rsm("CSSGroupingRule")&&((X=D.parentRule)==null?void 0:(c=X.constructor)==null?void 0:c.name)==="CSSGroupingRule"||rsm("CSSMediaRule")&&D.parentRule instanceof CSSMediaRule||rsm("CSSSupportsRule")&&D.parentRule instanceof CSSSupportsRule||rsm("CSSConditionRule")&&((W=D.parentRule)==null?void 0:(p=W.constructor)==null?void 0:p.name)==="CSSConditionRule"?(D=Array.from(D.parentRule.cssRules).indexOf(D),C.unshift(D)):D.parentStyleSheet&&(D=Array.from(D.parentStyleSheet.cssRules).indexOf(D),
C.unshift(D));return C};
c7=function(D,C,X){var c,W;if(!D)return{};D.ownerNode?c=C.getId(D.ownerNode):W=X.getId(D);return{styleId:W,id:c}};
xqW=function(D,C){var X=D.styleSheetRuleCb;var c=D.mirror;var W=D.stylesheetManager;var p=C.win;if(!p.CSSStyleSheet||!p.CSSStyleSheet.prototype)return function(){};
var g=p.CSSStyleSheet.prototype.insertRule;p.CSSStyleSheet.prototype.insertRule=new oB(g,{apply:CN(function(Q,B,K){var L=_.U(K),t=L.next().value;L=L.next().value;var Y=c7(B,c,W.styleMirror),y=Y.id;Y=Y.styleId;(y&&y!==-1||Y&&Y!==-1)&&X({id:y,styleId:Y,adds:[{rule:t,index:L}]});return Q.apply(B,K)})});
p.CSSStyleSheet.prototype.addRule=function(Q,B,K){K=K===void 0?this.cssRules.length:K;return p.CSSStyleSheet.prototype.insertRule.apply(this,[Q+" { "+B+" }",K])};
var a=p.CSSStyleSheet.prototype.deleteRule;p.CSSStyleSheet.prototype.deleteRule=new oB(a,{apply:CN(function(Q,B,K){var L=_.U(K).next().value,t=c7(B,c,W.styleMirror),Y=t.id;t=t.styleId;(Y&&Y!==-1||t&&t!==-1)&&X({id:Y,styleId:t,removes:[{index:L}]});return Q.apply(B,K)})});
p.CSSStyleSheet.prototype.removeRule=function(Q){return p.CSSStyleSheet.prototype.deleteRule.apply(this,[Q])};
if(p.CSSStyleSheet.prototype.replace){var O=p.CSSStyleSheet.prototype.replace;p.CSSStyleSheet.prototype.replace=new oB(O,{apply:CN(function(Q,B,K){var L=_.U(K).next().value,t=c7(B,c,W.styleMirror),Y=t.id;t=t.styleId;(Y&&Y!==-1||t&&t!==-1)&&X({id:Y,styleId:t,replace:L});return Q.apply(B,K)})})}if(p.CSSStyleSheet.prototype.replaceSync){var P=p.CSSStyleSheet.prototype.replaceSync;
p.CSSStyleSheet.prototype.replaceSync=new oB(P,{apply:CN(function(Q,B,K){var L=_.U(K).next().value,t=c7(B,c,W.styleMirror),Y=t.id;t=t.styleId;(Y&&Y!==-1||t&&t!==-1)&&X({id:Y,styleId:t,replaceSync:L});return Q.apply(B,K)})})}var k={};
hVm("CSSGroupingRule")?k.CSSGroupingRule=p.CSSGroupingRule:(hVm("CSSMediaRule")&&(k.CSSMediaRule=p.CSSMediaRule),hVm("CSSConditionRule")&&(k.CSSConditionRule=p.CSSConditionRule),hVm("CSSSupportsRule")&&(k.CSSSupportsRule=p.CSSSupportsRule));var u={};Object.entries(k).forEach(function(Q){var B=_.U(Q);Q=B.next().value;B=B.next().value;u[Q]={insertRule:B.prototype.insertRule,deleteRule:B.prototype.deleteRule};B.prototype.insertRule=new oB(u[Q].insertRule,{apply:CN(function(K,L,t){var Y=_.U(t),y=Y.next().value;
Y=Y.next().value;var J=c7(L.parentStyleSheet,c,W.styleMirror),T=J.id;J=J.styleId;(T&&T!==-1||J&&J!==-1)&&X({id:T,styleId:J,adds:[{rule:y,index:[].concat(_.VB(KNh(L)),[Y||0])}]});return K.apply(L,t)})});
B.prototype.deleteRule=new oB(u[Q].deleteRule,{apply:CN(function(K,L,t){var Y=_.U(t).next().value,y=c7(L.parentStyleSheet,c,W.styleMirror),J=y.id;y=y.styleId;(J&&J!==-1||y&&y!==-1)&&X({id:J,styleId:y,removes:[{index:[].concat(_.VB(KNh(L)),[Y])}]});return K.apply(L,t)})})});
return CN(function(){p.CSSStyleSheet.prototype.insertRule=g;p.CSSStyleSheet.prototype.deleteRule=a;O&&(p.CSSStyleSheet.prototype.replace=O);P&&(p.CSSStyleSheet.prototype.replaceSync=P);Object.entries(k).forEach(function(Q){var B=_.U(Q);Q=B.next().value;B=B.next().value;B.prototype.insertRule=u[Q].insertRule;B.prototype.deleteRule=u[Q].deleteRule})})};
sJd=function(D,C){var X=D.mirror;var c=D.stylesheetManager;var W=null;W=C.nodeName==="#document"?X.getId(C):X.getId(F2(C));var p,g,a;D=C.nodeName==="#document"?(p=C.defaultView)==null?void 0:p.Document:(g=C.ownerDocument)==null?void 0:(a=g.defaultView)==null?void 0:a.ShadowRoot;var O=(D==null?0:D.prototype)?Object.getOwnPropertyDescriptor(D==null?void 0:D.prototype,"adoptedStyleSheets"):void 0;if(W===null||W===-1||!D||!O)return function(){};
Object.defineProperty(C,"adoptedStyleSheets",{configurable:O.configurable,enumerable:O.enumerable,get:function(){var P;return(P=O.get)==null?void 0:P.call(this)},
set:function(P){var k,u=(k=O.set)==null?void 0:k.call(this,P);if(W!==null&&W!==-1)try{LNm(c,P,W)}catch(Q){}return u}});
return CN(function(){Object.defineProperty(C,"adoptedStyleSheets",{configurable:O.configurable,enumerable:O.enumerable,get:O.get,set:O.set})})};
mqj=function(D,C){var X=D.styleDeclarationCb;var c=D.mirror;var W=D.ignoreCSSAttributes;var p=D.stylesheetManager;var g=C.win;var a=g.CSSStyleDeclaration.prototype.setProperty;g.CSSStyleDeclaration.prototype.setProperty=new oB(a,{apply:CN(function(P,k,u){var Q=_.U(u),B=Q.next().value,K=Q.next().value;Q=Q.next().value;if(W.has(B))return a.apply(k,[B,K,Q]);var L,t=c7((L=k.parentRule)==null?void 0:L.parentStyleSheet,c,p.styleMirror);L=t.id;t=t.styleId;(L&&L!==-1||t&&t!==-1)&&X({id:L,styleId:t,set:{property:B,
value:K,priority:Q},index:KNh(k.parentRule)});return P.apply(k,u)})});
var O=g.CSSStyleDeclaration.prototype.removeProperty;g.CSSStyleDeclaration.prototype.removeProperty=new oB(O,{apply:CN(function(P,k,u){var Q=_.U(u).next().value;if(W.has(Q))return O.apply(k,[Q]);var B,K=c7((B=k.parentRule)==null?void 0:B.parentStyleSheet,c,p.styleMirror);B=K.id;K=K.styleId;(B&&B!==-1||K&&K!==-1)&&X({id:B,styleId:K,remove:{property:Q},index:KNh(k.parentRule)});return P.apply(k,u)})});
return CN(function(){g.CSSStyleDeclaration.prototype.setProperty=a;g.CSSStyleDeclaration.prototype.removeProperty=O})};
eVZ=function(D){var C=D.mediaInteractionCb;var X=D.blockClass;var c=D.blockSelector;var W=D.mirror;var p=D.sampling;D=D.doc;var g=CN(function(O){return dr(CN(function(P){if((P=lQ(P))&&!RS(P,X,c,!0)){var k=P.currentTime,u=P.volume,Q=P.muted,B=P.playbackRate,K=P.loop;C({type:O,id:W.getId(P),currentTime:k,volume:u,muted:Q,playbackRate:B,loop:K})}}),p.media||500)}),a=[fl("play",g(0),D),
fl("pause",g(1),D),fl("seeked",g(2),D),fl("volumechange",g(3),D),fl("ratechange",g(4),D)];return CN(function(){a.forEach(function(O){return O()})})};
ExW=function(D){var C=D.fontCb;D=D.doc;var X=D.defaultView;if(!X)return function(){};
var c=[],W=new WeakMap,p=X.FontFace;X.FontFace=function(g,a,O){var P=new p(g,a,O);W.set(P,{family:g,buffer:typeof a!=="string",descriptors:O,fontSource:typeof a==="string"?a:JSON.stringify(Array.from(new Uint8Array(a)))});return P};
D=wr(D.fonts,"add",function(g){return function(a){setTimeout(CN(function(){var O=W.get(a);O&&(C(O),W.delete(a))}),0);
return g.apply(this,[a])}});
c.push(function(){X.FontFace=p});
c.push(D);return CN(function(){c.forEach(function(g){return g()})})};
tPZ=function(D){var C=D.doc,X=D.mirror,c=D.blockClass,W=D.blockSelector,p=D.selectionCb,g=!0;D=CN(function(){var a=C.getSelection();if(a&&!(g&&(a==null?0:a.isCollapsed))){g=a.isCollapsed||!1;for(var O=[],P=a.rangeCount||0,k=0;k<P;k++){var u=a.getRangeAt(k),Q=u.startContainer,B=u.startOffset,K=u.endContainer;u=u.endOffset;RS(Q,c,W,!0)||RS(K,c,W,!0)||O.push({start:X.getId(Q),startOffset:B,end:X.getId(K),endOffset:u})}p({ranges:O})}});
D();return fl("selectionchange",D)};
Nt3=function(D){var C=D.doc;var X=D.customElementCb;return(D=C.defaultView)&&D.customElements?wr(D.customElements,"define",function(c){return function(W,p,g){try{X({define:{name:W}})}catch(a){console.warn("Custom element callback failed for "+W)}return c.apply(this,[W,p,g])}}):function(){}};
Y9r=function(D,C){var X=D.mutationCb,c=D.mousemoveCb,W=D.mouseInteractionCb,p=D.scrollCb,g=D.viewportResizeCb,a=D.inputCb,O=D.mediaInteractionCb,P=D.styleSheetRuleCb,k=D.styleDeclarationCb,u=D.canvasMutationCb,Q=D.fontCb,B=D.selectionCb,K=D.customElementCb;D.mutationCb=function(){var L=_.MJ.apply(0,arguments);C.mutation&&C.mutation.apply(C,_.VB(L));X.apply(null,_.VB(L))};
D.mousemoveCb=function(){var L=_.MJ.apply(0,arguments);C.mousemove&&C.mousemove.apply(C,_.VB(L));c.apply(null,_.VB(L))};
D.mouseInteractionCb=function(){var L=_.MJ.apply(0,arguments);C.mouseInteraction&&C.mouseInteraction.apply(C,_.VB(L));W.apply(null,_.VB(L))};
D.scrollCb=function(){var L=_.MJ.apply(0,arguments);C.scroll&&C.scroll.apply(C,_.VB(L));p.apply(null,_.VB(L))};
D.viewportResizeCb=function(){var L=_.MJ.apply(0,arguments);C.viewportResize&&C.viewportResize.apply(C,_.VB(L));g.apply(null,_.VB(L))};
D.inputCb=function(){var L=_.MJ.apply(0,arguments);C.input&&C.input.apply(C,_.VB(L));a.apply(null,_.VB(L))};
D.mediaInteractionCb=function(){var L=_.MJ.apply(0,arguments);C.mediaInteaction&&C.mediaInteaction.apply(C,_.VB(L));O.apply(null,_.VB(L))};
D.styleSheetRuleCb=function(){var L=_.MJ.apply(0,arguments);C.styleSheetRule&&C.styleSheetRule.apply(C,_.VB(L));P.apply(null,_.VB(L))};
D.styleDeclarationCb=function(){var L=_.MJ.apply(0,arguments);C.styleDeclaration&&C.styleDeclaration.apply(C,_.VB(L));k.apply(null,_.VB(L))};
D.canvasMutationCb=function(){var L=_.MJ.apply(0,arguments);C.canvasMutation&&C.canvasMutation.apply(C,_.VB(L));u.apply(null,_.VB(L))};
D.fontCb=function(){var L=_.MJ.apply(0,arguments);C.font&&C.font.apply(C,_.VB(L));Q.apply(null,_.VB(L))};
D.selectionCb=function(){var L=_.MJ.apply(0,arguments);C.selection&&C.selection.apply(C,_.VB(L));B.apply(null,_.VB(L))};
D.customElementCb=function(){var L=_.MJ.apply(0,arguments);C.customElement&&C.customElement.apply(C,_.VB(L));K.apply(null,_.VB(L))}};
yst=function(D,C){C=C===void 0?{}:C;var X=D.doc.defaultView;if(!X)return function(){};
Y9r(D,C);var c;D.recordDOM&&(c=PFd(D,D.doc));var W=vxt(D),p=iVj(D),g=kP5(D),a=u9Z(D,{win:X}),O=bVR(D),P=eVZ(D),k=function(){},u=function(){},Q=function(){},B=function(){};
D.recordDOM&&(k=xqW(D,{win:X}),u=sJd(D,D.doc),Q=mqj(D,{win:X}),D.collectFonts&&(B=ExW(D)));var K=tPZ(D),L=Nt3(D),t=[];D=_.U(D.plugins);for(C=D.next();!C.done;C=D.next())C=C.value,t.push(C.observer(C.callback,X,C.options));return CN(function(){Du.forEach(function(y){return y.reset()});
var Y;(Y=c)==null||Y.disconnect();W();p();g();a();O();P();k();u();Q();B();K();L();t.forEach(function(y){return y()})})};
rsm=function(D){return typeof window[D]!=="undefined"};
hVm=function(D){return!!(typeof window[D]!=="undefined"&&window[D].prototype&&"insertRule"in window[D].prototype&&"deleteRule"in window[D].prototype)};
nxR=function(D){D=new Uint8Array(D);for(var C="",X=0;X<D.byteLength;X++)C+=String.fromCharCode(D[X]);return btoa(C)};
wPn=function(D,C,X){if(D instanceof Array)return D.map(function(W){return wPn(W,C,X)});
if(D!==null){if(D instanceof Float32Array||D instanceof Float64Array||D instanceof Int32Array||D instanceof Uint32Array||D instanceof Uint8Array||D instanceof Uint16Array||D instanceof Int16Array||D instanceof Int8Array||D instanceof Uint8ClampedArray)return{rr_type:D.constructor.name,args:[Object.values(D)]};if(D instanceof ArrayBuffer){var c=D.constructor.name;D=nxR(D);return{rr_type:c,base64:D}}if(D instanceof DataView)return{rr_type:D.constructor.name,args:[wPn(D.buffer,C,X),D.byteOffset,D.byteLength]};
if(D instanceof HTMLImageElement)return{rr_type:D.constructor.name,src:D.src};if(D instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:D.toDataURL()};if(D instanceof ImageData)return{rr_type:D.constructor.name,args:[wPn(D.data,C,X),D.width,D.height]};if(FNt(D,C)||typeof D==="object")return c=D.constructor.name,D=ZVW(D,C,X),{rr_type:c,index:D}}return D};
VPZ=function(D,C,X,c){for(var W=[],p=_.U(Object.getOwnPropertyNames(C.CanvasRenderingContext2D.prototype)),g=p.next(),a={};!g.done;a={prop$jscomp$58:void 0},g=p.next()){a.prop$jscomp$58=g.value;try{if(typeof C.CanvasRenderingContext2D.prototype[a.prop$jscomp$58]==="function"){var O=wr(C.CanvasRenderingContext2D.prototype,a.prop$jscomp$58,function(P){return function(k){return function(){var u=_.MJ.apply(0,arguments),Q=this;RS(this.canvas,X,c,!0)||setTimeout(function(){var B=GP3(u,C,Q);D(Q.canvas,{type:W7["2D"],
property:P.prop$jscomp$58,args:B})},0);
return k.apply(this,u)}}}(a));
W.push(O)}}catch(P){g=fZJ(C.CanvasRenderingContext2D.prototype,a.prop$jscomp$58,{set:function(k){return function(u){D(this.canvas,{type:W7["2D"],property:k.prop$jscomp$58,args:[u],setter:!0})}}(a)}),W.push(g)}}return function(){W.forEach(function(P){return P()})}};
TtW=function(D,C,X,c){var W=[];try{var p=wr(D.HTMLCanvasElement.prototype,"getContext",function(g){return function(a){var O=_.MJ.apply(1,arguments);if(!RS(this,C,X,!0)){var P=a==="experimental-webgl"?"webgl":a;"__context"in this||(this.__context=P);c&&["webgl","webgl2"].includes(P)&&(O[0]&&typeof O[0]==="object"?(P=O[0],P.preserveDrawingBuffer||(P.preserveDrawingBuffer=!0)):O.splice(0,1,{preserveDrawingBuffer:!0}))}return g.apply(this,[a].concat(_.VB(O)))}});
W.push(p)}catch(g){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){W.forEach(function(g){return g()})}};
HVt=function(D,C,X,c,W,p){for(var g=[],a=_.U(Object.getOwnPropertyNames(D)),O=a.next(),P={};!O.done;P={prop$jscomp$59:void 0},O=a.next())if(P.prop$jscomp$59=O.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(P.prop$jscomp$59))try{if(typeof D[P.prop$jscomp$59]==="function"){var k=wr(D,P.prop$jscomp$59,function(u){return function(Q){return function(){var B=_.MJ.apply(0,arguments),K=Q.apply(this,B);ZVW(K,p,this);"tagName"in this.canvas&&!RS(this.canvas,c,W,!0)&&(B=
GP3(B,p,this),X(this.canvas,{type:C,property:u.prop$jscomp$59,args:B}));return K}}}(P));
g.push(k)}}catch(u){O=fZJ(D,P.prop$jscomp$59,{set:function(Q){return function(B){X(this.canvas,{type:C,property:Q.prop$jscomp$59,args:[B],setter:!0})}}(P)}),g.push(O)}return g};
JsF=function(D,C,X,c){var W=[];W.push.apply(W,_.VB(HVt(C.WebGLRenderingContext.prototype,1,D,X,c,C)));typeof C.WebGL2RenderingContext!=="undefined"&&W.push.apply(W,_.VB(HVt(C.WebGL2RenderingContext.prototype,2,D,X,c,C)));return function(){W.forEach(function(p){return p()})}};
p63=function(D){var C=D=D===void 0?{}:D,X=C.emit,c=C.checkoutEveryNms,W=C.checkoutEveryNth,p=C.blockClass===void 0?"rr-block":C.blockClass,g=C.blockSelector===void 0?null:C.blockSelector,a=C.ignoreClass===void 0?"rr-ignore":C.ignoreClass,O=C.ignoreSelector===void 0?null:C.ignoreSelector,P=C.maskTextClass===void 0?"rr-mask":C.maskTextClass,k=C.maskTextSelector===void 0?null:C.maskTextSelector,u=C.inlineStylesheet===void 0?!0:C.inlineStylesheet,Q=C.maskAllInputs,B=C.maskInputOptions,K=C.slimDOMOptions,
L=C.maskInputFn,t=C.maskTextFn,Y=C.hooks,y=C.packFn,J=C.sampling===void 0?{}:C.sampling,T=C.dataURLOptions===void 0?{}:C.dataURLOptions,H=C.mousemoveWait,q=C.recordDOM===void 0?!0:C.recordDOM,R=C.recordCanvas===void 0?!1:C.recordCanvas,ph=C.recordCrossOriginIframes===void 0?!1:C.recordCrossOriginIframes,Om=C.recordAfter===void 0?D.recordAfter==="DOMContentLoaded"?D.recordAfter:"load":C.recordAfter,xj=C.userTriggeredOnInput===void 0?!1:C.userTriggeredOnInput,Bo=C.collectFonts===void 0?!1:C.collectFonts,
r5=C.inlineImages===void 0?!1:C.inlineImages,Fd=C.plugins,GJ=C.keepIframeSrcFn===void 0?function(){return!1}:C.keepIframeSrcFn,jZ=C.ignoreCSSAttributes===void 0?new Set([]):C.ignoreCSSAttributes;
pN=C.errorHandler;var Ac=ph?window.parent===window:!0,ib=!1;if(!Ac)try{window.parent.document&&(ib=!1)}catch(kg){ib=!0}if(Ac&&!X)throw Error("$e");if(!Ac&&!ib)return function(){};
H!==void 0&&J.mousemove===void 0&&(J.mousemove=H);Sc.reset();var d5=Q===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:B!==void 0?B:{password:!0},ub=K===!0||K==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:K==="all",headMetaDescKeywords:K==="all",headTitleMutations:K==="all"}:
K?K:{};cs5();var L5,Nf=0,xt=function(kg){for(var p1=_.U(Fd||[]),Rm=p1.next();!Rm.done;Rm=p1.next())Rm=Rm.value,Rm.eventProcessor&&(kg=Rm.eventProcessor(kg));y&&!ib&&(kg=y(kg));return kg};
Un=function(kg,p1){kg.timestamp=$qZ();var Rm;((Rm=Du[0])==null?0:Rm.isFrozen())&&kg.type!==2&&(kg.type!==3||kg.data.source!==0)&&Du.forEach(function(ow){return ow.unfreeze()});
Ac?X==null||X(xt(kg),p1):ib&&(p1={type:"rrweb",event:xt(kg),origin:window.location.origin,isCheckout:p1},window.parent.postMessage(p1,"*"));kg.type===2?(L5=kg,Nf=0):kg.type!==3||kg.data.source===0&&kg.data.isAttachIframe||(Nf++,kg=c&&kg.timestamp-L5.timestamp>c,(W&&Nf>=W||kg)&&zVR(!0))};
var u6=function(kg){Un({type:3,data:Object.assign({},{source:0},kg)})},g5=function(kg){return Un({type:3,
data:Object.assign({},{source:3},kg)})},oq=function(kg){return Un({type:3,
data:Object.assign({},{source:9},kg)})},rx=new jJo({mutationCb:u6,
adoptedStyleSheetCb:function(kg){return Un({type:3,data:Object.assign({},{source:15},kg)})}}),Rq=new MPm({mirror:Sc,
mutationCb:u6,stylesheetManager:rx,recordCrossOriginIframes:ph,wrappedEmit:Un});D=_.U(Fd||[]);for(C=D.next();!C.done;C=D.next())C=C.value,C.getMirror&&C.getMirror({nodeMirror:Sc,crossOriginIframeMirror:Rq.crossOriginIframeMirror,crossOriginIframeStyleMirror:Rq.crossOriginIframeStyleMirror});var K5=new q9n;fsm=new dqh({recordCanvas:R,mutationCb:oq,win:window,blockClass:p,blockSelector:g,mirror:Sc,sampling:J.canvas,dataURLOptions:T});var C1=new RVr({mutationCb:u6,scrollCb:g5,bypassOptions:{blockClass:p,
blockSelector:g,maskTextClass:P,maskTextSelector:k,inlineStylesheet:u,maskInputOptions:d5,dataURLOptions:T,maskTextFn:t,maskInputFn:L,recordCanvas:R,inlineImages:r5,sampling:J,slimDOMOptions:ub,iframeManager:Rq,stylesheetManager:rx,canvasManager:fsm,keepIframeSrcFn:GJ,processedNodeManager:K5},mirror:Sc});zVR=function(kg){kg=kg===void 0?!1:kg;if(q){Un({type:4,data:{href:window.location.href,width:lZW(),height:RTd()}},kg);rx.reset();C1.init();Du.forEach(function(Rm){return Rm.lock()});
var p1=qC5({mirror:Sc,blockClass:p,blockSelector:g,maskTextClass:P,maskTextSelector:k,inlineStylesheet:u,maskAllInputs:d5,maskTextFn:t,maskInputFn:L,slimDOM:ub,dataURLOptions:T,recordCanvas:R,inlineImages:r5,onSerialize:function(Rm){Rm.nodeName==="IFRAME"&&Sc.nodeMetaMap.get(Rm)&&lsh(Rq,Rm);oxd(Rm,Sc)&&D4W(rx,Rm);Rm&&Z4(Rm)&&C1o(C1,Z4(Rm),document)},
onIframeLoad:function(Rm,ow){X63(Rq,Rm,ow);Rm.contentWindow&&Rm.contentDocument&&c75(C1,Rm.contentWindow.Element,Rm.contentDocument)},
onStylesheetLoad:function(Rm,ow){oEW(rx,Rm,ow)},
keepIframeSrcFn:GJ});p1?(Un({type:2,data:{node:p1,initialOffset:d$r(window)}},kg),Du.forEach(function(Rm){return Rm.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&LNm(rx,document.adoptedStyleSheets,Sc.getId(document))):console.warn("Failed to snapshot the document")}};
try{var LK=[],Mf=function(kg){var p1;return CN(yst)({mutationCb:u6,mousemoveCb:function(Rm,ow){return Un({type:3,data:{source:ow,positions:Rm}})},
mouseInteractionCb:function(Rm){return Un({type:3,data:Object.assign({},{source:2},Rm)})},
scrollCb:g5,viewportResizeCb:function(Rm){return Un({type:3,data:Object.assign({},{source:4},Rm)})},
inputCb:function(Rm){return Un({type:3,data:Object.assign({},{source:5},Rm)})},
mediaInteractionCb:function(Rm){return Un({type:3,data:Object.assign({},{source:7},Rm)})},
styleSheetRuleCb:function(Rm){return Un({type:3,data:Object.assign({},{source:8},Rm)})},
styleDeclarationCb:function(Rm){return Un({type:3,data:Object.assign({},{source:13},Rm)})},
canvasMutationCb:oq,fontCb:function(Rm){return Un({type:3,data:Object.assign({},{source:10},Rm)})},
selectionCb:function(Rm){Un({type:3,data:Object.assign({},{source:14},Rm)})},
customElementCb:function(Rm){Un({type:3,data:Object.assign({},{source:16},Rm)})},
blockClass:p,ignoreClass:a,ignoreSelector:O,maskTextClass:P,maskTextSelector:k,maskInputOptions:d5,inlineStylesheet:u,sampling:J,recordDOM:q,recordCanvas:R,inlineImages:r5,userTriggeredOnInput:xj,collectFonts:Bo,doc:kg,maskInputFn:L,maskTextFn:t,keepIframeSrcFn:GJ,blockSelector:g,slimDOMOptions:ub,dataURLOptions:T,mirror:Sc,iframeManager:Rq,stylesheetManager:rx,shadowDomManager:C1,processedNodeManager:K5,canvasManager:fsm,ignoreCSSAttributes:jZ,plugins:(Fd==null?void 0:(p1=Fd.filter(function(Rm){return Rm.observer}))==
null?void 0:p1.map(function(Rm){return{observer:Rm.observer,
options:Rm.options,callback:function(ow){return Un({type:6,data:{plugin:Rm.name,payload:ow}})}}}))||[]},Y)};
W0n(Rq,function(kg){try{LK.push(Mf(kg.contentDocument))}catch(p1){console.warn(p1)}});
var vM=function(){zVR();LK.push(Mf(document))};
document.readyState==="interactive"||document.readyState==="complete"?vM():(LK.push(fl("DOMContentLoaded",function(){Un({type:0,data:{}});Om==="DOMContentLoaded"&&vM()})),LK.push(fl("load",function(){Un({type:1,
data:{}});Om==="load"&&vM()},window)));
return function(){LK.forEach(function(kg){try{kg()}catch(p1){String(p1).toLowerCase().includes("cross-origin")||console.warn(p1)}});
K5.destroy();pN=void 0}}catch(kg){console.warn(kg)}};
_.x=function(D,C){C=lU(RH(C));D.innerHTML=C};
gEm=function(D){var C=SLF;C||(C=U4t(),C=SLF=_.ZI.transpose(C));C=C[D];return typeof C==="string"?C:_.gl(D)};
aFJ=function(D){D=String(D).toLowerCase();var C=U4t()[D];return typeof C==="string"?C:_.aB(D)};
IFm=function(D){D=D.toLowerCase();D=U4t()[D];return typeof D==="string"?D:null};
U4t=function(){if(!OXj){for(var D=Object.assign({},A7t),C=_.U(P1t),X=C.next();!X.done;X=C.next())X=X.value,D[X.toLowerCase()]=X;OXj=D}return OXj};
iXr=function(D,C){var X=window.customElements;return X&&X.get(D)||$4R[D]===!0?2:C.name==="HTMLUnknownElement"?1:C.name==="HTMLElement"&&vEd.test(D)?3:0};
QNm=function(D,C){switch(C){case "innerHTML":return kZF(D)===1?2:null;case "textContent":return D=kZF(D),D===1||D===6?1:null;default:var X,c;return(c=(X=uMo[D.localName])==null?void 0:X[C])!=null?c:null}};
kZF=function(D){var C=D.localName,X=iXr(C,D.constructor);switch(X){case 0:case 1:return BFh(C,D);case 3:case 2:return 1;default:_.qf(X,"got an unknown element classification")}};
BFh=function(D,C){var X=Object.hasOwnProperty.call(bXh,D)?bXh[D]:null;return X!==null?X:Object.hasOwnProperty.call(r7d,D)&&C instanceof SVGElement?r7d[D]:null};
K05=function(D,C){return C};
x4F=function(D){return(D=D.split(h83,2))?{url:D[0],metadata:D[1]}:null};
sNo=function(D){var C=String(D.url).replace(L0W,encodeURIComponent);if(D=D.metadata){L0W.lastIndex=0;if(L0W.test(D))return null;C+=" "+D}return C};
tGh=function(D){function C(P){var k=P.localName;if(!P.getAttribute("is")&&iXr(k,P.constructor)===2){var u;return(u=O)!=null?u:O=document.createElement("polyresinuncustomized")}(P=a[k])||(P=a[k]=document.createElement(k));return P}
var X=D.reportHandler||void 0,c=D.safeTypesBridge||m4o,W=/^$/;if(D=D.allowedIdentifierPrefixes){D=_.U(D);for(var p=D.next();!p.done;p=D.next())W=new RegExp(W.source+"|^"+_.e8m(p.value))}X&&X(!1,"initResin",null);var g=EEo(W,c,X),a={},O=null;return function(P,k,u){var Q=P.nodeType;if(Q!==Node.ELEMENT_NODE){if(Q===Node.TEXT_NODE){k=P.parentElement;u=!k;if(k&&k.nodeType===Node.ELEMENT_NODE){Q=k.localName;var B=iXr(Q,k.constructor);switch(B){case 0:case 1:k=BFh(Q,k);u=k===1||k===6;break;case 3:case 2:u=
!0;break;default:_.qf(B,"got an unknown element classification")}}if(u)return function(Y){return""+c(Y,"STRING",Y)}}return function(Y){if(!Y&&Y!==document.all)return Y;
X&&X(!0,"Failed to sanitize "+(P.parentElement&&P.parentElement.nodeName)+" #text node to value "+Y,P.parentElement);return IB}}var K=P.localName;
Q=C(P);var L=null;switch(u){case "attribute":if(aFJ(k)in Q)break;return function(Y){return Y};
case "property":if(k in Q){L=QNm(Q,k);break}if((B=IFm(k))&&B in Q)break;return function(Y){return Y};
default:_.qf(u,"got an unknown resin type, expected either 'property' or 'attribute'")}var t=u==="attribute"?k.toLowerCase():gEm(k);L||(L=eLd(K,t,function(Y){var y=P.getAttribute(Y);return!y||/[\[\{]/.test(Y)?null:y}));
return function(Y){var y=On,J=null;if(!Y&&Y!==document.all)return Y;if(L!=null){var T=g[L],H=T.safeType;J=T.safeReplacement;H&&(y=c(Y,H,On));y===On&&(T.filterString?(y=String(c(Y,"STRING",Y)),y=T.filterString(K,t,y)):T.filterRaw&&(y=T.filterRaw(K,t,Y,P)),y===J&&(y=On))}y===On&&(y=J||IB,X&&X(!0,"Failed to sanitize attribute of <"+K+">: <"+K+" "+t+'="'+Y+'">',P));return y}}};
EEo=function(D,C,X){return[,{filterRaw:function(c,W,p){return p},
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:NFZ,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:NFZ,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:IB,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:YLF,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(c,W,p){p=
String(p).toLowerCase();return N0r(c,W,p)?p:IB},
safeReplacement:IB,safeType:void 0},,{filterRaw:void 0,filterString:function(c,W,p){return D.test(p)?p:IB},
safeReplacement:IB,safeType:"CONSTANT"},{filterRaw:function(c,W,p,g){if(typeof p==="string")var a=(a=p.match(y7W))?a.map(x4F).filter(Boolean):[];else if(Array.isArray(p))a=p;else return NFZ;var O=a;a=[];var P=[],k={};if(Array.isArray(O))for(var u=0,Q=O.length;u<Q;++u){var B=O[u],K=B&&B.url;if(K){var L=C(K,"URL",k);if(L){var t=L!==k;(t?a:P).push({url:t?L:K,metadata:B.metadata})}}}else P.push(O);O=P.length?JSON.stringify(P):null;P=On;if(a.length){if(!Array.isArray(a))throw Error();P=a.map(sNo).filter(Boolean).join(" , ")||
On}O&&X&&X(!0,"Failed to sanitize attribute value of <"+c+">: <"+c+" "+W+'="'+p+'">: '+O,g);return P===On?NFZ:P},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
nEm=function(D){var C=tGh(D);return function(X,c,W,p){return p||p===document.all?C(X,c,W)(p):p}};
A8=function(D,C){function X(){function W(a,O,P){for(O=Reflect.getMetadata("parameters",a)||[];O.length<=P;)O.push(null);O[P]=O[P]||[];O[P].push(g);Reflect.defineMetadata(O,a);return a}
var p=_.MJ.apply(0,arguments);if(this instanceof X)return c.apply(this,p),this;var g=new (Function.prototype.bind.apply(X,[null].concat(_.VB(p))));W.annotation=g;return W}
var c=w6h(C);X.prototype.toString=function(){return"@"+D};
return X.annotationCls=X};
w6h=function(D){return function(){var C=_.MJ.apply(0,arguments),X=this;D.forEach(function(c,W){W=C[W];if(Array.isArray(c))X[c[0]]=W&&W!==void 0?W:c[1];else for(var p in c)X[p]=W&&W[p]!==void 0?W[p]:c[p]})}};
F03=function(D){return D!==void 0&&D!==null};
P7=function(D){if(typeof D==="string")return D;if(D===void 0||D===null)return""+D;if(D.overriddenName)return D.overriddenName;if(D.name)return D.name;D=D.toString();var C=D.indexOf("\n");return C===-1?D:D.substring(0,C)};
ZXd=function(D){D.__forward_ref__=ZXd;D.toString=function(){return P7(this())};
return D};
$r=function(D){return typeof D==="function"&&D.hasOwnProperty("__forward_ref__")&&D.__forward_ref__===ZXd?D():D};
GZt=function(D){return D?D.map(function(C){return new (Function.prototype.bind.apply(C.type.annotationCls,[null].concat(_.VB(C.args?C.args:[]))))}):[]};
VGd=function(D){for(var C=[],X=0;X<D.length;++X){if(C.indexOf(D[X])>-1){C.push(D[X]);break}C.push(D[X])}return C};
TF5=function(D){return D.length>1?" ("+VGd(D.slice().reverse()).map(function(C){return P7(C.token)}).join(" -> ")+")":""};
J7R=function(D,C,X,c){if(c){var W=Error("cf``"+(c instanceof Error?c.message:c));W.ngOriginalError=c}else W=Error();W.addKey=HXj;W.keys=[C];W.injectors=[D];W.constructResolvingMessage=X;W.message=W.constructResolvingMessage();W.ngOriginalError=c;return W};
HXj=function(D,C){this.injectors.push(D);this.keys.push(C);this.message=this.constructResolvingMessage()};
z8j=function(D,C){return J7R(D,C,function(){return"No provider for "+P7(this.keys[0].token)+"!"+TF5(this.keys)})};
jNF=function(D,C){return J7R(D,C,function(){return"Cannot instantiate cyclic dependency!"+TF5(this.keys)})};
MGr=function(D,C,X){return J7R(D,X,function(){var c=P7(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+c+"!"+TF5(this.keys)+"."},C)};
qLm=function(D,C){for(var X=[],c=0,W=C.length;c<W;c++){var p=C[c];p&&p.length!=0?X.push(p.map(P7).join(" ")):X.push("?")}return Error("gf`"+P7(D)+"`"+X.join(", ")+"`"+P7(D))};
XGZ=function(D){var C=void 0,X=void 0;if(D&&D.useClass!==void 0){C=D.useClass;var c=$r(D.useClass);var W=fFR.factory(c);c=d4d(c)}else D&&D.useExisting!==void 0?(W=function(p){return p},c=[R8m(iE.get($r(D.useExisting)))]):D&&D.useFactory!==void 0?(W=D.useFactory,c=lFF(D.useFactory,D.deps)):(X=D.useValue,W=function(){return D.useValue},c=Dit);
return new CWW(W,c,C,X)};
oyd=function(D){return new cx3(iE.get($r(D.provide)),[XGZ(D)],D.multi)};
pGn=function(D){D=W85(D,[]).map(oyd);for(var C=new Map,X=0;X<D.length;X++){var c=D[X],W=C.get(c.key.id);if(W){if(c.multiProvider!==W.multiProvider)throw Error("jf`"+W+"`"+c);if(c.multiProvider)for(var p=0;p<c.resolvedFactories.length;p++)W.resolvedFactories.push(c.resolvedFactories[p]);else C.set(c.key.id,c)}else W=void 0,c.multiProvider?W=new cx3(c.key,c.resolvedFactories.slice(),c.multiProvider):W=c,C.set(c.key.id,W)}return Array.from(C.values())};
W85=function(D,C){D.forEach(function(X){if(X instanceof Sy5)C.push({provide:X,useClass:X});else if(X&&typeof X=="object"&&X.provide!==void 0)C.push(X);else if(X instanceof Array)W85(X,C);else throw Error("ff`"+X);});
return C};
lFF=function(D,C){if(C){var X=C.map(function(c){return[c]});
return C.map(function(c){return Uim(D,c,X)})}return d4d(D)};
d4d=function(D){var C=fFR.parameters(D);if(!C)return[];if(C.some(function(X){return X==null}))throw qLm(D,C);
return C.map(function(X){return Uim(D,X,C)})};
Uim=function(D,C,X){var c=null,W=!1;if(!Array.isArray(C))return C instanceof gyn?aEm(C.token,W,null):aEm(C,W,null);for(var p=null,g=0;g<C.length;++g){var a=C[g];if(a instanceof Sy5)c=a;else if(a instanceof gyn)c=a.token;else if(a instanceof IE3)W=!0;else if(a instanceof Ort||a instanceof AxZ)p=a}c=$r(c);if(c!=null)return aEm(c,W,p);throw qLm(D,X);};
aEm=function(D,C,X){return new PWn(iE.get($r(D)),C,X)};
$it=function(D,C){for(var X=Array(D.providers.length),c=0;c<D.providers.length;++c){var W=c;if(c<0||c>=D.providers.length)throw Error("hf`"+c);X[W]=C(D.providers[c])}return X};
vy3=function(D){return typeof D==="function"&&fFR.parameters(D).every(function(C){return!!C})};
ukd=function(D){var C=irZ;kIh.get(D)||kIh.set(D,new C);return kIh.get(D)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,C){var X,c;if(D.contains(C))return!0;D=_.kr(D).querySelectorAll("content,slot");for(X=0;X<D.length;++X){var W=_.kr(D[X]).getDistributedNodes();for(c=0;c<W.length;++c)if(W[c].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W[c],C))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){D.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D)&&D.preventDefault();D.targetTouches&&(D=D.targetTouches[0],QR3=D.pageX,BWF=D.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 D=0,C=uE.length;D<C;D++)document.addEventListener(uE[D],_._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 D=0,C=uE.length;D<C;D++)document.removeEventListener(uE[D],_._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(D){var C=_.kr(D).rootTarget;D.type!=="touchmove"&&br3!==C&&(br3=C,rxj=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.kr(D).path));if(!rxj.length)return!0;if(D.type==="touchstart")return!1;D=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(rxj,D.deltaX,D.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){for(var C=[],X=D.indexOf(K8m),c=0;c<=X;c++)if(D[c].nodeType===Node.ELEMENT_NODE){var W=D[c],p=W.style;p.overflow!=="scroll"&&p.overflow!=="auto"&&(p=window.getComputedStyle(W));p.overflow!=="scroll"&&p.overflow!=="auto"||C.push(W)}return C};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,C,X){if(C||X)for(var c=Math.abs(X)>=Math.abs(C),W=0;W<D.length;W++){var p=D[W];if(c?X<0?p.scrollTop>0:p.scrollTop<p.scrollHeight-p.clientHeight:C<0?p.scrollLeft>0:p.scrollLeft<p.scrollWidth-p.clientWidth)return p}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){var C={deltaX:D.deltaX,deltaY:D.deltaY};"deltaX"in D||("wheelDeltaX"in D&&"wheelDeltaY"in D?(C.deltaX=-D.wheelDeltaX,C.deltaY=-D.wheelDeltaY):"wheelDelta"in D?(C.deltaX=0,C.deltaY=-D.wheelDelta):"axis"in D?(C.deltaX=D.axis===1?D.detail:0,C.deltaY=D.axis===2?D.detail:0):D.targetTouches&&(D=D.targetTouches[0],C.deltaX=QR3-D.pageX,C.deltaY=BWF-D.pageY));return C};
hUR=function(D){this.element=D;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
L8j=function(D){this.element=D;this.color=window.getComputedStyle(D).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");_.kr(this.waveContainer).appendChild(this.wave);xi3(this)};
Qy=function(D,C){for(var X in D)if(X.toLowerCase()===C.toLowerCase())return D[X]};
sRZ=function(D,C){for(var X in D)if(X.toLowerCase()===C.toLowerCase()){delete D[X];break}};
eUZ=function(D){D=_.ZI.clone(D);for(var C=0;C<min.length;++C){var X=min[C],c=Qy(D,X);c&&(D["X-Goog-Upload-Header-"+X]=c,sRZ(D,X))}return D};
Eyj=function(D){D=_.ZI.clone(D);sRZ(D,"X-Goog-Upload-Status")};
NWd=function(D){return tUd.some(function(C){return C.test(D)})};
wGn=function(D,C){var X;var c=(X=D.formContent)==null?void 0:X.locale;X=c==null?void 0:c.split("-")[0];c=c&&YyR.includes(c)?c:X&&YyR.includes(X)?X:void 0;c=(c!=null?c:"en").replaceAll("-","_").toLowerCase();var W;D=((W=D.initializationData)==null?0:W.useNightlyRelease)?"nightly":"live";var p;return(C==null?0:(p=C.getEnableAlohaBinarySplit)==null?0:p.call(C))?_.kX(yxd,D):_.kX(nym,D,c)};
GIm=function(D,C,X,c){if(F8Z&&Zrr===C)return F8Z;Zrr=C;var W=wGn(D,c);return F8Z=C.feedbackV2GlobalObject?Promise.resolve(C.feedbackV2GlobalObject):new Promise(function(p,g){var a=_.mv("SCRIPT");_.gH(a,W);a.onload=function(){C.feedbackV2GlobalObject?p(C.feedbackV2GlobalObject):g(Error("mf"))};
a.onerror=function(){g(Error("nf`"+W.toString()))};
X.body.appendChild(a)})};
HrF=function(D,C,X,c){if(VUr&&TWj===C)return VUr;TWj=C;var W=wGn(D,c);return VUr=C.feedbackV2GlobalObject?Promise.resolve(C.feedbackV2GlobalObject):new Promise(function(p,g){var a=_.mv("SCRIPT");_.gH(a,W);a.onload=function(){C.feedbackV2GlobalObject?p(C.feedbackV2GlobalObject):g(Error("mf"))};
a.onerror=function(){g(Error("nf`"+W.toString()))};
X.body.appendChild(a)})};
JxJ=function(D,C,X,c,W){W=W===void 0?!0:W;var p,g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:return p=Date.now(),k.yield(GIm(D,X,c,C),2);case 2:g=k.yieldResult;if(!(W||((O=D.initializationData)==null?0:O.useNightlyRelease)||((P=D.initializationData)==null?0:P.isLocalServer))){a=g.initializeFeedbackClient(D,p,C);k.jumpTo(3);break}return k.yield(g.initializeFeedbackClientAsync(D,p,C),4);case 4:a=k.yieldResult;case 3:return a.initiateAloha(),k.return(a)}})};
zUd=function(D,C,X,c){var W,p,g;return _.I(function(a){if(a.nextAddress==1)return W=Date.now(),a.yield(HrF(D,X,c.document,C),2);if(a.nextAddress!=3)return p=a.yieldResult,a.yield(p.initializeFeedbackClientAsync(D,W,C,c),3);g=a.yieldResult;g.initiateAloha();return a.return(g)})};
jRo=function(D,C,X){var c=!0;c=c===void 0?!0:c;var W,p,g,a,O,P,k,u;return _.I(function(Q){W=X||_.co;if((p=C)==null?0:(a=(g=p).getEnableAlohaBinarySplit)==null?0:a.call(g)){O=W;if(O.isFormOpened)throw new B7;O.isFormOpened=!0;D.callbacks=D.callbacks||{};P=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(B){O.isFormOpened=!1;P(B)};
try{return Q.return(zUd(D,C,O,W))}catch(B){throw O.isFormOpened=!1,B;}}else{k=W;if(k.isFormOpened)throw new B7;k.isFormOpened=!0;D.callbacks=D.callbacks||{};u=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(B){k.isFormOpened=!1;u(B)};
try{return Q.return(JxJ(D,C,k,W.document,c))}catch(B){throw k.isFormOpened=!1,B;}}_.t_(Q)})};
RUW=function(D,C){return _.I(function(X){return X.return(new Promise(function(c,W){Number.isInteger(Number(D))&&Number(D)>0?(W=MUR(C!=null?C:"")+"/aloha_form_properties?productId="+D,qyF(W,function(p){p=p.target;var g=null;try{var a=JSON,O=a.stringify;if(p.JSC$9961_xhr_){var P=p.JSC$9961_xhr_.responseText;P.indexOf(")]}'\n")==0&&(P=P.substring(5));var k=(0,_.bE)(P)}else k=void 0;g=qBW(fEr,O.call(a,k))}catch(u){O=new fEr,k=diZ(),k=_.rl(k,13,!1),k=_.rl(k,14,!0),k=_.rl(k,15,!0),k=_.rl(k,20,!1),g=_.Lf(O,
1,k)}c(g)},"GET","",{},2E3,!0)):W(Error("of`"+D))}))})};
MUR=function(D){return NWd(D)?D:"https://www.google.com/tools/feedback"};
X8j=function(D){D=D.match(new RegExp(lEJ,"gi"))||[];D=_.U(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;a:{var X=_.U(DDo);for(var c=X.next();!c.done;c=X.next())if(c.value.test(C)){X=!1;break a}X=!0}if(!X)a:{X=_.U(CRW);for(c=X.next();!c.done;c=X.next())if(c.value.test(C)){X=!0;break a}X=!1}if(X)return!0}return!1};
cnj=function(D,C){var X={},c=Object.keys(D);c=_.U(c);for(var W=c.next();!W.done;W=c.next())W=W.value,X[W]=C(W,D[W]);return X};
oY3=function(D){switch(D){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"}};
p8m=function(D){if(window.crypto&&window.crypto.getRandomValues)try{var C=Array(D),X=new Uint8Array(D);window.crypto.getRandomValues(X);for(var c=0;c<C.length;c++)C[c]=X[c];return C}catch(p){}C=Array(D);for(X=0;X<D;X++){c=Date.now();for(var W=0;W<c%23;W++)C[X]=Math.random();C[X]=Math.floor(Math.random()*256)}if(W_m)for(X=1,c=0;c<W_m.length;c++)C[X%D]^=C[(X-1)%D]/4^W_m.charCodeAt(c),X++;return C};
KN=function(D){D=p8m(D);for(var C=[],X=0;X<D.length;X++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[X]&63));return C.join("")};
Svo=function(){var D=_.co.ytLoggingDocDocumentNonce_;D||(D=KN(16),_.$h("ytLoggingDocDocumentNonce_",D));return D};
gYo=function(D){D&&_.zu("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:UDj,clientScreenNonce:D})};
aKZ=function(D){return _.q6("client-screen-nonce-store",{})[D===void 0?0:D]};
IKj=function(D,C){C=C===void 0?0:C;var X=_.q6("client-screen-nonce-store");X||(X={},_.M6("client-screen-nonce-store",X));X[C]=D};
O0W=function(D){D=D===void 0?0:D;return D===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+D};
AnF=function(D){return _.q6(O0W(D===void 0?0:D))};
_.xr=function(D){return(D=AnF(D===void 0?0:D))?new h8({veType:D,youtubeData:void 0,jspbYoutubeData:void 0}):null};
PRJ=function(){var D=_.q6("csn-to-ctt-auth-info");D||(D={},_.M6("csn-to-ctt-auth-info",D));return D};
$Dn=function(){return Object.values(_.q6("client-screen-nonce-store",{})).filter(function(D){return D!==void 0})};
_.LN=function(D){D=aKZ(D===void 0?0:D);if(!D&&!_.dq("USE_CSN_FALLBACK",!0))return null;D||(D="UNDEFINED_CSN");return D?D:null};
i0J=function(D){for(var C=_.U(Object.values(vYF)),X=C.next();!X.done;X=C.next())if(_.LN(X.value)===D)return!0;return!1};
kEW=function(D,C,X){var c=PRJ();(X=_.LN(X))&&delete c[X];C&&(c[D]=C)};
mP=function(D){return PRJ()[D]};
_.ec=function(D,C,X,c){X=X===void 0?0:X;if(D!==aKZ(X)||C!==_.q6(O0W(X)))if(kEW(D,c,X),IKj(D,X),_.M6(O0W(X),C),C=function(){setTimeout(function(){gYo(D)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(C)}catch(W){C()}else C()};
ulm=function(D){var C=_.LN(0),X=AnF(0);C&&X&&(_.ec(C,X,D),D===0&&IKj(void 0,0))};
QCR=function(D,C){C=C===void 0?"":C;var X=[],c;for(c in D)if(D.hasOwnProperty(c)){var W=C!==""?C+"."+c:c;typeof D[c]==="object"?X.push.apply(X,_.VB(QCR(D[c],W))):X.push([W,D[c]])}X.sort();return X};
_.t8=function(D){var C=_.MJ.apply(1,arguments);if(!En(D)||C.some(function(c){return!En(c)}))throw Error("pf");
C=_.U(C);for(var X=C.next();!X.done;X=C.next())BPr(D,X.value)};
BPr=function(D,C){for(var X in C)if(En(C[X])){if(X in D&&!En(D[X]))throw Error("qf");X in D||(D[X]={});BPr(D[X],C[X])}else if(b0t(C[X])){if(X in D&&!b0t(D[X]))throw Error("rf");X in D||(D[X]=[]);rnm(D[X],C[X])}else D[X]=C[X];return D};
rnm=function(D,C){C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,En(X)?D.push(BPr({},X)):b0t(X)?D.push(rnm([],X)):D.push(X);return D};
En=function(D){return typeof D==="object"&&!Array.isArray(D)};
b0t=function(D){return typeof D==="object"&&Array.isArray(D)};
hXm=function(D){for(var C=_.U(Object.entries(K_j)),X=C.next();!X.done;X=C.next())if(X=_.U(X.value),X.next(),X=X.next().value,X==="SLI_STATUS_"+D)return X;return"SLI_STATUS_UNKNOWN"};
_.NF=function(D,C,X,c){return xDo(D,C,function(){return new _.L_R(D,C,X,c)})};
_.sCd=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
mDd=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Yr=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
eXo=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
EYn=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
tB5=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
yn5=function(D){D&&(D.dataset?D.dataset[NPj()]="true":_.IG([_.$X(Yvh)],D,"data-loaded","true".toString()))};
nYm=function(D){return D?D.dataset?D.dataset[NPj()]:D.getAttribute("data-loaded"):null};
NPj=function(){return w8m.loaded||(w8m.loaded="loaded".replace(/\-([a-z])/g,function(D,C){return C.toUpperCase()}))};
_.yy=function(D,C,X){F_Z(D,C,X===void 0?null:X)};
_.GEj=function(D,C){D&&C&&(D=""+_.fh(C),(D=Z0m[D])&&_.KpW(D))};
F_Z=function(D,C,X){X=X===void 0?null:X;var c=_.VBF(typeof D==="string"?D:D.toString()),W=document.getElementById(c),p=W&&nYm(W),g=W&&!p;p?C&&C():(C&&(p=_.bw(c,C),C=""+_.fh(C),Z0m[C]=p),g||(W=TPZ(D,c,function(){nYm(W)||(yn5(W),_.hWJ(c),_.xz(function(){_.LpF(c)},0))},X)))};
TPZ=function(D,C,X,c){c=c===void 0?null:c;var W=_.mv("SCRIPT");W.id=C;W.onload=function(){X&&setTimeout(X,0)};
W.onreadystatechange=function(){switch(W.readyState){case "loaded":case "complete":W.onload()}};
c&&W.setAttribute("nonce",c);_.gH(W,typeof D==="string"?_.Z1(D):D);D=document.getElementsByTagName("head")[0]||document.body;D.insertBefore(W,D.firstChild);return W};
_.VBF=function(D){var C=document.createElement("a");ff(C,D);return"js-"+nN(C.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
H0W=function(D){var C=_.q6("INNERTUBE_HOST_OVERRIDE");C&&(D=String(C)+String(_.wl(D)));return D};
Jnr=function(D){var C={};_.b("json_condensed_response")&&(C.prettyPrint="false");return D=Mcm(D,C)};
_.Fo=function(D){return PK(D)?"same-origin":"include"};
_.Zu=function(D){return PK(D)?"same-origin":"cors"};
GC=function(D,C,X){X=X===void 0?{}:X;D={method:C===void 0?"POST":C,mode:_.Zu(D),credentials:_.Fo(D)};C={};for(var c=_.U(Object.keys(X)),W=c.next();!W.done;W=c.next())W=W.value,X[W]&&(C[W]=X[W]);Object.keys(C).length>0&&(D.headers=C);return D};
_.Vy=function(D,C){C=C===void 0?{}:C;return"service:"+D+"/"+Object.keys(C).sort().map(function(X){return X+":"+C[X]}).join("/")};
zXd=function(D){var C,X,c,W;D=(C=_.r(D,_.TC))==null?void 0:(X=C.watchEndpointSupportedOnesieConfig)==null?void 0:(c=X.html5PlaybackOnesieConfig)==null?void 0:(W=c.commonConfig)==null?void 0:W.url;if(!D)return[];C=new _.H7(D);return C.JSC$10197_domain_?["https://"+C.JSC$10197_domain_+"/generate_204"]:[]};
_.qvm=function(){return jCd()||lSW()||MBm&&RQ("version/")?!0:_.q6("EOM_VISITOR_DATA")?!1:!0};
fKR=function(D){var C=D.docid||D.video_id||D.videoId||D.id;if(C)return C;C=D.raw_player_response;C||(D=D.player_response)&&(C=JSON.parse(D));return C&&C.videoDetails&&C.videoDetails.videoId||null};
dDJ=function(D){return D.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
J8=function(D){return!isNaN(Number(D))&&!_.Um(D)};
_.jc=function(D,C,X,c){c=c===void 0?!0:c;var W=_.q6("VALID_SESSION_TEMPDATA_DOMAINS",[]),p=_.OY(window.location.href);p&&W.push(p);p=_.OY(D);if(_.Zn(W,p)||!p&&_.Wo(D,"/"))if(W=document.createElement("a"),ff(W,D),D=W.href)if(D=_.wl(D),D=_.zC(D))c&&!C.csn&&(C.itct||C.ved)&&(C=Object.assign({csn:_.LN()},C)),X?(X=parseInt(X,10),isFinite(X)&&X>0&&RX5(D,C,X)):RX5(D,C)};
DUW=function(D){var C=_.q6("VALID_SESSION_TEMPDATA_DOMAINS",[]),X=_.OY(window.location.href);X&&C.push(X);X=_.OY(D);if(!(_.Zn(C,X)||!X&&_.Wo(D,"/")))return null;D=_.wl(D);(D=_.zC(D))?(D=lK5(D),D=(D=_.Yz.get(D,void 0)||null)?_.Sq(D):{}):D=null;return D};
RX5=function(D,C,X){D=lK5(D);C=C?_.EY(C):"";X=X||5;_.qvm()&&_.y3(D,C,X)};
lK5=function(D){for(var C=_.U(CJW),X=C.next();!X.done;X=C.next())D=_.MF(D,X.value);return"ST-"+nN(D).toString(36)};
_.Xxh=function(D){if(D.requestFullscreen)D=D.requestFullscreen(void 0);else if(D.webkitRequestFullscreen)D=D.webkitRequestFullscreen();else if(D.mozRequestFullScreen)D=D.mozRequestFullScreen();else if(D.msRequestFullscreen)D=D.msRequestFullscreen();else if(D.webkitEnterFullscreen)D=D.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return D instanceof Promise?D:Promise.resolve()};
_.fN=function(D){var C;_.IRn(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.qF()==D&&(C=document):C=D;if(C&&(D=_.IRn(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],C))){D.call(C)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.qF=function(){var D=D===void 0?!1:D;var C=_.IRn(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(D)for(;C&&C.shadowRoot;)C=C.shadowRoot.fullscreenElement;return C?C:null};
_.dl=function(D,C){C=C===void 0?!0:C;D.addEventListener("wheel",cfm);D.overscrollConfig={cooldown:C}};
_.RB=function(D){D.overscrollConfig=void 0;D.removeEventListener("wheel",cfm)};
cfm=function(D){var C=D.deltaY,X=D.target,c=null;if(window.Polymer&&window.Polymer.Element){if(X=D.path||D.composedPath&&D.composedPath()){X=_.U(X);for(var W=X.next();!W.done&&(W=W.value,!oOt(W,C));W=X.next())if(W.overscrollConfig){c=W;break}}}else for(;X&&!oOt(X,C);){if(X.overscrollConfig){c=X;break}X=X.parentElement}c&&(C=c.overscrollConfig,C.cooldown?(c=D.deltaY,X=C.lastDeltaY||0,C.lastDeltaY=c,W=C.lastStopped||0,X&&W&&X>0==c>0?Math.abs(X)>=Math.abs(c)?(c=W+1200,X=!1):(c=W+600,X=!0):(c=Date.now()+
600,X=!0),c>Date.now()&&(D.preventDefault(),X&&(C.lastStopped=Date.now()))):D.preventDefault())};
oOt=function(D,C){return C<0&&D.scrollTop>0||C>0&&D.scrollTop<D.scrollHeight-D.clientHeight-1?(D=getComputedStyle(D).overflowY,D=="auto"||D=="scroll"):!1};
_.lE=function(D,C,X,c){c||(c={bubbles:!0,cancelable:!1,composed:!0});X!==null&&X!==void 0&&(c.detail=X);var W=new CustomEvent(C,c);_.b("untrack_fire_custom_event_killswitch")?D.dispatchEvent(W):_.hw(function(){return void D.dispatchEvent(W)});
return W};
Wam=function(D){var C=window,X=function(c){C.removeEventListener("yt-navigate-start",X);return D.call(C,c)};
C.addEventListener("yt-navigate-start",X,void 0)};
_.DS=function(D,C,X,c){C=new pxR(C,!(c===void 0||!c),X);_.lE(D,"yt-action",C);return C.returnValue};
_.Ct=function(D,C,X){return _.DS(D,C,X,!0)};
_.X_=function(D,C,X){return _.DS(D,C,X)[0]};
_.o7=function(D,C,X,c){C&&C.length&&C.forEach(function(W){var p=UH3(W);p&&(_.b("handle_service_request_actions")&&W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.sendPost?_.cE(X?X:D,[W]):_.Ct(D,p,[W,X,c]))})};
_.cE=function(D,C){var X=[D];C&&X.push.apply(X,C);C=_.DS(D,"yt-service-request",X);return C.length>0&&(C=C[0],_.lE(D,"yt-service-request-sent",C),C&&C.ajaxPromise)?(C.ajaxPromise.then(function(c){_.lE(D,"yt-service-request-completed",c)},function(c){_.lE(D,"yt-service-request-error",{error:c,
params:X})},D),C.ajaxPromise):_.WE()};
_.Sy=function(D,C){if(_.b("handle_service_request_actions"))_.o7(C,D,C);else{D=_.U(D);for(var X=D.next();!X.done;X=D.next()){X=X.value;var c=void 0;((c=_.r(X,_.pt))==null?0:c.commands)?_.Sy(_.r(X,_.pt).commands,C):(c=void 0,((c=_.r(X,_.Up))==null?0:c.actions)?_.Sy(_.r(X,_.Up).actions,C):(c=void 0,((c=_.r(X.commandMetadata,_.ge))==null?0:c.sendPost)?_.cE(C,[X]):_.o7(C,[X],C)))}}};
_.UUJ=function(D,C,X){C=C===void 0?{}:C;typeof C==="function"&&(C={callback:C});X||C._c&&C._c.jsl&&C._c.jsl.h||_.ZI.extend(C,{_c:{jsl:{h:_.q6("GAPI_HINT_PARAMS")}}});(C.gapiHintOverride||_.q6("GAPI_HINT_OVERRIDE"))&&(X=_.UY(document.location.href).gapi_jsh)&&_.ZI.extend(C,{_c:{jsl:{h:X}}});SMr(D,C)};
_.I7=function(D,C,X){C=C===void 0?{}:C;D=(D=D in a7?a7[D]:X)||"";X={};for(var c in C){X={key$jscomp$844:X.key$jscomp$844};X.key$jscomp$844=c;var W=function(p){return function(){return String(C[p.key$jscomp$844])}}(X);
D=D.replace(new RegExp("\\$\\{"+X.key$jscomp$844+"\\}","gi"),W);D=D.replace(new RegExp("\\$"+X.key$jscomp$844,"gi"),W)}return D};
_.Op=function(D,C){return gOm(D in a7?a7[D]:{},C)};
gOm=function(D,C){var X=_.q6("I18N_PLURAL_RULES");X||(X=function(c){return c==1?"one":"other"});
return(D=D["case"+C]||D[X(C)])?D.replace("#",C.toString()):C+""};
Oom=function(D){var C=abr(D),X=document.getElementById(C),c=X&&nYm(X);c||X&&!c||(X=Ibh(D,C,function(){if(!nYm(X)){yn5(X);_.hWJ(C);var W=_.AZ(_.LpF,C);_.xz(W,0)}}))};
Ibh=function(D,C,X){var c=document.createElement("link");c.id=C;c.onload=function(){X&&setTimeout(X,0)};
D=_.Z1(D);_.Ou(c,D,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(c);return c};
abr=function(D){var C=_.mv("A");ff(C,nf(D));return"css-"+nN(C.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.PJ3=function(D){var C=Afr();D!==C&&(C=_.PE(),!_.b("web_autonav_allow_off_by_default")&&D||_.$C(0,141,!0),_.$C(0,140,!D),C.save())};
Afr=function(){var D=_.PE();return _.b("web_autonav_allow_off_by_default")&&!D.getFlag(141)&&_.q6("AUTONAV_OFF_BY_DEFAULT")?!1:!D.getFlag(140)};
$U3=function(D,C){var X,c;D=((X=D.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(c=X.videoAuthorizationToken)==null?void 0:c.credentialTransferTokens)||[];for(X=0;X<D.length;++X)if(D[X].scope===C)return D[X].token||void 0};
vOj=function(D){for(var C=0,X=0;X<D.length;X++)C=C*31+D.charCodeAt(X),X<D.length-1&&(C%=0x800000000000);return C%1E5};
_.vE=function(D){return _.Df("ytcsi."+(D||"")+"data_")||io3(D)};
_.kSF=function(D){D=_.vE(D);D.metadata||(D.metadata={});return D.metadata};
_.ucm=function(D){D=_.vE(D);D.tick||(D.tick={});return D.tick};
_.i5=function(D){D=_.vE(D);if(D.gel){var C=D.gel;C.gelInfos||(C.gelInfos={});C.gelTicks||(C.gelTicks={})}else D.gel={gelTicks:{},gelInfos:{}};return D.gel};
_.QZd=function(D){D=_.i5(D);D.gelInfos||(D.gelInfos={});return D.gelInfos};
BYR=function(D){var C=_.vE(D).nonce;C||(C=KN(16),_.vE(D).nonce=C);return C};
io3=function(D){var C={tick:{},info:{}};_.$h("ytcsi."+(D||"")+"data_",C);return C};
bod=function(){var D=_.Df("ytcsi.debug");D||(D=[],_.$h("ytcsi.debug",D),_.$h("ytcsi.reference",{}));return D};
_.kC=function(D){D=D||"";var C=rft();if(C[D])return C[D];var X=bod(),c={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};X.push(c);return C[D]=c};
Kaj=function(D){D=D||"";var C=rft();C[D]&&delete C[D];var X=bod(),c={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};X.push(c);C[D]=c};
rft=function(){var D=_.Df("ytcsi.reference");if(D)return D;bod();return _.Df("ytcsi.reference")};
_.xUF=function(D){return hzF[D]||"LATENCY_ACTION_UNKNOWN"};
ezm=function(D,C,X){X=X===void 0?{}:X;var c=!1;_.dq("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);c=c?null:JY;X=X===void 0?{}:X;var W=Math.round(X.timestamp||(0,_.kh)());_.wO(C,1,W<Number.MAX_SAFE_INTEGER?W:0);W=new Lat;if(X.lact)_.wO(W,1,isFinite(X.lact)?X.lact:-1);else if(X.timestamp)_.wO(W,1,-1);else{var p=_.kl();_.wO(W,1,isFinite(p)?p:-1)}if(X.sequenceGroup&&!_.b("web_gel_sequence_info_killswitch")){p=X.sequenceGroup;var g=n_F(p),a=new sZt;_.wO(a,2,g);_.N3(a,1,p);_.Lf(W,3,a);X.endOfSequence&&delete mUm[X.sequenceGroup]}_.Lf(C,
33,W);(X.sendIsolatedPayload?Hbr:Jvo)(D,{endpoint:"log_event",payload:C,cttAuthInfo:X.cttAuthInfo,dangerousLogToVisitorSession:X.dangerousLogToVisitorSession},c)};
_.QP=function(){return(_.b("csi_use_time_origin")||_.b("csi_use_time_origin_tvhtml5"))&&_.u5.timeOrigin?Math.floor(_.u5.timeOrigin):_.u5.timing.navigationStart};
_.EOd=function(D,C){_.BE("_start",D,C)};
_.b5=function(D,C){if(!_.b("web_csi_action_sampling_enabled")||!_.vE(C).actionDisabled){var X=_.kC(C||"");_.t8(X.info,D);D.loadType&&(X=D.loadType,_.kSF(C).loadType=X);_.t8(_.QZd(C),D);X=BYR(C);C=_.vE(C).cttAuthInfo;tTm().info(D,X,C)}};
NYj=function(){var D,C,X,c;return((c=_.iX().resolve(_.vK(Gu))==null?void 0:(D=VC())==null?void 0:(C=D.loggingHotConfig)==null?void 0:(X=C.csiConfig)==null?void 0:X.debugTicks)!=null?c:[]).map(function(W){return Object.values(W)[0]})};
_.BE=function(D,C,X){if(!_.b("web_csi_action_sampling_enabled")||!_.vE(X).actionDisabled){var c=BYR(X),W;if(W=_.b("web_csi_debug_sample_enabled")&&c){(_.iX().resolve(_.vK(Gu))==null?0:VC())&&!YMt&&(YMt=!0,_.BE("gcfl",(0,_.kh)(),X));var p,g,a;W=(_.iX().resolve(_.vK(Gu))==null?void 0:(p=VC())==null?void 0:(g=p.loggingHotConfig)==null?void 0:(a=g.csiConfig)==null?void 0:a.debugSampleWeight)||0;if(p=W!==0)b:{p=NYj();if(p.length>0)for(g=0;g<p.length;g++)if(D===p[g]){p=!0;break b}p=!1}p?(W=vOj(c)%W!==0,
_.vE(X).debugTicksExcludedLogged||(p={},p.debugTicksExcluded=W,_.b5(p,X)),_.vE(X).debugTicksExcludedLogged=!0):W=!1}if(!W){D[0]!=="_"&&yfh(D,X,C);W=_.kC(X||"");W.tick[D]=C||(0,_.kh)();if(W.callback&&W.callback[D])for(W=_.U(W.callback[D]),p=W.next();!p.done;p=W.next())p=p.value,p();W=_.i5(X);W.gelTicks&&(W.gelTicks[D]=!0);p=_.ucm(X);W=C||(0,_.kh)();_.b("log_repeated_ytcsi_ticks")?D in p||(p[D]=W):p[D]=W;p=_.vE(X).cttAuthInfo;D==="_start"?tTm().baseline(c,C,p):tTm().tick(D,c,C,p);_.nO3(X);return W}}};
yfh=function(D,C,X){if(_.u5.mark)if(D.startsWith("mark_")||(D="mark_"+D),C&&(D+=" ("+C+")"),X===void 0||_.b("web_csi_disable_alt_time_performance_mark"))_.u5.mark(D);else{X=_.b("csi_use_performance_navigation_timing")?X-_.u5.timeOrigin:X-(_.u5.timeOrigin||_.u5.timing.navigationStart);try{_.u5.mark(D,{startTime:X})}catch(c){}}};
wxo=function(){var D,C=(D=_.u5.getEntriesByType)==null?void 0:D.call(_.u5,"mark");C&&C.forEach(function(X){if(X.name.startsWith("mark_")){var c;(c=_.u5.clearMarks)==null||c.call(_.u5,X.name)}})};
_.Fa3=function(){switch(aRr()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.Zod=function(D){var C={},X=function(p,g,a){g=g.match("_rid")?g.split("_rid")[0]:g;typeof a==="number"&&(a=JSON.stringify(a));p.requestIds?p.requestIds.push({endpoint:g,id:a}):p.requestIds=[{endpoint:g,id:a}]};
D=_.U(Object.entries(D));for(var c=D.next();!c.done;c=D.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;switch(c){case "GetBrowse_rid":X(C,c,W);break;case "GetGuide_rid":X(C,c,W);break;case "GetHome_rid":X(C,c,W);break;case "GetPlayer_rid":X(C,c,W);break;case "GetSearch_rid":X(C,c,W);break;case "GetSettings_rid":X(C,c,W);break;case "GetTrending_rid":X(C,c,W);break;case "GetWatchNext_rid":X(C,c,W);break;case "yt_red":C.isRedSubscriber=!!W;break;case "yt_ad":C.isMonetized=!!W}}return C};
_.GSm=function(D){var C=_.re("aft",D);if(C)return C;C=_.q6((D||"")+"TIMING_AFT_KEYS",["ol"]);for(var X=C.length,c=0;c<X;c++){var W=_.re(C[c],D);if(W)return W}return NaN};
_.VTm=function(D,C){_.$h("ytglobal.timing"+(C||"")+"ready_",D)};
_.re=function(D,C){if(D=_.ucm(C)[D])return typeof D==="number"?D:D[D.length-1]};
_.nO3=function(D){var C=_.re("_start",D),X=_.GSm(D),c=!TYW;C&&X&&c&&(wl3(Hor,new JfJ(Math.round(X-C),D)),TYW=!0)};
jZF=function(D){io3(D);zzW();wxo();D||(_.q6("TIMING_ACTION")&&_.M6("PREVIOUS_ACTION",_.q6("TIMING_ACTION")),_.M6("TIMING_ACTION",""))};
_.MTt=function(D){D=D===void 0?{}:D;_.lq(function(){Kt();Kaj();jZF();_.VTm(!1);D.cttAuthInfo&&(_.vE().cttAuthInfo=D.cttAuthInfo);_.M6("TIMING_AFT_KEYS",[]);D.isHot?_.hZ({loadType:"hot"}):_.hZ({loadType:"warm"});_.M6("TIMING_ACTION","");delete _.q6("TIMING_INFO",{}).yt_lt;_.lq(_.EOd)(D.startTime,void 0)})()};
_.Lt=function(D,C,X,c){C=C===void 0?{}:C;_.lq(function(){var W=X?X:D;xC(W);var p=C.sampleRate;if(!_.b("web_csi_action_sampling_enabled")||p===void 0||p<=1)p=!1;else{var g=BYR(W);p=vOj(g)%p!==0}p&&(_.vE(W).actionDisabled=!0);_.kC(W||"").info.actionType=D;C.cttAuthInfo&&(_.vE(W).cttAuthInfo=C.cttAuthInfo);_.M6(W+"TIMING_ACTION",D);_.lq(_.EOd)(C.startTime,W);p={actionType:c||_.xUF(D)};C.logPreviousAction&&(p.previousAction=_.xUF(_.q6("TIMING_ACTION")));(g=_.LN())&&g!=="UNDEFINED_CSN"&&(p.clientScreenNonce=
g);_.hZ(p,W);_.VTm(!0,W)})()};
xC=function(D){_.lq(function(){Kt(D);Kaj(D);jZF(D)})()};
qM3=function(){_.lq(function(){var D=[],C;for(C in _.Df("ytcsi.".slice(0,-1)))C.endsWith("data_")&&D.push(C.slice(0,-5));D=_.U(D);for(C=D.next();!C.done;C=D.next())xC(C.value);Kt()})()};
_.dU5=function(D){return _.lq(function(){return _.fbm("_start",D)})()};
_.hZ=function(D,C,X){_.lq(_.b5)(D,C,X===void 0?!1:X)};
_.sp=function(D,C,X){return _.lq(_.BE)(D,C,X)};
_.fbm=function(D,C){return _.lq(function(){var X=_.ucm(C);return D in X})()};
lbr=function(D){if(!_.b("universal_csi_network_ticks"))return"";D=_.mC(D)||"";for(var C=Object.keys(Rzm),X=0;X<C.length;X++){var c=C[X];if(D.includes(c))return c}return""};
Csm=function(D){if(!_.b("universal_csi_network_ticks"))return function(){};
var C=Rzm[D];return C?(_.mU(C),function(){var X=_.b("universal_csi_network_ticks")?(X=Dgm[D])?_.mU(X):!1:!1;return X}):function(){}};
_.mU=function(D,C,X){return _.lq(function(){if(_.fbm(D,X))return!1;_.sp(D,C,X);return!0})()};
_.ey=function(D,C,X){_.lq(function(){if(!_.dU5(X)||_.fbm(D,X))return!1;_.sp(D,C,X);return!0})()};
_.Ep=function(D){return _.lq(_.re)(D,void 0)};
Kt=function(D){_.dU5(D)&&_.sp("aa",void 0,D)};
_.pjo=function(D,C,X,c,W,p,g,a,O,P){var k=Xjt();p=new h8({veType:C,youtubeData:p,jspbYoutubeData:a});P=YC({automatedLogEventSource:P},k);W&&(P.cttAuthInfo=W);W={csn:k,pageVe:p.getAsJson()};_.b("expectation_logging")&&O&&O.screenCreatedLoggingExpectations&&(W.screenCreatedLoggingExpectations=O.screenCreatedLoggingExpectations);X&&X.visualElement?(W.implicitGesture={parentCsn:X.clientScreenNonce,gesturedVe:X.visualElement.getAsJson()},g&&(W.implicitGesture.gestureType=g)):X&&_.fQ(new _.Zf("newScreen() parent element does not have a VE - rootVe",
C));c&&(W.cloneCsn=c);D?HL("screenCreated",W,D,P):_.zu("screenCreated",W,P);wl3(J9J,new cFo(k));yP.clear();oLm.clear();WQn.clear();return k};
nt=function(D,C,X,c,W,p){p=p===void 0?{}:p;Sq3(D,C,X,[c],W===void 0?!1:W,p)};
Sq3=function(D,C,X,c,W,p){W=W===void 0?!1:W;p=p===void 0?{}:p;Object.assign(p,YC({cttAuthInfo:mP(C)||void 0},C));for(var g=_.U(c),a=g.next();!a.done;a=g.next()){a=a.value;var O=a.getAsJson();(_.ZI.isEmpty(O)||!O.trackingParams&&!O.veType)&&_.fQ(Error("Bf"));if(_.b("no_client_ve_attach_unless_shown")){var P=Ugj(a,C);if(O.veType&&!oLm.has(P)&&!WQn.has(P)&&!W){if(!_.b("il_attach_cache_limit")||yP.size<1E3){yP.set(P,[D,C,X,a]);return}_.b("il_attach_cache_limit")&&yP.size>1E3&&_.fQ(new _.Zf("IL Attach cache exceeded limit"))}a=
Ugj(X,C);yP.has(a)?gLo(X,C):WQn.set(a,!0)}}c=c.filter(function(k){k.csn!==C?(k.csn=C,k=!0):k=!1;return k});
X={csn:C,parentVe:X.getAsJson(),childVes:_.Gv(c,function(k){return k.getAsJson()})};
C==="UNDEFINED_CSN"?we("visualElementAttached",p,X):D?HL("visualElementAttached",X,D,p):_.zu("visualElementAttached",X,p)};
ICd=function(D,C,X,c,W,p,g){aCF(D,C,X,W,g)};
aCF=function(D,C,X,c,W){OUd(X,C);W=YC({cttAuthInfo:mP(C)||void 0,automatedLogEventSource:W},C);X={csn:C,ve:X.getAsJson(),eventType:1};c&&(X.clientData=c);C==="UNDEFINED_CSN"?we("visualElementShown",W,X):D?HL("visualElementShown",X,D,W):_.zu("visualElementShown",X,W)};
AFo=function(D,C,X,c){OUd(X,C);var W=YC({cttAuthInfo:mP(C)||void 0,automatedLogEventSource:void 0},C);X={csn:C,ve:X.getAsJson(),eventType:4};c&&(X.clientData=c);C==="UNDEFINED_CSN"?we("visualElementShown",W,X):D?HL("visualElementShown",X,D,W):_.zu("visualElementShown",X,W)};
Ps3=function(D,C,X,c,W,p){var g=(c=c===void 0?!1:c)?16:8;c=YC({cttAuthInfo:mP(C)||void 0,endOfSequence:c,automatedLogEventSource:p},C);X={csn:C,ve:X.getAsJson(),eventType:g};W&&(X.clientData=W);C==="UNDEFINED_CSN"?we("visualElementHidden",c,X):D?HL("visualElementHidden",X,D,c):_.zu("visualElementHidden",X,c)};
vLr=function(D,C,X,c,W,p){$gm(D,C,X,void 0,c,W,p)};
$gm=function(D,C,X,c,W,p,g){OUd(X,C);c=c||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";p=YC({cttAuthInfo:mP(C)||void 0,automatedLogEventSource:g},C);X={csn:C,ve:X.getAsJson(),gestureType:c};W&&(X.clientData=W);C==="UNDEFINED_CSN"?we("visualElementGestured",p,X):D?HL("visualElementGestured",X,D,p):_.zu("visualElementGestured",X,p)};
iUh=function(D,C,X,c){var W=YC({cttAuthInfo:mP(C)||void 0},C);X={csn:C,ve:X.getAsJson(),clientData:c};C==="UNDEFINED_CSN"?we("visualElementStateChanged",W,X):D?HL("visualElementStateChanged",X,D,W):_.zu("visualElementStateChanged",X,W)};
kmF=function(){var D=p8m(16);for(var C=[],X=0;X<D.length;X++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[X]&63));return C.join("")};
we=function(D,C,X){uId.push({payloadName:D,payload:X,jspbPayload:void 0,options:C});Qdr||(Qdr=jEh())};
HHJ=function(D){if(uId){for(var C=_.U(uId),X=C.next();!X.done;X=C.next())X=X.value,X.payload&&(X.payload.csn=D.csn,_.zu(X.payloadName,X.payload,X.options));uId.length=0}Qdr=0};
Ugj=function(D,C){return""+D.getAsJson().veType+D.getAsJson().veCounter+C};
OUd=function(D,C){if(_.b("no_client_ve_attach_unless_shown")){var X=Ugj(D,C);oLm.set(X,!0);gLo(D,C)}};
gLo=function(D,C){D=Ugj(D,C);yP.has(D)&&(C=yP.get(D)||[],nt(C[0],C[1],C[2],C[3],!0),yP.delete(D))};
YC=function(D,C){_.b("log_sequence_info_on_gel_web")&&(D.sequenceGroup=C);return D};
_.F_=function(D,C,X){_.lq(nt)(void 0,D,C,X)};
_.ZS=function(D,C,X){_.lq(Sq3)(void 0,D,C,X)};
_.Go=function(D,C){_.lq(ICd)(void 0,D,C,void 0,void 0,void 0)};
_.VP=function(D,C,X){_.lq(function(){_.pC(C,function(c){AFo(void 0,D,c,X)})})()};
_.To=function(D,C,X,c){_.lq(function(){_.pC(C,function(W){Ps3(void 0,D,W,X,c)})})()};
_.HE=function(D,C,X){_.lq(vLr)(void 0,D,C,X,void 0)};
_.JZ=function(D,C,X,c){_.lq($gm)(void 0,D,C,X,c,void 0)};
_.zo=function(D,C,X){_.lq(iUh)(void 0,D,C,X,void 0)};
BXh=function(D,C){jy.set(D,C)};
bUZ=function(D){MC.initialized=!0;MC.sessionId=D.sessionId||"";MC.enabledSpans=D.enabledSpans;D.shouldSampleFn!=null&&(MC.shouldSampleFn=D.shouldSampleFn)};
rFh=function(D){MC.processors.push(D)};
qC=function(D){return MC.initialized?MC.enabledSpans?MC.enabledSpans[D]:!0:!1};
LQj=function(D,C,X){return qC(D)&&MC.shouldSampleFn(D,C,KQj)?new hrj(D,C,X):xgo};
ft=function(D,C,X){if(typeof X==="function"){var c=X;X=void 0}var W=LQj(D,C,X),p;if(((p=X)==null?void 0:p.endTime)!=null)return c&&_.fQ(Error("Ff")),W;var g;W!==xgo&&((g=X)==null?void 0:g.active)!==!1&&MC.stack.push(W);if(!c)return W;if(W===xgo)return c(W);try{var a=c(W);if(a instanceof Promise)return a.then(function(O){W.end();return O},function(O){W.end("SPAN_STATUS_ERROR");
throw O;});
W.end();return a}catch(O){throw W.end("SPAN_STATUS_ERROR"),O;}};
sdW=function(){lw.subscribe("handleError",function(D){try{for(var C in de)try{var X=de[C];typeof de[C]==="function"&&(X=X());D.params[C]=typeof de[C]==="object"?JSON.stringify(X):String(X)}catch(c){_.fQ(c)}}catch(c){_.fQ(c)}})};
mgd=function(){};
ern=function(D,C){var X=Object.keys(D);D=new _.Zf("[Command Handler] "+C,{filteredCommandNames:X,originalCommand:D});_.MN(D)};
ELd=function(D,C){ern(D,C+" was called but not set")};
tm3=function(D){return function(){return new D}};
R7=function(D){return function(){return _.iX().resolve(D)}};
NXd=function(D,C){var X=_.r(D,_.Xf);if(X&&(X=C[X.signal]))return X();D=_.U(Object.keys(D));for(X=D.next();!X.done;X=D.next())if(X=X.value,C[X]&&(X=C[X]))return X()};
_.l5=function(D,C,X,c){return{browseEndpoint:{browseId:D},commandMetadata:{webCommandMetadata:{url:C,rootVe:X,webPageType:c===void 0?"WEB_PAGE_TYPE_BROWSE":c}}}};
YqF=function(D,C,X){var c=C=C===void 0?0:C;X=X===void 0?0:X;var W=X-c;return _.D7(D,"PPSV",void 0,void 0,(W>600?0:W<60||X<=0||c/X>.9)?0:C)};
_.D7=function(D,C,X,c,W){var p="/watch?v="+D;D={videoId:D};C&&(D.playlistId=C,p+="&list="+C);c&&(p+="&pp="+c);W&&(D.startTimeSeconds=W,p+="&t="+W+"s");C={watchEndpoint:D,commandMetadata:{webCommandMetadata:{url:p,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};X&&(C.clickTrackingParams=X);c&&(_.r(C,_.TC).playerParams=c);return C};
yFo=function(D){return{browseEndpoint:{browseId:"VL"+D},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+D,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
nLW=function(D){if(D){var C;if(D){var X=(C=_.r(D.commandMetadata,_.ge))==null?void 0:C.url;C=!(!X||X==="/service_ajax")}else C=!1;if(C)return D;var c;if(D=(c=_.r(D,_.pt))==null?void 0:c.commands)for(c=_.U(D),D=c.next();!D.done;D=c.next())if(D=nLW(D.value))return D}};
_.Ce=function(D){return{runs:[{text:D}]}};
wj3=function(D,C){return D&&C?{runs:[{text:D,navigationEndpoint:C}]}:void 0};
X$=function(D){return D?_.Ce(D):void 0};
_.c_=function(D){return D?{simpleText:D}:void 0};
_.oI=function(D){var C=D.type;D=D.payload;C={type:C};D!==void 0&&(C.payload=D);return C};
FQJ=function(D,C,X){for(var c=Object.assign({},D),W=_.U(Object.keys(C)),p=W.next();!p.done;p=W.next()){p=p.value;var g=D[p],a=C[p];if(a===void 0)delete c[p];else if(g===void 0)c[p]=a;else if(Array.isArray(a)&&Array.isArray(g))c[p]=X?[].concat(_.VB(g),_.VB(a)):a;else if(!Array.isArray(a)&&_.MR(a)&&!Array.isArray(g)&&_.MR(g))c[p]=FQJ(g,a,X);else if(typeof a===typeof g)c[p]=a;else return C=new _.Zf("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:p,originalValue:g,updateValue:a}),
_.MN(C),D}return c};
Vmh=function(D){if(!D.length)return"";try{if(ZU5)return ZU5.decode(D);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(D)}catch(g){}for(var C=0,X=[],c=D.length;C<c;){for(var W=0;W<1024&&C<c;){var p=D[C++];if(p<128)GmF[W++]=p;else{if(p<224)p=(p&31)<<6|D[C++]&63;else if(p<240)p=(p&15)<<12|(D[C++]&63)<<6|D[C++]&63;else{if(W+1===1024){--C;break}p=(p&7)<<18|(D[C++]&63)<<12|(D[C++]&63)<<6|D[C++]&63;p-=65536;GmF[W++]=55296|p>>10;p=56320|p&1023}GmF[W++]=p}}p=String.fromCharCode.apply(String,
GmF);W<1024&&(p=p.substring(0,W));X.push(p)}return X.join("")};
HUW=function(D,C){var X;if((X=TX3)==null?0:X.encodeInto)return C=TX3.encodeInto(D,C),C.read<D.length?D.length*4:C.written;for(var c=X=0;c<D.length;c++){var W=D.charCodeAt(c);W<128?C[X++]=W:(W<2048?C[X++]=W>>6|192:((W&64512)===55296&&c+1<D.length&&(D.charCodeAt(c+1)&64512)===56320?(W=65536+((W&1023)<<10)+(D.charCodeAt(++c)&1023),C[X++]=W>>18|240,C[X++]=W>>12&63|128):C[X++]=W>>12|224,C[X++]=W>>6&63|128),C[X++]=W&63|128)}return X};
JFo=function(D,C,X){if(C&&X&&X.buffer===C.exports.memory.buffer){var c=C.realloc(X.byteOffset,D);if(c)return new Uint8Array(C.exports.memory.buffer,c,D)}D=C?new Uint8Array(C.exports.memory.buffer,C.malloc(D),D):new Uint8Array(D);X&&D.set(X);return D};
_.pe=function(D){D=new zrd(new jdt([_.Dk(decodeURIComponent(D))]));if(Mmm(D,2)){var C=W_(D);var X=D.pos;var c=D.arrayView;X=X===void 0?0:X;var W=C===void 0?-1:C;X=X===void 0?0:X;W=W===void 0?-1:W;if(c.totalLength&&W){W<0&&(W=c.totalLength-X);c.focus(X);if(!(X-c.arrayPos+W<=c.arrays[c.arrayIdx].length)){var p=c.arrayIdx,g=c.arrayPos;c.focus(X+W-1);g=new Uint8Array(c.arrayPos+c.arrays[c.arrayIdx].length-g);for(var a=0,O=p;O<=c.arrayIdx;O++)g.set(c.arrays[O],a),a+=c.arrays[O].length;c.arrays.splice(p,
c.arrayIdx-p+1,g);c.arrayIdx=0;c.arrayPos=0;c.focus(X)}p=c.arrays[c.arrayIdx];c=new DataView(p.buffer,p.byteOffset+X-c.arrayPos,W)}else c=new DataView(new ArrayBuffer(0));c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);D.pos+=C;C=c}else C=void 0;C=C?Vmh(C):void 0;D=Mmm(D,4)?W_(D):void 0;c=qqo[D];if(typeof c==="undefined")throw D=new _.Zf("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:D}),_.MN(D),D;return{entityTypeFieldNumber:D,entityType:c,entityId:C}};
_.gJ=function(D,C,X){X=X===void 0?0:X;var c=new fCm;if(TX3)D=TX3.encode(D);else{var W=new Uint8Array(Math.ceil(D.length*1.2)),p=HUW(D,W);W.length<p&&(W=new Uint8Array(p),p=HUW(D,W));W.length>p&&(W=W.subarray(0,p));D=W}D!==void 0&&(SV(c,18),W=D.length,SV(c,W),U1(c,W),c.buf.set(D,c.pos),c.pos+=W);D=dgm[C];if(typeof D==="undefined")throw X=new _.Zf("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:C}),_.MN(X),X;D!==void 0&&(SV(c,32),SV(c,D));SV(c,40);SV(c,1);C=new Uint8Array(c.buf.buffer,
c.buf.byteOffset,c.pos);return encodeURIComponent(_.tP(C,X))};
RrW=function(D){D=D.key||D.id;if(!D)throw Error("Hf");return D};
Dko=function(D,C){D=D===void 0?{}:D;return lCZ(D,C)};
CPm=function(D,C,X,c){if(c===void 0)return c=Object.assign({},D[C]||{}),X=(delete c[X],c),c={},Object.assign({},D,(c[C]=X,c));var W={},p={};return Object.assign({},D,(p[C]=Object.assign({},D[C],(W[X]=c,W)),p))};
XVn=function(D,C,X,c,W){var p=D[C];if(p==null||!p[X])return D;c=FQJ(p[X],c,W==="REPEATED_FIELDS_MERGE_OPTION_APPEND");W={};p={};return Object.assign({},D,(p[C]=Object.assign({},D[C],(W[X]=c,W)),p))};
_.aI=function(D,C,X){return D[C]?D[C][X]||null:null};
o3J=function(){if(chW)return chW();var D={};chW=il("PersistentEntityStoreDb",{objectStores:(D.EntityStore={addedAtVersion:1},D.EntityAssociationStore={addedAtVersion:2},D),shared:!1,upgrade:function(C,X){X(1)&&cL(X3(C,"EntityStore",{keyPath:"key"}),"entityType","entityType");X(2)&&(C=X3(C,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),cL(C,"byParentEntityKey","parentEntityKey"),cL(C,"byChildEntityKey","childEntityKey"))},
version:3});return chW()};
WHr=function(D){return _.gD(o3J(),D)};
II=function(D){return window.Int32Array?new Int32Array(D):Array(D)};
SSd=function(D){return _.gD(pV3(),D)};
Uk5=function(D){return new O1("WRONG_DATA_TYPE",{encoderVersion:D})};
g3Z=function(D){return D instanceof Error?new O1("UNKNOWN_ENCODE_ERROR",{originalMessage:D.message}):new O1("UNKNOWN_ENCODE_ERROR")};
apt=function(D){return D instanceof Error?new O1("UNKNOWN_DECODE_ERROR",{originalMessage:D.message}):new O1("UNKNOWN_DECODE_ERROR")};
Ipm=function(D,C){D=D instanceof O1?D:C(D);_.MN(D);throw D;};
O_5=function(D){D=(new TextEncoder).encode(D).subarray(0,16);var C=new Uint8Array(16);C.set(D);return C};
PPn=function(D){var C=AhF[D];if(C)return C;_.fQ(new _.Zf("Entity model not found.",{entityType:D}))};
_.AX=function(){$kJ||($kJ=v3W());return $kJ};
v3W=function(){var D,C,X;return _.I(function(c){if(c.nextAddress==1)return _.KK(c,2),c.yield(_.vz(),4);if(c.nextAddress!=2){D=c.yieldResult;if(!D||!_.FL()||typeof _.co.BroadcastChannel==="undefined")return c.return();C=new i_J;return c.return(new P_(D,C))}X=_.Eu(c);X instanceof Error&&_.MN(X);return c.return()})};
_.$P=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1){X=D.mutations;if(!X||X.length<=0)return c.return();C&&C.dispatch(_.oI({type:"ENTITY_LOADED",payload:X}));return c.yield(k0F(X),2)}X.length=0;_.t_(c)})};
k0F=function(D){var C;return _.I(function(X){return X.nextAddress==1?X.yield(_.AX(),2):(C=X.yieldResult)?X.yield(_.v_(C,"readwrite",function(c){for(var W={},p=_.U(D),g=p.next(),a={};!g.done;a={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},g=p.next())a.mutation$jscomp$8=g.value,a.mutation$jscomp$8.entityKey&&ujt(a.mutation$jscomp$8)&&(a.mutationEntityType$jscomp$3=(0,_.ZI.getAnyKey)(a.mutation$jscomp$8.payload),g=void 0,a.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(g=function(O){return function(){return _.QcJ(c,
O.mutation$jscomp$8.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(a)),a.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(g=function(O){return function(){return BRR(c,O.mutation$jscomp$8.entityKey)}}(a)),a.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(g=function(O){return function(){return b_m(c,O.mutation$jscomp$8.entityKey,O.mutation$jscomp$8.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(a)),g&&(W[a.mutation$jscomp$8.entityKey]=
W[a.mutation$jscomp$8.entityKey]?W[a.mutation$jscomp$8.entityKey].then(g):g()));
return Xs.all(Object.values(W))}),0):X.return()})};
ujt=function(D){var C;D=(C=D.options)==null?void 0:C.persistenceOption;return D==="ENTITY_PERSISTENCE_OPTION_PERSIST"||D==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
hbF=function(D,C){var X,c;_.I(function(W){if(W.nextAddress==1)return W.yield(_.AX(),2);if(W.nextAddress!=3)return(X=W.yieldResult)?W.yield(_.v_(X,"readonly",function(p){var g={},a=Object.keys(C).map(function(O){var P=C[O]?[].concat(_.VB(C[O])):[];return rh3(p,O,P,g)});
return Xs.all(a).then(function(){return g})}),3):W.return();
c=W.yieldResult;Object.keys(c).length>0&&D.dispatch(KHr(c));_.t_(W)})};
rh3=function(D,C,X,c){return i8(D,C,X).then(function(W){c[C]=xkh(X,W)})};
xkh=function(D,C){if(C.length!==D.length)throw Error("Kf");return C.reduce(function(X,c,W){X[D[W]]=c;return X},{})};
mkd=function(D){var C=D.filter(function(W){var p;return(W==null?void 0:(p=W.transferEntity)==null?void 0:p.transferState)==="TRANSFER_STATE_COMPLETE"}).length,X=D.filter(function(W){var p;
return(W==null?void 0:(p=W.transferEntity)==null?void 0:p.transferState)==="TRANSFER_STATE_FAILED"}).length,c=D.filter(function(W){var p;
return(W==null?void 0:(p=W.transferEntity)==null?void 0:p.transferState)&&LH5.includes(W.transferEntity.transferState)});
if(!(C||c!=null&&c.length))return 0;C=_.scF(c)+C;D=D.length-X;return D===0?0:Math.round(C*100/D)/100};
_.scF=function(D){var C=[];C=C.concat.apply(C,_.VB(D.filter(function(p){return p.streamEntity}).map(function(p){var g=Object.assign({},p.streamEntity),a,O=(a=p.transferEntity)==null?void 0:a.transferState;
g.streamsProgress=g.streamsProgress||[];g.streamsProgress=g.streamsProgress.map(function(P){var k=Object.assign({},P);k.numBytesDownloaded=O==="TRANSFER_STATE_COMPLETE"?P.numTotalBytes:P.numBytesDownloaded;return k});
return g}).map(function(p){return p.streamsProgress})));
var X=D=0;C=_.U(C);for(var c=C.next();!c.done;c=C.next()){var W=c.value;c=Number(W.numBytesDownloaded);W=Number(W.numTotalBytes);X+=isNaN(c)?0:c;D+=isNaN(W)?0:W}return D===0?0:Math.round(X*100/D)/100};
eb5=function(D){if(!D||!D.expirationTimestamp||!D.action)return!1;var C=(0,_.kh)()/1E3;return Number(D.expirationTimestamp)>=C};
kP=function(D){return D&&D.expirationTimestamp&&D.action?eb5(D)&&D.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.u8=function(D){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(D||"TRANSFER_STATE_UNKNOWN")};
E3h=function(D){var C=new fCm;if(D!==void 0){var X=Math.ceil(Math.log2(D.length*4+2)/7);X=X===void 0?2:X;SV(C,10);C.submessagePosStack.push(C.pos);C.submessagePosStack.push(X);C.pos+=X;U1(C,D.length*1.2);X=HUW(D,C.buf.subarray(C.pos));C.pos+X>C.buf.length&&(U1(C,X),X=HUW(D,C.buf.subarray(C.pos)));C.pos+=X;D=C.submessagePosStack.pop();X=C.submessagePosStack.pop();for(var c=C.pos-X-D;D--;){var W=D?128:0;C.view.setUint8(X++,c&127|W);c>>=7}}C=new Uint8Array(C.buf.buffer,C.buf.byteOffset,C.pos);return(new TextDecoder("utf-8")).decode(C)};
_.QZ=function(D){var C=0;D=_.U(D);for(var X=D.next(),c={};!X.done;c={transferState$jscomp$3:void 0},X=D.next()){var W=X.value,p=void 0;X=(p=W.streamEntity)!=null?p:{};p=void 0;c.transferState$jscomp$3=(p=W.transferEntity)==null?void 0:p.transferState;p=W=void 0;((W=X)==null?0:(p=W.streamsProgress)==null?0:p.length)&&X.streamsProgress.forEach(function(g){return function(a){a=Number(g.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded);isFinite(a)&&(C+=a)}}(c))}return C};
tJr=function(D){return D.some(function(C){var X;if(!(C==null?0:(X=C.transferEntity)==null?0:X.transferState)){var c;return!(C==null?0:(c=C.policyEntity)==null?0:c.action)||C.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return LH5.includes(C.transferEntity.transferState)})};
NRn=function(D,C){if(!C)return!1;if(_.b("of_pb_en_po_ks"))return!0;var X;D=(X=_.aI(D,"offlineVideoPolicy",_.gJ(C,"offlineVideoPolicy")))!=null?X:void 0;return!!D&&kP(D)};
_.yhW=function(D){var C=["TRANSFER_STATE_COMPLETE"];C=C===void 0?YSJ:C;return D.filter(function(X){var c,W;return C.includes((W=(c=X.transferEntity)==null?void 0:c.transferState)!=null?W:"TRANSFER_STATE_UNKNOWN")})};
n3j=function(D,C){if(C){var X,c=(X=_.aI(D,"playbackData",_.gJ(C,"playbackData")))!=null?X:null,W;X=(W=_.aI(D,"transfer",_.gJ(C,"transfer")))!=null?W:null;var p;W=(p=_.aI(D,"offlineVideoStreams",_.gJ(C,"offlineVideoStreams")))!=null?p:null;var g;D=(g=_.aI(D,"offlineVideoPolicy",_.gJ(C,"offlineVideoPolicy")))!=null?g:null;if(c||X||W||D)return{playbackDataEntity:c,transferEntity:X,streamEntity:W,policyEntity:D}}};
_.B_=function(D){var C=D.playbackData;if(!C)return[];var X=[];C=_.U(Object.keys(C));for(var c=C.next();!c.done;c=C.next()){var W=c.value;if(!wVo(D,_.pe(W).entityId)&&(c=n3j(D,_.pe(W).entityId))){var p=void 0,g=void 0;W=(g=Number((p=_.aI(D,"playbackData",W))==null?void 0:p.streamDownloadTimestampSeconds))!=null?g:(0,_.kh)();X.push({entity:c,streamDownloadTimestamp:W})}}return X.sort(function(a,O){var P=a.streamDownloadTimestamp,k=O.streamDownloadTimestamp;return k===P?a.entity.streamEntity&&!O.entity.streamEntity?
1:-1:k-P}).map(function(a){return a.entity})};
FHm=function(D){return _.yhW(_.B_(D))};
_.Z_m=function(D){return _.B_(D).filter(function(C){var X;if(((X=C.policyEntity)==null?0:X.action)&&C.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var c;if((c=C.transferEntity)==null?0:c.transferState){var W;return LH5.includes((W=C.transferEntity)==null?void 0:W.transferState)}return!0})};
wVo=function(D,C){var X;return((X=_.aI(D,"downloadStatusEntity",_.gJ(C,"downloadStatusEntity")))==null?void 0:X.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
G0F=function(D){var C;if(D==null?0:(C=D.playbackDataEntity)==null?0:C.key)return _.pe(D.playbackDataEntity.key).entityId;var X;if(D==null?0:(X=D.transferEntity)==null?0:X.key)return _.pe(D.transferEntity.key).entityId;var c;if(D==null?0:(c=D.streamEntity)==null?0:c.key)return _.pe(D.streamEntity.key).entityId;var W;if(D==null?0:(W=D.policyEntity)==null?0:W.key)return _.pe(D.policyEntity.key).entityId};
TRh=function(D){var C=new Set,X;D=(X=D.mainDownloadsListEntity)==null?void 0:X[VJR];var c;if(!(D==null?0:(c=D.downloads)==null?0:c.length))return C;var W;D==null||(W=D.downloads)==null||W.forEach(function(p){(p==null?0:p.videoItem)&&C.add(p.videoItem)});
return C};
b8=function(D,C){if(C){var X=_.aI(D,"mainVideoEntity",_.gJ(C,"mainVideoEntity")),c=_.aI(D,"downloadStatusEntity",_.gJ(C,"downloadStatusEntity")),W=_.aI(D,"ytMainChannelEntity",_.gJ(C,"ytMainChannelEntity")),p={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};D=n3j(D,C);c=(c==null?void 0:c.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.b("woffle_render_failed_download_state_ks")&&(c==null?void 0:c.downloadState)==="DOWNLOAD_STATE_FAILED";!D&&c&&(D=p);if(D&&X&&
W)return Object.assign({},{videoEntity:X,channelEntity:W},D)}};
Jh5=function(D,C){return H_Z(D,C)==="TRANSFER_STATE_COMPLETE"&&NRn(D,C)};
zb5=function(D,C){if(!C)return!1;var X;D=(X=_.aI(D,"playbackData",_.gJ(C,"playbackData")))!=null?X:void 0;return!!D&&!!D.playerResponseJson};
H_Z=function(D,C){if(!C)return"TRANSFER_STATE_UNKNOWN";var X=_.aI(D,"transfer",_.gJ(C,"transfer"));if(X){var c;return(c=X.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN"}X=_.aI(D,"offlineOrchestrationActionWrapperEntity",_.gJ(C,"offlineOrchestrationActionWrapperEntity"));D=_.aI(D,"mainVideoEntity",_.gJ(C,"mainVideoEntity"));return X||D?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
jcW=function(D,C){if(!C)return"TRANSFER_STATE_UNKNOWN";if(D=_.aI(D,"transfer",_.gJ(C,"transfer"))){var X;return(X=D.transferState)!=null?X:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
MJR=function(D,C){return C&&(D=_.aI(D,"videoPlaybackPositionEntity",_.gJ(C,"videoPlaybackPositionEntity")),D==null?0:D.lastPlaybackPositionSeconds)?Number(D.lastPlaybackPositionSeconds):0};
fpW=function(D,C){return qSm(D).some(function(X){var c;return(X==null?void 0:(c=X.mainPlaylistEntity)==null?void 0:c.playlistId)===C})};
Rbt=function(D,C,X){var c=dkh(D,C);if(!c.length)return[];C=[];c=_.U(c);for(var W=c.next();!W.done;W=c.next()){W=W.value;var p=b8(D,W);X&&H_Z(D,W)!=="TRANSFER_STATE_COMPLETE"||p&&C.push(p)}return C};
dkh=function(D,C){if(!C)return[];var X=_.gJ(C,"mainPlaylistEntity"),c;C=(c=D.mainPlaylistEntity)==null?void 0:c[X];c=[];if(C==null||!C.videos)return c;C=_.U(C.videos);for(X=C.next();!X.done;X=C.next()){X=X.value;var W=void 0,p=void 0,g=void 0,a=(W=D)==null?void 0:(p=W.mainPlaylistVideoEntity)==null?void 0:(g=p[X])==null?void 0:g.video;a&&(X=_.pe(a).entityId)&&c.push(X)}return c};
lpj=function(D,C){if(C){var X=_.aI(D,"mainPlaylistEntity",_.gJ(C,"mainPlaylistEntity")),c=_.aI(D,"mainPlaylistDownloadStateEntity",_.gJ(C,"mainPlaylistDownloadStateEntity"));D=_.aI(D,"ytMainChannelEntity",_.gJ(C,"ytMainChannelEntity"));if(c&&X)return Object.assign({},{mainPlaylistEntity:X,mainPlaylistDownloadStateEntity:c},!!D&&{channelEntity:D})}};
qSm=function(D){return DLJ(D).sort(function(C,X){return X.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return C.downloadedPlaylistEntities})};
DLJ=function(D){var C=D.mainPlaylistDownloadStateEntity,X=[];if(!C)return X;for(var c=_.U(Object.keys(C)),W=c.next();!W.done;W=c.next()){var p=W.value;W=lpj(D,_.pe(p).entityId);var g=void 0;p=Number((g=C[p])==null?void 0:g.addedTimestampMillis);g=isNaN(p)?(0,_.kh)():p;W!==void 0&&X.push({downloadedPlaylistEntities:W,addedTimestampMillis:g})}return X};
CYW=function(D){var C,X=(C=D.mainPlaylistVideoEntity)!=null?C:{};return new Set(qSm(D).reduce(function(c,W){c=c===void 0?[]:c;var p,g;W==null||(p=W.mainPlaylistEntity)==null||(g=p.videos)==null||g.forEach(function(a){var O;(a=(O=X[a])==null?void 0:O.video)&&c.push(a)});
return c},[]))};
Xmh=function(D){return"downloadedMusicPlaylistEntities"in D};
cyo=function(D){return"mainPlaylistEntity"in D&&"mainPlaylistDownloadStateEntity"in D};
oZd=function(D){return"videoEntity"in D&&"channelEntity"in D};
WV5=function(D){var C=D.musicPlaylistDownloadMetadataEntity,X=[];if(!C)return X;for(var c=_.U(Object.keys(C)),W=c.next();!W.done;W=c.next()){W=W.value;a:{var p=D,g=_.pe(W).entityId;if(g){var a=_.aI(p,"musicPlaylist",_.gJ(g,"musicPlaylist"));p=_.aI(p,"musicPlaylistDownloadMetadataEntity",_.gJ(g,"musicPlaylistDownloadMetadataEntity"));if(a&&p){a={musicPlaylistEntity:a,musicPlaylistDownloadStateEntity:p};break a}}a=void 0}p=void 0;W=Number((p=C[W])==null?void 0:p.addedTimestampMillis);W=isNaN(W)?(0,_.kh)():
W;a!==void 0&&X.push({downloadedMusicPlaylistEntities:a,addedTimestampMillis:W})}return X};
pmd=function(D){var C=new Set;D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,"musicPlaylistEntity"in X&&"musicPlaylistDownloadStateEntity"in X){X=_.U(X.musicPlaylistEntity.tracks);for(var c=X.next();!c.done;c=X.next())C.add(c.value)}return C};
S7F=function(D,C){if(C){var X=_.aI(D,"musicTrack",_.gJ(C,"musicTrack")),c=_.aI(D,"musicArtist",_.gJ(C,"musicArtist"))||{};if((D=n3j(D,C))&&X&&c)return Object.assign({},{musicTrackEntity:X,musicArtistEntity:c},D)}};
ULj=function(D){var C=D.musicTrackDownloadMetadataEntity,X=[];if(!C)return[];C=_.U(Object.keys(C));for(var c=C.next();!c.done;c=C.next()){var W=c.value;c=S7F(D,_.pe(W).entityId);var p=void 0;W=Number((p=_.aI(D,"musicTrackDownloadMetadataEntity",W))==null?void 0:p.addedTimestampMillis);p=isNaN(W)?(0,_.kh)():W;c!==void 0&&X.push({downloadedMusicEntities:c,addedTimestampMillis:p})}return X};
Iem=function(D,C){if(!C)return[];if(Object.values(gZ5).includes(C))return aed(D,C);C=_.gJ(C,"musicPlaylist");var X;D=(X=D.musicPlaylist)==null?void 0:X[C];X=[];if(D==null||!D.tracks)return X;D=_.U(D.tracks);for(C=D.next();!C.done;C=D.next())(C=_.pe(C.value).entityId)&&X.push(C);return X};
aed=function(D,C){var X=new Set,c=WV5(D).map(function(p){return p.downloadedMusicPlaylistEntities});
c=pmd(c);c=_.U(c);for(var W=c.next();!W.done;W=c.next())(W=_.pe(W.value).entityId)&&X.add(W);return O4m(D).downloadedMusicEntities.filter(function(p){var g;if((g=p.musicTrackEntity)!=null&&g.videoId){p=p.musicTrackEntity;if(g=C==="PPOM"?!0:!X.has(p.videoId))b:switch(p=p.musicVideoType,C){case "PPSE":g=p==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:g=p!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}p=g}else p=!1;return p}).map(function(p){var g;
return(g=p.musicTrackEntity)==null?void 0:g.videoId})};
O4m=function(D){var C=ULj(D).sort(function(X,c){return c.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return"downloadedMusicEntities"in X?X.downloadedMusicEntities:Xmh(X)?X.downloadedMusicPlaylistEntities:{}});
D=WV5(D).sort(function(X,c){return c.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return"downloadedMusicEntities"in X?X.downloadedMusicEntities:Xmh(X)?X.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:C,downloadedMusicPlaylistEntities:D}};
PYZ=function(D,C){C=_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Iem(D,C):dkh(D,C);if(!C.length)return"TRANSFER_STATE_UNKNOWN";C=C.map(function(X){return jcW(D,X)});
return Ayo(C)};
Ayo=function(D){var C=new Set(D);if(C.has("TRANSFER_STATE_FAILED")&&C.size===1)return"TRANSFER_STATE_FAILED";C.delete("TRANSFER_STATE_FAILED");if(C.has("TRANSFER_STATE_UNKNOWN")&&C.size===1)return"TRANSFER_STATE_PRE_TRANSFER";C.delete("TRANSFER_STATE_UNKNOWN");if(C.has("TRANSFER_STATE_PRE_TRANSFER")&&C.size===1||C.size===0)return"TRANSFER_STATE_PRE_TRANSFER";D=C.has("TRANSFER_STATE_TRANSFERRING");C=C.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return D||C?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
rJ=function(D){var C=D.mainVideoDownloadStateEntity,X=[];if(!C)return[];C=_.U(Object.keys(C));for(var c=C.next();!c.done;c=C.next()){var W=c.value;if(!wVo(D,_.pe(W).entityId)){c=b8(D,_.pe(W).entityId);var p=void 0,g=void 0;W=(g=Number((p=_.aI(D,"mainVideoDownloadStateEntity",W))==null?void 0:p.addedTimestampMillis))!=null?g:(0,_.kh)();c!==void 0&&X.push({downloadedVideoEntities:c,addedTimestampMillis:W})}}return X};
$Lm=function(D){return rJ(D).sort(function(C,X){return X.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return C.downloadedVideoEntities})};
_.i4Z=function(D){var C=CYW(D),X=_.Ke(D),c=TRh(D),W=rJ(D).filter(function(g){var a,O;if((g==null?void 0:(a=g.downloadedVideoEntities)==null?void 0:(O=a.transferEntity)==null?void 0:O.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var P,k;g=g==null?void 0:(P=g.downloadedVideoEntities)==null?void 0:(k=P.videoEntity)==null?void 0:k.key;return _.b("kevlar_use_library_entity")?g&&(c.has(g)||X[g]):g&&!C.has(g)}),p=DLJ(D).filter(function(g){return PYZ(D,g.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.VB(W),_.VB(p)).sort(function(g,a){return a.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return vZ3(g)})};
klJ=function(D,C){if(C&&NRn(D,C)){var X,c,W=(c=(X=_.aI(D,"playbackData",_.gJ(C,"playbackData")))!=null?X:void 0)==null?void 0:c.playerResponseJson;if(W){try{var p=JSON.parse(W);var g=_.aI(D,"transfer",_.gJ(C,"transfer")),a=MJR(D,C);a&&(p=Object.assign({},p,{playerConfig:Object.assign({},p.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+a*1E3}}})}));p.cotn=g==null?void 0:g.cotn}catch(O){}return p}}};
_.Qsr=function(D){var C,X,c;D=(c=(X=((C=D.downloadsPageViewConfigurationEntity)!=null?C:{})[_.hX])==null?void 0:X.smartDownloadsOptInBannerVisibility)!=null?c:{};var W;return(W=_.r(D,uCr))!=null?W:{}};
_.Ke=function(D){var C,X,c;D=(c=(X=((C=D.mainDownloadsListEntity)!=null?C:{})[_.Bph])==null?void 0:X.downloads)!=null?c:[];C={};X=_.U(D);for(c=X.next();!c.done;c=X.next())D=void 0,C[(D=c.value.videoItem)!=null?D:""]=!0;return C};
b4h=function(D){var C=_.Ke(D);if(Object.keys(C).length===0)return!1;var X=D.mainVideoEntity;if(!X)return!0;X=_.U(Object.keys(X));for(var c=X.next();!c.done;c=X.next()){c=c.value;var W=_.pe(c).entityId;if(C[c]&&!wVo(D,W))return!1}return!0};
_.xP=function(D){var C=_.Ke(D);return rJ(D).sort(function(X,c){return X.addedTimestampMillis-c.addedTimestampMillis}).map(function(X){return X.downloadedVideoEntities}).filter(function(X){var c;
return(X=X==null?void 0:(c=X.videoEntity)==null?void 0:c.key)&&!!C[X]})};
_.KVF=function(D){var C,X,c;D=(c=(X=((C=D.downloadsPageViewConfigurationEntity)!=null?C:{})[_.hX])==null?void 0:X.downloadsUpsellBannerVisibility)!=null?c:{};var W;return(W=_.r(D,rym))!=null?W:{}};
vZ3=function(D){return"downloadedVideoEntities"in D?D.downloadedVideoEntities:"downloadedPlaylistEntities"in D?D.downloadedPlaylistEntities:{}};
hfm=function(D){var C=_.Ke(D),X=CYW(D),c=rJ(D).filter(function(W){var p,g;return(W=W==null?void 0:(p=W.downloadedVideoEntities)==null?void 0:(g=p.videoEntity)==null?void 0:g.key)&&!C[W]&&!X.has(W)});
D=DLJ(D);return[].concat(_.VB(c),_.VB(D)).sort(function(W,p){return p.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return vZ3(W)})};
_.Le=function(D){if(!_.b("kevlar_use_library_entity"))return hfm(D);var C=rJ(D).filter(function(c){var W,p;if(W=c=c==null?void 0:(W=c.downloadedVideoEntities)==null?void 0:(p=W.videoEntity)==null?void 0:p.key){var g,a,O;W=((a=(g=D.mainDownloadsListEntity)==null?void 0:g[VJR])==null?0:(O=a.downloads)==null?0:O.length)?TRh(D).has(c):!1}return W}),X=DLJ(D);
return[].concat(_.VB(C),_.VB(X)).sort(function(c,W){return W.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return vZ3(c)})};
xLh=function(D){var C=_.Ke(D),X=CYW(D);return $Lm(D).filter(function(c){var W;return(c=c==null?void 0:(W=c.videoEntity)==null?void 0:W.key)&&!C[c]&&!X.has(c)})};
LVd=function(D){if(!_.b("kevlar_use_library_entity"))return xLh(D);var C=_.Ke(D),X=TRh(D);return $Lm(D).filter(function(c){var W;return(c=c==null?void 0:(W=c.videoEntity)==null?void 0:W.key)&&!C[c]&&X.has(c)})};
ssm=function(D,C){C=_.gJ(C,"settingEntity");var X,c,W;return!!((W=(c=((X=D.settingEntity)!=null?X:{})[C])==null?void 0:c.settingOptionValue)!=null?W:{}).boolValue};
_.s1=function(D){var C=_.xP(D);if(tJr(C))return 0;var X=[];C=_.U(C);for(var c=C.next();!c.done;c=C.next()){c=c.value;var W=void 0,p=void 0;if((W=c)==null?0:(p=W.videoEntity)==null?0:p.key)W=_.pe(c.videoEntity.key).entityId,c=D,W=_.gJ(W,"mainVideoDownloadStateEntity"),c=_.aI(c,"mainVideoDownloadStateEntity",W),(c=Number(c==null?void 0:c.addedTimestampMillis))&&X.push(c)}return Math.max.apply(Math,_.VB(X))};
_.mn=function(D){return D.ui.richGridMiniMode};
_.eV=function(D){return D.ui.richGridItemsPerRow};
_.mLj=function(D){return D.ui.richGridSlimItemsPerRow};
_.efW=function(D){return D.ui.guideIsExpanded};
_.E1=function(D){return D.ui.miniplayerIsActive};
EZF=function(D){return D.ui.singleOptionSurveyIsActive};
_.tX=function(D){var C;return((C=D.ui)==null?void 0:C.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.tOo=function(D){return _.tX(D)==="WEB_PAGE_TYPE_WATCH"};
_.NpF=function(D){return _.tX(D)==="WEB_PAGE_TYPE_SHORTS"};
_.Y7R=function(D){return D.ui.inlinePreviewIsActive};
_.yyt=function(D){return D.ui.inlinePreviewIsEnabled};
_.nZd=function(D){return D.ui.miniplayerPlaybackState};
_.Nh=function(D){return D.ui.isOnline};
_.wm5=function(D){return D.ui.frostedGlassMode};
_.YP=function(D,C){return H_Z(D.entities,C)};
_.yZ=function(D,C){return PYZ(D.entities,C)};
FVZ=function(D,C){var X;if(C){var c;D=(c=_.aI(D.entities,"offlineVideoPolicy",_.gJ(C,"offlineVideoPolicy")))==null?void 0:c.action}else D=void 0;return(X=D)!=null?X:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Z4t=function(D,C){var X;C?(D=_.aI(D.entities,"offlineVideoPolicy",_.gJ(C,"offlineVideoPolicy")),D=Number(D==null?void 0:D.expirationTimestamp)):D=void 0;return(X=D)!=null?X:0};
_.Glh=function(D){return _.B_(D.entities).length};
VO5=function(D,C){return b8(D.entities,C)};
TpJ=function(D,C){return lpj(D.entities,C)};
wJ=function(D,C){return(D=b8(D.entities,C))?_.scF([D]):0};
_.H4h=function(D,C){var X=_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(X){var c=D.entities;var W=Iem(c,C);if(W.length){var p=[];W=_.U(W);for(var g=W.next();!g.done;g=W.next())(g=S7F(c,g.value))&&p.push(g);c=p}else c=[]}else c=Rbt(D.entities,C);var a;if(X){var O=D.entities;C?(C=_.gJ(C,"musicPlaylist"),O=(a=O.musicPlaylist)==null?void 0:a[C],a=O!=null&&O.tracks?O.tracks.length:0):a=0}else a=D.entities,C?(C=_.gJ(C,"mainPlaylistEntity"),a=(O=a.mainPlaylistEntity)==null?void 0:O[C],a=a!=null&&a.videos?
a.videos.length:0):a=0;return c.length!==a?0:c?mkd(c):0};
_.JyR=function(D){return D.download.isLeaderTab};
_.zfW=function(D,C,X){if(!C&&X){var c=D.entities;if(X){var W=E3h(X),p,g;C=(g=(p=_.aI(c,"offlineabilityEntity",_.gJ(W,"offlineabilityEntity")))==null?void 0:p.addToOfflineButtonState)!=null?g:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else C="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else p=D.entities,C?(g=E3h(C),C=(W=(c=_.aI(p,"offlineabilityEntity",_.gJ(g,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):C="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return C};
jso=function(D,C){D=D.entities;if(C){C=E3h(C);var X,c;C=(c=(X=_.aI(D,"offlineabilityEntity",_.gJ(C,"offlineabilityEntity")))==null?void 0:X.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else C="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return C};
_.MOR=function(D){var C=D.entities;D=_.Nh(D);var X=ssm(C,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.b("kevlar_modern_downloads_page")&&X)var c=!1;else{var W,p;C=(p=(W=((c=C.downloadsPageViewConfigurationEntity)!=null?c:{})[_.hX])==null?void 0:W.smartDownloadsOptInBannerVisibility)!=null?p:{};c=D?!!C.visibleWithConnection:!!C.visibleWithoutConnection}return c};
_.q7J=function(D){return ssm(D.entities,"SMART_DOWNLOADS_ENABLED")};
_.feJ=function(D){return b4h(D.entities)};
dLW=function(D){return _.xP(D.entities).every(function(C){var X;return(C==null?void 0:(X=C.transferEntity)==null?void 0:X.transferState)&&!LH5.includes(C.transferEntity.transferState)})};
_.Rfm=function(D){var C,X,c,W=(c=(X=((C=D.entities.downloadsPageViewConfigurationEntity)!=null?C:{})[_.hX])==null?void 0:X.downloadsUpsellBannerVisibility)!=null?c:{};return _.Nh(D)?!!W.visibleWithConnection:!!W.visibleWithoutConnection};
_.ler=function(D,C){return wVo(D.entities,C)};
DM5=function(D,C){if(C){var X,c;D=(c=(X=_.aI(D.entities,"downloadStatusEntity",_.gJ(C,"downloadStatusEntity")))==null?void 0:X.downloadState)!=null?c:"DOWNLOAD_STATE_UNKNOWN"}else D="DOWNLOAD_STATE_UNKNOWN";return D};
F$=function(D,C){return MJR(D.entities,C)};
oit=function(D){D=C9t(D);var C=D.hours===void 0?0:D.hours,X=D.minutes===void 0?0:D.minutes,c=D.seconds===void 0?0:D.seconds,W=C>0;D=[];W&&(C=XkJ(C),D.push(C));C=W;C=C===void 0?!1:C;X=(["af","be","lt"].includes(Z7)||C)&&X<10?c$h().format(X):(new Intl.NumberFormat("en-u-nu-latn")).format(X);D.push(X);X=c$h().format(c);D.push(X);X=":";"da fi id si sr sr-Latn".split(" ").includes(Z7)&&(X=".");return D.join(X)};
_.pkd=function(D){D=C9t(D);var C=D.hours===void 0?0:D.hours,X=D.minutes===void 0?0:D.minutes,c=D.seconds===void 0?0:D.seconds;D=[];if(C>0){var W=WO3().format({hours:C});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Z7)||C>9999)W=W.replace(C.toString(),XkJ(C)),Z7==="km"&&(W=W.replace(".",","));D.push(W)}X>0&&D.push(WO3().format({minutes:X}));c>0&&D.push(WO3().format({seconds:c}));C="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");X=Z7=="am"?"{0}\u1363 ":Z7=="fa"?"{0}\u060c\u200f ":
Z7=="my"?"{0} - ":Z7=="ne"?"{0},":Z7=="th"?"{0} ":Z7=="ur"?"{0}\u060c ":Z7=="ar"||Z7=="ar-XB"?"{0} \u0648":Z7=="ja"||Z7=="zh-CN"||Z7=="zh-HK"||Z7=="zh-TW"?"{0}\u3001":"{0}, ";c=Z7=="am"?"\u1363 ":Z7=="fa"?"\u060c\u200f ":Z7=="my"?" - ":Z7=="th"?" ":Z7=="ur"?"\u060c ":Z7=="ar"||Z7=="ar-XB"?" \u0648":Z7=="ja"||Z7=="zh-CN"||Z7=="zh-HK"||Z7=="zh-TW"?"\u3001":", ";W=Z7=="am"?" \u12a5\u1293 {0}":Z7=="as"?" \u0986\u09f0\u09c1 {0}":Z7=="az"?" v\u0259 {0}":Z7=="bn"?" \u098f\u09ac\u0982 {0}":Z7=="cs"?" a\u00a0{0}":
Z7=="de"?" und {0}":Z7=="el"?" \u03ba\u03b1\u03b9 {0}":Z7=="eu"?" eta {0}":Z7=="fa"?"\u060c \u0648 {0}":Z7=="fil"?", at {0}":Z7=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Z7=="hi"?", \u0914\u0930 {0}":Z7=="hu"?" \u00e9s {0}":Z7=="hy"?" \u0587 {0}":Z7=="id"?", dan {0}":Z7=="iw"?" \u05d5-{0}":Z7=="ja"?"\u3001{0}":Z7=="ka"?" \u10d3\u10d0 {0}":Z7=="km"?" \u1793\u17b7\u1784 {0}":Z7=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Z7=="ko"?" \ubc0f {0}":Z7=="ky"?" \u0436\u0430\u043d\u0430 {0}":Z7=="lt"?" ir {0}":Z7==
"lv"?" un {0}":Z7=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Z7=="mr"?" \u0906\u0923\u093f {0}":Z7=="ms"?" dan {0}":Z7=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Z7=="ne"?" \u0930 {0}":Z7=="or"?", \u0b13 {0}":Z7=="pa"?" \u0a05\u0a24\u0a47 {0}":Z7=="ro"?" \u0219i {0}":Z7=="si"?", \u0dc3\u0dc4 {0}":Z7=="sk"?" a {0}":Z7=="sl"?" in {0}":Z7=="sq"?" dhe {0}":Z7=="sv"?" och {0}":Z7=="sw"?" na {0}":Z7=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Z7=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Z7=="th"?" \u0e41\u0e25\u0e30{0}":Z7=="tr"?" ve {0}":Z7=="ur"?"\u060c \u0627\u0648\u0631 {0}":Z7=="uz"?" va {0}":Z7=="vi"?" v\u00e0 {0}":Z7=="zh-HK"?"\u53ca{0}":Z7=="zu"?", ne-{0}":Z7=="af"||Z7=="nl"?" en {0}":Z7=="ar"||Z7=="ar-XB"?" \u0648{0}":Z7=="be"||Z7=="uk"?" \u0456 {0}":Z7=="en-GB"||Z7=="en-IN"?" and {0}":Z7=="en"||Z7=="en-XA"?", and {0}":Z7=="et"||Z7=="fi"?" ja {0}":Z7=="fr"||Z7=="fr-CA"?" et {0}":Z7=="zh-CN"||Z7=="zh-TW"?"\u548c{0}":Z7=="da"||Z7=="is"||Z7=="no"?" og {0}":Z7=="es"||Z7=="es-419"||
Z7=="es-US"?" y {0}":Z7=="kk"||Z7=="lo"||Z7=="mn"?", {0}":Z7=="bg"||Z7=="mk"||Z7=="ru"||Z7=="sr"?" \u0438 {0}":Z7=="gl"||Z7=="it"||Z7=="pt-BR"||Z7=="pt-PT"?" e {0}":" i {0}";var p=Z7=="am"?"{0} \u12a5\u1293 {1}":Z7=="as"?"{0} \u0986\u09f0\u09c1 {1}":Z7=="az"?"{0} v\u0259 {1}":Z7=="bn"?"{0} \u098f\u09ac\u0982 {1}":Z7=="de"?"{0} und {1}":Z7=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Z7=="eu"?"{0} eta {1}":Z7=="fa"?"{0} \u0648 {1}":Z7=="fil"?"{0} at {1}":Z7=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Z7=="hi"?"{0} \u0914\u0930 {1}":
Z7=="hu"?"{0} \u00e9s {1}":Z7=="hy"?"{0} \u0587 {1}":Z7=="iw"?"{0} \u05d5-{1}":Z7=="ja"?"{0}\u3001{1}":Z7=="ka"?"{0} \u10d3\u10d0 {1}":Z7=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Z7=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Z7=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Z7=="ko"?"{0} \ubc0f {1}":Z7=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Z7=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Z7=="lt"?"{0} ir {1}":Z7=="lv"?"{0} un {1}":Z7=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Z7=="mn"?"{0}, {1}":Z7==
"mr"?"{0} \u0906\u0923\u093f {1}":Z7=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Z7=="ne"?"{0} \u0930 {1}":Z7=="or"?"{0} \u0b13 {1}":Z7=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Z7=="ro"?"{0} \u0219i {1}":Z7=="si"?"{0} \u0dc3\u0dc4 {1}":Z7=="sl"?"{0} in {1}":Z7=="sq"?"{0} dhe {1}":Z7=="sv"?"{0} och {1}":Z7=="sw"?"{0} na {1}":Z7=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Z7=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Z7=="th"?"{0}\u0e41\u0e25\u0e30{1}":Z7=="tr"?"{0} ve {1}":Z7=="ur"?
"{0} \u0627\u0648\u0631 {1}":Z7=="uz"?"{0} va {1}":Z7=="vi"?"{0} v\u00e0 {1}":Z7=="zh-HK"?"{0}\u53ca{1}":Z7=="zu"?"{0} ne-{1}":Z7=="af"||Z7=="nl"?"{0} en {1}":Z7=="ar"||Z7=="ar-XB"?"{0} \u0648{1}":Z7=="be"||Z7=="uk"?"{0} \u0456 {1}":Z7=="cs"||Z7=="sk"?"{0} a\u00a0{1}":Z7=="et"||Z7=="fi"?"{0} ja {1}":Z7=="fr"||Z7=="fr-CA"?"{0} et {1}":Z7=="id"||Z7=="ms"?"{0} dan {1}":Z7=="zh-CN"||Z7=="zh-TW"?"{0}\u548c{1}":Z7=="da"||Z7=="is"||Z7=="no"?"{0} og {1}":Z7=="es"||Z7=="es-419"||Z7=="es-US"?"{0} y {1}":Z7==
"bg"||Z7=="mk"||Z7=="ru"||Z7=="sr"?"{0} \u0438 {1}":Z7=="en"||Z7=="en-GB"||Z7=="en-IN"||Z7=="en-XA"?"{0} and {1}":Z7=="gl"||Z7=="it"||Z7=="pt-BR"||Z7=="pt-PT"?"{0} e {1}":"{0} i {1}";Z7==="sq"?(W=W.replace("dhe","e"),p=p.replace("dhe","e")):Z7==="th"?(c=c.replace("{0}"," {0}"),p=p.replace("{0}","{0} "),p=p.replace("{1}"," {1}")):Z7==="ne"?c=",":Z7==="zh-CN"?c="":C.includes(Z7)&&(c=" ");return D.length<2?D.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(Z7)?
D.length===2?p.replace("{0}",D[0]).replace("{1}",D[1]):X.replace("{0}",D[0])+D.slice(1,-1).join(c)+W.replace("{0}",D[D.length-1]):D.join(c)};
C9t=function(D){var C=D.hours||0,X=D.minutes||0,c=D.seconds||0;C=c+X*60+C*3600+(D.days||0)*86400+(D.weeks||0)*604800+(D.months||0)*2629800+(D.years||0)*31557600;if(C<=0)return{hours:0,minutes:0,seconds:0};D=C;C=Math.floor(D/3600);D%=3600;X=Math.floor(D/60);c=Math.floor(D%60);return{hours:C,minutes:X,seconds:c}};
XkJ=function(D){D=(new Intl.NumberFormat("en-u-nu-latn")).format(D);var C=["fr"],X="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(Z7)?D.replace(",","\u00a0"):C.includes(Z7)?D.replace(",","\u202f"):X.includes(Z7)?D.replace(",","."):D};
c$h=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
WO3=function(){Swd||(G1=UMm,Swd=new gih);return Swd};
aYt=function(D){try{return(new _.VZ(5)).format(D)}catch(C){}};
T1=function(D){return{thumbnailOverlayDownloadingRenderer:{state:D}}};
IYW=function(){var D=_.I7("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Ce(D),icon:{iconType:"PLAY_ALL"}}}};
OzW=function(D){D=_.H_(D,2);return Z7!=="ru"&&Z7!=="es_419"&&Z7!=="es-419"&&Z7!=="es"&&Z7!=="es_US"&&Z7!=="es-US"&&Z7!=="fr"&&Z7!=="pl"&&Z7!=="it"&&Z7!=="nl"&&Z7!=="uk"&&Z7!=="fr_CA"&&Z7!=="fr-CA"||D===""?D:D[0].toLocaleUpperCase()+D.substring(1)};
P9Z=function(D){return function(C){var X=D(),c=_.H_(C,X.dateFormat);C=_.H_(C,X.timeFormat);var W=A$R.DATETIMEFORMATS[X.joinerStyle];W=W.replace(/'(?!')/g,"");W=W.replace("{0}",C);W=W.replace("{1}",c);return X.capitalize(W)}};
$MJ=function(D){return D?typeof D.seconds==="string"&&(D.nanos===void 0||typeof D.nanos==="number"):!1};
vi5=function(D){return new Date(Number(D.seconds)*1E3+(D.nanos||0)*1E-6)};
_.H_=function(D,C){if(typeof D.getTime==="function")D={date:D};else if($MJ(D))D={date:vi5(D)};else if(typeof $MJ(D.timestamp)&&typeof D.i18nInternalSecondsEastOfUtc==="number")D={date:vi5(D.timestamp),timeZone:JX(-D.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(D));var X=D;D=X.date;X=X.timeZone;C=izr(C).format(D,X);Z7==="zh-TW"&&(D=X?Number(izr("H").format(D,X)):D.getHours(),C=D<5?C.replace("\u4e0a\u5348","\u51cc\u6668"):D<8?C.replace("\u4e0a\u5348","\u65e9\u4e0a"):D<12?
C.replace("\u4e0a\u5348","\u4e0a\u5348"):D<13?C.replace("\u4e0b\u5348","\u4e2d\u5348"):D<19?C.replace("\u4e0b\u5348","\u4e0b\u5348"):C.replace("\u4e0b\u5348","\u665a\u4e0a"));return C};
izr=function(D){if(kYF.has(D))return kYF.get(D);var C=u5h(D);C=Q1m(C);ByW!==!0&&(ByW=!0);bzh=!0;bzh=!1;C=new z1(C,A$R);kYF.set(D,C);return C};
u5h=function(D){return(new z1(D,A$R)).patternParts_.map(function(C){return C.type===0?"'"+C.text+"'":C.text}).join("")};
Q1m=function(D){return Z7==="en"||Z7==="es_US"||Z7==="es-US"?D:D.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(C,X,c){return"H".repeat(X.length)+c})};
mMW=function(D,C){r$t||(G1=UMm,r$t=new KOo);var X=r$t;a:if(D=hSn(D),C=hSn(C||new Date),D>C)X=D.getTime()-C.getTime()>6048E5?_.H_(D,1):xMZ(D);else{for(var c=0;LOZ(D,12*(c+1))<C;)++c;if(c>0)X=X.format(-c,0);else{for(c=0;LOZ(D,c+1)<C;)++c;if(c>0)X=X.format(-c,2);else{D=C.getTime()-D.getTime();C=_.U(s15);for(c=C.next();!c.done;c=C.next()){c=c.value;var W=c.unit,p=Math.floor(D/c.unitDuration);if(p>=(c.threshold===void 0?1:c.threshold)){X=X.format(-p,W);break a}}X=X.format(-0,7)}}}return X};
hSn=function(D){if(typeof D.getTime==="function")return D;if($MJ(D))return vi5(D);throw Error("Mf`"+JSON.stringify(D));};
LOZ=function(D,C){for(var X=0,c;;++X)if(c=new Date(D.getFullYear(),D.getMonth()+C,D.getDate()-X,D.getHours(),D.getMinutes(),D.getSeconds()),c.getMonth()===(D.getMonth()+C)%12)return c};
_.jV=function(D){return{runs:[{text:D}]}};
_.Mh=function(D){if(D&&D.simpleText)return D.simpleText;var C="";if(D&&D.runs)for(var X=0;X<D.runs.length;X++)D.runs[X].text&&(C+=D.runs[X].text);return C};
Eio=function(D,C,X,c){return D.videoEntity&&!D.policyEntity&&X!=="DOWNLOAD_STATE_FAILED"?[T1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:kP(D.policyEntity)&&C!=="TRANSFER_STATE_FAILED"&&C!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?C==="TRANSFER_STATE_PAUSED_BY_USER"?[T1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.u8(C)?[T1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:D.videoEntity.lengthSeconds?eSF(D.videoEntity.lengthSeconds,c):[]:
[T1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
eSF=function(D,C){var X=[{thumbnailOverlayTimeStatusRenderer:{text:_.Ce(oit({seconds:D})),style:"DEFAULT"}}];C&&(D=C<=0||D<=0?0:C>=D?100:Math.ceil(C*100/D),D>0&&X.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:D}}));return X};
tun=function(D,C,X,c,W){if(C==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(_.u8(C)||C==="TRANSFER_STATE_PRE_TRANSFER")var p=[T1("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var g,a;if(C==="TRANSFER_STATE_COMPLETE"&&((g=D.mainPlaylistEntity)==null?0:(a=g.videos)==null?0:a.length)){var O;D=(p=D.mainPlaylistEntity)==null?void 0:(O=p.videos)==null?void 0:O.length;p=(p=aYt(D))?{thumbnailOverlayBottomPanelRenderer:{text:_.Ce(p),icon:{iconType:"PLAYLISTS"}}}:void 0;p=[IYW(),Object.assign({},
p!=null?p:{})]}else p=[]}a:if(C==="TRANSFER_STATE_PRE_TRANSFER")X=X$(_.I7("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(C==="TRANSFER_STATE_TRANSFER_IN_QUEUE")X=X$(_.I7("WAITING_TO_DOWNLOAD"));else if(_.u8(C))X=Math.floor(X*100).toString(),X=X$(_.I7("DOWNLOADING_PERCENT",{percent:X},"Downloading... "+X+"%"));else{if(c&&(_.b("playlist_is_offline_selector_killswitch")&&(W=_.iX().resolve(_.Se).isNetworkAvailable()),W)){X=wj3(_.I7("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
yFo(c));break a}X=void 0}C=C==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.I7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},p.length?{thumbnailOverlays:p}:{},X?{viewPlaylistText:X}:{viewPlaylistText:_.jV("")},C.length?{badges:C}:{})};
Nyn=function(D,C,X,c,W,p){if(C==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(c==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var g=Eio(D,C,c);if(D.videoEntity&&!D.policyEntity&&c!=="DOWNLOAD_STATE_FAILED"){var a=_.I7("WAITING_TO_DOWNLOAD");if(a)return{shortViewCountText:_.jV(a),publishedTimeText:void 0,thumbnailOverlays:g}}if(!kP(D.policyEntity)){p=D.policyEntity&&!eb5(D.policyEntity)?_.I7("DOWNLOAD_EXPIRED",{},"Download expired"):
_.I7("TRANSFER_FAILED",{},"Download failed");var O;if((O=D.policyEntity)==null?0:O.shortMessageForDisabledAction)p=D.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:X$(p),publishedTimeText:void 0,thumbnailOverlays:g}}if(C==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.jV(_.I7("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:g};if(C==="TRANSFER_STATE_FAILED"||C==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.jV(_.I7("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:g};if(C==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(O=_.I7("WAITING_TO_DOWNLOAD"),c==="DOWNLOAD_STATE_PAUSED"&&(O=_.I7("DOWNLOAD_PAUSED",{},"Download paused")),O))return{shortViewCountText:_.jV(O),publishedTimeText:void 0,thumbnailOverlays:g};if(_.u8(C))return D=Math.floor(X*100).toString(),{shortViewCountText:_.jV(_.I7("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%")),publishedTimeText:void 0,thumbnailOverlays:g};C=void 0;D.videoEntity.publishedTimestampMillis&&
(C=new Date,W&&(C=new Date(W)),C=X$(mMW(new Date(Number(D.videoEntity.publishedTimestampMillis)),C)));W=[];_.b("kevlar_woffle_badge_killswitch")||(W=[{metadataBadgeRenderer:{label:_.I7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var P;D=X$((P=D.videoEntity.localizedStrings)==null?void 0:P.viewCount);return Object.assign({},p?{shortViewCountText:void 0}:{shortViewCountText:D},p?{}:{publishedTimeText:C},{badges:W,thumbnailOverlays:g})};
y$F=function(D,C){D=D===void 0?YwR:D;switch(C.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:C.payload.playlistId,inviteLinkURL:C.payload.inviteLinkUrl};default:return D}};
wkh=function(D,C){D=D===void 0?nih:D;switch(C.type){case "SET_CURRENT_FORM_ID":return C=C.payload.formId,D.currentFormId===C?D:{currentFormId:C,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var X=C.payload;C=X.groupId;X=X.command;if(D.currentFormId){var c=Object.assign({},D.commandsMap);c[C]=X;D=Object.assign({},D,{commandsMap:c})}return D;case "RESET_COMMAND_MAP":return Object.assign({},D,{commandsMap:{}});default:return D}};
ZzR=function(D,C){D=D===void 0?FOh:D;switch(C.type){case "UPDATE_CANVAS_MODE":return Object.assign({},D,{currentMode:C.payload.currentMode});default:return D}};
VuJ=function(D,C){D=D===void 0?GYn:D;switch(C.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},D,{guideIsExpanded:C.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},D,{scrollAtTop:C.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},D,{guideIsVisibleButNotPersistent:C.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},D,{miniplayerIsActive:C.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},D,{singleOptionSurveyIsActive:C.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},D,{slimlineSurveyRatingSelectedIndex:C.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},D,{richGridMiniMode:C.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},D,{richGridItemsPerRow:C.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},D,{richGridSlimItemsPerRow:C.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},D,{richGridContainerWidth:C.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},D,{richGridStyle:C.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:C.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},D,{inlinePreviewIsActive:C.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},D,{inlinePreviewIsEnabled:C.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},D,{darkModeIsEnabled:C.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
D,{miniplayerPlaybackState:C.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},D,{tabGesturesIsActive:C.payload});case "SET_ONLINE_STATUS":return Object.assign({},D,{isOnline:C.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},D,{chipBarIsSticky:C.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},D,{frostedGlassMode:C.payload});default:return D}};
Tym=function(){return _.b("kevlar_disable_theater_mode_persistence")?!1:_.dq("START_IN_THEATER_MODE")};
J$Z=function(D,C){D=D===void 0?HzW:D;switch(C.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},D,{transcription:C.payload});case "SET_OVERLAY_STATE":return Object.assign({},D,{overlay:C.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return D}};
CC3=function(){return Ya(Object.assign({},{continuation:zSj,download:j1W,canvas:ZzR,reportChannelAbuse:Mum,share:qwh,talkToRecs:fYd,ui:VuJ,voiceSearch:J$Z,watch:dMh,ypc:RSm,shorts:lYd,radioButtonGroup:wkh,collabInviteLink:y$F},Dxr))};
ocZ=function(){return _.b("web_player_entities_middleware")?new qh(CC3(),[X9Z,cbo]):new qh(CC3(),[X9Z])};
_.fe=function(){WyF||(WyF=ocZ());return WyF};
p9t=function(D,C,X){if(D.length)return{titleText:_.Ce(C!=null?C:_.I7("DOWNLOADS",void 0,"Downloads")),contents:D.map(function(c){var W=c.videoEntity;c={videoId:W.videoId,title:X$(W.title),shortBylineText:X$(c.channelEntity.title),thumbnail:W.thumbnail};var p=W.videoId?F$(_.fe().getState(),W.videoId):0;W.videoId&&X?c.navigationEndpoint=_.D7(W.videoId,X,void 0,void 0,p):W.videoId&&(c.navigationEndpoint=YqF(W.videoId,p,W.lengthSeconds));W.lengthSeconds&&(c.thumbnailOverlays=eSF(W.lengthSeconds,p));return{playlistPanelVideoRenderer:c}}),
totalVideos:D.length}};
SAn=function(D){return(D=(0,_.ZI.getValueByKeys)(D,"playlistId"))?{playlistId:D}:null};
UxF=function(){return{}};
gch=function(D,C){return new _.mM(function(X,c){D.then(function(W){if(W){if(W=C(W))return X(W);c()}},c)})};
aQr=function(D){var C,X,c,W=(C=D.contents)==null?void 0:(X=C.twoColumnWatchNextResults)==null?void 0:(c=X.autoplay)==null?void 0:c.autoplay,p,g,a;C=(p=D.contents)==null?void 0:(g=p.twoColumnWatchNextResults)==null?void 0:(a=g.playlist)==null?void 0:a.playlist;return W&&C&&C.playlistId?{rawResponse:D,autoplayRenderer:W,playlistPanelRenderer:C,playlistId:C.playlistId}:null};
Ou5=function(D){var C=C===void 0?"UNKNOWN_INTERFACE":C;if(D.length===1)return D[0];var X=IQn[C];if(X){X=new RegExp(X);for(var c=_.U(D),W=c.next();!W.done;W=c.next())if(W=W.value,X.exec(W))return W}var p=[];Object.entries(IQn).forEach(function(g){var a=_.U(g);g=a.next().value;a=a.next().value;C!==g&&p.push(a)});
X=new RegExp(p.join("|"));D.sort(function(g,a){return g.length-a.length});
c=_.U(D);for(W=c.next();!W.done;W=c.next())if(W=W.value,!X.exec(W))return W;return D[0]};
_.dJ=function(D){return"/youtubei/v1/"+Ou5(D)};
_.RI=function(D,C){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:D}}},C!==void 0?{durationHintMs:C}:{})}};
_.l8=function(D,C){return _.RI(_.jV(D),C)};
Abr=function(D,C){var X={mode:"NORMAL"};D&&(X.autoplayVideo=D.navigationEndpoint,X.nextButtonVideo=D.navigationEndpoint);C&&(X.previousButtonVideo=C.navigationEndpoint);return X};
vcr=function(D,C,X){if(!X||!X.sets)return{sets:[Abr(D,C)]};var c=X.sets.find(function(g){return g.mode==="NORMAL"}),W=(0,_.ZI.unsafeClone)(X);
if(!c)return W.sets.push(Abr(D,C)),W;if(!D)return X;c=_.ZI.getValueByKeys.apply(null,[c].concat(_.VB(PCj)));var p=_.ZI.getValueByKeys.apply(null,[D].concat(_.VB($xd)));if(c===p)return X;W.sets=W.sets.filter(function(g){return g.mode!=="NORMAL"});
W.sets.push(Abr(D,C));return W};
iuJ=function(D){return!!D.playlistPanelVideoRenderer&&!D.playlistPanelVideoRenderer.unplayableText};
kcd=function(D){return!!D.playlistPanelVideoRenderer&&!!D.playlistPanelVideoRenderer.title};
jLF=function(D,C){if(C.contents&&!(D>=C.contents.length)&&(D=C.contents.slice(D).find(iuJ)))return D.playlistPanelVideoRenderer};
Mvr=function(D,C){if(C.contents)return(C=C.contents.find(function(X){return!!X.playlistPanelVideoRenderer&&X.playlistPanelVideoRenderer.videoId===D}))?C.playlistPanelVideoRenderer:void 0};
qAh=function(D,C){return C.contents?C.contents.findIndex(function(X){return!!X.playlistPanelVideoRenderer&&X.playlistPanelVideoRenderer.videoId===D}):-1};
fQd=function(D,C){return C.contents?C.contents.findIndex(function(X){return!!X.playlistPanelVideoRenderer&&X.playlistPanelVideoRenderer.playlistSetVideoId===D}):-1};
dxR=function(D,C){D.contents&&C!==-1&&D.contents.splice(C,1).length===1&&D.totalVideos!==void 0&&(--D.totalVideos,delete D.videoCountText)};
_.RNJ=function(D){var C=[];if(!D||!D.contents)return C;D=_.U(D.contents);for(var X=D.next();!X.done;X=D.next())X=X.value,X.playlistPanelVideoRenderer&&X.playlistPanelVideoRenderer.videoId&&C.push(X.playlistPanelVideoRenderer.videoId);return C};
_.lQd=function(D){if(D&&D.contents)return(D=D.contents.find(function(C){return!!C.playlistPanelVideoRenderer&&!!C.playlistPanelVideoRenderer.selected})||D.contents[D.currentIndex])?D.playlistPanelVideoRenderer:void 0};
DlZ=function(D,C,X,c,W,p,g){W=W===void 0?!1:W;p=p===void 0?!1:p;g=g===void 0?!1:g;if(D.contents&&D.contents.length!==0){c&&(D.contents=D.contents.filter(c));c=D.contents.length;for(var a=0;a<c;a++){var O=D.contents[a].playlistPanelVideoRenderer;O&&(a===C?(p&&delete O.menu,O.indexText=_.jV("\u25b6")):W||D.isInfinite||O.indexText===void 0?delete O.indexText:O.indexText=_.jV((a+1+X).toString()))}D.currentIndex=C+X;g&&(delete D.videoCountText,D.totalVideos=c)}};
_.Dg=function(D){D=CIo(D);if(D){var C=D.length;var X=-42%C;X<0&&(X=C+X);D=D.slice(C-X)+D.slice(0,C-X)}else D="";X="";for(C=0;C<D.length&&D[C]!==XOJ;C++)X+=D[C];return X};
_.cSj=function(D,C){var X=document.body;C=C===void 0?function(a){return a}:C;
var c,W=null;D=_.U(D);for(c=D.next();!c.done;c=D.next()){var p=c.value;c="div";p[2]&&(c=C(p[2]));c=document.createElement(c);W||(W=c);var g=p[0];p=p[1];g&&(c.id=C(g));if(p)for(p=_.U(p),g=p.next();!g.done;g=p.next())c.classList.add(C(g.value));X.appendChild(c);X=c}return[W,X]};
odo=function(D,C){for(var X="",c=0;c<C;c++)X+=D.charAt(Math.floor(Math.random()*D.length));return X};
CH=function(D){return odo("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",D)};
XU=function(D){return odo("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",D)};
cl=function(D){return odo("0123456789",D)};
Wmr=function(){var D=performance.now(),C=new Date;var X="2."+C.getFullYear()+String(C.getMonth()+1).padStart(2,"0")+String(C.getDate()).padStart(2,"0");for(var c,W=Math.floor(Math.random()*11)+15,p=[],g=0;g<W;g++)p.push(Math.floor(Math.random()*26476865)+24547720);c=p.join(",");var a=CH(10),O=CH(100),P=CH(102),k=CH(106),u=CH(108),Q=CH(11),B=CH(1140),K=CH(123),L=CH(14),t=CH(16),Y=CH(1900),y=CH(23),J=CH(26),T=CH(34),H=CH(397),q=CH(44),R=CH(5),ph=CH(72),Om=CH(74),xj=CH(75),Bo=CH(88),r5=CH(91),Fd="rr4---sn-q4fl6nlz rr5---sn-q4flrnes rr1---sn-q4flrne7 rr5---sn-q4fl6nde rr3---sn-5hneknee rr2---sn-ntq7yney rr2---sn-aigzrne7 rr1---sn-aigl6nzl rr2---sn-ntqe6nee rr4---sn-5hne6nzk rr4---sn-5hne6nsz rr1---sn-q4flrnsk rr3---sn-q4fl6ndz rr4---sn-q4fl6nde rr5---sn-q4flrn7r rr4---sn-q4fl6ns6 rr3---sn-5hne6n6e rr4---sn-q4fl6nsd rr2---sn-t0a7ln7d rr2---sn-q4fl6nss".split(" ");
var GJ=Fd[Math.floor(Math.random()*Fd.length)];var jZ=(new Date("2010-01-01")).getTime();var Ac=(new Date(jZ+Math.random()*((new Date).getTime()-jZ))).toISOString().split("T")[0];for(var ib,d5=[],ub=0;ub<4;ub++)d5.push(Math.floor(Math.random()*100));ib=d5.join(".");var L5=Number(cl(5)),Nf=Number(cl(6)),xt=Number(cl(7)),u6=Number(cl(9)),g5=cl(1),oq=cl(10),rx=cl(16),Rq=cl(19),K5=cl(2),C1=cl(20),LK=cl(21),Mf=cl(3),vM=cl(4),kg=cl(5),p1=cl(6),Rm=cl(7),ow=cl(8),iU=cl(9);var oH=odo("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var QU=[XU(5),XU(5),XU(5)].join("%2C"),jN=[cl(3),cl(5),cl(5)].join("%2C"),Oe=XU(0),Bd=XU(1),HM=XU(10),mG=XU(108),UX=XU(11),bc=XU(12),ro=XU(13),fy=XU(14),We=XU(15),su=XU(16),Kq=XU(17),Em=XU(18),TJ=XU(19),qR=XU(2),xg=XU(20),K1=XU(22),wj=XU(23),NY=XU(24),Ed=XU(266),sd=XU(3),Hp=XU(30),zd=XU(34),bb=XU(35),dV=XU(36),f7=XU(4),jD=XU(40),RA=XU(43),Sf=XU(47),$7=XU(5),pi=XU(6),J9=XU(7),vA=XU(75),v7=XU(8),mH=XU(80),xa=XU(9),sF="https://www."+XU(12)+".com",h3={},rz={},Yy={},sb={},yb={},K9={},Ll={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:c}]},{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"+XU(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:c}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:LK+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+XU(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:jD,ypcGetOfflineUpsellEndpoint:{params:mH}},trackingParams:bb+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&cnr="+K5+"&ratebypass=yes&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&c=WEB&txp="+Rm+"&n="+t+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Nf,width:640,height:360,lastModified:rx,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Rm,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+jN+"&mn="+
QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&cnr="+K5+"&ratebypass=yes&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&c=WEB&txp="+Rm+"&n="+t+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+mG+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Nf,width:1280,
height:720,lastModified:rx,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Rm,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+jN+"&mn="+QU+"&ms="+
QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+iU+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:xt,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:iU,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xt,approxDurationMs:Rm},{itag:248,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+jN+"&mn="+QU+"&ms="+QU+"&mv="+
Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+iU+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:xt,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:iU,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:399,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+iU+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:xt,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:iU,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:136,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+iU+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:xt,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:iU,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Nf,approxDurationMs:Rm},{itag:247,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+jN+"&mn="+
QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+iU+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:xt,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:iU,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:398,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+iU+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:xt,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:iU,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:135,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Nf,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Nf,approxDurationMs:Rm},{itag:244,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+jN+"&mn="+
QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+mG+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Nf,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:397,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Nf,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:134,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Nf,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Nf,highReplication:!0,approxDurationMs:Rm},{itag:243,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Nf,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:396,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Nf,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:133,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Nf,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Nf,approxDurationMs:Rm},{itag:242,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+jN+"&mn="+
QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Nf,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:395,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Nf,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Nf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:160,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Nf,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:L5,approxDurationMs:Rm},{itag:278,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+jN+"&mn="+
QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Nf,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:L5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:394,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&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="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=video%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:L5,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:L5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rm},{itag:140,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=audio%2Fmp4&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Nf,
initRange:{start:"0",end:"631"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Nf,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Rm,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+
K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=audio%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+Rm+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:L5,initRange:{start:"0",end:"265"},indexRange:{start:Mf,
end:vM},lastModified:rx,contentLength:Rm,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:L5,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Rm,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=audio%2Fwebm&ns="+
NY+"&gir="+sd+"&clen="+Rm+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:L5,initRange:{start:"0",end:"265"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:Rm,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:L5,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Rm,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+GJ+".googlevideo.com/videoplayback?expire="+oq+"&ei="+y+"&ip="+ib+"&id=o-AF"+RA+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+jN+"&mn="+QU+"&ms="+QU+"&mv="+Bd+"&mvi="+g5+"&pl="+K5+"&initcwndbps="+Rm+"&siu="+g5+"&spc="+q+"&vprv="+g5+"&svpuc="+g5+"&mime=audio%2Fwebm&ns="+NY+"&gir="+sd+"&clen="+ow+"&dur="+ow+"&lmt="+rx+"&mt="+oq+"&fvip=3&keepalive="+sd+"&c=WEB&txp="+
Rm+"&n="+su+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:Nf,initRange:{start:"0",end:"265"},indexRange:{start:Mf,end:vM},lastModified:rx,contentLength:ow,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Nf,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Rm,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="+iU+"&docid="+Q+"&ei="+y+"&feature="+a+"&fexp="+Oe+"&ns="+qR+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Bd+"&el="+HM+"&len="+vM+"&of="+K1+
"&uga="+K5+"&vm="+Ed},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+iU+"&docid="+Q+"&ei="+y+"&feature="+a+"&fexp="+Oe+"&ns="+qR+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Bd+"&el="+HM+"&len="+vM+"&of="+K1+"&uga="+K5+"&vm="+Ed},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+iU+"&docid="+Q+"&ei="+y+"&feature="+a+"&fexp="+Oe+"&ns="+qR+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Bd+"&el="+HM+"&len="+vM+"&of="+K1+"&uga="+K5+"&vm="+Ed},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+y+"&m="+Bo+"&oid="+K1+"&plid="+t+"&pltype="+J9+"&ptchn="+K1+"&ptk="+L+"&video_id="+Q},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+iU+"&docid="+Q+"&ei="+y+"&event="+fy+"&feature="+a+"&fexp="+Oe+"&ns="+qR+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Bd},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
su+"&ver=2&cmt=1."+Mf+"&fmt="+Mf+"&fs=0&rt="+kg+"&euri&lact="+Mf+"&cl="+iU+"&mos="+g5+"&volume=100&cbrand="+$7+"&cbr="+pi+"&cbrver="+ib+"&c=WEB&cver="+X+"&cplayer=UNIPLAYER&cos="+xa+"&cosver="+Rm+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+K5+"&len="+ow+"&fexp="+QU+"&feature=g-high-rec&afmt="+Mf+"&muted=0&conn=1&docid="+Q+"&ei="+y+"&plid="+t+"&vm="+XU(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
Q+"&caps="+sd+"&opi="+iU+"&xoaf="+g5+"&hl="+qR+"&ip="+ib+"&ipbits="+g5+"&expire="+oq+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ib+"&key="+sd+"&lang="+R,name:{simpleText:J9},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+sd+"&opi="+iU+"&xoaf="+g5+"&hl="+qR+"&ip="+ib+"&ipbits="+g5+"&expire="+oq+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ib+"&key="+sd+"&kind="+sd+"&lang="+qR,name:{simpleText:Em},
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:UX,title:Kq,lengthSeconds:"1155",keywords:[J9,J9,su,UX],channelId:NY,isOwnerViewing:!1,shortDescription:f7,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+zd,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+
"G&rs="+zd,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+T,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+T,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Rm,author:ro,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Rm,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
K1+"/featured_channel.jpg?v="+v7,width:40,height:40}]},trackingParams:bb+"=",navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"/channel/"+NY,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:NY}},channelName:ro,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:J9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:NY,showPreferences:!1,subscribedButtonText:{runs:[{text:su}]},unsubscribedButtonText:{runs:[{text:pi}]},
trackingParams:bb+"=",unsubscribeButtonText:{runs:[{text:Kq}]},serviceEndpoints:[{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[NY],params:v7}},{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:jD,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:bb+"=",dialogMessages:[{runs:[{text:f7},
{text:pi},{text:bc}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Em}]},serviceEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[NY],params:v7}},accessibility:{label:We},trackingParams:bb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Kq}]},accessibility:{label:f7},
trackingParams:bb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:fy}},unsubscribeAccessibility:{accessibilityData:{label:su}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ow},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[NY],
params:v7}},unsubscribeCommand:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[NY],params:v7}},addToWatchLaterCommand:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:UX,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:UX}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Q+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+dV+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+UX,width:1280,
height:720},title:{simpleText:Kq},description:{simpleText:Kq},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+HM,externalChannelId:NY,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:Rm,category:"Travel & Events",publishDate:Ac,ownerChannelName:ro,uploadDate:Ac}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:bc},trackingParams:bb+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:jD,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:bb+"="}}],headerText:{simpleText:J9},icon:{infoCardIconRenderer:{trackingParams:bb+"="}},closeButton:{infoCardIconRenderer:{trackingParams:bb+"="}},trackingParams:bb+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:bb+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+UX+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:oH,interpreterSafeUrl:(h3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Hp+".js",h3),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Kq},{text:v7,bold:!0}]},endpoint:{clickTrackingParams:jD,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:bb+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:HM}]},actionButton:{buttonRenderer:{text:{runs:[{text:xa}]},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Q,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Q,target:"TARGET_NEW_WINDOW"}},trackingParams:bb+"="}},trackingParams:bb+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+ph+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+ph+"=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:Rm,endMs:Rm,title:{accessibility:{accessibilityData:{label:bc}},simpleText:HM},metadata:{simpleText:xa},callToAction:{simpleText:$7},dismiss:{simpleText:ro},endpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"/channel/"+NY,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:NY}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:UX}]},subscribed:!1,enabled:!0,type:"FREE",channelId:NY,showPreferences:!1,
subscribedButtonText:{runs:[{text:xa}]},unsubscribedButtonText:{runs:[{text:ro}]},trackingParams:bb+"=",unsubscribeButtonText:{runs:[{text:v7}]},serviceEndpoints:[{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[NY],params:v7}},{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:jD,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:bb+
"=",dialogMessages:[{runs:[{text:HM},{text:fy},{text:v7}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:We}]},serviceEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[NY],params:v7}},accessibility:{label:xg},trackingParams:bb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:HM}]},
accessibility:{label:$7},trackingParams:bb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:HM}},unsubscribeAccessibility:{accessibilityData:{label:pi}}}},trackingParams:bb+"=",isSubscribe:!0,id:C1}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+T,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+zd,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+T,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+dV+"G&rs="+T,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Rm,endMs:Rm,title:{accessibility:{accessibilityData:{label:ro}},simpleText:J9},metadata:{simpleText:HM},endpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
UX,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:UX,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+GJ+".googlevideo.com/videoplayback?source=youtube&oeis="+g5+"&c=WEB&oad="+vM+"&ovd="+vM+"&oaad="+kg+"&oavd="+kg+"&ocs="+Mf+"&oewis="+g5+"&oputc="+g5+"&ofpcc="+g5+"&siu="+g5+"&msp="+g5+"&odepv="+g5+
"&id=o-AF"+RA+"&ip="+ib+"&initcwndbps="+Rm+"&mt="+oq+"&oweuc="+Oe}}}}},trackingParams:bb+"=",id:C1,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:pi}},simpleText:ro},style:"DEFAULT"}}]}}],startMs:Rm,trackingParams:bb+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:g5,offsetEndMilliseconds:kg},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";ord="+oq+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+Mf+";dc_sk="+g5+";dc_ctype="+K5+";dc_ref=http://www.youtube.com/video/"+UX+";dc_pubid="+g5+";dc_btype=23?gclid="+r5+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+g5+"&ns="+g5+"&event="+g5+"&device="+g5+"&content_v="+Q+"&el="+HM+"&ei="+y+"&devicever="+X+"&bti="+Rm+"&format="+p1+"&break_type="+g5+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+g5+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ib+"&slot_pos="+g5+"&slot_len="+g5+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+jN+"&ad_len="+kg+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
UX+"&aqi="+y+"&ad_rmp="+g5+"&sli="+g5}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+
";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&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"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&ctype="+Mf+"&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"+
B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_engaged_view&ctype="+Mf+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+Rq+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+wj+"&ad_cpn=[AD_CPN]&id="+pi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pi+"&dc_pubid="+g5+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+wj+"&ad_cpn=[AD_CPN]&id="+pi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+g5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pi+"&avm="+g5+"&dc_pubid="+g5+"&dc_exteid="+
C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&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="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
P+"&sig="+wj+"&ad_cpn=[AD_CPN]&id="+pi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+g5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pi+"&dc_pubid="+g5+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:jD,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+
Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:bb+"="},trackingParams:bb+
"=",templatedCountdown:{templatedAdText:{text:Kq,isTemplated:!0,trackingParams:bb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:$7,isTemplated:!1,trackingParams:bb+"="},trackingParams:bb+"="}},trackingParams:bb+"=",skipOffsetMilliseconds:5E3}},trackingParams:bb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:fy},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:su,isTemplated:!1,trackingParams:bb+"="},trackingParams:bb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:su,isTemplated:!0,trackingParams:bb+"="}},trackingParams:bb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:jD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+qR+"&origin=www.youtube.com&ata_theme="+f7,rz),trackingParams:bb+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:bb+"="}},hoverText:{runs:[{text:We}]},trackingParams:bb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Sf+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bb+"="},headline:{text:xa,isTemplated:!1,trackingParams:bb+"="},description:{text:HM,
trackingParams:bb+"="},actionButton:{buttonRenderer:{text:{simpleText:J9},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bb+"="}},startMs:g5,trackingParams:bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:We},elementId:xg}},elementId:HM,trackingParams:bb+"=",legacyInfoCardVastExtension:Kq,sodarExtensionData:{siub:$7,bgub:TJ,scs:J9,bgp:fy},externalVideoId:UX,adLayoutLoggingData:{serializedAdServingDataEntry:xg},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Sf+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bb+"="},
headline:{text:su,isTemplated:!1,trackingParams:bb+"="},description:{text:HM,isTemplated:!1,trackingParams:bb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:v7},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+
C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+
g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:bb+"="}},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+
iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:bb+"="},abandonCommands:{commands:[{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&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="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+
g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:jD,commandExecutorCommand:{commands:[{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:bc,isTemplated:!1,trackingParams:bb+
"="},trackingParams:bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:TJ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+Rm+";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="+iU+";dc_trk_cid="+iU+";ord="+oq+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+Mf+";dc_sk="+g5+";dc_ctype="+K5+";dc_ref=http://www.youtube.com/video/"+UX+";dc_pubid="+g5+";dc_btype=23?gclid="+r5+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+g5+"&ns="+g5+"&event="+g5+"&device="+g5+"&content_v="+Q+"&el="+HM+"&ei="+y+"&devicever="+X+"&bti="+Rm+"&format="+p1+"&break_type="+g5+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+g5+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ib+"&slot_pos="+g5+"&slot_len="+g5+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
jN+"&ad_len="+kg+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+UX+"&aqi="+y+"&ad_rmp="+g5+"&sli="+g5}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+
J+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&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"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&ctype="+Mf+"&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"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_engaged_view&ctype="+Mf+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+wj+"&ad_cpn=[AD_CPN]&id="+
pi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pi+"&dc_pubid="+g5+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+
"&sig="+wj+"&ad_cpn=[AD_CPN]&id="+pi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+g5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pi+"&avm="+g5+"&dc_pubid="+g5+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&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="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+wj+"&ad_cpn=[AD_CPN]&id="+pi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+g5},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pi+"&dc_pubid="+g5+"&dc_exteid="+C1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+p1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+
Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:bb+"="},trackingParams:bb+"=",templatedCountdown:{templatedAdText:{text:pi,isTemplated:!0,trackingParams:bb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:v7,isTemplated:!1,trackingParams:bb+"="},trackingParams:bb+"="}},
trackingParams:bb+"=",skipOffsetMilliseconds:5E3}},trackingParams:bb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:bc},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:fy,isTemplated:!1,trackingParams:bb+"="},trackingParams:bb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Em,
isTemplated:!0,trackingParams:bb+"="}},trackingParams:bb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:jD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Yy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+qR+"&origin=www.youtube.com&ata_theme="+f7,Yy),trackingParams:bb+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:bb+"="}},hoverText:{runs:[{text:HM}]},trackingParams:bb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Om+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bb+"="},headline:{text:v7,isTemplated:!1,trackingParams:bb+"="},description:{text:su,trackingParams:bb+"="},actionButton:{buttonRenderer:{text:{simpleText:UX},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bb+"="}},startMs:g5,trackingParams:bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:$7},elementId:$7}},elementId:UX,trackingParams:bb+"=",legacyInfoCardVastExtension:pi,sodarExtensionData:{siub:HM,bgub:HM,scs:We,bgp:Kq},externalVideoId:UX,adLayoutLoggingData:{serializedAdServingDataEntry:UX},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Om+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:bb+"="},headline:{text:fy,
isTemplated:!1,trackingParams:bb+"="},description:{text:v7,isTemplated:!1,trackingParams:bb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:f7},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:bb+"="}},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+
g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:bb+"="},abandonCommands:{commands:[{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&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="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:jD,commandExecutorCommand:{commands:[{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:TJ,isTemplated:!1,trackingParams:bb+"="},trackingParams:bb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Em},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+g5+";dc_exteid="+C1+";met="+g5+";ecn"+g5+"="+g5+";etm1="+g5+";eid1="+
Rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:pi}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:kg,offsetEndMilliseconds:p1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+K5+"&token=ALHj"+H+"&index="+g5+"&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="+kg}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:p1,offsetEndMilliseconds:p1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+Mf+"&token=ALHj"+H+"&index="+g5+"&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="+p1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:HM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:p1,offsetEndMilliseconds:p1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+Mf+"&token=ALHj"+H+"&index="+g5+"&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="+p1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:p1,offsetEndMilliseconds:p1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+Mf+"&token=ALHj"+H+"&index="+g5+"&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="+p1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:UX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:p1,offsetEndMilliseconds:K5},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+Mf+"&token=ALHj"+H+"&index="+g5+"&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="+p1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xa}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:K5,offsetEndMilliseconds:K5},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+K5+"&token=ALHj"+H+"&index="+g5+"&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="+K5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Em}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:We,isTemplated:!1,trackingParams:bb+"="},description:{text:J9,isTemplated:!1,trackingParams:bb+"="},actionButton:{buttonRenderer:{text:{simpleText:Em},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Sf+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:bb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xj+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:bb+"="},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+
";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:jD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(sb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+qR+"&origin=www.youtube.com&ata_theme="+f7,sb),trackingParams:bb+"="}},popupType:"DIALOG"}},trackingParams:bb+"="}},hoverText:{runs:[{text:su}]},trackingParams:bb+"="}},adVideoId:UX,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:We},associatedCompositePlayerBytesLayoutId:su}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:$7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:bc,isTemplated:!1,trackingParams:bb+"="},description:{text:$7,isTemplated:!1,trackingParams:bb+"="},actionButton:{buttonRenderer:{text:{simpleText:Kq},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Om+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:bb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vA+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:bb+"="},navigationEndpoint:{clickTrackingParams:jD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+
g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:jD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+qR+"&origin=www.youtube.com&ata_theme="+f7,yb),trackingParams:bb+"="}},popupType:"DIALOG"}},trackingParams:bb+"="}},
hoverText:{runs:[{text:f7}]},trackingParams:bb+"="}},adVideoId:UX,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+UX+"&cid="+J+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Kq},associatedCompositePlayerBytesLayoutId:su}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:su,
isTemplated:!1,trackingParams:bb+"="},description:{text:pi,isTemplated:!1,trackingParams:bb+"="},actionButton:{buttonRenderer:{text:{simpleText:HM},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+
K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+
T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:bb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Sf+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:bb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xj+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:bb+
"="},navigationEndpoint:{clickTrackingParams:jD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+iU+";dc_trk_cid="+iU+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+g5+";ord="+iU+";dc_rui="+g5+";dc_exteid="+C1+";dc_av="+g5+";dc_sk="+g5+";dc_ctype="+K5+";dc_pubid="+g5+";dc_btype=3?gclid="+r5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+K+"AxAA&ase=2&num="+g5+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+T+"&adurl="+sF+"&label=video_click_to_advertiser_site&ctype="+Mf+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:bb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:jD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(K9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+qR+"&origin=www.youtube.com&ata_theme="+f7,K9),trackingParams:bb+"="}},popupType:"DIALOG"}},trackingParams:bb+
"="}},hoverText:{runs:[{text:xa}]},trackingParams:bb+"="}},adVideoId:UX,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+K+"AxAA&sigh="+Q+"&cid="+J+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:J9},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:su}},adSlotLoggingData:{serializedSlotAdServingDataEntry:f7}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Hp,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Hp,command:{innertubeCommand:{clickTrackingParams:jD,ypcGetOfflineUpsellEndpoint:{params:mH}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:bb+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:oq,nanos:u6}}}},mK=JSON.stringify(Ll),eJ=performance.now()-D;return{objectRepresentation:Ll,jsonRepresentation:mK,generationTime:eJ}};
pOR=function(D,C){if(D===C)return!0;if(!D||!C||typeof D!==typeof C)return!1;if(D instanceof Array&&C instanceof Array){if(D.length!==C.length)return!1;for(var X=0;X<D.length;X++)if(!pOR(D[X],C[X]))return!1;return!0}if(typeof D==="object"&&typeof C==="object"&&D&&C){for(X in D)if(!(X in C&&pOR(D[X],C[X])))return!1;for(var c in C)if(!(c in D))return!1;return!0}return!1};
_.Wl=function(){if(!oE){oE=new xT(new S_o);var D=_.BK("client_streamz_web_flush_count",-1);D!==-1&&(oE.invocationLimit=D)}return oE};
pH=function(D,C,X,c){if(D===C)return!0;if(Array.isArray(D)&&Array.isArray(C)){if(D.length!==C.length)return!1;for(var W=0;W<D.length;W++)if(!pH(D[W],C[W],X,c))return!1;return!0}if(D instanceof Set||C instanceof Set){if(D instanceof Set&&C instanceof Set){if(D.size!==C.size)return!1;c=_.U(D.values());for(W=c.next();!W.done;W=c.next())if(!C.has(W.value))return!1;return!0}return!1}if(D instanceof Function){if(c)return!0;D.name===""&&_.MN(Error("Qf"),"ERROR");return!1}if(D instanceof Date&&C instanceof
Date)return D.getTime()===C.getTime();if(D instanceof Object&&C instanceof Object){if(Ulm(D)&&Ulm(C))try{return D.equals(C)}catch(g){_.MN(Error("Rf`"+g),"ERROR")}W=Object.getOwnPropertyNames(D).filter(function(g){return X?D[g]!==void 0:!0});
var p=Object.getOwnPropertyNames(C).filter(function(g){return X?C[g]!==void 0:!0});
if(W.length!==p.length)return!1;W=_.U(W);for(p=W.next();!p.done;p=W.next())if(p=p.value,!pH(D[p],C[p],X,c))return!1;return!0}return!1};
Ulm=function(D){D=Object.getPrototypeOf(D).equals;return D instanceof Function&&D.length===1};
_.Idj=function(){return _.I(function(D){if(D.nextAddress==1)return gdh!==2?D.jumpTo(2):D.yield(adn(),3);D.nextAddress!=2&&(gdh=D.yieldResult);return D.return(gdh)})};
_.PIm=function(){return _.I(function(D){if(D.nextAddress==1)return _.b("ab_pl_man")?O6t!==2?D.jumpTo(2):D.yield(ASt(),3):D.return(1);D.nextAddress!=2&&(O6t=D.yieldResult);return D.return(O6t)})};
i6d=function(){return _.I(function(D){if(D.nextAddress==1)return _.b("ab_fk_sk_cl")?$lF!==2?D.jumpTo(2):D.yield(vdJ(),3):D.return(1);D.nextAddress!=2&&($lF=D.yieldResult);return D.return($lF)})};
_.Q45=function(){return _.I(function(D){if(D.nextAddress==1)return _.b("ab_det_apb_b")?kpR!==2?D.jumpTo(2):D.yield(u0h(),3):D.return(1);D.nextAddress!=2&&(kpR=D.yieldResult);return D.return(kpR)})};
rSd=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(Promise.all([_.Idj(),_.Q45(),_.PIm(),i6d()]),2);if(C.nextAddress!=3)return BuF()?C.return(!0):C.yield(_.b6o(),3);D=C.yieldResult;return C.return(D===0)})};
BuF=function(){var D=!1,C=function(X,c){Kmn.increment(c,X);X===0&&(D=!0)};
C(_.hmr(),"j.s_");C(gdh,"f.i_");C(kpR,"a.b_");C(O6t,"p.m_");C($lF,"i.f_");xl3===2&&(xl3=_.Lm3(s4h));C(xl3,"e.h_");_.b("ks_det_gpbl")||C(_.mlR(),"p.i_");_.b("ks_get_o_pp")||C(_.emr(),"g.o_");_.b("ab_deg_unex_thr")||C(_.EdW(),"a.o_");C(t0r,"s.t_");_.b("ab_det_sc_inj_enf")&&C(_.Num(),"s.i_");C(Y_5,"d.p_");C(_.ySd(_.S_),"o.p_");C(_.nd3()===0?0:_.wOo(),"o.a_");return _.b("debug_sk_em_precheck")?!0:D};
Z6F=function(){var D=[].concat(_.VB(Fmr));try{var C=Wmr();D.push({jsonRepresentation:C.jsonRepresentation,objectRepresentation:C.objectRepresentation})}catch(X){D=[].concat(_.VB(Fmr))}return D};
GpJ=function(){var D=["adPlacements","adSlots"];try{return D.filter(function(){return!0}).length!==D.length?0:1}catch(C){return 0}};
_.emr=function(){if(GpJ()===0)return 0;var D=Wmr(),C=D.objectRepresentation,X=(0,_.ZI.unsafeClone)(C),c=[];if(C&&typeof C==="object")for(var W in C)c.push(W);else return 4;D=D.objectRepresentation.adPlacements;if(!(D&&D.length>0))return 4;try{if(!pOR(c,Object.getOwnPropertyNames(C)))return 0}catch(p){return 0}return pOR(X,C)?1:0};
_.ySd=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var C=Object.getOwnPropertyNames(Object.prototype),X=0;X<D.length;X++)for(var c=_.Dg(D[X]),W=_.U(C),p=W.next();!p.done;p=W.next())if(c===p.value)return 0;return 1};
V0Z=function(D){var C=_.Dg(D[1]);if(D[0]===null)return C;D=D[0];for(var X={},c=0;c<D.length;c++){var W=_.Dg(D[c]);if(c===0)X[W]=C;else{var p={};p[W]=X;X=p}}return X};
_.nd3=function(){for(var D=_.U2,C=0;C<D.length;C++){var X=V0Z(D[C]),c=[];c.push(X);if(c.length===0)return 0}return 1};
_.wOo=function(){for(var D=_.U2,C={},X=0;X<D.length;C={oOL:void 0},X++){var c=[V0Z(D[X])];C.oOL=[];c.forEach(function(W){return function(p){W.oOL[W.oOL.length]=p}}(C));
if(C.oOL.length===0)return 0}return 1};
_.hmr=function(){for(var D=_.U(Z6F()),C=D.next();!C.done;C=D.next()){var X=C.value;C=X.jsonRepresentation;X=X.objectRepresentation;try{var c=JSON.parse(C);if(!pH(c,X,!1,!1))return 0}catch(W){return 0}}return 1};
_.Num=function(){try{var D=_.rT("ab_det_sc_inj_val");D.length===1&&D[0]===""&&(D=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var C=document.querySelectorAll("script"),X=_.U(C),c=X.next();!c.done;c=X.next())for(var W=c.value,p=_.U(D),g=p.next();!g.done;g=p.next()){var a=g.value;C=void 0;if((C=W.textContent)==null?0:C.includes(a))return 0}}catch(O){return 4}return 1};
_.b6o=function(){var D,C,X,c,W,p,g;return _.I(function(a){switch(a.nextAddress){case 1:_.KK(a,2),D=_.U(Fmr),C=D.next();case 4:if(C.done)return a.return(1);c=X=C.value;W=c.jsonRepresentation;p=c.objectRepresentation;return a.yield((new Response(W,{status:200})).json(),7);case 7:g=a.yieldResult;if(!pH(g,p,!1,!1))return a.return(0);C=D.next();a.jumpTo(4);break;case 2:return _.Eu(a),a.return(4)}})};
_.EdW=function(){try{btoa("abc")}catch(D){return 0}return 1};
adn=function(){var D,C,X,c,W,p,g,a,O,P,k;return _.I(function(u){switch(u.nextAddress){case 1:_.KK(u,2),D=_.U(Z6F()),C=D.next();case 4:if(C.done)return u.return(1);c=X=C.value;W=c.jsonRepresentation;p=c.objectRepresentation;g=btoa(W);a="data:application/json;base64,"+g;O=new Request(a);Object.defineProperty(O,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(O,"method",{get:function(){return"POST"}});
Object.defineProperty(O,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(O,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(O,"body",{get:function(){return new ReadableStream}});
return u.yield(fetch(O),7);case 7:return P=u.yieldResult,u.yield(P.json(),8);case 8:k=u.yieldResult;if(!pH(k,p,!1,!1))return u.return(0);C=D.next();u.jumpTo(4);break;case 2:return _.Eu(u),u.return(4)}})};
_.Lm3=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var C=function(W){return _.Dg(W)},X=2,c=0;c<D.length&&(X=_.Tun(_.cSj(D[c],C)),X!==0);c++);
return X};
_.Tun=function(D){var C=_.U(D);D=C.next().value;C=C.next().value;try{var X=document.createElement("div");document.body.appendChild(X);var c=getComputedStyle(X).display;document.body.removeChild(X);if(c==="none")return 4;var W=getComputedStyle(C).display==="none"?0:1;document.body.removeChild(D);return W}catch(p){return 4}};
vdJ=function(){var D,C,X;return _.I(function(c){D=new _.gL;C=document.createElement("button");C.classList.add("ytp-ad-skip-button");C.style.opacity="0";C.style.height="0px";C.style.width="0px";C.style.padding="0px";C.style.border="none";X=function(){C.parentElement&&C.parentElement.removeChild(C)};
C.onclick=function(){D.resolve(0);X()};
document.body.appendChild(C);setTimeout(function(){X();D.resolve(1)},50);
return c.return(D.promise)})};
ASt=function(){var D,C,X,c,W,p,g;return _.I(function(a){D=new _.gL;C=document.createElement("ytd-player");try{document.body.prepend(C)}catch(O){return a.return(4)}X=function(){C.parentElement&&C.parentElement.removeChild(C)};
C.getElementsByTagName("div").length>0?c=C.getElementsByTagName("div")[0]:(c=document.createElement("div"),C.appendChild(c));W=document.createElement("div");c.appendChild(W);p=document.createElement("video");g=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"});p.src=_.Z6(_.J2(g));p.ontimeupdate=function(){X();D.resolve(0)};
W.appendChild(p);p.classList.add("html5-main-video");setTimeout(function(){W.classList.add("ad-interrupting")},200);
setTimeout(function(){X();D.resolve(1)},5E3);
return a.return(D.promise)})};
H6h=function(D){var C=Wmr().objectRepresentation.playbackTracking;if(C){var X=[],c;X.push(C==null?void 0:(c=C.videostatsPlaybackUrl)==null?void 0:c.baseUrl);var W;X.push(C==null?void 0:(W=C.videostatsDelayplayUrl)==null?void 0:W.baseUrl);var p;X.push(C==null?void 0:(p=C.videostatsWatchtimeUrl)==null?void 0:p.baseUrl);var g;X.push(C==null?void 0:(g=C.ptrackingUrl)==null?void 0:g.baseUrl);var a;X.push(C==null?void 0:(a=C.qoeUrl)==null?void 0:a.baseUrl);var O;X.push(C==null?void 0:(O=C.atrUrl)==null?
void 0:O.baseUrl);C=_.U(X);for(X=C.next();!X.done;X=C.next())if((X=X.value)&&D.test(X))return X.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
JS5=function(D,C){var X,c;return _.I(function(W){switch(W.nextAddress){case 1:X=[],c=0;case 2:if(!(c<3)){W.jumpTo(4);break}return W.yield(fetch(D,{cache:"no-store",method:C}).then(function(p){X.push(p.status)}).catch(function(){X.push(-1)}),3);
case 3:c++;W.jumpTo(2);break;case 4:return W.return(X)}})};
zm5=function(D){return D.domainLookupStart===0&&D.domainLookupEnd===0&&D.connectStart===0&&D.connectEnd===0||D.duration===0};
j4o=function(D,C,X){X=X===void 0?"GET":X;var c,W,p,g,a,O,P,k,u,Q;return _.I(function(B){if(B.nextAddress==1)return B.yield(Promise.all([JS5(D,X),JS5(C,X)]),2);c=B.yieldResult;W=_.U(c);p=W.next().value;g=W.next().value;a=p;O=g;if(Math.min.apply(Math,_.VB(O))!==Math.max.apply(Math,_.VB(O))||Math.min.apply(Math,_.VB(a))!==Math.max.apply(Math,_.VB(a)))return B.return(2);if(Math.min.apply(Math,_.VB(O))===Math.min.apply(Math,_.VB(a)))return B.return(1);k=(P=performance.getEntriesByName(D))==null?void 0:
P[0];Q=(u=performance.getEntriesByName(C))==null?void 0:u[0];return k&&Q?zm5(Q)?B.return(1):zm5(k)?B.return(0):B.return(1):B.return(2)})};
u0h=function(){var D;return _.I(function(C){var X=[];var c;var W,p,g;(W=c=(W=Wmr().objectRepresentation.streamingData)==null?void 0:(p=W.formats)==null?void 0:(g=p[0])==null?void 0:g.url)&&W&&!c.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(W=W.replace("initcwndbps","ctier=L&initcwndbps"),W=W.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),c={testUrl:W,baseUrl:c,method:"GET"}):c=void 0;c&&X.push(c);_.b("ab_net_tp_e")&&X.push({testUrl:_.co.location.origin+"/ad_companion",baseUrl:_.co.location.origin+
"/generate_204",method:"OPTIONS"});_.b("ab_fix_creator_view_cnt")&&(X.length=0,(c=H6h(/api\/stats\/atr/))&&X.push({testUrl:_.co.location.origin+c,baseUrl:_.co.location.origin+"/generate_204",method:"POST"}));_.b("ad_net_pb_pbp")&&(c=H6h(/api\/stats\/qoe/))&&X.push({testUrl:_.co.location.origin+c,baseUrl:_.co.location.origin+"/feed/download",method:"GET"});X=X.length!==0?X[Math.floor(Math.random()*X.length)]:void 0;return(D=X)?C.return(j4o(D.testUrl,D.baseUrl,D.method)):C.return(4)})};
_.mlR=function(){if(_.co.y4E===void 0||_.co.y4E===null||typeof _.co.y4E!=="function")return 2;try{return _.co.y4E()===!0?0:1}catch(D){return 0}};
M0n=function(D){switch(D){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.qf(D,"unknown result type")}};
_.q_j=function(D,C){var X=Number(_.q6("CATSTAT",0));if(C.pYl===void 0)return X;C=C.pYl;D=M0n(D);return X&~(3<<C)|D<<C};
fdJ=function(D){var C,X;if((D=(C=D.auxiliaryUi)==null?void 0:(X=C.messageRenderers)==null?void 0:X.bkaEnforcementMessageViewModel)&&D.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return D};
RmF=function(){for(var D=_.U(Object.values(_.dlo)),C=D.next();!C.done;C=D.next())C=C.value,C.fVD&&C.pYl&&_.M6("CATSTAT",_.q_j(2,C))};
_.O2=function(D,C){D=_.aE("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",D);(C===void 0?0:C)?_.ldJ(D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.IE().logFlowEvent(D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
CeZ=function(){if(!DVR){if(Polymer.Base){var D=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{D.apply(this,arguments)}catch(u){_.Re(u)}};
var C=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{C.apply(this,arguments)}catch(u){_.Re(u)}};
var X=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{X.apply(this,arguments)}catch(u){_.Re(u)}};
var c=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{c.apply(this,arguments)}catch(u){_.Re(u)}};
var W=Polymer.Base._listen,p=new WeakMap;Polymer.Base._listen=function(u,Q,B){var K=function(){try{B.apply(this,arguments)}catch(L){_.Re(L)}};
p.set(B,K);W.call(this,u,Q,K)};
var g=Polymer.Base._unlisten;Polymer.Base._unlisten=function(u,Q,B){g.call(this,u,Q,p.get(B))}}if(Polymer.Async){var a=Polymer.Async,O=a._atEndOfMicrotask;
a._atEndOfMicrotask=function(){try{O.apply(a,arguments)}catch(u){_.Re(u)}}}if(Polymer.RenderStatus){var P=Polymer.RenderStatus,k=P.afterNextRender;
P.afterNextRender=function(u,Q,B){k.call(P,u,function(){try{Q.apply(this,arguments)}catch(K){_.Re(K)}},B)}}DVR=!0}};
_.ceJ=function(D){var C=D?_.mC(D):"";if(C){if(C.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(C.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(C.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(C.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(C.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.b("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(C.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";C=C.toLowerCase();if(C==="/")return"home";if(C==="/channel_memberships")return"channel-memberships-shopfront";if(C.indexOf("/feed/trending")===0)return"trending";if(C.indexOf("/feed/explore")===0)return"explore";if(C.indexOf("/live")===0)return"live";if(C.indexOf("/results")===0)return"search";if(C.indexOf("/sports")===0)return"sports";if(C.indexOf("/fashion")===0||C.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(C))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(C))return _.b("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(C.indexOf("/channel/")===0||C.indexOf("/user/")===0||C.indexOf("/gaming")===0||C.indexOf("/post/")===0)return"channel";if(XwZ(D))return"show";if(C==="/playlist"||C.indexOf("/playlist/")===0||C==="/view_play_list"||C.indexOf("/view_play_list/")===0||C.indexOf("/show/")===0)return"playlist";if(C==="/companion_canvas")return"companion-canvas";if(C==="/feed/history"||
C.indexOf("/feed/history/")===0)return"history";if(C==="/new")return"labs";if(C==="/feed/subscriptions")return"subscriptions";if(C.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(C==="/history_controls")return"standalone";if(C.indexOf("/account")===0||C==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(C.indexOf("/paid_memberships")===0||C.indexOf("/refund")===0||C.indexOf("/purchases")===0||C.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(C.indexOf("/product")===
0)return"yts-products";if(C.indexOf("/premium")===0||C.indexOf("/musicpremium")===0)return C.indexOf("/premium/offers")===0||C.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(C==="/cart/checkout"||C==="/cart")return"ypc-checkout";if(C.indexOf("/reporthistory")===0)return _.b("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(C.indexOf("/feed/downloads")===0||C.indexOf("/redeem")===0)return"browse";if(C.indexOf("/hashtag")===0)return"hashtag-landing-page";if(C.indexOf("/handle")===
0)return"handle";if(C.indexOf("/source")===0)return"audio-pivot";if(C.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(C.indexOf("/playables")===0)return"playables";if(C.indexOf("/create/live/join")===0)return"open-in-app";if(C.indexOf("/shorts")===0)return"shorts";if(C.indexOf("/feed/channels")===0)return"subscriptions-channels";var X=D?_.mC(D):"";X&&X.indexOf("/watch")===0&&_.b("web_watch_enable_learning_journey")?(D=_.UY(D),D=!!D.list&&D.list.indexOf("LJPP")===0):D=!1;if(D)return"learning_journey_watch";
if(_.b("enable_new_page_subtypes_for_ai_companion")&&C==="/feed/courses")return"your-courses"}};
_.A9=function(D){var C,X;(D=(X=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:X.url)&&(C=_.ceJ(D));return C};
XwZ=function(D){var C=D?_.mC(D):"";if(!C)return!1;C=C.toLowerCase();return C.indexOf("/show/")===0||C.indexOf("/playlist")===0&&(D=_.UY(D),D.list&&D.list.indexOf("EL")===0)?!0:!1};
vl=function(D){var C="unknown",X;var c=((X=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:X.webPageType)||"";c?(X=c.toLowerCase(),X.startsWith("web_page_type_")&&(X=X.slice(14))):X=c;X&&o9F[X.toUpperCase()]?C=o9F[X.toUpperCase()]:_.r(D,_.Pl)||_.r(D,Wb3)?C="browse":_.r(D,_.$o)?C="search":_.r(D,_.TC)&&(C="watch");C==="watch"&&_.A9(D||null)==="learning_journey_watch"&&(C="learning_journey_watch");C==="unknown"&&_.fQ(Error("Tf`"+JSON.stringify({clickTrackingParams:D==null?void 0:D.clickTrackingParams,
commandMetadata:D==null?void 0:D.commandMetadata,allEndpointKeys:Object.keys(D||[])})));return C};
_.ij=function(D){if(!_.pwm||D)_.pwm=_.eo();return _.pwm};
_.Sgj=function(D){return!!_.r(D,_.TC)||!!_.r(D,_.ko)&&_.b("kevlar_enable_shorts_prefetch")};
_.UVm=function(D,C){D=_.r(D,_.TC)||_.r(D,_.ko);return"v"+D.videoId+(D.playlistId?"-pl"+D.playlistId:"")+(C?"-an1":"")+(D.params?"-pr"+D.params:"")};
_.g9W=function(D){var C=new uj(_.q6("ONE_PICK_URL",""));C.urlParamMap_.set("hostId",D);(D=_.q6("GAPI_LOCALE"))&&C.urlParamMap_.set("hl",D);(D=_.q6("SESSION_INDEX"))&&C.urlParamMap_.set("authuser",D);(D=_.q6("DELEGATED_SESSION_ID"))&&C.urlParamMap_.set("groupId",D);return C};
IXn=function(){var D=_.iX(),C=D.resolve(_.Qt);D=D.resolve(_.Bl);return new aXm(C,D)};
Aeh=function(D){if(window.IntersectionObserver)return new O9F(D,400);throw new TypeError("Vf");};
$V3=function(){var D=Hammer.TouchAction,C=D.prototype.preventDefaults;D.prototype.preventDefaults=function(X){var c=this.actions.indexOf("pan-down")>-1;if(!c)return C.call(this,X);if(!Pe3){var W=X.srcEvent;X=X.direction;var p;if((p=this.manager)==null?0:p.session.prevented)W.preventDefault();else if(c&&X&Hammer.DIRECTION_DOWN)return this.preventSrc(W)}}};
v9j=function(D){if(!D||D.size===0)return Hammer.DIRECTION_ALL;if(D.size===2){if(D.has("up")&&D.has("down"))return Hammer.DIRECTION_VERTICAL;if(D.has("right")&&D.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(D.size===1){if(D.has("up"))return Hammer.DIRECTION_UP;if(D.has("down"))return Hammer.DIRECTION_DOWN;if(D.has("right"))return Hammer.DIRECTION_RIGHT;if(D.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.kOR=function(){return i9t?Promise.resolve(i9t):new Promise(function(D,C){var X=self.indexedDB.open("swpushnotificationsdb");X.onerror=C;X.onsuccess=function(){var c=X.result;if(c.objectStoreNames.contains("swpushnotificationsstore"))i9t=c,D(i9t);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.kOR()};
X.onupgradeneeded=uZJ})};
uZJ=function(D){D=D.target.result;D.objectStoreNames.contains("swpushnotificationsstore")&&D.deleteObjectStore("swpushnotificationsstore");D.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.rL=function(D,C,X){var c=X&&X>0?X:0;X=c?Date.now()+c*1E3:0;if((c=c?_.bj.getLocalStorage():_.bj.getSessionStorage())&&window.JSON){typeof C!=="string"&&(C=JSON.stringify(C,void 0));try{c.set(D,C,X)}catch(W){c.remove(D)}}};
_.KH=function(D){var C=_.bj.getSessionStorage(),X=_.bj.getLocalStorage();if(!C&&!X||!window.JSON)return null;try{var c=C.get(D)}catch(W){}if(typeof c!=="string")try{c=X.get(D)}catch(W){}if(typeof c!=="string")return null;try{c=JSON.parse(c,void 0)}catch(W){}return c};
_.h9=function(D){try{var C=_.bj.getSessionStorage(),X=_.bj.getLocalStorage();C&&C.remove(D);X&&X.remove(D)}catch(c){}};
BzW=function(D){var C=QuF(),X;return _.I(function(c){switch(c.nextAddress){case 1:return _.KK(c,2),c.yield(D.match(C,{cacheName:"yt-appshell-assets"}),4);case 4:X=c.yieldResult;_.SR(c,3);break;case 2:_.Eu(c);case 3:return c.return(X)}})};
QuF=function(){var D=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?b9j.registration.scope:rer;D.endsWith("/")&&(D=D.slice(0,-1));return D+"/app_shell_home"};
Kbm=function(D){D.map(function(C){return C.source}).join("|")};
_.hsm=function(D){return _.I(function(C){return C.return(BzW(D))})};
xVW=function(){var D=window.caches,C;return _.I(function(X){if(X.nextAddress==1)return X.yield(_.hsm(D),2);C=X.yieldResult;return X.return(!!C)})};
Nz5=function(){_.I(function(D){if(D.nextAddress==1){if(Lbm)return D.jumpTo(0);Lbm=!0;if(_.b("enable_system_health_primes_monitoring"))return _.LC(sum,3E4),mVr(),D.return();if(!(Math.random()<_.BK("web_system_health_fraction")))return D.jumpTo(0);esF={heightPixels:screen.height,widthPixels:screen.width};xo&&!isNaN(xo.jsHeapSizeLimit)&&(esF.memoryTotalKbytes=String(Math.round(xo.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(esF.devicePixelRatio=window.devicePixelRatio);return D.yield(E9J(),4)}_.LC(sum,
3E4);return D.yield(txF(),0)})};
E9J=function(){return _.I(function(D){if(D.nextAddress==1)return LH.intersectionObserverPresent="IntersectionObserver"in window,LH.serviceWorkerPresent="serviceWorker"in navigator,LH.webSharePresent="share"in navigator,LH.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,LH.cacheStoragePresent="caches"in window,LH.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,LH.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
LH.webkitTemporaryStoragePresent="webkitTemporaryStorage"in s2&&s2.webkitTemporaryStorage&&"queryUsageAndQuota"in s2.webkitTemporaryStorage,LH.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",D.yield(k1W(),2);LH.indexedDbPresent=D.yieldResult;LH.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;LH.broadcastChannelPresent="BroadcastChannel"in window;LH.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(LH.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,LH.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.t_(D)})};
sum=function(){var D=9E4+Math.random()*2E3;_.kl()>D||(_.b("enable_system_health_primes_monitoring")?mVr():txF())};
txF=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(YgF(),2);D=C.yieldResult;_.zu("systemHealthCaptured",D);_.t_(C)})};
mVr=function(){var D={metric:{}},C=yeW();C.networkEvents.length&&(D.metric.networkEvents=n9m(C));_.zu("systemHealthCaptured",D)};
YgF=function(){var D,C,X,c,W,p,g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:D={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};C=window.screen;_.b("enable_is_extended_monitoring")&&C&&"isExtended"in C&&(D.isExtended=!!C.isExtended);X={metric:{staticContext:esF,dynamicContext:D,webMetric:wwr,webApiSupport:LH}};
if(c=_.LN())X.csn=c;xo&&(X.metric.webMetric.currentHeapKbytes=Math.round(xo.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 s2&&typeof s2.getBattery==="function")){k.jumpTo(2);break}return k.yield(s2.getBattery(),3);case 3:if(W=
k.yieldResult)X.metric.dynamicContext.chargingStatus=W.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(X.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(LH.storageEstimatePresent)return k.yield(navigator.storage.estimate(),8);if(!LH.webkitTemporaryStoragePresent){k.jumpTo(5);break}return k.yield(FbJ(),7);case 7:p=k.yieldResult;k.jumpTo(5);break;case 8:p=k.yieldResult;case 5:return X.metric.dynamicContext.deviceStorageQuotaMbytes=((g=p)==null?0:g.quota)?String(Math.round(p.quota/
1048576/10)*10):"-1",X.metric.dynamicContext.deviceStorageUsageMbytes=((a=p)==null?0:a.usage)?String(Math.round(p.usage/1048576/10)*10):"-1",O=X.metric.dynamicContext,k.yield(xVW(),9);case 9:return O.hasAppShell=k.yieldResult,P=yeW(),P.networkEvents.length&&(X.metric.networkEvents=n9m(P)),k.return(X)}})};
FbJ=function(){return new Promise(function(D){var C;LH.webkitTemporaryStoragePresent&&(C=s2.webkitTemporaryStorage)!=null&&C.queryUsageAndQuota?s2.webkitTemporaryStorage.queryUsageAndQuota(function(X,c){D({usage:X,quota:c})}):D(void 0)})};
_.mW=function(D){D&=16777215;D=[(D&16711680)>>16,(D&65280)>>8,D&255];return Z9r(D[0],D[1],D[2])};
_.e_=function(D){D=[(D&16711680)>>>16,(D&65280)>>>8,D&255,(D&4278190080)>>>24];if(!_.GOJ(D,function(C){return C===(C&255)}))throw Error("Wf`"+D.join(","));
return"rgba("+D[0]+","+D[1]+","+D[2]+","+(D[3]/255).toFixed(3)+")"};
_.VxJ=function(D){return[(D&16711680)>>>16,(D&65280)>>>8,D&255]};
_.Tz5=function(D){D=D.map(function(C){C/=255;return C<=.03928?C/12.92:Math.pow((C+.05)/1.05,2.4)});
return D[0]*.2126+D[1]*.7152+D[2]*.0722};
E2=function(D,C){D=_.VxJ(D);return"rgba("+D[0]+", "+D[1]+", "+D[2]+", "+C+")"};
t9=function(D){return(D&4278190080)>>>24===0?E2(D,"1"):_.e_(D)};
_.H9m=function(){try{return!!self.localStorage}catch(D){return!1}};
Mxr=function(){if(Jen())_.fQ(Error("Xf"));else{var D=document.createElement("iframe");D.style.display="none";var C=C===void 0?window.location.href:C;var X=_.fq(_.q6("PERSIST_IDENTITY_IFRAME_URL"));C=X?X:(new URL(C)).host.indexOf("studio")===0?_.kX(zsn,"persist_identity"):_.kX(jur,"persist_identity");_.X7(D,1,C);D.id="persist_identity";var c;(c=document.body)==null||c.appendChild(D)}};
Jen=function(){var D=qgm;D||(D=document.querySelector("#persist_identity"));return D};
fXj=function(){var D=!1;try{D=!!window.sessionStorage.getItem("session_logininfo")}catch(C){D=!0}return(_.q6("INNERTUBE_CLIENT_NAME")==="WEB"||_.q6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&D};
dVr=function(D,C){if(!fXj())return!1;C||(C=_.q6("LOGIN_INFO"));return C?(D.session_logininfo=C,!0):!1};
lX5=function(D,C){D=D===void 0?!1:D;if((C===void 0||!C)&&Rst!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.dq("LOG_STICKINESS",!1)){C=_.LN();var X=_.xr(),c={identityStickinessData:{initialState:Rst}};C&&X&&_.zo(C,X,c)}if(C=Jen())if(X=C.src?(new URL(C.src)).origin:"*",D){var W;(W=C.contentWindow)==null||W.postMessage({action:"clear"},X)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(D=window.sessionStorage.getItem("session_logininfo"))){var p;(p=C.contentWindow)==null||p.postMessage({loginInfo:D},X)}};
_.Nz=function(D){D=D===void 0?!0:D;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.M6("LOGIN_INFO",""),D&&window.sessionStorage.setItem("from_switch_account","1"),lX5(!0,D)}catch(C){}};
D05=function(D){D&&(D.startsWith("https://accounts.google.com/AddSession")?_.Nz():D.startsWith("https://accounts.google.com/ServiceLogin")?_.Nz():D.startsWith("https://myaccount.google.com")&&_.Xg(D).getPath().endsWith("/youtubeoptions")&&_.Nz())};
Yo=function(D,C){D05(D);if(_.dq("LOGGED_IN",!0)&&fXj()){var X=DUW(D);X==null&&(X={});dVr(X,C)&&_.jc(D,X)}};
CBr=function(){function D(C){for(C=C.target;C&&C.nodeName!=="A";)if(C=C.parentNode,!(C&&C instanceof HTMLElement))return;if(C&&!C.hasAttribute("download")&&C.getAttribute("rel")!=="external"&&C.href)return C.href}
document.addEventListener("mousedown",function(C){C.button!==0&&(C=D(C))&&Yo(C)});
document.addEventListener("click",function(C){(C=D(C))&&Yo(C)})};
oAh=function(){var D=new XYd;try{if(_.dq("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(a){D.increment(5,!1);return}if(_.q6("LOGIN_INFO")){var C=cDm?cDm:window.location;_.q6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Mxr();var X=DUW(C.href);X==null&&(X={});var c=X.session_logininfo,W=Number(window.sessionStorage.getItem("stickiness_reload")),p=c===_.q6("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
W>=2||p)W>=2?D.increment(2,p):p?D.increment(7,p):window.sessionStorage.getItem("session_logininfo")||(D.increment(3,p),Rst="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.q6("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.q6("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))D.increment(4,p),window.sessionStorage.removeItem("stickiness_reload");
else if(W<2){window.sessionStorage.setItem("stickiness_reload",String(W+1));var g=C.href;g=_.MF(g,"sttick");Yo(g,window.sessionStorage.getItem("session_logininfo"));g=_.gT(g,{sttick:W});D.increment(W,p);_.kLm(C,g)}}else D.increment(6,!1)}else _.Nz(!1)}catch(a){}};
_.nH=function(D,C,X,c,W){C=C===void 0?{}:C;X=X===void 0?"":X;c=c===void 0?window:c;D=_.aQ(D,C);Yo(D);X=_.Hv(D+X,W);_.kLm(c.location,X)};
W1W=function(D){if(D.urlEndpoint){if(D=_.UY(D.urlEndpoint.url),D.adurl)return $z(D.adurl)}else if(D.watchEndpoint)return"//www.youtube.com/watch?v="+D.watchEndpoint.videoId;return null};
pYo=function(D){if(!D||!D.reportingPings)return null;var C={};D.reportingPings.forEach(function(X){X.pingType in C?C[X.pingType].push(X.url):C[X.pingType]=[X.url]});
return{adpings:zIR(C)}};
_.FU=function(D){D=D===void 0?!1:D;var C=_.PE(),X="USER_INTERFACE_THEME_LIGHT";C.getFlag(165)?X="USER_INTERFACE_THEME_DARK":C.getFlag(174)?X="USER_INTERFACE_THEME_LIGHT":_.wL()&&(X="USER_INTERFACE_THEME_DARK");return D?X:Skh()||X};
_.U0o=function(){return!_.b("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.wL=function(){return _.U0o()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Zg=function(){var D=_.PE();return _.U0o()&&!D.getFlag(165)&&!D.getFlag(174)};
Skh=function(){var D=D===void 0?window.location.href:D;if(_.b("kevlar_disable_theme_param"))return null;var C=_.mC(D);if(_.gAR(C))return"USER_INTERFACE_THEME_DARK";try{var X=_.UY(D).theme;return a$R.get(X)||null}catch(c){}return null};
_.gAR=function(D){return _.b("enable_dark_theme_only_on_shorts")?!(D==null||!D.startsWith("/shorts/")):!1};
_.ADm=function(D,C,X,c,W){C=C===void 0?!1:C;X=X===void 0?!1:X;var p=_.q6("INNERTUBE_CONTEXT");if(!p)return _.MN(Error("ag")),{};p=(0,_.ZI.unsafeClone)(p);_.b("web_no_tracking_params_in_shell_killswitch")||delete p.clickTracking;p.client||(p.client={});var g=p.client;g.clientName==="MWEB"&&g.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(g.clientFormFactor=_.q6("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");g.screenWidthPoints=window.innerWidth;g.screenHeightPoints=window.innerHeight;g.screenPixelDensity=
Math.round(window.devicePixelRatio||1);g.screenDensityFloat=window.devicePixelRatio||1;g.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());g.userInterfaceTheme=_.FU();if(!C){var a=_.VyZ();a&&(g.connectionType=a);_.b("web_log_effective_connection_type")&&(a=HtZ())&&(p.client.effectiveConnectionType=a)}var O;if(_.b("web_log_memory_total_kbytes")&&((O=_.co.navigator)==null?0:O.deviceMemory)){var P;O=(P=_.co.navigator)==null?void 0:P.deviceMemory;p.client.memoryTotalKbytes=""+O*1E6}C&&c&&!_.b("web_it_context_set_original_url_ks")&&
(g.originalUrl=I$m(_.co.location.href,c).toString());_.b("web_gcf_hashes_innertube")&&(a=l75())&&(P=a.coldConfigData,O=a.coldHashData,a=a.hotHashData,p.client.configInfo=p.client.configInfo||{},P&&(p.client.configInfo.coldConfigData=P),O&&(p.client.configInfo.coldHashData=O),a&&(p.client.configInfo.hotHashData=a));P=_.UY(_.co.location.href);!_.b("web_populate_internal_geo_killswitch")&&P.internalcountrycode&&(g.internalGeo=P.internalcountrycode);!_.b("web_populate_client_screen_killswitch")&&W&&(g.clientScreen=
W);g.clientName==="MWEB"||g.clientName==="WEB"?(g.mainAppWebInfo||(g.mainAppWebInfo={}),g.mainAppWebInfo.graftUrl=c||_.co.location.href,_.b("kevlar_woffle")&&_.Gh.instance&&(c=_.Gh.instance,g.mainAppWebInfo.pwaInstallabilityStatus=!c.appInstalledEventFired&&c.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.mainAppWebInfo.webDisplayMode=JXr(),g.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):g.clientName==="TVHTML5"&&
(!_.b("web_lr_app_quality_killswitch")&&(c=_.q6("LIVING_ROOM_APP_QUALITY"))&&(g.tvAppInfo=Object.assign(g.tvAppInfo||{},{appQuality:c})),c=_.q6("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(g.tvAppInfo=Object.assign(g.tvAppInfo||{},{certificationScope:c}));!_.b("web_populate_time_zone_itc_killswitch")&&(c=Zto())&&(g.timeZone=c);(c=pEm())?g.experimentsToken=c:delete g.experimentsToken;g=SpF();c=_.O33();c=(0,_.ZI.getValues)(c.tokenJars);p.request=Object.assign({},p.request,{internalExperimentFlags:g,consistencyTokenJars:c});
!_.b("web_prequest_context_killswitch")&&(g=_.q6("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(p.request.externalPrequestContext=g);c=_.PE();g=c.getFlag(58);c=c.get("gsml","");p.user=Object.assign({},p.user);g&&(p.user.enableSafetyMode=g);c&&(p.user.lockedSafetyMode=!0);_.b("warm_op_csn_cleanup")?X&&(C=_.LN())&&(p.clientScreenNonce=C):!C&&(C=_.LN())&&(p.clientScreenNonce=C);D&&(p.clickTracking={clickTrackingParams:D});if(D=_.Df("yt.mdx.remote.remoteClient_"))p.remoteClient=D;_.Vt.getInstance().setLocationOnInnerTubeContext(p);
try{var k=itt(),u=k.bid;delete k.bid;p.adSignalsInfo={params:[],bid:u};for(var Q=_.U(Object.entries(k)),B=Q.next();!B.done;B=Q.next()){var K=_.U(B.value),L=K.next().value,t=K.next().value;k=L;u=t;D=void 0;(D=p.adSignalsInfo.params)==null||D.push({key:k,value:""+u})}var Y,y;if(((Y=p.client)==null?void 0:Y.clientName)==="TVHTML5"||((y=p.client)==null?void 0:y.clientName)==="TVHTML5_UNPLUGGED"){var J=_.q6("INNERTUBE_CONTEXT");J.adSignalsInfo&&(p.adSignalsInfo.advertisingId=J.adSignalsInfo.advertisingId,
p.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",p.adSignalsInfo.limitAdTracking=J.adSignalsInfo.limitAdTracking)}}catch(T){_.MN(T)}return p};
_.Th=function(){return{isShellLoad:_.dq("IS_SHELL_LOAD",!1)}};
$0J=function(){navigator.serviceWorker.getRegistrations().then(function(D){D.forEach(PBr)})};
PBr=function(D){D&&_.vAF(i3o,D.scope)};
_.vAF=function(D,C){C={scope:C||_.bX("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.NJ(D),C)};
Hl=function(D,C,X,c){if(C&&C.serializedYpcCujLoggingParams){if(X){var W={};W.transactionErrorType=X;c&&(W.errorMessage=c);C.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:W}}}X={};X.ypcCujContext=C;D=_.aE("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",D,X);_.IE().logFlowEvent(D,"FLOW_TYPE_YPC_ACQUISITION")}};
_.kRr=function(D,C,X,c){var W={};W.serializedTransactionFlowLoggingParams=C;X&&(W.errorType=X);c&&(W.errorMessage=c);_.zu(D,W);_.je()};
_.uH3=function(D){D&&_.kRr("transactionFlowStarted",D)};
_.QvW=function(D){D&&_.kRr("transactionFlowCancelled",D)};
_.zh=function(D,C,X){C&&_.kRr("transactionFlowFailed",C,D,X)};
BQm=function(D){var C=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");C&&(C.inert=D)};
_.j_=function(){this.megabloxUrl_=null};
_.Mz=function(D){try{var C=b33==null?void 0:b33.composedPath(D)}catch(X){C=D.composedPath?D.composedPath():[]}return C&&C.length>0?C:D.composedPath?D.composedPath():[]};
_.qz=function(D){return _.Mz(D)[0]};
fH=function(D){return D instanceof ShadowRoot?ShadowRoot:D instanceof DocumentFragment?DocumentFragment:D instanceof Document?Document:HTMLElement};
rDo=function(D){if(D instanceof Element)return Element.prototype;if(D instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+D);};
K1Z=function(D,C){return _.b("sunnydom_native_scoped_query_selectors")?rDo(D).querySelector.call(D,C):fH(D).prototype.querySelector.call(D,C)};
hpr=function(D,C){return _.b("sunnydom_native_scoped_query_selectors")?rDo(D).querySelectorAll.call(D,C):fH(D).prototype.querySelectorAll.call(D,C)};
x0m=function(D){var C,X,c;return(c=(X=(C=D.parentElement)!=null?C:D.__shady_native_parentElement)!=null?X:D.__shady_parentElement)!=null?c:null};
L1J=function(D){var C,X,c;return(c=(X=(C=D.parentNode)!=null?C:D.__shady_native_parentNode)!=null?X:D.__shady_parentNode)!=null?c:null};
svj=function(D){var C,X,c;return(c=(X=(C=D.nextSibling)!=null?C:D.__shady_native_nextSibling)!=null?X:D.__shady_nextSibling)!=null?c:null};
m03=function(D){var C,X,c;return(c=(X=(C=D.previousSibling)!=null?C:D.__shady_native_previousSibling)!=null?X:D.__shady_previousSibling)!=null?c:null};
epo=function(D){var C,X,c;return(c=(X=(C=D.nextElementSibling)!=null?C:D.__shady_native_nextElementSibling)!=null?X:D.__shady_nextElementSibling)!=null?c:null};
EAm=function(D){var C,X,c;return(c=(X=(C=D.previousElementSibling)!=null?C:D.__shady_native_previousElementSibling)!=null?X:D.__shady_previousElementSibling)!=null?c:null};
tdF=function(D){var C,X,c;return new Set([].concat(_.VB((C=D.children)!=null?C:[]),_.VB((X=D.__shady_native_children)!=null?X:[]),_.VB((c=D.__shady_children)!=null?c:[])))};
NQW=function(D){var C,X,c;return new Set([].concat(_.VB((C=D.childNodes)!=null?C:[]),_.VB((X=D.__shady_native_childNodes)!=null?X:[]),_.VB((c=D.__shady_childNodes)!=null?c:[])))};
_.dL=function(D){if(!(D instanceof Element))return null;D=D.classList?Array.from(D.classList):void 0;if(!D)return null;var C=D.indexOf("style-scope");return C>-1&&C+1<D.length?D[C+1]:null};
RE=function(D){if(!(D instanceof HTMLElement))return null;var C=D&&(D.$$||D.polymerController)?D.tagName.toLowerCase():null;return C?C:_.dL(D)};
Ykr=function(D,C){return _.b("sunnydom_native_scoped_query_selectors")?D+".style-scope."+C:D.replace(/[^a-z]*[^\s]+/g,function(X){return X+".style-scope."+C})};
yDh=function(D,C){return C?D.split(",").map(function(X){return Ykr(X.trim(),C)}).join(", "):D};
_.lj=function(D){var C,X,c,W;return(W=(c=(X=(C=D.root)!=null?C:D.shadowRoot)!=null?X:D.__shady_native_shadowRoot)!=null?c:D.__shady_shadowRoot)!=null?W:D};
nAt=function(D){var C,X,c;return(c=(X=(C=D.__shady_parentNode)!=null?C:D.__shady_native_parentNode)!=null?X:D.parentNode)!=null?c:null};
wYo=function(D){var C,X;return(X=(C=L1J(D))!=null?C:D.host)!=null?X:null};
F1m=function(D){for(;D&&!(D instanceof HTMLElement);)D=wYo(D);return D};
Z3W=function(D){var C=F1m(D);return D===C?_.dL(D):C?RE(C):null};
GRm=function(D){return(D=F1m(D))?RE(D):null};
Vdh=function(D){if(D instanceof Comment)return!1;if(D instanceof Text){var C,X;if(((X=(C=D.textContent)==null?void 0:C.trim())!=null?X:"")==="")return!1}return!0};
DJ=function(D,C,X){var c=C(D);for(X=X===void 0?GRm(D):X;c&&(Z3W(c)!==X||!Vdh(c));)D=c,c=C(D);return c};
TQ3=function(D,C,X){if(!C)return null;D=GRm(D);return Z3W(C)===D&&Vdh(C)?C:DJ(C,X,D)};
H3m=function(D){return DJ(D,nAt,_.dL(D))};
JDZ=function(D){return DJ(D,epo)};
zpW=function(D){return DJ(D,svj)};
jv3=function(D){return DJ(D,EAm)};
MdF=function(D){return DJ(D,m03)};
qk5=function(D){return TQ3(D,D.firstChild||null,svj)};
f$5=function(D){var C,X,c;var W=(c=(X=(C=D.firstElementChild)!=null?C:D.__shady_native_firstElementChild)!=null?X:D.__shady_firstElementChild)!=null?c:null;return TQ3(D,W,epo)};
d0J=function(D){var C,X,c;var W=(c=(X=(C=D.lastChild)!=null?C:D.__shady_native_lastChild)!=null?X:D.__shady_lastChild)!=null?c:null;return TQ3(D,W,m03)};
RpZ=function(D){var C,X,c;var W=(c=(X=(C=D.lastElementChild)!=null?C:D.__shady_native_lastElementChild)!=null?X:D.__shady_lastElementChild)!=null?c:null;return TQ3(D,W,EAm)};
l$Z=function(D){var C=GRm(D);return Array.from(NQW(D)).filter(function(X){return Z3W(X)===C})};
DWJ=function(D){var C=RE(D);return Array.from(tdF(D)).filter(function(X){return _.dL(X)===C})};
C4m=function(D){if(!D)return null;var C=_.dL(D);if(!C){var X;return(X=Node.prototype.getRootNode)==null?void 0:X.call(D)}C=C.toUpperCase();for(D=x0m(D);D&&D.tagName!==C;)D=x0m(D);return D?_.lj(D):null};
_.CG=function(D){var C=_.b(D);de["counterfactuals."+D]=String(C);return C};
_.Xz=function(D,C,X){if(D instanceof HTMLElement&&_.dL(D)===X){var c=Array.from(D.classList).indexOf("style-scope");if(c===-1)D.classList.add("style-scope"),D.classList.add(C);else if(!(c+1>=D.classList.length)){c=D.classList[c+1];var W,p;D==null||(W=D.classList)==null||(p=W.replace)==null||p.call(W,c,C)}}if(D instanceof HTMLElement||D instanceof DocumentFragment)for(W=_.U(tdF(D)),p=W.next();!p.done;p=W.next())_.Xz(p.value,C,X);return D};
cr=function(D,C){if(D instanceof HTMLElement&&_.dL(D)===C){var X=Array.from(D.classList).indexOf("style-scope");X===-1||X+1>=D.classList.length||D.classList.remove("style-scope",D.classList[X+1])}if(D instanceof HTMLElement||D instanceof DocumentFragment){X=_.U(D.children);for(var c=X.next();!c.done;c=X.next())cr(c.value,C)}return D};
_.Xnm=function(D,C){return fH(D).prototype.appendChild.call(D,C)};
c1m=function(D,C){if(D===C)return!0;D=NQW(D);return Array.from(D).some(function(X){return c1m(X,C)})};
_.SY=function(D,C){if(D instanceof oo)return D;(C==null?0:C.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(D,"ownerDocument")&&Object.defineProperty(D,"ownerDocument",{get:function(){return window.document}});
return new oo(D)};
W3o=function(){var D=oo.prototype,C=[].concat(_.VB(oMd?[]:["getRootNode"]),["setAttribute","removeAttribute"]);C=_.U(C);for(var X=C.next(),c={};!X.done;c={method$jscomp$53:void 0},X=C.next())c.method$jscomp$53=X.value,D[c.method$jscomp$53]=function(W){return function(){return this.host[W.method$jscomp$53].apply(this.host,arguments)}}(c)};
SKm=function(){var D=oo.prototype,C=[].concat(_.VB(oMd?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.VB(pnt?[]:["querySelector","querySelectorAll"]));C=_.U(C);for(var X=C.next(),c={};!X.done;c={method$jscomp$54:void 0},X=C.next())c.method$jscomp$54=X.value,D[c.method$jscomp$54]=function(W){return function(){return this.root[W.method$jscomp$54].apply(this.root,arguments)}}(c)};
aDZ=function(){var D=oo.prototype,C=[].concat(_.VB(UWd?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.VB(gMt?[]:["parentNode"]));C=_.U(C);for(var X=C.next(),c={};!X.done;c={prop$jscomp$67:void 0},X=C.next())c.prop$jscomp$67=X.value,Object.defineProperty(D,c.prop$jscomp$67,{get:function(W){return function(){return this.host[W.prop$jscomp$67]}}(c),
configurable:!0})};
A1n=function(){var D=oo.prototype,C=["activeElement"].concat(_.VB(UWd?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.VB(IDd?[]:["children"]),_.VB(OjW?[]:["lastChild"]));C=_.U(C);for(var X=C.next(),c={};!X.done;c={prop$jscomp$68:void 0},X=C.next())c.prop$jscomp$68=X.value,Object.defineProperty(D,c.prop$jscomp$68,{get:function(W){return function(){return this.root[W.prop$jscomp$68]}}(c),
configurable:!0})};
P43=function(){for(var D=oo.prototype,C=_.U(["innerHTML","textContent"]),X=C.next(),c={};!X.done;c={prop$jscomp$69:void 0},X=C.next())c.prop$jscomp$69=X.value,Object.defineProperty(D,c.prop$jscomp$69,{get:function(W){return function(){return this.root[W.prop$jscomp$69]}}(c),
set:function(W){return function(p){this.root[W.prop$jscomp$69]=p}}(c),
configurable:!0})};
$Wn=function(D){var C=oo.prototype;D=_.U(Object.entries(D));for(var X=D.next(),c={};!X.done;c={fn$jscomp$403:void 0},X=D.next()){var W=_.U(X.value);X=W.next().value;W=W.next().value;c.fn$jscomp$403=W;C[X]=function(p){return function(){return p.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.VB(arguments)))}}(c)}};
ijm=function(){for(var D=oo.prototype,C=_.U(Object.entries(vMr)),X=C.next(),c={};!X.done;c={fn$jscomp$404:void 0},X=C.next()){var W=_.U(X.value);X=W.next().value;W=W.next().value;c.fn$jscomp$404=W;Object.defineProperty(D,X,{get:function(p){return function(){return p.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.VB(arguments)))}}(c),
configurable:!0})}};
_.Us=function(D){return D instanceof kGd||D instanceof Document?D:new kGd(D)};
uaZ=function(){for(var D=kGd.prototype,C=_.U("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),X=C.next(),c={};!X.done;c={method$jscomp$55:void 0},X=C.next())c.method$jscomp$55=X.value,D[c.method$jscomp$55]=function(W){return function(){return HTMLElement.prototype[W.method$jscomp$55].call.apply(HTMLElement.prototype[W.method$jscomp$55],[this.node].concat(_.VB(arguments)))}}(c)};
Qrd=function(){for(var D=kGd.prototype,C=_.U("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),X=C.next(),c={};!X.done;c={prop$jscomp$70:void 0},X=C.next())c.prop$jscomp$70=X.value,Object.defineProperty(D,c.prop$jscomp$70,{get:function(W){return function(){var p;return(p=this.node["__shady_native_"+W.prop$jscomp$70])!=null?p:this.node[W.prop$jscomp$70]}}(c),
configurable:!0})};
_.gi=function(D,C,X){X===void 0&&(X=!D.classList.contains(C));X?D.classList.add(C):D.classList.remove(C)};
_.ao=function(D,C,X){X===void 0&&(X=!D.hasAttribute(C));if(C==="class")throw Error("fg");X?_.Us(D).setAttribute(C,""):_.Us(D).removeAttribute(C)};
BIF=function(D){return(D.localName!=="slot"?[]:(0,_.Io)(D).assignedNodes({flatten:!0})).filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
_.bj5=function(D){return(D=_.SY(D).querySelector("slot"))&&D.localName==="slot"?BIF(D):[]};
_.Os=function(D,C){window.ShadyCSS&&window.ShadyCSS.styleSubtree(D,C)};
AA=function(D,C){var X=C.bind(D);return function(c){X(c,c.detail)}};
_.Pr=function(D,C){var X=r15.get(D);X||(X=new WeakMap,r15.set(D,X));if(X.has(C))return X.get(C);if(_.b("web_fi_listen_disable_bound_fn_helper")){var c=C.bind(D);D=function(W){c(W,W==null?void 0:W.detail)}}else D=AA(D,C);
X.set(C,D);return D};
xWR=function(D,C){K3Z(D);D.created[hHr].push(C)};
K3Z=function(D){if(!D.created||!D.created[hHr]){var C=D.created,X=C?[C]:[];D.created=function(){for(var c=_.U(X),W=c.next();!W.done;W=c.next())W.value.apply(this)};
D.created[hHr]=X}};
L3t=function(D){return function(){var C=_.MJ.apply(0,arguments);return function(X,c,W){D.apply(null,_.VB(C))(X,c,W)}}};
srj=function(){return function(){var D=_.MJ.apply(0,arguments);return function(C,X,c){A6F.apply(null,_.VB(D))(C,X,c)}}};
_.m=function(D){return srj()(D)};
_.e=function(){return L3t(iLt).apply(null,_.VB(_.MJ.apply(0,arguments)))};
_.$n=function(D){return _.b("pbcm_fi_listen_decorators")?mWF(D):L3t($sm)(D)};
mWF=function(D){return function(C,X){xWR(C,function(){var c=this[X],W=_.b("web_fi_listen_disable_bound_fn_helper")?function(p){c(p,p.detail)}.bind(this):AA(this,c);
eHd.has(D)?MI(this.hostElement,D,W):this.hostElement.addEventListener(D,W)})}};
_.vr=function(){return L3t(vJm).apply(null,_.VB(_.MJ.apply(0,arguments)))};
_.n=function(D){D=D===void 0?{}:D;return L3t(Ppn)(D)};
_.iH=function(D){if(D.hostElement&&D!==D.hostElement){var C=_.kr(D.hostElement);C=D.renderIdom?C:C.shadowRoot}C||(D=D.root,C=D instanceof Node?_.kr(D):null);return C};
_.kn=function(D){return EM3?tw3(D):function(C,X){Object.defineProperty(C,X,{get:function(){var c;return(c=_.iH(this))==null?void 0:c.querySelector(D)},
enumerable:!0,configurable:!0})}};
tw3=function(D){return function(C,X){Object.defineProperty(C,X,{get:function(){var c,W=(c=_.SY(this.hostElement))==null?void 0:c.querySelector(D);if(W)return W;var p;return(p=_.iH(this))==null?void 0:p.querySelector(D)},
enumerable:!0,configurable:!0})}};
_.uH=function(D){return EM3?NIF(D):function(C,X){Object.defineProperty(C,X,{get:function(){var c;return(c=_.iH(this))==null?void 0:c.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
NIF=function(D){return function(C,X){Object.defineProperty(C,X,{get:function(){var c,W=(c=_.SY(this.hostElement))==null?void 0:c.querySelectorAll(D);if(W==null?0:W.length)return W;var p;return(p=_.iH(this))==null?void 0:p.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
YKF=function(D){return function(C){if(![_.vH,_.w].includes(Object.getPrototypeOf(C.prototype).constructor))throw Error("gg");WER(Object.assign({},typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(C)}};
_.Br=function(){var D=D===void 0?{}:D;return function(C){if(![iQ,_.Qj].includes(Object.getPrototypeOf(C.prototype).constructor))throw Error("hg");pqh(Object.assign({},D,{disableInheritanceCheck:!0}))(C)}};
nMm=function(D,C){y1d[D]!=null||(y1d[D]=new Set);y1d[D].add(C)};
_.bH=function(){var D=_.vr.apply(null,_.VB(_.MJ.apply(0,arguments)));return function(C,X){nMm(C.is,X);D(C,X)}};
hA=function(D,C,X){if(ri(D)&&!wnj.has(C)){C=C.replace(/^JSC\$[\d]+_/,"");C=C.replace(/\.\d+(\.|$)/g,function(p,g){return".#"+g});
KG[D]!=null||(KG[D]={});var c,W;(c=KG[D])[W=C]!=null||(c[W]=new Set);KG[D][C].has(X)||(KG[D][C].add(X),_.zu("polymerPropertyAccessEvent",{componentName:D,propertyName:C,accessType:X}))}};
F3J=function(){return _.b("polymer_property_access_logging_debug")||_.b("polymer_enable_property_access_logging")};
ri=function(D){if(_.b("polymer_property_access_logging_debug"))return!0;if(!_.b("polymer_enable_property_access_logging"))return!1;Zjd||(Zjd=Date.now());return(nN(D)+Zjd)%100<_.BK("polymer_property_access_logging_percent")};
GGt=function(D,C){return ri(C)&&D.hostElement.loggingStatus?new Proxy(D,{get:function(X,c,W){if(X.hostElement.loggingStatus.bypassProxyController)return X[c];X.hostElement.loggingStatus.isExternalGet=!0;var p=X[c];X.hostElement.loggingStatus.isExternalGet=!1;if(p instanceof Function)return function(){var g=_.MJ.apply(0,arguments);try{return X.hostElement.loggingStatus.currentExternalCall=c,hA(C,c,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),p.apply(this===W?X:this,g)}finally{X.hostElement.loggingStatus.currentExternalCall=
void 0}};
hA(C,c,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return p},
set:function(X,c,W){if(X.hostElement.loggingStatus.bypassProxyController)return X[c]=W,!0;X.hostElement.loggingStatus.isRendererStamper?hA(C,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):X.hostElement.loggingStatus.isDeclarativeExternal||hA(C,c,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{X.hostElement.loggingStatus.currentExternalSet=c,X[c]=W}finally{X.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):D};
Vw3=function(D,C){D&&D.loggingStatus&&!D.loggingStatus.isDeclarativeExternal&&!D.loggingStatus.isExternalGet&&D.loggingStatus.currentExternalSet!==C&&hA(D.tagName.toLowerCase(),C,"PROPERTY_ACCESS_GET_INTERNAL")};
xn=function(D,C,X){D&&(X||D.loggingStatus&&!D.loggingStatus.isInitializing&&!D.loggingStatus.isDefiningPropertyAccessor&&D.loggingStatus.currentExternalSet!==C)&&hA(D.tagName.toLowerCase(),C,"PROPERTY_ACCESS_SET_INTERNAL")};
TId=function(){return{_definePropertyAccessor:function(D,C){var X=this,c=X.hostElement.loggingStatus;c&&(c.isDefiningPropertyAccessor=!0);var W=X[D];W!==void 0&&(X.__data?X._setPendingProperty(D,W):(X.__dataProto!=null||(X.__dataProto={}),X.__dataProto[D]=W));c&&(c.isDefiningPropertyAccessor=!1);Object.defineProperty(this,D,{get:function(){Vw3(X.hostElement,D);return this.__data[D]},
set:function(p){C||this._setPendingProperty(D,p,!0)&&this._invalidateProperties()}})},
created:function(){var D=this._setPendingProperty.bind(this);this._setPendingProperty=function(C,X,c){xn(this.hostElement,C);return D.apply(this,[C,X,c])}}}};
HjW=function(D){F3J()&&_.m(LG.prototype)(D.prototype,"__templateBindingLoggingBehavior")};
J1o=function(D,C){if(C.resolvedFactories.length!==D.resolvedFactories.length)return!0;C=_.U(C.resolvedFactories.entries());for(var X=C.next();!X.done;X=C.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;if(c.providerClass){if(c.providerClass!==D.resolvedFactories[X].providerClass)return!0}else if(c.providerValue){if(c.providerValue!==D.resolvedFactories[X].providerValue)return!0}else if(c.factory!==D.resolvedFactories[X].factory)return!0}return!1};
zHW=function(D,C){D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.constructor===Array)zHW(X,C);else{var c=C;c.has(X)||(X.inject&&c.add(X),X.behaviors&&zHW(X.behaviors,c))}};
ss=function(D,C){var X=D[C];D[C]=function(){var c=_.MJ.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(X)return X.apply(this,c)}};
fDm=function(){_.mZ.Class=function(X,c){X=jrj(X,c);ss(X.prototype,"created");return X};
ss(eY.prototype,"_initializeProperties");ss(_.Es.prototype,"_initializeProperties");if(Mwd)ss(qKm,"created");else{var D=function(){ss(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))D();else{var C=customElements.define;customElements.define=function(X,c,W){C.call(customElements,X,c,W);X==="tp-yt-iron-list"&&(D(),customElements.define=C)}}}};
RHW=function(D,C){D.prototype.behaviors=D.prototype.behaviors||[];D.prototype.behaviors.unshift(dW3.InjectBehavior);D.prototype.provide=C};
_.Yn=function(D){return function(C){if(!D.disableElementRegistration){D.noInjection||RHW(C,D.providers);var X=C.prototype;X.__templateHelpers||A6F(tA.prototype)(X,"__templateHelpers");X=D.is;lDt||(lDt=Date.now());(nN(X)+lDt)%100<_.BK("polymer_log_prop_change_observer_percent")&&A6F(Nw.prototype)(C.prototype,"__propertyObserverObserver");C.prototype.behaviors=C.prototype.behaviors||[];C.prototype.behaviors.unshift(_.Dcn.YtHostElementBehavior);HjW(C);YKF({is:D.is,notifyObserversOnUndefined:D.notifyObserversOnUndefined!==
!1,fastInit:D.fastInit,template:D.template,disableEnforceFastDefaultValuesCheck:!0})(C)}}};
_.yj=function(D){return _.Yn({is:D.is,template:D.template,disableElementRegistration:D.disableElementRegistration,cssBuildOptOut:D.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
coo=function(D,C){if(CnR){D=new D;for(var X=_.U(Object.getOwnPropertyNames(D)),c=X.next();!c.done;c=X.next())c=c.value,C[c]=D[c];for(X=C;X&&X!==Object.prototype;X=Object.getPrototypeOf(X)){c=_.U(Object.getOwnPropertyNames(X));for(var W=c.next();!W.done;W=c.next())W=W.value,D.hasOwnProperty(W)||Object.defineProperty(D,W,Xhr(C,W))}}else D.apply(C)};
Xhr=function(D,C){return{get:function(){var X=D[C];return X instanceof Function?X.bind(D):X},
set:function(X){D[C]=X}}};
WSm=function(D,C){for(var X=D._noAccessors,c=_.U(Object.getOwnPropertyNames(D)),W=c.next();!W.done;W=c.next())if(W=W.value,!o6m.has(W))if(X)C[W]=D[W];else{var p=Object.getOwnPropertyDescriptor(D,W);p&&(p.configurable=!0,Object.defineProperty(C,W,p))}};
phh=function(D,C,X){return function(c){if(X){var W=X();c.model=W}if(D[C])D[C](c,c.detail)}};
nG=function(D){var C=[];if(typeof D==="string")D.length>0&&C.push.apply(C,_.VB(D.split(".")));else{D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,typeof X==="string"?C.push.apply(C,_.VB(X.split("."))):C.push(X)}return C};
S$d=function(D,C){if(C[C.length-1]!=="*"&&C[C.length-1]!=="splices"){for(var X=0;X<C.length;X++){if(!D)return;D=D[C[X]]}return D}};
UcW=function(D,C){if(D.length>C.length)return!1;for(var X=0;X<D.length;X++)if(D[X]!==C[X])return!1;return!0};
a8j=function(D,C,X){if(C.type==="compute"){var c=C.getter.bind(X);var W=C.args}else c=function(){return X[C.method.methodName].apply(X,_.VB(_.MJ.apply(0,arguments)))},W=C.method.args;
g6Z(D,C.propertyKey,c,W,C.value)};
Odn=function(D,C){if(C.readOnly){var X=Object.getOwnPropertyDescriptor(D.model,C.propertyKey);Object.defineProperty(D.model,C.propertyKey,{get:X.get,set:function(){}});
D.model[I8F(C.propertyKey)]=X.set}};
Aoh=function(D,C,X){if(X){var c=C.propertyKey,W=C.selector;C=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.VB(C.selectorArgs.map(function(p){return{type:"path",path:p}})));
g6Z(D,c,function(p){var g=_.MJ.apply(1,arguments);return W.apply(null,[X.getState()].concat(_.VB(g)))},C)}};
$ct=function(D,C,X){var c=_.gl(C.propertyKey)+"-changed";Pnn(D,function(W){var p={value:W.value,queueProperty:!0};W.path.split(".").length>1&&(p.path=W.path);X.dispatchEvent(new CustomEvent(c,{detail:p}))},[{type:"wildcard",
path:C.propertyKey}])};
v6r=function(D,C,X){Pnn(D,function(){X[C.method.methodName].apply(X,_.VB(_.MJ.apply(0,arguments)))},C.method.args)};
I8F=function(D){return"_set"+(D.charAt(0).toUpperCase()+D.slice(1))};
idh=function(){var D,C=jn(function(X){D=X},!1);
return[D,C]};
bdF=function(D){D=D.trim().replace(kaW,",").replace(uBW,"$1");var C=D[0];C==="-"&&(C=D[1]);if(C>="0"&&C<="9")return{type:"literal",value:Number(D)};if(C==="'"||C==='"')return{type:"literal",value:D.slice(1,-1)};if(C=D.match(Qfn)){C=C[1];var X=B4Z[C];if(X)return{type:X,path:D.slice(0,-(C.length+1))}}return{type:"path",path:D}};
xcJ=function(D){var C=D.match(ro5);if(C)return D={methodName:C[1],args:KSn},C[2].trim()&&(C=C[2].replace(hFF,"&comma;").split(","),D.args=C.map(bdF)),D};
LSn=function(D,C,X,c){c=c===void 0?!1:c;C=_.gl(C);var W=n2;W&&(X=W(X,C,"attribute",D));wi(D,X,C,c)};
wi=function(D,C,X,c){C=sfj(C,c===void 0?!1:c);C===void 0?D.removeAttribute(X):D.setAttribute(X,C)};
sfj=function(D,C){switch(typeof D){case "object":case "function":if(D instanceof Date)return D.toString();if(D){if((C===void 0?0:C)&&!_.b("polymer_reflect_objects_as_boolean_killswitch"))return D?"":void 0;C=window.trustedTypes?window.trustedTypes.isHTML(D)||window.trustedTypes.isScript(D)||window.trustedTypes.isScriptURL(D):void 0;if(C)return D;try{return JSON.stringify(D)}catch(X){_.fQ(Error("Dg`"+D))}}break;case "boolean":return D?"":void 0;default:return D!==null&&D!==void 0?D.toString():void 0}};
mc5=function(D){if(D===void 0)throw Error("Eg");return D};
Y$m=function(D,C,X,c){var W=eFZ(c);if(W.length){c=X;var p="property";E6W.test(X)?p="attribute":X[X.length-1]==="$"&&(X=X.slice(0,-1),p="attribute");var g=tln(W);g&&p==="attribute"&&(X==="class"&&D.hasAttribute("class")&&(g+=" "+D.getAttribute(X)),wi(D,g,X));p==="attribute"&&c==="disable-upgrade$"&&D.setAttribute("disable-upgrade","");D.localName==="input"&&c==="value"&&D.setAttribute("value","");D.removeAttribute(c);p==="property"&&(X=_.aB(X));C=mc5(C);N4d(C,p,X,W);return!0}return X.slice(0,3)===
"on-"?(D.removeAttribute(X),(p=C).events!=null||(p.events=[]),C.events.push({name:X.slice(3),value:c}),!0):X==="id"?(C.id=c,!0):!1};
eFZ=function(D){for(var C=[],X=0,c;(c=yoh.exec(D))!==null;){c.index>X&&C.push({type:"literal",value:D.slice(X,c.index)});var W=c[1][0];X=!!c[2];c=c[3].trim();if(W==="{")throw Error("Fg");(W=xcJ(c))?C.push({type:"method",negate:X,signature:W}):C.push({type:"path",negate:X,path:c});X=yoh.lastIndex}X&&X<D.length&&(D=D.substring(X))&&C.push({type:"literal",value:D});return C};
tln=function(D){for(var C="",X=0;X<D.length;X++){var c=D[X];c.type==="literal"&&(C+=c.value)}return C};
N4d=function(D,C,X,c){D.bindings!=null||(D.bindings=[]);D.bindings.push({kind:C,target:X,parts:c})};
GaZ=function(D,C,X){var c=!1;if(D.localName==="template"){c=X;var W=C.stripWhitespace;W=n6d(D,W===void 0?!1:W);var p=D.content.ownerDocument.createDocumentFragment();W.content=p;p.appendChild(D.content);c&&(c.templateInfo=W);c=!0}else D.localName==="slot"&&(C.hasInsertionPoint=!0);if(D.firstChild&&(W=X,D.localName!=="script"&&D.localName!=="style")){p=0;for(var g=D.firstChild;g;){var a=g;if(a.localName==="template"){var O=a.getAttribute("is");if((g=O==="dom-if")||O==="dom-repeat"){a.removeAttribute("is");
O=a.ownerDocument.createElement("ps-"+O);a.parentNode.replaceChild(O,a);O.appendChild(a);var P=Array.from(a.attributes);P=_.U(P);for(var k=P.next();!k.done;k=P.next())k=k.value,g?whZ.has(k.name)&&wi(O,k.value,k.name):FSj.has(k.name)?wi(O,k.value,k.name):Zd5.has(k.name),a.removeAttribute(k.name);g=O}else g=a}if(g.nodeType===Node.TEXT_NODE){a=void 0;O=D;for(P=g;((a=P.nextSibling)==null?void 0:a.nodeType)===Node.TEXT_NODE;)k=void 0,(k=P).textContent!=null||(k.textContent=""),P.nextSibling.textContent&&
(P.textContent+=P.nextSibling.textContent),O.removeChild(P.nextSibling);if(C.stripWhitespace&&g.textContent&&!g.textContent.trim()){D.removeChild(g);g=g.nextSibling;continue}}GaZ(g,C,{parentIndex:p,parentInfo:W});g.parentNode&&p++;g=g.nextSibling}}var u;if((u=D.hasAttributes)==null?0:u.call(D)){u=X=mc5(X);W=!1;p=Array.from(D.attributes);p=_.U(p);for(a=p.next();!a.done;a=p.next())a=a.value,W=Y$m(D,u,a.name,a.value)||W;c=W||c}D.nodeType===Node.TEXT_NODE&&(u=eFZ(D.textContent),u.length&&(D.textContent=
tln(u)||" ",X=mc5(X),N4d(X,"text","textContent",u),c=!0));X&&c&&(X.infoIndex=C.nodeInfoList.push(X)-1)};
n6d=function(D,C){C={nodeInfoList:[],stripWhitespace:(C===void 0?!1:C)||D.hasAttribute("strip-whitespace")};GaZ(D.content,C);return C};
VlZ=function(D){Object.assign(D,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Hdt=function(D,C,X){C.signalCache!=null||(C.signalCache={});var c=C.signalCache[X];if(!c){var W=X.split(".");c=!T4j(D,W[0]);if(W.length>1&&c){var p=D.getPathMutationSignal(W);c=function(){var g=qm(D.owner,function(){return D.getWithPath([W[0]])}),a,O=(a=p())==null?void 0:a.value;
return{rootWasDefined:g!==void 0,value:O}}}else c=function(){var g=D.getWithPath(W);
return{rootWasDefined:g!==void 0,value:g}};
C.signalCache[X]=c}return c()};
zFW=function(D,C,X,c,W){C=C.parts.map(function(g,a){if(g.type==="literal"){X.partWasDefined!=null||(X.partWasDefined=[]);var O;(O=X.partWasDefined)[a]||(O[a]=g.value!==void 0);return g.value}var P;if(g.type==="method"){var k,u=(k=(P=X.partWasDefined)==null?void 0:P[a])!=null?k:!1;u||(u=g.signature.args.every(function(K){return K.type==="literal"}));
var Q=!1,B=!0;P=g.signature.args.map(function(K){if(K.type==="literal")return K.value;if(K.type!=="path")throw Error("Gg`"+K.type);var L=Hdt(D,X,K.path);K=L.value;L=L.rootWasDefined;Q||(Q=L);B&&(B=L);return K});
u||(u=W===1?B:Q);X.partWasDefined!=null||(X.partWasDefined={});X.partWasDefined[a]=u;if(!u)return;P=(a=Hdt(D,X,g.signature.methodName).value)&&typeof a==="function"?a.apply(c,P):void 0}else k=Hdt(D,X,g.path),P=k.value,X.partWasDefined!=null||(X.partWasDefined={}),(u=X.partWasDefined)[a]||(u[a]=P!==void 0||k.rootWasDefined);g.negate&&(P=!P);return P});
if(C.length===1){var p;return((p=X.partWasDefined)==null?0:p[0])?C[0]:Jon}return C.join("")};
jfm=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D&&"canNotifyPath"in D};
Mld=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D};
q$j=function(D){return"polymerController"in D};
f8m=function(D,C){C=""+nG(C)[0];if(jfm(D))return D.canNotifyPath(C);if(q$j(D)&&jfm(D.polymerController))return D.polymerController.canNotifyPath(C);if(Mld(D)){var X;return!((X=D.properties)==null||!X[C])}if(q$j(D)&&Mld(D.polymerController)){var c;return!((c=D.polymerController.properties)==null||!c[C])}return!1};
dch=function(D,C,X){jfm(D)||Mld(D)?D.notifyPath(C,X):q$j(D)&&(jfm(D.polymerController)||Mld(D.polymerController))&&D.polymerController.notifyPath(C,X)};
l8h=function(D,C,X){if(X!==Jon){D.kind==="attribute"||D.target!=="textContent"&&(D.target!=="value"||C.localName!=="input"&&C.localName!=="textarea")||(X=X===void 0?"":X);var c,W=(c=RF3.Polymer)==null?void 0:c.sanitizeDOMValue;W&&(X=W(X,D.target,D.kind,C));if(D.kind==="attribute"){D=D.target;if(D==="class"||D==="name"||D==="slot")C=(0,_.Io)(C);wi(C,X,D)}else if(D=D.target,X!==C[D]||typeof X==="object")C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!0,hA(C.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
C[D]=X,C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!1)}};
DBR=function(D,C,X,c){var W=C.parts[0];if(C.parts.length!==1||W.type!=="path"||!f8m(X,C.target))return!1;var p=_.U(W.path.split(".")),g=p.next().value,a=g8(p);if(T4j(D,g))return!1;c.signalCache!=null||(c.signalCache={});p=c.signalCache[W.path];var O;p=(O=p)==null?void 0:O().value;if((p==null?void 0:p.path)!==void 0){c=nG(p.path);var P=nG(W.path);c=[C.target].concat(_.VB(c.slice(P.length-1)));dch(X,c,W.negate?!p.value:p.value);return!0}var k=Fz(D,g);var u=k.getChangeRecordSignal(a),Q=!1;p=function(){if(!Q){var K=
qm(D.owner,function(){return k.getWithPath([])});
Q||(Q=K!==void 0)}return{value:u(),rootWasDefined:Q}};
c.signalCache[W.path]=p;c.partWasDefined!=null||(c.partWasDefined={});p=p();(P=c.partWasDefined)[0]||(P[0]=p.rootWasDefined);var B=qm(D.owner,function(){return k.getWithPath(a)});
c.partWasDefined[0]&&qm(D.owner,function(){return void l8h(C,X,W.negate?!B:B)});
return!0};
C$m=function(D,C,X,c,W,p){if(!DBR(D,C,X,c)){var g=zFW(D,C,c,W,p);qm(D.owner,function(){return void l8h(C,X,g)})}};
X3r=function(D,C,X,c,W,p){X=_.U(X);for(var g=X.next(),a={};!g.done;a={infoIndex:void 0},g=X.next()){g=g.value;var O=g.bindings;a.infoIndex=g.infoIndex;g=g.parentInfo;if(O){O=_.U(O);for(var P=O.next(),k={};!P.done;k={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},P=O.next()){k.b$jscomp$257=P.value;if(a.infoIndex===void 0)throw Error("Hg");k.bindingCtx$jscomp$4={};D.effect(function(u,Q){return function(){W&&!W()||C$m(D,u.b$jscomp$257,C[Q.infoIndex],u.bindingCtx$jscomp$4,c,p)}}(k,a))}}g&&X3r(D,C,[g],
c,W,p)}};
cNJ=function(D,C){D=(C.parentInfo?cNJ(D,C.parentInfo):D).firstChild;for(var X=0;D;D=D.nextSibling)if(C.parentIndex===X++)return D;throw Error("Ig");};
WAJ=function(D,C,X,c){D=document.importNode(D.content,!0);D.__noInsertionPoint=!(c==null?0:c.hasInsertionPoint);for(var W=Array(C.length),p={},g=0;g<C.length;g++){var a=C[g],O=cNJ(D,a);W[g]=O;a.id&&(p[a.id]=O);if(a.templateInfo){var P=O.parentElement;P&&(P.templateInfo=a.templateInfo,P.parentSignalProxy=X,P.eventListenerHost=c.eventListenerHost,P.stampingEnabled=c.enabledSignal)}P=void 0;if((P=a.events)==null?0:P.length)for(P=0;P<a.events.length;P++){var k=a.events[P];oB5(c.eventListenerHost,O,k.name,
k.value,c.getModel)}}X3r(X,W,C,c.thisCtx,c.enabledSignal,c.methodInvocationRequirement);return{root:D,nodes:W,nodesById:p}};
SxR=function(D,C){D=D();var X;(X=p33.ShadyCSS)==null||X.prepareTemplate(D,C);C=n6d(D);return{template:D,nodeInfoList:C.nodeInfoList,hasInsertionPoint:C.hasInsertionPoint}};
aOn=function(){UBJ=!1;for(var D=ZJ.length,C=0;C<D;C++){var X=ZJ[C];if(X)try{X()}catch(c){Promise.resolve().then(function(){throw c;})}}ZJ.splice(0,D);
gB5+=D};
P$m=function(D){UBJ||(UBJ=!0,IOm.textContent=(OE5++).toString());ZJ.push(D);return ANm++};
_.TA=function(D,C,X){GA++;D=C?new $BW(GA,D,C,X):new vBj(GA,D);Vj.set(GA,D);return GA};
iEm=function(D){(D=Vj.get(D))&&D.cancel()};
uR5=function(D,C){D=kfm.get(D);return D?(C=D.get(C))?C:null:null};
_.Hr=function(D,C,X,c){var W=uR5(D,C);if(!W){W=new Q6r;var p=kfm.get(D);p||(p=new Map,kfm.set(D,p));p.set(C,W)}D=X.bind(D);W.run(D,c,void 0)};
_.BMo=function(D,C){var X;(X=uR5(D,C))==null||X.cancel()};
bEn=function(D){var C;(C=uR5(D,"doRender"))==null||C.flush()};
JA=function(D){var C;return(C=D.hostElement)!=null?C:D};
rNt=function(D){var C=D.indexOf(".");return C===-1?D:D.slice(0,C)};
KAR=function(D,C,X,c,W,p){p=(W=(c=p?rNt(C):C)?C:null)?D.get(W):D.__data[C];W&&p===void 0&&(p=X[C]);_.lE(D.hostElement,dDJ(c)+"-changed",{value:p,queueProperty:!0,path:W!=null?W:void 0},{bubbles:!1,composed:!1})};
hwm=function(D,C){D.__isReflecting=!0;LSn(D.hostElement,C,D.__data[C]);D.__isReflecting=!1};
xBd=function(D){if(D._onIronRequestResizeNotifications){var C=D._onIronRequestResizeNotifications.bind(D);D._onIronRequestResizeNotifications=function(X){_.qz(X)!==D.hostElement&&C(X)}}D._ariaActiveAttributeChanged&&(D._ariaActiveAttributeChanged=D._ariaActiveAttributeChanged.bind(D.hostElement));
D._activeChanged&&(D._activeChanged=function(X){D.toggles?wi(D.hostElement,X?"true":"false",D.ariaActiveAttribute):D.hostElement.removeAttribute(D.ariaActiveAttribute);D._changedButtonState()});
D._asyncClick&&(D._asyncClick=function(){_.TA(function(){D.hostElement.click()},1)});
!D.keyEventTarget||D.keyEventTarget instanceof EventTarget||(D.keyEventTarget=JA(D.keyEventTarget));D._disabledChanged&&(D._disabledChanged=D._disabledChanged.bind(D.hostElement));D._observeItems&&(D._observeItems=function(X){var c=JA(X);return _.kr(c).observeNodes(function(W){D._updateItems();D._updateSelected();_.lE(c,"iron-items-changed",W,{bubbles:!1,cancelable:!1})})});
D._updateItems&&D._updateItems===_.zA._updateItems&&(D._updateItems=function(){var X=_.kr(D.hostElement).queryDistributedElements(D.selectable||"*");X=Array.prototype.filter.call(X,D._bindFilterItem);D._setItems(X)});
D._computeKeyboardClass&&(D._computeKeyboardClass=function(X){_.gi(D.hostElement,"keyboard-focus",X)});
D.ensureRipple&&(D.ensureRipple=function(X){if(D.hasRipple&&!D.hasRipple()){if(!D._createRipple)return;D._ripple=D._createRipple();D._ripple.noink=D.noink;var c=D._rippleContainer||D.hostElement;c&&_.SY(c).appendChild(D._ripple)}var W;if(X&&((W=D._ripple)==null?0:W.uiDownAction)){c=_.SY(D._rippleContainer||D.hostElement);var p;W=(p=X.composedPath())==null?void 0:p[0];c.contains(W)&&D._ripple.uiDownAction(X)}});
D._updateMultiselectable&&(D._updateMultiselectable=function(X){X?D.hostElement.setAttribute("aria-multiselectable","true"):D.hostElement.removeAttribute("aria-multiselectable")})};
LAo=function(D,C,X){X=_.U(X);for(var c=X.next();!c.done;c=X.next())coo(c.value.constructor,D);coo(C.constructor,D)};
mBJ=function(D,C){D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.type==="signal"){var c=X.propertyKey;if(C.hasOwnProperty(c)&&C[c]!=null&&X.attributeType===Object){a:{c=C[c].constructor;for(var W=_.U(s6j),p=W.next();!p.done;p=W.next())if(p=p.value,c===p){c=p;break a}c=Object}X.attributeType=c}}};
ewh=function(){};
EBm=function(D){var C;return(C=D.hostElement)!=null?C:D};
t3m=function(){throw Error("Mg");};
NMZ=function(D,C){D.constructor.prototype.useSignals=!0;var X=new D.constructor;LAo(X,D,C.behaviors);mBJ(C.reactiveSchemas,X);X={};for(var c=_.U(C.reactiveSchemas),W=c.next();!W.done;W=c.next())W=W.value,W.type==="signal"&&(X[W.propertyKey]=W.attributeType);var p={copyPropertiesToProto:t3m,didRegister:!1,typesForSignals:X},g=["disable-upgrade"].concat(_.VB(C.observedAttributes)),a=function(O){jY.call(this,D,C,p,O)};
_.h(a,jY);_.$a.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return g}}});
p.copyPropertiesToProto=function(){for(var O=0;O<C.behaviors.length;O++)WSm(C.behaviors[O],a.prototype);WSm(D,a.prototype)};
C.legacyOptimizations||p.copyPropertiesToProto();a.prototype.is=D.is;return a};
Yx5=function(D,C){if(Object.getPrototypeOf(C.prototype).constructor!==_.w)throw Error("Ng");C.prototype.is=D.is;return NMZ(C.prototype,D)};
yNZ=function(D){return D.type==="compute"||D.type==="computeWithMethod"};
nBm=function(D){for(var C=D.reactiveSchemas.filter(yNZ),X=new Map,c=new Map,W=new Map,p=_.U(C),g=p.next();!g.done;g=p.next())g=g.value,X.set(g.propertyKey,g),c.set(g.propertyKey,[]),W.set(g.propertyKey,0);p=0;C=_.U(C);for(g=C.next();!g.done;g=C.next()){g=g.value;for(var a=_.U(g.type==="computeWithMethod"?g.method.args:g.args),O=a.next();!O.done;O=a.next())O=O.value,O.type!=="literal"&&(O=O.path.split(".")[0],c.has(O)&&(c.get(O).push(g.propertyKey),W.set(g.propertyKey,W.get(g.propertyKey)+1),p++))}g=
[].concat(_.VB(c.keys())).filter(function(P){return W.get(P)===0});
for(C=[];g.length;)for(a=g.shift(),C.push(X.get(a)),a=_.U(c.get(a)),O=a.next();!O.done;O=a.next())O=O.value,W.set(O,W.get(O)-1),p--,W.get(O)===0&&g.push(O);X=D.reactiveSchemas.filter(function(P){return!yNZ(P)});
D.reactiveSchemas=[].concat(_.VB(X),_.VB(C))};
w3R=function(D,C){if(C.properties)for(var X=_.U(Object.entries(C.properties)),c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;D.properties[c]=typeof W==="function"?{type:W}:W}C.observers&&D.observers.push.apply(D.observers,_.VB(C.observers));C.disabledPolySiReactions&&D.disabledPolySiReactions.push.apply(D.disabledPolySiReactions,_.VB(C.disabledPolySiReactions))};
FAm=function(D,C){for(var X=C.length-1;X>=0;X--){var c=C[X];Array.isArray(c)?FAm(D,c):D.indexOf(c)<0&&D.unshift(c)}};
ZEn=function(D,C){D.reactiveSchemas=D.reactiveSchemas.filter(function(X){return X.type==="observe"&&C.includes(X.method.methodName)||yNZ(X)&&C.includes(X.propertyKey)?!1:!0})};
V3F=function(D,C){var X=C.prototype,c,W,p={is:D.is,reactiveSchemas:[],observedAttributes:[],behaviors:[dW3.InjectBehavior,tA.prototype],disableElementRegistration:D.disableElementRegistration,provide:(c=D.providers)!=null?c:[],reactivityMode:D.reactivityMode,signalProperties:(W=X.signalProperties)!=null?W:[]};"template"in C?p.templateGetter=function(){return C.template}:D.getTemplate&&(p.templateGetter=D.getTemplate);
X.behaviors&&FAm(p.behaviors,X.behaviors);GfZ(p,C);return p};
GfZ=function(D,C){for(var X=C.prototype,c={properties:{},observers:[],disabledPolySiReactions:[]},W=_.U(D.behaviors),p=W.next();!p.done;p=W.next())w3R(c,p.value);w3R(c,X);if(D.signalProperties)for(X=_.U(D.signalProperties),W=X.next();!W.done;W=X.next())delete c.properties[W.value];X=_.U(Object.entries(c.properties));for(W=X.next();!W.done;W=X.next()){p=_.U(W.value);W=p.next().value;p=p.next().value;var g=void 0;if((g=D.signalProperties)==null||!g.includes(W)){g=void 0;var a=D,O=p.type;if(!O)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{O=Reflect.getMetadata("design:type",C,W);for(var P=_.U(TMm),k=P.next();!k.done;k=P.next())if(k=k.value,O===k){O=k;break a}O=Object}else O=String;p.computed||p.selector||(a.reactiveSchemas.push({type:"signal",propertyKey:W,value:p.value,attributeType:O,readOnly:p.readOnly}),a.observedAttributes.push(_.gl(W)));p.reflectToAttribute&&a.reactiveSchemas.push({type:"reflect",propertyKey:W});if(p.computed){O=xcJ(p.computed);if(!O)throw Error("Og");a.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:W,method:O,value:p.value})}p.observer&&a.reactiveSchemas.push({type:"observe",method:{methodName:p.observer,args:[{type:"path",path:W}]}});p.notify&&a.reactiveSchemas.push({type:"notify",propertyKey:W});p.selector&&a.reactiveSchemas.push({type:"redux",propertyKey:W,selector:p.selector,selectorArgs:(g=p.selectorArgs)!=null?g:[]})}}HEF&&nBm(D);C=_.U(c.observers);for(W=C.next();!W.done;W=C.next())X=D,W=W.value,(p=xcJ(W))?X.reactiveSchemas.push({type:"observe",method:p}):console.log('Warning: unable to parse observe declaration: "'+
W+'"');ZEn(D,c.disabledPolySiReactions)};
JNt=function(D,C){for(var X=0;X<C.length;X++){var c=C[X],W=void 0;(W=c).showHideApi!=null||(W.showHideApi={});W=void 0;!!D!==!((W=c.showHideApi)==null||!W.hideTemplateChildren)&&(c.nodeType===Node.TEXT_NODE?D?(c.showHideApi.polymerTextContent=c.textContent,c.textContent=""):(W=void 0,c.textContent=(W=c.showHideApi.polymerTextContent)!=null?W:null):c instanceof Element&&c.localName==="slot"?D?(c.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Io)((0,_.Io)(c).parentNode).replaceChild(c.showHideApi.polymerReplaced,
c)):(W=c.showHideApi.polymerReplaced)&&(0,_.Io)((0,_.Io)(W).parentNode).replaceChild(c,W):c instanceof HTMLElement&&c.style&&(D?(c.showHideApi.polymerDisplay=c.style.display,c.style.display="none"):c.style.display=c.showHideApi.polymerDisplay));c.showHideApi.hideTemplateChildren=D;c.showHideChildren&&c.showHideChildren(D)}};
j6t=function(){if(!zw3){var D=document.createElement("style");D.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(D);zw3=!0}};
Mw=function(){return _.b("disable_hidden_dom_if_using_stamper")};
M3t=function(D,C){var X=_.qw().getState();return C?D.apply(null,[X].concat(_.VB(C))):D(X)};
dBd=function(){if(qxd)return qxd;var D=_.U(_.Li(0,void 0,"MB1Hb")),C=D.next().value;D.next();var X=D.next().value;_.qw().subscribe(function(){fOj(X)});
return qxd=C};
fOj=function(D){RwR||(RwR=!0,Promise.resolve().then(function(){D(function(C){return C+1});
RwR=!1}))};
_.qw=function(){return lO3.getAppStore()};
D2o=function(D,C){return lO3.getSelectFn()(D,C)};
_.fG=function(D){lO3.getDispatchFn()(D)};
CMt=function(D,C){var X={},c;for(c in D)X[c]=C(D[c],c);return X};
_.di=function(D,C){return function(){var X;return(X=_.Mm(D))!=null?X:C}};
_.Ro=function(D,C){var X=Object.assign({},D),c;for(c in C)C.hasOwnProperty(c)&&(X[c]=_.di(D[c],C[c]));return X};
Xbd=function(D,C,X,c){D instanceof Element&&(X.debugName||(X.debugName="<"+D.tagName.toLowerCase()+(D.tagName.includes("-")?">":"."+D.className+">")),_.b("ytwiz_enable_debug_component_props")&&(D.debugProps||(D.debugProps=CMt(C,function(W){return function(){return W()}})),C.data===void 0||"data"in D||Object.defineProperty(D,"data",{get:function(){return _.Mm(C.data)},
set:function(W){var p;c==null||(p=c.data)==null||p.call(c,W)},
enumerable:!0,configurable:!0})))};
_.F=function(D,C){var X=function(c){return ft("ytComponent",{},function(W){var p=czt={};var g;if(((g=X)==null?0:g.idomCompat)&&c.renderedFromIdom){var a;g=typeof X.idomCompat==="object"?(a=X)==null?void 0:a.idomCompat.callbacks:{};g=_.U(oeh(c,g));a=g.next().value;var O=g.next().value;g=g.next().value;var P=Wt5(D,a);p.privateValue=P;czt=void 0;Xbd(P,a,X,O);W.addAttributes({debugName:X.debugName});W=kTJ(P);W=Array.isArray(W)?W[0]:W;W[xQ]||(W[xQ]={});W[xQ].updateSignalsFromIdomProps=g;pb3(a,P);return P}g=
CMt(c,SVn);a=Wt5(D,g);Xbd(a,g,X);p.privateValue=a;czt=void 0;W.addAttributes({debugName:X.debugName});pb3(g,a);return a})};
X.debugName=C===void 0?"":C;return X};
Wt5=function(D,C){D=D(C);return EO(D)};
U2R=function(D,C){D[C]||(D=new _.Zf("IDOM interop setter undefined. Key:",C),_.MN(D))};
SVn=function(D,C){return C==="children"||C==="ref"||typeof D==="function"||D===void 0?D:function(){return _.Mm(D)}};
oeh=function(D,C){var X={},c={},W={},p={},g;for(g in D){p={key$jscomp$952:p.key$jscomp$952};p.key$jscomp$952=g;var a=D[p.key$jscomp$952];if(p.key$jscomp$952==="children"||p.key$jscomp$952==="ref")X[p.key$jscomp$952]=a;else if(typeof a==="function")p.key$jscomp$952 in C||a.length>0?(W[p.key$jscomp$952]=a,X[p.key$jscomp$952]=function(P){return function(){return W[P.key$jscomp$952].apply(W,_.VB(_.MJ.apply(0,arguments)))}}(p)):X[p.key$jscomp$952]=a;
else if(!(D[p.key$jscomp$952]===void 0&&p.key$jscomp$952 in C)){var O=_.U(_.Li(D[p.key$jscomp$952],{debugName:p.key$jscomp$952+":cwis"},"qyVbFe"));a=O.next().value;O=O.next().value;X[p.key$jscomp$952]=a;c[p.key$jscomp$952]=O}}return[X,c,function(P){var k={},u;for(u in P)k={key$jscomp$951:k.key$jscomp$951,val$jscomp$122:void 0},k.key$jscomp$951=u,k.val$jscomp$122=P[k.key$jscomp$951],k.key$jscomp$951!=="children"&&k.key$jscomp$951!=="ref"&&(typeof k.val$jscomp$122==="function"?k.key$jscomp$951 in C?
W[k.key$jscomp$951]=k.val$jscomp$122:k.val$jscomp$122.length>0&&(W[k.key$jscomp$951]=k.val$jscomp$122,_.fQ(new _.Zf("Callback detected that was not set in the idomCompat callbacks map. Key:",k.key$jscomp$951))):k.key$jscomp$951 in C&&k.val$jscomp$122===void 0||(U2R(c,k.key$jscomp$951),Nm(function(Q){return function(){c[Q.key$jscomp$951](Q.val$jscomp$122)}}(k))))}]};
IqF=function(D,C,X){var c=Cp3(D.prototype,ged,D.prototype.behaviors);c.prototype.is=C;c.prototype.localName=C;X&&aqj(c,X);return function(W){W&&(c.prototype.hostElement=W);var p=new c;p.root=p;p.hostElement=W;return p}};
aqj=function(D,C){var X;Object.defineProperty(D.prototype,"_template",{get:function(){X===void 0&&(X=C());return X},
set:function(c){X=c},
configurable:!0,enumerable:!0})};
veR=function(D,C,X,c){function W(){if(!B){for(var K=new Set,L=_.U(k),t=L.next();!t.done;t=L.next()){t=t.value;for(var Y=_.U(Object.getOwnPropertyNames(t)),y=Y.next();!y.done;y=Y.next()){y=y.value;var J=void 0,T=(J=Object.getOwnPropertyDescriptor(t,y))==null?void 0:J.value;T&&T instanceof Function&&!lH(y)&&(!a[y]||_.b("polymer_forward_method_killswitch"))&&K.add(y)}}L=_.U(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(t=L.next();!t.done;t=L.next())Y=_.U(t.value),t=Y.next().value,
Y=Y.next().value,Y.value instanceof Function&&!lH(t)&&K.add(t);B=K}return B}
OZF(D,C,c==null?void 0:c.providers);Xqj(D.prototype,D,!0);var p=IqF(D,C,X),g,a=(g=D.prototype.properties)!=null?g:{},O,P,k=(P=(O=D.prototype.behaviors)==null?void 0:O.flat(Infinity))!=null?P:[];X=_.U(k);for(g=X.next();!g.done;g=X.next())a=Object.assign({},g.value.properties,a);var u=[].concat(_.VB(Azr),_.VB(Object.keys(a).map(function(K){return _.gl(K)}))),Q=!1,B;
return{ctor:function(K,L){var t=p(K),Y,y;K=[].concat(_.VB((Y=c==null?void 0:c.allowedProps)!=null?Y:[]),_.VB((y=c==null?void 0:c.allowedPropsFromBehaviors)!=null?y:[]));t.allowedProps=K.length>0?K:void 0;Y={};y=_.U(u);for(K=y.next();!K.done;K=y.next())K=K.value,Y[K]=_.aB(K);t.__dataAttributes=Y;var J=t.ready.bind(t);t.ready=function(){L.beforeReady();J();if(ri(C)&&!Q){var T=t.__templateInfo;if(T==null?0:T.hostProps){T=_.U(Object.keys(T.hostProps));for(var H=T.next();!H.done;H=T.next())hA(C,H.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Q=!0}};
t._overrideLegacyUndefined=!0;return t},
props:a,observedAttributes:u,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var K=[],L=new Set,t=_.U(Object.keys(a)),Y=t.next();!Y.done;Y=t.next())Y=Y.value,K.push([Y,a[Y].readOnly]),L.add(Y);t=W();Y=_.U(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var y=Y.next();!y.done;y=Y.next())y=y.value,!PMF(y)||t.has(y)||L.has(y)||(K.push([y,!1]),L.add(y));L=_.U($2W);for(t=L.next();!t.done;t=L.next())K.push([t.value,!0]);return K},
getPropsToForwardBeforeReady:function(K){for(var L=[],t=_.U(Object.entries(K)),Y=t.next();!Y.done;Y=t.next()){var y=_.U(Y.value);Y=y.next().value;y=y.next().value;if(PMF(Y)&&!(y instanceof Function)&&(L.push([Y,!1]),ri(C))){var J=y=void 0;(J=(y=K)._createPropertyAccessor)==null||J.call(y,Y)}}return L},
shouldForwardProp:PMF,shouldLog:ri}};
OZF=function(D,C,X){RHW(D,X);D.prototype.behaviors.unshift(iZt);if(F3J()){if(ri(C)){var c;(c=D.prototype).behaviors!=null||(c.behaviors=[]);D.prototype.behaviors.unshift(TId())}HjW(D)}_.m(tA.prototype)(D.prototype,"__templateHelpers")};
lH=function(D){return ksR.has(D)||D.startsWith("__compute__")};
PMF=function(D){return!lH(D)&&!D.startsWith("_")&&!D.endsWith("_")};
rzm=function(D,C){function X(){var Q=O();Q=_.U(Q);for(var B=Q.next();!B.done;B=Q.next()){var K=_.U(B.value);B=K.next().value;K=K.next().value;uW5(u.prototype,B,K)}c=!0}
var c=!1,W=D.ctor,p=D.getInitialMethods,g=D.observedAttributes,a=D.getPropsToForwardBeforeReady,O=D.getPropsToForwardBeforeRegister,P=D.shouldForwardProp,k=D.shouldLog,u=function(){var Q=HTMLElement.call(this)||this;Q.didForwardDynamicProps=!1;Q.loggingStatus={};c||X();Q.inst=W(Q,{beforeReady:function(){Q.didForwardDynamicProps||(Q.forwardDynamicProps(),Q.didForwardDynamicProps=!0)}});
Q.controllerProxy=GGt(Q.inst,C);Q.forwardMethods();return Q};
_.h(u,HTMLElement);u.prototype.forwardMethods=function(){for(var Q=this,B=_.U(this.inst.getExtraMethodsToForward()),K=B.next(),L={};!K.done;L={method$jscomp$65:void 0},K=B.next()){var t=_.U(K.value);K=t.next().value;t=t.next().value;L.method$jscomp$65=t;this[K]=function(Y){return function(){return Y.method$jscomp$65.call.apply(Y.method$jscomp$65,[Q.inst].concat(_.VB(_.MJ.apply(0,arguments))))}}(L)}B=_.U(p());
for(L=B.next();!L.done;L=B.next())L=L.value,P(L)&&Qzn(this,L),k(C)&&!lH(L)&&Bg5(this.inst,L)};
u.prototype.forwardDynamicProps=function(){var Q=a(this.inst);Q=_.U(Q);for(var B=Q.next();!B.done;B=Q.next()){var K=_.U(B.value);B=K.next().value;K=K.next().value;uW5(this,B,K);k(C)&&!lH(B)&&bZm(this.inst,B)}};
u.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
u.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
u.prototype.attributeChangedCallback=function(Q,B,K){this.inst.attributeChangedCallbackWrapper(Q,B,K)};
_.$a.Object.defineProperties(u.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return C}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.$a.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return g}}});
customElements.define(C,u)};
uW5=function(D,C,X){D.hasOwnProperty(C)||Object.defineProperty(D,C,{get:function(){var c,W=((c=D.is)!=null?c:D.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||hA(W,C,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,c=this.polymerController[C],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,c},
set:function(c){if(!X){var W,p=((W=D.is)!=null?W:D.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||hA(p,C,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=C,this.loggingStatus.bypassProxyController=!0,this.polymerController[C]!==c&&(W={},this.polymerController.setProperties((W[C]=c,W)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Qzn=function(D,C,X){var c=D.polymerController;D[C]=function(){var W=_.MJ.apply(0,arguments);D.loggingStatus.currentExternalCall=C;D.loggingStatus.bypassProxyController=!0;var p,g=((p=D.is)!=null?p:D.tagName).toLowerCase();hA(g,C,"PROPERTY_ACCESS_CALL_EXTERNAL");var a;p=(a=X!=null?X:c[C])==null?void 0:a.call.apply(a,[c].concat(_.VB(W)));D.loggingStatus.currentExternalCall=void 0;D.loggingStatus.bypassProxyController=!1;return p}};
Bg5=function(D,C){var X=D.hostElement,c=D[C];D[C]=function(){var W=_.MJ.apply(0,arguments);if(X.loggingStatus.currentExternalCall!==C){var p,g=((p=X.is)!=null?p:X.tagName).toLowerCase();hA(g,C,"PROPERTY_ACCESS_CALL_INTERNAL")}return c==null?void 0:c.apply(D,W)}};
bZm=function(D,C){var X=Object.getOwnPropertyDescriptor(D,C);X&&!X.get&&Object.defineProperty(D,C,{get:function(){Vw3(D.hostElement,C);return X.value},
set:function(c){xn(D.hostElement,C);X.value=c}})};
Ktt=function(D){return _.b("poly_si_dom_repeat_detached_fix_killswitch")||D.tagName!=="PS-DOM-REPEAT"?D.tagName==="DOM-REPEAT":!0};
x2m=function(D,C){var X=hMR(D);D instanceof Element&&X.unshift(D);D=_.U(X.filter(Ktt));for(var c=D.next();!c.done;c=D.next()){var W=void 0;c=_.U((W=c.value.__instances)!=null?W:[]);for(W=c.next();!W.done;W=c.next())if(W=W.value,W.root){W=Array.from(W.root.children);W=_.U(W);for(var p=W.next();!p.done;p=W.next())X.push.apply(X,_.VB(x2m(p.value,C)))}}return X.filter(function(g){return g.usePatchedLifecycles&&g.lifecycleIsConnected===C})};
hMR=function(D){var C=null;D instanceof Element?C=Element.prototype.querySelectorAll:D instanceof DocumentFragment&&(C=DocumentFragment.prototype.querySelectorAll);return C?Array.from(C.call(D,"*")):[]};
DR=function(D){_.hw(function(){for(var C=_.U(x2m(D,!1)),X=C.next();!X.done;X=C.next()){X=X.value;X.lifecycleIsConnected=!0;try{var c=void 0,W=void 0,p=void 0,g=void 0;(c=(g=X.polymerController)!=null?g:X)==null||(p=(W=c).connectedCallback)==null||p.call(W)}catch(a){_.MN(a)}}})};
Cb=function(D){_.hw(function(){for(var C=_.U(x2m(D,!0)),X=C.next();!X.done;X=C.next()){X=X.value;X.lifecycleIsConnected=!1;try{var c=void 0,W=void 0,p=void 0,g=void 0;(c=(g=X.polymerController)!=null?g:X)==null||(p=(W=c).disconnectedCallback)==null||p.call(W)}catch(a){_.MN(a)}}})};
Ngm=function(){if(!Ltm){Ltm=!0;var D=[Node];XV&&D.push(XV.Wrapper);var C=Node.prototype.insertBefore,X=Node.prototype.removeChild;D=_.U(D);for(var c=D.next(),W={};!c.done;W={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},c=D.next())c=c.value,W.nativeInsertBefore=c.prototype.insertBefore,c.prototype.insertBefore=function(g){return function(a,O){if(a instanceof DocumentFragment){var P=Array.from(a.children);a=g.nativeInsertBefore.call(this,a,O);
if(this.isConnected&&g.nativeInsertBefore===C)for(O=_.U(P),P=O.next();!P.done;P=O.next())DR(P.value);return a}P=a instanceof Element&&a.isConnected;O=g.nativeInsertBefore.call(this,a,O);P&&Cb(a);this.isConnected&&DR(a);return O}}(W),W.nativeAppendChild=c.prototype.appendChild,c.prototype.appendChild=function(g){return function(a){if(a instanceof DocumentFragment){var O=Array.from(a.children);
a=g.nativeAppendChild.call(this,a);if(this.isConnected){O=_.U(O);for(var P=O.next();!P.done;P=O.next())DR(P.value)}return a}O=a instanceof Element&&a.isConnected;P=g.nativeAppendChild.call(this,a);O&&Cb(a);this.isConnected&&DR(a);return P}}(W),W.nativeRemoveChild=c.prototype.removeChild,c.prototype.removeChild=function(g){return function(a){var O=a instanceof Element&&a.isConnected,P=g.nativeRemoveChild.call(this,a);
O&&X===g.nativeRemoveChild&&Cb(a);return P}}(W),W.nativeReplaceChild=c.prototype.replaceChild,c.prototype.replaceChild=function(g){return function(a,O){if(a instanceof DocumentFragment){var P=Array.from(a.children);
a=g.nativeReplaceChild.call(this,a,O);if(this.isConnected)for(Cb(O),O=_.U(P),P=O.next();!P.done;P=O.next())DR(P.value);return a}P=a instanceof Element&&a.isConnected;var k=this.isConnected,u=g.nativeReplaceChild.call(this,a,O);k&&Cb(O);P&&Cb(a);k&&DR(a);return u}}(W);
D=[Element];XV&&D.push(XV.Wrapper);D=_.U(D);c=D.next();for(W={};!c.done;W={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},c=D.next())c=c.value,c.prototype.before=szr(c.prototype.before),c.prototype.after=szr(c.prototype.after),W.nativeReplaceWith=c.prototype.replaceWith,c.prototype.replaceWith=function(g){return function(){var a=_.MJ.apply(0,arguments),O=_.U(m2R(a)),P=O.next().value,
k=O.next().value;O=this.isConnected;g.nativeReplaceWith.apply(this,a);a=_.U(k);for(k=a.next();!k.done;k=a.next())Cb(k.value);if(O)for(Cb(this),P=_.U(P),O=P.next();!O.done;O=P.next())O=O.value,O instanceof Element&&DR(O)}}(W),W.nativeRemove=c.prototype.remove,c.prototype.remove=function(g){return function(){var a=this.isConnected;
g.nativeRemove.call(this);a&&Cb(this)}}(W),W.nativeInsertAdjacentElement=c.prototype.insertAdjacentElement,c.prototype.insertAdjacentElement=function(g){return function(a,O){var P=O.isConnected;
a=g.nativeInsertAdjacentElement.call(this,a,O);P&&Cb(O);a.isConnected&&DR(a);return a}}(W),W.nativeSetAttribute=c.prototype.setAttribute,c.prototype.setAttribute=function(g){return function(a,O){var P=eM5(this);
if(!P.usePatchedLifecycles)return g.nativeSetAttribute.call(this,a,O);var k=this.getAttribute(a);g.nativeSetAttribute.call(this,a,O);O=this.getAttribute(a);EeW(P,a,k,O)}}(W),W.nativeRemoveAttribute=c.prototype.removeAttribute,c.prototype.removeAttribute=function(g){return function(a){var O=eM5(this);
if(!O.usePatchedLifecycles)return g.nativeRemoveAttribute.call(this,a);var P=this.getAttribute(a);g.nativeRemoveAttribute.call(this,a);P!==null&&EeW(O,a,P,null)}}(W),W.nativeToggleAttribute=c.prototype.toggleAttribute,c.prototype.toggleAttribute=function(g){return function(a,O){var P=eM5(this);
if(!this.usePatchedLifecycles)return g.nativeToggleAttribute.call(this,a,O);var k=this.getAttribute(a),u=k!==null;O=g.nativeToggleAttribute.call(this,a,O);O!==u&&EeW(P,a,k,O?"":null);return O}}(W);
D=[Document,DocumentFragment,Element,ShadowRoot];XV&&D.push(XV.Wrapper);D=_.U(D);for(W=D.next();!W.done;W=D.next())W=W.value,W.prototype.prepend=szr(W.prototype.prepend),W.prototype.append=szr(W.prototype.append);(XV==null?void 0:XV.noPatch)===!0&&t9d();document.readyState==="complete"?DR(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&DR(document.body)});
var p=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");p&&p.get&&p.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:p.enumerable,configurable:!0,get:p.get,set:function(g){g||Cb(this);p.set.call(this,g);return g}})}};
szr=function(D){return function(){var C=_.MJ.apply(0,arguments),X=_.U(m2R(C)),c=X.next().value;X=X.next().value;D.apply(this,C);C=_.U(X);for(X=C.next();!X.done;X=C.next())Cb(X.value);if(this.isConnected)for(c=_.U(c),C=c.next();!C.done;C=c.next())C=C.value,C instanceof Element&&DR(C)}};
t9d=function(){for(var D=_.U(YVr),C=D.next();!C.done;C=D.next()){C=C.value.prototype;for(var X=_.U(yzJ),c=X.next();!c.done;c=X.next()){c=c.value;var W=Object.getOwnPropertyDescriptor(C,c);W&&Object.defineProperty(C,"__shady_native_"+c,W)}}};
EeW=function(D,C,X,c){var W,p;if((W=D.polymerController)==null?0:(p=W.observedAttributes)==null?0:p.includes(C))if(D=D.polymerController,D.attributeChangedCallbackWrapper)D.attributeChangedCallbackWrapper.call(D,C,X,c);else{var g;(g=D.attributeChangedCallback)==null||g.call(D,C,X,c)}};
m2R=function(D){var C=[],X=[];D=_.U(D);for(var c=D.next();!c.done;c=D.next())c=c.value,c instanceof Element&&c.isConnected&&X.push(c),c instanceof DocumentFragment?C.push.apply(C,_.VB(Array.from(c.children))):C.push(c);return[C,X]};
eM5=function(D){return!(D instanceof Element)&&D.node instanceof Element?D.node:D};
ner=function(D,C){var X=C?["children"].concat(_.VB(C)):["children"];C=[];X=_.U(X);for(var c=X.next();!c.done;c=X.next()){var W=c.value;if(D.hasOwnProperty(W)){c=D[W];c=typeof c==="function"?c():c;c=Array.isArray(c)?c:[c];c=EO(c).flat();if(W!=="children"){W=dDJ(W);for(var p=_.U(c),g=p.next();!g.done;g=p.next())g=g.value,g instanceof Element&&g.setAttribute("slot",W)}C.push(c)}}C.length===0?D=[]:(D=EO(_.A("div",null,C)),D=Array.from(D.childNodes));return D};
Ftd=function(D,C,X){var c={};_.He(function(){var W={},p;for(p in C)if(C.hasOwnProperty(p)){var g=void 0,a=void 0;if(!(((g=X.slotProps)==null?0:g.includes(p))||p==="children"||((a=X.callbackProps)==null?0:a.includes(p))||p==="ref")&&(g=_.Mm(C[p]),c[p]!==g)){c[p]=g;a=void 0;var O=(a=D.hostElement)!=null?a:D;!X.skipHostForwardedProps&&wbr.has(p)&&(O[p]=g);W[p]=g}}Nm(function(){if(D.setProperties)D.setProperties(W);else for(var P=_.U(Object.entries(W)),k=P.next();!k.done;k=P.next()){var u=_.U(k.value);
k=u.next().value;u=u.next().value;D[k]=u}})},"j")};
GsZ=function(D,C,X,c){var W=ner(X,c.slotProps),p=(0,_.Io)(D);W=_.U(W);for(var g=W.next();!g.done;g=W.next())p.appendChild(g.value);Ftd(C,X,c);c=_.U(c.callbackProps||[]);W=c.next();for(p={};!W.done;p={kebabEventName:void 0,eventListener:void 0},W=c.next())g=W=W.value,String(W).substring(0,2)==="on"&&X[g]?(p.kebabEventName=dDJ(String(W).substring(2)),p.eventListener=X[g],D.addEventListener(p.kebabEventName,p.eventListener),_.z3(function(k){return function(){D.removeEventListener(k.kebabEventName,k.eventListener)}}(p))):
C[g]=X[g];
if(X.ref){X=_.U(ZZ5(X.ref));var a=X.next().value,O=X.next().value,P=C.attached.bind(C);C.attached=function(){a(D);P()};
_.z3(function(){O()})}};
ZZ5=function(D){if(typeof D==="function"){var C;return[function(X){C=D(X)},
function(){var X;(X=C)==null||X()}]}if(!D.onRender||!D.onUnmount)throw Error("Sg");
return[D.onRender,D.onUnmount]};
V9W=function(D,C){C=C===void 0?{}:C;var X=function(c){var W=document.createElement(D),p;var g=(p=W.polymerController)!=null?p:W;GsZ(W,g,c,C);return W};
X.debugName=D+" (CoW wrapped)";return X};
zMj=function(D,C,X,c,W){c=c===void 0?{}:c;var p=TgW,g=!1;p?(g=!0,TgW=void 0):(HZd=C,p=document.createElement(C),HZd=void 0);var a=p;a.usePatchedLifecycles=!0;a.lifecycleIsConnected=!1;p.loggingStatus={};var O=Jzm(D,C,p,c,W);_.z3(function(){a.lifecycleIsConnected&&(a.lifecycleIsConnected=!1,O.disconnectedCallback())});
g||(p.__noInsertionPoint=!0,GsZ(p,O,X,c));return p};
Jzm=function(D,C,X,c,W){W=W===void 0?veR:W;jzo[C]!=null||(jzo[C]=W(D,C,c==null?void 0:c.getTemplate,c));var p=jzo[C],g=p.ctor;W=p.getInitialMethods;var a=p.getPropsToForwardBeforeReady;D=p.getPropsToForwardBeforeRegister;c=p.shouldForwardProp;var O=p.observedAttributes,P=p.shouldLog,k=g(X,{beforeReady:function(){var u=k;u._takeAttributes?u._takeAttributes():u.setPropertiesFromInitialAttributeValues&&u.setPropertiesFromInitialAttributeValues();u=_.U(a(X.polymerController));for(var Q=u.next();!Q.done;Q=
u.next()){var B=_.U(Q.value);Q=B.next().value;B=B.next().value;uW5(X,Q,B);P(C)&&!lH(Q)&&bZm(X.polymerController,Q)}X.polymerController=GGt(k,C)}});
X.polymerController=k;X.polymerController.observedAttributes=O;p=_.U(k.getExtraMethodsToForward());for(g=p.next();!g.done;g=p.next())O=_.U(g.value),g=O.next().value,O=O.next().value,Qzn(X,g,O);W=_.U(W());for(p=W.next();!p.done;p=W.next())p=p.value,c(p)&&Qzn(X,p),P(C)&&!lH(p)&&Bg5(k,p);D=_.U(D());for(c=D.next();!c.done;c=D.next())W=_.U(c.value),c=W.next().value,W=W.next().value,uW5(X,c,W);return k};
M9J=function(D){var C=cc;cc=D;return C};
d2d=function(D){if(qVo.has(D)&&cc&&fqm(cc)===D){var C;(C=cc)._numRenders!=null||(C._numRenders=0);cc._numRenders++;if(cc._numRenders>1)throw Error("Tg");return cc}};
lqh=function(D){var C=fqm(D);cc!==D&&C.includes("-")&&RMJ.set(D,!0)};
fqm=function(D){var C;return(C=D==null?void 0:D.tagName.toLowerCase())!=null?C:""};
Dro=function(D,C){if(D.componentType===yv)throw Error("Ug");qVo.add(C);var X=function(){var c=HTMLElement.call(this)||this;c.is=C;if(HZd===C)return c.isInert=!0,c;c.createElement();return c};
_.h(X,HTMLElement);X.prototype.createElement=function(){if(!this.isInert){TgW=this;var c=_.U(_.zdZ(function(){return _.A(D,null)})).next().value;
TgW=void 0;VlZ(this);return c}};
customElements.define(C,X)};
XZt=function(D,C,X,c,W){D.prototype.is=C;(c==null?0:c.useSink)?CmR(D,C,X,c,W):(X=veR(D,C,X,c),rzm(X,C));return D};
CmR=function(D,C,X,c,W){Ngm();var p=_.F(function(g){return zMj(D,C,g,Object.assign({},c,{getTemplate:X}),W)},"k");
p.debugName=C+" (CoW wrapped)";Dro(p,C);return p};
o$Z=function(D){return!cdt.has(D)};
St3=function(D,C,X,c){function W(){if(!u){for(var Q=new Set(Wio),B=_.U(p.behaviors),K=B.next();!K.done;K=B.next()){K=K.value;for(var L=_.U(Object.getOwnPropertyNames(K)),t=L.next();!t.done;t=L.next()){t=t.value;var Y=void 0,y=(Y=Object.getOwnPropertyDescriptor(K,t))==null?void 0:Y.value;y&&y instanceof Function&&(!P[t]||_.b("polymer_forward_method_killswitch"))&&Q.add(t)}}B=_.U(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(K=B.next();!K.done;K=B.next())L=_.U(K.value),K=L.next().value,
L=L.next().value,L.value instanceof Function&&Q.add(K);u=Q}return u}
var p=V3F({is:C,disableElementRegistration:!1,getTemplate:X,providers:c==null?void 0:c.providers,reactivityMode:c==null?void 0:c.reactivityMode},D);if((c==null?0:c.allowedProps)||(c==null?0:c.allowedPropsFromBehaviors)){var g,a;p.allowedProps=[].concat(_.VB((g=c.allowedProps)!=null?g:[]),_.VB((a=c.allowedPropsFromBehaviors)!=null?a:[]))}var O=Yx5(p,D);C=O.observedAttributes;var P={};X=_.U(p.reactiveSchemas);for(c=X.next();!c.done;c=X.next())if(c=c.value,c.type==="signal")P[c.propertyKey]={readOnly:c.readOnly},
c.readOnly&&(P[I8F(c.propertyKey)]={readOnly:!0});else if(c.type==="compute"||c.type==="computeWithMethod"||c.type==="redux")P[c.propertyKey]={readOnly:!0};var k=p.reactiveSchemas.length,u;return{ctor:function(Q,B){Q=new O(Q);Q.beforeReady=B.beforeReady;return Q},
props:P,observedAttributes:C,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var Q=[],B=new Set,K=_.U(pZm),L=K.next();!L.done;L=K.next())L=L.value,Q.push([L,L!=="observers"&&L!=="properties"]),B.add(L);K=_.U(Object.keys(P));for(L=K.next();!L.done;L=K.next())L=L.value,Q.push([L,P[L].readOnly]),B.add(L);K=W();L=_.U(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var t=L.next();!t.done;t=L.next())t=t.value,!o$Z(t)||K.has(t)||B.has(t)||(Q.push([t,!1]),B.add(t));Q.push(["allowedProps",
!0]);return Q},
getPropsToForwardBeforeReady:function(Q){var B=[];Q=_.U(Object.keys(Q));for(var K=Q.next();!K.done;K=Q.next()){K=K.value;var L=W();o$Z(K)&&!L.has(K)&&B.push([K,!1])}Q=_.U(p.reactiveSchemas.slice(k));for(K=Q.next();!K.done;K=Q.next())K=K.value,K.type!=="compute"&&K.type!=="computeWithMethod"&&K.type!=="redux"&&K.type!=="signal"||B.push([K.propertyKey,K.type==="signal"?K.readOnly:!0]);return B},
shouldForwardProp:o$Z,shouldLog:ri}};
_.G=function(D,C,X,c){var W,p,g=(p=(W=c)==null?void 0:W.mode)!=null?p:0;c!=null||(c={});var a;(a=c).reactivityMode!=null||(a.reactivityMode=0);g===1&&_.rT("creator_poly_si_disable_list").includes(C)&&(g=2);return g===1?XZt(D,C,X,Object.assign({},c,{useSink:!0}),St3):XZt(D,C,X,Object.assign({},c,{useSink:g===2}))};
_.o3=function(){return function(D,C,X,c){var W,p,g=(p=(W=c)==null?void 0:W.mode)!=null?p:2;c!=null||(c={});var a;(a=c).reactivityMode!=null||(a.reactivityMode=0);if(g===0)throw Error("Vg`"+g);return CmR(D,C,X,c,g===1?St3:void 0)}};
_.Wc=function(D){return _.b("creator_poly_si_killswitch")?!1:_.b("force_all_poly_si_batches")&&(D==="poly_si_all_on_test_check"||D==="creator_poly_si_batch_050"?0:D)||document.documentElement.hasAttribute("use-signals")?!0:!D||_.b(D+"_holdback_enabled")&&_.b("kevlar_polysi_holdback")?!1:_.b(D)};
pb=function(D){return D?D.icon?D.icon.iconType.toLowerCase():D.customThumbnail?"member":"":""};
Urm=function(D){if(!D)return"";D=_.U(D);for(var C=D.next();!C.done;C=D.next())if((C=C.value)&&C.liveChatAuthorBadgeRenderer&&(C=pb(C.liveChatAuthorBadgeRenderer))&&C!=="verified")return C;return""};
g$r=function(D,C){if(!D)return null;var X;return((X=D.find(function(c){return c&&c.liveChatAuthorBadgeRenderer?pb(c.liveChatAuthorBadgeRenderer)===C:!1}))==null?void 0:X.liveChatAuthorBadgeRenderer)||null};
_.$r3=function(D){var C=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;D=azm(D);C=azm(C);var X=IzJ(D.hex);C=IzJ(C.hex);var c=C[0]/255;var W=C[1]/255,p=C[2]/255,g=Math.max(c,W,p),a=Math.min(c,W,p),O=0,P=0,k=.5*(g+a);g!=a&&(g==c?O=60*(W-p)/(g-a):g==W?O=60*(p-c)/(g-a)+120:g==p&&(O=60*(c-W)/(g-a)+240),P=0<k&&k<=.5?(g-a)/(2*k):(g-a)/(2-2*k));c=[Math.round(O+360)%360,P,k];X=OsW(X,C);for(D=AdZ(D.hex);X<4.5;){D=c[2]>=.5?D.darker((4.5-X)/2):D.brighter((4.5-X)/2);X=D.toString();
W=PmZ(X);if(!W.length)throw Error("Xd`"+X);X=W;X=OsW(X,C)}return D.hex()};
OsW=function(D,C){D=_.Tz5(D);C=_.Tz5(C);return(Math.max(D,C)+.05)/(Math.min(D,C)+.05)};
_.S6=function(D){return"#"+("000000"+(D&16777215).toString(16)).slice(-6)};
_.v$d=function(D){for(var C=0,X=0;X<D.length;X++)C=D.charCodeAt(X)+((C<<5)-C);D="#";for(X=0;X<3;X++)D+=("00"+(C>>X*8&255).toString(16)).slice(-2);return D};
iso=function(D){D=(D||"").split(":");D.length===1&&D.unshift("yt-icons");D[1]=D[1].toLowerCase();return D};
rd5=function(D,C){var X=(C=C===void 0?!1:C)?k8R:uiF,c=C?QFm:Bnj;D.getIconNames().forEach(function(W){W=C?W:W.substring(W.indexOf(":")+1);D.name==="yt-icons"?bsh.add(W):W.includes("-filled")?X.add(W):c.add(W)})};
U4=function(D,C,X,c){X=X===void 0?!1:X;c=c===void 0?!1:c;var W,p,g;return _.I(function(a){if(a.nextAddress==1)return a.yield(KiF,2);if(c)return a.return(bsh.has(D));W=X?k8R:uiF;p=X?QFm:Bnj;return C?(g=D.includes("-filled")?D:D.concat("-filled"),a.return(W.has(g))):a.return(p.has(D))})};
_.g2=function(D){if(hBr(D))return D.toString();var C=xrh.get(D);if(C)return C;C=D.toLowerCase();var X="yt-icons",c=C.replace(/_/g,"-");switch(D){case "MY_CHANNEL":C="account_circle";break;case "ADD_TO_LIBRARY":C="add";break;case "ALERT_WARN_RED":C="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":C="person_music";break;case "BLOCK_USER":C="block";break;case "CAPTIONS":C="closed_caption";break;case "CLOSED_CAPTION":X="av";C="closed-caption";break;case "COLLECTION":X="maps";C="layers";break;case "CONTACT":X=
"icons";C="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":X="yt-studio-system-icons";C=c.split("creator-studio-")[1];break;case "DISMISSAL":C="close";break;case "DO_NOT_DISTURB":C="block";break;case "DOGFOOD":X="icons";C="pets";break;case "DRAFT":C="paper_corner_folded";
break;case "EMPTY_LIKE":C="like_outline";break;case "EXIT_APP":C="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":C=c;break;case "GAMES":X="ytg";C="my-games";break;case "GO_TO_PAGE":C="arrow-forward";break;case "GROUP":X="social";break;case "HIDE":C="not_interested";break;case "INPUT_COMPONENT":X="icons";C="settings-input-component";break;case "KIDS_BLOCK":C="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":X="ytg";C="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":X=
"ytg";C="membership-post-purchase";break;case "MULTIVIEW":C="screen_multi_view";break;case "MY_LOCATION":X="maps";C=c;break;case "NOTIFICATIONS_INBOX":C="NOTIFICATIONS";break;case "NEXT":C="chevron_right";break;case "OFFLINE":C="power-settings-new";break;case "PAUSE":X="miniplayer";break;case "PAYMENT":X="icons";break;case "PHONE_DOWNLOAD":C="phone_download";break;case "PREMIUM_STANDALONE":X="yt-logos";C="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":X="yt-logos";C="premium_standalone_cairo";
break;case "QUESTION_ANSWER":C="question_answer";break;case "REDEEM":X="icons";C="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":C="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":C="library_add";break;case "SCHOOL":X="yt-sys-icons";C="creator_academy";break;case "SETTINGS_LIGHT":C="settings_applications";break;case "SETTINGS_MATERIAL":C="settings";break;case "SEARCH_HISTORY":C="watch_history";break;case "SHOPPING_BAG":C="bag";break;case "SOCIAL":case "PEOPLE":X=
"yt-icons";C="people";break;case "STAFF_PICK":X="ytg";C="spotlight";break;case "START_DVR":C="add";break;case "STOP_DVR":X="av";C="stop";break;case "TAB_LIKED":C="like";break;case "TAB_INBOX":C="mail";break;case "TERMS_OF_SERVICE":X="icons";C="description";break;case "TRENDING":C="fire";break;case "UNBLOCK_USER":C="remove";break;case "UNPLUGGED_DARK_THEME":X="image";C="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":C="live";break;case "UNPLUGGED_SPORTS":X="ytu";C="visibility-off";break;
case "VIDEOS":X="av";C="play-circle-filled";break;case "YOUTUBE":X="yt-logos";C="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":X="yt-logos-ext";C="yt-logo-red-updated";break;case "YOUTUBE_LOGO":X="yt-logos-ext";C="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":X="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":X="shorts";C=c;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":X="yt-sys-icons";C="youtube_improve_tv";break;case "OUTLINE_BAG":X=
"yt-sys-icons";C="bag";break;case "QUEUE_PLAY_LAST":X="yt-sys-icons";C="list_queue_last";break;case "SLASH_CIRCLE_LEFT":C="slash_circle_left";break;case "SPEED_1_POINT_2X":C="1_point_2x";break;case "SPEED_1_POINT_5X":C="1_point_5x";break;case "SPEED_1_POINT_8X":C="1_point_8x";break;case "SPEED_POINT_2X":C="point_2x";break;case "SPEED_POINT_5X":C="point_5x";break;case "SPEED_POINT_8X":C="point_8x";break;case "SPEED_1X":C="1x";break;case "SPEED_2X":C="2x";break;case "TAB_BOOKMARK":C="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":X="yt-sys-icons";C="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":X="yt-sys-icons";C="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":X="yt-sys-icons",C="tic_tac_toe"}C=X+":"+C;xrh.set(D,C);return C};
hBr=function(D){var C;_.b("kevlar_use_wil_icons")?C=!!_.iX().resolve(_.a3).resolveIcon({iconName:D.toString()}):C=!1;return C};
_.O4=function(D,C,X,c){X=X===void 0?{}:X;c=c===void 0?!1:c;X===null&&(X={});var W=_.rT("kevlar_command_handler_command_banlist");W=_.U(W);for(var p=W.next();!p.done;p=W.next())if(p=D?D.hasOwnProperty(p.value):void 0,p)return!1;W=_.r(D.commandMetadata,_.ge);return c&&W!=null&&W.url?!1:!C.disableCommandHandlerOverride&&_.I3.instance?(c=_.I3.instance,X.form||(X.form={element:C}),X.form.element||(X.form.element=C),!X.clickedVisualElement&&C.visualElement&&(X.clickedVisualElement=C.visualElement),c.resolveCommand(D,
X),!0):!1};
LiZ=function(D,C){D=Av(D);for(var X=_.U(D.visibilityMonitorKeys||[]),c=X.next();!c.done;c=X.next())C.unobserveByKey(c.value);D.visibilityMonitorKeys=void 0};
E$3=function(D,C){if(_.LN()){if(_.b("kevlar_vimio_use_shared_monitor"))sF3(D,C.data);else if(!sF3(D,C.data))return;var X=C.data,c=mrF(X);if(_.b("enable_client_ve_spec_logging"))LiZ(D,C.observer);else{var W=Av(D);W.trackedParams&&W.trackedParams!==c&&LiZ(D,C.observer)}W=Av(D);!X||W.data&&W.data===X||(W.data=X);eBh(D,C);W.trackedParams=c}};
eBh=function(D,C){var X=C.observer;if(!X&&_.b("web_skip_missing_vimio_observer")){var c,W;_.fQ(new _.Zf("VisibilityObserver is not defined.",D.tagName,D.trackedParams,(c=C.data)==null?void 0:c.trackingParams,(W=C.data)==null?void 0:W.loggingDirectives))}else{var p=C.layer,g=C.visibilityCallback||function(){},a=C.prescanCallback,O=Av(D);
c=[];C.showOption&&c.push(X.observe(D,function(){C.skipLogging&&C.skipLogging()||_.Pc().reportShown(O,void 0,p,7);g(!0)},C.showOption));
C.hideOption&&c.push(X.observe(D,function(){_.Pc().reportHidden(O,void 0,p,7);g(!1)},C.hideOption));
C.prescanOption&&a&&c.push(X.observe(D,function(){a()},C.prescanOption));
O.visibilityMonitorKeys=c}};
sF3=function(D,C){D=Av(D);if(D.visualElement&&!C)return!0;if(!C)return!1;var X=!1;if(_.b("enable_client_ve_spec_logging")){var c,W;X=!!((c=C.loggingDirectives)==null?0:(W=c.clientVeSpec)==null?0:W.uiType)}c=mrF(C);if(!c&&!X)return!1;_.b("mweb_component_visibility_logging")&&(D.veContainer||(D.veContainer={}),D.veContainer.trackingParams=c);if(D.trackedParams&&D.trackedParams===c)return!1;var p;if(_.b("enable_client_ve_spec_logging")&&((p=D.visualElement)==null?0:p.isClientVe())){var g;p=(g=D.visualElement)==
null?void 0:g.getAsJspb();var a,O,P,k;if(_.PI(p,2)===((a=C.loggingDirectives)==null?void 0:(O=a.clientVeSpec)==null?void 0:O.uiType)&&_.PI(p,3,-1)===((P=C.loggingDirectives)==null?void 0:(k=P.clientVeSpec)==null?void 0:k.elementIndex))return!1}if(_.b("enable_client_ve_spec_logging")){var u,Q;!D.visualElement&&((u=C.loggingDirectives)==null?0:(Q=u.clientVeSpec)==null?0:Q.uiType)&&(a=C.loggingDirectives.clientVeSpec,C=a.uiType,g=a.elementIndex,a=a.clientYoutubeData,D.visualElement=_.vc(_.iO(),{veType:C,
elementIndex:g,clientYouTubeData:a}))}return!0};
mrF=function(D){if(D==null?0:D.rendererContext){var C=_.r(D.rendererContext,_.k7);if(C==null?0:C.loggingDirectives)return C.loggingDirectives.trackingParams}return(D==null?0:D.loggingDirectives)?D.loggingDirectives.trackingParams:D==null?void 0:D.trackingParams};
Av=function(D){var C;return(C=D.polymerController)!=null?C:D};
ydJ=function(D){_.Pc();if(_.lq(uO().JSC$12890_elementShouldLogGesture).bind(uO())(D,4)){t1Z(D);var C=NnW(D);Yt5.set(D,C)}};
t1Z=function(D){Yt5.has(D)&&(Yt5.get(D).cancel("untrack hover element"),Yt5.delete(D))};
NnW=function(D){var C,X=[],c=!1,W=new _.mM(function(p,g){QK(D,"mouseenter",_.lq(function(){var a,O,P;return _.I(function(k){if(k.nextAddress==1)return C=(0,_.kh)(),a=n$3(D),X.push(a),O=wZm(D,function(){c=!0;g(Error("Wg"))}),k.yield(a,2);
if(k.nextAddress!=3)return O&&Bc(O),P=FiF(D),X.push(P),k.yield(P,3);p();_.t_(k)})}))});
W.then(function(){var p=(0,_.kh)()-C;p=Math.round(p);if(!(500>p||6E5<=p)){var g=D.getScreenLayer?D.getScreenLayer():void 0;g=_.LN(g)||"";var a=Zs5(_.Pc(),D);_.JZ(g,D.visualElement?D.visualElement:_.bO(a),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:p}})}ydJ(D)},function(){r2&&(r2(),r2=null);
c&&(t1Z(D),ydJ(D))});
return W};
n$3=function(D){var C;return(new _.mM(function(X,c){r2=function(){c(Error("Xg"))};
C=_.qX.debounce(_.lq(function(){Bc(W);X()}),1,100);
var W=_.Kb(D,"mousemove",C)})).thenCatch(function(){var X=_.qX.cancelDebouncedJobMap.get(C);
X&&_.qX.cancelJob(X)})};
FiF=function(D){var C;return(new _.mM(function(X,c){r2=function(){c(Error("Yg"))};
C=QK(D,"mouseleave",_.lq(function(){X()}))})).thenCatch(function(){Bc(C)})};
wZm=function(D,C){return QK(D,"mouseleave",_.lq(C))};
V1Z=function(D){G8d&&_.hv.cancel(G8d);G8d=_.hv.run(function(){_.lE(D,"yt-visibility-refresh");G8d=0})};
TnR=function(D){D=Number(D);return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
JdJ=function(D){if(!D)return!1;if(_.r(D,_.Hsd))return!0;var C;if(D=(C=_.r(D,_.pt))==null?void 0:C.commands)for(C=_.U(D),D=C.next();!D.done;D=C.next())if(_.r(D.value,_.Hsd))return!0;return!1};
zBh=function(D){var C=!0;C=C===void 0?!0:C;if(!D.useSignals&&!D.experimentalPropertiesChanged||_.b("experimental_templating_behavior_nopatch_killswitch")){var X=D._propertiesChanged;D._propertiesChanged=function(c,W,p){C?D.debounceRender():D.doRender();X&&X.call(D,c,W,p)}}};
jF3=function(D,C){if(D.useSignals||D.experimentalPropertiesChanged)if(_.b("experimental_templating_behavior_nopatch_killswitch"))D.experimentalPropertiesChanged=function(){};
else return;var X=new Set,c=[D].concat(_.VB(D.behaviors));c=_.U(c);for(var W=c.next();!W.done;W=c.next()){W=W.value;for(var p in W.properties)X.has(p)||(D._addPropertyEffect(p,"function",C),X.add(p))}};
M1J=function(){var D=Polymer.Element,C=D._prepareTemplate;D._prepareTemplate=function(){C.call(this);var X=this.prototype;if(X.experimentalTemplatingInUse&&X.experimentalTemplatingInUse()&&X.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.MN(Error("Zg"));else{X=this.template.content.childNodes;for(var c=X.length-1;c>=0;c--){var W=X[c];W.nodeName!=="STYLE"&&W.nodeName!=="LINK"&&W.nodeName!=="SCRIPT"&&W.nodeName!=="#comment"&&W.remove()}}}};
qtJ=function(D){var C=!0;C=C===void 0?!0:C;M1J();var X=D.ready;D.ready=function(){this._template=null;X.call(this)};
jF3(D,C?D.debounceRender:D.doRender)};
dr3=function(D,C,X){if(X===null||X===void 0)return X;var c=eLd(D.tagName.toLowerCase(),C,function(){throw Error("Tb");});
if(c===null)return X;c=fzm[c];var W;if((W=c.isUnwrappable)==null?0:W.call(c,X)){if(c.unwrap)return c.unwrap(X);throw Error("bh");}return c.filterString?c.filterString(D.tagName,C,String(X)):X};
RBJ=function(D,C,X){var c=C[C.length-1]!=="$",W=dr3(D,C,X);if(c)if(typeof W==="function"&&C.startsWith("reactiveon")&&C===C.toLowerCase()){var p=IA;Z2m(D,C.slice(8),function(g){qm(p,function(){W(g)})})}else D[C]=W;
else X=W==null?null:String(W),lh(D,C.slice(0,-1),X)};
Lb=function(D){lzJ.length===0&&requestAnimationFrame(function(){setTimeout(function(){var C=lzJ.slice();lzJ.length=0;C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;try{X()}catch(c){_.x7(c)}}})});
lzJ.push(D)};
D7R=function(D){if(D){var C=D.component;if(C){var X;C==null||(X=C.events)==null||X.publish("DISCONNECTED");var c;C==null||(c=C.onDisconnected)==null||c.call(C)}var W,p;(W=D.__spec)==null||(p=W.didUnmount)==null||p.call(W);for(C=0;C<D.childNodes.length;C++)D7R(D.childNodes[C])}};
C35=function(D,C,X){var c=C&&C.key,W=ae;W[0]=D;W[1]=c;W[2]=void 0;for(var p in C)C.hasOwnProperty(p)&&(D=C[p],c=Ie,c.push(p),c.push(D));C=ae;a:{if(p=ae[2])for(D=0;D<p.length;D+=2)if(p[D]==="nonce"){p=p[D+1];break a}p=""}p=l0d(C[0],C[1],p);D=c2(p);c=C[2];if(!D.staticsApplied&&(D.staticsApplied=!0,c&&c.length))if((W=D._attrsArr)&&W.length){for(W=0;W<c.length;W+=2)s4[c[W]]=W+1;W=D._attrsArr||(D._attrsArr=FRR(0));for(var g=0,a=0;a<W.length;a+=2){var O=W[a],P=W[a+1],k=s4[O];k?c[k]===P&&delete s4[O]:(W[g]=
O,W[g+1]=P,g+=2)}d8(W,g);for(var u in s4)JIJ(p,u,c[s4[u]],$b),delete s4[u]}else for(u=0;u<c.length;u+=2)JIJ(p,c[u],c[u+1],$b);pH5(p,D,$b);d8(C,0);X&&X(oe);DOR()};
_.mp=function(D,C,X){X===void 0?delete D[C.name]:D[C.name]=X};
_.e6=function(D){var C={androidIncludeFontPadding:!1},X=0,c=[],W=[],p=[];if(D.simpleText)return C.content=D.simpleText,C;if(D.runs===void 0)return C.content="",C;D=_.U(D.runs);for(var g=D.next();!g.done;g=D.next()){g=g.value;var a=g.text,O=void 0,P=(O=a)==null?void 0:O.length;if(a&&P){c.push(a);if(g.bold||g.italics||g.strikethrough||g.underline||g.textColor!=null&&g.textColor!==0||g.deemphasize){a=W;O=a.push;var k={startIndex:X,length:P};g.bold&&(k.weightLabel="FONT_WEIGHT_MEDIUM");g.italics&&(k.italic=
!0);g.strikethrough&&(k.strikethrough="LINE_STYLE_SINGLE");g.underline&&(k.underline="LINE_STYLE_SINGLE");g.textColor!=null&&g.textColor!==0?document.documentElement.hasAttribute("dark")?k.fontColor=g.darkModeTextColor||g.textColor:k.fontColor=g.textColor:g.deemphasize&&(document.documentElement.hasAttribute("dark")?k.fontColor=parseInt("ff"+XQt("#aaa").substring(1),16):k.fontColor=parseInt("ff"+XQt("#606060").substring(1),16));O.call(a,k)}g.navigationEndpoint&&(a=p,O=a.push,k={startIndex:X,length:P,
onTap:{innertubeCommand:g.navigationEndpoint}},g.loggingDirectives&&_.mp(k,c4Z,g.loggingDirectives),O.call(a,k));X+=P}}C.content=c.join("");C.styleRuns=W.length?W:void 0;C.commandRuns=p.length?p:void 0;return C};
WKm=function(D){if(D==null||!D.runs)return!0;D=_.U(D.runs);for(var C=D.next();!C.done;C=D.next())if(C=C.value,C.bracket||C.errorUnderline||C.deemphasize||_.r(C,E4)||_.r(C,okj))return!1;return!0};
pQF=function(D,C){return function(X){var c=C.unit;if(c!==X)throw Error("eh`"+D+"`"+c+"`"+X);return C}};
tv=function(D){if(!((D==null?0:D.value)&&(D==null?0:D.unit)))return"";switch(D.unit){case "DIMENSION_UNIT_FRACTION":var C="%";break;default:C="px"}D=D.value;C==="%"&&(D*=100);return""+D+C};
Sbn=function(D){try{return D()}catch(C){_.fQ(C)}};
_.Y7=function(D){var C=_.r(D,_.N_);if(C)return C;if((C=_.r(D,U7r))&&C.commands)return gk3(C.commands);if((C=_.r(D,a3m))&&C.commands)return gk3(C.commands);if((D=_.r(D,I35))&&D.identifier&&D.command&&(ODt||(ODt=[]),!ODt.includes(D.identifier)))return ODt.push(D.identifier),_.r(D.command,_.N_)};
gk3=function(D){if(D.length!==0){var C=[];D=_.U(D);for(var X=D.next();!X.done;X=D.next())(X=_.Y7(X.value))&&C.push(X);return{commandExecutorCommand:{commands:C}}}};
_.nb=function(D){var C=D.defaultTarget,X=D.elementConfig,c=D.elementsCommand,W=D.skipOnClick,p=D.forceNewState,g=D.additionalCommandArgs,a=D.innertubeCommand||_.Y7(c);if(a){D={};var O=A4t(a);c=O.navigatingCommand;O=O.href;c&&O?(D.href$=O,P3n(D,c,O,C),_.b("web_atagconfig_pointerdown")&&$7R(D,c),p&&(D["force-new-state$"]=!0)):(D.role$="button",D.href$="javascript:void(0);");_.r(a,vkm)&&(D["aria-haspopup$"]=!0);W||(D.onclick=function(P){var k={};if(iDr(P)){var u=(g==null?void 0:g.clickedVisualElement)||
(g==null?void 0:g.getClickedVisualElement)&&g.getClickedVisualElement();u&&(k={clickedVisualElement:u});k=Object.assign({},{form:{element:P.target,event:P,createScreenConfig:k}},g);P.preventDefault();_.yK(a,k)}});
return Object.assign({},X,D)}};
k$J=function(D){if(D.length){if(D.length===1)return D[0];var C={};_.mp(C,_.pt,{commands:D});return C}};
w2=function(D){return D&&D.href$!=="javascript:void(0);"};
A4t=function(D){var C,X=((C=_.r(D,_.pt))==null?void 0:C.commands)||[D];D=_.U(X);for(C=D.next();!C.done;C=D.next()){C=C.value;var c=void 0,W=void 0;X=(W=_.r((c=C)==null?void 0:c.commandMetadata,_.ge))==null?void 0:W.url;_.b("web_remove_web_navigation_endpoint_data")||(c=void 0,X=X||((c=_.r(C,uhd))==null?void 0:c.url));if(X&&X!=="/service_ajax"){if(c=_.V$(X,Qnd))return D=_.Z6(c),{navigatingCommand:C,href:D};_.fQ(new _.Zf("AttributedString URL could not be sanitized",X))}}return{}};
iDr=function(D){return D.button!==void 0?D.button===0&&!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey):!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey)};
P3n=function(D,C,X,c){X=!PK(X);var W,p,g;if((W=_.r(C,_.Pl))!=null&&W.nofollow||(p=_.r(C,_.TC))!=null&&p.nofollow||(g=_.r(C,_.oX))!=null&&g.nofollow||X)D.rel$="nofollow";var a;C=((a=_.r(C,_.oX))==null?void 0:a.target)==="TARGET_NEW_WINDOW"?"_blank":c===void 0?"":c;D.target$=C};
$7R=function(D,C){C.clickTrackingParams&&(D.params={itct:C.clickTrackingParams});D.onpointerdown=function(X){BCn(X)};
D._data=C};
bDm=function(D){(D.loggingUrls||[]).forEach(function(C){pQ(C.baseUrl,C.attributionSrcMode)})};
BCn=function(D){var C=D.currentTarget;D=Sbn(function(){return C.href});
var X=C.params;D&&_.jc(D,X||{},8,!0)};
_.FV=function(D,C){(D=_.Y7(D))&&_.yK(D,C)};
_.yK=function(D,C){oCj(function(X){C?X.resolveCommand(D,C):X.resolveCommand(D)})};
x7h=function(D,C){var X=["yt-core-attributed-string__link"];C!=null&&C.noLinkColor||((C==null?0:C.isOverlay)?X.push("yt-core-attributed-string__link--overlay-call-to-action-color"):X.push("yt-core-attributed-string__link--call-to-action-color"),(C==null?0:C.linkInheritColor)&&X.push("yt-core-attributed-string--link-inherit-color"));X={className:X.join(" "),tabindex$:"0"};var c=D.onTap||D.onLongPress;if(!c)return X;var W=r4j(D);W&&(X["aria-label$"]=W);C=_.nb({elementsCommand:c,elementConfig:X,skipOnClick:!(C==
null||!C.skipOnClick),forceNewState:!0});D.onLongPress&&(c=new KKh(function(){var p=_.Y7(D.onLongPress);p&&_.iX().resolve(_.uX).resolveCommand(p)}),C&&h$r(c,C));
return C||X};
r4j=function(D){var C,X;return(C=D.onTapOptions)==null?void 0:(X=C.accessibilityInfo)==null?void 0:X.accessibilityLabel};
LKZ=function(D){var C=D;D<=16777215&&(C+=parseInt("ff000000",16));return _.e_(C)};
snm=function(D){var C=D.isDarkTheme;var X=D.extension;D=D.runColor;var c=void 0;if(X=X==null?void 0:X.colorMap){C=C?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";X=_.U(X);for(var W=X.next();!W.done;W=X.next())if(W=W.value,C===W.key){c=W.value;break}}c==null&&D&&(c=D);if(c)return LKZ(c)};
ZR=function(D){var C=D.config;var X=D.image;var c=D.imageConfig;var W=D.imageWrapperConfig;var p=D.run;var g=D.tag;var a=D.textLength;var O=D.startIndex===void 0?0:D.startIndex;D=D.length;O===void 0&&(O=0);p={run:p,startIndex:O,endIndex:D!==void 0?O+D:a,tag:g};X&&(p.image=X);c&&(p.imageConfig=c);W&&(p.imageWrapperConfig=W);C&&(p.config=C);return p};
e$t=function(D,C){var X=[];X.push("yt-core-attributed-string");(C==null?0:C.className)&&X.push(C==null?void 0:C.className);(C==null?0:C.ellipsisTruncate)?X.push("yt-core-attributed-string--ellipsis-truncate"):(C==null?0:C.noWrap)?X.push("yt-core-attributed-string--white-space-no-wrap"):(C==null?0:C.noPreWrap)||X.push("yt-core-attributed-string--white-space-pre-wrap");(C==null?0:C.linkInheritColor)&&X.push("yt-core-attributed-string--link-inherit-color");D.alignment&&X.push(m7m(D.alignment));D.lineBreakMode&&
X.push("yt-core-attributed-string--word-wrapping");return X.join(" ")};
Ekh=function(D,C){if(D.weight)return D.weight;switch(D.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 C?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
tQW=function(D){switch(D){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"}};
m7m=function(D){switch(D){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"}};
T2=function(D,C,X){var c=C;D.content&&X&&(X=D.content.indexOf("\n"),X!==-1&&(c=Math.min(C,X)));if(!D.content||D.content.length<=c)C=D;else if(D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.paragraphStyleRuns){C=G2(D.content,c);X=c;var W=D.attachmentRuns;if(W){var p=[];W=_.U(W);for(var g=W.next();!g.done;g=W.next())g=Object.assign({},g.value),g.startIndex===void 0||g.startIndex>=X||(g.length||(g.length=0),g.length+g.startIndex>X&&(g.length=X-g.startIndex),p.push(g));X=p}else X=void 0;
p=NCh(c,D.commandRuns);W=c;var a=D.decorationRuns;if(a){g=[];a=_.U(a);for(var O=a.next();!O.done;O=a.next()){O=O.value;var P=_.r(O.textDecorator,VK);if(P&&P.startIndex!==void 0&&!(P.startIndex>=W)){O=Object.assign({},O,{textDecorator:{highlightTextDecorator:Object.assign({},P)}});P=_.r(O.textDecorator,VK);if(!P.length||P.length+P.startIndex>W)P.length=W-P.startIndex;g.push(O)}}W=g}else W=void 0;g=NCh(c,D.styleRuns);if(a=D.paragraphStyleRuns)for(D=[],a=_.U(a),O=a.next();!O.done;O=a.next()){var k=O.value;
O=Object.assign({},k);if(!(O.startIndex===void 0||O.startIndex>=c)){if(!O.length||O.length+O.startIndex>c)O.length=c-O.startIndex;P=[];var u=void 0,Q=void 0;if((u=k)==null?0:(Q=u.listGroup)==null?0:Q.listItems)for(k=_.U(k.listGroup.listItems),u=k.next();!u.done;u=k.next())if(u=Object.assign({},u.value),!(u.startIndex===void 0||u.startIndex>=c)){if(!u.length||u.length+u.startIndex>c)u.length=c-u.startIndex;P.push(u)}P.length>0&&(O.listGroup||(O.listGroup={}),O.listGroup=Object.assign({},O.listGroup,
{listItems:P}));D.push(O)}}else D=void 0;C={content:C,attachmentRuns:X,commandRuns:p,decorationRuns:W,styleRuns:g,paragraphStyleRuns:D}}else C=Object.assign({},D,{content:G2(D.content,c)});return C};
NCh=function(D,C){if(C){var X=[];C=_.U(C);for(var c=C.next();!c.done;c=C.next())if(c=Object.assign({},c.value),!(c.startIndex===void 0||c.startIndex>=D)){if(!c.length||c.length+c.startIndex>D)c.length=D-c.startIndex;X.push(c)}return X}};
G2=function(D,C){var X=C,c;if(c=X>0)c=D.charCodeAt(X-1),c=c>=55296&&c<=56319;c&&(X=D.charCodeAt(X),c=X>=56320&&X<=57343);c&&--C;return D.substring(0,C)};
wQ5=function(D,C,X){X=X===void 0?Ybj:X;if(D){var c=_.iX().resolve(iV);c||_.b("mweb_no_observer_killswitch")?E$3(D,{data:C,observer:c,visibilityCallback:X,hideOption:y4j,showOption:nk5,layer:D.layer}):_.fQ(new _.Zf("Warning: monitorVisibility called with null observer",D.tagName,C==null?void 0:C.loggingDirectives,C==null?void 0:C.trackingParams))}else _.fQ(new _.Zf("Warning: monitorVisibility called with null element",C==null?void 0:C.loggingDirectives,C==null?void 0:C.trackingParams,C==null?void 0:
C.rendererContext))};
J45=function(D,C){var X=[],c=D.content.length,W,p=(W=_.iX().resolve(_.vK(_.Hc)))==null?void 0:W();if(D.paragraphStyleRuns){W=_.U(D.paragraphStyleRuns);for(var g=W.next();!g.done;g=W.next()){var a=X.push,O=a.apply;var P=void 0;g=g.value;if((P=g.listGroup)!=null&&P.listItems){P=[];b:switch(g.listGroup.listType){case "LIST_TYPE_BULLET":var k="ul";break b;default:k="span"}P.push(ZR({run:g,textLength:c,tag:k,config:{className:"yt-core-attributed-string__list-group"},startIndex:g.startIndex,length:g.length}));
k=_.U(g.listGroup.listItems);for(var u=k.next();!u.done;u=k.next()){u=u.value;b:switch(g.listGroup.listType){case "LIST_TYPE_BULLET":var Q="li";break b;default:Q="span"}P.push(ZR({run:g,textLength:c,tag:Q,startIndex:u.startIndex,length:u.length}))}g=P}else g=[];O.call(a,X,_.VB(g))}}if(D.styleRuns&&(C==null||!C.noStyleRuns))for(W=_.U(D.styleRuns),a=W.next();!a.done;a=W.next()){g=a=a.value;P=p;O=C;P=snm({extension:_.r(g.styleRunExtensions,FKm),isDarkTheme:P===void 0?!1:P,runColor:g.fontColor});u=g;
k=[];P&&k.push("yt-core-attributed-string--link-inherit-color");u.italic&&k.push("yt-core-attributed-string--italicized");u.underline&&u.strikethrough?k.push("yt-core-attributed-string--underline-strikethrough",tQW(u.underline)):u.underline?k.push("yt-core-attributed-string--underlined",tQW(u.underline)):u.strikethrough&&k.push("yt-core-attributed-string--strikethrough",tQW(u.strikethrough));if(u.baselineOffset){a:switch(u.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":u="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":u="yt-core-attributed-string--baseline-offset-superscript";break a;default:u="yt-core-attributed-string--baseline-offset-unknown"}k.push(u)}k=k.join(" ");u={};if(g.weight||g.weightLabel)u.fontWeight=Ekh(g,O==null?void 0:O.isHeadline).toString();P&&(u.color=P);X.push(ZR({run:a,textLength:c,tag:"span",config:{className:k,style:u},startIndex:a.startIndex,length:a.length}))}if(D.decorationRuns)for(W=_.U(D.decorationRuns),a=W.next();!a.done;a=W.next())a=a.value,
O={},a.textDecorator&&(k=a.textDecorator,g=p===void 0?!1:p,u=[],P=_.r(k,VK),k=_.r(k,ZD3),P?(k=u,u=k.concat,Q=[],(g=snm({extension:_.r(P.highlightTextDecoratorExtensions,G$F),isDarkTheme:g,runColor:P.backgroundColor}))&&Q.push("background-color: "+g+";"),P.backgroundCornerRadius!==void 0&&Q.push("border-radius: "+P.backgroundCornerRadius+"px;"),P.leftPadding!==void 0&&Q.push("padding-left: "+P.leftPadding+"px;"),P.rightPadding!==void 0&&Q.push("padding-right: "+P.rightPadding+"px;"),P.topPadding!==
void 0&&Q.push("padding-top: "+P.topPadding+"px;"),P.bottomPadding!==void 0&&Q.push("padding-bottom: "+P.bottomPadding+"px;"),u=u.call(k,Q)):k&&(P=u,u=P.concat,g=g?"#2ba640":"#107516",g=k.color?LKZ(k.color):g,g=["padding: 2px;","border-top: solid "+g+" 2px;","border-bottom: solid "+g+" 2px;","background: linear-gradient(135deg, "+g+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+g+" 3px, rgba(0, 0, 0, 0) 3px);"],u=u.call(P,g)),g=u.join(" "),O.style$=g,g=a.textDecorator,P=[],k=_.r(g,
ZD3),_.r(g,VK)?P.push("yt-core-attributed-string--highlight-text-decorator"):k&&P.push("yt-core-attributed-string--bracket-text-decorator"),g=P.join(" "),O.className=g,O.dir="auto"),g=_.r(a.textDecorator,VK),P=_.r(a.textDecorator,ZD3),k=_.r(a.textDecorator,VK),u=_.r(a.textDecorator,ZD3),X.push(ZR({run:a,textLength:c,tag:"span",config:O,startIndex:(g==null?void 0:g.startIndex)||(P==null?void 0:P.startIndex)||0,length:(k==null?void 0:k.length)||(u==null?void 0:u.length)||0}));if(D.commandRuns&&(C==
null||!C.noEndpoints))for(p=_.U(D.commandRuns),W=p.next();!W.done;W=p.next())W=W.value,a=x7h(W,C),X.push(ZR({run:W,textLength:c,tag:"a",config:a,startIndex:W.startIndex,length:W.length}));if(D.attachmentRuns)for(D=_.U(D.attachmentRuns),p=D.next();!p.done;p=D.next()){p=p.value;O=a=void 0;W={className:"yt-core-attributed-string--inline-block-mod"};if((O=p.element)==null?0:O.properties){O=(a=p.element)==null?void 0:a.properties;a=[];O=_.r(O,VQo);if(O==null?0:O.margin)O=O.margin,O.left&&a.push("margin-left: "+
tv(O.left)+";"),O.right&&a.push("margin-right: "+tv(O.right)+";"),O.top&&a.push("margin-top: "+tv(O.top)+";"),O.bottom&&a.push("margin-bottom: "+tv(O.bottom)+";");a=a.length!==0?a.join(" "):void 0;W.style$=a}g=void 0;a={alt:"",preserveHeight:!0,preserveWidth:!0};O=["yt-core-attributed-string__image-element"];if(p.alignment){a:switch(p.alignment){case "ALIGNMENT_BASELINE":P="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":P="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:P="yt-core-attributed-string__image-element--image-alignment-bottom"}O.push(P)}if((g=p.element)==null?0:g.properties)g=[],P=_.r(p.element.properties,VQo),(P==null?0:P.height)&&g.push("height: "+tv(P.height)+";"),(P==null?0:P.width)&&g.push("width: "+tv(P.width)+";"),g=g.length!==0?g.join(" "):void 0,a.style$=g,P=void 0,g=((P=_.r(p.element.properties,TC5))==null?void 0:P.label)||"",a.alt=g;a.className=O.join(" ");O=void 0;k=P=void 0;g=((k=p.element)==null?0:k.type)?(P=_.r(p.element.type,
HDd))==null?void 0:P.image:void 0;X.push(ZR({run:p,textLength:c,tag:"img",image:g,imageConfig:a,imageWrapperConfig:W,startIndex:p.startIndex,length:(O=p.length)!=null?O:0}))}if(C==null?0:C.headerRuns)for(C=_.U(C.headerRuns),D=C.next();!D.done;D=C.next())if(D=D.value,D.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(D.headerMapping)){a:{switch(D.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":p=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":p="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":p="yt-core-attributed-string--heading-3";break a}p=void 0}X.push(ZR({run:D,textLength:c,tag:"span",config:p?{className:p}:void 0,startIndex:D.startIndex,length:D.length}))}return X};
_.Jv=function(D){return(D==null?void 0:D.content)!==void 0};
z$r=function(D){return _.Jv(D)?D:_.e6(D)};
jn5=function(D){return D.image!==void 0&&D.imageConfig!==void 0};
MQm=function(D,C){return!!C||!(D.commandRuns&&D.commandRuns.length!==0||D.paragraphStyleRuns&&D.paragraphStyleRuns.length!==0)};
qbm=function(D,C){if(C==null?0:C.userInput)for(D=_.U(D),C=D.next();!C.done;C=D.next())if(C=C.value,C.tag!=="a"&&C.tag!=="li"){var X=void 0;(X=C).config||(X.config={});C.config.dir=C.tag==="ul"?_.iX().resolve(_.z2):"auto"}};
f3m=function(D){return function(C){var X=D.run;(X.onTap!==void 0||X.onLongPress!==void 0)&&_.r(X,c4Z)&&wQ5(C,{loggingDirectives:_.r(X,c4Z)})}};
d7t=function(D){return function(C){for(var X in D)($b[X]||$b[Dh["default"]])(C,X,D[X])}};
Cgh=function(D,C){R$m(C);var X={data:null,start:0,end:D.length,parts:[]};C=_.U(C);for(var c=C.next();!c.done;c=C.next())c=c.value,l3j(X,c.startIndex,c.endIndex,c);D9m(D,X);return X};
l3j=function(D,C,X,c){for(var W=_.U(D.parts),p=W.next();!p.done;p=W.next()){p=p.value;if(typeof p==="string")throw Error("gh");if(p.start<=C&&X<=p.end){l3j(p,C,X,c);return}}D.parts.push({data:c,parts:[],start:C,end:X})};
D9m=function(D,C){for(var X=C.parts.length;X>=0;X--){var c=C.parts[X],W=C.parts[X-1],p=X===C.parts.length?C.end:c.start;W=X===0?C.start:W.end;p!==W&&C.parts.splice(X,0,D.slice(W,p));c&&D9m(D,c)}};
R$m=function(D){D.sort(function(C,X){if(C.startIndex<X.startIndex)return-1;if(X.startIndex<C.startIndex)return 1;C=C.endIndex-C.startIndex;X=X.endIndex-X.startIndex;return C>X?-1:X>C?1:0})};
_.XWF=function(D){var C=D.thumbnails;if(C){D={sources:[]};C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c={};c.url=X.url;c.width=X.width;c.height=X.height;D.sources.push(c)}return D}};
cE5=function(D,C,X,c){if(!C)return D.length>=1?D[D.length-1]:null;if(c)for(var W=_.U(D),p=W.next();!p.done;p=W.next()){p=p.value;var g=void 0,a=(g=p.url)==null?void 0:g.indexOf(c);if(a!==void 0&&a>=0)return p}c=_.U(D);for(W=c.next();!W.done;W=c.next())if(W=W.value,W.width&&W.height&&(X&&W.width>=C||!X&&W.height>=C))return W;for(C=D.length-1;C>=0;C--)if(X&&D[C].width||!X&&D[C].height)return D[C];return D[0]};
_.o4r=function(D){var C;return(D=(C=D.sources)==null?void 0:C[0])?D.width/D.height:0};
_.Wuo=function(D){if(D.sources){D=_.U(D.sources);for(var C=D.next();!C.done;C=D.next()){C=C.value;var X=void 0;if((X=C.clientResource)==null?0:X.imageName)return C}}};
S5j=function(D){var C={};D=_.r(D.processor,pW3);var X=(D=D==null?void 0:(X=D.imageTint)==null?void 0:X.color)?_.e_(D):void 0;X&&(C.color=X);return C};
U9r=function(D){var C;if((C=D.clientResource)!=null&&C.imageColor)return _.e_(D.clientResource.imageColor)};
_.a2j=function(D,C,X,c,W,p,g){if(!C||C.length===0||C[0].clientResource)return null;if(X&&C[0].url)return C[0].url;c===void 0&&(c=!0);if(c){var a;D=g4F*(W||(D==null?void 0:(a=D.getBoundingClientRect())==null?void 0:a.width)||0)}else{var O;D=g4F*(p||(D==null?void 0:(O=D.getBoundingClientRect())==null?void 0:O.height)||0)}C=cE5(C,D,c,g);return(C==null?0:C.url)?C.url:(C==null?0:C.imageData)?C.imageData:null};
I2o=function(D,C,X){X=X?[X]:[];D.opacity&&X.push("opacity: "+D.opacity+";");C&&D.placeholderColor?(D=_.e_(D.placeholderColor),X.push("background-color: "+D+";")):X.push("background-color: transparent;");return X.join(" ")};
OYF=function(D,C,X,c,W){var p=["ytCoreImageHost"];C&&p.push(C);X||p.push("ytCoreImageFillParentHeight");c||p.push("ytCoreImageFillParentWidth");switch(D.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":p.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":p.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":p.push("ytCoreImageContentModeCenter");break;default:p.push("ytCoreImageContentModeScaleToFill")}D.flipForRtlLayout&&p.push("ytCoreImageFlipRtl");
switch(W){case "TOP_START":var g;p.push(((g=document.body)==null?void 0:g.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return p.join(" ")};
Pgt=function(D){var C;if(D==null?0:(C=D.clientResource)==null?0:C.imageName){var X;D=(X=D.clientResource)==null?void 0:X.imageName;a:{switch(D){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||AER.get(D)||D}};
iYo=function(D){return _.b("mweb_wiz_skip_render")?$9F(D):v4t(D)};
$9F=function(D){return function(C){var X=l0d("wink-root");Sj=oe.lastChild;DOR();hdn(X,_.A(D,C))}};
v4t=function(D){var C=C===void 0?!1:C;return function(X){if(!C||!_.b("mweb_skip_keto_to_c3_if_no_data")||X.data!==void 0){var c=uq(!1);try{var W=X.children;_.b("mweb_render_outside_patch_killswitch")||oe?W?Pf(_.A(D,X,W)):Pf(_.A(D,X)):_.fQ(new _.Zf("ketoToC3 called outside of a patch",{tagName:D.TAG_NAME}))}finally{uq(c)}}}};
kM3=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
QMZ=function(D,C){D.onViewportEntered=C;uSh.observe(D)};
B_m=function(){var D={rootMargin:"10%",threshold:.01};_.b("mweb_enable_set_io_root_to_null_safari")?D.root=null:_.b("mweb_enable_set_io_root_to_body_safari")&&(D.root=document.body);return new IntersectionObserver(function(C,X){C.filter(function(c){return c.intersectionRect.height>0}).forEach(function(c){c=c.target;
if(!_.b("mweb_enable_only_update_image_when_connected")||c.isConnected!==!1){var W;(W=c.onViewportEntered)==null||W.call(c);X.unobserve(c)}})},D)};
bY5=function(D,C,X,c,W){function p(){if(c){var a=c.loadedClass,O=c.notifyOnUnloaded;a&&_.j6(D,a);O&&D.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function g(){var a=X(C,D);a&&D.getAttribute("src")!==a&&(_.b("mweb_enable_only_update_image_when_connected")&&D.isConnected===!1||a===D.src||(D.src=a),p())}
W=W===void 0?!0:W;D.removeAttribute("src");p();C&&(W?QMZ(D,g):g())};
rEr=function(D,C,X){if(!C)return!1;C=X(C,D);X=D.getAttribute("src");return C&&C===X&&D.complete};
KuF=function(D,C){for(var X in C)X==="className"?D.className=C[X]:($b[X]||$b[Dh.default])(D,X,C[X])};
hyW=function(D,C,X,c){iYo(_.M_)({contentMode:C.contentMode,loadedClass:C.loadedClass,isPreloaded:C.isPreloaded,notifyOnLoaded:C.notifyOnLoaded,notifyOnUnloaded:C.notifyOnUnloaded,preferredThumbnail:C.preferredThumbnail,preserveHeight:C.preserveHeight,preserveWidth:C.preserveWidth,objectPosition:C.objectPosition,targetWidth:C.targetWidth,targetHeight:C.targetHeight,shouldShowPlaceholder:C.shouldShowPlaceholder,useWidth:C.useWidth,isToggled:C.isToggled,alt:C.alt,className:C.className,onerror:C.onerror,
onload:C.onload,style$:C.style$,color:C.color,width:C.width,height:C.height,"aria-hidden$":C["aria-hidden$"],draggable:C.draggable,"data-disabled$":C["data-disabled$"],data:D,callback:X,renderLazy:c===void 0?!0:c,hideOn404:!1})};
Lun=function(D,C,X){X=X===void 0?!1:X;var c=D.sources!==void 0?D:_.XWF(D);if(c){var W=C.onload;C.onload=function(P){var k=P.target;X&&k.naturalWidth===120||_.q_(k,"ytCoreImageLoaded");C.notifyOnLoaded&&k.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));W==null||W(P)};
C.targetWidth&&C.preserveWidth&&(C.width=C.targetWidth);C.targetHeight&&C.preserveHeight&&(C.height=C.targetHeight);var p=_.Wuo(c),g=p&&Pgt(p),a=S5j(c);if(g)return(D=U9r(p)||a.color)&&(C.color=D),{type:"icon",iconName:g,config:Object.assign({},C,C.alt?{}:{"aria-hidden$":"true"},{"aria-label$":C.alt,role:"img"})};if(D.sources===void 0){C.alt=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label||C.alt;C.style$=I2o(D,C.shouldShowPlaceholder,C.style$);var O;C.isPreloaded=
!((O=_.r(D,x9F))==null||!O.isPreloaded)}C.contentMode&&!c.contentMode&&(c.contentMode=C.contentMode);C.className=OYF(c,C.className,C.preserveHeight,C.preserveWidth,C.objectPosition);C.loadedClass="ytCoreImageLoaded";return{type:"image",image:c,config:C}}};
_.fb=function(){var D=_.MJ.apply(0,arguments);return _.IX(sMj,function(C){var X=D.map(function(c){return c==null?void 0:c(C)});
return function(){return void X.forEach(function(c){return void(c==null?void 0:c())})}})};
_.d2=function(D){if(D.length===0)return UIo(D,"p");var C=_.U(UIo({source:function(){return D()},
computation:function(W,p){return(p==null?0:p.value)?D(p.value):W}},"q")),X=C.next().value,c=C.next().value;
C=C.next().value;return[X,c,C]};
m9t=function(D,C){var X=C==null?void 0:C.initial;return _.tw(function(){_.Mm(!0);return X=D(X)},{equals:C==null?void 0:C.isEqual},"rSlKsc")};
eyF=function(D,C){if(D===C)return!0;if(D===void 0||C===void 0)return!1;var X,c,W,p,g,a,O,P;return D.content===C.content&&((X=D.styleRuns)==null?void 0:X.length)===((c=C.styleRuns)==null?void 0:c.length)&&((W=D.commandRuns)==null?void 0:W.length)===((p=C.commandRuns)==null?void 0:p.length)&&((g=D.attachmentRuns)==null?void 0:g.length)===((a=C.attachmentRuns)==null?void 0:a.length)&&((O=D.decorationRuns)==null?void 0:O.length)===((P=C.decorationRuns)==null?void 0:P.length)};
N_d=function(D,C){if(D){var X=z$r(D);if(X!=null&&X.content)if(_.b("attr_string_reactive_c3"))C=C||{},C.contentAsserted=!0,iYo(E4J)({text:X,config:C});else{var c;D=MQm(X,(c=C)==null?void 0:c.ariaLabel);var W;c=D?(W=C)==null?void 0:W.ariaLabel:null;W=D?"text":null;var p;C35("span",{className:e$t(X,C),dir$:((p=C)==null?0:p.userInput)?"auto":void 0,"aria-label$":c,role$:W},function(){if(X.styleRuns||X.commandRuns||X.attachmentRuns||X.decorationRuns||X.paragraphStyleRuns){var g=J45(X,C);qbm(g,C);g=Cgh(X.content,
g);g=_.U(g.parts);for(var a=g.next();!a.done;a=g.next())tSj(a.value)}else Srr(X.content)})}}};
tSj=function(D){typeof D==="string"?Srr(D):jn5(D.data)?C35("span",D.data.imageWrapperConfig,function(){hyW(D.data.image,D.data.imageConfig)}):C35(D.data.tag,D.data.config,function(C){f3m(D.data)(C);
C=_.U(D.parts);for(var X=C.next();!X.done;X=C.next())tSj(X.value)})};
yEj=function(D){return D.parts.map(Y5o)};
Y5o=function(D){if(typeof D==="string")return D;D=jn5(D.data)?_.A("span",{el:_.fb(d7t(D.data.imageWrapperConfig))},_.A(_.M_,Object.assign({},{data:D.data.image},D.data.imageConfig))):_.A(D.data.tag,{el:_.fb(f3m(D.data),d7t(D.data.config))},D.parts.map(Y5o));return EO(D)};
n4h=function(D,C){return D===C?!0:D===void 0||C===void 0?!1:D.noStyleRuns===C.noStyleRuns&&D.noLinkColor===C.noLinkColor&&D.noEndpoints===C.noEndpoints&&D.headerRuns===C.headerRuns&&D.isOverlay===C.isOverlay&&D.linkInheritColor===C.linkInheritColor&&D.userInput===C.userInput&&D.isHeadline===C.isHeadline};
wWF=function(D){return function(){var C,X,c,W,p,g,a,O,P,k,u,Q,B,K;return{ariaLabel:(C=D.ariaLabel)==null?void 0:C.call(D),className:(X=D.className)==null?void 0:X.call(D),ellipsisTruncate:(c=D.ellipsisTruncate)==null?void 0:c.call(D),isOverlay:(W=D.isOverlay)==null?void 0:W.call(D),linkInheritColor:(p=D.linkInheritColor)==null?void 0:p.call(D),noEndpoints:(g=D.noEndpoints)==null?void 0:g.call(D),noStyleRuns:(a=D.noStyleRuns)==null?void 0:a.call(D),noLinkColor:(O=D.noLinkColor)==null?void 0:O.call(D),
noPreWrap:(P=D.noPreWrap)==null?void 0:P.call(D),noWrap:(k=D.noWrap)==null?void 0:k.call(D),skipOnClick:(u=D.skipOnClick)==null?void 0:u.call(D),userInput:(Q=D.userInput)==null?void 0:Q.call(D),headerRuns:(B=D.headerRuns)==null?void 0:B.call(D),isHeadline:(K=D.isHeadline)==null?void 0:K.call(D)}}};
ZYm=function(D,C){D=new Fu3(D,C);_.MN(D);throw D;};
GMh=function(D,C,X){var c=M9J(D);D._numRenders=0;try{var W=_.zdZ(function(){return _.A(C,Object.assign({},X))})}catch(g){var p=function(a){a.args||(a.args=[]);
a.args.push("Error in web component wrapper");a.args.push(D.tagName.toLowerCase());return a};
_.qN(g instanceof Error?p(g):new Fu3("Wiz rendering error",D.tagName.toLowerCase()));throw g;}finally{M9J(c)}return W};
_.CI=function(D,C,X){function c(k){var u={};k=_.U(k);for(var Q=k.next();!Q.done;Q=k.next()){Q=Q.value;var B=void 0,K=void 0,L=void 0,t=_.aB((L=(K=(B=Q).getAttribute)==null?void 0:K.call(B,"slot"))!=null?L:"children");if(B=u[t])B.push(Q);else if(t in p||t==="children")u[t]=[Q]}k=_.U(Object.keys(u));t=k.next();for(Q={};!t.done;Q={content$jscomp$59:void 0},t=k.next())t=t.value,t!=="children"&&(Q.content$jscomp$59=u[t],u[t]=function(Y){return function(){return Y.content$jscomp$59}}(Q));
return u}
X=X===void 0?{}:X;var W,p=(W=X.props)!=null?W:{};qVo.add(C);var g=VSd();W=function(){var k=g.apply(this,arguments)||this;k.rawProps={};k.queuingRender=!1;k.dispose=function(){};
k.isWebComponentWrapper=!0;k.isReparenting=!1;k.hasRendered=!1;return k};
_.h(W,g);W.prototype.render=function(){this.hasRendered=!0;for(var k=_.U([].concat(_.VB(this.attributes))),u=k.next();!u.done;u=k.next())u=u.value,u.name!=="slot"&&u.name!=="hidden"&&this.removeAttribute(u.name);k=Object.assign({},this.componentProps,this.slotProps);u=_.U(GMh(this,D,k));k=u.next().value;u=u.next().value;!(k[0]instanceof Element)||k.length>1?ZYm("Wrapped Wiz components must return a single root element.",C):(k=k[0].tagName.toLowerCase(),k!==C&&ZYm("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(k+" !== '"+C),C),this.dispose=u)};
W.prototype.setUpProps=function(){for(var k=this.rawProps,u=this.attributes,Q=_.U(Object.keys(p)),B=Q.next();!B.done;B=Q.next()){B=B.value;var K=void 0;((K=this)==null?0:K[B])&&this[B]!==T_m&&k[B]===void 0&&(k[B]=this[B],(K=Object.getOwnPropertyDescriptor(this.constructor.prototype,B))&&Object.defineProperty(this,B,K))}Q=_.U(u);for(B=Q.next();!B.done;B=Q.next()){K=B.value;B=_.aB(K.name);var L=B==="class"&&!u.getNamedItem("class-name");if(B in p||L)K=K.value===""||K.value==="true"?!0:K.value==="false"?
!1:isNaN(Number(K.value))?K.value:Number(K.value),B!=="class"||k.className?k[B]=K:k.className=K}u={};for(var t in p)p[t]!==_.R3&&p[t]!==HYt&&(k[t]instanceof Function&&ZYm("Function props must be configured as STATIC, not SIGNAL.",C),B=_.U(_.Li(k[t],void 0,"thC4wf")),Q=B.next().value,B=B.next().value,u[t]=B,k[t]=Q);k=_.U([k,u]);this.componentProps=k.next().value;this.setters=k.next().value;this.slotProps=c(this.childNodes)};
W.prototype.connectedCallback=function(){RMJ.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in p&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
W.prototype.disconnectedCallback=function(){if(!RMJ.has(this)){var k;a:{if(_.lO)for(k=this;k;){if(_.D5.has(k)){k=!0;break a}k=k.parentElement}k=!1}if(k)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){k=_.U([].concat(_.VB(this.attributes)));for(var u=k.next();!u.done;u=k.next()){u=u.value;var Q=void 0;u.name==="slot"||u.name==="hidden"&&((Q=X.unsafeExternallySettableAttributes)==null?0:Q.has("hidden"))||this.removeAttribute(u.name)}}this.innerText="";VlZ(this)}}};
W.prototype._setPendingPropertyOrPath=function(){};
W.prototype.notifyPath=function(){};
_.$a.Object.defineProperties(W.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var a=_.U(Object.keys(p)),O=a.next(),P={};!O.done;P={prop$jscomp$109:void 0},O=a.next())P.prop$jscomp$109=O.value,O=void 0,((O=X.legacyPolymer)==null?0:O.forwardHostProps)&&wbr.has(P.prop$jscomp$109)||Object.defineProperty(W.prototype,P.prop$jscomp$109,{set:function(k){return function(u){var Q=this;RMJ.has(this)||(this.setters?Nm(function(){var B,K;return void((K=(B=Q.setters)[k.prop$jscomp$109])==null?void 0:K.call(B,u))}):(this.rawProps[k.prop$jscomp$109]=u,this.queuingRender&&k.prop$jscomp$109===
"data"&&u!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(P),
get:JEJ.has(P.prop$jscomp$109)?void 0:function(){return T_m}});
customElements.define(C,W)};
_.zyn=function(D,C){return(D=_.XA(D,C))?_.Z6(_.Hv(D)):null};
_.c0=function(D){if(D=_.XA(D,Number.MAX_VALUE,void 0,"width"))return _.Hv(D)};
_.XA=function(D,C,X,c){c=c===void 0?"width":c;if(!D||!D.length)return null;if(_.b("kevlar_tuner_should_always_use_device_pixel_ratio")){var W=window.devicePixelRatio;_.b("kevlar_tuner_should_clamp_device_pixel_ratio")?W=Math.min(W,_.BK("kevlar_tuner_clamp_device_pixel_ratio")):_.b("kevlar_tuner_should_use_thumbnail_factor")&&(W=_.BK("kevlar_tuner_thumbnail_factor"));jMd=W}else jMd||(jMd=window.devicePixelRatio);W=jMd;_.b("kevlar_tuner_should_always_use_device_pixel_ratio")?C*=W:W>1&&(C*=W);if(_.b("kevlar_tuner_min_thumbnail_quality"))return D[0].url||
null;W=D.length;if(_.b("kevlar_tuner_max_thumbnail_quality"))return D[W-1].url||null;if(X)for(var p=0;p<W;p++)if(D[p].url.indexOf(X)>=0)return D[p].url||null;for(X=0;X<W;X++)if(D[X][c]>=C)return D[X].url||null;for(C=W-1;C>0;C--)if(D[C][c])return D[C].url||null;return D[0].url||null};
f2F=function(){o_.size?setTimeout(function(){W0(MS3)},0):q5n=0};
MS3=function(){var D=(0,_.kh)(),C=null,X=!1;o_.forEach(function(W){W.loaded=!0;W.loadTime=D;W.pendingPaint=!1;var p=d9h.get(W);p&&p.resolve(D);C=W;X||!W.ftlEligible&&W.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(X=!0)});
var c;((c=C)==null?0:c.markDirty)&&C.markDirty();o_.clear();q5n=0;X&&RyW(D)};
l2F=function(D){o_.add(D);D.pendingPaint=!0;q5n||(q5n=_.pI(_.qX,f2F))};
D5Z=function(D){D.loaded=!1;D.loadTime=Infinity;var C=d9h.get(D);C&&(C.reject(Error("mh")),d9h.delete(D));D.pendingPaint&&(o_.delete(D),D.pendingPaint=!1)};
_.CZd=function(D){var C=D.indexOf(":");return C===-1?{originalName:D}:{originalName:D.substring(0,C),datasyncId:D.substring(C+1)}};
_.cjt=function(){return _.I(function(D){if(XSd!==void 0)return D.return(XSd);XSd=new Promise(function(C){var X;return _.I(function(c){switch(c.nextAddress){case 1:return _.KK(c,2),c.yield(_.S5.open("test-only"),4);case 4:return c.yield(_.S5.delete("test-only"),5);case 5:_.SR(c,3);break;case 2:if(X=_.Eu(c),X instanceof Error&&X.name==="SecurityError")return C(!1),c.return();case 3:C("caches"in window),_.t_(c)}})});
return D.return(XSd)})};
pSr=function(){return _.I(function(D){if(D.nextAddress==1)return D.yield(_.cjt(),2);if(!D.yieldResult)return D.return(void 0);o8t||(o8t=new WBF);return D.return(o8t)})};
SDr=function(D){var C,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return p.yield(pSr(),2);case 2:C=p.yieldResult;if(!C)throw Error("oh");return p.yield(C.open("yt-player-local-img"),3);case 3:return X=p.yieldResult,p.yield(X.match(D),4);case 4:c=p.yieldResult;if(!c)throw Error("ph");return p.yield(c.blob(),5);case 5:return W=p.yieldResult,p.return(W)}})};
U5o=function(D,C){for(var X in D)if(D.hasOwnProperty(X)&&C[X])return X;return null};
g8Z=function(D){return"stamp"+D.replace("-","_")+"_"};
axF=function(D){var C=D.match(/\[\[([\w\.]+)\]\]/);if(C&&C.length>1)return C[1];_.MN(Error("rh`"+D));return null};
Ixj=function(D){return D===void 0?_.dq("REUSE_COMPONENTS",!1):D||!1};
PZd=function(D,C,X){X&&(C.is?(OcJ.has(C)&&(D=OcJ.get(C),X=D.listener,delete C[D.property],X.type==="element"&&C.removeEventListener(X.eventName,X.handler),OcJ.delete(C)),Aj3(C)):C.__proto__==HTMLElement.prototype&&(C=new _.Zf("Rendererstamper removed a non custom element","Stamper: "+D+" element: "+(C&&C.nodeName)),_.fQ(C)))};
$55=function(D,C,X,c){var W=C.node?C.node:C;_.SY(X).parentNode===W&&(C.removeChild(X),PZd(D,X,c));if(D=UI.get(X))UI.delete(X),_.qX.cancelJob(D);X.hidden=!1};
v8o=function(D,C,X,c){if(C&&C.children&&(X=C.children[X]))if(_.dq("DEFERRED_DETACH"))for(;X&&!UI.has(X);){var W=D,p=C,g=X,a=c;g.hidden=!0;W=_.Zo(_.qX,$55.bind(null,W,p,g,a),0);UI.set(g,W);X=X.nextElementSibling}else for(;(g=C.lastElementChild)&&(C.removeChild(g),PZd(D,g,c),g!=X););};
_.g$=function(){for(var D=_.MJ.apply(0,arguments),C=!0,X=_.U(D),c=X.next();!c.done;c=X.next())if(typeof c.value!=="string"){C=!1;break}return C?D.join(" ").trim()||void 0:function(){for(var W="",p=_.U(D),g=p.next();!g.done;g=p.next())if(g=g.value,typeof g==="function"&&(g=g()),g)if(typeof g==="string")W+=" "+g;else for(var a in g)if(g.hasOwnProperty(a)){var O=g[a];typeof O==="function"&&(O=O());O&&(W+=" "+a)}W=W.trim()||void 0;return _.Mm(W)}};
_.ic5=function(D,C){return _.aI(D.entities,"markersEngagementPanelSyncEntity",C)};
_.a_=function(D,C){return _.aI(D.entities,"playerStateEntity",C)};
kq3=function(D,C){return _.aI(D.entities,"fantasyWinProbabilityEntity",C)};
uqh=function(D,C){return _.aI(D.entities,"fantasyTeamEntity",C)};
Qx3=function(D,C){return _.aI(D.entities,"fantasyPlayerEntity",C)};
Bsh=function(D,C){return _.aI(D.entities,"booleanEntity",C)};
bcr=function(D,C){return _.aI(D.entities,"qrCodeEntity",C)};
rjF=function(D){return _.aI(D.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
hEr=function(D){var C;return(C=KB3[D])!=null?C:"EVENT_SPAN_TYPE_UNKNOWN"};
x55=function(D){var C=D.nodeName;if(D.id)return C+="#"+D.id;if(D.classList)for(var X=_.U(D.classList),c=X.next();!c.done;c=X.next())C+="."+c.value;D.parentElement&&(C=x55(D.parentElement)+" > "+C);return C};
LBZ=function(D){return function(C){var X=hEr(C.type);return X==="EVENT_SPAN_TYPE_UNKNOWN"?D(C):ft("event",{type:X,nodepath:C.target instanceof Element?x55(C.target):void 0},function(){return D(C)})}};
_.I_=function(D){D&&qC("event")&&(D=LBZ(D));return Qat(function(C){var X,c=(X=D)==null?void 0:X(C);return typeof c==="boolean"?c:!0})};
OI=function(D){return function(){return D()?D():void 0}};
E8J=function(D){var C=_.aX("animated-rolling-character"),X=w75(),c=J8(D.character)||J8(D.previousCharacter),W=_.U(wX3()),p=W.next().value,g=W.next().value;_.JU(function(){if(window.ResizeObserver&&_.b("web_fix_rolling_numbers_zoom_safari")){var a=new _.Al(function(){var P,k,u=Math.round(((k=(P=C.value.querySelector("div"))==null?void 0:P.getBoundingClientRect().height)!=null?k:0)*100)/100;u&&g(u)},500),O=new ResizeObserver(function(){a.fire()});
O.observe(C.value);return function(){O.disconnect();a.dispose()}}});
sBt(function(){var a=_.b("web_fix_rolling_numbers_zoom_safari")?p:D.marginMultiplier;if(a){var O;(O=X.value)==null||O.cancel();c?(O=D.previousCharacter?Number(D.previousCharacter)+10:D.rollUp?0:30,D.shouldAnimate||(O-=sx5(D,O))):(O=D.rollUp?0:2,D.shouldAnimate||(O-=D.rollUp?-1:1));C.value.style.marginTop="-"+O*a+"px";D.shouldAnimate?X.value=m5F(C.value,D,O,c,a):C.value.style.display=D.character?"":"none"}});
return _.A("animated-rolling-character",{el:C,class:"animatedRollingCharacterHost"},$Xn(c,function(){for(var a=[],O=1;O<30;O++)a.push(_.A("div",null,O%10));return _.A(_.kQ,null,_.A("div",null,"\u00a0"),a,_.A("div",null,"\u00a0"))},function(){return eER(D.character)}))};
eER=function(D){return _.A(_.kQ,null,_.A("div",null,"\u00a0"),_.A(_.kQ,null,$Xn(!D||_.Um(D),function(){return _.A("div",null,"\u00a0")},function(){return _.A("div",null,D)})),_.A("div",null,"\u00a0"))};
m5F=function(D,C,X,c,W){X=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(c?sx5(C,X):C.rollUp?-1:1)*W+"px)"}],tIh),document.timeline);C.character?(D.style.display="",X.onfinish=null):X.onfinish=function(){D.style.display="none"};
X.play();return X};
sx5=function(D,C){var X=Number(D.character)+10;if(D.previousCharacter)if(D.character){var c=Number(D.character),W=Number(D.previousCharacter);D=D.rollUp?W<c?X:X+10:W<c?X-10:X}else D=D.rollUp?30:0;else D=D.character==="0"?X:D.rollUp?X-10:X+10;return C-D};
NsJ=function(D){return function(C){var X={},c;for(c in C){var W=void 0,p=void 0;((W=void 0)==null?0:(p=W.callbacks)==null?0:p[c])||(X[c]=C[c])}return _.A(JGt,null,function(){for(var g in X)C[g]=_.Mm(X[g]);C.disableReactiveLogging=!0;return _.A(D,Object.assign({},C))})}};
n8j=function(D,C,X,c,W,p,g){X=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(p?YDo(C,X,c,W):c?-1:1)*g+"px)"}],yjF),document.timeline);C?(D.style.display="",X.onfinish=null):X.onfinish=function(){D.style.display="none"};
X.play();return X};
YDo=function(D,C,X,c){var W=Number(D)+10;C?D?(D=Number(D),C=Number(C),X=X?C<D?W:W+10:C<D?W-10:W):X=X?30:0:X=D==="0"?W:X?W-10:W+10;return c-X};
FBZ=function(D){var C=w75(),X=w75();tcW(function(){C.value=D.numberText;X.value=D.numberValue},[D.numberText]);
var c=D.fontSizeMultiplier?D.heightPx*D.fontSizeMultiplier:D.heightPx,W=nrm(function(){if(D.numberText){var g=D.numberText;var a=D.forceRollUp||!X.value||!D.numberValue||X.value<D.numberValue;var O=!!D.shouldAnimate,P=C.value,k=[],u=0,Q=0,B=(P?P.replace(/\D/g,"").length:0)-(g?g.replace(/\D/g,"").length:0);P=P?P.split(/(\d)/).filter(Boolean):[];for(g=g.split(/(\d)/).filter(Boolean);B<0;){var K=g[Q];k.push({character:K,rollUp:a,marginMultiplier:c,shouldAnimate:O});Q++;J8(K)&&B++}for(;u<B;)K=P[u],k.push({previousCharacter:K,
rollUp:a,marginMultiplier:c,shouldAnimate:O}),u++,J8(K)||B++;for(;Q<g.length;)B=g[Q],K=P[u],J8(B)===J8(K)?(Q++,u++):J8(B)?(u++,B=void 0):J8(K)&&(Q++,K=void 0),k.push({character:B,previousCharacter:K,rollUp:a,marginMultiplier:c,shouldAnimate:O});a=k}else a=[];return a},[D.numberText]),p=D.numberText?["height: "+c+"px;",
"line-height: "+D.heightPx+"px;"].join(" "):"";return _.A("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:p,dir:"ltr","aria-hidden":"true"},W.map(function(g){return _.A(wSZ,Object.assign({},g))}))};
Zc5=function(D){switch(D){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.Gq3=function(D,C){if(!D&&!C)return"medium";D=Math.max(D||0,C||0);return D>=256?"large":D>=96?"medium":"small"};
VIF=function(D){switch(D){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
Tsh=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Hch=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.P0=function(D){return function(){var C="",X;for(X in D){for(var c=D[X];typeof c==="function";)c=c();c!==void 0&&c!==null&&(C+="; "+X+": "+c)}return C.length>0?_.Mm(C.slice(2)):_.Mm()}};
Jjj=function(D){switch(D){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"}};
zEJ=function(D,C){if(C)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(D)switch(D){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
d5m=function(D,C,X,c,W,p,g){var a=jxr(D),O=a.disabled,P=a.iconPosition,k=a.style,u=a.focused,Q=function(){return!!L()&&P()==="icon-only"},B=function(){return!!L()&&P()==="icon-only-40"},K=function(){return!!L()&&P()==="icon-with-label"},L=function(){return!!C||!(c==null||!c())};
return{type:function(){return k()==="call-to-action-inverse"?"text":k()==="overlay-dark"&&D().type!=="filled"&&D().type!=="tonal"?"tonal":D().type},
shouldFocus:function(){return(u()||(p==null?void 0:p()))&&!O()},
hasIconLeading:function(){return!!L()&&P()==="leading"},
hasIconTrailing:function(){return!!L()&&P()==="trailing"},
hasIconLeadingTrailing:function(){return!!L()&&!!(X||W!=null&&W())&&P()==="leading-trailing"},
hasIconOnly:Q,hasIconOnly40:B,hasIconWithLabel:K,iconButton:function(){return Q()||B()||K()},
visiblyDisabled:function(){return(O()?"disabled":D().state)==="disabled"||O()},
overrideSmallSizeIcon:function(){return!D().ignoreIconSizeOverride&&MIt(D(),L())},
iconToRender:C?C:function(){return _.A(_.$_,{icon:c,gradientColor:function(){var t;return(t=D().customColors)==null?void 0:t.iconGradientColor},
size:function(){return qDr(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return fxd(D())},
animateIcon:g})},
secondaryIconToRender:X?X:function(){return _.A(_.$_,{icon:W,size:function(){return qDr(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return fxd(D())}})}}};
jxr=function(D){return{size:function(){return D().size},
style:function(){return D().style},
focused:function(){return D().focused},
disabled:function(){return D().disabled},
onTap:function(C){var X,c;return(c=(X=D()).onTap)==null?void 0:c.call(X,C)},
alignByText:function(){return D().alignByText},
aTagConfig:function(){return D().aTagConfig},
customColors:function(){return D().customColors},
segmentedPosition:function(){return D().segmentedPosition},
toggled:function(){return D().toggled},
toggleable:function(){return D().toggleable},
accessibilityLabel:function(){return D().accessibilityLabel},
onToggle:function(C){var X,c;return(c=(X=D()).onToggle)==null?void 0:c.call(X,C)},
iconPosition:function(){return D().iconPosition},
oneOffCustomTextWrap:function(){return D().oneOffCustomTextWrap},
disableTextEllipsis:function(){return D().disableTextEllipsis},
disableBackdropFilter:function(){return D().disableBackdropFilter},
tooltipText:function(){return D().tooltipText},
tooltipShape:function(){return D().tooltipShape},
ariaHidden:function(){return D().ariaHidden},
tabIndex:function(){return D().tabIndex},
buttonText:function(){return D().buttonText},
formattedButtonText:function(){return D().formattedButtonText},
animatedTextProps:function(){return D().animatedTextProps},
onClickRateLimitMs:function(){return D().onClickRateLimitMs}}};
MIt=function(D,C){C=(D.iconPosition==="icon-only"||D.iconPosition==="icon-only-40"||D.iconPosition==="icon-with-label")&&C;return!D.segmentedPosition&&C&&D.size==="S"};
qDr=function(D,C,X){switch(D.size){case "XS":return 16;case "S":return!X&&MIt(D,C)?24:16;default:return 24}};
REW=function(D){switch(D){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"}};
lxF=function(D){switch(D){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"}};
DbF=function(D){switch(D){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"}};
fxd=function(D){if(D.style==="overlay-dark"&&D.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
v0=function(D){return D&&D.endsWith("px")?Number(D.slice(0,-2)):0};
crd=function(D,C){var X=_.U(_.d2(function(){var W,p;return(p=D())!=null?p:C==null?void 0:(W=C())==null?void 0:W.text})),c=X.next().value;
return[function(W){var p=_.tw(function(){var O;return Object.assign({},{location:"bottom",offset:16,delay:1},C==null?void 0:C(),{text:(O=c())!=null?O:""})},void 0,"IJU38d");
_.Jw(function(){var O=p();_.hw(function(){_.qX.addJob(function(){iu.notify(W,O)},4)})},"WlsgZc");
var g=function(){CD5(W,p())},a=function(){XuF()};
W.addEventListener("mouseenter",g);W.addEventListener("focus",g);W.addEventListener("mouseleave",a);W.addEventListener("blur",a);W.addEventListener("tap",a);_.z3(function(){W.removeEventListener("mouseenter",g);W.removeEventListener("mouseleave",a);W.removeEventListener("focus",g);W.removeEventListener("blur",a);W.removeEventListener("tap",a);XuF()})},
X.next().value]};
Wqt=function(D,C){if(!IA){var X;LRj(function(){return X=TUZ(D,C)});
return X}D.parent=o0W();return TUZ(D,C)};
o0W=function(){var D=_.Aw(IA||void 0,ZTZ);return _.usr(D)?void 0:D};
k_=function(D,C){_.yK(D,Object.assign({},C,{forceClickLogging:!0}))};
puF=function(D){switch(D){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
Ubr=function(D,C){var X=_.Y7(D==null?void 0:D.onTap),c={};X&&(c.getClickedVisualElement=function(){var W;return SP3(D,X,C==null?void 0:(W=C.value)==null?void 0:W.visualElement)});
c=_.nb({elementsCommand:D.onTap,forceNewState:!0,additionalCommandArgs:c});return w2(c)?c:void 0};
g0d=function(D,C,X,c){k_(D,Object.assign({},{form:{element:C,event:X}},c))};
am5=function(D,C,X,c,W){var p=void 0;return function(g){var a=_.Y7(X?D==null?void 0:D.onDisabledTap:D==null?void 0:D.onTap);if(a){var O;p=(O=p)!=null?O:C==null?void 0:C.value;if(a)if(_.b("web_button_vm_click_client_ve_killswitch"))g0d(a,p,g);else{var P;O=SP3(D,a,(P=p)==null?void 0:P.visualElement);if(W){g0d(a,W,g,{clickedVisualElement:O,form:{element:W}});return}g0d(a,p,g,{clickedVisualElement:O})}}c&&c(g)}};
SP3=function(D,C,X){C=C==null?void 0:C.clickTrackingParams;var c,W;D=D==null?void 0:(c=D.loggingDirectives)==null?void 0:(W=c.clientVeSpec)==null?void 0:W.uiType;if(X&&D&&!C)return X};
ImR=function(D){switch(D){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"}};
OPj=function(D){switch(D){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"}};
ArJ=function(D){switch(D){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"}};
PDR=function(D){switch(D){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"}};
_.uu=function(D){return _.tw(function(){dBd()();return D2o(D)},{debugName:"d8B62c"},"DEXkhd")};
$bo=function(D,C){return _.aI(D.entities,"engagementToolbarStateEntityPayload",C)};
iPr=function(D){(D=_.bO(D))&&_.v0n(D)};
_.v0n=function(D){var C=_.LN();C&&_.Go(C,D)};
ket=function(D,C,X){_.DS(D,"yt-open-popup-action",[C,X||D])};
u4J=function(D,C){var X=_.z4(D,"endpoint"),c=_.z4(D,"action");return(X=c?c:X)&&C&&(X=C.navigationEndpointPopupMap[X])&&(D=_.Df(X,D),(X=_.z4(D,"renderer"))&&C.supportedPopups.hasOwnProperty(X))?{openPopupAction:{popupType:C.popupTypeMap[X],popup:D}}:null};
QW3=function(D,C,X,c){if(c){var W;X=X==null?void 0:(W=X.data)==null?void 0:W.contents;(W=X instanceof Array&&X.length?X[0]:X)&&(X=_.z4(W,"renderer"))&&c.supportedPopups.hasOwnProperty(X)&&(C.stopPropagation(),ket(D,{openPopupAction:{popupType:c.popupTypeMap[X],popup:W}}))}};
rro=function(D,C,X,c){c=c===void 0?!1:c;var W=BZd(C);if(W){W.href&&Yo(W.href);var p=C.button;p=p!==void 0?p===0&&!Q6(C):!Q6(C);W.data&&p&&bPr(D,W,C,X,c)}};
bPr=function(D,C,X,c,W){W=W===void 0?!1:W;var p=_.BK("pbj_navigate_limit",-1)===0;Kq5(C);_.iX().resolve(_.vK(cf));var g=C.data;if(Object.keys(g).length!==0)if(!_.b("unplugged_web_disable_actions_for_cec_endpoint")&&_.r(g,_.pt))_.b("endpoint_behavior_command_executor_fix_killswitch")||(X.preventDefault(),X.stopPropagation()),_.o7(D,[g],D);else if(c=u4J(g,c))g.loggingUrls&&g.loggingUrls.forEach(function(O){O.baseUrl&&_.WL(O.baseUrl)}),X.preventDefault(),X.stopPropagation(),ket(D,c,C);
else{var a=hgr(0,C.data,X);if(D=C.getForm)D=D(),a.tempData=a.tempData||{},a.tempData=Object.assign({},a.tempData,D);D=_.Mz(X);if(c=D.find(function(O){return!!O.visualElement}))a.createScreenConfig=a.createScreenConfig||{},a.createScreenConfig.clickedVisualElement=c.visualElement;
if(!p)if(X.preventDefault(),X.stopPropagation(),_.r(g,_.xbF)&&!W&&_.I3.instance)_.I3.instance.resolveCommand(g,a);else if(_.b("kevlar_command_handler_formatted_string")&&!W&&_.I3.instance&&Lqm(g))W=D.find(function(O){return!!O.is})||X.target,X={form:Object.assign({},a,{event:X,
element:W,originatingNode:C})},_.I3.instance.resolveCommand(g,X);else{g=_.Mz(X);X=[];for(W=0;W<g.length;W++)(p=g[W].is)&&X.push(p);cG3({parents:X.join(","),text:C.innerText},function(){_.lE(C,"yt-navigate",a)})}}};
sWJ=function(D){if(D=BZd(D))Kq5(D),D05(D.href)};
BZd=function(D){D=_.Mz(D);for(var C,X=0;X<D.length;X++)if(C=D[X],C.tagName==="A"&&C.classList.contains("yt-simple-endpoint")){if(!C.data)break;return C}return null};
Q6=function(D){return D.shiftKey||D.altKey||D.metaKey||D.ctrlKey};
mb3=function(D,C){var X={itct:C.clickTrackingParams};_.b("kevlar_client_side_screens")&&(!_.r(C,_.ko)||_.b("kevlar_exclude_endpoint_killswitch"))&&(X.endpoint=JSON.stringify(C));_.b("enable_unknown_lact_fix_on_html5")&&_.iX().resolve(_.vK(_.B0))&&(X.lact=_.kl());dVr(X);_.jc(D,X)};
Kq5=function(D){D.href&&Object.keys(D.data).length!==0&&mb3(D.href,D.data)};
Lqm=function(D){for(var C=_.U(egn),X=C.next();!X.done;X=C.next())if(D[X.value])return!1;return!0};
E0d=function(){if(bu)return bu;if(window.lottie)return bu=Promise.resolve(window.lottie);var D=_.fq(_.q6("LOTTIE_URL"));return D?bu=new Promise(function(C,X){var c=document.createElement("script");c.addEventListener("load",function(){C(lottie)});
c.addEventListener("error",function(W){var p="Lottie library failed to load.";W?W.message&&(p+=" Original description: "+W.message,_.dO(W,p)):W=Error(p);_.fQ(W);X(W)});
c.setAttribute("async","");_.gH(c,D);document.head.appendChild(c)}):Promise.reject(Error("sh"))};
tam=function(){return bu?bu:E0d()};
NZW=function(D){if(D)switch(D){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.b("kevlar_use_wil_icons"))return D=(D=rjF(_.fe().getState()))&&D.animationLightUrl&&D.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:D.animationLightUrl,pathDarkTheme:D.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,D?D:r$.get("LIKE");break;case "LIKE_DELHI_PLAYER":return r$.get("LIKE_DELHI_PLAYER")}};
YP3=function(D){var C=NZW(D);if(C)return C;switch(D){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return r$.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return r$.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return r$.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return r$.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return r$.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return r$.get("NOTIFICATION_BELL")}};
yrd=function(D,C){if(!D.closest)return!1;C=!!NZW(C);return _.q6("ID_TOKEN")&&C?!!D.closest("segmented-like-dislike-button-view-model")||!!D.closest("yt-player-quick-action-buttons"):!1};
wut=function(D,C){if(!D||n0t)C=!1;else{var X;if(!(X=yrd(D,C)))if(D.closest)if(X=!_.q6("ID_TOKEN"),D=D.closest("ytd-subscription-notification-toggle-button-renderer-next"),X||!D)X=!1;else{var c;X=((c=D.data)==null?void 0:c.targetId)==="notification-bell"&&C!=="EXPAND_MORE"}else X=!1;C=X}return C};
Fq3=function(D){var C,X;return _.I(function(c){switch(c.nextAddress){case 1:return _.KK(c,2),c.yield(fetch(D),4);case 4:return C=c.yieldResult,c.yield(C.json(),5);case 5:return c.return(c.yieldResult);case 2:X=_.Eu(c),_.fQ(X),_.t_(c)}})};
ZPF=function(D,C){var X,c,W;return _.I(function(p){if(p.nextAddress==1)return(X=C?D.pathDarkTheme:D.path)?p.yield(Promise.all([Fq3(X),E0d()]),2):p.return();c=p.yieldResult;W=c[0];KI.set(X,W);_.t_(p)})};
Vat=function(D,C,X,c){function W(g,a){if(C.value===a&&!C.cancelled){for(;D.firstChild;)D.removeChild(D.firstChild);D.classList.add("ytSpecIconShapeHost");g(D,c)}}
var p=_.Gej(_.iX().resolve(_.a3),X);typeof p==="function"?(C.value=null,W(p,null)):(C.value=p,p.then(function(g){W(g,p)}))};
TZF=function(D,C){var X=document.createElement("div"),c=_.T4(X,function(){return _.A(_.v,{cond:D,then:function(W){return _.A(_.hl,{data:W,options:C})}})},"ca");
return[X,c]};
_.x_=function(D,C){if(C){var X={};HPJ.forEach(function(c){c=Jrm(C,c,"--yt-lightsource-");Object.assign(X,c)});
zgj.forEach(function(c){c=Jrm(C,c,"--yt-basic-");Object.assign(X,c)});
_.Os(D,X)}};
Jrm=function(D,C,X){var c={};c[X+_.gl(C)]=D&&D[C]?_.e_(D[C]):"";return c};
_.sI=function(D,C,X){LI[D]||(LI[D]={});LI[D][C]=X};
_.ml=function(D){LI[D]||(LI[D]={});return LI[D]};
jWr=function(D){if(!D)return{};var C=D.foregroundTitleColor,X=D.backgroundColor;D=D.borderColor;var c="text";D?c="outline":X&&(c="filled");return{type:c,customColors:{color:C?_.e_(C):void 0,backgroundColor:X?_.e_(X):void 0,borderColor:D?_.e_(D):void 0}}};
RgZ=function(D){var C=D.renderer;var X=D.element;var c=D.commandController;var W=D.onTapCallback;var p=D.skipCommandHandling;var g=D.overrides;var a=D.forceIcon;var O=D.forceModernIconButton;var P=D.forceDisabled;var k=D.isSubscribe===void 0?!1:D.isSubscribe;var u=D.isPressed===void 0?!1:D.isPressed;var Q=D.useButtonSize===void 0?!1:D.useButtonSize;D=Mam(C);k&&(D.style="mono",D.type="filled");a=!C.icon||!a&&C.text?C.icon?C.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:O?"icon-only":"icon-only-40";a==="icon-only-40"&&(D.type="text");var B;O=Object;k=O.assign;Q=qPR(C,Q);u=!!C.isSelected||!_.b("web_propagate_is_pressed_killswitch")&&!!u;var K=C.isSelected!==void 0;P=P===void 0?C.isDisabled:P;var L=C.text?_.e6(C.text):void 0;var t,Y,y,J=((t=C.accessibilityData)==null?void 0:(Y=t.accessibilityData)==null?void 0:Y.label)||((y=C.accessibility)==null?void 0:y.label);t=J?J:_.Mh(C.text);X=fmt(C,X,c,W,p);c=dbr(C);c!=null&&c.length?(c=_.nb({innertubeCommand:k$J(c),
forceNewState:!0}),c=w2(c)?c:void 0):c=void 0;return k.call(O,{},D,Q,{iconPosition:a},g,{focused:!1,toggled:u,toggleable:K,disabled:P,formattedButtonText:L,accessibilityLabel:t,onTap:X,aTagConfig:c},jWr((B=C.colorData)==null?void 0:B.basicColorPaletteData),{oneOffCustomTextWrap:C.oneOffCustomTextWrap})};
fmt=function(D,C,X,c,W){return function(p){var g=dbr(D);c(g,p);if(!W){g=_.U(g);for(var a=g.next();!a.done;a=g.next())k_(a.value,{form:{element:C,event:p},commandController:X})}}};
dbr=function(D){var C=[];D.command&&C.push(D.command);D.serviceEndpoint&&C.push(D.serviceEndpoint);D.navigationEndpoint&&C.push(D.navigationEndpoint);return C};
qPR=function(D,C){if(C)switch(D.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(D.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Mam=function(D){switch(D.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
lmZ=function(D,C){return typeof D!=="object"||D===null?!1:Object.keys(C).every(function(X){return X in D})};
e5=function(D){return Object.fromEntries(Object.keys(D).map(function(C){return[C,C]}))};
DTj=function(D,C,X){return cnj(X,function(c,W){return function(p){var g=_.MJ.apply(1,arguments);return lmZ(p,D)?W.apply(null,[p[C]].concat(_.VB(g))):W.apply(null,[p].concat(_.VB(g)))}})};
EI=function(D){return function(C,X){return DTj(D,C,X)}};
CiJ=function(D,C){var X;return(X=_.aI(D,"playlistLoopStateEntity",C))!=null?X:void 0};
X$j=function(D,C){var X;return(X=_.aI(D,"toggleMenuServiceItemEntity",C))!=null?X:void 0};
_.tl=function(D){return D!=null&&D.watch?D.watch.isTheaterMode:!1};
_.Nn=function(D){return D!=null&&D.watch?D.watch.isWatchFullscreen:!1};
_.Y_=function(D){if(_.cto(D))return!0;D=_.oIt(D);return _.b("web_watch_enable_single_column_grid_view")?D:!1};
_.cto=function(D){return D!=null&&D.watch?D.watch.isSwatcherooActive:!1};
_.oIt=function(D){return D.watch.isWatchNarrowWidth};
_.Wfr=function(D){return _.tl(D)||_.Nn(D)||_.oIt(D)};
_.p$Z=function(D){return D.watch.openEngagementPanels};
_.y6=function(D,C){return _.aI(D.entities,"likeStatusEntity",C)};
SjZ=function(D,C){return _.aI(D.entities,"likeCountEntity",C)};
_.UTm=function(D,C){return _.aI(D.entities,"stringEntity",C)};
gIj=function(D,C){return _.aI(D.entities,"dataFreshnessEntity",C)};
art=function(D,C){if(!D)return!1;var X,c=(X=_.r(D,_.Up))==null?void 0:X.signal;if(c&&C.signalEndpointMap)return!!C.signalEndpointMap[c];var W;if((X=(W=_.r(D,_.nI))==null?void 0:W.request)&&C.continuationEndpointMap)return!!C.continuationEndpointMap[X];for(var p in D)if(C.commandEndpointMap[p])return!0;return!1};
IrJ=function(D,C){if(C.streamingEndpointMap)for(var X in D)if(C.streamingEndpointMap[X]&&(D=C.streamingEndpointMap[X]))return D()};
OAF=function(D,C){var X,c=(X=_.r(D,_.Up))==null?void 0:X.signal;if(c&&C.signalEndpointMap&&(X=C.signalEndpointMap[c]))return X();var W;if((X=(W=_.r(D,_.nI))==null?void 0:W.request)&&C.continuationEndpointMap&&(W=C.continuationEndpointMap[X]))return W();for(var p in D)if(C.commandEndpointMap[p]&&(D=C.commandEndpointMap[p]))return D()};
At3=function(D){var C={"Content-Type":"application/json"};_.q6("EOM_VISITOR_DATA")?C["X-Goog-EOM-Visitor-Id"]=_.q6("EOM_VISITOR_DATA"):_.q6("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=_.q6("VISITOR_DATA"));C["X-Youtube-Bootstrap-Logged-In"]=_.q6("LOGGED_IN",!1);_.q6("DEBUG_SETTINGS_METADATA")&&(C["X-Debug-Settings-Metadata"]=_.q6("DEBUG_SETTINGS_METADATA"));D!=="cors"&&((D=_.q6("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(C["X-Youtube-Client-Name"]=D),(D=_.q6("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(C["X-Youtube-Client-Version"]=
D),(D=_.q6("CHROME_CONNECTED_HEADER"))&&(C["X-Youtube-Chrome-Connected"]=D),(D=_.q6("DOMAIN_ADMIN_STATE"))&&(C["X-Youtube-Domain-Admin-State"]=D));(D=_.q6("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(C["X-YouTube-Lava-Device-Context"]=D);return C};
Pin=function(D,C){C.watchNextResponse||C.reelItemWatchResponse?C.watchNextResponse?D.content=C.watchNextResponse:D.content=C.reelItemWatchResponse:C.playerResponse?D.player=C.playerResponse:C.reelWatchSequenceResponse&&(D.reelSequence=C.reelWatchSequenceResponse)};
w$=function(D){return function(){return new D}};
FA=function(D){var C=_.iX();return function(){return C.resolve(D)}};
_.Z5=function(D){if(!D)return null;for(var C=[],X=0;X<D.textSegments.length;X++){var c=D.textSegments[X];c.text?C.push(c):c.emojiId&&C.push({emoji_id:c.emojiId})}return{text_segments:C}};
uOj=function(D,C,X,c,W,p,g){p=p===void 0?[]:p;var a=new _.Gr;a.endpoint=X;if(!X)return _.qN(new _.Zf("handle undefined endpoint",C.tagName)),a;var O=OTJ(X);O.length&&(_.o7(D,O,C,c),a.actions=O);X.loggingUrls&&X.loggingUrls.forEach(function(k){k.baseUrl&&pQ(k.baseUrl,k.attributionSrcMode)});
O=!_.b("web_skip_impression_click_killswitch")&&c&&c.impression;if(X.clickTrackingParams&&!$TJ(X)&&!vIJ(C)&&!O&&(O=_.iO(),!_.V6(O,C))){var P=C.getScreenLayer&&C.getScreenLayer();P?O.clickCommand(X,null,P):O.clickCommand(X,null)}O=!1;for(P=0;P<p.length;P++)if((0,p[P])(C,X,c)){O=!0;break}!O&&iAm(X)&&(a.ajaxPromise=kBd(D,C,X,c,W,g));return a};
vIJ=function(D){var C;return(D=(C=D.data)==null?void 0:C.navigationEndpoint)&&!!D.clickTrackingParams};
$TJ=function(D){var C=_.r(D,_.Up);if(C&&(C=C.signal)&&QDr.indexOf(C)>=0)return!0;for(var X in D)if(Bbd.indexOf(X)>=0)return!0;return!1};
iAm=function(D){var C;if(((C=_.r(D,_.Up))==null?void 0:C.signal)==="CLIENT_SIGNAL")return!1;for(var X in D)if(bAm.indexOf(X)>=0)return!1;D=Object.keys(D);return D.length===1&&D[0]==="loggingUrls"?!1:!0};
eCZ=function(D,C,X,c,W,p,g){var a=_.Tr.instance;if(a&&_.H0(a,c))var O=_.Jl(a,c,W).then(function(k){return(k==null?0:k.data)?k:{data:k}});
else O=D.requestDataForServiceEndpoint(c,W),_.r(c,rtZ)||_.r(c,Kf3)||_.r(c,_.hCt)||_.r(c,xT5)||_.fQ(new _.Zf("No RequestBuilder for endpoint",c));var P=_.zr();P.promise.thenCatch(function(){var k=_.z4(c,"action")||_.z4(c,"command")||_.z4(c,"endpoint");k&&(k=c[k],k.hasOwnProperty("onFailureAction")?_.o7(C,[k.onFailureAction],X):k.hasOwnProperty("onFailureCommand")&&_.o7(C,k.onFailureCommand,X));O.cancel("Resolver promise rejected")});
O.then(function(k){if(k){var u=k.error;if(u){if(p&&p.onServerError)p.onServerError(c,k);P.reject(new _.Zf("Response error",c,u))}else if(k=k.data)if(u=k.error){if(p&&p.onServerError)p.onServerError(c,k);P.reject(new _.Zf("Returned error",c,u))}else{Lft(C,X,k,c);sDW(k);if(u=Iwt(k))for(var Q=_.U(u),B=Q.next();!B.done;B=Q.next()){B=B.value;var K=_.iX().resolve(_.vK(mTm))||j5;if(!_.Tr.instance||!K.some(function(t){return!!_.r(c,t)})||_.b("kevlar_response_processor_allowlist_killswitch")){var L=K=void 0;
((L=_.r((K=B)==null?void 0:K.commandMetadata,_.ge))==null?0:L.sendPost)?_.cE(C,[B]):_.o7(C,[B],X)}}(Q=_.r(k==null?void 0:k.frameworkUpdates,Mn))&&g&&g(Q);if(p&&p.onSuccess)p.onSuccess(c,k);P.resolve(new _.qn(k,u))}}else P.reject(new _.Zf("Invalid service endpoint provided",c))},function(k){P.reject(k)});
return P.promise};
sDW=function(D){var C;(D=(C=_.r(D==null?void 0:D.onResponseReceivedCommand,_.EIm))==null?void 0:C.continuationItems)&&(D==null?void 0:D.length)===1&&_.r(D[0],tWm)&&_.sp("so_r",void 0,"search_overview_answer")};
kBd=function(D,C,X,c,W,p){var g;return(g=C.getNetworkManager&&C.getNetworkManager()?C.getNetworkManager():_.iX().resolve(_.vK(_.Qt)))?eCZ(g,D,C,X,c,W,p):_.x7("No network manager.")};
Lft=function(D,C,X,c){if(X=X.trackingParams||X.loggingDirectives&&X.loggingDirectives.trackingParams){var W;(_.r(c,_.fI)||_.r(c,NbJ)||_.r(c,Yjo))&&c.clickTrackingParams?W=_.bO(c.clickTrackingParams):_.b("web_graft_to_parent_command")&&c.clickTrackingParams&&(W=_.bO(c.clickTrackingParams));var p;c=(p=C.getScreenLayer)==null?void 0:p.call(C);C=_.iO().graftServerVe(X,W,c);_.Ct(D,"yt-store-grafted-ve-action",[C])}};
_.ytd=function(D){var C=new Image;return new _.mM(function(X,c){C.addEventListener("load",function(){X()});
C.addEventListener("error",function(){c()});
C.src=D})};
nIZ=function(D){return!!D};
w$J=function(D){return!!D};
Ffm=function(D,C,X){var c=D.rowIndex;c!==void 0&&_.Ct(D.hostElement,"yt-section-reactive-dismissal",[c,C,X])};
_.d$=function(D,C,X){D=_.U(D);for(var c=D.next();!c.done;c=D.next()){c=c.value;if(c===C)break;for(var W=_.U(X),p=W.next();!p.done;p=W.next())if(p=p.value,c.tagName===p||!_.b("web_event_button_role_check_killswitch")&&c.role==="button"&&p==="BUTTON")return!0}return!1};
_.R_=function(D,C,X){D=_.U(D);for(var c=D.next();!c.done;c=D.next()){c=c.value;if(c===C)break;for(var W=_.U(X),p=W.next();!p.done;p=W.next())if(c.id===p.value)return!0}return!1};
_.CT=function(){var D=_.iX().resolve(_.vK(_.lu));return D?(D=D.getCurrentPage())?_.Dw(D):null:null};
_.Xv=function(){var D=_.CT();if(!D){var C=_.iX().resolve(_.vK(_.lu)),X=C?typeof C:"no page manager";C=C?C.getCurrentPage():null;X=new _.Zf("Player is missing when requested.",X,C?C.tagName:"no page");_.MN(X)}return D};
_.Dw=function(D){return D&&D.getPlayer?D.getPlayer():null};
ZAd=function(D,C){D={args:{raw_player_response:D}};C&&(D.args=Object.assign({},D.args,C));return D};
GBJ=function(D){if(D.args){if(D.args.raw_player_response)return D.args.raw_player_response;if(D.args.player_response)return JSON.parse(D.args.player_response)}};
_.VWt=function(D,C){var X={url:"/watch?v="+D.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};D.playlistId&&(X.url+="&list="+D.playlistId);D.playerParams&&(X.url+="&pp="+D.playerParams);D={watchEndpoint:D,commandMetadata:{webCommandMetadata:X}};C&&(D.clickTrackingParams=C);return D};
HAh=function(){return TbR||!!_.Df("yt.player.Application")};
zCm=function(){return JtF||!!document.querySelector("link#player-css")};
MWm=function(){function D(){TbR=!0;jDj.resolve()}
var C,X;return _.I(function(c){jDj||(jDj=new _.gL,HAh()?D():(C=document.createElement("script"),C.addEventListener("load",D),X=_.Z1(_.q6("PLAYER_JS_URL")),_.gH(C,X),document.head.appendChild(C)));return c.return(jDj.promise)})};
frm=function(){function D(){JtF=!0;qjd.resolve()}
if(!qjd)if(qjd=new _.gL,zCm())D();else{var C=document.createElement("link");C.id="player-css";C.addEventListener("load",D);var X=_.Z1(_.q6("PLAYER_CSS_URL"));_.Ou(C,X,"stylesheet");document.head.appendChild(C)}return qjd.promise};
dTt=function(){return HAh()&&zCm()?Promise.resolve([]):Promise.all([MWm(),frm()])};
RCZ=function(D,C,X){var c={args:{}};D&&(c.args.raw_player_response=D);C&&(c.args.raw_watch_next_response=C);X&&(c.args=Object.assign({},c.args,X));return c};
X4o=function(D,C,X){var c=!1;c=c===void 0?!0:c;D=typeof D==="string"?_.cX(document,D):D;var W=lrj+"_"+_.fh(D),p=Djj[W];if(p&&c)return CrJ(C,X)?p.api.loadVideoByPlayerVars(C.args||null):p.loadNewVideoConfig(C),p.api;p=new oa(D,W,C,X,void 0);Djj[W]=p;p.addOnDisposeCallback(function(){delete Djj[p.getId()]});
return p.api};
CrJ=function(D,C){return C&&C.serializedExperimentFlags?C.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):D&&D.args&&D.args.fflags?D.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
cJo=function(){var D=new _.gL;D.resolved=!1;var C=D.resolve;D.resolve=function(X){D.resolved=!0;C(X)};
return D};
WTd=function(D){var C={};oVj().install((C.document_disposed={callback:D},C))};
WX=function(D,C){if(!D&&Math.random()<=_.BK("kevlar_unified_player_logging_threshold")){D=Error("uh`"+(C?C:"Unspecified error"));if(_.b("kevlar_unified_player_throw_errors"))throw D;_.fQ(D)}};
_.p4W=function(){var D=_.Df("ytDebugData.callbacks");D||(D={},_.$h("ytDebugData.callbacks",D));return D};
Ujm=function(D,C){var X=_.p4W();if(_.b("web_dd_iu")||SRh.includes(D))X[D]=C};
gVd=function(){return _.I(function(D){return D.return({isLeader:_.JyR(_.fe().getState()),c:_.q6("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.q6("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
aMZ=function(){var D;_.I(function(C){if(C.nextAddress==1)return Ujm("APP_STATE",gVd),C.yield(_.iX().resolve(_.pT),2);D=C.yieldResult;Ujm("PI",function(){return _.I(function(X){return X.return(D.getVideoStats())})});
_.t_(C)})};
IMj=function(D){return!!D&&D.length>0&&D[0].loggingUrls!=null&&D[0].loggingUrls.length>0};
O$R=function(){var D=_.q6("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
AJW=function(D){if(!D)return[];var C=[];D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.loggingUrls){X=_.U(X.loggingUrls);for(var c=X.next();!c.done;c=X.next())c=c.value,c.baseUrl&&C.push(c.baseUrl)}return C};
PrW=function(D){var C=_.zC(_.wl(_.co.location.href));D=_.zC(_.wl(D));return _.b("kevlar_clear_non_displayable_url_params")?C==Sr(D):Sr(C)==Sr(D)};
Sr=function(D){var C=_.$jo(D);D=D.slice(0);var X=["frags"];_.b("kevlar_hide_pp_url_param")&&X.push("pp");_.b("kevlar_hide_time_continue_url_param")&&X.push("time_continue");X=_.U(X);for(var c=X.next();!c.done;c=X.next())c=c.value,D=_.MF(_.zC(D),c);return _.zC(D)+(C?"#"+C:"")};
gU=function(D,C){C=Number(C)*1E3;var X=Math.round((0,_.kh)()),c=X.toString();D={innertubeResponse:D,serverDateTimestampMs:c,lastModifiedTimestampMs:c,expireTimestampMs:(X+C).toString()};if(C=_.q6("INNERTUBE_CONTEXT_CLIENT_NAME"))D.clientName=C;return D};
i$r=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++vVj};
kFm=function(D){return!isNaN(D)&&D>0};
QyZ=function(){_.b("web_adaptive_repeat_ase")&&uP5&&_.zu("applicationStarted",uP5)};
_.BNJ=function(){var D=_.xr(),C=_.LN();C&&D&&_.To(C,[D],!0)};
rJJ=function(D){return D&&b$m.some(function(C){return D.includes(C)})};
mjh=function(D){var C=_.r(D,_.oX);if(!C)return!1;var X=C.url,c=C.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!X)return _.MN(Error("zh")),!1;if(C.target==="TARGET_NEW_WINDOW"){C={};_.b("resolve_url_parent_tracking_params")&&(!_.OY(X)||Ag(window.location.href,X))&&(C={endpoint:D,itct:D.clickTrackingParams});dVr(C);D=null;try{if(c){a:{var W=X,p=C;c=c===void 0?!1:c;p&&_.jc(W,p);var g=_.Hv(W),a=_.Z6(g);W!=a&&_.CC(Error("Yf`"+W));W=a;try{if(c){a=W;a=MY3(a);Yo(a);D=_.ct(window,a,"_blank",
"attributionsrc");break a}}catch(Q){_.Re(Q)}Yo(W);D=_.ct(window,g,"_blank")}KTR(_.iX().resolve(htW),D,X);return!0}}catch(Q){_.MN(Q)}_.jc(X,C);C={target:"_blank",noopener:!1};g=window;a=Fm(X)?X:_.Hv(typeof X.href!="undefined"?X.href:String(X));c=self.crossOriginIsolated!==void 0;D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);W=C.noreferrer;if(c&&W&&D==="unsafe-url")throw Error("ve");D=W&&!c;W=C.target||X.target;p=[];var O=[],P=!1;for(u in C){var k=C[u];switch(u){case "width":case "height":case "top":case "left":p.push(u+
"="+k);break;case "target":break;case "noopener":case "noreferrer":k?O.push(u):(P=!0,O.push(u+"=false"));break;case "attributionsrc":p.push(u+(k?"="+k:""));break;default:p.push(u+"="+(k?1:0))}}var u=W!==void 0&&!["_blank","_self","_top","_parent",""].includes(W);u=sm()&&u;xjF&&c&&p.length===0&&O.length>0&&!u&&!P?(O.length===2&&(O=["noreferrer"]),_.ct(g,a,W,O[0]),D=LTJ()):(u=p.join(","),_.tW()&&g.navigator&&g.navigator.standalone&&W&&W!="_self"?(u=_.mv("A"),ff(u,a),u.target=W,D&&(u.rel="noreferrer"),
((C=C.attributionsrc)||C==="")&&u.setAttribute("attributionsrc",C),C=document.createEvent("MouseEvent"),C.initMouseEvent("click",!0,!0,g,1),u.dispatchEvent(C),u=LTJ()):D?(u=_.ct(g,"",W,u),g=_.Z6(a),u&&(u.opener=null,g===""&&(g="javascript:''"),g='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+aa(g)+'">',g=RH(g),(C=u.document)&&C.write&&(C.write(lU(g)),C.close()))):((u=_.ct(g,a,W,u))&&C.noopener&&(u.opener=null),u&&C.noreferrer&&(u.opener=null)),D=u);KTR(_.iX().resolve(htW),
D,X);return!0}u=_.mC(X);u=rJJ(u)||X==="https://studio.youtube.com/";if(_.OY(X)&&!Ag(window.location.href,X)||u)Yo(X),Kt(),_.nH(X,void 0,void 0,window.top,sy5);else return _.fQ(new _.Zf("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",D)),!1;return!0};
_.tFt=function(D,C){C=C===void 0?0:C;if(!(_.r(D,etj)||_.r(D,EVJ)||_.r(D,_.oX)&&_.r(D,_.oX).url))return!1;var X,c=(X=_.r(D,_.oX))==null?void 0:X.url;X=c?{externalLinkData:{url:c}}:null;return _.iO().clickCommand(D,X,C)};
YRm=function(D,C,X,c,W){W=W===void 0?{}:W;return function(p){var g,a;var O=((g=D.loggingDirectives)==null?0:(a=g.clientVeSpec)==null?0:a.uiType)?_.Ia(D.loggingDirectives.clientVeSpec.uiType):void 0;W.clickedVisualElement||(W.clickedVisualElement=O);O=NNm(D,C);X(O,p);O=_.U(O);for(g=O.next();!g.done;g=O.next()){g=g.value;a=c;var P=p,k=W;k.form?k.form.event=P:k.form={element:a,event:P};k_(g,k)}}};
NNm=function(D,C){var X=[];C?(D.toggledCommand&&X.push(D.toggledCommand),D.toggledServiceEndpoint&&X.push(D.toggledServiceEndpoint)):(D.defaultCommand&&X.push(D.defaultCommand),D.defaultServiceEndpoint&&X.push(D.defaultServiceEndpoint),D.defaultNavigationEndpoint&&X.push(D.defaultNavigationEndpoint));return X};
yJr=function(D,C){var X=D.toggledStyle||D.style,c;switch((c=C?X:D.style)==null?void 0:c.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"}}};
_.ON=function(){return _.I(function(D){return D.nextAddress==1?D.yield(_.iX().resolve(_.pT),2):D.return(_.iX().resolve(nV5)())})};
_.AG=function(){return _.iX().resolve(nV5)()};
_.PX=function(){return{lottieEl:void 0}};
w45=function(D,C){return D.startsWith(C.uniqueId)};
FTh=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(_.ON(),2);C=c.yieldResult;if((X=C)==null||!X.addEventListener)return $u(),c.return();C.addEventListener("onCueRangeEnter",D);_.t_(c)})};
Z$W=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(_.ON(),2);C=c.yieldResult;if((X=C)==null||!X.removeEventListener)return $u(),c.return();C.removeEventListener("onCueRangeEnter",D);_.t_(c)})};
GFm=function(D){var C,X,c,W,p;_.I(function(g){if(g.nextAddress==1)return g.yield(_.ON(),2);C=g.yieldResult;if((X=C)==null||!X.addCueRange)return $u(),g.return();c=_.U(D.timings);for(W=c.next();!W.done;W=c.next())p=W.value,C.addCueRange(D.uniqueId+"-"+p,p/1E3,(p+100)/1E3);_.t_(g)})};
VFr=function(D){var C,X,c,W,p;_.I(function(g){if(g.nextAddress==1)return g.yield(_.ON(),2);C=g.yieldResult;if((X=C)==null||!X.removeCueRange)return $u(),g.return();c=_.U(D.timings);for(W=c.next();!W.done;W=c.next())p=W.value,C.removeCueRange(D.uniqueId+"-"+p);_.t_(g)})};
TNm=function(){var D,C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(_.ON(),2);D=c.yieldResult;if((C=D)==null||!C.getPlayerState)return $u(),c.return();X=D.getPlayerState();return c.return(X===2)})};
$u=function(){_.fQ(new _.Zf("Smartimation player does not exist or is corrupted"))};
H$d=function(){try{var D;return(D=window.CSS)!=null&&D.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(C){return _.fQ(new _.Zf("Smartimation CSS.supports threw an error")),!1}};
dj5=function(D,C,X,c,W){var p=D.playlistId?JJn:ztt;C=C();X=X();W=!!D.videoId&&W()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.u8(C))return jyJ({data:D,actionType:p,disabled:W},X);if(D.videoId&&c())return MFt({data:D,actionType:p,disabled:W});switch(C){case "TRANSFER_STATE_UNKNOWN":return MFt({data:D,actionType:p,disabled:W});case "TRANSFER_STATE_FAILED":return D.videoId?qR5({data:D,actionType:p,disabled:W}):fMn({data:D,actionType:p,disabled:W});case "TRANSFER_STATE_COMPLETE":return fMn({data:D,
actionType:p,disabled:W});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return jyJ({data:D,actionType:p,disabled:W},X);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return D.videoId?qR5({data:D,actionType:p,disabled:W}):MFt({data:D,actionType:p,disabled:W});default:return MFt({data:D,actionType:p,disabled:W})}};
Rtd=function(D,C){var X=D.onTapCommand,c=_.Y7(X);if(D.videoId&&_.r(c,_.vX))return _.r(c,_.vX).action=C,X;D.playlistId&&_.r(c,_.iK)&&(_.r(c,_.iK).action=C);return X};
MFt=function(D){var C=D.data;var X=D.actionType;D=D.disabled;return{text:lMZ,iconType:"OFFLINE_DOWNLOAD",onTap:Rtd(C,X.ACTION_ADD),disabled:D}};
jyJ=function(D,C){var X=D.data;var c=D.actionType;D=D.disabled;var W="OFFLINE_DOWNLOAD";C>=0&&C<=.1?W="OFFLINE_DOWNLOADING_ZERO":C>.1&&C<=.3?W="OFFLINE_DOWNLOADING_TWENTY":C>.3&&C<=.5?W="OFFLINE_DOWNLOADING_FORTY":C>.5&&C<=.7?W="OFFLINE_DOWNLOADING_SIXTY":C>.7&&C<1?W="OFFLINE_DOWNLOADING_EIGHTY":C===1&&(W="OFFLINE_PIN");return{text:DZm,iconType:W,onTap:Rtd(X,c.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
fMn=function(D){var C=D.data;var X=D.actionType;D=D.disabled;return{text:C73,iconType:"OFFLINE_PIN",onTap:Rtd(C,X.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
qR5=function(D){var C=D.data;var X=D.actionType;D=D.disabled;return{text:XUr,iconType:"OFFLINE_DOWNLOAD",onTap:Rtd(C,X.ACTION_RETRY),disabled:D}};
_.ku=function(D,C){var X=dBd();return _.tw(function(){X();return D2o(D,[_.Mm(C)||""])},{debugName:"LUZslf"},"Z105t")};
cQd=function(D){var C=_.ku(_.YP,function(){return D().videoId}),X=_.ku(_.yZ,function(){return D().playlistId});
return function(){return D().videoId?C:D().playlistId?X:_.U(_.Li("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
oWj=function(D){var C=_.ku(wJ,function(){return D().videoId}),X=_.ku(_.H4h,function(){return D().playlistId});
return function(){return D().videoId?C:D().playlistId?X:_.U(_.Li(0,void 0,"K4tgOc")).next().value}};
Wc5=function(D){var C=_.ku(_.ler,function(){return D().videoId});
return function(){return D().videoId?C:_.U(_.Li(!1,void 0,"Oaxwcf")).next().value}};
pUF=function(D){var C=_.ku(jso,function(){return D().videoId});
return function(){return D().videoId?C:_.U(_.Li("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Sor=function(){return{}};
_.OB3=function(D,C,X){return{submitForm:function(){var c,W,p,g;return _.I(function(a){if(a.nextAddress==1){c=UZm(D());if(!c)return a.return();if(c.onSubmit)return gWh(C),c.onSubmit(),gWh(X),a.return();if(!c.submitConfig||!c.formData)return a.jumpTo(0);c.disableDuringSubmission&&aj3(D(),!0);gWh(C);return a.yield(IjW(c.submitConfig,c.formData()),3)}W=a.yieldResult;gWh(X);if(((p=W)==null?0:p.submitResult)&&((g=c)==null?0:g.onSubmitResult))c.onSubmitResult(W.submitResult);c.disableDuringSubmission&&aj3(D(),
!1);return a.return()})},
isValid:function(){var c=UZm(D());if(c){var W;return!((W=c.isValid)==null||!W.call(c))}return!0},
isSubmitting:function(){var c,W;return!!((c=UZm(D()))==null?0:(W=c.isSubmitting)==null?0:W.call(c))}}};
_.uK=function(){if(!AQW){var D=_.U(_.Li(new Map,void 0,"Y1XnBc"));AQW=D.next().value;P7m=D.next().value}return AQW};
_.$Z3=function(D){P7m(new Map(D))};
UZm=function(D){if(D)return _.uK()().get(D)};
IjW=function(D,C){var X;return _.I(function(c){return c.nextAddress==1?C?(X=_.iX().resolve(_.vK(vWn)))&&D.submitId?c.yield(X.submitForm(D.submitId,C,iBr,D.params,D.clickTrackingParams),2):c.return(Promise.reject(Error("Bh"))):c.return(Promise.reject(Error("Ah"))):c.return(c.yieldResult)})};
aj3=function(D,C){if(D){var X=_.uK();X().set(D,Object.assign({},X().get(D),{isSubmitting:function(){return C}}));
_.$Z3(X())}};
gWh=function(D){if(D){var C=_.iX().resolve(_.uX);C&&(D=_.Y7(D()))&&C.resolveCommand(D)}};
QTd=function(D,C){C=C===void 0?{shouldPersist:!0}:C;return{useUpdatableData:function(X,c){var W=_.tw(function(){return D(X())},void 0,"Gmrblb"),p=k9W(X,W,c,C);
_.Jw(function(){if(W()!=null){uFj.set(W(),p);var g=W();_.z3(function(){uFj.delete(g)})}},"j4hx9b");
return p},
getData:function(X){var c;return(c=uFj.get(D(X)))==null?void 0:c[0]()},
updateData:function(X,c){X=D(X);X=uFj.get(X);if(!X)return!1;var W=_.U(X);X=W.next().value;W=W.next().value;c=c(X());W(c);return!0}}};
k9W=function(D,C,X,c){c=c===void 0?{}:c;var W=_.U(_.d2(function(){var a=D(),O=C();return BKm(a,O,X,c)})),p=W.next().value,g=W.next().value;
return[p,function(a){g(a);var O=C();if(c.shouldPersist&&O!=null){var P,k=(P=X==null?void 0:X.map(function(u){return u()}))!=null?P:[];
_.QX.set(O,[a,k])}}]};
BKm=function(D,C,X,c){c=c===void 0?{}:c;if(C==null||!c.shouldPersist)return D;c=_.QX.get(C);if(!c)return D;var W=_.U(c);c=W.next().value;var p=W.next().value,g;W=(g=X==null?void 0:X.map(function(a){return a()}))!=null?g:[];
if((p==null?0:p.length)&&(X==null?0:X.length)&&W.some(function(a,O){return a!==p[O]}))return _.QX.remove(C),D;
(X==null?0:X.length)&&_.QX.set(C,[c,W]);return c};
bBt=function(D){var C=_.U(_.Li(!0,void 0,"bKtO6d")),X=C.next().value;C.next();return function(){var c=EO(D.children());return _.A(_.v,{cond:X,then:function(){return c},
else:D.fallback})}()};
_.BX=function(D){var C=rQZ(D),X=C.data,c=C.mapping,W=C.wrapper;C=C.pendingFallback;var p=function(){return Kcd(_.Mm(X))},g=function(){var a=p(),O=[];
a=_.U(a);for(var P=a.next();!P.done;P=a.next()){var k=void 0;P=P.value;var u=void 0;for(k in P)if(!(!P).hasOwnProperty(k)){u=k;break}(k=u)&&O.push(k)}return O};
return D.data?_.A(bBt,{fallback:C},function(){return _.A(_.Zh,{each:g},function(a,O){var P=W?function(K){return W(function(){return c[a](K,O)},k,O)}:function(K){return c[a](K,O)};
P.debugName||(P.debugName=String(a));if(!c[String(a)])return document.createComment("");P.componentType!==yv&&hRF(String(a));var k=xZF(p,a,O);if(_.b("web_add_microtask_to_stamper")&&!Lch.has(String(a))){var u=_.U(_.Li(!1,void 0,"afb1md")),Q=u.next().value,B=u.next().value;Promise.resolve().then(function(){Lch.add(String(a));B(!0)});
return _.A(_.v,{cond:Q,then:function(){return _.A(P,{data:k})}})}return _.A(P,{data:k})})}):_.A(_.kQ,null)};
rQZ=function(D){var C=D.targetId||sTJ(D.children);if(!D.data||!C)return Object.assign({},D,{mapping:D.children});var X="stamper-"+mZJ++,c=function(){var a;return(a=typeof D.targetId==="function"?D.targetId(X):D.targetId)!=null?a:X};
C=_.U(eRo(function(){var a=Kcd(D.data());a.targetId=c;return a})).next().value;
var W=Object.assign({},(_.iX().resolve(_.vK(EWo))||{}).replaceableMapping,D.children);if(D.replacementWrapper){var p=W.notificationTextRenderer,g=W.notificationMultiActionRenderer;p&&(W.notificationTextRenderer=function(a,O){return D.replacementWrapper(p({data:a.data},O))});
g&&(W.notificationMultiActionRenderer=function(a,O){return D.replacementWrapper(g({data:a.data},O))})}return Object.assign({},D,{data:C,
mapping:W,wrapper:function(a,O,P){return Wqt({targetId:c,stamperIndex:P},D.wrapper?function(){return D.wrapper(a,O,P)}:a)}})};
xZF=function(D,C,X){var c;return _.tw(function(){var W=D()[X()];if(W)c=W[C];else return _.fQ(new _.Zf("Stamper failed to find "+String(C)+" at index "+X()+" of data array of length "+(D().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),c;return W[C]},void 0,"Su9U8")};
sTJ=function(D){D=_.U(Object.keys(D));for(var C=D.next();!C.done;C=D.next())if(C=C.value,tHd.includes(C)||NKt.includes(C)||Yom.includes(C))return!0;return!1};
Kcd=function(D){return D?Array.isArray(D)&&D instanceof Array?D:[D]:[]};
hRF=function(D){if(_.b("web_enable_renderer_logger")){var C;(C=_.iX().resolve(_.vK(yQn)))!=null&&C.loggingEnabled&&!C.ids.has(D)&&C.ids.add(D)}};
nWj=function(){var D,C;return(C=(D=_.iX().resolve(_.vK(_.Hc)))==null?void 0:D())!=null?C:!1};
FcJ=function(D,C){D=D===void 0?wU3:D;switch(C.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},D,{isOpen:C.payload});default:return D}};
G9m=function(D,C){D=D===void 0?ZBF:D;switch(C.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},D,{isAllowed:C.payload});default:return D}};
TKm=function(D,C){D=D===void 0?VHt:D;switch(C.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{errorMessage:C.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{title:C.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},D,{privacy:C.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},D,{isDisabled:C.payload});default:return D}};
JQn=function(D,C){D=D===void 0?HBm:D;switch(C.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},D,{isOpen:C.payload});default:return D}};
jTr=function(D,C){D=D===void 0?zRj:D;switch(C.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},D,{isFullscreen:C.payload});case "SET_NAVIGATION_BUTTON":var X=C.payload.targetId,c=Object.assign({},D.navigationButtons);c[X]=C.payload.button;return Object.assign({},D,{navigationButtons:c});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},D,{topPanelId:C.payload});case "SET_SECONDARY_HEADER":return X=C.payload.panelId,c=Object.assign({},D.secondaryHeader),c[X]=C.payload.secondaryHeader,
Object.assign({},D,{secondaryHeader:c});default:return D}};
dZn=function(){return Ya(Object.assign({},{voiceSearch:J$Z,engagementPanel:jTr,bottomSheet:FcJ,cinematicSetting:G9m,shorts:lYd,drawerLayout:JQn,createPlaylist:TKm,locationCollection:MHo,reportChannel:qoj,reportForm:fjd},Dxr))};
RR5=function(D,C){_.qX.addLowPriorityJob(function(){var X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return _.KK(p,2),p.yield(E0d(),4);case 4:return p.yield(fetch(D),5);case 5:return X=p.yieldResult,p.yield(X.json(),6);case 6:c=p.yieldResult;KI.set(D,c);requestAnimationFrame(function(){C(c)});
_.SR(p,0);break;case 2:W=_.Eu(p),_.fQ(W),_.t_(p)}})})};
ljd=function(D){var C={animationConfig:{},listeners:{}},X=function(){D(!0)};
C.listeners.data_failed=X;C.listeners.error=X;C.listeners.data_ready=function(){D(!1)};
return C};
XBm=function(D){var C=D.model;var X=D.subscribed;var c=D.isOverlay;var W=D.element;var p=D.commandController;var g=D.notificationState;if(X){var a,O;var P=(C==null?void 0:(a=C.buttonStyle)==null?void 0:a.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:C==null?void 0:(O=C.unsubscribeButtonContent)==null?void 0:O.buttonText}else{var k;P=C==null?void 0:(k=C.subscribeButtonContent)==null?void 0:k.buttonText}a:{var u;switch(C==null?void 0:(u=C.buttonStyle)==
null?void 0:u.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":a="S";break a;default:a="M"}}a:if(c)c="overlay";else switch(C.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":c="overlay";break a;default:c="mono"}a:if(X)var Q="tonal";else switch((Q=C.buttonStyle)==null?void 0:Q.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Q=
"tonal";break a;default:Q="filled"}return{style:c,type:Q,state:C.disableSubscribeButton?"disabled":"active",size:a,focused:D.focused,toggled:X,accessibilityLabel:DvW(C,X,g),buttonText:P,iconPosition:C.disableNotificationBell?"none":"leading-trailing",onTap:CNt(C,X,W,p),disableTextEllipsis:!!D.disableTextEllipsis}};
CNt=function(D,C,X,c){return function(W){if(C){var p;var g=D.disableNotificationBell?_.Y7(D==null?void 0:(p=D.unsubscribeButtonContent)==null?void 0:p.onTapCommand):_.Y7(D==null?void 0:D.onShowSubscriptionOptions)}else{var a;g=_.Y7(D==null?void 0:(a=D.subscribeButtonContent)==null?void 0:a.onTapCommand)}g&&k_(g,{form:{element:X==null?void 0:X.value},commandController:c});W.stopPropagation()}};
DvW=function(D,C,X){if(C){if(D==null?0:D.disableNotificationBell){var c;return D==null?void 0:(c=D.unsubscribeButtonContent)==null?void 0:c.accessibilityText}switch(X){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var W;return D==null?void 0:(W=D.bellAccessibilityData)==null?void 0:W.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var p;return D==null?void 0:(p=D.bellAccessibilityData)==null?void 0:p.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var g;return D==null?void 0:(g=
D.bellAccessibilityData)==null?void 0:g.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var a;return D==null?void 0:(a=D.bellAccessibilityData)==null?void 0:a.disabledLabel;default:var O;return D==null?void 0:(O=D.unsubscribeButtonContent)==null?void 0:O.accessibilityText}}else{var P;return D==null?void 0:(P=D.subscribeButtonContent)==null?void 0:P.accessibilityText}};
c5o=function(D,C){return _.aI(D.entities,"subscriptionStateEntity",C)};
o2F=function(D,C){return _.aI(D.entities,"subscriptionNotificationStateEntity",C)};
Wsr=function(D,C){return _.aI(D.entities,"upcomingEventReminderStateEntity",C)};
pBt=function(D,C){return _.aI(D.entities,"commentEntityPayload",C)};
S0m=function(D,C){return _.aI(D.entities,"engagementToolbarSurfaceEntityPayload",C)};
Uvj=function(D,C){return _.aI(D.entities,"triStateButtonStateEntityPayload",C)};
g2F=function(D,C){return _.aI(D.entities,"commerceCartCheckoutButtonEntity",C)};
aU3=function(D,C){return _.aI(D.entities,"commandEntity",C)};
IUm=function(D){if(D){switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":D="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":D="NOTIFICATIONS_OFF";break;default:D="NOTIFICATIONS_NONE"}return D}};
Ow5=function(D,C,X){X.subscribed!==C&&((X=X.key)&&_.fG(_.bK("subscriptionStateEntity",X,{key:X,subscribed:C})),D.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:C})),C||_.DS(D,"yt-unsubscribe-action"))};
PNZ=function(D){D=_.r(_.Y7(D),_.rU);var C,X,c,W;return(W=_.r(D==null?void 0:(C=D.panelLoadingStrategy)==null?void 0:(X=C.inlineContent)==null?void 0:(c=X.sheetViewModel)==null?void 0:c.content,A5t))==null?void 0:W.listItems};
$vn=function(D,C){if(D.onShowSubscriptionOptions&&C&&(D=PNZ(D.onShowSubscriptionOptions),D!=null&&D.length)){var X=IUm(C);D.forEach(function(c){c=_.r(c,_.KT);var W,p,g,a,O=c==null?void 0:(W=c.leadingImage)==null?void 0:(p=W.sources)==null?void 0:(g=p[0])==null?void 0:(a=g.clientResource)==null?void 0:a.imageName;c&&O&&(c.isSelected=O===X)})}};
v2m=function(D,C,X,c){C&&X?D.style.width=X+"px":!C&&c&&(D.style.width=c+"px")};
iwr=function(D,C,X){var c;(c=D.lottieEl)==null||c.goToAndPlay(0);var W;(W=C.lottieEl)==null||W.goToAndPlay(0);_.hG(_.qX,function(){var p;(p=X.lottieEl)==null||p.goToAndPlay(0)},300)};
kXo=function(D){return!(D==null||!D.iconName||(D==null?0:D.title))};
uQd=function(D,C,X,c){X&&_.qX.cancelJob(X);X=_.qX.addLowPriorityJob(function(){c(void 0)},5E3);
c(X);C&&D!==(C.likeStatus==="LIKE")&&C.key&&_.fG(_.bK("likeStatusEntity",C.key,{key:C.key,likeStatus:D?"LIKE":"INDIFFERENT",hadUserInteraction:D}))};
_.Qlm=function(D,C){return _.aI(D.entities,"accountLinkStatusEntity",C)};
Bwm=function(D,C){return _.aI(D.entities,"hatsSurveyEntity",C)};
bwm=function(D,C){return _.aI(D.entities,"hatsSurveyStateEntity",C)};
r5t=function(D,C){return _.aI(D.entities,"quantityIncrementerEntity",C)};
KsJ=function(D){switch(D){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
hhJ=function(D){switch(D){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}};
xvZ=function(D){switch(D){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.slj=function(D){var C=_.BK("web_generic_client_event_wait_period ",0);C||(C=3E5);var X=Lsd.get(D);!_.b("enable_web_client_experiment_event_timeout_killswitch")&&X&&(0,_.kh)()-X<C||(Lsd.set(D,(0,_.kh)()),_.zu("genericClientExperimentEvent",{eventType:D}))};
_.mvF=function(D,C){var X,c,W,p;a:{var g=D.style;if(g===void 0)g=17;else switch(g){case "LIVE":g=18;break a;default:g=17}}return{type:g,text:C?oit({seconds:C}):_.Mh(D.text),accessibilityText:(X=D.text)==null?void 0:(c=X.accessibility)==null?void 0:(W=c.accessibilityData)==null?void 0:W.label,icon:(p=D.icon)==null?void 0:p.iconType}};
ehR=function(D){switch(D){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
E2Z=function(D){if(!D)return"";var C,X=(C=_.iX().resolve(_.vK(_.Hc)))==null?void 0:C(),c;if(!X&&((c=D.vibrantColorPalette)==null?0:c.iconInactiveColor))return E2(D.vibrantColorPalette.iconInactiveColor,"1");var W;return X&&((W=D.darkColorPalette)==null?0:W.iconInactiveColor)?E2(D.darkColorPalette.iconInactiveColor,"1"):D.color?E2(D.color,"1"):D.sampledThumbnailColor?(D=D.sampledThumbnailColor,"rgba("+D.red+","+D.green+","+D.blue+");"):""};
_.xu=function(D,C){if(!D.includes("DATE_PLACEHOLDER"))return D;var X=new Date(0);X.setUTCSeconds(C);return D.replace("DATE_PLACEHOLDER",t2d(X))};
NwF=function(D,C,X){return function(c){var W=D.command;W&&(k_(W,{form:{element:X}}),C([W],c))}};
y5h=function(D,C,X,c,W){return function(p){var g=Y0Z(D,C);g&&k_(g,{form:{element:X},commandController:c});W&&p.stopPropagation()}};
Y0Z=function(D,C){if(D.signInEndpoint&&!_.b("web_subscribe_sign_in_endpoint_killswitch"))return D.signInEndpoint;if(C){if(D.serviceEndpoints)return D.serviceEndpoints[1];if(D.onUnsubscribeEndpoints)return D.onUnsubscribeEndpoints[0]}else{if(D.serviceEndpoints)return D.serviceEndpoints[0];if(D.onSubscribeEndpoints)return D.onSubscribeEndpoints[0]}};
n2m=function(D,C){var X,c,W,p;C=C&&((X=D.unsubscribeAccessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label)||((W=D.subscribeAccessibility)==null?void 0:(p=W.accessibilityData)==null?void 0:p.label);return D.longSubscriberCountText?[C,_.Mh(D.longSubscriberCountText)].filter(function(g){return g}).join(" "):C};
LT=function(D,C){return C||(D==null?0:D.isChannelDelegate)?"disabled":"active"};
wBt=function(D,C){var X;switch((X=D.style)==null?void 0:X.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:LT(D)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:LT(D)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:LT(D,!0)};case "OVERLAY":return C?{style:"overlay",type:"tonal",state:LT(D)}:{style:"overlay",type:"filled",state:LT(D)};default:return C?{style:"mono",type:"tonal",state:LT(D)}:{style:"mono",type:"filled",state:LT(D)}}};
_.sN=function(){for(var D=[],C=_.U(_.MJ.apply(0,arguments)),X=C.next();!X.done;X=C.next())if(X=X.value)if(typeof X==="string")D.push(X);else{X=_.U(Object.entries(X));for(var c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;(W=W.next().value)&&D.push(c)}}return D.join(" ")};
Fsd=function(D){switch(D){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
ZwJ=function(D){switch(D){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
GXZ=function(D,C){var X=D.map(function(c){return c.toString()});
return _.I_(function(c){if(X.includes(c.key)){C&&c.preventDefault();var W;(W=c.currentTarget)==null||W.click()}})};
_.V2t=function(){return GXZ(["Enter"])};
_.TwR=function(){return GXZ(["Enter"," "],!0)};
_.mY=function(D){if(D.composedPath)return D.composedPath();if(!D.__composedPath){for(var C=[],X=D.target;X;)C.push(X),X=X.parentNode;C.push(window);D.__composedPath=C}return D.__composedPath};
_.er=function(D,C,X){D=_.U(D);for(var c=D.next();!c.done;c=D.next()){c=c.value;if(c===C)break;for(var W=_.U(X),p=W.next();!p.done;p=W.next())if(p=p.value,c.tagName===p||c.role==="button"&&p==="BUTTON")return!0}return!1};
J5J=function(D,C){var X,c=(X=C.observer)!=null?X:_.iX().resolve(iV);if(D){X=HwJ(D);var W=[];C.showOption&&W.push(c.observe(D,function(){C.visibilityCallback(!0,D)},C.showOption));
C.hideOption&&W.push(c.observe(D,function(){C.visibilityCallback(!1,D)},C.hideOption));
C.prescanOption&&C.prescanCallback&&W.push(c.observe(D,function(){C.prescanCallback()},C.prescanOption));
var p;X.visibilityMonitorKeys=((p=X.visibilityMonitorKeys)!=null?p:[]).concat(W)}};
HwJ=function(D){var C;return(C=D.polymerController)!=null?C:D};
_.tG=function(D){return!!_.EN(D)};
_.NH=function(D,C,X,c,W){return function(p){var g=o0W();_.Jw(function(){if(p){zhW(p,D(),W);var a=jlh(p,D(),C,X,c,g);_.z3(a)}},"lrewVd")}};
zhW=function(D,C,X){var c=M2r(C),W=q0J(C),p=c&&fUJ,g=W&&dvR;(c||W)&&J5J(D,{visibilityCallback:function(a){var O=_.iX().resolve(_.uX);a&&c?(O.resolveCommand(c,{form:{element:X?D:void 0},disableClickTracking:!0}),c=M2r(C)):!a&&W&&(O.resolveCommand(W,{form:{element:X?D:void 0},disableClickTracking:!0}),W=q0J(C))},
showOption:p,hideOption:g})};
jlh=function(D,C,X,c,W,p){var g=new Map;if(C=_.EN(C)){var a;D=(c==null?void 0:(a=c.onTap)==null?void 0:a.value)||D;X=Rh3(C,D,X==null?void 0:X.onTap,W,p);D.addEventListener("click",X);g.set("click",X)}return function(){for(var O=_.U(g),P=O.next();!P.done;P=O.next()){var k=_.U(P.value);P=k.next().value;k=k.next().value;D.removeEventListener(P,k)}}};
_.EN=function(D){var C;return(D=(C=_.r(D,_.Yu))==null?void 0:C.onTap)&&_.Y7(D)};
M2r=function(D){var C;return(D=(C=_.r(D,_.Yu))==null?void 0:C.onVisible)&&_.Y7(D)};
q0J=function(D){var C;return(D=(C=_.r(D,_.Yu))==null?void 0:C.onHidden)&&_.Y7(D)};
Rh3=function(D,C,X,c,W){var p=function(a){_.iX().resolve(_.uX).resolveCommand(D,a)},g=function(a){c&&_.er(_.mY(a),C,c)||p(a.target?{form:{element:a.target,
sourceData:D,mutationContext:W}}:void 0)};
X&&(g=function(a){X(a,p)});
return g};
lU5=function(D){switch(D){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}};
Da5=function(D){var C=D.numAvatarsInCluster;switch(D.clusterSize){case "small":return C===2?22:18;case "40":return C===2?24:22;default:return C===2?24:20}};
Czo=function(D,C){return function(X){var c=Object.keys(C);_.Jw(function(){if(D!=null&&D()){for(var W=_.U(c),p=W.next();!p.done;p=W.next())p=p.value,X.addEventListener(p,C[p]);_.z3(function(){for(var g=_.U(c),a=g.next();!a.done;a=g.next())a=a.value,X.removeEventListener(a,C[a])})}},"bXZGfe")}};
XDR=function(D){switch(Da5(D)){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""}};
cBR=function(D){switch(D){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""}};
oqn=function(D){switch(Da5(D)){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""}};
Wkh=function(D){switch(D){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""}};
pDF=function(D){switch(D){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}};
Sl3=function(D){return D==="medium"||D==="48"||D==="large"||D==="extra-large"||D==="extra-extra-large"||D==="giant"};
Uad=function(D){return!!((D==null?0:D.includes(3))||(D==null?0:D.includes(5)))};
alt=function(D){var C=D.data;return{size:gqo(C.avatarImageSize),type:C.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:D.onTap,decorations:D.decorations||[],badgeText:D.badgeText,accessibilityText:D.accessibilityText,avatarButtonCustomClassName:D.avatarButtonCustomClassName,clusterLayoutConfig:D.clusterLayoutConfig}};
gqo=function(D){switch(D){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"}};
IlF=function(D){switch(D){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}};
OMF=function(D){switch(D){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
ABJ=function(D){var C=D.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",X,c=D.avatars&&D.avatars.length>0?(X=_.r(D.avatars[0],_.yX))==null?void 0:X.avatarImageSize:"AVATAR_SIZE_UNKNOWN";X=IlF(c)||0;if(C){var W,p=(W=D.avatarClusterSize)!=null?W:"AVATAR_SIZE_M";C=IlF(p);var g,a,O=Math.min((a=(g=D.avatars)==null?void 0:g.length)!=null?a:0,4),P;return{avatars:((P=D.avatars)==null?void 0:P.slice(0,4))||[],avatarSizeInPx:X,avatarStackStyle:{width:C+"px",height:C+"px",position:"relative"},avatarStyle:function(u){var Q=
Da5({clusterSize:gqo(p),numAvatarsInCluster:O,avatarIndex:u});var B=IlF(p);O===3&&u===2?(B=(B-Q)/2,B=(_.q6("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*B):B=void 0;return{position:"absolute",top:O===2&&u===1||O===3&&u===2||O===4&&u>=2?"0":void 0,bottom:O===2&&u===0||O>2&&u<2?"0":void 0,left:O===2&&u===1||O>2&&(u===1||u===3)?"0":void 0,right:O<=3&&u===0||O===4&&(u===0||u===2)?"0":void 0,transform:B?"translateX("+B+"px)":void 0,width:Q+"px",height:Q+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(u){return{clusterSize:gqo(D.avatarClusterSize),numAvatarsInCluster:O,avatarIndex:u}},
avatarButtonCustomClassName:void 0}}var k;return{avatars:((k=D.avatars)==null?void 0:k.slice())||[],avatarSizeInPx:X,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:OMF(c),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
Pzr=function(D,C,X){return function(){k_(D,{form:{element:C},commandController:X})}};
$a5=function(D){switch(D){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
vqh=function(D){switch(D){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
iMt=function(D){if("accessibilityText"in D)return D.accessibilityText||"";if("title"in D){var C,X,c;return((C=D.title)==null?void 0:(X=C.accessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label)||""}if("accessibility"in D){var W,p;return((W=D.accessibility)==null?void 0:(p=W.accessibilityData)==null?void 0:p.label)||""}return""};
kWn=function(D){return"inlinePlayerData"in D};
nT=function(D){return new uXJ(D)};
QPr=function(D){switch(D){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"}};
B7J=function(D){switch(D){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
bM5=function(D){switch(D){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}};
rB5=function(D){return function(C){D&&(D.thumbnailElRef=C.thumbnailElRef,D.thumbnail=C.thumbnail,D.thumbnailOverlays=C.thumbnailOverlays,D.thumbnailSize=C.thumbnailSize)}};
KkW=function(D){switch(D){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
xaW=function(D){var C=_.U(_.Li(!1,void 0,"E6wDDe")),X=C.next().value,c=C.next().value;_.JU(function(){var W=D==null?void 0:D();if(W){var p=_.iX().resolve(_.vK(h6t));if(p){var g={triggeringElement:W,onDwellTriggeredFn:function(){c(!0)},
onDwellEndFn:function(){c(!1)}};
p.registerElement(g);_.z3(function(){_.wU(p,g)})}}});
return X};
Lkm=function(D,C,X){X?X(C):_.FV(C,D.target?{form:{element:D.target}}:void 0)};
_.Fv=function(D,C,X,c){return function(W){_.Jw(function(){function p(k){k=k.composedPath();k=_.U(k);for(var u=k.next();!u.done;u=k.next()){u=u.value;if(u===W)break;if(u.className.indexOf("HostIsClickableAdComponent")>=0||u.tagName==="A".toString()||u.tagName==="BUTTON".toString())return!0}return!1}
var g=new Map,a,O=(a=D())==null?void 0:a.onTap;if(O){a=function(k){p(k)||Lkm(k,O,C)};
var P=function(k){p(k)||k.key!=="Enter"||Lkm(k,O,C)};
(X==null?0:X())||_.b("enable_web_home_top_landscape_image_layout_level_click")?(W.addEventListener("tap",a),g.set("tap",a)):(W.addEventListener("click",a),g.set("click",a));if(c==null?0:c())W.addEventListener("keydown",P),g.set("keydown",P)}_.z3(function(){for(var k=_.U(g),u=k.next();!u.done;u=k.next()){var Q=_.U(u.value);u=Q.next().value;Q=Q.next().value;W.removeEventListener(u,Q)}})},"D7XqOc")}};
sPj=function(D,C){var X,c=(X=D.interaction)==null?void 0:X.onTap;if(D=_.nb({elementsCommand:c,forceNewState:!0,skipOnClick:!0}))return D.onclick=function(W){iDr(W)&&(W.preventDefault(),c&&Lkm(W,c,C))},w2(D)?D:void 0};
maZ=function(D){switch(D){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
e6R=function(D){switch(D){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
Eqd=function(D){switch(D){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"}};
_.t7r=function(D){return _.b("rich_grid_enable_dynamic_offset")&&D?Math.max((D-_.BK("rich_grid_dynamic_offset_anchor_width",1300))/100*_.BK("rich_grid_dynamic_offset_offset_per_100",10),_.BK("rich_grid_dynamic_offset_lower_bound",-60)):0};
N7r=function(D,C){switch(C){case 4:return 16;case 1:return D<528?16:D<1024?32:48;case 2:return(D>=528?16:8)/2;case 3:return(D<528?16:D<1024?32:48)+(D>=528?16:8)/2;default:return 0}};
Ylm=function(D){var C=D.originalContainerWidth;var X=D.sizing;var c=D.standardUnit;if(D.isCompactList&&C<528)return 1;switch(X){case "STANDARD":return c;case "COMPACT":return c+1;case "EXTRA_COMPACT":return _.b("web_responsive_extra_compact_2x")?c*2:_.b("web_responsive_current")?c===1?2:c%2===0?c/2*3:c+2:c<4?c*2:Math.ceil(c*3/2);case "MINI":return c>1?c*2:3;default:return c}};
nq3=function(D){var C=D.containerWidth;var X=D.peek;var c=D.gutter;var W=D.numItems;D=D.ignoreMaxWidthLimit;C=X?Math.max((C-X-c*W)/W,0):Math.max((C-c*(W-1))/W,0);return D?C:Math.min(C,yBF)};
_.Zw=function(D){var C=D.containerWidth;var X=D.hasPeek;var c=D.sizing;var W=D.marginSettings;var p=D.isCompactList;var g=D.enableFullBleedForSingleCol;var a=D.standardUnitMinWidth;c=c||"STANDARD";X=!!X;D=C>=528?16:8;var O=X?C>=528?48:24:0;W=N7r(C,W);var P=Math.max(C-W*2,0);a=_.b("kevlar_disable_min_width_override")?void 0:a;a=Math.min(Math.max(Math.floor((P-O+D)/((a!=null?a:wDR)+_.t7r(C)+D)),1),6);var k=(g=!!g&&a===1)||a===1&&c!=="STANDARD";X=X||k?P:Math.min(P,(yBF+D)*a-D);c=Ylm({originalContainerWidth:C,
sizing:c,standardUnit:a,isCompactList:p});return{itemWidth:nq3({containerWidth:X,peek:O,gutter:D,numItems:c,ignoreMaxWidthLimit:k}),gutter:D,maxContainerWidth:X,numItems:c,margin:g?0:W,contentMargin:N7r(C,1),typographyBump:nq3({containerWidth:X,peek:O,gutter:D,numItems:a,ignoreMaxWidthLimit:k})>400&&!(p&&C<528),standardUnit:a}};
GU=function(D){switch(D){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.FkF=function(D){if(D){var C;if((C=D.responsiveContainerConfiguration)==null?0:C.responsiveSize)return GU(D.responsiveContainerConfiguration.responsiveSize);if(D.layoutSizing)switch(D.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"}}};
ZMF=function(D){if(D.fullbleed)return 1;switch(D.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
JBh=function(D,C,X,c,W,p,g,a,O){a:if(D===4&&c==="LOCKUP_CONTENT_TYPE_SOURCE")var P=1;else switch(D){case 3:P=1;break a;default:P=0}var k=GWJ(D,c);a:switch(D){case 4:p=!!(p&&p<100);break a;default:p=!1}a:switch(D){case 3:case 4:var u=c==="LOCKUP_CONTENT_TYPE_CHANNEL"||c==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:u=!1}return{metadataOnThumbnail:k,isOverlay:a||k,isCard:V7r(c,g),sizing:C!=null?C:"STANDARD",typographyBump:X!=null?X:!1,isTiny:p,isCentered:u,isCollection:T7J(c),arrangement:P,addMarginForFullbleed:D===
1&&c!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:D===1&&c==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:HMh(c,W,O),disableRounding:D===5||V7r(c,g)||D===1&&c==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:T7J(c)?2:0,useLegacyTypography:!(O==null||!O.useLegacyTypography),useRichGridLegacyTypography:!(O==null||!O.useRichGridLegacyTypography)&&!_.b("web_enable_typography_bump"),compactMetadata:P===0&&c==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:O==null?void 0:O.onFocusEffect,titleMaxLines:c==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
T7J=function(D){switch(D){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
V7r=function(D,C){if(C&&D==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(D){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
GWJ=function(D,C){if(C==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(D){case 5:return!0;case 4:return!1;default:return!1}};
HMh=function(D,C,X){if(C&&(X==null||!X.alwaysRespectPodcastShowAspectRatio||D!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(D){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}};
_.VX=function(D){if(D){var C;return((C=_.iX().resolve(_.vK(_.Hc)))==null?0:C())?D.darkThemeImage:D.image}};
M7h=function(D,C,X,c,W,p){if(W&&p&&C==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:W,height:p};if(!X)return{};W=X.size;X=X.allowFullWidth;if(C==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&X)return{fullWidth:!0};if(W===void 0)return{};switch(D){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:W,height:W};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:W,height:1/z6m*W};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:W*
jPm,height:W};default:return(c==null?0:c.height)&&(c==null?0:c.width)?c.width/c.height>1?{maxWidth:W*jPm}:{maxWidth:W}:{maxWidth:W}}};
qld=function(D){var C;return D&&((C=_.VX(D.themedImage))!=null?C:D.image)};
flF=function(D){var C;return D==null?void 0:(C=D.sources)==null?void 0:C[0]};
dah=function(D){switch(D){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.R6t=function(D){if(D)return"content-id-"+D};
ll5=function(D){switch(D.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"}}};
Dud=function(D){var C=_.TU.currentPageSubTypeSelector(_.qw().getState())||"";return D?D+C:""};
C2n=function(D){switch(D){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
cLR=function(D){var C=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],X=_.U(_.Li(void 0,void 0,"JrqNsb")),c=X.next().value,W=X.next().value,p=_.U(_.Li(void 0,void 0,"rWytse"));X=p.next().value;var g=p.next().value;p=_.U(_.Li(void 0,void 0,"DHRqxe"));var a=p.next().value,O=p.next().value;return{touchFeedbackEvents:{pointerUpEvent:c,pointerDownEvent:X,pointerLeaveEvent:a},touchFeedbackOnPointerUp:_.I_(function(P){Xar(_.mY(P),C)||(W(P),g(void 0),O(void 0))}),
touchFeedbackOnPointerDown:_.I_(function(P){D==null||D(P);Xar(_.mY(P),C)||(g(P),W(void 0),O(void 0))}),
touchFeedbackOnPointerLeave:_.I_(function(P){Xar(_.mY(P),C)||(O(P),g(void 0),W(void 0))})}};
Xar=function(D,C){C=C===void 0?[]:C;C=[].concat(_.VB(C),["BUTTON".toString()]);D=_.U(D);for(var X=D.next();!X.done;X=D.next()){X=X.value;for(var c=_.U(C),W=c.next();!W.done;W=c.next())if(X.tagName===W.value)return!0}return!1};
om3=function(D){switch(D){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"}};
W6h=function(D){return D.scrollHeight-D.offsetHeight>1};
pa3=function(D,C){var X;return T2(D,((X=D.content)==null?void 0:X.length)||0,!C)};
gmj=function(D,C,X,c,W,p){if(!C||ST5){var g;return T2(D,((g=D.content)==null?void 0:g.length)||0,!0)}C=c.value;if(!X.value||!C||!D.content)return D;X=0;c=D.content.length;g=0;Uud||(Uud=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var a=Uud;for(W=W*p*a;X<=c;)p=Math.floor(X+(c-X)/2),a=T2(D,p)||D,C.firstChild&&(C.firstChild.textContent=a.content),C.scrollHeight>W?c=p-1:(g=p,X=p+1);return T2(D,g)};
aPW=function(D,C){var X,c;return(((X=D.content)==null?void 0:X.length)||0)>(((c=C.content)==null?void 0:c.length)||0)};
IPj=function(D,C,X,c,W,p){var g=_.aX("truncated-text-content"),a=_.aX("truncated-text-content"),O=_.aX("button"),P=_.aX("button"),k=_.aX("button"),u=_.iX().resolve(_.z2),Q=_.U(_.d2(function(){return pa3(D(),W())})),B=Q.next().value,K=Q.next().value;
Q=_.U(_.d2(function(){return aPW(D(),B())}));
var L=Q.next().value,t=Q.next().value,Y=null;_.Jw(function(){function y(){if(g.value&&O.value&&k.value){var H=p()?D():gmj(D(),W(),g,a,C(),X());K(H);requestAnimationFrame(function(){if(g.value&&O.value&&k.value){var q=W6h(g.value)||aPW(D(),H);t(q);if(!c()){var R=W6h(g.value),ph=X(),Om=g.value,xj=O.value,Bo=k.value,r5=u==="rtl";if(Om&&xj){var Fd=xj.offsetLeft;r5&&(Fd=Om.offsetWidth-xj.offsetWidth-xj.offsetLeft);if(q){q=xj.offsetWidth;xj=Om.offsetWidth;var GJ=R?xj-q-70:Fd-70;ph="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
ph+"rem,\n      #000 "+ph+"rem,\n      #000 100%), linear-gradient(\n      to "+((r5?"left":"right")+",\n      #000 0px,\n      #000 "+GJ+"px,\n      transparent "+(R?xj-q:GJ+70)+"px)");Om.style.setProperty("-webkit-mask-image",ph);Om.style.setProperty("mask-image",ph)}else Om.style.setProperty("-webkit-mask-image",""),Om.style.setProperty("mask-image","");R?r5?(Bo.style.setProperty("left","0"),Bo.style.setProperty("right","unset")):(Bo.style.setProperty("left",""),Bo.style.setProperty("right","0")):
r5?(Bo.style.setProperty("left","unset"),Bo.style.setProperty("right",Fd+"px")):(Bo.style.setProperty("left",Fd+"px"),Bo.style.setProperty("right","unset"))}}}})}}
var J,T;(J=Y)==null||(T=J.stop)==null||T.call(J);J=new _.Al(y,17);y();Y=J},"KjwIxd");
_.JU(function(){K(pa3(D(),W()));t(aPW(D(),B()));var y=function(){Uud=void 0;var T,H;(T=Y)==null||(H=T.fire)==null||H.call(T)};
if(window.ResizeObserver){var J=new ResizeObserver(y);J.observe(g.value);_.z3(function(){var T,H;(T=Y)==null||(H=T.stop)==null||H.call(T);J.disconnect()})}else window.addEventListener("resize",y),_.z3(function(){var T,H;
(T=Y)==null||(H=T.stop)==null||H.call(T);window.removeEventListener("resize",y)})});
return{isTruncated:L,displayText:B,contentRef:g,hiddenRef:a,placeholderTruncationTextRef:O,hiddenTruncationTextRef:P,truncationTextRef:k}};
OOh=function(D){return{content:D!=null?D:""}};
ALm=function(D){return _.Y7(D.onTap)||_.EN(D.rendererContext)};
P2h=function(D){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:D.overflowMenuA11yLabel,onTap:function(C){C.preventDefault();C.stopPropagation();if(D.overflowMenuOnTap){var X=_.nb({elementsCommand:D.overflowMenuOnTap,forceNewState:!0});if(X==null?0:X.onclick)X.onclick(C)}}}};
_.HX=function(D,C,X,c,W){c=c===void 0?{}:c;if(!W||Math.random()<5E-4){C=C||null;X=X||null;D=D instanceof Error?D:new _.Zf(D);if(D.args)for(var p=_.U(D.args),g=p.next();!g.done;g=p.next())g=g.value,g instanceof Object&&(c=Object.assign({},g,c));c.category="H5 Ads Control Flow";C&&(c.slot=C?"slot:  "+C.slotType:"");X&&(c.layout=X?"layout:  "+X.layoutType:"",c.layoutId=X.layoutId);W&&(c.known_error_aggressively_sampled=!0);D.args=[c];_.fQ(D)}};
_.$ud=function(D,C){C=_.RI(C);_.DS(D,"yt-open-popup-action",[C,D])};
_.JG=function(D,C){_.$ud(D,_.jV(C))};
iOn=function(D){if(!D)return"";if(vmW[D])return vmW[D];zU||(zU=_.mv("A"));zU.href!==D&&ff(zU,D);var C=zU.pathname;vmW[D]=C.startsWith("/")?C:"/"+C;return vmW[D]};
kKt=function(){var D=iOn(window.location.href);if(D==="/")return"home";if(D.startsWith("/results"))return"search";if(D.startsWith("/watch"))return"watch";if(D.startsWith("/shorts"))return"shorts";if(D.startsWith("/hashtag"))return"hashtag";if(D.startsWith("/create_channel"))return"create_channel";if(D.startsWith("/@")||D.startsWith("/user/")||D.startsWith("/channel/"))return"channel";if(D.startsWith("/experiments"))return"experiments";if(D.startsWith("/sponsor_channel"))return"sponsorship";if(D.startsWith("/select_site"))return"settings";
if(D.startsWith("/locate"))return"locate";if(D.startsWith("/redeem"))return"redeem";if(D.startsWith("/musicpremium")||D.startsWith("/premium")||D.startsWith("/red"))return"premium";if(D.startsWith("/paid_memberships"))return"paid_memberships";if(D.startsWith("/oops"))return"oops";if(D.startsWith("/clip"))return"clip";var C;return(jr==null?void 0:(C=jr.response)==null?void 0:C.page)==="404"?"404":D.startsWith("/feed/history")?"history":D.startsWith("/feed/library")?"library":D.startsWith("/feed/subscriptions")?
"subscriptions":D.startsWith("/feed/trending")?"trending":D.startsWith("/feed/news_destination")?"news":D.startsWith("/playlist")?"playlist":D.startsWith("/minor_moment")?"minor_moment":D.startsWith("/playable/")||D.match("^/playables/(?!saved).")?"mini_app":D.startsWith("/playables")?"playables":D.startsWith("/create/live/join")?"open_in_app":D.startsWith("/feed/explore")?"explore":"browse"};
_.qH=function(){var D=jr==null?void 0:jr.response,C=D==null?void 0:D.endpoint;if(!C)return(D==null?void 0:D.page)==="watch"?"watch":kKt();var X;D=(X=_.r(C==null?void 0:C.commandMetadata,_.ge))==null?void 0:X.webPageType;X=!1;if(D&&!uYt.includes(D))switch(D){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 c;return((c=_.r(C==null?void 0:C.commandMetadata,_.ge))==null?0:c.url)&&iOn(_.r(C.commandMetadata,_.ge).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var W;return(C=(W=_.r(C,_.Pl))==null?void 0:W.browseId)?Qjo[C]||"browse":"browse";default:X=!0}if(_.r(C,_.MH)||_.r(C,B9J))return"sponsorship";W=iOn(window.location.href);if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/create_channel"))return"create_channel";
if(_.r(C,_.oX)&&W.startsWith("/shorts"))return"shorts";if(_.r(C,_.oX)&&W.startsWith("/watch"))return"watch";X&&(C=new _.Zf("Unsupported mWeb page type",{pathname:W,webPageType:D}),_.MN(C));return"browse"};
fT=function(D,C,X,c){return D&&C?D!==X||C!==c?(_.HX(Error("Kh"),void 0,void 0,{"stored-slot":D,"stored-layout":C,"latest-slot":X,"latest-layout":c}),!1):!0:!1};
rLm=function(D,C,X){return D({targetId:C},function(c){return X.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},c,{contents:[X.continuationItems?_.r(X.continuationItems[0],bOm):{}]}):X.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},c,{header:X.continuationItems?X.continuationItems[0]:void 0}):Object.assign({},c,{contents:X.continuationItems?X.continuationItems:[]})})};
K6d=function(D,C,X,c){if(C=C.trackingParams){var W,p=(W=X.getScreenLayer)==null?void 0:W.call(X);X=_.LN(p);W=_.xr(p);if(X&&W){var g=_.bO(C);_.b("combine_ve_grafts")?D.graftServerVe(C,W,p):_.F_(X,W,g);c==null||c(g)}}};
xuR=function(D){var C;return((C=h0o.get(D))==null?void 0:C.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
mum=function(D,C){var X={type:C.slotType,controlFlowManagerLayer:L63.get(C.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C.slotEntryTrigger&&(X.entryTriggerType=C.slotEntryTrigger.triggerType);C.slotPhysicalPosition!==1&&(X.slotPhysicalPosition=C.slotPhysicalPosition);if(D){X.debugData={slotId:C.slotId};if(D=C.slotEntryTrigger)X.debugData.slotEntryTriggerData=sjr(D);D=C.slotFulfillmentTriggers;X.debugData.fulfillmentTriggerData=[];D=_.U(D);for(var c=D.next();!c.done;c=D.next())X.debugData.fulfillmentTriggerData.push(sjr(c.value));
C=C.slotExpirationTriggers;X.debugData.expirationTriggerData=[];C=_.U(C);for(D=C.next();!D.done;D=C.next())X.debugData.expirationTriggerData.push(sjr(D.value))}return X};
sjr=function(D,C){var X={type:D.triggerType};C!=null&&(X.category=C);D.triggeringSlotId!=null&&(X.triggerSourceData||(X.triggerSourceData={}),X.triggerSourceData.associatedSlotId=D.triggeringSlotId);D.triggeringLayoutId!=null&&(X.triggerSourceData||(X.triggerSourceData={}),X.triggerSourceData.associatedLayoutId=D.triggeringLayoutId);return X};
e0m=function(D,C,X,c){C={opportunityType:C};D&&(c||X)&&(c=_.Gv(c||[],function(W){return mum(D,W)}),C.debugData=Object.assign({},X&&X.length>0?{associatedSlotId:X}:{},c.length>0?{slots:c}:{}));
return C};
Emt=function(D){return dU(D.opportunityAdapterMap).concat(dU(D.triggerAdapterMap)).concat(dU(D.fulfillmentAdapterFactoryMap)).concat(dU(D.slotAdapterFactoryMap)).concat(dU(D.layoutRenderingAdapterFactoryMap))};
dU=function(D){var C=[];D=_.U(D.values());for(var X=D.next();!X.done;X=D.next())X=X.value,X.isAdsControlFlowEventListener&&C.push(X);return C};
lK=function(D){var C=D.slotId,X=D.slotType,c=D.slotPhysicalPosition;return C===void 0?new Ra("Cannot construct a slot due to the missing id.",{adSlotMetadata:D}):X===void 0?new Ra("Cannot construct a slot due to the missing type.",{adSlotMetadata:D}):c===void 0?new Ra("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:D}):{slotId:C,slotType:X,slotPhysicalPosition:c,managerLayer:"external",adSlotLoggingData:D.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new ttm}};
N9m=function(D){var C=D.layoutId,X=D.layoutType;return C===void 0?new DT("Cannot construct a layout due to the missing id.",{adLayoutMetadata:D}):X===void 0?new DT("Cannot construct a layout due to the missing type.",{adLayoutMetadata:D}):{layoutId:C,layoutType:X,managerLayer:"external",adLayoutLoggingData:D.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new ttm,interactionLoggingAdsClientData:{}}};
YTZ=function(D){if(D.querySelector("img")){var C=D.querySelector("img");C.addEventListener("error",function(){SDr(C.src).then(function(X){(X=_.J2(X).toString())?C.src=X:C.removeAttribute("src")}).catch(function(){C.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
X1=function(D,C){if(C&&(yLn(C.viewableCommand)||yLn(C.endOfSessionCommand))){var X=nmd(C==null?void 0:C.viewableCommand);C=nmd(C==null?void 0:C.endOfSessionCommand);if(!Cm){var c=_.BK("custom_active_view_tos_timeout_ms");Cm=c>0&&c!==36E5?new war(F6d(),c):new war(F6d())}ZOn(Cm,D);GKh(Cm,D,X,C)}};
cC=function(D){Cm&&ZOn(Cm,D)};
F6d=function(){var D=_.q6("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
yLn=function(D){D=_.Y7(D);return!(D==null||!D.loggingUrls)&&D.loggingUrls.length>0};
nmd=function(D){if(!D)return[];var C=[],X,c;((c=(X=_.Y7(D))==null?void 0:X.loggingUrls)!=null?c:[]).forEach(function(W){W.baseUrl&&C.push(W.baseUrl)});
return C};
VtR=function(D){if(_.b("stop_av_measurement_on_detach"))return function(){cC(D)}};
T9m=function(D){return function(){_.b("stop_av_measurement_on_detach")&&cC(D)}};
HO5=function(D){if(_.b("stop_av_measurement_on_detach"))return function(){cC(D)}};
JLm=function(D){return D.shorts.isDesktopSmallWidth};
_.z0R=function(D){return D.shorts.isShortsActive};
_.jjt=function(D){return D.shorts.isWatchWhileMode};
_.o9=function(D){return D.shorts.isFullscreen};
_.WC=function(D){return D.shorts.isShortsPipActive};
qTr=function(D){var C,X;if(D=(C=_.r(D.reelsAdCardButtoned,Mtn))==null?void 0:(X=C.animatedRenderingConfig)==null?void 0:X.easeOutSeconds)return D+"s"};
dut=function(D,C,X){return _.I(function(c){return c.return(new Promise(function(W){var p=new Image;p.onload=function(){W(new fP3(D,C,X,p.naturalWidth,p.naturalHeight))};
p.src=X.toString()}))})};
R0R=function(D,C){return Math.round(D/1E-5)===Math.round(C/1E-5)};
lPm=function(D,C){return Math.round(D/1E-5)===Math.round(C/1E-5)};
DKF=function(D,C){return D.year===C.year&&D.month===C.month&&D.day===C.day};
Cfn=function(D,C){return D.year!==C.year?D.year<C.year:D.month!==C.month?D.month<C.month:D.day<C.day};
cqt=function(D){return D.day===X1R(D.year,D.month)?D.month===11?{year:D.year+1,month:0,day:1}:{year:D.year,month:D.month+1,day:1}:{year:D.year,month:D.month,day:D.day+1}};
oGm=function(){var D=new Date,C={year:D.getFullYear(),month:D.getMonth(),day:D.getDate()};return{start:C,end:{year:D.getFullYear()+2,month:D.getMonth(),day:D.getDate()},selectedDate:cqt(C)}};
W9o=function(D){return(new z1(2)).format(new Date(D.year,D.month,D.day))};
p1R=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
SZm=function(D,C){D=(D+(Number(C.utcOffsetSec)+(new Date(D*1E3)).getTimezoneOffset()*60))*1E3;C=p1R(new Date(D));return{date:C,secondsSinceMidnight:Math.floor((D-(new Date(C.year,C.month,C.day)).getTime())/1E3)}};
UKt=function(D,C){C=C.months.findIndex(function(X){return X.year===D.year&&X.month===D.month});
return C>=0?C:void 0};
gG5=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENTBOX")return!0}catch(C){return!1}return gG5(D.parentNode)};
pm=function(D){return D?!(D.tagName!=="A"||!D.href||!D.classList.contains("yt-simple-endpoint")):!1};
aBr=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
IBR=function(D,C,X){if(!D)return null;var c=pm(D);if(c&&X)return C=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+C);if(c&&!X)return document.createTextNode("");if(aBr(D))return X=D.alt,D=D.dataset.emojiId,!D&&C&&(C=_.Sb(C,X))&&C.isCustomEmoji&&(D=C.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(X);c=D.cloneNode(!1);for(var W=0;W<D.childNodes.length;++W){var p=IBR(D.childNodes[W],C,X);p&&c.appendChild(p)}return c};
UW=function(D){return D?pm(D)?D:UW(D.lastChild):null};
Ogj=function(D){return D?pm(D)?D:Ogj(D.firstChild):null};
Aqn=function(D){if(!D)return null;for(var C=D.previousSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.previousSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.previousSibling;else break;(C=UW(C))?D=C:D=(D=D.parentNode)?UW(D.previousElementSibling):null;return D};
Pfj=function(D){if(!D)return null;for(var C=D.nextSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.nextSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.nextSibling;else break;return(C=Ogj(C))?C:Pfj(D.parentNode)};
$Kj=function(D){var C=_.gE(),X=C.JSC$11509_getStartNode();if(!gG5(X.parentNode))return null;C=C.JSC$11509_getStartOffset();if(X.nodeType===Node.TEXT_NODE){var c=_.zv(X,pm);if(c){if(D&&C===0||!D&&C===X.length)return c}else{if(D&&C===X.length)return!X||X.nodeName==="BR"||X.nextElementSibling&&_.a9(X.nextElementSibling,"display")==="block"?null:Ogj(X.nextElementSibling);if(!D&&C===0)return X?UW(X.previousElementSibling):null}}if(X.nodeType===Node.ELEMENT_NODE)if(D){if(0<=C&&C<X.childNodes.length)return Ogj(X.childNodes[C])}else if(0<
C&&C<=X.childNodes.length)return UW(X.childNodes[C-1]);return null};
vGZ=function(D,C,X){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(X){var c=Aqn(D);if(c&&!/^\s+\S/.test(D.wholeText.substr(0,C)))return c}else if((c=Pfj(D))&&!/\S\s+/.test(D.wholeText.substr(C,D.wholeText.length)))return c;return D.nodeType===Node.ELEMENT_NODE?X?Aqn(D.childNodes[C]):Pfj(D.childNodes[C]):vGZ(D.parentNode,C,X)};
igh=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var C="";for(D=D.firstChild;D;D=D.nextSibling)C+=igh(D);return C;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
I9=function(D,C){return D.year===C.year&&D.month===C.month&&D.day===C.day};
OW=function(D,C){return D.year!==C.year?D.year<C.year:D.month!==C.month?D.month<C.month:D.day<C.day};
k75=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
uTW=function(D){var C=OzW;C=C===void 0?OzW:C;C(new Date(D.year,D.month,D.day))};
Am=function(D){return k75(new Date(Number(D.seconds)*1E3))};
Q8t=function(D){return D.year!==void 0&&D.month!==void 0&&D.day!==void 0};
BAZ=function(D){return D.start!==void 0&&D.end!==void 0};
bgR=function(D){return BAZ(D)?D.start:D};
rqo=function(D){return BAZ(D)?D.end:void 0};
h9j=function(D,C){for(var X=[],c=new Date(D.start.year,D.start.month);c.getFullYear()<D.end.year||c.getFullYear()===D.end.year&&c.getMonth()<=D.end.month;){var W=X,p=W.push,g=c.getFullYear(),a=c.getMonth(),O=D,P=C,k=void 0,u=[],Q=Object.freeze({extraCssClass:"invisible"}),B=new Date(g,a),K=k75(B);B=B.getDay();for(var L=k75(new Date);K.month===a;){B!==K95&&k||(k=Array.from({length:7}).fill(Q),u.push(k));var t={date:{year:g,month:a,day:K.day},extraCssClass:"",debugClass:""};t.extraCssClass=P(t.date,
K,L,O).trim();k[(B-K95+7)%7]=t;K=K.day===X1R(K.year,K.month)?K.month===11?{year:K.year+1,month:0,day:1}:{year:K.year,month:K.month+1,day:1}:{year:K.year,month:K.month,day:K.day+1};B=(B+1)%7}p.call(W,{weeks:u,monthLabel:PC.SHORTMONTHS[a]+" "+g,year:g,month:a,monthLabelExtraCssClass:u[0][2]===Q?"shift-down-label":""});c.setMonth(c.getMonth()+1)}return X};
xKn=function(D,C){C=C.months.findIndex(function(X){return X.year===D.year&&X.month===D.month});
return C>=0?C:void 0};
s85=function(D,C){a:{var X=X===void 0?[2,3]:X;X=_.U(X);for(var c=X.next();!c.done;c=X.next()){var W=new Date;if((new L9t(c.value)).parse(C,W,{validate:!0})){W.setHours(0,0,0,0);C=W;break a}}C=null}if(!C)return{isValid:!1,value:void 0};C=k75(C);X=D.end;return OW(C,D.start)||OW(X,C)?{isValid:!1,value:void 0}:{isValid:!0,value:C}};
NAj=function(D){var C=mK3;C=C===void 0?e9h:C;var X=D.columnsToShow||[],c=EGm(D.columnDimensions,D.columnsToShow,D.leftFloatingColumns,C);return X.map(function(W,p){var g=D.columns[W];if(g===void 0)throw Error("Qh");var a=c?c[p]:"";var O=D.getCustomTooltip?D.getCustomTooltip(W,g.headerTooltipParagraphs):g.headerTooltipParagraphs;var P=t8d(D,W);return{type:W,index:p,style:a,classes:P,headerName:g.headerName||"",headerIcon:g.headerIcon,headerTooltipParagraphs:O||[],headerTooltipHelpContext:g.headerTooltipHelpContext,
sortOrders:g.sortOrders||[],selectionState:g.isSelectionCheckbox?D.selectionState:void 0}})};
t8d=function(D,C){var X=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],c=D.columns[C];if(c===void 0)return"";var W=X.includes("DEFAULTS")&&c.cssClass?[c.cssClass]:[];if(X.includes("SORTING")){c.sortOrders&&c.sortOrders.length&&W.push("sortable");if(D.sorting&&D.sorting.columnType===C)a:switch(D.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var p="column-sorted";break a;default:p=""}else p="";p&&W.push(p)}X.includes("FLOATING")&&(C=D.columnsToShow.indexOf(C),D.leftFloatingColumns&&C<D.leftFloatingColumns&&
W.push("floating-column"),D.leftFloatingColumns&&C===D.leftFloatingColumns-1&&W.push("last-floating-column"));X.includes("RIGHT_ALIGN")&&c.rightAlignHeader&&W.push("right-align");return W.filter(function(g){return g}).join(" ")};
EGm=function(D,C,X,c){X=X===void 0?0:X;c=c===void 0?e9h:c;if(D){var W=[],p=0;YZn(D,C,c).forEach(function(g,a){var O="min-width:"+g.minWidth+"px;padding-left:"+g.paddingLeft+"px;padding-right:"+g.paddingRight+"px;flex:"+g.flexGrow+" 0 "+g.minWidth+"px;";g.maxWidth!==Infinity&&(O=[O,"max-width:"+g.maxWidth+"px;"].join(""));p>0&&a<X&&(O=[O,"left:"+p+"px;"].join(""));W.push(O);p+=g.minWidth+g.paddingLeft+g.paddingRight});
return W}};
YZn=function(D,C,X){X=X===void 0?e9h:X;return C.map(function(c,W){c=D&&D[c]||{};var p=W===0?X.paddingLeftFirstColumn:X.padding;c.paddingLeft!==void 0&&(p=c.paddingLeft);W=W===C.length-1?X.paddingRightLastColumn:X.padding;c.paddingRight!==void 0&&(W=c.paddingRight);return{paddingLeft:p,paddingRight:W,minWidth:c.minWidth!==void 0?c.minWidth:X.minWidth,maxWidth:c.maxWidth!==void 0?c.maxWidth:X.maxWidth,flexGrow:c.flexGrow!==void 0?c.flexGrow:X.flexGrow}})};
yqn=function(D){var C=D.reduce(function(c,W){var p=W.columnId,g={};W.headerText&&(g.headerName=_.Mh(W.headerText));W.rightAlignHeader&&(g.rightAlignHeader=W.rightAlignHeader);var a;if((a=W.headerIcon)==null?0:a.iconType)g.headerIcon=_.g2(W.headerIcon.iconType);c[p]=g;return c},{}),X=D.filter(function(c){return!c.hideColumn}).map(function(c){return c.columnId});
D=D.filter(function(c){return!!c.dimensions}).reduce(function(c,W){c[W.columnId]=W.dimensions;
return c},{});
return{columns:C,columnsToShow:X,columnDimensions:D}};
_.nGr=function(D){return D?D.simpleText?D.simpleText:D.runs?D.runs.map(function(C){return C.text}).join(""):"":""};
TAn=function(D){var C=D.data;var X=D.onTap;var c=D.isSelected;var W=D.onFocusIn;if(!C)return{};D=w1r(C);c===void 0&&(c=C==null?void 0:C.isSelected);var p;return{text:F9Z(C,D),startIcon:(p=C.icon)==null?void 0:p.iconType,state:c?0:2,type:0,style:Zg3(C),onTap:G7Z(C,X),accessibilityLabel:V8r(C,D),onFocusIn:function(){return W==null?void 0:W()}}};
F9Z=function(D,C){if(!C)return D.text?_.nGr(D.text):void 0};
Zg3=function(D){var C;switch((C=D.style)==null?void 0:C.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
G7Z=function(D,C){return function(X){C==null||C(X,D)}};
w1r=function(D){D=D.style&&D.style.styleType;return!ST5&&D==="STYLE_EXPLORE_LAUNCHER_CHIP"};
V8r=function(D,C){if(C){var X,c,W;return(W=(X=D.accessibilityData)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label)!=null?W:F9Z(D,!1)}};
Hgo=function(){var D;return[function(C,X,c){return _.lE(D,C,X,c)},
function(C){D=C}]};
Jqo=function(D,C){return _.aI(D.entities,"chipEntity",C)};
j8j=function(D,C,X,c){return function(){var W=z9d.has(D.displayType)&&D.selected,p=W&&D.deselectCommand?D.deselectCommand:D.tapCommand;!p||W&&c||_.FV(p,{form:{element:C==null?void 0:C.value}});X==null||X()}};
qZh=function(D,C){a:{if(D=D.onUpdateText)if(D=_.r(D,_.N_)){var X;D=(X=_.r(D,M8m))==null?void 0:X.stepId;break a}D=void 0}X=D;C=C==null?void 0:C.stepStates;if(X&&C){var c,W;return(c=C[X])==null?void 0:(W=c.userQuery)==null?void 0:W.userQuery}};
$f=function(D){return{signalAction:{signal:D}}};
R9h=function(){return _.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?fBZ:_.dKJ};
lB5=function(D,C){D=D===void 0?"SOFT_RELOAD_PAGE":D;C=C===void 0?49504:C;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Ce(_.I7("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:C}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:D}}]}}}};
DpJ=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ce(_.I7("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:R9h()}};
Cvt=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ce(_.I7("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:R9h()}};
XA3=function(D,C){var X=_.Ce(_.I7("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),c=_.Ce(_.I7("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),W={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Ce(_.I7("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};W.serviceEndpoint=D?D:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[$f("SOFT_RELOAD_PAGE")]}};return{title:X,bodyText:c,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:W},
style:{value:C!=null?C:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
oHo=function(D){D=D===void 0?{}:D;return{title:_.Ce(D.localizedZeroStateTitleText===void 0?"":D.localizedZeroStateTitleText),bodyText:_.Ce(D.localizedZeroStateMessage===void 0?"":D.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ce(D.localizedZeroStateButtonText===void 0?"":D.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[cK3]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
pAh=function(D){D=D===void 0?{}:D;return{title:_.Ce(D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Ce(D.localizedOptInMessage===void 0?"":D.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ce(_.I7("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:_.Ce(_.I7("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:[Wgj]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
gHh=function(D,C){var X=C=C===void 0?{}:C;C=X.offlineTitleText===void 0?"":X.offlineTitleText;var c=X.offlineDescriptionText===void 0?"":X.offlineDescriptionText,W=X.formattedSupplementalText,p=X.actionButtonText===void 0?"":X.actionButtonText,g=X.titleText===void 0?"":X.titleText;X=X.descriptionText===void 0?"":X.descriptionText;var a={title:p,accessibilityText:p,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};D||(g=C,X=c,a={title:p,accessibilityText:p,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.Ce(g),titleLength:g.length,overrideTitleMaxFontSize:30,subtitle:_.Ce(X),supplementalText:W,primaryButton:{buttonViewModel:a},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[SQ3]},darkTileImage:{thumbnails:[Upo]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.OSm=function(D,C,X,c,W,p,g,a,O,P,k){W=W===void 0?!1:W;p=p===void 0?!1:p;g=g===void 0?0:g;a=a===void 0?-Infinity:a;O=O===void 0?!1:O;P=P===void 0?!1:P;k=k===void 0?!1:k;var u=[],Q=_.Ce(_.I7("SMART_DOWNLOADS",void 0,"Smart downloads")),B=_.Ce(a_F(g,a,D.length));a=g=void 0;P?g={statementBannerRenderer:gHh(k,c)}:W?D.length>0?a=I_m(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.b("kevlar_manual_downloads_above"),Q,B):O?a={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:_.I7("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.I7("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:_.Bph}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:p&&(a={backgroundPromoRenderer:{bodyText:_.Ce(_.I7("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"}}}):
p&&(a={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:_.I7("TURN_ON",void 0,"Turn on"),accessibilityText:_.I7("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=_.Ce(_.I7("YOUR_DOWNLOADS",void 0,"Your downloads"));c=void 0;C.length>0?(c=void 0,_.b("kevlar_display_downloads_numbers")&&(c=_.Ce(_.Op("VIDEO_COUNT",C.length))),c=I_m(C,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,X,c)):W||D.length||
P||(c={backgroundPromoRenderer:{bodyText:_.Ce(_.I7("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});g?u.push({richSectionRenderer:{content:g}}):a&&!_.b("kevlar_manual_downloads_above")&&u.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
c&&u.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:51721}}}});a&&_.b("kevlar_manual_downloads_above")&&u.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(C.length>0||W&&D.length>0&&!P)&&u.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ce(_.I7("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:u}};
_.Pv3=function(D){return AK5(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.$pt=function(D){return AK5(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
AK5=function(D,C){var X=[];D=I_m(D,C,!0);X.push({richSectionRenderer:{content:D}});return{contents:X}};
I_m=function(D,C,X,c,W){X=X===void 0?!1:X;var p="RESPONSIVE_SIZE_STANDARD";_.b("kevlar_standard_rich_grid_on_offline_home")&&C==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?p="RESPONSIVE_SIZE_STANDARD":_.b("kevlar_modern_downloads_compact")?p="RESPONSIVE_SIZE_COMPACT":_.b("kevlar_modern_downloads_extra_compact")?p="RESPONSIVE_SIZE_EXTRA_COMPACT":_.b("kevlar_modern_downloads_tiny")&&(p="RESPONSIVE_SIZE_TINY");D={isExpanded:X,contents:vC(D),entitySelectorType:C,responsiveContainerConfiguration:{responsiveSize:p}};
c&&(D.title=c);W&&(D.subtitle=W);X||(_.b("kevlar_smart_downloads_show_more_button")?(D.showMoreButton={buttonRenderer:{accessibility:{label:_.I7("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Ce(_.I7("SHOW_MORE",void 0,"Show more"))}},D.showLessButton={buttonRenderer:{accessibility:{label:_.I7("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Ce(_.I7("SHOW_LESS",void 0,"Show less"))}}):(D.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.I7("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}}}},D.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.I7("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}}}},D.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.I7("VIEW_ALL",void 0,"View all"),accessibilityText:_.I7("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:_.l5("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:D}};
vC=function(D){var C=[];D=_.U(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,oZd(X)){var c=C,W=c.push;var p=void 0;if(X==null?0:(p=X.videoEntity)==null?0:p.videoId){p=F$(_.fe().getState(),X.videoEntity.videoId);var g=_.fe().getState();var a=_.gJ(X.videoEntity.videoId,"mainVideoEntity");g=!!_.Ke(g.entities)[a];g={videoId:X.videoEntity.videoId,title:X$(X.videoEntity.title),shortBylineText:X$(X.channelEntity.title),thumbnail:X.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:g&&_.b("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:YqF(X.videoEntity.videoId,p,X.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.I7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};X.videoEntity.lengthSeconds&&(g.thumbnailOverlays=eSF(X.videoEntity.lengthSeconds,p));g.isWatched=p>0;_.b("kevlar_modern_downloads_page")&&(g.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:X.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.I7("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},g.badges=void 0);X=g}else X={};W.call(c,{richItemRenderer:{content:{videoRenderer:X},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(cyo(X)){c=C;W=c.push;var O=a=p=void 0,P=void 0,k=void 0,u=void 0,Q=void 0,B=void 0,K=void 0,L=void 0,t=void 0,Y=void 0;g=X.mainPlaylistEntity.playlistId;var y=X==null?void 0:(Y=X.mainPlaylistEntity)==null?void 0:(t=Y.thumbnailStyleData)==null?void 0:(L=t[0])==null?void 0:(K=L.value)==null?void 0:(B=K.collageThumbnail)==
null?void 0:B.coverThumbnail;if(g&&y){B=yFo(g);!_.b("enable_offline_playlist_page")&&(X==null?0:(Q=X.mainPlaylistEntity)==null?0:Q.videos)&&(Q=X==null?void 0:(u=X.mainPlaylistEntity)==null?void 0:(k=u.videos)==null?void 0:k[0],k=_.pe(Q).entityId,k=JSON.parse(k).videoId,k!==void 0&&(B=F$(_.fe().getState(),k),B=_.D7(k,g,void 0,void 0,B)));k=[];if(X==null?0:(P=X.mainPlaylistEntity)==null?0:(O=P.videos)==null?0:O.length)O=IYW(),P=Object,k=P.assign,u=(u=aYt(X==null?void 0:X.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Ce(u),icon:{iconType:"PLAYLISTS"}}}:void 0,k=[O,k.call(P,{},(a=u)!=null?a:{})];X={playlistId:g,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:y}},navigationEndpoint:B,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:k,title:X$(X.mainPlaylistEntity.title),shortBylineText:X$(X==null?void 0:(p=X.channelEntity)==null?void 0:p.title),badges:[{metadataBadgeRenderer:{label:_.I7("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.b("kevlar_modern_downloads_page")&&(X.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:vHJ,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:g,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.I7("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},X.badges=void 0)}else X=void 0;W.call(c,{richItemRenderer:{content:{playlistRenderer:X},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return C};
a_F=function(D,C,X){D=D?iSW(D):"";C!==void 0&&isFinite(C)?C===0?C=_.I7("UPDATING",void 0,"Updating..."):(C=mMW(new Date(C),new Date),C=_.I7("UPDATED_TIME",{relative_time:C},"Updated "+C)):C="";var c="";D&&C&&(c=" \u2022 ");if(X&&_.b("kevlar_display_downloads_numbers")){X=_.Op("VIDEO_COUNT",X);if(D||C)c=" \u2022 ";return X+c+D+c+C}return D+c+C};
kH5=function(D){return qSm(D.entities).length};
_.uw3=function(D,C,X){var c=GU(D.responsiveSize),W;D=!((W=D.responsiveMap)==null||!W.some(function(p){return p.containerSize==="CONTAINER_SIZE_NARROW"&&p.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:X,containerWidth:C,sizing:c,enableFullBleedForSingleCol:!1,isCompactList:c==="COMPACT"&&D}};
QY3=function(D,C){return _.aI(D.entities,"votingEntity",C)};
iy=function(D){if(D){var C;return((C=_.iX().resolve(_.vK(_.Hc)))==null?0:C())?D.darkTheme:D.lightTheme}};
BSn=function(D,C){if(D.simpleText)return Object.assign({},D,{simpleText:G2(D.simpleText,C)});if(!D.runs)return D;for(var X=Object.assign({},D,{runs:[]}),c=0,W=_.U(D.runs),p=W.next();!p.done;p=W.next())if(p=p.value,p.text)if(c+p.text.length<=C)X.runs.push(p),c+=p.text.length;else return X.runs.push(Object.assign({},p,{text:G2(p.text,C-c)})),X;return D};
bSr=function(D,C){return _.aI(D.entities,"chipBarStateEntity",C)};
rK5=function(D){switch(D){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
Kgt=function(D,C){return{triggeringElement:D,onDwellTriggeredFn:function(){var X={triggeringElement:D,loadVideoPreviewEventData:C},c=document.querySelector(".video-preview");c&&c.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"))}}};
hlW=function(D,C){var X=_.iX().resolve(_.vK(h6t)),c=function(){var W=C();return X&&W?Kgt(D.value,W):null};
_.Jw(function(){var W=c();X&&W&&Promise.resolve().then(function(){X.registerElement(W)});
_.z3(function(){X&&W&&Promise.resolve().then(function(){_.wU(X,W)})})},"csPUge")};
Lgm=function(D){var C=D.dataset.resizeObserverId;if(C)return C;C=""+xpm++;return D.dataset.resizeObserverId=C};
sYZ=function(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;var X=Lgm(C.target),c=Object.assign({},{target:C.target},kf.get(X));if(c!=null&&c.contentRect?c.contentRect.width!==C.contentRect.width||c.contentRect.height!==C.contentRect.height:1)for(kf.set(X,{borderBoxSize:C.borderBoxSize,contentBoxSize:C.contentBoxSize,contentRect:C.contentRect,devicePixelContentBoxSize:C.devicePixelContentBoxSize}),X=_.U(uy.get(X)||[]),c=X.next();!c.done;c=X.next())c=c.value,c(C)}};
elF=function(D,C){var X=Lgm(D);uy.has(X)||uy.set(X,new Set);uy.get(X).add(C);kf.has(X)&&C(Object.assign({},{target:D},kf.get(X)));QR||(QR=new mpF(sYZ));C=QR;C.observe(D)};
EHd=function(D,C){var X=Lgm(D);uy.has(X)&&(uy.get(X).delete(C),uy.get(X).size===0&&(uy.delete(X),kf.delete(X),QR.unobserve(D),delete D.dataset.resizeObserverId));uy.size===0&&QR&&(QR.disconnect(),QR=void 0)};
NS3=function(D,C){var X=_.iX().resolve(iV);return tK3.map(function(c){return X.observe(D,C,c)})};
YQF=function(D){var C=_.iX().resolve(iV);D.forEach(function(X){C.unobserveByKey(X)})};
_.BC=function(D){var C=_.U(LMm()),X=C.next().value,c=C.next().value,W=Object.assign({},yKm,D),p=nHt(function(g){var a=g.contentRect.height;if((g=g.contentRect.width)||a||W.canHaveZeroSize)X.width()===g&&X.height()===a||c(X,{height:a,width:g})},W.throttleMs);
return[X,function(g){var a=[];W.useVisibilityObserver&&(a=NS3(g,function(O,P){requestAnimationFrame(function(){P==="visible"?elF(g,p):EHd(g,p)})}));
a.length||elF(g,p);return function(){a.length&&(YQF(a),a.length=0);EHd(g,p)}}]};
FgJ=function(D,C,X,c,W){D=C?D.switchOffCommand:D.switchOnCommand;if(c&&W)wAR(D,X,W);else{var p,g;(p=_.nb({elementsCommand:D}))==null||(g=p.onclick)==null||g.call(p,X)}};
wAR=function(D,C,X){D=_.nb({elementsCommand:D,additionalCommandArgs:{commandController:{onSuccess:function(){X(!1)},
onServerError:function(){X(!1)}}}});
if(D==null?0:D.onclick)D.onclick(C),X(!0)};
GHh=function(D){if(D)return _.r(D,ZSJ)};
VK5=function(D){if(D)switch(D){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
TSm=function(D,C){if(!((D==null?0:D.entitySelectorType)&&(D==null?0:D.entityKey)))return{};switch(D.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.b("enable_web_shorts_captions_language_command")){var X;var c=(X=_.AG())==null?void 0:X.getOption("captions","track");var W,p=typeof(c==null?void 0:c.translationLanguage)==="object"&&((W=c.translationLanguage)==null?void 0:W.languageName)||(c==null?void 0:c.displayName)||"";c={data:Object.assign({},
!!p&&{selectionText:{content:p}},!!p&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof c==="undefined"})}}else c={};return c;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.b("web_shorts_audio_track_picker")){var g;W=((g=_.AG())==null?void 0:g.getAudioTrack())||void 0;X=W==null?void 0:(p=W.getLanguageInfo())==null?void 0:p.getName();W={data:Object.assign({},{selectionText:{content:X}},X&&!(W==null?0:(c=W.getLanguageInfo())==
null?0:c.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else W={};return W;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return c=D!=null&&D.entityKey?(c=_.a_(C,D.entityKey))?{isHidden:(c==null?void 0:c.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},c;default:return{}}};
HSm=function(D,C){return function(X){var c=function(W){_.er(_.mY(W),X,C)||D(W)};
X.addEventListener("click",c);return function(){X.removeEventListener("click",c)}}};
_.JKF=function(D){return function(){return _.r(D(),_.by)}};
zl5=function(D){switch(D){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
jYn=function(D){return zl5(D==null?void 0:D.all)};
MKF=function(D){var C={};(D=D==null?void 0:D.padding)&&(C.padding=zl5(D.vertical)+"px "+zl5(D.horizontal)+"px");return C};
qQF=function(D){switch(D){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
f_t=function(D){switch(D){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
dpF=function(D){switch(D){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
RlW=function(D,C){if(C)return{containerStyles:MKF(C),itemStyles:function(X,c){var W={flex:"1"},p=C==null?void 0:C.flexDirection;b:switch(p){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":X=!!X;break b;default:X=!!c}X||(X=_.q6("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",p==="FLEX_DIRECTION_ROW"||p==="FLEX_DIRECTION_ROW_REVERSE"?(p=jYn(C==null?void 0:C.gap)+"px",X?W["margin-left"]=p:W["margin-right"]=p):W["margin-bottom"]=jYn(C==null?void 0:C.gap)+"px",W.flex=
"1");return W},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(C==null?void 0:C.flexDirection)==="FLEX_DIRECTION_ROW"||(C==null?void 0:C.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
l_o=function(D){return D<528?"CONTAINER_SIZE_NARROW":D<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
DPn=function(D,C){D=_.U(D.responsiveMap||[]);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.containerSize===C)return X.containerType};
_.CAJ=function(D,C){if(C){var X=C.responsiveSize;D=l_o(D);var c=DPn(C,D);if(c&&X){a:{if(c==="CONTAINER_TYPE_VERTICAL_LIST")if(X==="RESPONSIVE_SIZE_STANDARD"){if(D!=="CONTAINER_SIZE_NARROW"){var W="50%";break a}}else{W=D==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}W=void 0}return{responsiveSize:X,containerSize:D,containerType:c,force16By9ThumbnailAspectRatio:!C.enableContentSpecificAspectRatio,contentPreviewWidth:W,fullbleed:(c==="CONTAINER_TYPE_VERTICAL_LIST"||c==="CONTAINER_TYPE_GRID")&&D===
"CONTAINER_SIZE_NARROW"&&!1}}}};
Xgd=function(D,C){var X={};switch(C){case "CONTAINER_TYPE_VERTICAL_LIST":X["flex-direction"]="column";X.padding="0 "+D.margin+"px";break;case "CONTAINER_TYPE_GRID":X["flex-direction"]="row";X.flex="none";X["flex-wrap"]="wrap";X.width=D.maxContainerWidth?D.maxContainerWidth+D.gutter+"px":void 0;X.padding="0 "+(D.margin-D.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":X["flex-direction"]="row",X.flex="none",X["overflow-x"]="auto",X.width=D.maxContainerWidth?D.maxContainerWidth+"px":void 0,
X.padding="0 "+D.margin+"px"}return X};
cMn=function(D,C){if(C){var X=DPn(C,l_o(D));a:switch(X){case "CONTAINER_TYPE_GRID":var c=3;break a;default:c=1}c=_.uw3(C,D,c);var W=_.Zw(c);return{containerLayoutConfig:_.CAJ(D,C),containerStyles:Xgd(W,X),itemStyles:function(p,g){p={};switch(X){case "CONTAINER_TYPE_VERTICAL_LIST":g||(p["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":p.width=W.itemWidth+"px";p["margin-right"]=W.gutter/2+"px";p["margin-left"]=W.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":p.width=W.itemWidth+
"px",p.flex="none",g||(p["margin-right"]=W.gutter+"px")}return p}}}};
UPo=function(D,C,X){if(C)return[oKR];switch(D){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[rE];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return X?[rE]:[Wod,rE];case "TRANSFER_STATE_PAUSED_BY_USER":return[pgm,rE];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[SEm,rE];default:return[oKR]}};
gKh=function(D,C,X,c){return UPo(D,C,c).map(function(W){var p=W.text,g=W.iconType,a=W.videoAction;W=W.playlistAction;p=p?{content:p}:void 0;g=g&&{sources:[{clientResource:{imageName:g}}]};var O=(0,_.ZI.unsafeClone)(X);if(O){var P=_.r(O,_.vX),k=_.r(O,_.iK);P&&a?P.action=a:k&&W&&(k.action=W)}return{title:p,leadingImage:g,rendererContext:O&&{commandContext:{onTap:{innertubeCommand:O}}}}})};
a95=function(D){D=_.EN(D.rendererContext);var C;return(C=_.r(D,_.iK))==null?void 0:C.playlistId};
I9j=function(D){var C;return(C=D.listItems)==null?void 0:C.some(function(X){var c;return _.tG((c=_.r(X,_.KT))==null?void 0:c.rendererContext)})};
_.Km=function(D){var C=_.iX().resolve(_.vK(_.Hc));return C!=null&&C()?D.darkThemeColorPalette:D.lightThemeColorPalette};
_.xf=function(D){return{primaryTextColor:hm(D,0),secondaryTextColor:hm(D,1),optionColor:hm(D,2),backgroundColor:hm(D,3),videoBackgroundColor:hm(D,4)}};
hm=function(D,C){if(D){switch(C){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.mW(D)}};
PA3=function(D){var C=D.element;var X=D.veType;var c=D.storedVisualElement===void 0?null:D.storedVisualElement;var W=D.elementIndex===void 0?0:D.elementIndex;D=D.clientYouTubeData;var p=_.LN();p!==OJj&&(AMt.clear(),OJj=p);if(C.visualElement&&AMt.has(C.visualElement))return null;if(c&&AMt.has(c))return C.visualElement=c,null;X=_.vc(_.iO(),{veType:X,elementIndex:W,clientYouTubeData:D});if(!X)return null;C.visualElement=X;AMt.add(X);return X};
_.Lm=function(D,C,X,c){X=X===void 0?null:X;c=c===void 0?Ybj:c;var W=W===void 0?null:W;Lb(function(){if(C){X instanceof Function&&(X=X());var p=PA3({element:C,veType:D,storedVisualElement:X,clientYouTubeData:void 0});p&&(wQ5(C,W),c(p))}})};
$P5=function(D){return D?_.e_(D):""};
vKJ=function(D){return(D==null?void 0:D.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
iJm=function(D,C){return _.aI(D.entities,"videoOverviewAsyncDataEntity",C)};
kwm=function(D,C){var X;return"linear-gradient(to bottom, "+((X=C==null?void 0:C.map(function(c){var W=D?c.darkThemeColor:c.lightThemeColor;return W?_.e_(W)+" "+((c==null?void 0:c.startLocation)||0)*100+"%":"transparent"}))==null?void 0:X.join(", "))+")"};
u6r=function(D,C,X,c,W){if(!((c==null?0:c.height)&&(c==null?0:c.width)))return{size:0};var p=c.width;c=c.height;if(W)return C==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&p>c?{size:312/jPm}:C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(X!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||D!==1&&D!==2||C!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&C!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&C!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(C==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||c===p)switch(D){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||c>p)switch(D){case 1:case 3:return{size:240*z6m};default:return{size:360*z6m}}switch(D){case 1:case 2:return{size:1/jPm*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Q55=function(D){if(!("matchMedia"in window))return _.CC(Error("Rh")),function(){return!1};
var C=window.matchMedia(D);D=_.U(_.Li(C.matches,void 0,"waIHpe"));var X=D.next().value,c=D.next().value,W=function(p){c(p.matches)};
C.addEventListener?(C.addEventListener("change",W),_.z3(function(){C.removeEventListener("change",W)})):C.addListener&&(C.addListener(W),_.z3(function(){C.removeListener(W)}));
return X};
B6d=function(D){return D==="IMAGE_BANNER_STYLE_INSET"||D==="IMAGE_BANNER_STYLE_UNKNOWN"};
bJF=function(){if(!("matchMedia"in window))return _.CC(Error("Rh")),function(){return 0};
var D=window.matchMedia("(max-width: 527.9px)"),C=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),X=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),c=window.matchMedia("(min-width: 1024px)"),W=_.U(_.Li(D.matches,void 0,"TmIKcb")),p=W.next().value,g=W.next().value;W=_.U(_.Li(C.matches,void 0,"Z0fTKd"));var a=W.next().value,O=W.next().value;W=_.U(_.Li(X.matches,void 0,"w4xy7b"));var P=W.next().value,k=W.next().value;W=_.U(_.Li(c.matches,void 0,"DrbNC"));var u=W.next().value,
Q=W.next().value,B=function(Y){g(Y.matches)},K=function(Y){O(Y.matches)},L=function(Y){k(Y.matches)},t=function(Y){Q(Y.matches)};
_.JU(function(){D.addEventListener?(D.addEventListener("change",B),C.addEventListener("change",K),X.addEventListener("change",L),c.addEventListener("change",t)):D.addListener&&(D.addListener(B),C.addListener(K),X.addListener(L),c.addListener(t));_.z3(function(){D.removeEventListener?(D.removeEventListener("change",B),C.removeEventListener("change",K),X.removeEventListener("change",L),c.removeEventListener("change",t)):D.removeListener&&(D.removeListener(B),C.removeListener(K),X.removeListener(L),
c.removeListener(t))})});
return function(){return p()?1:a()?2:P()?3:u()?4:0}};
rMn=function(D){var C=0;D=_.U([D.title,D.metadata,D.actions,D.description,D.attribution]);for(var X=D.next();!X.done;X=D.next())X.value&&C++;return C};
KoZ=function(D){return D===1||D===2?1:0};
xPj=function(D){D=(new hAR).parse(D);return(new t0).render(D).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(C){var X=C.split(":").map(Number),c=0,W=0;if(X.length===3)X=_.U(X),c=X.next().value,W=X.next().value,X=X.next().value;else if(X.length===2)X=_.U(X),W=X.next().value,X=X.next().value;else if(X.length===1)X=_.U(X).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(c*3600+W*60+X)+'" role="button">'+C+"</span>"})};
Lor=function(D){D=_.U(D.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var C=D.next(),X={};!C.done;X={clickHandler$jscomp$5:void 0},C=D.next()){C=C.value;X.clickHandler$jscomp$5=function(W){W=Number(W.target.getAttribute("data-time"));if(isNaN(W))throw Error("Th");var p;(p=_.AG())==null||p.seekTo(W,!0)};
var c=function(W){return function(p){p.key!=="Enter"&&p.key!=="Space"||(0,W.clickHandler$jscomp$5)(p)}}(X);
C.setAttribute("tabindex","0");C.removeEventListener("click",X.clickHandler$jscomp$5);C.removeEventListener("keydown",c);C.addEventListener("click",X.clickHandler$jscomp$5);C.addEventListener("keydown",c)}};
s5Z=function(){return _.A("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.A(sW,{percentWidth:100}),_.A(sW,{animationDelay:200}),_.A(sW,{animationDelay:400}),_.A(sW,{animationDelay:600}),_.A(sW,{animationDelay:800,percentWidth:60}),_.A("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.A(sW,{percentWidth:100}),_.A(sW,{animationDelay:200}),_.A(sW,{animationDelay:400}),_.A(sW,{animationDelay:600,percentWidth:50}))};
sW=function(D){return _.A("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(D.percentWidth===void 0?100:D.percentWidth)+"%"},_.A("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(D.animationDelay===void 0?0:D.animationDelay)+"ms"}))};
mPj=function(){var D=_.U(_.Li(function(){return""},void 0,"dXJHWc")),C=D.next().value;
return[function(){return C()()},
D.next().value]};
eAo=function(D,C){D=D?iSW(D):"";C!==void 0&&isFinite(C)?C===0?C=_.I7("UPDATING",void 0,"Updating..."):(C=mMW(new Date(C),new Date),C=_.I7("UPDATED_TIME",{relative_time:C},"Updated "+C)):C="";var X="";D&&C&&(X=" \u2022 ");return _.Ce(D+X+C)};
N6m=function(D,C,X,c,W,p){C=C===void 0?0:C;var g=EKm[C],a=g.title,O=g.iconType,P=g.topButtonRenderer,k=g.sectionClientVE;g=g.videoClientVE;var u;if(C!==1||D.length){X=[];D=_.U(D);for(c=D.next();!c.done;c=D.next()){var Q=c.value;if(oZd(Q))X.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Q.videoEntity.videoId,title:X$(Q.videoEntity.title),shortBylineText:X$(Q.channelEntity.title),thumbnail:Q.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Q.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.I7("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:g}}}}}});else if(cyo(Q)){c=X;var B=c.push;var K=void 0,L=void 0,t=void 0,Y=void 0,y=void 0,J=void 0,T=void 0,H=void 0,q=Q.mainPlaylistEntity.playlistId,R=Q==null?void 0:(H=Q.mainPlaylistEntity)==null?void 0:(T=H.thumbnailStyleData)==null?void 0:(J=T[0])==null?void 0:(y=J.value)==null?void 0:(Y=y.collageThumbnail)==null?void 0:Y.coverThumbnail;Y=yFo(q);if(!_.b("enable_offline_playlist_page")&&
(Q==null?0:(t=Q.mainPlaylistEntity)==null?0:t.videos)){b:{t=Q==null?void 0:(L=Q.mainPlaylistEntity)==null?void 0:L.videos;L=_.fe().getState().entities;if(t!=null&&t.length&&L)for(t=_.U(t),y=t.next();!y.done;y=t.next())if(y=_.pe(y.value).entityId,(y=JSON.parse(y).videoId)&&jcW(L,y)==="TRANSFER_STATE_COMPLETE"){L=y;break b}L=""}L!==void 0&&(Y=F$(_.fe().getState(),L),Y=_.D7(L,q,void 0,void 0,Y))}L=wj3(_.I7("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),yFo(q));Q=q&&R&&L?{playlistId:q,navigationEndpoint:Y,
viewPlaylistText:L,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:R}},title:X$(Q.mainPlaylistEntity.title),shortBylineText:X$(Q==null?void 0:(K=Q.channelEntity)==null?void 0:K.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:th3,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.I7("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:g}}}:
void 0;B.call(c,{gridPlaylistRenderer:Q})}}g={gridRenderer:{items:X}};C===1&&(u=eAo(W,p))}else if(c){var ph=_.Ce((B=X==null?void 0:X.localizedPromptMessage)!=null?B:"");g={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ce(_.I7("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Bph}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Ce(_.I7("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};u=eAo(W,p)}else ph=_.Ce(_.I7("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
g={};return{contents:[{shelfRenderer:{title:a,titleAnnotation:u,icon:{iconType:O},subtitle:ph,content:g,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:P}]}}}}],loggingDirectives:{clientVeSpec:{uiType:k}}}};
YEF=function(D,C,X,c,W,p,g,a,O,P,k){X=X===void 0?{}:X;c=c===void 0?{}:c;W=W===void 0?!1:W;p=p===void 0?!1:p;g=g===void 0?!1:g;a=a===void 0?!1:a;O=O===void 0?!1:O;P=P===void 0?0:P;k=k===void 0?-Infinity:k;if(!(C.length||D.length||W||a))return p?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:oHo(X)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Ce(_.I7("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 u=[];D.length&&u.push(N6m(D,0));a?u.push({contents:[{statementBannerRenderer:gHh(O,c)}]}):W?u.push(N6m(C,1,X,g,P,k)):p&&u.push({contents:[{statementBannerRenderer:pAh(X)}]});(W&&C.length||D.length)&&u.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Ce(_.I7("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 u.map(function(Q){return{itemSectionRenderer:Q}})};
md=function(D,C){if(typeof D!=="object")return null;D=_.U(Object.entries(D));for(var X=D.next();!X.done;X=D.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;if(X===C)return X;if(c=md(c,C))return X+"."+c}return null};
eb=function(D){var C=D.content;return(D=D.styleRuns)&&C?{runs:D.map(function(X){var c={text:C.slice(X.startIndex,X.startIndex+X.length)};X.fontColor&&(c.textColor=X.fontColor);return c})}:{simpleText:C}};
wg3=function(D,C,X,c){var W=yMr;c&&(D.quantity=c);if(!D.quantity||!D.maxQuantity)return{};c=D.minusButton;var p=D.plusButton,g,a,O,P;return{value:D.quantity,maxValue:D.maxQuantity,onChangeCallback:function(k){W(D,k)},
minusLabel:(g=_.r(c,nKR))==null?void 0:g.label,minimumReachedLabel:(a=_.r(c,nKR))==null?void 0:a.limitReachedLabel,plusLabel:(O=_.r(p,nKR))==null?void 0:O.label,maximumReachedLabel:(P=_.r(p,nKR))==null?void 0:P.limitReachedLabel,disabled:C,onRemoveCommand:X}};
yMr=function(D,C){var X=D.quantityIncrementerEntityKey;if(X){var c={};c.quantity=C;_.fG(_.EW("quantityIncrementerEntity",X,c));D.onChangeCommand&&_.FV(D.onChangeCommand)}};
Fot=function(D){if(D)return D===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(D).overflowY)?D:Fot(D.parentElement)};
VhZ=function(D,C){(D=ZJR(D))&&((_.b("enable_mini_app_command_handler_mweb_fix")?0:C)?GwZ.push({command:D,sourceData:{},commandContext:void 0}):_.iX().resolve(_.uX).resolveCommand(D))};
ZJR=function(D){return _.r(D,_.N_)};
T6n=function(){var D=window.performance.timeOrigin+window.performance.now(),C=(new _.tm).setSeconds(D/1E9);return _.Cf(C,2,_.g3(D%1E9),0)};
JMj=function(D,C){var X;D=(X=_.r(_.r(D,_.N_),HJo))==null?void 0:X.methodName;var c,W;(X=window.youtubewebview||((c=window.webkit)==null?void 0:(W=c.messageHandlers)==null?void 0:W.youtubewebview))&&D&&(c=new No,D=_.N3(c,1,D),D=_.tP(D.JSC$12713_serializeBinary()),C=_.tP(C),X.postMessage(D+","+C))};
Yf=function(D,C){var X=_.r(_.r(D,_.N_),HJo);X&&(C&&(X.serializedAdditionalMetadata=_.tP(C)),VhZ(D,!0))};
zAj=function(D,C,X){setTimeout(function(){_.CK(D,C)},X)};
j5R=function(D){switch(D){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"}};
Mhm=function(){return!!_.q6("ID_TOKEN")};
dPt=function(D){return D instanceof Error&&D.cause instanceof qEt&&D.cause.rpcErrorCode!==void 0?!f9W.includes(D.cause.rpcErrorCode):!0};
l9R=function(){return _.aQ(RAr,{authuser:""+(_.q6("SESSION_INDEX")||0)})};
yR=function(D,C,X,c){X=X===void 0?"MINI_APP_SDK_API_UNSPECIFIED":X;c=c===void 0?"":c;var W=new _.Zf;X={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:c,sdkApi:X};D instanceof Error&&(W.message=D.message,W.name=D.name,D.cause instanceof qEt&&D.cause.rpcErrorCode!==void 0&&(X.rpcErrorCode=D.cause.rpcErrorCode));var p;(p=C.onError)==null||p.call(C,{loggingError:W,metadata:X})};
CLR=function(D,C,X,c){switch(D){case "MINI_APP_SOURCE_GAMESNACKS":return new nm(C,X,c);default:return new DQ3(C,X,c)}};
XJW=function(D){switch(D){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"}};
ckF=function(D){switch(D){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"}};
opZ=function(D){switch(D){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"}};
Wjo=function(){return Math.floor(Math.random()*4)+1};
pJJ=function(D,C,X,c){D=_.U(Object.entries(D));for(var W=D.next(),p={};!W.done;p={message$jscomp$995:void 0},W=D.next()){var g=_.U(W.value);W=g.next().value;g=g.next().value;p.message$jscomp$995=g;C.push(setTimeout(function(a){return function(){c(!1);X(a.message$jscomp$995.text)}}(p),p.message$jscomp$995.delayMs));
Number(W)>0&&C.push(setTimeout(function(){c(!0)},p.message$jscomp$995.delayMs-400))}};
Sch=function(D,C){var X=X===void 0?Ybj:X;_.b("mweb_fix_monitor_visibility_after_render")?D&&Lb(function(){wQ5(D,C,X)}):Lb(function(){wQ5(D,C,X)})};
UQR=function(D,C){var X=document.createElement("ytd-engagement-panel-section-list-renderer");X.data=D;var c=C!=null?C:{};D=c.isPersistentPanel;C=c.hideDelayMs;c=c.overscrollContain;D=Object.assign({},D&&{isPersistentPanel:D},C&&{hideDelayMs:C},c&&{overscrollContain:c});Object.assign(X,D);return X};
OxJ=function(D){gpm||(gpm=acm(new _.VZ(1,void 0,void 0,IcW),0));var C=gpm.format(Math.floor(D));C=Z7==="be"||Z7==="bg"||Z7==="es"||Z7==="et"||Z7==="hu"||Z7==="ka"||Z7==="lv"||Z7==="pl"||Z7==="pt-PT"||Z7==="sq"?C.replace(new RegExp("^(\\d)"+IcW.GROUP_SEP.replace(".","\\.")+"(\\d+("+IcW.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):C;return D>=1E3&&D<=9999&&C[1]==="."&&(Z7==="sl"||Z7==="it")?C.replace(".",""):C};
_.$Qt=function(D,C,X){return window.spf&&!_.b("web_disable_spfjs_client")?Ak3(D,C,X):PL5(D,C)};
Ak3=function(D,C,X){var c=null,W=(new _.mM(function(p,g){var a={};if(C){a.method=C.method;var O=C.postParams||{};Q7j(D,C)&&(O[_.q6("XSRF_FIELD_NAME")]=_.q6("XSRF_TOKEN"));a.postData=_.EY(O);C.type&&(a.type=C.type);O=C.headers}a.headers=P5t(D,O);_.b("debug_forward_web_query_parameters")&&(D=_.ko5(D,window.location.search));a.experimental_headers=a.headers;a.onError=function(P){P.err&&P.xhr&&(P.err.params={url:P.xhr.responseURL,response:P.xhr.responseText.substr(0,64)});g(P.err)};
a.onPartDone=function(P){X&&X.call(null,P.part)};
a.onDone=function(P){var k=vpF(P.response,"xsrf_token");Ag(window.location.href,D)&&k&&_.M6("XSRF_TOKEN",k);if(k=vpF(P.response,"service_worker_killswitch"))_.M6("SERVICE_WORKER_KILLSWITCH",k),$0J();p(P.response)};
c=spf.request(D,a)})).then(ix5);
W.thenCatch(function(p){var g=p instanceof _.wE,a=p&&p.hasOwnProperty("params")&&p.params.response?p.params.response:"";p instanceof Error&&(a?g?XXd(p):a===')]}\'\n{"reload":"now"}'?XXd(p):(kn5(p,D,a),u8J(p,a)?_.fQ(p):_.MN(p)):XXd(p));c&&c.abort()});
return W};
ix5=function(D){if(D.type==="multipart"){var C=D.timing;D=D.parts.reduce(function(X,c){Object.assign(X,c);return X},{});
D.timing=D.timing||{};Object.assign(D.timing,C);D.type="reduced"}return D};
PL5=function(D,C){C=C===void 0?{}:C;var X=null,c=new _.mM(function(W,p){C.onFinish=function(g){if(g.readyState===XMLHttpRequest.DONE)if(g.status===200){if(g.responseType!=="json"){var a=g.response;a.substring(0,5)===")]}'\n"&&(a=a.substring(5));try{var O=JSON.parse(a)}catch(P){O=P}}else O=g.response;O instanceof Error?p(O):(a=vpF(O,"xsrf_token"),Ag(window.location.href,D)&&a&&_.M6("XSRF_TOKEN",a),g=g.responseURL,window.performance&&window.performance.getEntriesByName?(a=window.performance.getEntriesByName(g).pop())?
g={responseStart:(0,_.kh)()-(a.responseEnd-a.responseStart)}:(Math.random()<.01&&(a=Error("ei"),a.params=g,_.fQ(a)),g={responseStart:-1}):g={responseStart:0},O.timing=O.timing||{},Object.assign(O.timing,g),W(O))}else p(Error("di`"+g.status))};
(X=_.eq(D,C))||p(Error("di`"+X.status))});
c.thenCatch(function(W){W instanceof Error&&(kn5(W,D),u8J(W)&&(W.level="WARNING"))});
_.b("cancel_pending_navs")&&c.thenCatch(function(){X.abort()});
return c};
vpF=function(D,C){var X=D[C],c=D.parts;D.type==="multipart"&&c&&(X=(D=c.find(function(W){return C in W}))&&D[C]);
return X};
kn5=function(D,C,X){var c=D.message||"";C={original:c,url:C};if(X)if(c=c.match(/position:?\s*(\d+)/)){c=c&&Number(c[1])?Number(c[1]):0;var W=Math.max(c-25,0);C.position=c;C.response=X.substring(W,c+25)}else C.response=X.substring(0,50);_.dO(D,C);try{D.message="JSON parse error"}catch(p){}};
u8J=function(D,C){D=D.message||"";D=!!(D.indexOf("<")>=0||D.indexOf("end of ")>=0||D.indexOf("Unterminated string")>=0||D.indexOf("Unexpected EOF"));if(!D&&C)for(var X=C.length,c=!1,W=0;W<X;W++)if(c&&C[W]==="\\")W++;else if(C[W]==='"')c=!c;else if(C[W]==="<"&&!c){D=!0;break}return D};
QgR=function(){return document.documentElement.hasAttribute("dark")};
_.BmF=function(D,C){if(D!=="GFEEDBACK"&&D!=="GUIDED_HELP")_.Re(Error("fi`"+D));else{var X=_.iX().resolve(_.vK(_.lu));if(X&&(X=X.getCurrentPage())&&X.getServiceTrackingParams&&(X=X.getServiceTrackingParams()))for(var c=0,W;W=X[c++];)if(W.service===D){if(D=W.params)for(X=0;c=D[X++];)C[c.key]=c.value;break}}};
_.bxr=function(D){var C=_.CT();C&&(C=C.getPlayer())&&(C.pauseVideo(),D.playback_id=C.getVideoData().cpn,D.eid=C.getVideoData().eventId,Object.assign(D,C.getFeedbackProductData()))};
rkF=function(){var D={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.q6("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(D.enableAnonymousFeedback=!0);_.q6("SESSION_INDEX")&&(D.authuser=String(_.q6("SESSION_INDEX")));_.b("enable_pageid_for_feedback")&&_.q6("DELEGATED_SESSION_ID")&&(D.pageId=String(_.q6("DELEGATED_SESSION_ID")));return D};
_.F1=function(D){_.b("enable_ypc_spinners")&&_.DS(D,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},D])};
_.ZT=function(D){_.b("enable_ypc_spinners")&&_.DS(D,"yt-close-popup-action",["yt-loading-renderer"])};
KjR=function(D){return new Promise(function(C,X){_.yK({verifyCommand:{recaptchaToken:D.recaptchaResponse}},{commandController:{onSuccess:function(c,W){W||X("ChallengeService did not return a response.");var p;C({challengeCompleted:(p=W.verified)!=null?p:!1})},
onServerError:function(c,W){X(W)}}})})};
hQt=function(D,C,X,c){C({recaptchaResponse:c}).then(function(W){W.challengeCompleted?_.nC()?(X(3),_.iX().resolve(_.uX).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:D}})):X(2):X(4)},function(){X(4)})};
LjZ=function(D,C,X){_.yy(_.kX(xQm,_.q6("HL")),function(){var c;(c=window.grecaptcha)==null||c.ready(function(){var W=window.grecaptcha;W?(X(W.render(D,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:hQt.bind(null,D,KjR,C)})),C(1)):C(4)})})};
sgm=function(D,C){return function(){switch(C()){case 0:return D().captchaLoadingMessage;case 1:return D().challengeReason;case 3:return D().captchaSuccessfulMessage;case 2:return D().captchaCookieSetFailureMessage;case 4:return D().captchaFailedMessage;default:return D().challengeReason}}()};
_.Gt=function(){if(!mQr){var D=document.querySelector("#player.skeleton");D&&(_.ep(D),mQr=!0)}};
_.Ep3=function(){return eQF=BuF()};
Ycn=function(){return _.I(function(D){return tMd!==void 0?D.return():D.yield(Nmh(),0)})};
Nmh=function(){return _.I(function(D){if(D.nextAddress==1)return D.yield(rSd(),2);eQF=D.yieldResult;tMd=_.qX.addLowPriorityJob(Nmh,5E3);_.t_(D)})};
Gnm=function(D){var C=C===void 0?yk5:C;var X,c,W=(X=D.responseContext)==null?void 0:(c=X.mainAppWebResponseContext)==null?void 0:c.trackingParam;if(!W){C.increment("MISSING");var p,g,a,O,P,k;_.fQ(new _.Zf("282054944_a",{rnt:!!((p=D.responseContext)==null?0:(g=p.mainAppWebResponseContext)==null?0:g.loggedOut),uHA:((a=D.responseContext)==null?void 0:a.mainAppWebResponseContext)===void 0,oQW:D.responseContext===void 0,cp:(O=D.playabilityStatus)==null?void 0:O.contextParams,hDu:(((P=D.streamingData)==
null?void 0:P.formats)||[]).length>0,pwA:(((k=D.streamingData)==null?void 0:k.adaptiveFormats)||[]).length>0,os:!!D.offlineState,cotn:D.cotn}));return 2}X="";try{X=npj(W)}catch(B){return C.increment("C_ERROR"),_.MN(B),2}try{var u=_.wJt(X);var Q=FjF(u)}catch(B){return C.increment("P_ERROR"),_.MN(B),2}Q=_.Ih(Q,ZxF,1,_.AR());W=[];Q=_.U(Q);for(u=Q.next();!u.done;u=Q.next())c=u.value,u=c.getPath(),X=(0,_.ZI.getValueByKeys)(D,u.split(".")),X=String(X===void 0||X===null?"":X),c=c.getValue()||"",p=/[+\-\/_]/g,
X.replace(p,"")!==c.replace(p,"")&&(C.increment("MISMATCH"),_.b("ab_mis_log_err")&&(X=new _.Zf("282054944_p",{vNa:u,g:String(X),e:String(c)}),_.MN(X)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(u)||(u.match(/enforcementMessageViewModel/i)?W.push(3):W.push(2)));if(W.length>0)return Math.max.apply(Math,_.VB(W));C.increment("SUCCESS");return 1};
Hx5=function(D){var C=new VR;if(D.interpreterJavascript){var X=_.q2m(D.interpreterJavascript);X=Ss(X).toString();var c=new VMt;_.N3(c,6,X);_.Lf(C,1,c,y5)}else D.interpreterUrl&&(X=_.fq(D.interpreterUrl),X=_.NJ(X).toString(),c=new _.Tm5,_.N3(c,4,X),_.Lf(C,2,c,y5));D.interpreterHash&&_.Tt(C,3,D.interpreterHash,y5);D.program&&_.Tt(C,4,D.program,y5);D.globalName&&_.Tt(C,5,D.globalName,y5);D.clientExperimentsStateBlob&&_.Tt(C,7,D.clientExperimentsStateBlob,y5);return C};
HC=function(D){var C={};D=_.U(D.split("&"));for(var X=D.next();!X.done;X=D.next())X=X.value.split("="),X.length===2&&(C[X[0]]=X[1]);return C};
Jkm=function(D){return Number(D.t)||7200};
zQr=function(){var D=D===void 0?window:D;var C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(H7F(),2);C=D;X=C.bgevmc;if(!X)throw Error("ji");return c.return({pause:function(){X.p()},
resume:function(){X.r()},
checkForRefresh:function(){return X.cr()}})})};
Tqo=function(){if(_.b("bg_st_hr"))return"havuokmhhs-0";var D,C=((D=globalThis.performance)==null?void 0:D.timeOrigin)||0;return"havuokmhhs-"+Math.floor(C)};
Jm=function(D){window.bgens=D};
jgd=function(){return new Promise(function(D){var C=window;C.ntpevasrs!==void 0?D(new zt(C.ntpevasrs)):(C.ntpqfbel===void 0&&(C.ntpqfbel=[]),C.ntpqfbel.push(function(X){D(new zt(X))}))})};
MM5=function(D){if(_.b("attmusi")&&_.b("attmusi_ue")){D={s:D.eOp.bind(D),ir:D.swI.bind(D)};var C=window;C.attmp=D;if(C.attmq!==void 0)for(var X=_.U(C.attmq),c=X.next();!c.done;c=X.next())c=c.value,c(D);C.attmq=void 0}else C=D.eOp.bind(D),_.$h("yt.aba.att",C),D=D.swI.bind(D),_.$h("yt.aba.att2",D)};
fch=function(D){switch(_.mC(D.input)){case _.dJ(qcZ):var C={};return C.encryptedVideoId=D.innerTubeRequest.externalVideoId,C}return{}};
lc5=function(D){switch(_.mC(D.input)){case _.dJ(qcZ):if(_.b("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.dJ(dQo):if(_.b("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.dJ(jb):if(_.b("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&D.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.dJ(RQZ):var C,X;if(_.b("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((X=_.r((C=D.config)==null?void 0:C.command,_.fI))==null?0:X.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Ckt=function(D){var C;if(D.playlistVideoRenderer&&((C=D.playlistVideoRenderer)==null?0:C.engagementBar))return DeJ(D.playlistVideoRenderer.engagementBar);if(_.r(D,Mo)){var X;if(D=(X=_.r(D,Mo))==null?void 0:X.engagementBar)return DeJ(D)}return""};
DeJ=function(D){if(!D)return"";D=_.r(D,_.XsR);if(D==null||!D.actions)return"";D=_.U(D.actions);for(D=D.next();!D.done;D=D.next()){D=_.r(D.value,_.cOm);var C=void 0;if((C=D)==null||!C.itemId)break;return D.itemId}return""};
_.oSd=function(D){var C;if(D.playlistVideoRenderer&&((C=D.playlistVideoRenderer)==null?0:C.videoId))return D.playlistVideoRenderer.videoId;if(_.r(D,Mo)){var X,c;if(D=(X=_.r(D,Mo))==null?void 0:(c=X.playlistItemData)==null?void 0:c.videoId)return D}return""};
_.W7Z=function(D){var C;if(D.playlistVideoRenderer&&((C=D.playlistVideoRenderer)==null?0:C.voteCount))return D.playlistVideoRenderer.voteCount;if(_.r(D,Mo)){var X,c;if(D=(X=_.r(D,Mo))==null?void 0:(c=X.playlistItemData)==null?void 0:c.voteCount)return D}return 0};
_.qo=function(D,C){return _.aI(D.entities,"flowStateEntity",C)};
S8R=function(D,C,X,c){var W=void 0;D=_.U(D[C.iconName]||[]);for(var p=D.next();!p.done;p=D.next()){p=p.value;var g=C.iconSize;var a=C.iconStyle;g=!g||g===p[2];var O=ps5[p[0]];c&&c!==p[1]||!g||a&&a!==O?a=!1:W?(a=ps5[p[0]],a=!!C.iconStyle||a==="youtube_outline",g=W.version<=p[1],a=(!!C.iconSize||p[2]===24)&&a&&g):a=!0;a&&(W={name:C.iconName,style:ps5[p[0]],size:p[2],version:p[1],allowMirroring:!!p[3],url:X(C.iconName,p)})}return W};
UeF=function(D,C,X,c){return D+(""+ps5[X[0]]+((c===void 0?0:c)?"_experimental":"")+"/"+C+"/v"+X[1]+"/")+(X[2]+"px.svg")};
gSm=function(D){return _.q6("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.q6("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":D};
aLr=function(D,C){return UeF("https://fonts.gstatic.com/s/i/",D,C)};
ILR=function(D,C){return UeF("https://fonts.gstatic.com/s/i/",D,C,!0)};
O83=function(D,C){return UeF("https://www.gstatic.com/youtube/img/icons/web/",D,C)};
Pkm=function(D){var C=D.enabled;var X=D.itemPlaybackModel;var c=D.thumbnailElRef;var W=D.containerElRef;var p=D.options;var g;_.Jw(function(){var a=W==null?void 0:W.value;var O,P=(O=c())==null?void 0:O.value;O=X();var k=p();if(C&&O&&a&&P&&(k==null?0:k.thumbnail)){var u={data:O,hostElement:a},Q,B,K=[].concat(_.VB((Q=k.thumbnailOverlays)!=null?Q:[]),_.VB((B=O.overlays)!=null?B:[]));B=O.itemPlaybackOptions;Q=(B==null?void 0:B.enableRoundedPlayer)||k.enableRounding;B=B==null?void 0:B.disableTimeStatusOverlay;
var L,t;a={mediaRenderer:u,lockupElement:a,thumbnailElement:P,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Y7((L=O.inlinePlayerData)==null?void 0:L.onVisible),navigationEndpoint:_.Y7((t=O.inlinePlayerData)==null?void 0:t.onSelect),thumbnail:k.thumbnail,thumbnailOverlays:K,accessibilityText:k.accessibilityText||""},thumbnailSize:k.thumbnailSize,enableRounding:Q,mouseleaveCallback:k.mouseleaveCallback,hideTimeDisplay:B}}}else a=void 0;if(L=a){var Y;(Y=g)==null||fm(Y);g=nT(L);var y,J;
((y=X())==null?0:(J=y.inlinePlayerData)==null?0:J.forceImpAutoplay)&&AO3(g)}},"BLiQOd");
_.z3(function(){var a;(a=g)==null||fm(a)})};
$eZ=function(D){D=atob(D);for(var C=[],X=0;X<D.length;X++)C.push(D.charCodeAt(X));return new Blob([new Uint8Array(C)],{type:"image/png"})};
i8Z=function(D,C,X,c){c=c===void 0?"INSERTION_POSITION_UNSPECIFIED":c;return D({targetId:C},function(W){var p,g=(p=W.contents)!=null?p:[];p=X!=null?X:[];var a=vSh(g);switch(c){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},W,{contents:[].concat(_.VB(g.slice(0,a)),_.VB(p),_.VB(g.slice(a+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},W,{contents:[].concat(_.VB(p),_.VB(g))});case "INSERTION_POSITION_LAST":return Object.assign({},W,{contents:[].concat(_.VB(g),_.VB(p))});
default:return W}})};
uyR=function(D,C,X,c,W){W=W===void 0?"RELATIVE_INSERTION_POSITION_AFTER":W;return D({targetId:C},function(p){var g,a=(g=p.contents)!=null?g:[];g=kDR(a,X);if(g<0)return p;g=W==="RELATIVE_INSERTION_POSITION_BEFORE"?g:g+1;return Object.assign({},p,{contents:[].concat(_.VB(a.slice(0,g)),_.VB(c),_.VB(a.slice(g)))})})};
vSh=function(D){var C=D.findIndex(function(X){return _.r(X,_.dE)});
return C>=0?C:D.length};
kDR=function(D,C){return D.findIndex(function(X){a:{X=_.U(Object.values(X));for(var c=X.next();!c.done;c=X.next())if((c=c.value)&&c.targetId){X=c.targetId;break a}X=""}return X===C})};
Bfj=function(D,C,X){return D({targetId:C},function(c){var W,p=(W=c.contents)!=null?W:[];return Object.assign({},c,{contents:QOt(p,X)})})};
QOt=function(D,C){return D.filter(function(X){var c=C.includes;a:{X=_.U(Object.values(X));for(var W=X.next();!W.done;W=X.next())if((W=W.value)&&W.targetId){X=W.targetId;break a}X=""}return!c.call(C,X||"")})};
_.b8J=function(D,C){return{engagementPanelSectionListRenderer:{panelIdentifier:D,identifier:C,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
rOd=function(D,C){D=D.getAvailableAudioTracks();if(D.length)return D==null?void 0:D.find(function(X){var c;return(X==null?void 0:(c=X.getLanguageInfo())==null?void 0:c.getId())===C})};
_.hqd=function(D){var C,X=(C=D.getOption("captions","tracklist",{includeAsr:!0}))!=null?C:[];return X=K7R(X,D)};
xe5=function(D){return D.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
K7R=function(D,C){C=xe5(C);if(C==null||!C.length)return D;var X=C.filter(function(g){return g});
C=D.filter(function(g){return g.languageCode.startsWith("en")});
X=_.U(X);for(var c=X.next();!c.done;c=X.next())if(c=c.value,C.length){var W=C[0],p=Object.assign({},W);W.languageCode!==c.languageCode&&(p.displayName=W.languageName+" >> "+c.languageName,p.translationLanguage=c,D.push(p))}return D};
L7W=function(D,C,X){D=_.hqd(D);if(D.length)return X?D.find(function(c){if(typeof(c==null?void 0:c.translationLanguage)==="object"){var W;return((W=c.translationLanguage)==null?void 0:W.languageCode)===C}return!1}):D==null?void 0:D.find(function(c){return c.languageCode===C})};
sO3=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
meZ=function(D){var C=D.getAvailableAudioTracks();if(C!=null&&C.length){var X=D.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.VB(C.map(function(c){return{listItemViewModel:{title:{content:c.getLanguageInfo().getName()},isSelected:c.getLanguageInfo().getId()===(X==null?void 0:X.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:c.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
eqn=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
ESF=function(D){var C=eqn(D);if(C==null?0:C.length)return C;D.loadModule("captions");return eqn(D)};
tAm=function(D){var C=D.getOption("captions","track");if(C)return C;D.loadModule("captions");return D.getOption("captions","track")};
Y8j=function(D){var C=ESF(D);if(C!=null&&C.length){var X=tAm(D),c;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.I7("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(_.VB(C.map(function(W){return{listItemViewModel:{title:{content:W.displayName},
isSelected:W.displayName===(X==null?void 0:X.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:W.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.I7("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!X.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!X.translationLanguage&&{selectionText:{content:(X==null?void 0:(c=X.translationLanguage)==null?void 0:c.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[NfW(D)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
NfW=function(D){var C=xe5(D);if(C==null||!C.length)throw Error("Fi");var X=tAm(D);D=C.filter(function(c){return!c.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.VB(D.map(function(c){var W;return{listItemViewModel:{title:{content:c.languageName},isSelected:c.languageName===(X==null?void 0:(W=X.translationLanguage)==null?void 0:W.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:c.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
F7R=function(D){return new Promise(function(C,X){if(D===void 0)_.MN(Error("Ji"),"ERROR"),X(Error("Ji"));else{X=new _.yOo;var c=_.nS5();X=X.init();var W=_.wsW(_.q6("YPC_MB_URL"),!0);Promise.all([X,W]).then(function(){var p=_.R9.payments.business.integration.ClientTokenFactory.createClientToken(D,c);C(p)})}})};
VAr=function(D,C,X,c,W,p,g){var a=_.zr();X=X.replace(/-/g,"+").replace(/_/g,"/");var O=_.PE().get("hl"),P=_.ly(_.j_),k=C==null?void 0:C.element;k&&_.F1(k);Z8n(C,!0);_.GDJ(P,X,a.resolve,function(){k&&_.ZT(k)},function(u){k&&_.ZT(k);
a.reject(u)},O,c?function(u){c&&_.Jl(D,c,{backend_analytics:u})}:void 0,a.resolve,W,p,g);
return a.promise};
Z8n=function(D,C){!(D=D==null?void 0:D.element)||D.tagName!=="YT-BUTTON-RENDERER"&&D.tagName!=="YTD-BUTTON-RENDERER"||(D.disabled=C)};
Tfm=function(){var D=_.I7("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Ce(D),actionButton:{buttonRenderer:Cvt()}}},popupType:"TOAST"}};
H85=function(){var D=_.I7("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Ce(D),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
JOm=function(D){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:D}]}}};
Dt=function(D,C,X,c){var W;return _.I(function(p){if(p.nextAddress==1)return _.KK(p,2),p.yield(D,4);if(p.nextAddress!=2)return(W=_.B_(C.getState().entities).length>0)?p.return({title:_.Ce(_.I7("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Ce(_.I7("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:DpJ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
p.return(XA3(X,c));_.Eu(p);return p.return(XA3(X,c))})};
zqm=function(D,C){return C?C==="PPSV"||fpW(D,C):!1};
jOW=function(D){D.responseContext||(D.responseContext={});D.responseContext.maxAgeSeconds=0;return D};
WR=function(D){var C;return _.I(function(X){return X.nextAddress==1?X.yield(MA3(D,"service:topbar:fallback"),2):(C=X.yieldResult)&&_.Cn(C)?X.return(jOW(_.Cn(C))):X.return()})};
q8m=function(D){var C;return _.I(function(X){return X.nextAddress==1?X.yield(MA3(D,"service:downloads_settings:fallback"),2):(C=X.yieldResult)&&_.Cn(C)?X.return(C):X.return()})};
MA3=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1)return D?c.yield(D.get(C),2):c.return();X=c.yieldResult;return!X||!_.Cn(X)||!isNaN(Number(X.data.expireTimestampMs))&&X.isExpired()?c.return():c.return(X)})};
fL3=function(D){var C=_.iX().resolve(pn).getState().entities;return D.playlistId?zqm(C,D.playlistId):!1};
Rqj=function(D){var C=_.BK("web_pbj_log_warning_rate",0);C=C>0&&Math.random()<C;if(!_.r(D,_.ko))return C&&_.fQ(Error("cj")),!1;var X;return _.b("shorts_controller_retrieve_seedless_sequence_v2")&&((X=_.r(D,_.ko))==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:det(D)?!0:(C&&_.fQ(Error("dj")),!1)};
det=function(D){var C=(_.r(D,_.TC)||_.r(D,_.ko)).videoId;if(!C||!lLd.test(C))return!1;var X;return(D=(X=_.r(D.commandMetadata,_.ge))==null?void 0:X.url)&&(D.includes(C)||D.startsWith("/clip"))?!0:!1};
_.C_n=function(){var D=_.PE();return D.getFlag(192)?D.getFlag(190):!(_.CG("web_watch_cinematics_disabled_by_default")||_.CG("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&D1h())};
_.SX=function(D,C,X){var c={};c.currentUrl=C;c.vis=D.vis!==void 0?D.vis:0;c.splay=!1;C=_.PE();c.autoCaptionsDefaultOn=C.getFlag(66);C.getFlag(141)?C.getFlag(140)?c.autonavState="STATE_OFF":c.autonavState="STATE_ON":c.autonavState="STATE_NONE";c.html5Preference="HTML5_PREF_WANTS";isNaN(_.q6("STS"))||(c.signatureTimestamp=_.q6("STS"));D.autonav&&(c.autoplay=!0,c.autonav=!0);D.mutedAutoplay&&(c.autoplay=!0,c.mutedAutoplay=!0);D.inlinePlayback&&(c.autoplay=!0,c.autonav=!1,c.isInlineUnmutedPlayback=!!D.inlineUnmuted);
c.referer=X;c.lactMilliseconds=D.lact!==void 0?D.lact.toString():"-1";_.b("enable_unknown_lact_fix_on_html5")&&c.lactMilliseconds==="-1"&&_.fQ(new _.Zf("Unknown LACT is set in playbackContext.",{"lact in tempData":D.lact||"undefined",autonav:D.autonav||"undefined"}));D={};C.getFlag(194)&&(D.hasShownAmbientMode=!0);C.getFlag(192)&&(D.hasToggledOffAmbientMode=!0);_.C_n()&&(D.watchAmbientModeEnabled=!0);c.watchAmbientModeContext=D;return c};
XNW=function(D){var C={},X=D.pbis||0;X&&(C.playbackBeginsInSeconds=X);D.prefetch_reason&&D.prefetch_reason==="hc_pbis"&&(C.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return C};
cah=function(D,C){var X;if(C==null?0:(X=C.requestTemplate)==null?0:X.panelId)D.panelId=C.requestTemplate.panelId;var c;if(C==null?0:(c=C.requestTemplate)==null?0:c.params)D.params=C.requestTemplate.params};
Who=function(){if(ovh)return ovh();var D=!_.b("idb_response_store_auth_killswitch"),C={};ovh=il("yt-it-response-store",{objectStores:(C.ResponseStore={addedAtVersion:1},C),shared:!D,upgrade:function(X,c){c(1)&&(X=X3(X,"ResponseStore",{keyPath:["key","clientName"]}),cL(X,"byExpiration","expireTimestampMs"),cL(X,"byInterface","clientName"))},
version:1});return ovh()};
pNh=function(D){return _.gD(Who(),D)};
U1R=function(D,C){var X;return _.I(function(c){return c.nextAddress==1?c.yield(_.vz(),2):(X=c.yieldResult)?c.return(new Sa3(D,C,X)):c.return()})};
gvm=function(D){var C=Object.keys(D)[0];if(C)return D.screenExit&&(C=C+";"+D.screenExit.screen),C};
ayo=function(D){var C=new Map;D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,X!=null&&(C.has(X.taskType)||C.set(X.taskType,[]),C.get(X.taskType).push(X));return C};
Iym=function(D){D=[].concat(_.VB(D)).sort(function(X,c){return X-c});
var C=Math.floor(D.length/2);return D.length%2?D[C]:(D[C-1]+D[C])/2};
P_W=function(D,C){D=D===void 0?V5d:D;C=C===void 0?{}:C;_.$h("yt.logging.errors.log",_.MN);ZIo();Oah(j_Z(),C);window.onerror=D;Aaj=Grn;window.addEventListener("unhandledrejection",function(X){if(X.reason instanceof Error){var c=X.reason;_.dO(c,{source:"unhandledrejection"});c.name==="AbortError"&&(c.level="WARNING")}Grn(X.reason);X.preventDefault()})};
_.$1m=function(D){var C,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5,Fd,GJ,jZ,Ac,ib,d5,ub,L5,Nf,xt,u6,g5;return _.I(function(oq){if(oq.nextAddress==1)return oq.yield(_.v_(D,{mode:"readonly",enableRetries:!0},function(rx){return i8(rx,"playbackData").then(function(Rq){var K5=Rq.map(function(vM){return vM.transfer}).filter(function(vM){return!!vM}),C1=Rq.map(function(vM){return vM.offlineVideoPolicy}).filter(function(vM){return!!vM}),LK=Rq.filter(function(vM){return!!vM.key}).map(function(vM){return _.gJ(_.pe(vM.key).entityId,
"downloadStatusEntity")});
K5=i8(rx,"transfer",K5);C1=i8(rx,"offlineVideoPolicy",C1);LK=i8(rx,"downloadStatusEntity",LK);var Mf=K5.then(function(vM){vM=vM.reduce(function(kg,p1){(p1==null?0:p1.offlineVideoStreams)&&kg.push.apply(kg,_.VB(p1.offlineVideoStreams));return kg},[]).filter(function(kg){return!!kg});
return i8(rx,"offlineVideoStreams",vM)});
return Xs.all([K5,C1,Mf,LK]).then(function(vM){var kg=_.U(vM);vM=kg.next().value;var p1=kg.next().value;var Rm=kg.next().value;kg=kg.next().value;return[Rq,vM,p1,Rm,kg]})})}),2);
if(oq.nextAddress!=3)return C=oq.yieldResult,oq.yield(_.v_(D,{mode:"readonly",enableRetries:!0},function(rx){return i8(rx,"mainDownloadsListEntity").then(function(Rq){var K5,C1;return(C1=(K5=Rq[0])==null?void 0:K5.downloads)!=null?C1:[]})}),3);
X=oq.yieldResult;c=_.U(C);W=c.next().value;p=c.next().value;g=c.next().value;a=c.next().value;O=c.next().value;P=W;k=p;u=g;Q=a;B=O;K={};L={};t={};Y={};y={};J=[];T=_.U(k);for(H=T.next();!H.done;H=T.next())(q=H.value)&&(K[q.key]=q);R=_.U(u);for(ph=R.next();!ph.done;ph=R.next())(Om=ph.value)&&(L[Om.key]=Om);xj=_.U(B);for(Bo=xj.next();!Bo.done;Bo=xj.next())(r5=Bo.value)&&(t[r5.key]=r5);Fd=_.U(Q);for(GJ=Fd.next();!GJ.done;GJ=Fd.next())(jZ=GJ.value)&&(Y[jZ.key]=jZ);Ac=_.U(X);for(ib=Ac.next();!ib.done;ib=
Ac.next())d5=ib.value,ub=void 0,y[(ub=d5.videoItem)!=null?ub:""]=!0,d5.videoItem&&(Nf=L5=void 0,xt=(Nf=(L5=_.pe(d5.videoItem))==null?void 0:L5.entityId)!=null?Nf:"",J.push({externalVideoId:xt}));u6=P.filter(function(rx){if(!rx||!rx.key||!rx.offlineVideoPolicy)return!1;rx=_.pe(rx.key).entityId;rx=_.gJ(rx,"downloadStatusEntity");var Rq;return!(rx&&((Rq=t[rx])==null?void 0:Rq.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
g5=u6.map(function(rx){var Rq=K[rx.transfer],K5=[];if(Rq==null?0:Rq.offlineVideoStreams)for(var C1=_.U(Rq.offlineVideoStreams),LK=C1.next();!LK.done;LK=C1.next())(LK=Y[LK.value])&&K5.push(LK);C1=L[rx.offlineVideoPolicy];LK=y;var Mf=rx==null?void 0:rx.playerResponseTimestamp,vM=_.pe(C1.key).entityId;rx=_.gJ(vM,"mainVideoEntity");if(C1.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var kg="OFFLINE_VIDEO_STATE_DISABLED";C1.expirationTimestamp&&Number(C1.expirationTimestamp)<Date.now()/1E3&&(kg="OFFLINE_VIDEO_STATE_EXPIRED")}else if(C1.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")kg="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Rq==null?void 0:Rq.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":kg="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":kg="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":kg="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":kg="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":kg="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":kg="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:kg="OFFLINE_VIDEO_STATE_UNKNOWN"}if(kg==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Rq==null?void 0:Rq.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":kg="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":kg="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":kg=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}vM={id:vM,videoState:kg};if(Rq==null?0:Rq.cotn)vM.cotn=Rq.cotn;if(Rq==null?0:Rq.maximumDownloadQuality)vM.selectedVideoQuality=Rq==null?void 0:Rq.maximumDownloadQuality;if(Rq==null?0:Rq.lastProgressTimeMs)vM.lastProgressTimeMs=Rq.lastProgressTimeMs;Mf&&(vM.playerResponseSavedTimeMs=String(Number(Mf)*1E3));Rq=String;Mf=0;K5=_.U(K5);for(kg=K5.next();!kg.done;kg=K5.next())if(kg=kg.value,kg.streamsProgress){kg=_.U(kg.streamsProgress);for(var p1=kg.next();!p1.done;p1=
kg.next()){var Rm=void 0;Mf+=Number((Rm=p1.value.numBytesDownloaded)!=null?Rm:0)}}vM.downloadedBytes=Rq(Mf);vM.selectedOfflineMode=LK[rx]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";C1.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(vM.offlinePlaybackDisabledReason=C1.offlinePlaybackDisabledReason);return vM});
return oq.return({offlineVideos:g5,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:J}}})})};
vvW=function(){var D;return _.I(function(C){return C.nextAddress==1?C.yield(_.AX(),2):(D=C.yieldResult)?C.return(_.$1m(D)):C.return({state:"PES Unavailable"})})};
uGJ=function(){var D,C,X,c;return _.I(function(W){if(W.nextAddress==1)return W.yield(_.AX(),2);if(W.nextAddress!=3)return(D=W.yieldResult)?W.yield(ia5(D),3):W.return({state:"PES Unavailable"});C=W.yieldResult;X={};c=C.reduce(function(p,g){p[g.key]=g;return p},X);
return W.return(kQm(c))})};
kQm=function(D){for(var C={},X=[],c=_.U(Object.keys(D)),W=c.next();!W.done;W=c.next()){var p=W.value;W=D[p];var g=void 0;if(((g=W)==null?void 0:g.entityType)==="mainVideoEntity"){delete D[p];var a=W.data;W={};if(a){var O=void 0;g=(O=a.videoId)!=null?O:"vid-"+p;p=D;W.video=a;delete W.video.formattedDescription;delete W.video.thumbnail;a.owner&&(O=p[a.owner],O==null?0:O.data)&&(delete p[O.key],W.video.owner=O.data,delete W.video.owner.avatar);if(a=a.downloadState)if(O=p[a],O==null?0:O.data)if(delete p[a],
a=O.data.playbackData)if(O=p[a],O!=null&&O.data){delete p[a];a=O.data;delete a.playerResponseJson;W.playbackData=a;if(a.transfer&&(O=p[a.transfer],O==null?0:O.data)){delete p[O.key];var P=O.data;W.transfer=P;O=[];P=_.U(P.offlineVideoStreams||[]);for(var k=P.next();!k.done;k=P.next())if(k=p[k.value])delete p[k.key],O.push(k.data);O&&(W.streams=O)}(a=a.offlineVideoPolicy)&&(a=p[a])&&a.data&&(delete p[a.key],W.offlineVideoPolicy=a.data)}C[g]=W}}else W&&W.entityType==="offlineOrchestrationActionWrapperEntity"&&
W.data&&(delete D[W.key],g=W.data,p=void 0,X.push({id:g.rootActionId,type:((p=g.actionProto)==null?void 0:p.actionType)||"",entity:W}))}C.wrapperEntities=X;Object.keys(D).length>0&&(C.unknownKeys=D);return C};
Q$j=function(){var D,C,X,c,W,p,g,a,O;return _.I(function(P){if(P.nextAddress==1)return D=(new _.Do("")).hasLocalStorage(),c=!!((C=_.co.crypto)==null?0:(X=C.subtle)==null?0:X.importKey),W=!!_.co.BroadcastChannel,p=!!_.co.navigator.locks,P.yield(k1W(),2);g=P.yieldResult;a=D&&c&&W&&p&&g;O={isSupported:a};if(a)return P.return(O);O.missingBrowserFeatures=[];g||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");D||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
c||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");W||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");p||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return P.return(O)})};
Bhd=function(D,C,X,c){var W=!1,p={contentId:void 0,contentType:"video"};C=_.U(Object.entries(C));for(var g=C.next();!g.done;g=C.next()){var a=_.U(g.value);g=a.next().value;a=a.next().value;D.includes(g)&&!X.has(a)?(p.contentId=a,X.add(a),W=!0):g==="contentType"?a==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(p.contentType="playlist"):typeof a==="object"&&a!==null&&Bhd(D,a,X,c)}W&&c.push(p)};
bar=function(){var D;return!((D=U3?U3:null)==null||!D.window)};
_.Khj=function(D){if(_.mr()&&_.bhn("Chromium")>=120){var C=_.raZ().mediaSession;try{C.setActionHandler("enterpictureinpicture",function(){D()})}catch(X){}}};
hZ5=function(D){for(var C=[],X=_.U(document.styleSheets),c=X.next(),W={};!c.done;W={node$jscomp$779:void 0},c=X.next())W.node$jscomp$779=c.value.ownerNode,W.node$jscomp$779&&(W.node$jscomp$779 instanceof HTMLStyleElement||W.node$jscomp$779 instanceof HTMLLinkElement)&&C.push(new Promise(function(p){return function(g){var a=p.node$jscomp$779.cloneNode(!0);a.onload=function(){g()};
a.onerror=function(){_.fQ(Error("uj"));g()};
D.document.head.appendChild(a)}}(W)));
return Promise.all(C)};
yaF=function(D){var C=[_.$X(x1Z),_.$X(Lhh),_.$X(s$j)];m1Z(window.document.documentElement,D.document.documentElement,[_.$X(eZh),_.$X(Evm),_.$X(t43),_.$X(Nhn),_.$X(YaZ)]);m1Z(window.document.body,D.document.body,C)};
m1Z=function(D,C,X){D=_.U(D.attributes);for(var c=D.next();!c.done;c=D.next())if(c=c.value)try{_.IG(X,C,c.name,c.value)}catch(W){}};
wNj=function(D,C){D=new _.gB(D.document.documentElement);D.start(nvj,C);return D};
FhR=function(D){var C=D.document.documentElement;C.addEventListener("click",function(X){rro(C,X)});
C.addEventListener("touchstart",function(X){sWJ(X)});
C.addEventListener("mousedown",function(X){sWJ(X)})};
GQJ=function(D,C,X,c){c=c===void 0?!1:c;C=new Za5(C||D,X||D);return{x:D.x+((c===void 0?0:c)?C.lengthX*-1:C.lengthX)*.2,y:D.y+((c===void 0?0:c)?C.lengthY*-1:C.lengthY)*.2}};
V4R=function(D){if(!D)return!1;var C=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",X,c,W,p=(W=(X=D.errorScreen)==null?void 0:X.playerLegacyDesktopYpcTrailerRenderer)!=null?W:(c=D.errorScreen)==null?void 0:c.ypcTrailerRenderer;return!!C||!!p};
_.ThW=function(D,C){if(!D)return!1;var X,c=(X=D.errorScreen)==null?void 0:X.playerLegacyDesktopYpcOfferRenderer,W;C=!!(C==null?0:(W=C.playerOverlayRenderer)==null?0:W.gatedActionsOverlayRenderer);return!!V4R(D)||!!c||!!C};
zZF=function(D){return Hat(D,0,"gclid",D.search(JaW))>=0||Hat(D,0,"gad_source",D.search(JaW))>=0};
j$t=function(D){var C=[],X=0;return{clear:function(){X=C.length=0},
push:function(c){C[X]=c;X=(X+1)%D},
iterate:function(){return function W(){var p,g,a,O;return _.a2(W,function(P){switch(P.nextAddress){case 1:_.m$(P,2),p=C.length,g=0;case 4:if(!(g<p)){P.jumpTo(2);break}a=X+g;O=_.I2;return P.yield(C[a%p],7);case 7:O(P.yieldResult);g++;P.jumpTo(4);break;case 2:_.xF(P),_.es(P,0)}})}()}}};
M4r=function(D){D.eventsToIgnore||(D.eventsToIgnore=[]);var C=D.eventsToIgnore.map(hEr),X=new Set(C),c=j$t(D.bufferSize);return{flush:function(){var W=Array.from(c.iterate());c.clear();W=W.map(function(p){return{name:p.name,timestamp:p.startTime,attributes:p.attributes}});
return JSON.stringify(W)},
onSpanStart:function(W){W.name==="event"&&X.has(W.attributes.type)||c.push(W)}}};
qaZ=function(D){D=M4r(D);var C=D.flush;rFh({onSpanStart:D.onSpanStart});lw.subscribe("handleError",function(X){try{X.params.breadcrumbs=C()}catch(c){_.MN(c,"WARNING")}})};
fyZ=function(){xC("web_tracing_action");_.Lt("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
d1j=function(){xC("web_tracing_action");_.Lt("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
DEt=function(D,C,X){if(C===void 0){RZd||(d1j(),setInterval(d1j,6E5),RZd=!0);var c="web_tracing_action"}else c=C;var W,p=((W=D.endTime)!=null?W:D.startTime)-D.startTime;W={};X=lyj(D.name,p,D.startTime,{webTracing:(W[D.name]=D.attributes,W)},X,c,{spanStatus:D.status});if(D.children)for(D=_.U(D.children),c=D.next();!c.done;c=D.next())DEt(c.value,C,X)};
Cx3=function(D){var C=mgd.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(X){X.data&&typeof X.data==="object"&&(X=X.data,X.from==="extension"&&X.app==="yt.telemetry"&&(C("Received message from extension",X),D.onMessage(X)))});
return function(X,c){X={app:"yt.telemetry",from:"app",key:X,payload:c};C("Sending message to extension",X);window.postMessage(X,"*")}};
XiW=function(){var D=D===void 0?3E3:D;var C=Cx3({onMessage:function(){}}),X=[];
return{onSpanEnd:function(c){c.parentId==null&&X.push(c)===1&&setTimeout(function(){var W=[].concat(_.VB(X));X.length=0;C("spansReported",{spans:W})},D)}}};
cHF=function(D){D=D===void 0?400:D;var C=[],X=[];return{start:function(){return p63({checkoutEveryNth:D,emit:function(c,W){W&&(C=X,X=[]);X.push(c)}})},
getRecording:function(){return[].concat(_.VB(C),_.VB(X))}}};
pio=function(){(new osW({sessionReplayEvents:_.BK("web_tracing_session_replay",0)})).subscribe(function(D){if(D.sessionReplayEvents>0)try{var C=cHF(D.sessionReplayEvents);C.start();if(_.b("web_tracing_session_replay_demo")){var X=console.log;window.exportSessionReplay=function(){var c=JSON.stringify(C.getRecording(),null,2);c=W4Z(new Blob([c],{type:"text/plain"}));var W=document.createElement("a");W.download="session_replay.json";W.dataset.downloadurl=["application/json",W.download,W.href].join(":");
W.style.display="none";W.href=c;W.click();URL.revokeObjectURL(c);X("View replay at go/yt-session-replay-viewer")}}}catch(c){_.fQ(Error("wj"))}})};
UEm=function(){var D=window.fetch;window.fetch=function(){var C=_.MJ.apply(0,arguments),X=_.U(C),c=X.next().value;X=X.next().value;var W=ft("httpEvent",{method:(X===void 0?{}:X).method||"GET",path:Sid(c),type:"fetch"},{active:!1});return D.apply(null,_.VB(C)).then(function(p){W.addAttributes({statusCode:p.status,statusText:p.statusText});W.end();return p}).catch(function(p){W.end("SPAN_STATUS_ERROR");
throw p;})}};
gsr=function(){var D=XMLHttpRequest.prototype.open,C=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(X,c,W,p,g){var a=this;W=W===void 0?!0:W;this._requestData={method:X,url:c.toString()};this.addEventListener("load",function(){var O=a._span;O==null||O.addAttributes({statusCode:a.status,responseContentLength:a.responseText.length});O==null||O.end()});
this.addEventListener("error",function(){var O=a._span;O==null||O.addAttributes({statusCode:a.status,statusText:a.statusText});O==null||O.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var O=a._span;O==null||O.addAttributes({statusCode:a.status,aborted:!0});O==null||O.end()});
D.apply(this,[X,c,W,p,g])};
XMLHttpRequest.prototype.send=function(X){var c=this._requestData||{method:"N/A",url:"N/A"};this._span=ft("httpEvent",{method:c.method,path:Sid(c.url),type:"xhr"},{active:!1});C.apply(this,[X])}};
Sid=function(D){try{if(D instanceof URL)return D.pathname;D instanceof Request&&(D=D.url);return(new URL(D,"https://youtube.com")).pathname}catch(C){return"<unable to parse path>"}};
Ivd=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var D=window.performance.getEntriesByType("navigation");if(D.length>0){var C=D[0],X=window.performance.timeOrigin;ft("pageLoad",{navigationType:avo(C.type),unloadEventStart:Math.round(C.unloadEventStart),unloadEventEnd:Math.round(C.unloadEventEnd),domInteractive:Math.round(C.domInteractive),domContentLoadedEventStart:Math.round(C.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(C.domContentLoadedEventEnd),
domComplete:Math.round(C.domComplete),loadEventStart:Math.round(C.loadEventStart),loadEventEnd:Math.round(C.loadEventEnd),redirectCount:C.redirectCount},{active:!1,startTime:X+C.startTime,endTime:X+C.loadEventEnd})}}catch(c){}})};
avo=function(D){switch(D){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
vsF=function(){for(var D=OpR.value,C={},X=_.U(D.enabledSpansArray),c=X.next();!c.done;c=X.next())C[c.value]=!0;bUZ({sessionId:Svo(),enabledSpans:C,shouldSampleFn:function(W,p,g){if(AHr){var a;return W==="shortToShort"||(g==null?void 0:(a=g.rootSpan())==null?void 0:a.name)==="shortToShort"}return!0}});
sdW();qC("pageLoad")&&Ivd();qC("httpEvent")&&(UEm(),gsr());D.exportToCsi&&rFh(Pxr);D.exportToDevTools&&rFh(XiW());D.maxBreadcrumbs>0&&qaZ({eventsToIgnore:$Eh,bufferSize:D.maxBreadcrumbs})};
ip5=function(D){return new Promise(function(C){window.setTimeout(C,D)})};
kxd=function(D){var C={bicf:function(p){D.hXf=p},
blc:function(){return D.getLatestChallengeResponse()},
bcr:function(p){D.m6m.push(p)}},X=window;
X.ntpevasrs=C;if(X.ntpqfbel!==void 0)for(var c=_.U(X.ntpqfbel),W=c.next();!W.done;W=c.next())W=W.value,W(C);X.ntpqfbel=void 0};
ubW=function(D){return _.I(function(C){if(C.nextAddress==1)return _.KK(C,2),C.yield(D.gpf(),4);if(C.nextAddress!=2)return _.SR(C,0);_.Eu(C);_.t_(C)})};
Q0r=function(D){var C,X;(C=D.ytcsi)==null||(X=C.tick)==null||X.call(C,"pot_ist")};
BG3=function(D){if(D instanceof Error){var C=_.Df("yt.logging.errors.log");C&&C(D,"WARNING")}};
bp3=function(D){try{var C=JSON.parse(D);if(C.bgChallenge)return C}catch(X){}};
K4W=function(){var D=window,C={networkStatusManagerPromise:_.iX().resolve(new cZr(_.Se)),initialChallengeSli:_.b("wpo_att_sli")?new _.L_R("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};D=D===void 0?window:D;var X=D.ytAtR,c;C==null||(c=C.initialChallengeSli)==null||_.O3(c);if(X){if(X=bp3(X)){var W;C==null||(W=C.initialChallengeSli)==null||_.AT(W,"SUCCESS");rHW(X,C)}D.ytAtR=void 0}else D.ytAtRC=function(p){if(p=bp3(p)){var g;C==null||(g=C.initialChallengeSli)==null||
_.AT(g,"SUCCESS");rHW(p,C);D.ytAtRC=void 0}}};
L4o=function(){if(hum)return hum;try{var D=_.mv("IFRAME");_.CK(D,_.kX(xEm));D.sandbox.add("allow-same-origin");D.style.display="none";document.body.appendChild(D);return hum=D}catch(C){D=new _.Zf("Failed to create sandbox iframe"),_.MN(D)}};
s05=function(){return function(D,C){_.q6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[D]=C}};
mEm=function(){return function(D,C){var X={};X[D]=C;D=_.lq(_.Zod)(X);Object.keys(D).length>0&&_.hZ(D)}};
tir=function(){if(aRr()==="hidden")var D="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else aRr()==="visible"&&(D="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",euj=null);D&&Eso(D)};
Eso=function(D){if(D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(NGm===D)return;NGm=D}var C=9E4+Math.random()*2E3;if(D!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.kl()>C)&&aRr()==="visible"){C=-1;euj&&(C=Math.round((0,_.kh)()-euj));var X=String;var c=_.Df("_fact",window);c=c==null||c==-1?-1:Math.max(Date.now()-c,0);_.zu("foregroundHeartbeat",{firstActivityMs:X(c),clientDocumentNonce:UDj,index:String(YiF),lastEventDeltaMs:String(C),trigger:D});
_.$h("_fact",-1,window);YiF++;euj=(0,_.kh)()}};
yH5=function(D,C,X,c,W,p){C=new Uint8Array(C);if(D.length===0)return C;var g=0;W=W!=null?W:D.length-1;for(var a=X;a<=W;a++){var O=D[a],P=a===X?c:0,k=void 0,u=a===W?(k=p)!=null?k:O.length:O.length;O=O.subarray(P,u);C.set(O,g);g+=O.length}return C};
_.nsJ=function(){try{return!!self.sessionStorage}catch(D){return!1}};
wij=function(){var D=navigator;return new Promise(function(C,X){var c;(c=D.webkitTemporaryStorage)!=null&&c.queryUsageAndQuota?D.webkitTemporaryStorage.queryUsageAndQuota(function(W,p){C({usage:W,quota:p})},function(W){X(W)}):X(Error("Fj"))})};
F4J=function(D,C){var X={errorSeverity:C.errorSeverity.toString(),wizFeatureFlags:Object.entries(C.featureFlags).join("\n")};Flt(C,X);C=C.errorSeverity;C===3?_.MN(D,"ERROR",void 0,void 0,void 0,X):C===2&&_.MN(D,"WARNING",void 0,void 0,void 0,X);_.b("cow_if_errors_in_popup")&&C===3&&D.message.indexOf("<If>")!==-1&&window.alert(D.message)};
Zph=function(D,C){var X=jy.get(D)||{layerNode:C};X.layerNode=C;BXh(D,X);D.getScreenLayer=function(){return PR(X.layerNode)}};
Gxh=function(D){var C;D=D.parentNode;for(var X;D&&((C=jy.get(D))==null||!C.isRenderer)&&!((X=D.polymerController)!=null?X:D).isRenderer_;)D=D.parentNode||D.host;if(C=D)return jy.get(C)};
ViJ=function(D){if(D){jy.delete(D);var C=_.iX().resolve(iV);LiZ(D,C)}};
HpW=function(D,C,X){if(X===void 0?0:X){if(X=D.getAttribute("client-ve-type"),C.data&&!C.disableReactiveLogging||X)_.He(function(){TGd(D,_.Mm(C.data))},"yg"),_.z3(function(){return void ViJ(D)})}else typeof C.data!=="function"&&TGd(D,C.data)};
TGd=function(D,C){JH5++;zut(D,C)&&_.qX.addJob(function(){_.$w(_.qX,function(){if(zut(D,C)&&D.ownerDocument.documentElement===document.documentElement&&D){var X;if(D.getAttribute("layer")){var c=X=Number(D.getAttribute("layer")),W=jy.get(D);W?W.layerNode.layer=c:Zph(D,new j0t(c));(c=Gxh(D))&&(W=jy.get(D))!=null&&(W.layerNode.parent=c.layerNode)}else if(X=jy.get(D))X=PR(X.layerNode);else{X=PR;c=new j0t;if(W=Gxh(D))c.parent=W.layerNode;Zph(D,c);X=X(c)}X!=null||(X=0);c=D.getAttribute("client-ve-type");
W=Number(c);var p=!1;c=!1;var g=jy.get(D),a;if((a=g)&&!(a=g[MiR]!==C)&&(a=W)){var O;a=((O=jy.get(D))==null?void 0:O.clientVeType)===void 0}a&&(g[MiR]=C,p=c=g.isRenderer=!0);jy.has(D)&&(jy.get(D).clientVeType=W);D.visualElement&&(c=!0);if(_.b("wiz_next_ld_fix_client_ve_spec")){var P;O=((P=_.r(C==null?void 0:C.rendererContext,_.k7))==null?void 0:P.loggingDirectives)||(C==null?void 0:C.loggingDirectives)}else O=C==null?void 0:C.loggingDirectives;O&&O.clientVeSpec&&(P=qit(_.Pc(),D),P=_.fvW(_.iO(),O,P||
void 0,X))&&(D.visualElement=P);!D.visualElement&&W&&p&&(D.veType=W,P=void 0,_.b("wiz_next_client_ve_parent_fix")&&(P=qit(_.Pc(),D)),P=_.vc(_.iO(),D,P,X),D.visualElement=P);c&&(P=_.iX().resolve(iV),E$3(D,{data:C,observer:P,layer:X,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
zut=function(D,C){return(C==null?0:C.trackingParams)||(C==null?0:C.loggingDirectives)||_.r(C==null?void 0:C.rendererContext,_.k7)||D.getAttribute("client-ve-type")?!0:!1};
dEj=function(D,C,X){D.componentType!==yv&&X instanceof HTMLElement&&C&&!_.b("cow_logging_in_component_wrapper")&&HpW(X,C,!0)};
CdF=function(){if(!Ruh){Ruh=!0;var D=_.b("enable_wiz_context_per_component")||!1;D=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.b("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:D,enableContextBasedComponentStacks:D},{handleError:F4J,enableComponentStacksInErrorMessages:!1});Object.assign(ve,D);X7r=lvm;DSR();SnF=d2d;or5=lqh}};
DSR=function(){_.b("cow_logging_in_component_wrapper")?(pb3=function(D,C){C instanceof HTMLElement&&HpW(C,D,!0)},J0m=function(){}):(pb3=function(){},J0m=dEj)};
XyZ=function(D,C,X){C=C===void 0?{}:C;var c,W=(c=_.r(D.commandMetadata,_.ge))==null?void 0:c.url;c=C.form||{};!X||c.element||c.skipDefaultElement||(C.form=C.form||{},C.form.element=X);if(W&&W!=="/service_ajax")return{type:0,command:D,form:C.form};if(_.b("kevlar_service_command_check")){if(_.H0(_.iX().resolve(_.Bl),D))return Object.assign({},{type:1,command:D},C)}else{var p;if((p=_.r(D.commandMetadata,_.ge))==null?0:p.apiUrl)return Object.assign({},{type:1,command:D},C)}return{type:2,command:D,form:C.form}};
cV5=function(D){if(D.form){var C=D.form,X=Object.assign({},C);C=C.element;X=(delete X.element,X);if(C)return[_.cE(C,[D.command,X,D.commandController])]}return[]};
oDJ=function(D){if(D.form){var C=D.form,X=Object.assign({},C);C=C.element;X=(delete X.element,X);C&&_.o7(C,[D.command],C,X)}};
pyh=function(D,C,X){var c=new WL5(D,C),W=new vR(D,C,X);D={"/youtubei/v1/browse":new iT(D,C,X),"/youtubei/v1/player":c,"/youtubei/v1/navigation/resolve_url":new kw,"/youtubei/v1/next":W,"/youtubei/v1/guide":new uT(X),"/youtubei/v1/search":new Qs(D,C,X),"/youtubei/v1/reel/reel_item_watch":new BR(D,C,X),"/youtubei/v1/get_watch":new bT(c,W)};D["/youtubei/v1/account/account_menu"]=new rB;D["/youtubei/v1/notification/get_notification_menu"]=new Kn;return D};
xw=function(){var D=_.iX().resolve(_.hT);return Promise.resolve(SJo(D,_.co.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
USd=function(D){return D&&(D=_.Ln(_.$jo(D)))?(new URLSearchParams(D)).get("service"):null};
eX=function(D,C){_.pI(_.s3(),function(){_.sp("adl")});
_.iX().resolve(gDt)(C);D=D.root;D.loadData&&D.loadData(C);(C==null?0:C.response)?_.AT(eXo(),"SUCCESS"):_.fQ(new _.Zf("Lifecycle: No response in data",_.dq("IS_SHELL_LOAD"),C?C.page:"NO_PAGE",C?C.endpoint:"NO_ENDPOINT"));D.polymerController.$["page-manager"].lazyPrepareCriticalPages((C==null?void 0:C.page)||"",C.endpoint);var X,c;((c=_.r(C==null?void 0:(X=C.endpoint)==null?void 0:X.commandMetadata,_.ge))==null?0:c.webPageType)&&_.fe().dispatch(_.mw(_.r(C.endpoint.commandMetadata,_.ge).webPageType))};
aW5=function(){var D,C;return _.I(function(X){switch(X.nextAddress){case 1:D=window;if(!D.getDataPromise){X.jumpTo(2);break}_.KK(X,3);return X.yield(D.getDataPromise(),5);case 5:return X.return(X.yieldResult);case 3:return _.Eu(X),X.yield(xw(),6);case 6:return X.return(X.yieldResult);case 2:if(D.getInitialData)return C=D.getInitialData(),D.getInitialData=void 0,X.return(C);throw Error("Hj`"+_.co.location.href);}})};
OkZ=function(){_.M6("CSI_SERVICE_NAME","youtube");_.hZ({loadType:"cold"});_.b("kevlar_log_lcp")&&IWn(function(D){_.sp("lcp",D.value)})};
AVJ=function(){var D=_.DH(document.location.href,"enable");D&&D.indexOf("scraper")>-1&&_.M6("ADD_SCRAPER_ATTRIBUTES",!0)};
k6m=function(D){var C=D.root;D=[Pdo,$Sm,_.E3];_.b("web_feedback_endpoint_autolog_allowlist_killswitch")&&D.push(_.tT,vDn);iko(function(X,c){return XyZ(X,c,C)},function(X){if(!X.command)return[];
var c;((c=X.form)==null?0:c.element)?X.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},X.form,{endpoint:X.command})})):C.handleNavigate(X);return[]},D);
_.iX().addProvider({provide:_.uX,useValue:_.I3.instance})};
QUo=function(){var D={},C={},X;for(X in upj){var c=_.U(_.Li(upj[X],void 0,"IAtZ7"));D[X]=c.next().value;C[X]=c.next().value}return[D,function(W){for(var p in W){var g=void 0;(g=C[p])==null||g(W[p])}}]};
_.rVm=function(D,C){var X=!1;X=X===void 0?!1:X;var c=_.ZI.getValueByKeys(D,"contents","twoColumnWatchNextResults","results","results","contents"),W=_.ZI.getValueByKeys(D,"contents","twoColumnWatchNextResults","playlist","playlist")||null;X&&(W=null);var p=X=null;if(W)X=_.ZI.getValueByKeys(W,"titleText"),p=_.ZI.unsafeClone(_.ZI.getValueByKeys(W,"longBylineText")),c="",p&&(c=_.Mh(p)),p=_.jV(c);else if(c){c=_.U(c);for(var g=c.next();!g.done;g=c.next())g=g.value,g.videoPrimaryInfoRenderer&&(X=_.ZI.getValueByKeys.apply(_.ZI,
[g].concat(_.VB(BaR)))),g.videoSecondaryInfoRenderer&&(p=_.ZI.getValueByKeys.apply(_.ZI,[g].concat(_.VB(bkW))))}else _.CC(Error("Mj"));var a;D.currentVideoEndpoint?a=D.currentVideoEndpoint:_.CC(Error("Nj"));var O;C&&(O=_.ZI.getValueByKeys(C,"playabilityStatus","miniplayer","miniplayerRenderer"));D={miniplayerTitle:X,miniplayerSubtitle:p,watchEndpoint:a,playlistData:W};O&&(D.miniplayerRenderer=O);return D};
KLo=function(D){if(D)return _.e6(D)};
_.h1t=function(){return{isFullscreen:function(){throw Error("Oj");},
toggleFullscreen:function(){throw Error("Pj");},
exitFullscreen:function(){throw Error("Qj");},
isAutonavEnabled:function(){throw Error("Rj");},
setAutonavEnabled:function(){throw Error("Sj");},
isAutoplaySetExplicitly:function(){throw Error("Tj");}}};
xSZ=function(D){return D.videoDuration?D.numTaps>1&&D.tapDirection!==0?_.N8(D.draggedTime/D.videoDuration,0,1):_.N8((D.playedTime||0)/D.videoDuration,0,1):0};
LLj=function(D){return D.videoDuration?D.isDragging||D.numTaps>1&&D.tapDirection!==0?_.N8(D.draggedTime/D.videoDuration,0,1):_.N8((D.playedTime||0)/D.videoDuration,0,1):0};
mSR=function(D){var C,X,c;return _.r(D==null?void 0:(C=D.markersMap)==null?void 0:(X=C.find(function(W){return W.key==="HEATSEEKER"}))==null?void 0:(c=X.value)==null?void 0:c.heatmap,sUr)};
e1m=function(D){var C,X;return(X=(C=mSR(D))==null?void 0:C.heatMarkersDecorations)!=null?X:[]};
EDF=function(D){if(_.b("mweb_supported_chapters_killswitch"))return!0;var C;return!!(D==null?0:(C=D.markersMap)==null?0:C.find(function(X){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(X.key)}))};
_.tgd=function(D){var C=Object,X=C.assign,c;D={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(c=D==null?void 0:D.getPlayerState())!=null?c:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return X.call(C,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},D,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
NaJ=function(D){return function(C){var X=D(),c,W=(c=X.playerApi)==null?void 0:c.getPlayerState();C&&C!==X.playerState&&(C===1||C===2)&&X.setState({playerState:W})}};
yVh=function(D){return function(C){var X=D(),c=X.playerApi;c&&(C==null?void 0:C.type)==="newdata"&&(YJJ&&(clearTimeout(YJJ),YJJ=void 0),_.b("web_shorts_use_progress_state_for_gapless")?(C=c==null?void 0:c.getProgressState(C==null?void 0:C.playertype),C=C.seekableEnd-C.seekableStart):C=c==null?void 0:c.getDuration(C==null?void 0:C.playertype),X.setState({playedTime:0,videoDuration:C}))}};
nDF=function(D){return function(C){var X=D(),c=X.playerApi;if(c){var W=c.getPresentingPlayerType();_.b("web_shorts_use_progress_state_for_gapless")?(c=c.getProgressState(W),c=c.seekableEnd-c.seekableStart):c=c.getDuration(W);X.setState({playedTime:C,videoDuration:c})}}};
FLZ=function(D){_.Lm(112394,D,function(){return wyd},function(C){wyd=C})};
VgR=function(D,C){if(!D)return[];var X,c,W;D=((X=D.markersMap)==null?void 0:(c=X.find(function(p){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(p.key)}))==null?void 0:(W=c.value)==null?void 0:W.chapters)||[];
!ZkJ(D)||(C==null?0:C.ignoreStub)||(D=[G6j()].concat(_.VB(D)));return D};
G6j=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ZkJ=function(D){if(D.length===0)return!1;var C;return((C=_.r(D[0],Yw))==null?void 0:C.timeRangeStartMillis)!==0};
ys=function(D){return D?D.timeRangeStartMillis||0:0};
Hkm=function(D,C){if(D.isDragging&&C)return D=Tat(D,C),D===-1?G6j():VgR(C)[D]};
Tat=function(D,C){return D.isDragging&&C?VgR(C,{ignoreStub:!0}).findIndex(function(X,c,W){X=JVm(D);return z1h(X,W,c).scrubberHovering}):-1};
JVm=function(D){return Object.assign({},D,{videoDuration:D.videoDuration*1E3,playedTime:D.playedTime*1E3,draggedTime:D.draggedTime*1E3})};
z1h=function(D,C,X){var c=ys(_.r(C[X],Yw));C=ys(_.r(C[X+1],Yw))||D.videoDuration;X=D.isDragging;var W;if(W=D.isDragging)W=D.draggedTime,W=W!==null&&W>=c&&W<C;var p=D.playedTime;return p!==null&&p>=c&&p<C?{videoPosition:"active",isScrubbing:X,scrubberHovering:W}:D.playedTime<c?{videoPosition:"pending",isScrubbing:X,scrubberHovering:W}:{videoPosition:"seen",isScrubbing:X,scrubberHovering:W}};
jUZ=function(D,C){return D.videoPosition==="seen"||(C===void 0?0:C)>0};
Mg3=function(D,C,X){C=D/C.storyboardInterval;var c=VgR(X);if(!c.length)return-C*72;X=0;c=_.U(c);for(var W=c.next();!W.done;W=c.next())if(ys(_.r(W.value,Yw))/1E3<D)X++;else break;return-(C*72)-X*56};
qJj=function(D){return D?D.width/D.columns:0};
fW3=function(D){return D.isHovering?D.hoveredTime:D.draggedTime};
dSh=function(D,C){D=D.draggedTime*1E3;return D>=C.visibleTimeRangeStartMillis&&D<=C.visibleTimeRangeEndMillis};
_.R1o=function(D){if(D===void 0||Number.isNaN(D))return"--:--";var C=Math.abs(Math.floor(D)),X=Math.floor(C/86400),c=Math.floor(C%86400/3600),W=Math.floor(C%3600/60);C=Math.floor(C%60);var p="";X>0&&(p+=X+":",c<10&&(p+="0"));if(X>0||c>0)p+=c+":",W<10&&(p+="0");p+=W+":";C<10&&(p+="0");p+=C;return D>=0?p:"-"+p};
lWh=function(D,C){return function(){var X=fW3(D());var c=C();var W=D().playerApi;if(W&&W.getNumberOfStoryboardLevels()!==0){var p=W.getStoryboardFrameIndex(X,1);p!==-1?c=W.getStoryboardFrame(p,1):(X=W.getStoryboardFrameIndex(X,0),W=W.getStoryboardFrame(X,0),c&&W&&(W.height*=3,W.width*=3),c=W)}else c=null;if(!c)return null;C()&&(c.width=90*c.columns,c.height=160*c.rows);return c}};
_.nn=function(D){if(!D||D.getVideoData)return D};
Dtm=function(){var D;return{playerApi:(D=_.AG())!=null?D:void 0}};
C0t=function(D){var C;_.I(function(X){if(X.nextAddress==1)return X.yield(_.ON(),2);if(C=X.yieldResult)C.unMute(!0),C.setVolume(D,!0);_.t_(X)})};
X5d=function(D,C){D&&(D.value=""+C,D.style.setProperty("--gradient-percent",C+"%"))};
ciZ=function(D){var C;return(C=D==null?void 0:D.value)!=null?C:0};
oRh=function(){var D;_.I(function(C){if(C.nextAddress==1)return C.yield(_.ON(),2);D=C.yieldResult;if(!D)return C.return();D.isMuted()?D.unMute(!0):D.mute(!0);_.t_(C)})};
WDm=function(D){var C=_.iX().resolve(_.wB).getPlayerElement();C&&D&&(D===1?C.pause():C.play())};
p5m=function(D){return!!_.r(D,_.Fx)||!!_.r(D,_.Zt)};
ShZ=function(D){_.Ct(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Ut3=function(D){_.Ct(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
aAm=function(D){return _.T4(D.document.body,function(){return _.A(gRJ,null)},"lh")};
IAd=function(){var D;return(D=navigator.userActivation)==null?void 0:D.isActive};
OvF=function(){var D=window.performance.getEntriesByType("navigation");return D?D.map(function(C){return C.type}).includes("reload"):!1};
QtJ=function(){G_(G_(G_(G_(G_(G_(G_(_.iX().resolve(_.Vs),_.Ai5),_.P0h),_.$t3),_.vRm),_.ivn),_.kzW),_.uKW)};
Bcn=function(D,C){C=C===void 0?!1:C;var X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return C||!_.b("kevlar_shorts_seedless_retry_initial_load")||(X=window,c=!(!X.getDataPromise&&!X.getInitialData),c)?g.yield(aW5(),2):(setTimeout(Bcn.bind(window,D,!0),1E3),g.return());if(g.nextAddress!=3)return W=g.yieldResult,g.yield(bvF(W),3);p=g.yieldResult;eX(D,p);_.t_(g)})};
bvF=function(D){var C;if((C=D.response)==null||!C.replacementEndpoint)return _.WE(D);C=_.iX().resolve(_.hT);D=D.response;_.r(D.replacementEndpoint,_.ko)&&D.sequenceContinuation&&(_.r(D.replacementEndpoint,_.ko).sequenceParams=D.sequenceContinuation);return T_(C,D.replacementEndpoint,{},_.co.location.href,"shorts",function(){},function(){return!1})};
KDn=function(D){var C=_.iX().resolve(riJ);D.playerResponse&&C.handleResponse(D.playerResponse);D.response&&C.handleResponse(D.response)};
h5F=function(D){var C=_.fe(),X,c=_.r((X=D.response)==null?void 0:X.frameworkUpdates,Mn),W;X=_.r((W=D.playerResponse)==null?void 0:W.frameworkUpdates,Mn);var p;D=_.r((p=D.reelWatchSequenceResponse)==null?void 0:p.frameworkUpdates,Mn);c&&_.$P(c,C);X&&_.$P(X,C);D&&_.$P(D,C)};
xt3=function(D){var C;_.b("enable_redirect_linking_for_desktop_web_client")&&((C=window.location.hash)==null?0:C.includes("redirect_state"))&&D.url&&(D.url=D.url.toString()+window.location.hash)};
mtt=function(D){var C=_.iX(),X=C.resolve(_.hT);C=C.resolve(_.LDo);D.endpoint&&(X=stt(X,D.endpoint),X.content&&D.response&&_.HR(C,D.response,X.content),X.player&&D.playerResponse&&_.HR(C,D.playerResponse,X.player),X.reelSequence&&D.reelWatchSequenceResponse&&_.HR(C,D.reelWatchSequenceResponse,X.reelSequence))};
JT=function(D,C){KDn(C);h5F(C);var X;(C==null?0:C.url)&&((X=window.location.hash)==null?0:X.includes("redirect_state"))&&(xt3(C),(X=USd(C.url))&&_.DS(D.root,"yt-initialize-third-party",[X,C]));mtt(C);X=_.iX();var c=X.resolve(e5m);C.playerResponse&&X.resolve(ERr).handleResponse(C.playerResponse);if(C.playerResponse){X=void 0;if(_.b("ab_v_vid_sig")&&C.endpoint){var W,p=(W=_.r(C.endpoint,_.TC))!=null?W:_.r(C.endpoint,_.ko);p&&(X=p.videoId)}tEt(c,C.playerResponse,X)}C.playerResponse&&fdJ(C.playerResponse)&&
_.b("web_enable_ab_rsp_cl")?Ycn().then(function(){Nc3(c,C.playerResponse);eX(D,C)}):eX(D,C)};
yih=function(D){if(D=D.root.data){var C=_.iX().resolve(YhR);D.endpoint&&(D.response&&C.handleResponse(D.response,void 0,document.querySelector("ytd-app")),D.playerResponse&&C.handleResponse(D.playerResponse),D.reelWatchSequenceResponse&&C.handleResponse(D.reelWatchSequenceResponse))}};
nRh=function(D){var C,X,c,W,p,g;return _.I(function(a){switch(a.nextAddress){case 1:C=window;if(!C.getDataPromise){a.jumpTo(2);break}_.KK(a,3);return a.yield(C.getDataPromise(),5);case 5:X=a.yieldResult;JT(D,X);_.SR(a,4);break;case 3:return _.Eu(a),a.yield(xw(),6);case 6:c=a.yieldResult,eX(D,c);case 4:return a.return();case 2:if(!_.b("sw_nav_preload_pbj")){a.jumpTo(7);break}C.fetchInitialData=function(){var O;return _.I(function(P){if(P.nextAddress==1)return P.yield(xw(),2);O=P.yieldResult;eX(D,O);
_.t_(P)})};
if(C.getInitialData){C.loadInitialData=function(O){JT(D,O)};
W=C.getInitialData();C.getInitialData=void 0;JT(D,W);a.jumpTo(8);break}C.fetchInitialData=void 0;return a.yield(xw(),9);case 9:p=a.yieldResult,eX(D,p);case 8:return a.return();case 7:C.getInitialData?(g=C.getInitialData(),C.getInitialData=void 0,JT(D,g)):C.loadInitialData=function(O){JT(D,O)},_.t_(a)}})};
FDJ=function(){var D=new w5r;_.qYr(D);D.registerInitializationCallback(function(){SWd(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
D.registerCallback("error",function(C,X,c){_.Re(Error("Xj`"+X+"`"+c))})};
Zvd=typeof Object.create=="function"?Object.create:function(D){var C=function(){};
C.prototype=D;return new C};
Gzd=typeof Object.defineProperties=="function"?Object.defineProperty:function(D,C,X){if(D==Array.prototype||D==Object.prototype)return D;D[C]=X.value;return D};
VEj=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var C=0;C<D.length;++C){var X=D[C];if(X&&X.Math==Math)return X}throw Error("a");};
_.$a=VEj(this);TcW="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.$a.BigInt64Array&&(TcW.push("BigInt64"),TcW.push("BigUint64"));var Jio=function(D,C){if(C)for(var X=0;X<TcW.length;X++)Hvn(TcW[X]+"Array.prototype."+D,C)},z_=function(D,C){C&&Hvn(D,C)},Hvn=function(D,C){var X=_.$a;
D=D.split(".");for(var c=0;c<D.length-1;c++){var W=D[c];if(!(W in X))return;X=X[W]}D=D[D.length-1];c=X[D];C=C(c);C!=c&&C!=null&&Gzd(X,D,{configurable:!0,writable:!0,value:C})},z5j=function(){function D(){function X(){}
new X;Reflect.construct(X,[],function(){});
return new X instanceof X}
if(typeof Reflect!="undefined"&&Reflect.construct){if(D())return Reflect.construct;var C=Reflect.construct;return function(X,c,W){X=C(X,c);W&&Reflect.setPrototypeOf(X,W.prototype);return X}}return function(X,c,W){W===void 0&&(W=X);
W=Zvd(W.prototype||Object.prototype);return Function.prototype.apply.call(X,W,c)||W}}(),jtR;
if(typeof Object.setPrototypeOf=="function")jtR=Object.setPrototypeOf;else{var MEm;a:{var qhr={a:!0},fAh={};try{fAh.__proto__=qhr;MEm=fAh.a;break a}catch(D){}MEm=!1}jtR=MEm?function(D,C){D.__proto__=C;if(D.__proto__!==C)throw new TypeError("b`"+D);return D}:null}jX=jtR;
_.h=function(D,C){D.prototype=Zvd(C.prototype);D.prototype.constructor=D;if(jX)jX(D,C);else for(var X in C)if(X!="prototype")if(Object.defineProperties){var c=Object.getOwnPropertyDescriptor(C,X);c&&Object.defineProperty(D,X,c)}else D[X]=C[X];D.superClass_=C.prototype};
dtn=function(D){var C=0;return function(){return C<D.length?{done:!1,value:D[C++]}:{done:!0}}};
_.U=function(D){var C=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(C)return C.call(D);if(typeof D.length=="number")return{next:dtn(D)};throw Error("c`"+String(D));};
g8=function(D){for(var C,X=[];!(C=D.next()).done;)X.push(C.value);return X};
_.VB=function(D){return D instanceof Array?D:g8(_.U(D))};
_.q8=function(D){return M8(D,D)};
M8=function(D,C){D.raw=C;Object.freeze&&(Object.freeze(D),Object.freeze(C));return D};
fn=function(D,C){return Object.prototype.hasOwnProperty.call(D,C)};
R5F=function(D){if(D==null)throw new TypeError("d");return Object(D)};
lAh=typeof Object.assign=="function"?Object.assign:function(D,C){D=R5F(D);for(var X=1;X<arguments.length;X++){var c=arguments[X];if(c)for(var W in c)fn(c,W)&&(D[W]=c[W])}return D};
z_("Object.assign",function(D){return D||lAh});
var dB=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},DRM=function(D){if(D.isRunning_)throw new TypeError("f");
D.isRunning_=!0};
dB.prototype.JSC$8878_next_=function(D){this.yieldResult=D};
var Ct5=function(D,C){D.abruptCompletion_={exception:C,isException:!0};D.nextAddress=D.catchAddress_||D.finallyAddress_};
dB.prototype.return=function(D){this.abruptCompletion_={return:D};this.nextAddress=this.finallyAddress_};
dB.prototype.yield=function(D,C){this.nextAddress=C;return{value:D}};
dB.prototype.jumpTo=function(D){this.nextAddress=D};
_.t_=function(D){D.nextAddress=0};
_.KK=function(D,C,X){D.catchAddress_=C;X!=void 0&&(D.finallyAddress_=X)};
_.m$=function(D,C){D.catchAddress_=0;D.finallyAddress_=C||0};
_.SR=function(D,C,X){D.nextAddress=C;D.catchAddress_=X||0};
_.Eu=function(D,C){D.catchAddress_=C||0;C=D.abruptCompletion_.exception;D.abruptCompletion_=null;return C};
_.xF=function(D,C,X,c){c?D.finallyContexts_[c]=D.abruptCompletion_:D.finallyContexts_=[D.abruptCompletion_];D.catchAddress_=C||0;D.finallyAddress_=X||0};
_.es=function(D,C,X){X=D.finallyContexts_.splice(X||0)[0];(X=D.abruptCompletion_=D.abruptCompletion_||X)?X.isException?D.nextAddress=D.catchAddress_||D.finallyAddress_:X.jumpTo!=void 0&&D.finallyAddress_<X.jumpTo?(D.nextAddress=X.jumpTo,D.abruptCompletion_=null):D.nextAddress=D.finallyAddress_:D.nextAddress=C};
XoN=function(D){this.JSC$8883_context_=new dB;this.program_=D};
ojd=function(D,C){DRM(D.JSC$8883_context_);var X=D.JSC$8883_context_.yieldAllIterator_;if(X)return cW5(D,"return"in X?X["return"]:function(c){return{value:c,done:!0}},C,D.JSC$8883_context_.return);
D.JSC$8883_context_.return(C);return R2(D)};
cW5=function(D,C,X,c){try{var W=C.call(D.JSC$8883_context_.yieldAllIterator_,X);if(!(W instanceof Object))throw new TypeError("e`"+W);if(!W.done)return D.JSC$8883_context_.isRunning_=!1,W;var p=W.value}catch(g){return D.JSC$8883_context_.yieldAllIterator_=null,Ct5(D.JSC$8883_context_,g),R2(D)}D.JSC$8883_context_.yieldAllIterator_=null;c.call(D.JSC$8883_context_,p);return R2(D)};
R2=function(D){for(;D.JSC$8883_context_.nextAddress;)try{var C=D.program_(D.JSC$8883_context_);if(C)return D.JSC$8883_context_.isRunning_=!1,{value:C.value,done:!1}}catch(X){D.JSC$8883_context_.yieldResult=void 0,Ct5(D.JSC$8883_context_,X)}D.JSC$8883_context_.isRunning_=!1;if(D.JSC$8883_context_.abruptCompletion_){C=D.JSC$8883_context_.abruptCompletion_;D.JSC$8883_context_.abruptCompletion_=null;if(C.isException)throw C.exception;return{value:C.return,done:!0}}return{value:void 0,done:!0}};
Wre=function(D){this.next=function(C){DRM(D.JSC$8883_context_);D.JSC$8883_context_.yieldAllIterator_?C=cW5(D,D.JSC$8883_context_.yieldAllIterator_.next,C,D.JSC$8883_context_.JSC$8878_next_):(D.JSC$8883_context_.JSC$8878_next_(C),C=R2(D));return C};
this.throw=function(C){DRM(D.JSC$8883_context_);D.JSC$8883_context_.yieldAllIterator_?C=cW5(D,D.JSC$8883_context_.yieldAllIterator_["throw"],C,D.JSC$8883_context_.JSC$8878_next_):(Ct5(D.JSC$8883_context_,C),C=R2(D));return C};
this.return=function(C){return ojd(D,C)};
this[Symbol.iterator]=function(){return this}};
_.a2=function(D,C){C=new Wre(new XoN(C));jX&&D.prototype&&jX(C,D.prototype);return C};
pof=function(D){function C(c){return D.next(c)}
function X(c){return D.throw(c)}
return new Promise(function(c,W){function p(g){g.done?c(g.value):Promise.resolve(g.value).then(C,X).then(p,W)}
p(D.next())})};
_.I=function(D){return pof(new Wre(new XoN(D)))};
z_("Symbol",function(D){if(D)return D;var C=function(p,g){this.$jscomp$symbol$id_=p;Gzd(this,"description",{configurable:!0,writable:!0,value:g})};
C.prototype.toString=function(){return this.$jscomp$symbol$id_};
var X="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",c=0,W=function(p){if(this instanceof W)throw new TypeError("g");return new C(X+(p||"")+"_"+c++,p)};
return W});
z_("Symbol.iterator",function(D){if(D)return D;D=Symbol("h");Gzd(Array.prototype,D,{configurable:!0,writable:!0,value:function(){return Sm4(dtn(this))}});
return D});
z_("Symbol.asyncIterator",function(D){return D?D:Symbol("i")});
Sm4=function(D){D={next:D};D[Symbol.iterator]=function(){return this};
return D};
_.h_=function(D){var C=D[Symbol.asyncIterator];return C!==void 0?C.call(D):new URM(_.U(D))};
URM=function(D){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return D};
this.next=function(C){return Promise.resolve(D.next(C))};
this["throw"]=function(C){return new Promise(function(X,c){var W=D["throw"];W!==void 0?X(W.call(D,C)):(X=D["return"],X!==void 0&&X.call(D),c(new TypeError("j")))})};
D["return"]!==void 0&&(this["return"]=function(C){return Promise.resolve(D["return"](C))})};
_.MJ=function(){for(var D=Number(this),C=[],X=D;X<arguments.length;X++)C[X-D]=arguments[X];return C};
_.I2=function(D){return D};
z_("globalThis",function(D){return D||_.$a});
z_("Reflect",function(D){return D?D:{}});
z_("Reflect.construct",function(){return z5j});
z_("Reflect.setPrototypeOf",function(D){return D?D:jX?function(C,X){try{return jX(C,X),!0}catch(c){return!1}}:null});
z_("Promise",function(D){function C(){this.batch_=null}
function X(g){return g instanceof W?g:new W(function(a){a(g)})}
if(D&&(typeof _.$a.PromiseRejectionEvent!=="undefined"||!_.$a.Promise||_.$a.Promise.toString().indexOf("[native code]")===-1))return D;C.prototype.asyncExecute=function(g){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(g)};
var c=_.$a.setTimeout;C.prototype.asyncExecuteFunction=function(g){c(g,0)};
C.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var a=0;a<g.length;++a){var O=g[a];g[a]=null;try{O()}catch(P){this.asyncThrow_(P)}}}this.batch_=null};
C.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};
var W=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{g(a.resolve,a.reject)}catch(O){a.reject(O)}};
W.prototype.createResolveAndReject_=function(){function g(P){return function(k){O||(O=!0,P.call(a,k))}}
var a=this,O=!1;return{resolve:g(this.resolveTo_),reject:g(this.JSC$8915_reject_)}};
W.prototype.resolveTo_=function(g){if(g===this)this.JSC$8915_reject_(new TypeError("n"));else if(g instanceof W)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var a=g!=null;break a;case "function":a=!0;break a;default:a=!1}a?this.resolveToNonPromiseObj_(g):this.fulfill_(g)}};
W.prototype.resolveToNonPromiseObj_=function(g){var a=void 0;try{a=g.then}catch(O){this.JSC$8915_reject_(O);return}typeof a=="function"?this.settleSameAsThenable_(a,g):this.fulfill_(g)};
W.prototype.JSC$8915_reject_=function(g){this.settle_(2,g)};
W.prototype.fulfill_=function(g){this.settle_(1,g)};
W.prototype.settle_=function(g,a){if(this.state_!=0)throw Error("o`"+g+"`"+a+"`"+this.state_);this.state_=g;this.result_=a;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
W.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;c(function(){if(g.notifyUnhandledRejection_()){var a=_.$a.console;typeof a!=="undefined"&&a.error(g.result_)}},1)};
W.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var g=_.$a.CustomEvent,a=_.$a.Event,O=_.$a.dispatchEvent;if(typeof O==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof a==="function"?g=new a("unhandledrejection",{cancelable:!0}):(g=_.$a.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return O(g)};
W.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var g=0;g<this.onSettledCallbacks_.length;++g)p.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};
var p=new C;W.prototype.settleSameAsPromise_=function(g){var a=this.createResolveAndReject_();g.callWhenSettled_(a.resolve,a.reject)};
W.prototype.settleSameAsThenable_=function(g,a){var O=this.createResolveAndReject_();try{g.call(a,O.resolve,O.reject)}catch(P){O.reject(P)}};
W.prototype.then=function(g,a){function O(Q,B){return typeof Q=="function"?function(K){try{P(Q(K))}catch(L){k(L)}}:B}
var P,k,u=new W(function(Q,B){P=Q;k=B});
this.callWhenSettled_(O(g,P),O(a,k));return u};
W.prototype.catch=function(g){return this.then(void 0,g)};
W.prototype.callWhenSettled_=function(g,a){function O(){switch(P.state_){case 1:g(P.result_);break;case 2:a(P.result_);break;default:throw Error("p`"+P.state_);}}
var P=this;this.onSettledCallbacks_==null?p.asyncExecute(O):this.onSettledCallbacks_.push(O);this.isRejectionHandled_=!0};
W.resolve=X;W.reject=function(g){return new W(function(a,O){O(g)})};
W.race=function(g){return new W(function(a,O){for(var P=_.U(g),k=P.next();!k.done;k=P.next())X(k.value).callWhenSettled_(a,O)})};
W.all=function(g){var a=_.U(g),O=a.next();return O.done?X([]):new W(function(P,k){function u(K){return function(L){Q[K]=L;B--;B==0&&P(Q)}}
var Q=[],B=0;do Q.push(void 0),B++,X(O.value).callWhenSettled_(u(Q.length-1),k),O=a.next();while(!O.done)})};
return W});
var lT=function(D,C,X){if(D==null)throw new TypeError("q`"+X);if(C instanceof RegExp)throw new TypeError("r`"+X);return D+""};
z_("String.prototype.startsWith",function(D){return D?D:function(C,X){var c=lT(this,C,"startsWith"),W=c.length,p=C.length;X=Math.max(0,Math.min(X|0,c.length));for(var g=0;g<p&&X<W;)if(c[X++]!=C[g++])return!1;return g>=p}});
z_("Object.setPrototypeOf",function(D){return D||jX});
z_("Symbol.dispose",function(D){return D?D:Symbol("s")});
z_("SuppressedError",function(D){function C(X,c,W){if(!(this instanceof C))return new C(X,c,W);W=Error(W);"stack"in W&&(this.stack=W.stack);this.message=W.message;this.error=X;this.suppressed=c}
if(D)return D;_.h(C,Error);C.prototype.name="SuppressedError";return C});
z_("Array.from",function(D){return D?D:function(C,X,c){X=X!=null?X:function(a){return a};
var W=[],p=typeof Symbol!="undefined"&&Symbol.iterator&&C[Symbol.iterator];if(typeof p=="function"){C=p.call(C);for(var g=0;!(p=C.next()).done;)W.push(X.call(c,p.value,g++))}else for(p=C.length,g=0;g<p;g++)W.push(X.call(c,C[g],g));return W}});
var gjk=function(D,C,X){D instanceof String&&(D=String(D));for(var c=D.length,W=0;W<c;W++){var p=D[W];if(C.call(X,p,W,D))return{i:W,v:p}}return{i:-1,v:void 0}};
z_("Array.prototype.find",function(D){return D?D:function(C,X){return gjk(this,C,X).v}});
z_("WeakMap",function(D){function C(){}
function X(O){var P=typeof O;return P==="object"&&O!==null||P==="function"}
function c(O){if(!fn(O,p)){var P=new C;Gzd(O,p,{value:P})}}
function W(O){var P=Object[O];P&&(Object[O]=function(k){if(k instanceof C)return k;Object.isExtensible(k)&&c(k);return P(k)})}
if(function(){if(!D||!Object.seal)return!1;try{var O=Object.seal({}),P=Object.seal({}),k=new D([[O,2],[P,3]]);if(k.get(O)!=2||k.get(P)!=3)return!1;k.delete(O);k.set(P,4);return!k.has(O)&&k.get(P)==4}catch(u){return!1}}())return D;
var p="$jscomp_hidden_"+Math.random();W("freeze");W("preventExtensions");W("seal");var g=0,a=function(O){this.JSC$8923_id_=(g+=Math.random()+1).toString();if(O){O=_.U(O);for(var P;!(P=O.next()).done;)P=P.value,this.set(P[0],P[1])}};
a.prototype.set=function(O,P){if(!X(O))throw Error("t");c(O);if(!fn(O,p))throw Error("u`"+O);O[p][this.JSC$8923_id_]=P;return this};
a.prototype.get=function(O){return X(O)&&fn(O,p)?O[p][this.JSC$8923_id_]:void 0};
a.prototype.has=function(O){return X(O)&&fn(O,p)&&fn(O[p],this.JSC$8923_id_)};
a.prototype.delete=function(O){return X(O)&&fn(O,p)&&fn(O[p],this.JSC$8923_id_)?delete O[p][this.JSC$8923_id_]:!1};
return a});
z_("Map",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var a=Object.seal({x:4}),O=new D(_.U([[a,"s"]]));if(O.get(a)!="s"||O.size!=1||O.get({x:4})||O.set({x:4},"t")!=O||O.size!=2)return!1;var P=O.entries(),k=P.next();if(k.done||k.value[0]!=a||k.value[1]!="s")return!1;k=P.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!P.next().done?!1:!0}catch(u){return!1}}())return D;
var C=new WeakMap,X=function(a){this[0]={};this[1]=p();this.size=0;if(a){a=_.U(a);for(var O;!(O=a.next()).done;)O=O.value,this.set(O[0],O[1])}};
X.prototype.set=function(a,O){a=a===0?0:a;var P=c(this,a);P.list||(P.list=this[0][P.id]=[]);P.entry?P.entry.value=O:(P.entry={next:this[1],previous:this[1].previous,head:this[1],key:a,value:O},P.list.push(P.entry),this[1].previous.next=P.entry,this[1].previous=P.entry,this.size++);return this};
X.prototype.delete=function(a){a=c(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this[0][a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};
X.prototype.clear=function(){this[0]={};this[1]=this[1].previous=p();this.size=0};
X.prototype.has=function(a){return!!c(this,a).entry};
X.prototype.get=function(a){return(a=c(this,a).entry)&&a.value};
X.prototype.entries=function(){return W(this,function(a){return[a.key,a.value]})};
X.prototype.keys=function(){return W(this,function(a){return a.key})};
X.prototype.values=function(){return W(this,function(a){return a.value})};
X.prototype.forEach=function(a,O){for(var P=this.entries(),k;!(k=P.next()).done;)k=k.value,a.call(O,k[1],k[0],this)};
X.prototype[Symbol.iterator]=X.prototype.entries;var c=function(a,O){var P=O&&typeof O;P=="object"||P=="function"?C.has(O)?P=C.get(O):(P=""+ ++g,C.set(O,P)):P="p_"+O;var k=a[0][P];if(k&&fn(a[0],P))for(a=0;a<k.length;a++){var u=k[a];if(O!==O&&u.key!==u.key||O===u.key)return{id:P,list:k,index:a,entry:u}}return{id:P,list:k,index:-1,entry:void 0}},W=function(a,O){var P=a[1];
return Sm4(function(){if(P){for(;P.head!=a[1];)P=P.previous;for(;P.next!=P.head;)return P=P.next,{done:!1,value:O(P)};P=null}return{done:!0,value:void 0}})},p=function(){var a={};
return a.previous=a.next=a.head=a},g=0;
return X});
z_("Set",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var X=Object.seal({x:4}),c=new D(_.U([X]));if(!c.has(X)||c.size!=1||c.add(X)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2)return!1;var W=c.entries(),p=W.next();if(p.done||p.value[0]!=X||p.value[1]!=X)return!1;p=W.next();return p.done||p.value[0]==X||p.value[0].x!=4||p.value[1]!=p.value[0]?!1:W.next().done}catch(g){return!1}}())return D;
var C=function(X){this.JSC$8937_map_=new Map;if(X){X=_.U(X);for(var c;!(c=X.next()).done;)this.add(c.value)}this.size=this.JSC$8937_map_.size};
C.prototype.add=function(X){X=X===0?0:X;this.JSC$8937_map_.set(X,X);this.size=this.JSC$8937_map_.size;return this};
C.prototype.delete=function(X){X=this.JSC$8937_map_.delete(X);this.size=this.JSC$8937_map_.size;return X};
C.prototype.clear=function(){this.JSC$8937_map_.clear();this.size=0};
C.prototype.has=function(X){return this.JSC$8937_map_.has(X)};
C.prototype.entries=function(){return this.JSC$8937_map_.entries()};
C.prototype.values=function(){return this.JSC$8937_map_.values()};
C.prototype.keys=C.prototype.values;C.prototype[Symbol.iterator]=C.prototype.values;C.prototype.forEach=function(X,c){var W=this;this.JSC$8937_map_.forEach(function(p){return X.call(c,p,p,W)})};
return C});
z_("Math.log2",function(D){return D?D:function(C){return Math.log(C)/Math.LN2}});
z_("Object.values",function(D){return D?D:function(C){var X=[],c;for(c in C)fn(C,c)&&X.push(C[c]);return X}});
z_("Object.is",function(D){return D?D:function(C,X){return C===X?C!==0||1/C===1/X:C!==C&&X!==X}});
z_("Array.prototype.includes",function(D){return D?D:function(C,X){var c=this;c instanceof String&&(c=String(c));var W=c.length;X=X||0;for(X<0&&(X=Math.max(X+W,0));X<W;X++){var p=c[X];if(p===C||Object.is(p,C))return!0}return!1}});
z_("String.prototype.includes",function(D){return D?D:function(C,X){return lT(this,C,"includes").indexOf(C,X||0)!==-1}});
z_("Object.entries",function(D){return D?D:function(C){var X=[],c;for(c in C)fn(C,c)&&X.push([c,C[c]]);return X}});
z_("Number.isFinite",function(D){return D?D:function(C){return typeof C!=="number"?!1:!isNaN(C)&&C!==Infinity&&C!==-Infinity}});
z_("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
z_("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
z_("Number.isInteger",function(D){return D?D:function(C){return Number.isFinite(C)?C===Math.floor(C):!1}});
z_("Number.isSafeInteger",function(D){return D?D:function(C){return Number.isInteger(C)&&Math.abs(C)<=Number.MAX_SAFE_INTEGER}});
z_("String.prototype.endsWith",function(D){return D?D:function(C,X){var c=lT(this,C,"endsWith");X===void 0&&(X=c.length);X=Math.max(0,Math.min(X|0,c.length));for(var W=C.length;W>0&&X>0;)if(c[--X]!=C[--W])return!1;return W<=0}});
var anf=function(D,C){D instanceof String&&(D+="");var X=0,c=!1,W={next:function(){if(!c&&X<D.length){var p=X++;return{value:C(p,D[p]),done:!1}}c=!0;return{done:!0,value:void 0}}};
W[Symbol.iterator]=function(){return W};
return W};
z_("Array.prototype.entries",function(D){return D?D:function(){return anf(this,function(C,X){return[C,X]})}});
z_("Math.trunc",function(D){return D?D:function(C){C=Number(C);if(isNaN(C)||C===Infinity||C===-Infinity||C===0)return C;var X=Math.floor(Math.abs(C));return C<0?-X:X}});
z_("Number.isNaN",function(D){return D?D:function(C){return typeof C==="number"&&isNaN(C)}});
z_("Array.prototype.keys",function(D){return D?D:function(){return anf(this,function(C){return C})}});
z_("Array.prototype.values",function(D){return D?D:function(){return anf(this,function(C,X){return X})}});
z_("Array.prototype.fill",function(D){return D?D:function(C,X,c){var W=this.length||0;X<0&&(X=Math.max(0,W+X));if(c==null||c>W)c=W;c=Number(c);c<0&&(c=Math.max(0,W+c));for(X=Number(X||0);X<c;X++)this[X]=C;return this}});
Jio("fill",function(D){return D?D:Array.prototype.fill});
z_("Object.fromEntries",function(D){return D?D:function(C){var X={};if(!(Symbol.iterator in C))throw new TypeError("v`"+C);C=C[Symbol.iterator].call(C);for(var c=C.next();!c.done;c=C.next()){c=c.value;if(Object(c)!==c)throw new TypeError("w");X[c[0]]=c[1]}return X}});
z_("String.prototype.replaceAll",function(D){return D?D:function(C,X){if(C instanceof RegExp&&!C.global)throw new TypeError("x");return C instanceof RegExp?this.replace(C,X):this.replace(new RegExp(String(C).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),X)}});
z_("Object.getOwnPropertySymbols",function(D){return D?D:function(){return[]}});
z_("String.prototype.repeat",function(D){return D?D:function(C){var X=lT(this,null,"repeat");if(C<0||C>1342177279)throw new RangeError("y");C|=0;for(var c="";C;)if(C&1&&(c+=X),C>>>=1)X+=X;return c}});
z_("Array.prototype.findIndex",function(D){return D?D:function(C,X){return gjk(this,C,X).i}});
z_("Array.prototype.flatMap",function(D){return D?D:function(C,X){var c=[];Array.prototype.forEach.call(this,function(W,p){W=C.call(X,W,p,this);Array.isArray(W)?c.push.apply(c,W):c.push(W)});
return c}});
z_("String.prototype.codePointAt",function(D){return D?D:function(C){var X=lT(this,null,"codePointAt"),c=X.length;C=Number(C)||0;if(C>=0&&C<c){C|=0;var W=X.charCodeAt(C);if(W<55296||W>56319||C+1===c)return W;C=X.charCodeAt(C+1);return C<56320||C>57343?W:(W-55296)*1024+C+9216}}});
z_("String.fromCodePoint",function(D){return D?D:function(C){for(var X="",c=0;c<arguments.length;c++){var W=Number(arguments[c]);if(W<0||W>1114111||W!==Math.floor(W))throw new RangeError("z`"+W);W<=65535?X+=String.fromCharCode(W):(W-=65536,X+=String.fromCharCode(W>>>10&1023|55296),X+=String.fromCharCode(W&1023|56320))}return X}});
z_("String.prototype.trimLeft",function(D){function C(){return this.replace(/^[\s\xa0]+/,"")}
return D||C});
z_("String.prototype.trimStart",function(D){return D||String.prototype.trimLeft});
z_("String.prototype.padStart",function(D){return D?D:function(C,X){var c=lT(this,null,"padStart");C-=c.length;X=X!==void 0?String(X):" ";return(C>0&&X?X.repeat(Math.ceil(C/X.length)).substring(0,C):"")+c}});
z_("Promise.prototype.finally",function(D){return D?D:function(C){return this.then(function(X){return Promise.resolve(C()).then(function(){return X})},function(X){return Promise.resolve(C()).then(function(){throw X;
})})}});
z_("Math.imul",function(D){return D?D:function(C,X){C=Number(C);X=Number(X);var c=C&65535,W=X&65535;return c*W+((C>>>16&65535)*W+c*(X>>>16&65535)<<16>>>0)|0}});
z_("Object.hasOwn",function(D){return D?D:function(C,X){return Object.prototype.hasOwnProperty.call(C,X)}});
z_("Math.sign",function(D){return D?D:function(C){C=Number(C);return C===0||isNaN(C)?C:C>0?1:-1}});
z_("Array.prototype.flat",function(D){return D?D:function(C){C=C===void 0?1:C;var X=[];Array.prototype.forEach.call(this,function(c){Array.isArray(c)&&C>0?(c=Array.prototype.flat.call(c,C-1),X.push.apply(X,c)):X.push(c)});
return X}});
z_("String.raw",function(D){return D?D:function(C,X){C=R5F(C);for(var c=C.raw,W=c.length,p="",g=0;g<W;++g)p+=c[g],g+1<W&&g+1<arguments.length&&(p+=String(arguments[g+1]));return p}});
z_("WeakSet",function(D){if(function(){if(!D||!Object.seal)return!1;try{var X=Object.seal({}),c=Object.seal({}),W=new D([X]);if(!W.has(X)||W.has(c))return!1;W.delete(X);W.add(c);return!W.has(X)&&W.has(c)}catch(p){return!1}}())return D;
var C=function(X){this.JSC$8951_map_=new WeakMap;if(X){X=_.U(X);for(var c;!(c=X.next()).done;)this.add(c.value)}};
C.prototype.add=function(X){this.JSC$8951_map_.set(X,!0);return this};
C.prototype.has=function(X){return this.JSC$8951_map_.has(X)};
C.prototype.delete=function(X){return this.JSC$8951_map_.delete(X)};
return C});
z_("Reflect.ownKeys",function(D){return D?D:function(C){var X=[],c=Object.getOwnPropertyNames(C);C=Object.getOwnPropertySymbols(C);for(var W=0;W<c.length;W++)(c[W].substring(0,14)=="jscomp_symbol_"?C:X).push(c[W]);return X.concat(C)}});
z_("Object.getOwnPropertyDescriptors",function(D){return D?D:function(C){for(var X={},c=Reflect.ownKeys(C),W=0;W<c.length;W++)X[c[W]]=Object.getOwnPropertyDescriptor(C,c[W]);return X}});
z_("Promise.allSettled",function(D){function C(c){return{status:"fulfilled",value:c}}
function X(c){return{status:"rejected",reason:c}}
return D?D:function(c){var W=this;c=Array.from(c,function(p){return W.resolve(p).then(C,X)});
return W.all(c)}});
z_("Number.parseInt",function(D){return D||parseInt});
_._DumpException=window._DumpException||function(D){throw D;};
window._DumpException=_._DumpException;var Inq=window.ytcsi;Inq&&typeof Inq.tick==="function"&&Inq.tick("rses_dpj");var Ohx,Da,CR,XN,AWe,PtJ,$Rc,vjd,eN,ihq;Ohx=Ohx||{};_.co=this||self;_.$h=function(D,C,X){D=D.split(".");X=X||_.co;for(var c;D.length&&(c=D.shift());)D.length||C===void 0?X[c]&&X[c]!==Object.prototype[c]?X=X[c]:X=X[c]={}:X[c]=C};
Da=function(D,C){var X=_.Df("WIZ_global_data.oxN3nb");D=X&&X[D];return D!=null?D:C};
CR=_.co._F_toggles_default_kevlar_base||[];XN=function(){};
XN.get=function(){return null};
_.pCJ=null;_.Df=function(D,C){D=D.split(".");C=C||_.co;for(var X=0;X<D.length;X++)if(C=C[D[X]],C==null)return null;return C};
_.cT=function(D){D.instance_=void 0;D.getInstance=function(){return D.instance_?D.instance_:D.instance_=new D}};
_.DG=function(D){var C=typeof D;return C!="object"?C:D?Array.isArray(D)?"array":C:"null"};
_.JW=function(D){var C=_.DG(D);return C=="array"||C=="object"&&typeof D.length=="number"};
_.MR=function(D){var C=typeof D;return C=="object"&&D!=null||C=="function"};
_.fh=function(D){return Object.prototype.hasOwnProperty.call(D,AWe)&&D[AWe]||(D[AWe]=++PtJ)};
AWe="closure_uid_"+(Math.random()*1E9>>>0);PtJ=0;$Rc=function(D,C,X){return D.call.apply(D.bind,arguments)};
vjd=function(D,C,X){if(!D)throw Error();if(arguments.length>2){var c=Array.prototype.slice.call(arguments,2);return function(){var W=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(W,c);return D.apply(C,W)}}return function(){return D.apply(C,arguments)}};
_.wo=function(D,C,X){_.wo=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?$Rc:vjd;return _.wo.apply(null,arguments)};
_.AZ=function(D,C){var X=Array.prototype.slice.call(arguments,1);return function(){var c=X.slice();c.push.apply(c,arguments);return D.apply(this,c)}};
_.ok=function(){return Date.now()};
eN=function(D){return D};
_.WT=function(D,C){function X(){}
X.prototype=C.prototype;D.superClass_=C.prototype;D.prototype=new X;D.prototype.constructor=D;D.base=function(c,W,p){for(var g=Array(arguments.length-2),a=2;a<arguments.length;a++)g[a-2]=arguments[a];return C.prototype[W].apply(c,g)}};
ihq=function(D){return D};var kJf,udM;_.V=function(D,C,X,c){var W=arguments.length,p=W<3?C:c===null?c=Object.getOwnPropertyDescriptor(C,X):c,g;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")p=Reflect.decorate(D,C,X,c);else for(var a=D.length-1;a>=0;a--)if(g=D[a])p=(W<3?g(p):W>3?g(C,X,p):g(C,X))||p;W>3&&p&&Object.defineProperty(C,X,p)};
_.z=function(D,C){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(D,C)};
kJf=function(D,C){if(C!==null&&C!==void 0){if(typeof C!=="object"&&typeof C!=="function")throw new TypeError("A");if(X===void 0){if(!Symbol.dispose)throw new TypeError("C");var X=C[Symbol.dispose]}if(typeof X!=="function")throw new TypeError("D");D.stack.push({value:C,dispose:X,async:!1})}return C};
udM=function(D){function C(p){D.error=D.hasError?new SuppressedError(p,D.error,"An error was suppressed during disposal."):p;D.hasError=!0}
function X(){for(;c=D.stack.pop();)try{if(!c.async&&W===1)return W=0,D.stack.push(c),Promise.resolve().then(X);if(c.dispose){var p=c.dispose.call(c.value);if(c.async)return W|=2,Promise.resolve(p).then(X,function(g){C(g);return X()})}else W|=1}catch(g){C(g)}if(W===1)return D.hasError?Promise.reject(D.error):Promise.resolve();
if(D.hasError)throw D.error;}
var c,W=0;X()};var Qm4="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");DRo()&&Qm4.push("details:not(:has(summary))");var XoJ=Qm4.join(",");_.WT(_.Dn,Error);_.Dn.prototype.name="CustomError";var B5J;var bhk=void 0,rWJ,KrN=typeof TextDecoder!=="undefined",Inm,anR=typeof String.prototype.isWellFormed==="function",gjn=typeof TextEncoder!=="undefined";var h35;_.yL=function(D){for(var C=[],X=0,c=0;c<D.length;c++){var W=D.charCodeAt(c);W<128?C[X++]=W:(W<2048?C[X++]=W>>6|192:((W&64512)==55296&&c+1<D.length&&(D.charCodeAt(c+1)&64512)==56320?(W=65536+((W&1023)<<10)+(D.charCodeAt(++c)&1023),C[X++]=W>>18|240,C[X++]=W>>12&63|128):C[X++]=W>>12|224,C[X++]=W>>6&63|128),C[X++]=W&63|128)}return C};
h35=function(D){for(var C=[],X=0,c=0;X<D.length;){var W=D[X++];if(W<128)C[c++]=String.fromCharCode(W);else if(W>191&&W<224){var p=D[X++];C[c++]=String.fromCharCode((W&31)<<6|p&63)}else if(W>239&&W<365){p=D[X++];var g=D[X++],a=D[X++];W=((W&7)<<18|(p&63)<<12|(g&63)<<6|a&63)-65536;C[c++]=String.fromCharCode(55296+(W>>10));C[c++]=String.fromCharCode(56320+(W&1023))}else p=D[X++],g=D[X++],C[c++]=String.fromCharCode((W&15)<<12|(p&63)<<6|g&63)}return C.join("")};var Po=String.prototype.trim?function(D){return D.trim()}:function(D){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(D)[1]},xRJ=/&/g,Lrk=/</g,smb=/>/g,mRx=/"/g,e3x=/'/g,EjM=/\x00/g,tZ4=/[\x00&<>"']/;var pR=!!(CR[0]>>15&1),N5q=!!(CR[0]&1024),Ymq=!!(CR[0]>>16&1),yW4=!!(CR[0]&8),njk=!!(CR[0]&2),wox=!!(CR[0]&4),Fr4=!!(CR[0]&16),Zh5=!!(CR[0]&128);var ut=pR?Ymq:Da(610401301,!1),GJf=pR?yW4:Da(772657768,!1),VZc=pR?njk:Da(513659523,!1),T55=pR?N5q||!wox:Da(568333945,!0),xjF=pR?Fr4:Da(1331761403,!1),B3t=pR?N5q||!Zh5:Da(748402147,!0);var bt,Hhd=_.co.navigator;bt=Hhd?Hhd.userAgentData||null:null;var gO;_.w5=function(D,C){return Array.prototype.indexOf.call(D,C,void 0)};
_.pC=function(D,C,X){Array.prototype.forEach.call(D,C,X)};
_.Sz=function(D,C,X){return Array.prototype.filter.call(D,C,X)};
_.Gv=function(D,C,X){return Array.prototype.map.call(D,C,X)};
gO=function(D,C,X){return Array.prototype.some.call(D,C,X)};
_.GOJ=function(D,C,X){return Array.prototype.every.call(D,C,X)};var UG=function(D){UG[" "](D);return D};
UG[" "]=function(){};
var ypJ=function(D,C){try{return UG(D[C]),!0}catch(X){}return!1},ACZ=function(D,C,X,c){c=c?c(C):C;
return Object.prototype.hasOwnProperty.call(D,c)?D[c]:D[c]=X(C)};var JWf,AC,z35,jme,qm5,fn5,MBm,dR5,R3N,ln5,ST5,Cb5,XMc,pMb,Sdx,UfM;_.raZ=function(){return _.co.navigator||null};
JWf=$RW();_.g1=vjm();AC=Kh("Edge");z35=AC||_.g1;_.ak=Kh("Gecko")&&!(_.AW(_.kj(),"WebKit")&&!Kh("Edge"))&&!(Kh("Trident")||Kh("MSIE"))&&!Kh("Edge");_.Ik=_.AW(_.kj(),"WebKit")&&!Kh("Edge");jme=_.Ik&&Kh("Mobile");_.MZk=_.h3F();qm5=_.xRr();fn5=(eZ()?bt.platform==="Linux":Kh("Linux"))||_.Lrn();MBm=_.rWr();dR5=KrJ();R3N=Kh("iPad");ln5=Kh("iPod");_.DfJ=_.tW();ST5=_.AW(_.kj(),"KaiOS");Cb5=function(){var D=_.co.document;return D?D.documentMode:void 0};
a:{var ccM="",ogg=function(){var D=_.kj();if(_.ak)return/rv:([^\);]+)(\)|;)/.exec(D);if(AC)return/Edge\/([\d\.]+)/.exec(D);if(_.g1)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(D);if(_.Ik)return/WebKit\/(\S+)/.exec(D);if(JWf)return/(?:Version)[ \/]?(\S+)/.exec(D)}();
ogg&&(ccM=ogg?ogg[1]:"");if(_.g1){var WJJ=Cb5();if(WJJ!=null&&WJJ>parseFloat(ccM)){XMc=String(WJJ);break a}}XMc=ccM}pMb=XMc;Sdx={};_.OG=function(D){return ACZ(Sdx,D,function(){return _.vo(pMb,D)>=0})};
if(_.co.document&&_.g1){var ggk=Cb5();UfM=ggk?ggk:parseInt(pMb,10)||void 0}else UfM=void 0;_.akx=UfM;var dCm,Rko,Ikg;_.Au=sm();dCm=KrJ()||Kh("iPod");Rko=Kh("iPad");Ikg=_.udo();_.PT=_.mr();_.Di=_.kJR()&&!_.tW();var O55,$5,XIo,CIo,PbC,AcM;O55={};$5=null;XIo=_.ak||_.Ik||typeof _.co.btoa=="function";_.tP=function(D,C){C===void 0&&(C=0);AcM();C=O55[C];for(var X=Array(Math.floor(D.length/3)),c=C[64]||"",W=0,p=0;W<D.length-2;W+=3){var g=D[W],a=D[W+1],O=D[W+2],P=C[g>>2];g=C[(g&3)<<4|a>>4];a=C[(a&15)<<2|O>>6];O=C[O&63];X[p++]=P+g+a+O}P=0;O=c;switch(D.length-W){case 2:P=D[W+1],O=C[(P&15)<<2]||c;case 1:D=D[W],X[p]=C[D>>2]+C[(D&3)<<4|P>>4]+O+c}return X.join("")};
CIo=function(D){var C="";PbC(D,function(X){C+=String.fromCharCode(X)});
return C};
_.wJt=function(D){var C=[];PbC(D,function(X){C.push(X)});
return C};
_.Dk=function(D){var C=D.length,X=C*3/4;X%3?X=Math.floor(X):_.am("=.",D[C-1])&&(X=_.am("=.",D[C-2])?X-2:X-1);var c=new Uint8Array(X),W=0;PbC(D,function(p){c[W++]=p});
return W!==X?c.subarray(0,W):c};
PbC=function(D,C){function X(O){for(;c<D.length;){var P=D.charAt(c++),k=$5[P];if(k!=null)return k;if(!_.Um(P))throw Error("H`"+P);}return O}
AcM();for(var c=0;;){var W=X(-1),p=X(0),g=X(64),a=X(64);if(a===64&&W===-1)break;C(W<<2|p>>4);g!=64&&(C(p<<4&240|g>>2),a!=64&&C(g<<6&192|a))}};
AcM=function(){if(!$5){$5={};for(var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),C=["+/=","+/","-_=","-_.","-_"],X=0;X<5;X++){var c=D.concat(C[X].split(""));O55[X]=c;for(var W=0;W<c.length;W++){var p=c[W];$5[p]===void 0&&($5[p]=W)}}}};var R3J=typeof Uint8Array!=="undefined",VZW=!_.g1&&typeof btoa==="function",T5F=/[-_.]/g,Zhh={"-":"+",_:"/",".":"="},eC={};var mJ,vgd;mJ=function(D,C){if(C!==eC)throw Error("J");this.JSC$8985_value_=D;if(D!=null&&D.length===0)throw Error("I");};
_.tc=function(){return $fc||($fc=new mJ(null,eC))};
vgd=function(D){return new Uint8Array(H1m(D)||0)};
mJ.prototype.isEmpty=function(){return this.JSC$8985_value_==null};
mJ.prototype.sizeBytes=function(){var D=H1m(this);return D?D.length:0};
var H1m=function(D){if(eC!==eC)throw Error("J");var C=D.JSC$8985_value_;C==null||R3J&&C!=null&&C instanceof Uint8Array||(typeof C==="string"?C=Hhm(C):(_.DG(C),C=null));return C==null?C:D.JSC$8985_value_=C},$fc;var z3h=void 0;var WM=typeof Symbol==="function"&&typeof Symbol()==="symbol",i5e=Xe("jas",void 0,!0),Z5m=Xe(void 0,"0di"),cv=Xe(void 0,"1oa"),EX=Xe(void 0,Symbol()),Xpd=Xe(void 0,"0ub"),oth=Xe(void 0,"0ubs"),xJJ=Xe(void 0,"0ubsb"),rPd=Xe(void 0,"0actk"),hP=Xe("m_m","messagePrototypeMarker",!0),$YF=Xe(void 0,"vps"),lkj=Xe();var qmF,MZn,MY,kN5;qmF={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};MZn=Object.defineProperties;_.SC=WM?i5e:"internalArrayState";kN5=[];aq(kN5,7);MY=Object.freeze(kN5);var L1={},BM={},ueq=function(D,C,X){this.iterable=D;this.mapper=C;this.thisArg=X};
ueq.prototype.next=function(){var D=this.iterable.next();D.done||(D.value=this.mapper.call(this.thisArg,D.value));return D};
ueq.prototype[Symbol.iterator]=function(){return this};
var Qq4=Object.freeze({}),y5={};_.BxC=wx(function(D){return D!==null&&D!==void 0});var ogj=wx(function(D){return typeof D==="number"}),cco=wx(function(D){return typeof D==="string"}),pMt=wx(function(D){return typeof D==="boolean"}),b55=wx(function(D){return D!=null&&typeof D==="object"&&typeof D.then==="function"}),GVR=wx(function(D){return typeof D==="function"}),xU=wx(function(D){return!!D&&(typeof D==="object"||typeof D==="function")});var WJr=typeof _.co.BigInt==="function"&&typeof _.co.BigInt(0)==="bigint";var Nxt=wx(function(D){return WJr?D>=rcg&&D<=KJb:D[0]==="-"?Sd5(D,h45):Sd5(D,xfJ)}),h45=Number.MIN_SAFE_INTEGER.toString(),rcg=WJr?BigInt(Number.MIN_SAFE_INTEGER):void 0,xfJ=Number.MAX_SAFE_INTEGER.toString(),KJb=WJr?BigInt(Number.MAX_SAFE_INTEGER):void 0;var LJ4=typeof Uint8Array.prototype.slice==="function",Zk=0,GN=0,ak5;var OX,vp,Xt,$t,uem;OX=typeof BigInt==="function"?BigInt.asIntN:void 0;_.i6=typeof BigInt==="function"?BigInt.asUintN:void 0;vp=Number.isSafeInteger;Xt=Number.isFinite;$t=Math.trunc;uem=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var vtm={};var fkm={},sqC=function(){try{var D=function(){return z5j(Map,[],this.constructor)};
_.h(D,Map);UG(new D);return!1}catch(C){return!0}}(),vT=function(){this.JSC$9004_map_=new Map};
_.S=vT.prototype;_.S.get=function(D){return this.JSC$9004_map_.get(D)};
_.S.set=function(D,C){this.JSC$9004_map_.set(D,C);this.size=this.JSC$9004_map_.size;return this};
_.S.delete=function(D){D=this.JSC$9004_map_.delete(D);this.size=this.JSC$9004_map_.size;return D};
_.S.clear=function(){this.JSC$9004_map_.clear();this.size=this.JSC$9004_map_.size};
_.S.has=function(D){return this.JSC$9004_map_.has(D)};
_.S.entries=function(){return this.JSC$9004_map_.entries()};
_.S.keys=function(){return this.JSC$9004_map_.keys()};
_.S.values=function(){return this.JSC$9004_map_.values()};
_.S.forEach=function(D,C){return this.JSC$9004_map_.forEach(D,C)};
vT.prototype[Symbol.iterator]=function(){return this.entries()};
var iS=function(){if(sqC)return Object.setPrototypeOf(vT.prototype,Map.prototype),Object.defineProperties(vT.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),vT;var D=function(){return z5j(Map,[],this.constructor)};
_.h(D,Map);return D}(),sX=function(D,C,X,c){X=X===void 0?JcJ:X;
c=c===void 0?JcJ:c;var W=iS.call(this)||this;W.arrayState=D[_.SC]|0;W.valueCtor=C;W.keyToApi=X;W.valueToApi=W.valueCtor?jqo:c;for(var p=0;p<D.length;p++){var g=D[p],a=X(g[0],!1,!0),O=g[1];C?O===void 0&&(O=null):O=c(g[1],!1,!0,void 0,void 0,W.arrayState);iS.prototype.set.call(W,a,O)}return W};
_.h(sX,iS);var mfJ=function(D){if(D.arrayState&2)throw Error("N");},P6r=function(D,C){return PM(Array.from(iS.prototype.entries.call(D),C))};
_.S=sX.prototype;_.S.clear=function(){mfJ(this);iS.prototype.clear.call(this)};
_.S.delete=function(D){mfJ(this);return iS.prototype.delete.call(this,this.keyToApi(D,!0,!1))};
_.S.entries=function(){if(this.valueCtor){var D=iS.prototype.keys.call(this);D=new ueq(D,MCJ,this)}else D=iS.prototype.entries.call(this);return D};
_.S.values=function(){if(this.valueCtor){var D=iS.prototype.keys.call(this);D=new ueq(D,sX.prototype.get,this)}else D=iS.prototype.values.call(this);return D};
_.S.forEach=function(D,C){this.valueCtor?iS.prototype.forEach.call(this,function(X,c,W){D.call(C,W.get(c),c,W)}):iS.prototype.forEach.call(this,D,C)};
_.S.set=function(D,C){mfJ(this);D=this.keyToApi(D,!0,!1);return D==null?this:C==null?(iS.prototype.delete.call(this,D),this):iS.prototype.set.call(this,D,this.valueToApi(C,!0,!0,this.valueCtor,!1,this.arrayState))};
_.S.has=function(D){return iS.prototype.has.call(this,this.keyToApi(D,!1,!1))};
_.S.get=function(D){D=this.keyToApi(D,!1,!1);var C=iS.prototype.get.call(this,D);if(C!==void 0){var X=this.valueCtor;return X?(X=this.valueToApi(C,!1,!0,X,this.callToMutableOnAccess,this.arrayState),X!==C&&iS.prototype.set.call(this,D,X),X):C}};
sX.prototype[Symbol.iterator]=function(){return this.entries()};
sX.prototype.toJSON=void 0;var qdm;var UYd=function(){},ppr=function(D,C){for(var X in D)!isNaN(X)&&C(D,+X,D[X])},gtF=function(D){var C=new UYd;
ppr(D,function(X,c,W){C[c]=jC(W)});
C.reviveUnknownFields=D.reviveUnknownFields;return C},DY5={reviveIntoImmutable:!0};var SXm;var i1W,kkm;var e4d,l6,ee,yC,EgN,hu,NN,tCe,Nxb,mX,Ydd,ez,Ny,Y5;e4d=_.Fe(0);_.k5={};_.uS=function(D,C,X,c,W){C=l6(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C,X,W);if(C!==null||c&&D.noLegacyNull!==BM)return C};
l6=function(D,C,X,c){if(C===-1)return null;var W=C+(X?0:-1),p=D.length-1;if(!(p<1+(X?0:-1))){if(W>=p){var g=D[p];if(g!=null&&typeof g==="object"&&g.constructor===Object){X=g[C];var a=!0}else if(W===p)X=g;else return}else X=D[W];if(c&&X!=null){c=c(X);if(c==null)return c;if(!Object.is(c,X))return a?g[C]=c:D[W]=c,c}return X}};
_.rD=function(D,C,X,c){Tk(D);var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zk(W,W[_.SC]|0,C,X,c);return D};
_.QO=function(D,C,X){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FGt(D,D[_.SC]|0,C,X)!==void 0};
_.BT=function(D,C,X,c){var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FGt(W,W[_.SC]|0,C,yC(D,c,X))!==void 0};
_.AR=function(D){return D===Qq4?2:4};
_.bS=function(D,C){D=_.uS(D,C,void 0,void 0,tNF);return D==null?_.tc():D};
ee=function(D,C,X,c){Tk(D);var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=W[_.SC]|0;if(c==null){var g=yPF(W);if(ntj(g,W,p,X)===C)g.set(X,0);else return D}else p=wpn(W,p,X,C);zk(W,p,C,c);return D};
_.r1=function(D,C,X,c){var W=D[_.SC]|0,p=n5(W);W=wpn(D,W,X,C,p);zk(D,W,C,c,p)};
yC=function(D,C,X){return _.KR(D,C)===X?X:-1};
_.KR=function(D,C){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ntj(yPF(D),D,void 0,C,void 0)};
EgN=function(D,C,X){var c=D[_.SC]|0,W=n5(c),p=l6(D,X,W);if(p!=null&&p[hP]===L1){if(!hc(p))return VU(p),p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var g=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(p)&&(g=p);if(g){var a=g[_.SC]|0;a&2&&(g=Gk(g,a))}g=w3(g,C);g!==p&&zk(D,c,X,g,W);return g};
_.Bz=function(D,C,X,c){var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=W[_.SC]|0;C=FGt(W,p,C,X,c);if(C==null)return C;p=W[_.SC]|0;if(!hc(D,p)){var g=z4m(C);g!==C&&(VU(D)&&(W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=W[_.SC]|0),C=g,p=zk(W,p,X,C,c),JP(W,p))}return C};
_.Ih=function(D,C,X,c){var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Z1F(D,W,W[_.SC]|0,C,X,c,!1,!0)};
_.Lf=function(D,C,X,c){X=GkR(X);_.rD(D,C,X,c);X&&!hc(X)&&JP(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
_.sB=function(D,C,X,c){c=GkR(c);ee(D,C,X,c);c&&!hc(c)&&JP(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
hu=function(D,C,X){Tk(D);var c=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=c[_.SC]|0;if(X==null)return zk(c,W,C),D;for(var p=X===MY?7:X[_.SC]|0,g=p,a=Rw(p),O=a||Object.isFrozen(X),P=!0,k=!0,u=0;u<X.length;u++){var Q=X[u];a||(Q=hc(Q),P&&(P=!Q),k&&(k=Q))}a||(p=P?13:5,p=k?p&-4097:p|4096);O&&p===g||(X=jC(X),g=0,p=f1(p,W));p!==g&&aq(X,p);W=zk(c,W,C,X);2&p||!(4096&p||16&p)||JP(c,W);return D};
NN=function(D,C,X,c){T3d(D,C,X,c);return D};
tCe=function(D,C,X){T3d(D,C,x5,void 0,X,1,!0);return D};
_.LR=function(D,C,X){D=_.uS(D,C,void 0,X);C=typeof D;D=D==null?D:C==="bigint"?_.Fe((0,_.i6)(64,D)):_.cp(D)?C==="string"?_.tCd(D):_.e4m(D):void 0;return D};
_.sG=function(D,C){var X=X===void 0?!1:X;var c;return(c=_.kNF(_.uS(D,C)))!=null?c:X};
_.PI=function(D,C,X){X=X===void 0?0:X;var c;return(c=_.aw(_.uS(D,C)))!=null?c:X};
Nxb=function(D,C){var X=X===void 0?0:X;D=_.BxZ(_.uS(D,C));return D!=null?D:X};
mX=function(D,C,X){X=X===void 0?e4d:X;var c;return(c=_.ngd(_.uS(D,C)))!=null?c:X};
Ydd=function(D){var C=C===void 0?e4d:C;var X;return(X=_.LR(D,23))!=null?X:C};
ez=function(D,C){var X=X===void 0?0:X;var c;return(c=_.uS(D,C,void 0,void 0,_.lb))!=null?c:X};
_.EG=function(D,C,X,c){X=X===void 0?"":X;var W;return(W=_.r3(_.uS(D,C,c)))!=null?W:X};
_.tu=function(D,C){var X=X===void 0?0:X;var c;return(c=_.SN(_.uS(D,C)))!=null?c:X};
Ny=function(D,C){var X=X===void 0?"0":X;D=ycj(_.uS(D,C),!0);return D!=null?D:X};
_.ycg=function(D,C,X){D=_.d3(D,C,_.r3,3,!0);lnh(D,X);return D[X]};
Y5=function(D,C,X){return _.EG(D,yC(D,X,C))};
_.yO=function(D,C,X,c){return _.Bz(D,C,yC(D,c,X),void 0)};
_.se=function(D,C){return _.r3(_.uS(D,C,void 0,_.k5))};
_.kT=function(D,C,X){return _.rD(D,C,i5d(X))};
_.rl=function(D,C,X){return _.Cf(D,C,i5d(X),!1)};
_.nR=function(D,C,X){return _.rD(D,C,_.g3(X))};
_.wO=function(D,C,X){return _.rD(D,C,Pp(X))};
_.N3=function(D,C,X){return _.rD(D,C,Bp(X))};
_.Tt=function(D,C,X,c){return _.Cf(D,C,Bp(X),"",c)};
_.bl=function(D,C,X){return _.rD(D,C,X==null?X:_.Wp(X))};
_.w1=function(D,C,X){return _.Cf(D,C,X==null?X:_.Wp(X),0)};var Wv=function(D,C,X){this.buffer=D;if(X&&!C)throw Error();this.JSC$9016_isImmutable=C};var nge=function(D,C,X,c){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9019_start_=0;this.init(D,C,X,c)},FN,FJd,Z5q,GNe,VCg,Tx5,$JW,wMJ;
_.S=nge.prototype;_.S.init=function(D,C,X,c){var W=c===void 0?{}:c;c=W.aliasBytesFields===void 0?!1:W.aliasBytesFields;W=W.treatNewDataAsImmutable===void 0?!1:W.treatNewDataAsImmutable;this.aliasBytesFields=c;this.treatNewDataAsImmutable=W;D&&(D=JP3(D,this.treatNewDataAsImmutable),this.bytes_=D.buffer,this.bytesAreImmutable_=D.JSC$9016_isImmutable,this.JSC$9019_start_=C||0,this.end_=X!==void 0?this.JSC$9019_start_+X:this.bytes_.length,this.cursor_=this.JSC$9019_start_)};
_.S.free=function(){this.clear();wMJ.length<100&&wMJ.push(this)};
_.S.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9019_start_=0;this.aliasBytesFields=!1};
_.S.reset=function(){this.cursor_=this.JSC$9019_start_};
_.S.atEnd=function(){return this.cursor_==this.end_};
_.Za=function(D,C){var X=0,c=0,W=0,p=D.bytes_,g=D.cursor_;do{var a=p[g++];X|=(a&127)<<W;W+=7}while(W<32&&a&128);if(W>32)for(c|=(a&127)>>4,W=3;W<32&&a&128;W+=7)a=p[g++],c|=(a&127)<<W;FN(D,g);if(!(a&128))return C(X>>>0,c>>>0);throw Error();};
FN=function(D,C){D.cursor_=C;if(C>D.end_)throw Error();};
_.Gj=function(D){var C=D.bytes_,X=D.cursor_,c=C[X++],W=c&127;if(c&128&&(c=C[X++],W|=(c&127)<<7,c&128&&(c=C[X++],W|=(c&127)<<14,c&128&&(c=C[X++],W|=(c&127)<<21,c&128&&(c=C[X++],W|=c<<28,c&128&&C[X++]&128&&C[X++]&128&&C[X++]&128&&C[X++]&128&&C[X++]&128)))))throw Error();FN(D,X);return W};
_.VO=function(D){var C=D.bytes_,X=D.cursor_,c=C[X],W=C[X+1],p=C[X+2];C=C[X+3];FN(D,D.cursor_+4);return(c<<0|W<<8|p<<16|C<<24)>>>0};
FJd=function(D){var C=_.VO(D);D=_.VO(D);return O5h(C,D)};
Z5q=function(D){var C=_.VO(D);D=(C>>31)*2+1;var X=C>>>23&255;C&=8388607;return X==255?C?NaN:D*Infinity:X==0?D*1.401298464324817E-45*C:D*Math.pow(2,X-150)*(C+8388608)};
GNe=function(D){var C=_.VO(D),X=_.VO(D);D=(X>>31)*2+1;var c=X>>>20&2047;C=4294967296*(X&1048575)+C;return c==2047?C?NaN:D*Infinity:c==0?D*4.9E-324*C:D*Math.pow(2,c-1075)*(C+4503599627370496)};
VCg=function(D){for(var C=0,X=D.cursor_,c=X+10,W=D.bytes_;X<c;){var p=W[X++];C|=p;if((p&128)===0)return FN(D,X),!!(C&127)}throw Error();};
Tx5=function(D,C){if(C<0)throw Error();var X=D.cursor_;C=X+C;if(C>D.end_)throw Error();D.cursor_=C;return X};
$JW=function(D,C){if(C==0)return _.tc();var X=Tx5(D,C);D.aliasBytesFields&&D.bytesAreImmutable_?X=D.bytes_.subarray(X,X+C):(D=D.bytes_,C=X+C,X=X===C?new Uint8Array(0):LJ4?D.slice(X,C):new Uint8Array(D.subarray(X,C)));return X.length==0?_.tc():new mJ(X,eC)};
wMJ=[];var JcN=function(D,C,X,c){if(wMJ.length){var W=wMJ.pop();W.init(D,C,X,c);D=W}else D=new nge(D,C,X,c);this.decoder_=D;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;H5b(this,c)},H5b=function(D,C){C=C===void 0?{}:C;
D.discardUnknownFields=C.discardUnknownFields===void 0?!1:C.discardUnknownFields},kdZ=function(D,C,X,c){if(z4d.length){var W=z4d.pop();
H5b(W,c);W.decoder_.init(D,C,X,c);return W}return new JcN(D,C,X,c)},Ofh,PUW,Tj,jqM,z4d;
JcN.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;z4d.length<100&&z4d.push(this)};
JcN.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Ofh=function(D){if(D.decoder_.atEnd())return!1;D.fieldCursor_=D.decoder_.cursor_;var C=_.Gj(D.decoder_)>>>0,X=C>>>3;C&=7;if(!(C>=0&&C<=5))throw Error();if(X<1)throw Error();D.nextField_=X;D.nextWireType_=C;return!0};
PUW=function(D){switch(D.nextWireType_){case 0:D.nextWireType_!=0?PUW(D):VCg(D.decoder_);break;case 1:D=D.decoder_;FN(D,D.cursor_+8);break;case 2:if(D.nextWireType_!=2)PUW(D);else{var C=_.Gj(D.decoder_)>>>0;D=D.decoder_;FN(D,D.cursor_+C)}break;case 5:D=D.decoder_;FN(D,D.cursor_+4);break;case 3:C=D.nextField_;do{if(!Ofh(D))throw Error();if(D.nextWireType_==4){if(D.nextField_!=C)throw Error();break}PUW(D)}while(1);break;default:throw Error();}};
Tj=function(D,C,X){var c=D.decoder_.end_,W=_.Gj(D.decoder_)>>>0;W=D.decoder_.cursor_+W;var p=W-c;p<=0&&(D.decoder_.end_=W,X(C,D,void 0,void 0,void 0),p=W-D.decoder_.cursor_);if(p)throw Error();D.decoder_.cursor_=W;D.decoder_.end_=c;return C};
jqM=function(D){var C=_.Gj(D.decoder_)>>>0;D=D.decoder_;var X=Tx5(D,C);D=D.bytes_;if(KrN){var c=D,W;(W=rWJ)||(W=rWJ=new TextDecoder("utf-8",{fatal:!0}));C=X+C;c=X===0&&C===c.length?c:c.subarray(X,C);try{var p=W.decode(c)}catch(P){if(bhk===void 0){try{W.decode(new Uint8Array([128]))}catch(k){}try{W.decode(new Uint8Array([97])),bhk=!0}catch(k){bhk=!1}}!bhk&&(rWJ=void 0);throw P;}}else{p=X;C=p+C;X=[];for(var g=null,a,O;p<C;)a=D[p++],a<128?X.push(a):a<224?p>=C?Ch():(O=D[p++],a<194||(O&192)!==128?(p--,
Ch()):X.push((a&31)<<6|O&63)):a<240?p>=C-1?Ch():(O=D[p++],(O&192)!==128||a===224&&O<160||a===237&&O>=160||((W=D[p++])&192)!==128?(p--,Ch()):X.push((a&15)<<12|(O&63)<<6|W&63)):a<=244?p>=C-2?Ch():(O=D[p++],(O&192)!==128||(a<<28)+(O-144)>>30!==0||((W=D[p++])&192)!==128||((c=D[p++])&192)!==128?(p--,Ch()):(a=(a&7)<<18|(O&63)<<12|(W&63)<<6|c&63,a-=65536,X.push((a>>10&1023)+55296,(a&1023)+56320))):Ch(),X.length>=8192&&(g=URo(g,X),X.length=0);p=URo(g,X)}return p};
_.MCN=function(D){var C=_.Gj(D.decoder_)>>>0;return $JW(D.decoder_,C)};
_.qdq=function(D,C,X){var c=_.Gj(D.decoder_)>>>0;for(c=D.decoder_.cursor_+c;D.decoder_.cursor_<c;)X.push(C(D.decoder_))};
z4d=[];var fkd=function(D,C){this.JSC$9026_lo=D>>>0;this.JSC$9026_hi=C>>>0},tD3=function(D){D=BigInt.asUintN(64,D);
return new fkd(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)))},MNR=function(D){if(!D)return dfg||(dfg=new fkd(0,0));
if(!/^\d+$/.test(D))return null;zN(D);return new fkd(Zk,GN)},dfg,ENt=function(D,C){this.JSC$9028_lo=D>>>0;
this.JSC$9028_hi=C>>>0},zoZ=function(D){if(!D)return R4f||(R4f=new ENt(0,0));
if(!/^-?\d+$/.test(D))return null;zN(D);return new ENt(Zk,GN)},R4f;var HT=function(){this.JSC$9030_buffer_=[]},kN,Q$,lkg;
HT.prototype.length=function(){return this.JSC$9030_buffer_.length};
HT.prototype.end=function(){var D=this.JSC$9030_buffer_;this.JSC$9030_buffer_=[];return D};
kN=function(D,C,X){for(;X>0||C>127;)D.JSC$9030_buffer_.push(C&127|128),C=(C>>>7|X<<25)>>>0,X>>>=7;D.JSC$9030_buffer_.push(C)};
Q$=function(D,C){for(;C>127;)D.JSC$9030_buffer_.push(C&127|128),C>>>=7;D.JSC$9030_buffer_.push(C)};
_.YBR=function(D,C){if(C>=0)Q$(D,C);else{for(var X=0;X<9;X++)D.JSC$9030_buffer_.push(C&127|128),C>>=7;D.JSC$9030_buffer_.push(1)}};
lkg=function(D,C){zN(C);Aco(function(X,c){kN(D,X>>>0,c>>>0)})};
HT.prototype.writeUint8=function(D){this.JSC$9030_buffer_.push(D>>>0&255)};
_.vv=function(D,C){D.JSC$9030_buffer_.push(C>>>0&255);D.JSC$9030_buffer_.push(C>>>8&255);D.JSC$9030_buffer_.push(C>>>16&255);D.JSC$9030_buffer_.push(C>>>24&255)};
HT.prototype.writeInt8=function(D){this.JSC$9030_buffer_.push(D>>>0&255)};var DYx,IH,nNj,Zfm,Ror;DYx=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new HT};
IH=function(D,C){C.length!==0&&(D.blocks_.push(C),D.totalLength_+=C.length)};
_.C6C=function(D,C){_.$N(D,C,2);C=D.encoder_.end();IH(D,C);C.push(D.totalLength_);return C};
_.Xpe=function(D,C){var X=C.pop();for(X=D.totalLength_+D.encoder_.length()-X;X>127;)C.push(X&127|128),X>>>=7,D.totalLength_++;C.push(X);D.totalLength_++};
_.$N=function(D,C,X){Q$(D.encoder_,C*8+X)};
nNj=function(D,C,X){if(X!=null)switch(qXr(X),_.$N(D,C,1),typeof X){case "number":D=D.encoder_;Ufo(X);_.vv(D,Zk);_.vv(D,GN);break;case "bigint":X=tD3(X);D=D.encoder_;C=X.JSC$9026_hi;_.vv(D,X.JSC$9026_lo);_.vv(D,C);break;default:X=MNR(X),D=D.encoder_,C=X.JSC$9026_hi,_.vv(D,X.JSC$9026_lo),_.vv(D,C)}};
Zfm=function(D,C,X){_.$N(D,C,2);Q$(D.encoder_,X.length);IH(D,D.encoder_.end());IH(D,X)};
Ror=function(D,C,X,c){X!=null&&(C=_.C6C(D,C),c(X,D),_.Xpe(D,C))};var fGr,cPN,ot5,WGc,ppJ,UYe,gt5,IGd,O1c;fGr=pf();cPN=pf();ot5=pf();WGc=pf();ppJ=pf();_.SXd=pf();_.Ju=pf();UYe=pf();gt5=pf();_.aGk=pf();IGd=pf();O1c=pf();_.APg=pf();_.P6J=pf();_.aH=function(D,C,X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,C,X)};
_.aH.prototype.toJSON=function(){return yU(this)};
_.aH.prototype.serialize=function(D){return JSON.stringify(yU(this,D))};
var qBW=function(D,C){if(C==null||C=="")return new D;C=JSON.parse(C);if(!Array.isArray(C))throw Error("V");return new D(dRF(C))};
_.aH.prototype.getExtension=function(D){cPJ(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D.fieldIndex);C6Z(this,D.fieldIndex);return D.ctor?D.isRepeated?D.getExtensionFn(this,D.ctor,D.fieldIndex,_.AR(),D.JSC$9041_hasMessageId):D.getExtensionFn(this,D.ctor,D.fieldIndex,D.JSC$9041_hasMessageId):D.isRepeated?D.getExtensionFn(this,D.fieldIndex,_.AR(),D.JSC$9041_hasMessageId):D.getExtensionFn(this,D.fieldIndex,D.defaultValue,D.JSC$9041_hasMessageId)};
_.aH.prototype.clone=function(){var D=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=D[_.SC]|0;return swR(this,D,C)?LGn(this,D,!0):new this.constructor(Gk(D,C,!1))};
_.aH.prototype[hP]=L1;_.aH.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var SD=function(D,C,X){this.$$binaryReaderFn=D;this.$$binaryWriterFn=C;D=eN(fGr);this.$$isMsg=!!D&&X===D||!1},oNR=dY3(function(D,C,X,c,W){if(D.nextWireType_!==2)return!1;
Tj(D,EgN(C,c,X),W);return!0},DJm),WzJ=dY3(function(D,C,X,c,W){if(D.nextWireType_!==2)return!1;
Tj(D,EgN(C,c,X),W);return!0},DJm),QHd=Symbol(),UJR=Symbol(),I6o=Symbol(),r2t=Symbol(),vNh=Symbol(),CUj,Xv3;var zvj,$Y5,zj,vtq,i1c,kkd,utg,fR,B3b,b1N,rPe,KG5,hoN,LGk,swf,mYd,eok,Et5,tN5;zvj=function(D,C){var X=new DYx;Kzm(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X,UB(QHd,umh,BjZ,C));IH(X,X.encoder_.end());D=new Uint8Array(X.totalLength_);C=X.blocks_;for(var c=C.length,W=0,p=0;p<c;p++){var g=C[p];D.set(g,W);W+=g.length}X.blocks_=[D];return D};
$Y5=dY3(function(D,C,X,c,W){if(D.nextWireType_!==2)return!1;D=Tj(D,w3([void 0,void 0],c),W);D=jC(D);c=C[_.SC]|0;W=n5(c);if(c&2)throw Error();var p=l6(C,X,W);if(p instanceof sX)(p.arrayState&2)!=0?(p=P6r(p),p.push(D),zk(C,c,X,p,W)):(C=p,X=C.keyToApi(D[0],!1,!0),D=D[1],D=C.valueCtor?D===void 0?null:D:C.valueToApi(D,!1,!0,void 0,!1,C.arrayState),iS.prototype.set.call(C,X,D));else if(Array.isArray(p)){var g=p[_.SC]|0;g&8192||aq(p,g|=8192);g&2&&(p=N3m(p),zk(C,c,X,p,W));p.push(D)}else zk(C,c,X,PM([D]),
W);return!0},function(D,C,X,c,W){if(C instanceof sX)C.forEach(function(a,O){Ror(D,X,w3([O,
a],c),W)});
else if(Array.isArray(C)){for(var p=0;p<C.length;p++){var g=C[p];Array.isArray(g)&&Ror(D,X,w3(g,c),W)}PM(C)}});
zj=_.OB(function(D,C,X){if(D.nextWireType_!==1)return!1;_.Pv(C,X,GNe(D.decoder_));return!0},mJJ,O1c);
vtq=_.OB(function(D,C,X,c){if(D.nextWireType_!==1)return!1;_.r1(C,X,c,GNe(D.decoder_));return!0},mJJ,O1c);
i1c=_.OB(function(D,C,X){if(D.nextWireType_!==5)return!1;_.Pv(C,X,Z5q(D.decoder_));return!0},evh,IGd);
kkd=_.sHd(function(D,C,X){if(D.nextWireType_!==5&&D.nextWireType_!==2)return!1;C=_.Xm(C,C[_.SC]|0,X);D.nextWireType_==2?_.qdq(D,Z5q,C):C.push(Z5q(D.decoder_));return!0},function(D,C,X){C=_.LzR(_.lb,C,!0);
if(C!=null&&C.length)for(_.$N(D,X,2),Q$(D.encoder_,C.length*4),X=0;X<C.length;X++){var c=D.encoder_;Ikj(C[X]);_.vv(c,Zk)}},IGd);
utg=_.OB(function(D,C,X,c){if(D.nextWireType_!==5)return!1;_.r1(C,X,c,Z5q(D.decoder_));return!0},evh,IGd);
_.Qwf=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Za(D.decoder_,_.vgm));return!0},_.uU,_.Ju);
_.qy=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Za(D.decoder_,Jc));return!0},_.uU,_.Ju);
fR=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;D=_.Za(D.decoder_,Jc);_.Pv(C,X,D===0?void 0:D);return!0},_.uU,_.Ju);
B3b=_.OB(function(D,C,X,c){if(D.nextWireType_!==0)return!1;_.r1(C,X,c,_.Za(D.decoder_,Jc));return!0},_.uU,_.Ju);
b1N=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Za(D.decoder_,_.TN));return!0},Njh,UYe);
_.d1=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Za(D.decoder_,O5h));return!0},Njh,UYe);
_.Rk=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Gj(D.decoder_));return!0},y2J,WGc);
rPe=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;D=_.Gj(D.decoder_);_.Pv(C,X,D===0?void 0:D);return!0},y2J,WGc);
KG5=_.OB(function(D,C,X,c){if(D.nextWireType_!==0)return!1;_.r1(C,X,c,_.Gj(D.decoder_));return!0},y2J,WGc);
hoN=_.OB(function(D,C,X){if(D.nextWireType_!==1)return!1;_.Pv(C,X,FJd(D.decoder_));return!0},_.wvd,_.aGk);
_.xYN=_.sHd(function(D,C,X){if(D.nextWireType_!==1&&D.nextWireType_!==2)return!1;C=_.Xm(C,C[_.SC]|0,X);D.nextWireType_==2?_.qdq(D,FJd,C):C.push(FJd(D.decoder_));return!0},function(D,C,X){C=_.LzR(FJm,C,!1);
if(C!=null)for(var c=0;c<C.length;c++)nNj(D,X,C[c])},_.aGk);
_.lS=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,VCg(D.decoder_));return!0},Fz5,cPN);
_.DV=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;D=VCg(D.decoder_);_.Pv(C,X,D===!1?void 0:D);return!0},Fz5,cPN);
LGk=_.OB(function(D,C,X,c){if(D.nextWireType_!==0)return!1;_.r1(C,X,c,VCg(D.decoder_));return!0},Fz5,cPN);
_.CL=_.OB(function(D,C,X){if(D.nextWireType_!==2)return!1;_.Pv(C,X,jqM(D));return!0},Gdo,ot5);
_.XD=_.OB(function(D,C,X){if(D.nextWireType_!==2)return!1;D=jqM(D);_.Pv(C,X,D===""?void 0:D);return!0},Gdo,ot5);
_.cq=_.OB(function(D,C,X,c){if(D.nextWireType_!==2)return!1;_.r1(C,X,c,jqM(D));return!0},Gdo,ot5);
swf=_.sHd(function(D,C,X){if(D.nextWireType_!==2)return!1;D=jqM(D);_.Xm(C,C[_.SC]|0,X).push(D);return!0},function(D,C,X){C=_.LzR(_.r3,C,!0);
if(C!=null)for(var c=0;c<C.length;c++){var W=D,p=X,g=C[c];g!=null&&Zfm(W,p,Oh5(g))}},ot5);
mYd=void 0;mYd=mYd===void 0?fGr:mYd;_.oK=new SD(function(D,C,X,c,W){if(D.nextWireType_!==2)return!1;c=w3(void 0,c);_.Xm(C,C[_.SC]|0,X).push(c);Tj(D,c,W);return!0},function(D,C,X,c,W){if(Array.isArray(C)){for(var p=0;p<C.length;p++)VD3(D,C[p],X,c,W);
D=C[_.SC]|0;D&1||aq(C,D|1)}},mYd);
_.Wq=dY3(function(D,C,X,c,W,p){if(D.nextWireType_!==2)return!1;var g=C[_.SC]|0;wpn(C,g,p,X,n5(g));C=EgN(C,c,X);Tj(D,C,W);return!0},VD3);
_.pL=_.OB(function(D,C,X){if(D.nextWireType_!==2)return!1;_.Pv(C,X,_.MCN(D));return!0},_.Tjm,_.APg);
eok=_.OB(function(D,C,X,c){if(D.nextWireType_!==2)return!1;_.r1(C,X,c,_.MCN(D));return!0},_.Tjm,_.APg);
_.S$=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Gj(D.decoder_)>>>0);return!0},Hft,ppJ);
Et5=_.OB(function(D,C,X,c){if(D.nextWireType_!==0)return!1;_.r1(C,X,c,_.Gj(D.decoder_)>>>0);return!0},Hft,ppJ);
_.Uf=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Gj(D.decoder_));return!0},_.J2m,_.P6J);
_.gd=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;D=_.Gj(D.decoder_);_.Pv(C,X,D===0?void 0:D);return!0},_.J2m,_.P6J);
tN5=_.OB(function(D,C,X){if(D.nextWireType_!==0)return!1;_.Pv(C,X,_.Za(D.decoder_,PbZ));return!0},function(D,C,X){C=wMr(C);
if(C!=null&&(jwF(C),C!=null))switch(_.$N(D,X,0),typeof C){case "number":D=D.encoder_;X=C;C=X<0;X=Math.abs(X)*2;Ufo(X);X=Zk;var c=GN;C&&(X==0?c==0?c=X=4294967295:(c--,X=4294967295):X--);Zk=X;GN=c;kN(D,Zk,GN);break;case "bigint":D=D.encoder_;C=C<<BigInt(1)^C>>BigInt(63);Zk=Number(BigInt.asUintN(32,C));GN=Number(BigInt.asUintN(32,C>>BigInt(32)));kN(D,Zk,GN);break;default:lkg(D.encoder_,C)}},gt5);var yP5=function(){var D=N3q,C=YX4;this.fieldIndex=175237375;this.ctor=C;this.isRepeated=0;this.getExtensionFn=_.Bz;this.defaultValue=void 0;this.JSC$9041_hasMessageId=D.messageId!=null?y5:void 0};
yP5.prototype.register=function(){UG(this)};var ntg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ntg,_.aH);var wpk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(wpk,_.aH);var Rvo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Rvo,_.aH);var FGb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(FGb,_.aH);var Z15=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Z15,_.aH);var Gkf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Gkf,_.aH);var VNM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(VNM,_.aH);VNM.prototype.getData=function(){return _.bS(this,2)};var T3e=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(T3e,_.aH);var H1q=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(H1q,_.aH);H1q.prototype.getStyle=function(){return _.Bz(this,ntg,1)};var xN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(xN,_.aH);xN.prototype.getPayloadCase=function(){return _.KR(this,mz)};
xN.prototype.getStyle=function(){return _.yO(this,H1q,6,mz)};
var JP4=function(){var D=new xN,C=new Z15;return _.sB(D,7,mz,C)},zoC=function(){var D=new xN,C=new Gkf;
return _.sB(D,8,mz,C)},mz=[1,
2,3,4,5,6,7,8];var jw5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(jw5,_.aH);var MNf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(MNf,_.aH);var qXJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(qXJ,_.aH);var fGJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(fGJ,_.aH);var dY4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(dY4,_.aH);var RoJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(RoJ,_.aH);var lGd=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(lGd,_.aH);var DJd=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(DJd,_.aH);DJd.prototype.getData=function(){return _.bS(this,2)};var CUg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(CUg,_.aH);var dJZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(dJZ,_.aH);dJZ.prototype.getPayloadCase=function(){return _.KR(this,aK)};
var aK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var IK=function(D,C){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=C===void 0?2:C};
_.h(IK,Error);var Xv4=Promise;var c2C=function(D){this.channelPromise=D};
c2C.prototype.send=function(D,C,X){this.channelPromise.then(function(c){c.send(D,C,X)})};var oNf=function(D,C){this.data=D;this.channel=C};
oNf.prototype.reply=function(D,C,X){this.channel.send(D,C,X)};var WzN=function(D){this.JSC$9107_port_=D};
WzN.prototype.send=function(D,C,X){X=X===void 0?[]:X;var c=new MessageChannel;pvf(c.port1,C);this.JSC$9107_port_.postMessage(D,[c.port2].concat(X))};
var SBg=function(D,C){pvf(D,C);return new WzN(D)},pvf=function(D,C){C&&(D.onmessage=function(X){C(new oNf(X.data,SBg(X.ports[0])))})};var UJf=function(D){this.verifier_=D};
UJf.prototype.verify=function(D){return this.verifier_(D)};
var gNx=function(D){var C=Object.create(null);(typeof D==="string"?[D]:D).forEach(function(X){if(X==="null")throw Error("X");C[X]=!0});
return function(X){return C[X]===!0}};_.a6d=function(){if(!_.co.addEventListener||!Object.defineProperty)return!1;var D=!1,C=Object.defineProperty({},"passive",{get:function(){D=!0}});
try{var X=function(){};
_.co.addEventListener("test",X,C);_.co.removeEventListener("test",X,C)}catch(c){}return D}();var I6M;_.Of=function(D){var C=D.destination;var X=D.iframe;var c=D.origin;var W=D.channelName===void 0?"ZNWN1d":D.channelName;var p=D.onMessage===void 0?void 0:D.onMessage;D=D.onEstablished===void 0?void 0:D.onEstablished;return I6M({destination:C,getSource:function(){return X.contentWindow},
originVerifier:c instanceof UJf?c:typeof c==="function"?new UJf(c):new UJf(gNx(c)),channelName:W,onMessage:p,onEstablished:D})};
I6M=function(D){var C=D.destination;var X=D.getSource;var c=D.originVerifier;var W=D.token===void 0?void 0:D.token;var p=D.channelName;var g=D.onMessage===void 0?void 0:D.onMessage;var a=D.onEstablished===void 0?void 0:D.onEstablished;return new c2C(new Xv4(function(O,P){var k=function(u){u.source&&u.source===X()&&c.verify(u.origin)&&(u.data.n||u.data)===p&&(C.removeEventListener("message",k,!1),W&&u.data.t!==W?P(Error("Y`"+p+"`"+W+"`"+u.data.t)):(O(SBg(u.ports[0],g)),a&&a(u)))};
C.addEventListener("message",k,!1)}))};var Of5=function(D){try{D()}catch(C){om(C)}};var PUc=function(D){var C=this;var X=D.getMessageType;var c=D.onUnregisteredMessage===void 0?function(){}:D.onUnregisteredMessage;
var W=D.onBeforeRegisteredMessage===void 0?function(){}:D.onBeforeRegisteredMessage;
D=D.onAfterRegisteredMessage===void 0?function(){}:D.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=X;this.onUnregisteredMessage_=c;this.onBeforeRegisteredMessage_=W;this.onAfterRegisteredMessage_=D;this.onMessage=function(p){return A2x(C,p)}};
PUc.prototype.register=function(D,C){this.registry_.set(D,C);return this};
var A2x=function(D,C){var X=D.getMessageType_(C.data),c=D.registry_.get(X);c?(Of5(function(){return D.onBeforeRegisteredMessage_(C,X)}),Of5(function(){return c(C)}),Of5(function(){return D.onAfterRegisteredMessage_(C,X)})):Of5(function(){return D.onUnregisteredMessage_(C,X)})};var $Jc=function(D){this.JSC$9124_channel_=D},ifq,kdC;
$Jc.prototype.send=function(D,C,X){this.JSC$9124_channel_.send(yU(D),C,X)};
_.vN5=function(D,C){return function(X){var c=new D(X.data);return C(new oNf(c,X.channel))}};
ifq=function(D){return function(C){return D(new oNf(C.data,new $Jc(C.channel)))}};
kdC=function(D,C){return ifq(_.vN5(D,C))};var um5=function(D,C,X,c){this.registry=D;this.delegate=C;this.receiveMessageConstructor=X;this.createInitMessage=c;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},f6d=function(D){var C=new PUc({getMessageType:D.getPayloadCase});
return new um5(C,new $Jc(_.Of({iframe:D.child,destination:window,origin:D.origin,channelName:D.channelName,onMessage:kdC(D.receiveMessageConstructor,C.onMessage)})),D.receiveMessageConstructor,D.createInitMessage)},QHe=function(D,C){D.createInitMessage=C};
um5.prototype.send=function(D){if(!this.initialised)throw new IK("Attempted to send a message before initialisation.");this.delegate.send(D)};
var BjC=function(D,C){return _.I(function(X){if(!D.initialised)throw new IK("Attempted to send a message before initialisation.");return X.return(new Promise(function(c){D.delegate.send(C,kdC(D.receiveMessageConstructor,c))}))})};
um5.prototype.init=function(){var D=this;return _.I(function(C){if(D.initialised)throw new IK("Attempted to initialise twice. The SDK can only be initialised once.");if(D.createInitMessage!==void 0){var X=D.delegate,c=X.send,W=D.createInitMessage;var p=new wpk;var g=[].concat(_.VB(D.features));p=_.D6(p,1,g,_.Wp);c.call(X,W.call(D,p))}D.initialised=!0;_.t_(C)})};
var A6=function(D,C){if(D.initialised)throw new IK('Attempted to set up API "'+C+'" after initialisation. All APIs must be set up before initialising the SDK.');D.features.add(C);return D.registry};
_.$a.Object.defineProperties(um5.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var bfb=function(D){this.channel=D;this.registered=!1};
bfb.prototype.update=function(D){if(this.channel.isInitialised){if(!this.registered)throw new IK("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var C=new xN;var X=new FGb;X=_.kT(X,1,D);C=_.sB(C,2,mz,X);this.channel.send(C)}else this.register();this.JSC$9138_audioEnabled=D};
bfb.prototype.register=function(){A6(this.channel,1);this.registered=!0};
bfb.prototype.isAudioEnabled=function(){return this.JSC$9138_audioEnabled};var r2b=function(D){this.channel=D};
_.S=r2b.prototype;_.S.onFirstFrameReady=function(D){A6(this.channel,2).register(11,function(C){C=_.yO(C.data,jw5,11,aK);if(!C)throw new IK("Unexpectedly nonexistent GameFirstFrameReadyEvent");D(_.EG(C,1))})};
_.S.onReady=function(D){A6(this.channel,2).register(4,function(C){C=_.yO(C.data,qXJ,4,aK);if(!C)throw new IK("Unexpectedly nonexistent GameReadyEvent");D(_.EG(C,1))})};
_.S.onLevelComplete=function(D){A6(this.channel,2).register(5,function(C){C=_.yO(C.data,fGJ,5,aK);if(!C)throw new IK("Unexpectedly nonexistent LevelCompleteEvent");D(_.EG(C,1),_.PI(C,2))})};
_.S.onGameOver=function(D){A6(this.channel,2).register(6,function(C){C=_.yO(C.data,MNf,6,aK);if(!C)throw new IK("Unexpectedly nonexistent GameOverEvent");D(_.EG(C,1))})};
_.S.pause=function(){var D=this;if(!this.channel.isInitialised)return A6(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new IK("Using unregistered Game Feature: pause.");var C=JP4();return new Promise(function(X){return _.I(function(c){if(c.nextAddress==1)return c.yield(BjC(D.channel,C),2);X();_.t_(c)})})};
_.S.resume=function(){var D=this;if(!this.channel.isInitialised)return A6(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new IK("Using unregistered Game Feature: resume.");var C=zoC();return new Promise(function(X){return _.I(function(c){if(c.nextAddress==1)return c.yield(BjC(D.channel,C),2);X();_.t_(c)})})};var Kzq=function(D){this.channel=D};
Kzq.prototype.onReady=function(D){A6(this.channel,5).register(8,function(C){if(!_.yO(C.data,dY4,8,aK))throw new IK("Unexpectedly nonexistent PageReadyEvent");D()})};var hvx=function(D){this.channel=D};
hvx.prototype.onChange=function(D){A6(this.channel,3).register(7,function(C){C=_.yO(C.data,RoJ,7,aK);if(!C)throw new IK("Unexpectedly nonexistent ScoreEvent");D(_.EG(C,1),_.PI(C,2))})};var xJN={load:function(){throw new IK("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new IK("Storage used, but storage.onSave() listener not set!");}},Lzf=function(D){this.channel=D;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},sHe=function(D){A6(D.channel,4).register(2,xJN.load).register(3,xJN.save);
D.initialSetupDone=!0};
Lzf.prototype.onLoad=function(D){this.initialSetupDone||sHe(this);this.loadRegistered||(this.loadRegistered=!0,A6(this.channel,4).register(2,function(C){var X,c,W;return _.I(function(p){if(p.nextAddress==1){X=_.yO(C.data,lGd,2,aK);if(!X)throw new IK("Unexpectedly nonexistent StorageLoad");c=_.EG(X,1);return p.yield(D(c),2)}W=p.yieldResult;var g=C.reply,a=new xN;var O=new VNM;O=_.N3(O,1,c);O=_.rD(O,2,_.Yg(W,!1));a=_.sB(a,3,mz,O);g.call(C,a);_.t_(p)})}))};
Lzf.prototype.onSave=function(D){this.initialSetupDone||sHe(this);this.saveRegistered||(this.saveRegistered=!0,A6(this.channel,4).register(3,function(C){var X,c,W;return _.I(function(p){if(p.nextAddress==1){X=_.yO(C.data,DJd,3,aK);if(!X)throw new IK("Unexpectedly nonexistent StorageSave");c=_.EG(X,1);W=vgd(X.getData());return p.yield(D(c,W),2)}var g=C.reply,a=new xN;var O=new T3e;O=_.N3(O,1,c);a=_.sB(a,4,mz,O);g.call(C,a);_.t_(p)})}))};var mJN=function(D){this.channel=D};
mJN.prototype.update=function(D){if(!this.channel.features.has(6))throw new IK("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var C=new xN,X=new H1q;D=_.Lf(X,1,D);C=_.sB(C,6,mz,D);this.channel.send(C)};
mJN.prototype.register=function(){A6(this.channel,6)};var ev5=function(D){this.channel=D;this.userActivityLoggingIntervalMs=0};
ev5.prototype.onUserActivity=function(D,C){this.userActivityLoggingIntervalMs=C;A6(this.channel,7).register(9,function(X){if(!_.yO(X.data,CUg,9,aK))throw new IK("Unexpectedly nonexistent ClickEvent");D()})};var ENb=function(D){var C=this;this.channel=D;this.init=this.channel.init.bind(this.channel);this.page=new Kzq(this.channel);this.game=new r2b(this.channel);this.audio=new bfb(this.channel);this.score=new hvx(this.channel);this.storage=new Lzf(this.channel);this.style=new mJN(this.channel);this.userActivity=new ev5(this.channel);QHe(this.channel,function(X){var c=new Rvo;X=_.Lf(c,1,X);X=_.nR(X,3,C.userActivity.userActivityLoggingIntervalMs);c=C.audio.isAudioEnabled();c!==void 0&&_.kT(X,2,c);c=new xN;
return _.sB(c,5,mz,X)})};var tD4=function(){this.timedFunctionContext=0};
tD4.prototype.timeExecution=function(D,C){var X=this;return function(){var c=_.MJ.apply(0,arguments);X.timedFunctionContext=D;return C.apply(null,_.VB(c))}};var Nj5=function(){var D={};this.priorityTasks=(D[3]=[],D[2]=[],D[1]=[],D);this.isFlushing=!1},hp=function(D,C,X){var c=YBf(D,X);
D.priorityTasks[X].push(C);c&&D.priorityTasks[X].length===1&&D.flush()},YBf=function(D,C){return Object.keys(D.priorityTasks).map(function(X){return Number(X)}).filter(function(X){return!isNaN(X)&&X>C}).every(function(X){return D.priorityTasks[X].length===0})};
Nj5.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(D){return D.length>0});)y2N(this,3),y2N(this,2),y2N(this,1)}catch(D){throw Object.values(this.priorityTasks).forEach(function(C){return void C.splice(0,C.length)}),D;
}finally{this.isFlushing=!1}}};
var y2N=function(D,C){for(;YBf(D,C)&&D.priorityTasks[C].length>0;)D.priorityTasks[C][0](),D.priorityTasks[C].shift()};
_.$a.Object.defineProperties(Nj5.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(D){return D.length>0})}}});var W$F={};var nNg=globalThis.trustedTypes,DAn=nNg,XtZ;var EB=function(D){this.privateDoNotAccessOrElseWrappedResourceUrl=D};
EB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var wve,Fzx,Zfd,GdM,VD4,Tjq,Hfb,J2d;wve=_.q8([""]);Fzx=M8(["\x00"],["\\0"]);Zfd=M8(["\n"],["\\n"]);GdM=M8(["\x00"],["\\u0000"]);VD4=_.q8([""]);Tjq=M8(["\x00"],["\\0"]);Hfb=M8(["\n"],["\\n"]);J2d=M8(["\x00"],["\\u0000"]);_.zvg=oFo(function(D){return D(wve)})||oFo(function(D){return D(Fzx)})||oFo(function(D){return D(Zfd)})||oFo(function(D){return D(GdM)});
_.jHc=_.YN(VD4)&&_.YN(Tjq)&&_.YN(Hfb)&&_.YN(J2d);var Td;_.y$=function(D,C){this.privateDoNotAccessOrElseWrappedUrl=C};
_.y$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.MD5=nf("about:blank");Td=nf("about:invalid#zClosurez");var ptj=function(D){this.isValid=D},qBc=new ptj(function(D){return/^[^:]*([/?#]|$)/.test(D)}),f6e=Gd("data"),dJC=Gd("http"),RvM=Gd("https"),l6q=Gd("ftp"),DAk=Gd("mailto"),CGN=Gd("intent"),XtC=Gd("vnd.youtube"),Sut=[f6e,
dJC,RvM,DAk,l6q,qBc],gFn=eD(function(){return typeof URL==="function"}),c_M=["data:",
"http:","https:","mailto:","ftp:"],INr=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var dj=function(D){this.privateDoNotAccessOrElseWrappedHtml=D};
dj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var ai3=eD(function(){return new dj(nNg?nNg.emptyHTML:"")});var oFM={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"},A_5=function(D,C){var X=Error.call(this,D+" cannot be used with intent "+oFM[C]);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.type=D;this.intent=C;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.h(A_5,Error);_.Wt=function(D){this.privateDoNotAccessOrElseWrappedScript=D};
_.Wt.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var $Ah=function(D){this.privateDoNotAccessOrElseWrappedAttributePrefix=D};
$Ah.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var vF3="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var A_=function(D){this.privateDoNotAccessOrElseWrappedStyleSheet=D};
A_.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var z7Z=function(D){var C=_.Df("window.location.href");D==null&&(D='Unknown Error of type "null/undefined"');if(typeof D==="string")return{message:D,name:"Unknown error",lineNumber:"Not available",fileName:C,stack:"Not available"};var X=!1;try{var c=D.lineNumber||D.line||"Not available"}catch(g){c="Not available",X=!0}try{var W=D.fileName||D.filename||D.sourceURL||_.co.$googDebugFname||C}catch(g){W="Not available",X=!0}C=W$5(D);if(!(!X&&D.lineNumber&&D.fileName&&D.stack&&D.message&&D.name)){X=D.message;
if(X==null){if(D.constructor&&D.constructor instanceof Function){if(D.constructor.name)X=D.constructor.name;else if(X=D.constructor,Pq[X])X=Pq[X];else{X=String(X);if(!Pq[X]){var p=/function\s+([^\(]+)/m.exec(X);Pq[X]=p?p[1]:"[Anonymous]"}X=Pq[X]}X='Unknown Error of type "'+X+'"'}else X="Unknown Error of unknown type";typeof D.toString==="function"&&Object.prototype.toString!==D.toString&&(X+=": "+D.toString())}return{message:X,name:D.name||"UnknownError",lineNumber:c,fileName:W,stack:C||"Not available"}}return{message:D.message,
name:D.name,lineNumber:D.lineNumber,fileName:D.fileName,stack:C}},W$5=function(D,C){C||(C={});
C[ptg(D)]=!0;var X=D.stack||"",c=D.cause;c&&!C[ptg(c)]&&(X+="\nCaused by: ",c.stack&&c.stack.indexOf(c.toString())==0||(X+=typeof c==="string"?c:c.message+"\n"),X+=W$5(c,C));D=D.errors;if(Array.isArray(D)){c=1;var W;for(W=0;W<D.length&&!(c>4);W++)C[ptg(D[W])]||(X+="\nInner error "+c++ +": ",D[W].stack&&D[W].stack.indexOf(D[W].toString())==0||(X+=typeof D[W]==="string"?D[W]:D[W].message+"\n"),X+=W$5(D[W],C));W<D.length&&(X+="\n... "+(D.length-W)+" more inner errors")}return X},ptg=function(D){var C=
"";
typeof D.toString==="function"&&(C=""+D);return C+D.stack},Pq={};var Sub,$z,aa,gFk,aNM,UAe,Ci,nN,OK5;Sub=function(D,C){for(var X=D.split("%s"),c="",W=Array.prototype.slice.call(arguments,1);W.length&&X.length>1;)c+=X.shift()+W.shift();return c+X.join("%s")};
_.WK=function(D){return encodeURIComponent(String(D))};
$z=function(D){return decodeURIComponent(D.replace(/\+/g," "))};
aa=function(D){tZ4.test(D)&&(D.indexOf("&")!=-1&&(D=D.replace(xRJ,"&amp;")),D.indexOf("<")!=-1&&(D=D.replace(Lrk,"&lt;")),D.indexOf(">")!=-1&&(D=D.replace(smb,"&gt;")),D.indexOf('"')!=-1&&(D=D.replace(mRx,"&quot;")),D.indexOf("'")!=-1&&(D=D.replace(e3x,"&#39;")),D.indexOf("\x00")!=-1&&(D=D.replace(EjM,"&#0;")));return D};
gFk=function(D){var C={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var X=_.co.document.createElement("div");return D.replace(UAe,function(c,W){var p=C[c];if(p)return p;W.charAt(0)=="#"&&(W=Number("0"+W.slice(1)),isNaN(W)||(p=String.fromCharCode(W)));p||(_.aG(X,RH(c+" ")),p=X.firstChild.nodeValue.slice(0,-1));return C[c]=p})};
aNM=function(D){return D.replace(/&([^;]+);/g,function(C,X){switch(X){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return X.charAt(0)!="#"||(X=Number("0"+X.slice(1)),isNaN(X))?C:String.fromCharCode(X)}})};
UAe=/&([^;\s<&]+);?/g;_.e8m=function(D){return String(D).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.INJ=String.prototype.repeat?function(D,C){return D.repeat(C)}:function(D,C){return Array(C+1).join(D)};
_.$J=function(D,C){if(!Number.isFinite(D))return String(D);D=String(D);var X=D.indexOf(".");X===-1&&(X=D.length);var c=D[0]==="-"?"-":"";c&&(D=D.substring(1));return c+(0,_.INJ)("0",Math.max(0,C-X))+D};
Ci=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.ok()).toString(36)};
nN=function(D){for(var C=0,X=0;X<D.length;++X)C=31*C+D.charCodeAt(X)>>>0;return C};
_.aB=function(D){return String(D).replace(/\-([a-z])/g,function(C,X){return X.toUpperCase()})};
_.gl=function(D){return String(D).replace(/([A-Z])/g,"-$1").toLowerCase()};
OK5=function(D){return D.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(C,X,c){return X+c.toUpperCase()})};var A_x=function(){this.names=new Map};
A_x.prototype.getName=function(D){var C=this.names.get(D);if(C)return C;var X;C=(X=D.description)!=null?X:Ci();this.names.set(D,C);return C};var PGb=function(D){var C=Error.call(this,D?D.length+" errors occurred during unsubscription:\n"+D.map(function(X,c){return c+1+") "+X.toString()}).join("\n  "):"");
this.message=C.message;"stack"in C&&(this.stack=C.stack);this.errors=D;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.h(PGb,Error);var $F=function(D){this.initialTeardown=D;this.closed=!1;this._teardowns=this._parentage=null};
_.S=$F.prototype;
_.S.unsubscribe=function(){if(!this.closed){this.closed=!0;var D=this._parentage;if(Array.isArray(D))for(var C=_.U(D),X=C.next();!X.done;X=C.next())X.value.remove(this);else D==null||D.remove(this);C=this.initialTeardown;if(Pt(C))try{C()}catch(p){var c=p instanceof PGb?p.errors:[p]}var W=this._teardowns;if(W)for(this._teardowns=null,C=_.U(W),X=C.next();!X.done;X=C.next()){X=X.value;try{Pt(X)?X():X.unsubscribe()}catch(p){X=void 0,c=(X=c)!=null?X:[],p instanceof PGb?c=[].concat(_.VB(c),_.VB(p.errors)):
c.push(p)}}if(c)throw new PGb(c);}};
_.S.add=function(D){if(D&&D!==this)if(this.closed)Pt(D)?D():D.unsubscribe();else{if(D instanceof $F){if(D.closed||D._hasParent(this))return;D._addParent(this)}var C;(this._teardowns=(C=this._teardowns)!=null?C:[]).push(D)}};
_.S._hasParent=function(D){var C=this._parentage;return C===D||Array.isArray(C)&&C.includes(D)};
_.S._addParent=function(D){var C=this._parentage;this._parentage=Array.isArray(C)?(C.push(D),C):C?[C,D]:D};
_.S._removeParent=function(D){var C=this._parentage;C===D?this._parentage=null:Array.isArray(C)&&BHd(C,D)};
_.S.remove=function(D){var C=this._teardowns;C&&BHd(C,D);D instanceof $F&&D._removeParent(this)};
var $A5=new $F;$A5.closed=!0;$F.JSC$9234_EMPTY=$A5;var r_F=function(){setTimeout.apply(null,_.VB(_.MJ.apply(0,arguments)))};var vq=function(D){$F.call(this);this.JSC$9239_isStopped=!1;this.destination=D instanceof vq?D:new ip(!D||Pt(D)?{next:D!=null?D:void 0}:D);bKo(D)&&D.add(this)};
_.h(vq,$F);vq.JSC$9234_EMPTY=$F.JSC$9234_EMPTY;vq.create=function(D,C,X){return new kJ(D,C,X)};
_.S=vq.prototype;_.S.next=function(D){this.JSC$9239_isStopped||this._next(D)};
_.S.error=function(D){this.JSC$9239_isStopped||(this.JSC$9239_isStopped=!0,this._error(D))};
_.S.complete=function(){this.JSC$9239_isStopped||(this.JSC$9239_isStopped=!0,this._complete())};
_.S.unsubscribe=function(){this.closed||(this.JSC$9239_isStopped=!0,$F.prototype.unsubscribe.call(this))};
_.S._next=function(D){this.destination.next(D)};
_.S._error=function(D){this.destination.error(D);this.unsubscribe()};
_.S._complete=function(){this.destination.complete();this.unsubscribe()};
var ip=function(D){this.partialObserver=D};
ip.prototype.next=function(D){var C=this.partialObserver;if(C.next)try{C.next(D)}catch(X){iG(X)}};
ip.prototype.error=function(D){var C=this.partialObserver;if(C.error)try{C.error(D)}catch(X){iG(X)}else iG(D)};
ip.prototype.complete=function(){var D=this.partialObserver;if(D.complete)try{D.complete()}catch(C){iG(C)}};
var kJ=function(D,C,X){vq.call(this);var c;Pt(D)||!D?c={next:D!=null?D:void 0,error:C!=null?C:void 0,complete:X!=null?X:void 0}:c=D;this.destination=new ip(c)};
_.h(kJ,vq);kJ.JSC$9234_EMPTY=vq.JSC$9234_EMPTY;kJ.create=vq.create;var Bt=typeof Symbol==="function"&&Symbol.observable||"@@observable";var QB=function(D){D&&(this._subscribe=D)};
_.S=QB.prototype;_.S.lift=function(D){var C=new QB;C.source=this;C.operator=D;return C};
_.S.subscribe=function(D,C,X){D=D&&D instanceof vq||D&&Pt(D.next)&&Pt(D.error)&&Pt(D.complete)&&bKo(D)?D:new kJ(D,C,X);C=this.operator;X=this.source;D.add(C?C.call(D,X):X?this._subscribe(D):this._trySubscribe(D));return D};
_.S._trySubscribe=function(D){try{return this._subscribe(D)}catch(C){D.error(C)}};
_.S.forEach=function(D,C){var X=this;C=hK5(C);return new C(function(c,W){var p=X.subscribe(function(g){try{D(g)}catch(a){W(a),p==null||p.unsubscribe()}},W,c)})};
_.S._subscribe=function(D){var C;return(C=this.source)==null?void 0:C.subscribe(D)};
QB.prototype[Bt]=function(){return this};
QB.prototype.pipe=function(){var D=_.MJ.apply(0,arguments);return D.length?K$F(D)(this):this};
QB.create=function(D){return new QB(D)};var vF4=function(){var D=Error.call(this,"object unsubscribed");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.h(vF4,Error);var bo=function(){this.observers=[];this.hasError=this.JSC$9255_isStopped=this.closed=!1;this.thrownError=null};
_.h(bo,QB);_.S=bo.prototype;_.S.lift=function(D){var C=new up(this,this);C.operator=D;return C};
_.S._throwIfClosed=function(){if(this.closed)throw new vF4;};
_.S.next=function(D){this._throwIfClosed();if(!this.JSC$9255_isStopped){var C=this.observers.slice();C=_.U(C);for(var X=C.next();!X.done;X=C.next())X.value.next(D)}};
_.S.error=function(D){this._throwIfClosed();if(!this.JSC$9255_isStopped){this.hasError=this.JSC$9255_isStopped=!0;this.thrownError=D;for(var C=this.observers;C.length;)C.shift().error(D)}};
_.S.complete=function(){this._throwIfClosed();if(!this.JSC$9255_isStopped){this.JSC$9255_isStopped=!0;for(var D=this.observers;D.length;)D.shift().complete()}};
_.S.unsubscribe=function(){this.JSC$9255_isStopped=this.closed=!0;this.observers=null};
_.S._trySubscribe=function(D){this._throwIfClosed();return QB.prototype._trySubscribe.call(this,D)};
_.S._subscribe=function(D){this._throwIfClosed();this._checkFinalizedStatuses(D);return this._innerSubscribe(D)};
_.S._innerSubscribe=function(D){var C=this,X=this.JSC$9255_isStopped,c=this.observers;return this.hasError||X?$F.JSC$9234_EMPTY:(c.push(D),new $F(function(){return BHd(C.observers,D)}))};
_.S._checkFinalizedStatuses=function(D){var C=this.thrownError,X=this.JSC$9255_isStopped;this.hasError?D.error(C):X&&D.complete()};
bo.create=function(D,C){return new up(D,C)};
var up=function(D,C){bo.call(this);this.destination=D;this.source=C};
_.h(up,bo);up.create=bo.create;up.prototype.next=function(D){var C,X;(C=this.destination)==null||(X=C.next)==null||X.call(C,D)};
up.prototype.error=function(D){var C,X;(C=this.destination)==null||(X=C.error)==null||X.call(C,D)};
up.prototype.complete=function(){var D,C;(D=this.destination)==null||(C=D.complete)==null||C.call(D)};
up.prototype._subscribe=function(D){var C,X;return(X=(C=this.source)==null?void 0:C.subscribe(D))!=null?X:$F.JSC$9234_EMPTY};var RV=function(D){bo.call(this);this._value=D};
_.h(RV,bo);RV.create=bo.create;RV.prototype._subscribe=function(D){var C=bo.prototype._subscribe.call(this,D);!C.closed&&D.next(this._value);return C};
RV.prototype.getValue=function(){var D=this.thrownError,C=this._value;if(this.hasError)throw D;this._throwIfClosed();return C};
RV.prototype.next=function(D){bo.prototype.next.call(this,this._value=D)};
_.$a.Object.defineProperties(RV.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var MA=new QB(function(D){return D.complete()});var mAr=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Yud=function(D){return D&&typeof D.length==="number"&&typeof D!=="function"};var iKC={now:function(){return(iKC.delegate||Date).now()},
delegate:void 0};var gV=function(D,C,X){D=D===void 0?Infinity:D;C=C===void 0?Infinity:C;X=X===void 0?iKC:X;bo.call(this);this.bufferSize=D;this.windowTime=C;this.timestampProvider=X;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=C===Infinity;this.bufferSize=Math.max(1,D);this.windowTime=Math.max(1,C)};
_.h(gV,bo);gV.create=bo.create;gV.prototype.next=function(D){var C=this.buffer,X=this.infiniteTimeWindow,c=this.timestampProvider,W=this.windowTime;this.JSC$9255_isStopped||(C.push(D),!X&&C.push(c.now()+W));kLq(this);bo.prototype.next.call(this,D)};
gV.prototype._subscribe=function(D){this._throwIfClosed();kLq(this);for(var C=this._innerSubscribe(D),X=this.infiniteTimeWindow,c=this.buffer.slice(),W=0;W<c.length&&!D.closed;W+=X?1:2)D.next(c[W]);this._checkFinalizedStatuses(D);return C};
var kLq=function(D){var C=D.bufferSize,X=D.timestampProvider,c=D.buffer;D=D.infiniteTimeWindow;var W=(D?1:2)*C;C<Infinity&&W<c.length&&c.splice(0,c.length-W);if(!D){C=X.now();X=0;for(D=1;D<c.length&&c[D]<=C;D+=2)X=D;X&&c.splice(0,X+1)}};var QGM=function(D,C){C=C===void 0?u75:C;this.schedulerActionCtor=D;this.now=C};
QGM.prototype.schedule=function(D,C,X){C=C===void 0?0:C;return(new this.schedulerActionCtor(this,D)).schedule(X,C)};
var u75=iKC.now;var x3J=function(){var D=Error.call(this,"no elements in sequence");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.h(x3J,Error);var F7=function(D,C,X,c,W){vq.call(this,D);this.onUnsubscribe=W;C&&(this._next=function(p){try{C(p)}catch(g){this.destination.error(g)}});
X&&(this._error=function(p){try{X(p)}catch(g){this.destination.error(g)}this.unsubscribe()});
c&&(this._complete=function(){try{c()}catch(p){this.destination.error(p)}this.unsubscribe()})};
_.h(F7,vq);F7.JSC$9234_EMPTY=vq.JSC$9234_EMPTY;F7.create=vq.create;F7.prototype.unsubscribe=function(){var D;this.closed||(D=this.onUnsubscribe)!=null&&D.call(this);vq.prototype.unsubscribe.call(this)};var So=function(D,C){this.source=D;this.subjectFactory=C;this._subject=null;this._refCount=0;this._connection=null};
_.h(So,QB);So.create=QB.create;So.prototype._subscribe=function(D){return BHe(this).subscribe(D)};
var BHe=function(D){var C=D._subject;if(!C||C.JSC$9255_isStopped)D._subject=D.subjectFactory();return D._subject};
So.prototype._teardown=function(){this._refCount=0;var D=this._connection;this._subject=this._connection=null;D==null||D.unsubscribe()};
So.prototype.connect=function(){var D=this,C=this._connection;if(!C){C=this._connection=new $F;var X=BHe(this);C.add(this.source.subscribe(new F7(X,void 0,function(c){D._teardown();X.error(c)},function(){D._teardown();
X.complete()},function(){return D._teardown()})));
C.closed&&(this._connection=null,C=$F.JSC$9234_EMPTY)}return C};var jGo=Array.isArray;var quF=Array.isArray,bKM=Object,fNj=bKM.getPrototypeOf,dAd=bKM.prototype,RKm=bKM.keys;var J_=function(D,C,X){vq.call(this,D);this._next=C;this.shouldComplete=X};
_.h(J_,vq);J_.JSC$9234_EMPTY=vq.JSC$9234_EMPTY;J_.create=vq.create;J_.prototype._complete=function(){this.shouldComplete()?vq.prototype._complete.call(this):this.unsubscribe()};var SFn=["addListener","removeListener"],pdm=["addEventListener","removeEventListener"],gXZ=["on","off"];var QM=function(){$F.call(this)};
_.h(QM,$F);QM.JSC$9234_EMPTY=$F.JSC$9234_EMPTY;QM.prototype.schedule=function(){return this};var r_5=function(D,C){return setInterval.apply(null,[D,C].concat(_.VB(_.MJ.apply(2,arguments))))};var Bq=function(D,C){$F.call(this);this.scheduler=D;this.work=C;this.pending=!1};
_.h(Bq,QM);Bq.JSC$9234_EMPTY=QM.JSC$9234_EMPTY;Bq.prototype.schedule=function(D,C){C=C===void 0?0:C;if(this.closed)return this;this.state=D;D=this.id;var X=this.scheduler;D!=null&&(this.id=K$5(this,D,C));this.pending=!0;this.delay=C;this.id=this.id||this.requestAsyncId(X,this.id,C);return this};
Bq.prototype.requestAsyncId=function(D,C,X){X=X===void 0?0:X;return r_5(D.flush.bind(D,this),X)};
var K$5=function(D,C,X){X=X===void 0?0:X;if(X!=null&&D.delay===X&&D.pending===!1)return C;clearInterval(C)};
Bq.prototype.execute=function(D,C){if(this.closed)return Error("ha");this.pending=!1;if(D=this._execute(D,C))return D;this.pending===!1&&this.id!=null&&(this.id=K$5(this,this.id,null))};
Bq.prototype._execute=function(D){var C=!1;try{this.work(D)}catch(c){C=!0;var X=!!c&&c||Error(c)}if(C)return this.unsubscribe(),X};
Bq.prototype.unsubscribe=function(){if(!this.closed){var D=this.id,C=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;BHd(C,this);D!=null&&(this.id=K$5(this,D,null));this.delay=null;QM.prototype.unsubscribe.call(this)}};var hKx=function(D,C){C=C===void 0?u75:C;QGM.call(this,D,C);this.actions=[];this.active=!1;this.scheduled=void 0};
_.h(hKx,QGM);hKx.prototype.flush=function(D){var C=this.actions;if(this.active)C.push(D);else{var X;this.active=!0;do if(X=D.execute(D.state,D.delay))break;while(D=C.shift());this.active=!1;if(X){for(;D=C.shift();)D.unsubscribe();throw X;}}};var ny=new QB(vt);var aIo=Array.isArray;var bp=function(D,C){Bq.call(this,D,C);this.scheduler=D;this.work=C};
_.h(bp,Bq);bp.JSC$9234_EMPTY=Bq.JSC$9234_EMPTY;bp.prototype.schedule=function(D,C){C=C===void 0?0:C;if(C>0)return Bq.prototype.schedule.call(this,D,C);this.delay=C;this.state=D;this.scheduler.flush(this);return this};
bp.prototype.execute=function(D,C){return C>0||this.closed?Bq.prototype.execute.call(this,D,C):this._execute(D,C)};
bp.prototype.requestAsyncId=function(D,C,X){X=X===void 0?0:X;return X!=null&&X>0||X==null&&this.delay>0?Bq.prototype.requestAsyncId.call(this,D,C,X):D.flush(this)};var xAc=function(){hKx.apply(this,arguments)};
_.h(xAc,hKx);var J_j=new xAc(bp);var L$g=function(){this.performanceMonitor=new tD4;this.queue=new Nj5;this.internalSymbol=Symbol();this.debugNames=new A_x};
L$g.prototype.getOnBackgrounded=function(){return ny};
_.$a.Object.defineProperties(L$g.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var rd=function(D,C){C=Error.call(this,C?D+": "+C:String(D));this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=D;this.__proto__=rd.prototype;this.name=String(D)};
_.h(rd,Error);var wV=function(D){rd.call(this,1E3,'sfr:"'+D+'"');this.measurementStrategyFailureReason=D;this.__proto__=wV.prototype};
_.h(wV,rd);var FE=function(){rd.call(this,1003);this.__proto__=FE.prototype};
_.h(FE,rd);var KL=function(){rd.call(this,1009);this.__proto__=KL.prototype};
_.h(KL,rd);var sGc=function(){rd.call(this,1011);this.__proto__=sGc.prototype};
_.h(sGc,rd);var mAJ=function(){rd.call(this,1007);this.__proto__=FE.prototype};
_.h(mAJ,rd);var YX=function(D){rd.call(this,1004,String(D));this.inputObservableIndex=D;this.__proto__=YX.prototype};
_.h(YX,rd);var jh3=function(D){rd.call(this,1010,D);this.__proto__=Mpm.prototype};
_.h(jh3,rd);var Mpm=function(D){rd.call(this,1005,D);this.__proto__=Mpm.prototype};
_.h(Mpm,rd);var eK4=function(D){var C=_.MJ.apply(1,arguments),X=this;this.orderedFactories=[];this.orderedFactories.push(D);C.forEach(function(c){X.orderedFactories.push(c)})};
eK4.prototype.isSupported=function(D){return this.orderedFactories.some(function(C){return C.isSupported(D)})};
eK4.prototype.makeBeacon=function(D,C){for(var X=0;X<this.orderedFactories.length;X++)if(this.orderedFactories[X].isSupported(C))return this.orderedFactories[X].makeBeacon(D,C);throw new KL;};var ywr=Symbol("ia"),EFN=Symbol("ja"),lG=function(D,C){this.value=D;this.timeline=C},RG=function(D,C){if(C.timeline!==D.timeline)throw new mAJ;
return D.value-C.value};
_.S=lG.prototype;_.S.equals=function(D){return RG(this,D)===0};
_.S.maximum=function(D){if(D.timeline!==this.timeline)throw new mAJ;return this.value>=D.value?this:D};
_.S.round=function(){return new lG(Math.round(this.value),this.timeline)};
_.S.add=function(D){return new lG(this.value+D,this.timeline)};
_.S.toString=function(){return String(this.value)};var h6=function(D,C){this.context=D;this.JSC$9361_pinger=C};
h6.prototype.isSupported=function(D){return this.JSC$9361_pinger.isSupported(D)};
h6.prototype.makeBeacon=function(D,C){if(!this.isSupported(C))throw new KL;return new xJ(this.context,this.JSC$9361_pinger,C!=null?C:void 0,D)};
var xJ=function(D,C,X,c){var W=this;this.JSC$9367_pinger=C;this.properties=X;this.url=c;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var p;this.method=(p=X==null?void 0:X.beaconMethod)!=null?p:"GET";this.backgroundedSubscription=D.getOnBackgrounded().subscribe(function(){W.sendNow()})};
xJ.prototype.deactivate=function(){this.internalIsPending=!1};
xJ.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9367_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var D,C;this.JSC$9367_pinger.pingWithHeadersAndBody((D=this.properties)!=null?D:{},this.customHeaders,(C=this.body)!=null?C:"",this.url)}else this.JSC$9367_pinger.ping(this.url);this.internalIsPending=!1}catch(X){}else this.internalIsPending=!1};
xJ.prototype.setHeader=function(D,C){this.customHeaders.set(D,C)};
_.$a.Object.defineProperties(xJ.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var NHq=function(){for(var D=_.U(_.MJ.apply(0,arguments)),C=D.next();!C.done;C=D.next())if(C=C.value,C.available()){this.timeProvider=C;return}this.timeProvider=new ts4};
_.S=NHq.prototype;_.S.available=function(){return this.timeProvider.available()};
_.S.now=function(){return this.timeProvider.now()};
_.S.setTimeout=function(D,C){return this.timeProvider.setTimeout(D,C)};
_.S.clearTimeout=function(D){this.timeProvider.clearTimeout(D)};
_.S.interval=function(D,C){var X=this.intervalObservable(D).subscribe(C);return function(){return void X.unsubscribe()}};
_.S.intervalObservable=function(D){return this.timeProvider.intervalObservable(D)};
_.$a.Object.defineProperties(NHq.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var ts4=function(){this.timeline=Symbol()};
_.S=ts4.prototype;_.S.available=function(){return!1};
_.S.now=function(){return new lG(0,this.timeline)};
_.S.setTimeout=function(){return 0};
_.S.clearTimeout=function(){};
_.S.interval=function(){return function(){}};
_.S.intervalObservable=function(){return ny};var LL=function(D,C){this.intrinsicFunctionNamespace=D;this.performanceMonitor=C};
_.S=LL.prototype;_.S.setTimeout=function(D,C){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,D),C)};
_.S.clearTimeout=function(D){this.intrinsicFunctionNamespace.clearTimeout(D)};
_.S.interval=function(D,C){var X=this.intervalObservable(D).subscribe(C);return function(){return void X.unsubscribe()}};
_.S.intervalObservable=function(D){var C=this;return new QB(function(X){var c=0,W=C.intrinsicFunctionNamespace.setInterval(function(){X.next(c++)},D);
return function(){C.intrinsicFunctionNamespace.clearInterval(W)}})};
_.S.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Yue=function(D,C){LL.call(this,D,C);this.timeline=EFN};
_.h(Yue,LL);Yue.prototype.now=function(){return new lG(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Yue.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&LL.prototype.available.call(this)};var y_x=function(D,C){LL.call(this,D,C);this.timeline=ywr};
_.h(y_x,LL);y_x.prototype.now=function(){return new lG(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
y_x.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&LL.prototype.available.call(this)};var wtN=function(D){this.context=D;if(nFJ===void 0)a:{var C,X,c=(C=D.global)==null?void 0:(X=C.document)==null?void 0:X.createElement("meta");if(c)try{c.httpEquiv="origin-trial";c.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";D.global.document.head.append(c);nFJ=c;break a}catch(W){}nFJ=void 0}},
nFJ;
wtN.prototype.isSupported=function(D){return QVd(this.context)!==void 0&&!(D==null||!D.endOfSession)&&!sf(this.context)&&!(D==null?0:D.attributionEnabled)&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
wtN.prototype.makeBeacon=function(D,C){if(!this.isSupported(C))throw new KL;return new mE(this.context,D,C)};
var mE=function(D,C,X){this.context=D;this.properties=X;this.JSC$9394_urlWithoutToken=C;var c;this.beaconMethod=(c=X==null?void 0:X.beaconMethod)!=null?c:"GET";D=QVd(this.context);if(D===void 0)throw Error();this.fetchLater=D;F$b(this,ZKM(this))},F$b=function(D,C){D.beaconResult&&D.beaconResult.activated||(D.beaconAbort=new AbortController,D.beaconResult=D.fetchLater(C,{method:D.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:D.beaconAbort.signal,activateAfter:96E4}))},ZKM=function(D){D=D.JSC$9394_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"flapi=1"};
mE.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
mE.prototype.sendNow=function(){};
mE.prototype.setHeader=function(){};
_.$a.Object.defineProperties(mE.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9394_urlWithoutToken},
set:function(D){this.JSC$9394_urlWithoutToken=D;D=ZKM(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);F$b(this,D)}},
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 GL5=function(D){this.context=D};
GL5.prototype.isSupported=function(){return!sf(this.context)&&!!this.context.global.fetch};
GL5.prototype.ping=function(){var D=this;return fK.apply(null,_.VB(_.MJ.apply(0,arguments).map(function(C){return rH(D.context.global.fetch(C,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(GL(function(X){return X.status===200}))}))).pipe(LeZ(function(C){return C}),m3m())};
GL5.prototype.pingWithHeadersAndBody=function(D,C,X){for(var c=_.MJ.apply(3,arguments),W=this,p=new Headers,g=_.U(C.entries()),a=g.next();!a.done;a=g.next()){var O=_.U(a.value);a=O.next().value;O=O.next().value;p.set(a,O)}var P,k=(P=D.keepAlive)!=null?P:!1;fK.apply(null,_.VB(c.map(function(u){return rH(W.context.global.fetch(u,Object.assign({},{method:String(D.beaconMethod),cache:"no-cache"},k?{keepalive:!0}:{},{mode:"no-cors",headers:p,body:X}))).pipe(GL(function(Q){return Q.status===200}))}))).pipe(LeZ(function(u){return u}),
m3m())};var Vsq,nHt,THk;_.e$=function(){};
_.nh=function(D){return D};
Vsq=function(D){var C=C||0;return function(){return D.apply(this,Array.prototype.slice.call(arguments,0,C))}};
_.Ef=function(D){var C=!1,X;return function(){C||(X=D(),C=!0);return X}};
_.t6=function(D,C){var X=0;return function(c){_.co.clearTimeout(X);var W=arguments;X=_.co.setTimeout(function(){D.apply(void 0,W)},C)}};
nHt=function(D,C){var X=0,c=!1,W=[],p=function(){X=0;c&&(c=!1,g())},g=function(){X=_.co.setTimeout(p,C);
var a=W;W=[];D.apply(void 0,a)};
return function(a){W=arguments;X?c=!0:g()}};
THk=function(D,C){var X=0,c=function(){X=0};
return function(W){X||(X=_.co.setTimeout(c,C),D.apply(void 0,arguments))}};var J_g=function(){return ut&&bt?bt.mobile:!HKc()&&(Kh("iPod")||Kh("iPhone")||Kh("Android")||Kh("IEMobile"))},HKc=function(){return ut&&bt?!bt.mobile&&(Kh("iPad")||Kh("Android")||Kh("Silk")):Kh("iPad")||Kh("Android")&&!Kh("Mobile")||Kh("Silk")};var Ns=function(D,C,X,c,W){this.allowedElements=D;this.elementPolicies=C;this.allowedGlobalAttributes=X;this.globalAttributePolicies=c;this.globallyAllowedAttributePrefixes=W},zKN=function(D,C,X){X=D.elementPolicies.get(X);
return(X==null?0:X.has(C))?X.get(C):D.allowedGlobalAttributes.has(C)?{policyAction:1}:(X=D.globalAttributePolicies.get(C))?X:D.globallyAllowedAttributePrefixes&&[].concat(_.VB(D.globallyAllowedAttributePrefixes)).some(function(c){return C.indexOf(c)===0})?{policyAction:1}:{policyAction:0}};var jGM="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(" "),
Msq=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],qu5="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
fNg=[["dir",{policyAction:3,conditions:eD(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:eD(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:eD(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:eD(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],dAe=new Ns(new Set(jGM),new Map(Msq),new Set(qu5),new Map(fNg)),RKd=new Ns(new Set(jGM.concat(["BUTTON",
"INPUT"])),new Map(Msq),new Set(eD(function(){return qu5.concat(["class","id","name"])})),new Map(eD(function(){return fNg.concat([["style",
{policyAction:1}]])})));var lNb,D3k,Xdg;lNb=function(D,C,X,c,W){this.JSC$9451_sanitizerTable=D;this.styleElementSanitizer=C;this.styleAttributeSanitizer=X;this.JSC$9451_resourceUrlPolicy=c;this.JSC$9451_navigationUrlPolicy=W;this.changes=[]};
_.Coc=function(D,C){var X=document.implementation.createHTMLDocument("");D=D3k(D,C,X);X=X.body;X.appendChild(D);X=(new XMLSerializer).serializeToString(X);X=X.slice(X.indexOf(">")+1,X.lastIndexOf("</"));return RH(X)};
D3k=function(D,C,X){C=Zyr(C,X);C=document.createTreeWalker(C,5,function(a){if(a.nodeType===3)a=1;else if(Vor(a))if(a=GvZ(a),a===null)a=2;else{var O=D.JSC$9451_sanitizerTable;a=a!=="FORM"&&(O.allowedElements.has(a)||O.elementPolicies.has(a))?1:2}else a=2;return a});
for(var c=C.nextNode(),W=X.createDocumentFragment(),p=W;c!==null;){var g=void 0;if(c.nodeType===3)D.styleElementSanitizer&&p.nodeName==="STYLE"?(c=D.styleElementSanitizer(c.data),g=D.createTextNode(c)):g=D.createTextNode(c.data);else if(Vor(c))g=Xdg(D,c,X);else throw Error("Z");p.appendChild(g);if(c=C.firstChild())p=g;else for(;!(c=C.nextSibling())&&(c=C.parentNode());)p=p.parentNode}return W};
lNb.prototype.createTextNode=function(D){return document.createTextNode(D)};
Xdg=function(D,C,X){var c,W=GvZ(C);X=X.createElement(W);C=C.attributes;for(var p=_.U(C),g=p.next();!g.done;g=p.next()){var a=g.value;g=a.name;a=a.value;var O=zKN(D.JSC$9451_sanitizerTable,g,W);a:{if(c=O.conditions){c=_.U(c);for(var P=c.next();!P.done;P=c.next()){var k=_.U(P.value);P=k.next().value;k=k.next().value;var u=void 0;if((P=(u=C.getNamedItem(P))==null?void 0:u.value)&&!k.has(P)){c=!1;break a}}}c=!0}if(c)switch(O.policyAction){case 1:io(X,g,a);break;case 2:throw Error();case 3:io(X,g,a.toLowerCase());
break;case 4:D.styleAttributeSanitizer?(a=D.styleAttributeSanitizer(a),io(X,g,a)):io(X,g,a);break;case 5:D.JSC$9451_resourceUrlPolicy?(O={type:2,attributeName:g,elementName:W},a=Fet(a),(a=D.JSC$9451_resourceUrlPolicy(a,O))&&io(X,g,a.toString())):io(X,g,a);break;case 6:if(D.JSC$9451_resourceUrlPolicy){O={type:2,attributeName:g,elementName:W};c=[];a=_.U(a.split(","));for(P=a.next();!P.done;P=a.next())k=_.U(P.value.trim().split(/\s+/,2)),P=k.next().value,k=k.next().value,c.push({url:P,descriptor:k});
a={parts:[]};c=_.U(c);for(P=c.next();!P.done;P=c.next())P=P.value,k=Fet(P.url),(k=D.JSC$9451_resourceUrlPolicy(k,O))&&a.parts.push({url:k.toString(),descriptor:P.descriptor});io(X,g,TVd(a))}else io(X,g,a);break;case 7:O=a;if(D.JSC$9451_navigationUrlPolicy){O={type:2,attributeName:g,elementName:W};a=Fet(a);a=D.JSC$9451_navigationUrlPolicy(a,O);if(a===null)break;O=a.toString()}a=O;O=_.aNo(a);O=O!==void 0&&c_M.indexOf(O.toLowerCase())!==-1?a:"about:invalid#zClosurez";io(X,g,O)}}return X};
_.cp5=eD(function(){return new lNb(dAe)});
_.oXe=eD(function(){return new lNb(RKd)});var Wek=function(){this.calledBuild=!1;this.JSC$9463_sanitizerTable=dAe},pdd=function(){Wek.apply(this,arguments)};
_.h(pdd,Wek);pdd.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new lNb(this.JSC$9463_sanitizerTable,void 0,void 0,this.JSC$9463_resourceUrlPolicy,this.JSC$9463_navigationUrlPolicy)};var SFk=/[^#]*/;var too={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"},U35=_.Ef(function(){return YFZ()}),
aIM=function(){var D=gXC("IFRAME"),C={};
_.pC(U35(),function(X){D.sandbox&&D.sandbox.supports&&D.sandbox.supports(X)&&(C[X]=!0)});
return C},gXC=function(D,C){C=C===void 0?document:C;
return C.createElement(String(D).toLowerCase())};var YJ;_.N8=function(D,C,X){return Math.min(Math.max(D,C),X)};
YJ=function(D,C,X){return D+X*(C-D)};_.VI=function(D,C){this.x=D!==void 0?D:0;this.y=C!==void 0?C:0};
_.S=_.VI.prototype;_.S.clone=function(){return new _.VI(this.x,this.y)};
_.S.equals=function(D){return D instanceof _.VI&&(this==D?!0:this&&D?this.x==D.x&&this.y==D.y:!1)};
_.S.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.S.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.S.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.S.translate=function(D,C){D instanceof _.VI?(this.x+=D.x,this.y+=D.y):(this.x+=Number(D),typeof C==="number"&&(this.y+=C));return this};
_.S.scale=function(D,C){this.x*=D;this.y*=typeof C==="number"?C:D;return this};_.me=function(D,C){this.width=D;this.height=C};
_.S=_.me.prototype;_.S.clone=function(){return new _.me(this.width,this.height)};
_.S.area=function(){return this.width*this.height};
_.S.aspectRatio=function(){return this.width/this.height};
_.S.isEmpty=function(){return!this.area()};
_.S.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.S.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.S.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.S.scale=function(D,C){this.width*=D;this.height*=typeof C==="number"?C:D;return this};var IIN;_.ZI={};IIN="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.ZI.add=function(D,C,X){if(D!==null&&C in D)throw Error("na`"+C);D[C]=X};
_.ZI.clear=function(D){for(var C in D)delete D[C]};
_.ZI.clone=function(D){var C={},X;for(X in D)C[X]=D[X];return C};
_.ZI.contains=function(D,C){return Mo3(D,C)};
_.ZI.containsKey=function(D,C){return D!==null&&C in D};
_.ZI.containsValue=Mo3;_.ZI.create=d3F;_.ZI.createImmutableView=function(D){var C=D;Object.isFrozen&&!Object.isFrozen(D)&&(C=Object.create(D),Object.freeze(C));return C};
_.ZI.createSet=Red;_.ZI.equals=function(D,C){for(var X in D)if(!(X in C)||D[X]!==C[X])return!1;for(var c in C)if(!(c in D))return!1;return!0};
_.ZI.every=function(D,C,X){for(var c in D)if(!C.call(X,D[c],c,D))return!1;return!0};
_.ZI.extend=function(D,C){for(var X,c,W=1;W<arguments.length;W++){c=arguments[W];for(X in c)D[X]=c[X];for(var p=0;p<IIN.length;p++)X=IIN[p],Object.prototype.hasOwnProperty.call(c,X)&&(D[X]=c[X])}};
_.ZI.filter=function(D,C,X){var c={},W;for(W in D)C.call(X,D[W],W,D)&&(c[W]=D[W]);return c};
_.ZI.findKey=qFR;_.ZI.findValue=function(D,C,X){return(C=qFR(D,C,X))&&D[C]};
_.ZI.forEach=function(D,C,X){for(var c in D)C.call(X,D[c],c,D)};
_.ZI.get=function(D,C,X){return D!==null&&C in D?D[C]:X};
_.ZI.getAllPropertyNames=function(D,C,X){if(!D)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return jVn(D);for(var c={};D&&(D!==Object.prototype||C)&&(D!==Function.prototype||X);){for(var W=Object.getOwnPropertyNames(D),p=0;p<W.length;p++)c[W[p]]=!0;D=Object.getPrototypeOf(D)}return jVn(c)};
_.ZI.getAnyKey=function(D){for(var C in D)return C};
_.ZI.getAnyValue=function(D){for(var C in D)return D[C]};
_.ZI.getCount=function(D){var C=0,X;for(X in D)C++;return C};
_.ZI.getKeys=jVn;_.ZI.getSuperClass=function(D){return(D=Object.getPrototypeOf(D.prototype))&&D.constructor};
_.ZI.getValueByKeys=function(D,C){var X=_.JW(C),c=X?C:arguments;for(X=X?0:1;X<c.length;X++){if(D==null)return;D=D[c[X]]}return D};
_.ZI.getValues=function(D){var C=[],X=0,c;for(c in D)C[X++]=D[c];return C};
_.ZI.isEmpty=function(D){for(var C in D)return!1;return!0};
_.ZI.isImmutableView=function(D){return!!Object.isFrozen&&Object.isFrozen(D)};
_.ZI.map=function(D,C,X){var c={},W;for(W in D)c[W]=C.call(X,D[W],W,D);return c};
_.ZI.remove=function(D,C){var X;(X=C in D)&&delete D[C];return X};
_.ZI.set=function(D,C,X){D[C]=X};
_.ZI.setIfUndefined=function(D,C,X){return C in D?D[C]:D[C]=X};
_.ZI.setWithReturnValueIfNotSet=function(D,C,X){if(C in D)return D[C];X=X();return D[C]=X};
_.ZI.some=function(D,C,X){for(var c in D)if(C.call(X,D[c],c,D))return!0;return!1};
_.ZI.transpose=function(D){var C={},X;for(X in D)C[D[X]]=X;return C};
_.ZI.unsafeClone=fIh;var Ri=function(D,C){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=D===qIm&&C||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=OyM};
Ri.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Ap5=function(D){return D instanceof Ri&&D.constructor===Ri&&D.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===OyM?D.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},OyM={},qIm={};
new Ri(qIm,"");var tp,Ee,nL,Poe,iyf,vX5,Tv,uEd,BVC,QVe,Gi,byM,m3d,sVM,LeC,eeq,EXe,toM,NVk,AvF,YFC,nXq,wdk,ypN,yM;tp=function(D){return D?new yM(_.Hd(D)):B5J||(B5J=new yM)};
_.cX=function(D,C){return typeof C==="string"?D.getElementById(C):C};
Ee=function(D,C){return(C||document).getElementsByTagName(String(D))};
_.$3b=function(D){return Poe("yt-formatted-string","paper-input-input",D)};
nL=function(D,C,X,c){D=c||D;return(C=C&&C!="*"?String(C).toUpperCase():"")||X?D.querySelectorAll(C+(X?"."+X:"")):D.getElementsByTagName("*")};
Poe=function(D,C,X){var c=document,W=D&&D!="*"?String(D).toUpperCase():"";return W||C?(X||c).querySelector(W+(C?"."+C:"")):nL(c,D,C,X)[0]||null};
iyf=function(D,C){_.ZI.forEach(C,function(X,c){c=="style"?D.style.cssText=X:c=="class"?D.className=X:c=="for"?D.htmlFor=X:vX5.hasOwnProperty(c)?D.setAttribute(vX5[c],X):_.Wo(c,"aria-")||_.Wo(c,"data-")?D.setAttribute(c,X):D[c]=X})};
vX5={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"};_.eo=function(D){D=(D||window).document;D=D.compatMode=="CSS1Compat"?D.documentElement:D.body;return new _.me(D.clientWidth,D.clientHeight)};
_.kv4=function(D){var C=_.wd(D);D=D.defaultView;return new _.VI((D==null?void 0:D.pageXOffset)||C.scrollLeft,(D==null?void 0:D.pageYOffset)||C.scrollTop)};
_.wd=function(D){return D.scrollingElement?D.scrollingElement:_.Ik||D.compatMode!="CSS1Compat"?D.body||D.documentElement:D.documentElement};
Tv=function(D){return D?D.defaultView:window};
_.FD=function(D,C,X){return uEd(document,arguments)};
uEd=function(D,C){var X=C[1],c=QVe(D,String(C[0]));X&&(typeof X==="string"?c.className=X:Array.isArray(X)?c.className=X.join(" "):iyf(c,X));C.length>2&&BVC(D,c,C,2);return c};
BVC=function(D,C,X,c){function W(a){a&&C.appendChild(typeof a==="string"?D.createTextNode(a):a)}
for(;c<X.length;c++){var p=X[c];if(!_.JW(p)||_.MR(p)&&p.nodeType>0)W(p);else{a:{if(p&&typeof p.length=="number"){if(_.MR(p)){var g=typeof p.item=="function"||typeof p.item=="string";break a}if(typeof p==="function"){g=typeof p.item=="function";break a}}g=!1}_.pC(g?_.Ho(p):p,W)}}};
_.mv=function(D){return QVe(document,D)};
QVe=function(D,C){C=String(C);D.contentType==="application/xhtml+xml"&&(C=C.toLowerCase());return D.createElement(C)};
_.ZV=function(){return document.createTextNode("\n")};
Gi=function(D){if(D.nodeType!=1)return!1;switch(D.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};
byM=function(D,C){BVC(_.Hd(D),D,arguments,1)};
_.VM=function(D){for(var C;C=D.firstChild;)D.removeChild(C)};
_.Ti=function(D,C){C.parentNode&&C.parentNode.insertBefore(D,C)};
_.Hq=function(D,C){C.parentNode&&C.parentNode.insertBefore(D,C.nextSibling)};
_.ep=function(D){return D&&D.parentNode?D.parentNode.removeChild(D):null};
_.rp5=function(D,C){var X=C.parentNode;X&&X.replaceChild(D,C)};
_.Keq=function(D){var C,X=D.parentNode;if(X&&X.nodeType!=11)if(D.removeNode)D.removeNode(!1);else{for(;C=D.firstChild;)X.insertBefore(C,D);_.ep(D)}};
_.J6=function(D){return D.children!=void 0?D.children:Array.prototype.filter.call(D.childNodes,function(C){return C.nodeType==1})};
_.x3N=function(D){return D.nextElementSibling!==void 0?D.nextElementSibling:_.heq(D.nextSibling,!0)};
_.heq=function(D,C){for(;D&&D.nodeType!=1;)D=C?D.nextSibling:D.previousSibling;return D};
_.OU=function(D){return _.MR(D)&&D.nodeType==1};
_.lc=function(D,C){if(!D||!C)return!1;if(D.contains&&C.nodeType==1)return D==C||D.contains(C);if(typeof D.compareDocumentPosition!="undefined")return D==C||!!(D.compareDocumentPosition(C)&16);for(;C&&D!=C;)C=C.parentNode;return C==D};
m3d=function(D,C){if(D==C)return 0;if(D.compareDocumentPosition)return D.compareDocumentPosition(C)&2?1:-1;if("sourceIndex"in D||D.parentNode&&"sourceIndex"in D.parentNode){var X=D.nodeType==1,c=C.nodeType==1;if(X&&c)return D.sourceIndex-C.sourceIndex;var W=D.parentNode,p=C.parentNode;return W==p?LeC(D,C):!X&&_.lc(W,C)?-1*sVM(D,C):!c&&_.lc(p,D)?sVM(C,D):(X?D.sourceIndex:W.sourceIndex)-(c?C.sourceIndex:p.sourceIndex)}c=_.Hd(D);X=c.createRange();X.selectNode(D);X.collapse(!0);D=c.createRange();D.selectNode(C);
D.collapse(!0);return X.compareBoundaryPoints(_.co.Range.START_TO_END,D)};
sVM=function(D,C){var X=D.parentNode;if(X==C)return-1;for(;C.parentNode!=X;)C=C.parentNode;return LeC(C,D)};
LeC=function(D,C){for(;C=C.previousSibling;)if(C==D)return-1;return 1};
eeq=function(D){var C,X=arguments.length;if(!X)return null;if(X==1)return arguments[0];var c=[],W=Infinity;for(C=0;C<X;C++){for(var p=[],g=arguments[C];g;)p.unshift(g),g=g.parentNode;c.push(p);W=Math.min(W,p.length)}p=null;for(C=0;C<W;C++){g=c[0][C];for(var a=1;a<X;a++)if(g!=c[a][C])return p;p=g}return p};
_.Hd=function(D){return D.nodeType==9?D:D.ownerDocument||D.document};
EXe=function(D){return D.contentDocument||D.contentWindow.document};
_.zi=function(D,C){if("textContent"in D)D.textContent=C;else if(D.nodeType==3)D.data=String(C);else if(D.firstChild&&D.firstChild.nodeType==3){for(;D.lastChild!=D.firstChild;)D.removeChild(D.lastChild);D.firstChild.data=String(C)}else _.VM(D),D.appendChild(_.Hd(D).createTextNode(String(C)))};
toM={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};NVk={IMG:" ",BR:"\n"};AvF=function(D){var C;D.tagName=="A"&&D.hasAttribute("href")||D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="BUTTON"?C=!D.disabled&&(!D.hasAttribute("tabindex")||YFC(D)):C=D.hasAttribute("tabindex")&&YFC(D);return C};
YFC=function(D){D=D.tabIndex;return typeof D==="number"&&D>=0&&D<32768};
nXq=function(D){var C=[];ypN(D,C,!0);D=C.join("");D=D.replace(/ \xAD /g," ").replace(/\xAD/g,"");D=D.replace(/\u200B/g,"");D=D.replace(/ +/g," ");D!=" "&&(D=D.replace(/^\s*/,""));return D};
wdk=function(D){var C=[];ypN(D,C,!1);return C.join("")};
ypN=function(D,C,X){if(!(D.nodeName in toM))if(D.nodeType==3)X?C.push(String(D.nodeValue).replace(/(\r\n|\r|\n)/g,"")):C.push(D.nodeValue);else if(D.nodeName in NVk)C.push(NVk[D.nodeName]);else for(D=D.firstChild;D;)ypN(D,C,X),D=D.nextSibling};
_.Feb=function(D,C,X){if(!C&&!X)return null;var c=C?String(C).toUpperCase():null;return _.zv(D,function(W){return(!c||W.nodeName==c)&&(!X||typeof W.className==="string"&&_.Zn(W.className.split(/\s+/),X))},!0)};
_.zv=function(D,C,X){D&&!X&&(D=D.parentNode);for(X=0;D;){if(C(D))return D;D=D.parentNode;X++}return null};
yM=function(D){this.JSC$9491_document_=D||_.co.document||document};
_.S=yM.prototype;_.S.getElement=function(D){return _.cX(this.JSC$9491_document_,D)};
_.S.$=yM.prototype.getElement;_.S.getElementsByTagName=function(D,C){return(C||this.JSC$9491_document_).getElementsByTagName(String(D))};
_.S.getElementsByTagNameAndClass=function(D,C,X){return nL(this.JSC$9491_document_,D,C,X)};
_.S.$$=yM.prototype.getElementsByTagNameAndClass;_.S.setProperties=iyf;_.S.JSC$9493_createDom=function(D,C,X){return uEd(this.JSC$9491_document_,arguments)};
_.S.createElement=function(D){return QVe(this.JSC$9491_document_,D)};
_.S.createTextNode=function(D){return this.JSC$9491_document_.createTextNode(String(D))};
_.S.getWindow=function(){return this.JSC$9491_document_.defaultView};
var EF=function(D){return _.kv4(D.JSC$9491_document_)};
_.S=yM.prototype;_.S.appendChild=function(D,C){D.appendChild(C)};
_.S.append=byM;_.S.canHaveChildren=Gi;_.S.removeNode=_.ep;_.S.getChildren=_.J6;_.S.contains=_.lc;_.S.isFocusable=AvF;_.S=QI.prototype;_.S.getWidth=function(){return this.right-this.left};
_.S.getHeight=function(){return this.bottom-this.top};
_.S.clone=function(){return new QI(this.top,this.right,this.bottom,this.left)};
_.S.contains=function(D){return this&&D?D instanceof QI?D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom:D.x>=this.left&&D.x<=this.right&&D.y>=this.top&&D.y<=this.bottom:!1};
_.S.expand=function(D,C,X,c){_.MR(D)?(this.top-=D.top,this.right+=D.right,this.bottom+=D.bottom,this.left-=D.left):(this.top-=D,this.right+=Number(C),this.bottom+=Number(X),this.left-=Number(c));return this};
_.S.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};
_.S.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};
_.S.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};
_.S.translate=function(D,C){D instanceof _.VI?(this.left+=D.x,this.right+=D.x,this.top+=D.y,this.bottom+=D.y):(this.left+=D,this.right+=D,typeof C==="number"&&(this.top+=C,this.bottom+=C));return this};
_.S.scale=function(D,C){C=typeof C==="number"?C:D;this.left*=D;this.right*=D;this.top*=C;this.bottom*=C;return this};var j$=function(D,C,X,c){this.left=D;this.top=C;this.width=X;this.height=c};
_.S=j$.prototype;_.S.clone=function(){return new j$(this.left,this.top,this.width,this.height)};
_.S.boundingRect=function(D){var C=Math.max(this.left+this.width,D.left+D.width),X=Math.max(this.top+this.height,D.top+D.height);this.left=Math.min(this.left,D.left);this.top=Math.min(this.top,D.top);this.width=C-this.left;this.height=X-this.top};
_.S.contains=function(D){return D instanceof _.VI?D.x>=this.left&&D.x<=this.left+this.width&&D.y>=this.top&&D.y<=this.top+this.height:this.left<=D.left&&this.left+this.width>=D.left+D.width&&this.top<=D.top&&this.top+this.height>=D.top+D.height};
_.S.distance=function(D){var C=D.x<this.left?this.left-D.x:Math.max(D.x-(this.left+this.width),0);D=D.y<this.top?this.top-D.y:Math.max(D.y-(this.top+this.height),0);return Math.sqrt(C*C+D*D)};
_.S.getSize=function(){return new _.me(this.width,this.height)};
_.S.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};
_.S.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};
_.S.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};
_.S.translate=function(D,C){D instanceof _.VI?(this.left+=D.x,this.top+=D.y):(this.left+=D,typeof C==="number"&&(this.top+=C));return this};
_.S.scale=function(D,C){C=typeof C==="number"?C:D;this.left*=D;this.width*=D;this.top*=C;this.height*=C;return this};var GvC,fL,rwm,qs,JpC,HyC,zeb,kim,jVk,qFf;_.Ms=function(D,C,X){if(typeof C==="string")(C=_.ZyJ(D,C))&&(D.style[C]=X);else for(var c in C){X=D;var W=C[c],p=_.ZyJ(X,c);p&&(X.style[p]=W)}};
GvC={};_.ZyJ=function(D,C){var X=GvC[C];if(!X){var c=_.aB(C);X=c;D.style[c]===void 0&&(c=(_.Ik?"Webkit":_.ak?"Moz":null)+OK5(c),D.style[c]!==void 0&&(X=c));GvC[C]=X}return X};
_.a9=function(D,C){var X=_.Hd(D);return X.defaultView&&X.defaultView.getComputedStyle&&(D=X.defaultView.getComputedStyle(D,null))?D[C]||D.getPropertyValue(C)||"":""};
_.Rh=function(D,C){return _.a9(D,C)||(D.currentStyle?D.currentStyle[C]:null)||D.style&&D.style[C]};
_.VoJ=function(D){return _.Rh(D,"position")};
fL=function(D,C,X){if(C instanceof _.VI){var c=C.x;C=C.y}else c=C,C=X;D.style.left=qs(c,!1);D.style.top=qs(C,!1)};
rwm=function(D){try{return D.getBoundingClientRect()}catch(C){return{left:0,top:0,right:0,bottom:0}}};
_.Jp=function(D){var C=_.Hd(D),X=new _.VI(0,0);if(D==(C?_.Hd(C):document).documentElement)return X;D=rwm(D);C=EF(tp(C));X.x=D.left+C.x;X.y=D.top+C.y;return X};
_.TVe=function(D,C,X){if(C instanceof _.me)X=C.height,C=C.width;else if(X==void 0)throw Error("oa");D.style.width=qs(C,!0);D.style.height=qs(X,!0)};
qs=function(D,C){typeof D=="number"&&(D=(C?Math.round(D):D)+"px");return D};
JpC=function(D){return HyC(D)};
HyC=function(D){var C=zeb;if(_.Rh(D,"display")!="none")return C(D);var X=D.style,c=X.display,W=X.visibility,p=X.position;X.visibility="hidden";X.position="absolute";X.display="inline";D=C(D);X.display=c;X.position=p;X.visibility=W;return D};
zeb=function(D){var C=D.offsetWidth,X=D.offsetHeight,c=_.Ik&&!C&&!X;return(C===void 0||c)&&D.getBoundingClientRect?(D=rwm(D),new _.me(D.right-D.left,D.bottom-D.top)):new _.me(C,X)};
kim=function(D){var C=_.Jp(D);D=HyC(D);return new j$(C.x,C.y,D.width,D.height)};
jVk=function(D,C){D=D.style;"opacity"in D?D.opacity=C:"MozOpacity"in D?D.MozOpacity=C:"filter"in D&&(D.filter=C===""?"":"alpha(opacity="+Number(C)*100+")")};
_.Sn=function(D,C){D.style.display=C?"":"none"};
_.Mo4=function(D){return"rtl"==_.Rh(D,"direction")};
qFf=function(D){var C=_.a9(D,"marginLeft"),X=_.a9(D,"marginRight"),c=_.a9(D,"marginTop");D=_.a9(D,"marginBottom");return new QI(parseFloat(c),parseFloat(X),parseFloat(D),parseFloat(C))};
_.fI5=function(D){var C=_.a9(D,"borderLeftWidth"),X=_.a9(D,"borderRightWidth"),c=_.a9(D,"borderTopWidth");D=_.a9(D,"borderBottomWidth");return new QI(parseFloat(c),parseFloat(X),parseFloat(D),parseFloat(C))};var dd=function(D){this.context=D};
dd.prototype.isSupported=function(D){return(D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="POST"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive)?!1:!sf(this.context)};
dd.prototype.ping=function(){var D=this;return yB(_.MJ.apply(0,arguments).map(function(C){try{var X=D.context.global,c=!1;c=c===void 0?!1:c;X.google_image_requests||(X.google_image_requests=[]);var W=gXC("IMG",X.document);c&&(W.attributionSrc="");W.src=C;X.google_image_requests.push(W);return!0}catch(p){return!1}}).every(function(C){return C}))};
dd.prototype.pingWithHeadersAndBody=function(D,C,X){this.ping.apply(this,_.VB(_.MJ.apply(3,arguments)))};var d35=function(D){this.context=D};
d35.prototype.isSupported=function(D){return Ree&&!sf(this.context)&&lIJ(this.context)!==void 0&&!(D==null?0:D.attributionEnabled)&&(D==null?void 0:D.beaconMethod)!=="POST"&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
d35.prototype.makeBeacon=function(D,C){if(!this.isSupported(C))throw new KL;return new RK(this.context,D)};
var Ree=!1,RK=function(D,C){this.context=D;this.JSC$9512_urlWithoutToken=C;D=lIJ(this.context);if(D===void 0)throw Error();this.wrappedBeacon=new D(lIN(this),{})},lIN=function(D){D=D.JSC$9512_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"pbapi=1"};
RK.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
RK.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
RK.prototype.setHeader=function(){};
_.$a.Object.defineProperties(RK.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9512_urlWithoutToken},
set:function(D){this.JSC$9512_urlWithoutToken=D;this.wrappedBeacon.setURL(lIN(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(D){if(D!=="GET")throw new KL;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var DdJ=function(D){this.context=D};
DdJ.prototype.isSupported=function(D){if((D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="GET"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive))return!1;var C;return!sf(this.context)&&((C=this.context.global.navigator)==null?void 0:C.sendBeacon)!==void 0};
DdJ.prototype.ping=function(){var D=this;return yB(_.MJ.apply(0,arguments).map(function(C){var X;return(X=D.context.global.navigator)==null?void 0:X.sendBeacon(C)}).every(function(C){return C}))};
DdJ.prototype.pingWithHeadersAndBody=function(D,C,X){this.ping.apply(this,_.VB(_.MJ.apply(3,arguments)))};var xX=function(D){this.value=D},oh=function(D,C){return yB(D.value).pipe(Ky(C))},pF=new xX(!1),yUJ=new xX(!0);var jo=function(D){this.value=D;this.releasedSubject=new bo};
jo.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.$a.Object.defineProperties(jo.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9525_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var OFm=["FRAME","IMG","IFRAME"],pIj=/^[01](px)?$/,I1W=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},a1Z=function(){var D=new I1W;
D.crossDomainLoadedDefault=!0;D.pendingImagesBlockLoad=!0;return D};var Cce=function(D,C){var X=uJ5(D);if(X)if(X.onCreativeLoad)X.onCreativeLoad(C);else{var c=C?[C]:[],W=function(p){for(var g=0;g<c.length;++g)try{c[g](1,p)}catch(a){}c={push:function(a){a(1,p)}}};
X.onCreativeLoad=function(p){c.push(p)};
X.setAttribute("data-creative-load-listener","");X.addEventListener("creativeLoad",function(p){W(p.detail)});
_.co.addEventListener("message",function(p){kyZ(X,W,p)})}};var lp=function(D,C){var X=this;this.global=D;this.parentContext=C;this.JSC$9536_onVisibilityChange=this.document?fK(yB(!0),js(this.document,"visibilitychange")).pipe(DI(this.parentContext.performanceMonitor,748),GL(function(){return X.getVisibilityState()}),Wd()):yB("visible");
this.document?js(this.document,"DOMContentLoaded").pipe(DI(this.parentContext.performanceMonitor,739),oV(1)):yB(oTF("DOMContentLoaded"))},YOt=function(D){return D.document!==null&&D.document.visibilityState!==void 0};
lp.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
lp.prototype.querySelector=function(D){return this.document?this.document.querySelector(D):null};
lp.prototype.querySelectorAll=function(D){return this.document?_.Ho(this.document.querySelectorAll(D)):[]};
lp.prototype.elementFromPoint=function(D,C){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;D=this.document.elementFromPoint(D,C);return D===null?null:new jo(D)};
var rUt=function(D,C,X){X=X===void 0?!1:X;if(C.ref===void 0||!D.document)return yB(C).pipe(DI(D.parentContext.performanceMonitor,749));var c=new gV(1),W=function(){c.next(C)};
X||Cce(C.ref,W);AR3(C.ref,W);return c.pipe(DI(D.parentContext.performanceMonitor,749),oV(1))};
_.$a.Object.defineProperties(lp.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return ypJ(this.global,"document")?this.global.document||null:null}}});var Qhm=_.q8(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Boh=_.q8(["./reach_worklet.js"]),bFF=_.q8(["./reach_worklet.js"]),XIM=_.q8(["./reach_worklet.html"]),cRN=_.q8(["./reach_worklet.js"]),oT5=_.q8(["./reach_worklet.js"]);_.kX(XIM);_.kX(cRN);_.kX(oT5);var lo={left:0,top:0,width:0,height:0};var Wvx,pIg,Sek,Udq,Ag,a1C,I1c,OFq,Hat,JaW,$dg,vTM;Wvx=function(D,C,X,c,W,p,g){var a="";D&&(a+=D+":");X&&(a+="//",C&&(a+=C+"@"),a+=X,c&&(a+=":"+c));W&&(a+=W);p&&(a+="?"+p);g&&(a+="#"+g);return a};
pIg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.IQ=function(D){return D.match(pIg)};
_.Ln=function(D,C){return D?C?decodeURI(D):decodeURIComponent(D):D};
Sek=function(D){D=_.IQ(D)[1]||null;!D&&_.co.self&&_.co.self.location&&(D=_.co.self.location.protocol.slice(0,-1));return D?D.toLowerCase():""};
_.OY=function(D){return _.Ln(_.IQ(D)[3]||null,!0)};
_.mC=function(D){return _.Ln(_.IQ(D)[5]||null,!0)};
_.$jo=function(D){var C=D.indexOf("#");return C<0?null:D.slice(C+1)};
Udq=function(D){D=_.IQ(D);return Wvx(D[1],D[2],D[3],D[4])};
_.gTq=function(D){D=_.IQ(D);return Wvx(D[1],null,D[3],D[4])};
_.wl=function(D){D=_.IQ(D);return Wvx(null,null,null,null,D[5],D[6],D[7])};
_.zC=function(D){var C=D.indexOf("#");return C<0?D:D.slice(0,C)};
Ag=function(D,C){D=_.IQ(D);C=_.IQ(C);return D[3]==C[3]&&D[1]==C[1]&&D[4]==C[4]};
a1C=function(D,C){if(D){D=D.split("&");for(var X=0;X<D.length;X++){var c=D[X].indexOf("="),W=null;if(c>=0){var p=D[X].substring(0,c);W=D[X].substring(c+1)}else p=D[X];C(p,W?$z(W):"")}}};
I1c=function(D){var C=D.indexOf("#");C<0&&(C=D.length);var X=D.indexOf("?");if(X<0||X>C){X=C;var c=""}else c=D.substring(X+1,C);return[D.slice(0,X),c,D.slice(C)]};
OFq=function(D,C){return C?D?D+"&"+C:C:D};
_.AR4=function(D,C){if(!C)return D;D=I1c(D);D[1]=OFq(D[1],C);return D[0]+(D[1]?"?"+D[1]:"")+D[2]};
_.Pcx=function(D,C,X){if(Array.isArray(C))for(var c=0;c<C.length;c++)_.Pcx(D,String(C[c]),X);else C!=null&&X.push(D+(C===""?"":"="+_.WK(C)))};
_.EY=function(D){var C=[],X;for(X in D)_.Pcx(X,D[X],C);return C.join("&")};
_.aQ=function(D,C){C=_.EY(C);return _.AR4(D,C)};
_.DZ=function(D,C,X){X=X!=null?"="+_.WK(X):"";return _.AR4(D,C+X)};
Hat=function(D,C,X,c){for(var W=X.length;(C=D.indexOf(X,C))>=0&&C<c;){var p=D.charCodeAt(C-1);if(p==38||p==63)if(p=D.charCodeAt(C+W),!p||p==61||p==38||p==35)return C;C+=W+1}return-1};
JaW=/#|$/;_.DH=function(D,C){var X=D.search(JaW),c=Hat(D,0,C,X);if(c<0)return null;var W=D.indexOf("&",c);if(W<0||W>X)W=X;c+=C.length+1;return $z(D.slice(c,W!==-1?W:0))};
$dg=/[?&]($|#)/;_.MF=function(D,C){for(var X=D.search(JaW),c=0,W,p=[];(W=Hat(D,c,C,X))>=0;)p.push(D.substring(c,W)),c=Math.min(D.indexOf("&",W)+1||X,X);p.push(D.slice(c));return p.join("").replace($dg,"$1")};
_.D0=function(D,C,X){return _.DZ(_.MF(D,C),C,X)};
vTM=function(D){var C=I1c(window.location.href),X=C[1],c=[];X&&X.split("&").forEach(function(W){var p=W.indexOf("=");p=p>=0?W.slice(0,p):W;D.hasOwnProperty(p)||c.push(W)});
C[1]=OFq(c.join("&"),_.EY(D));return C[0]+(C[1]?"?"+C[1]:"")+C[2]};var ToW=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ToW,_.aH);var Vpm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Vpm,_.aH);var yRn=function(D,C){return _.N3(D,2,C)},Gyh=function(D,C){return _.N3(D,3,C)};
Vpm.prototype.getModel=function(){return _.EG(this,4)};
var wIn=function(D,C){return _.N3(D,4,C)},YeW=function(D,C){return _.N3(D,5,C)},ZFh=function(D,C){return _.N3(D,9,C)},Nom=function(D,C){return hu(D,10,C)},tpJ=function(D,C){return _.kT(D,11,C)},nTm=function(D,C){return _.N3(D,1,C)},Fvt=function(D,C){return _.kT(D,7,C)};var eih="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var WI=function(D,C,X,c){D=D===void 0?window:D;C=C===void 0?null:C;X=X===void 0?new tD4:X;c=c===void 0?rRW():c;L$g.call(this);var W=this;this.global=D;this.debugChannel=C;this.performanceMonitor=X;this.onPageHide=Wen(function(){return js(W.global,"pagehide")}).pipe(DI(this.performanceMonitor,941));
this.onLoad=Wen(function(){return js(W.global,"load")}).pipe(DI(this.performanceMonitor,738),oV(1));
this.onResize=Wen(function(){return js(W.global,"resize")}).pipe(DI(this.performanceMonitor,741));
this.onMessage=Wen(function(){return js(W.global,"message")}).pipe(DI(this.performanceMonitor,740));
this.document=new lp(this.global,this);this.timeProvider=new NHq(new y_x(this.intrinsicFunctionNamespace,this.performanceMonitor),new Yue(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new eK4(new wtN(this),new d35(this),new h6(this,new GL5(this)),new h6(this,new DdJ(this)),new h6(this,new dd(this)))};
_.h(WI,L$g);WI.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(D){return D}};
var sf=function(D){var C=D.global;return!!D.global.HTMLFencedFrameElement&&!!C.fence&&typeof C.fence.reportEvent==="function"};
_.S=WI.prototype;_.S.reportFencedFrameEvent=function(D){sf(this)&&this.global.fence.reportEvent(D)};
_.S.getOnBackgrounded=function(){return this.onPageHide.pipe(DI(this.performanceMonitor,942),Ky(this.queue),GL(function(){}))};
_.S.postMessage=function(D,C,X){X=X===void 0?[]:X;this.global.postMessage(D,C,X)};
_.S.getWidth=function(){return nXm(this.global)?this.global.width:0};
_.S.getHeight=function(){return nXm(this.global)?this.global.height:0};
_.S.isMobile=function(){return HKc()||J_g()};
var M3=function(D,C){try{var X=Lv3(C,D.global,D.isMobile());return{left:X.left,top:X.top,width:X.getWidth(),height:X.getHeight()}}catch(c){return lo}};
WI.prototype.validate=function(){var D=this.beaconFactory.isSupported()||sf(this);return this.global&&this.timeProvider.available()&&D};
var Ccd=function(D){return(D=JRn(D.global))?rH(D):null};
_.$a.Object.defineProperties(WI.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(D){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(D){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!nXm(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}}});_.iFC=!_.g1&&!_.kJR();var nQm=function(D){return D};var Fxn=function(D){return D.pipe(dH(function(C){var X=C.endOfSessionReason;var c;return((c=C.viewable)==null?void 0:c.extrapolateToNow().value)||X!=void 0}),oV(1),XE())};var RiZ=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},l1j=function(D){var C=D.sequenceNumber.toString(10).padStart(2,"0");
C=""+D.startTime+C;D.sequenceNumber<99&&D.sequenceNumber++;return C};var Nqm=uG(Pd(function(D){return D.endOfSessionReason===void 0}),GL(function(D){return Object.assign({},D,{timestamps:yI(D)})}),dH(function(D){var C=D.viewable;
D=D.timestamps;var X;return(X=C==null?void 0:C.extrapolateUsingTimestampMap(D).value)!=null?X:!1}),GL(function(D){var C=D.beaconFactory;
var X=D.timestampedExposureHistory;var c=D.timeOnScreen;var W=D.binaryContext;D=D.timestamps;if(C===void 0||X===void 0||c===void 0||W===void 0)return!1;if(c.extrapolateUsingTimestampMap(D).value.every(function(p){return p>=0}))return!0;
X=X.map(function(p){return p.timestamp+":"+p.value}).join(",");
c=Dmm({bin:W,tos:c},D);C.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+c+("&eh="+X)).sendNow();return!0}),Pd(function(D){return!D}),XE());var XeF=function(D){return{id:D.pingId,mcvt:D.maxConsecutiveViewTime,p:D.creativePosition,asp:D.adSpeedPosition,tm:D.totalMeasurementTime,tu:D.totalUnviewedTime,mtos:D.maxTimeOnScreen,tos:D.timeOnScreen,v:D.binaryVersion,bin:D.binaryContext,avms:D.measurementStrategy,bs:D.browserSize,mc:D.maximumExposure,"if":D.crossDomainIframeState,vu:D.delayedImpressionJsState,app:D.inApp,mse:D.mraidError,mtop:D.mraidSituation,itpl:D.injectedTemplateId,adk:D.adKey,exk:D.awbidKey,rs:D.requestSource,la:D.isLargeAd,
cr:D.isContentRecommendationAd,uach:D.userAgentClientHints,vs:D.viewState,r:D.reasonCode,pay:D.hasCpmavUrl,co:D.clientPingOrderCounter,rst:D.adRenderStartTime,rpt:D.adRenderPeriodTime,isd:D.initialScrollDepth,lsd:D.loadedScrollDepth,context:D.errorContext,msg:D.errorMessage,stack:D.errorStack,name:D.errorName,ec:D.hasElementChanged,sfr:D.strategyFailureReasons,met:D.creativeSearchResult,wmsd:D.webMeasurementStartDiagnostic,pv:D.pageVisible,epv:D.eosPageVisible,pbe:D.inStatefulBeaconExperiment,fle:D.inFetchLaterBeaconExperiment,
vae:D.inViewableAttributionExperiment,spb:D.supportsPendingBeacon,sfl:D.supportsFetchLater,ffslot:D.isFencedFrameSlotTurtlex,reach:D.sharedStorageReachMode,io2:D.v2VisibilityBitVector,rxdbg:D.rxDebugger,omida:D.omidAppId,omidp:D.omidPartner,omidpv:D.omidPartnerVersion,omidor:D.omidOcclusionReasons,omidv:D.omidVersion,omids:D.omidSessionType,omidam:D.omidAccessMode,omidct:D.omidCreativeType,omidia:D.omidInApp,omiddc:D.omidDeviceCategory,omidlat:D.omidLastActivity,omiddit:D.omidDeviceIdleTime,qid:D.errorEscapedQueryId}};var w2j=function(D){var C=[];return D.pipe(GL(function(X){var c=X.beaconFactory,W=X.fetchBeaconFactory,p=X.timeOnScreen,g=X.timeOnScreenUrlPrefixes,a=X.payloadMapper,O=X.timeOnScreenPingId,P=X.timeOnScreenReason,k=X.urlSerializer,u=X.viewable,Q=X.hasImpressionFired,B=X.inStatefulBeaconExperiment,K=X.supportsPendingBeacon,L=X.supportsFetchLater,t=X.turtlexReportEventData;if(!X.geometryMeasurable||!Q||X.maxTimeOnScreen===void 0||p===void 0||g===void 0||a===void 0||O===void 0||k===void 0||c===void 0)return!1;
if(X.isTurtlex){if(P===void 0)return!1;g=X.reportFencedFrameEvent;if(!g)return!1;g({eventType:"active-view-time-on-screen",eventData:t!=null?t:"",destination:["buyer"]});return!0}if(!(B||L||P))return!1;t=yI(X);var Y;u=(Y=u==null?void 0:u.extrapolateUsingTimestampMap(t).value)!=null?Y:!1;Y=k(Object.assign({},X,{pingId:O,viewState:u?4:3,reasonCode:P!=null?P:"u",payloadMapper:a,urlPrefixes:g}),t);if(B){for(;C.length>g.length;)X=void 0,(X=C.shift())==null||X.deactivate();Y.forEach(function(J,T){T>=C.length?
C.push(c.makeBeacon(J)):C[T].url=J});
return K&&W&&P!==void 0?(Y.forEach(function(J){W.makeBeacon(J).sendNow()}),!0):P!==void 0}if(K&&W&&P!==void 0)return Y.forEach(function(J){W.makeBeacon(J).sendNow()}),!0;
if(L&&W){for(;C.length>g.length;)K=void 0,(K=C.shift())==null||K.deactivate();var y=k(Object.assign({},X,{pingId:O,viewState:u?4:3,reasonCode:P!=null?P:"u",payloadMapper:a,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),t)[0];Y.forEach(function(J,T){T>=C.length?C.push(c.makeBeacon(y,{endOfSession:!0})):C[T].url=y});
return P!==void 0?(Y.forEach(function(J){W.makeBeacon(J).sendNow()}),!0):P!==void 0}return P!==void 0?(Y.forEach(function(J){c.makeBeacon(J).sendNow()}),!0):!1}),Pd(function(X){return!X}),XE())};var Z7Z=uG(dH(function(D){return D.immediateUrlPrefixes!==void 0&&D.payloadMapper!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),dH(function(D){return aHZ(D)!==null}),Umt(function(D){return D.activeViewUnmeasurableEvent},function(D){return D.emit}),GL(function(D){if(D.isTurtlex){var C=D.reportFencedFrameEvent;
if(C){var X;C({eventType:"active-view-unmeasurable",eventData:(X=D.turtlexReportEventData)!=null?X:"",destination:["buyer"]})}}else{X=void 0;var c=aHZ(D);if(c==="x"){var W,p=(W=D.geometricMeasurementErrors)!=null?W:D.contextValidationErrors;p&&(C=p.stack,X=p.message)}D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:2,reasonCode:c,errorMessage:X,errorStack:C}),yI(D)).forEach(function(g){D.beaconFactory.makeBeacon(g).sendNow()})}}),
oV(1),XE());var IHW=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var tjZ=uG(dH(function(D){return D.payloadMapper!==void 0&&D.immediateUrlPrefixes!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),GL(function(D){return Object.assign({},D,{timestamps:yI(D)})}),dH(function(D){var C=D.viewable;
var X=D.hasImpressionFired;D=D.timestamps;var c;return!!X&&((c=C==null?void 0:C.extrapolateUsingTimestampMap(D).value)!=null?c:!1)}),Umt(function(D){return D.activeViewViewableEvent},function(D){return D.emit}),GL(function(D){var C=D.beaconFactory,X=D.turtlexReportEventData;
if(D.isTurtlex){var c=D.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-viewable",eventData:X!=null?X:"",destination:["buyer"]});return!0}X=D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:4,reasonCode:"v"}),D.timestamps);(c=D.cpmavUrls)&&c.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(c,D).forEach(function(W){C.makeBeacon(W).sendNow()});
(c=D.viewableRelayUrls)&&c.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(c,D).forEach(function(W){C.makeBeacon(W).sendNow()});
X.forEach(function(W){C.makeBeacon(W,{attributionEnabled:D.isViewableAttributionEnabled}).sendNow()});
return!0}),Pd(function(D){return!D}),XE());var X25=GL(function(D){return[D.value.topWindowViewportExternalGeometry.width,D.value.topWindowViewportExternalGeometry.height]});var q3=function(D,C){this.callback=D;this.options=C;this.intersectionObserverV2=this.intersectionObserverV1=null},weZ=function(D,C){C?D.intersectionObserverV2||(C=Object.assign({},D.options,{delay:100,
trackVisibility:!0}),D.intersectionObserverV2=new IntersectionObserver(D.callback,C)):D.intersectionObserverV1||(D.intersectionObserverV1=new IntersectionObserver(D.callback,D.options))},kyC=function(D,C){D=C?D.intersectionObserverV2:D.intersectionObserverV1;
if(!D)throw new sGc;return D};
q3.prototype.observe=function(D,C){kyC(this,D).observe(C)};
q3.prototype.unobserve=function(D,C){kyC(this,D).unobserve(C)};
q3.prototype.disconnect=function(D){kyC(this,D).disconnect()};
q3.prototype.takeRecords=function(D){return kyC(this,D).takeRecords()};var hPF={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:lo,topWindowViewportExternalGeometry:lo,measurementRequests:new bo,elementGeometrySourceName:"ns",elementGeometry:lo,intersectionGeometry:lo,viewportLocalAppOffset:{x:0,y:0}};var JwR=D1(uG(GL(function(D){var C;return(C=D.exposureOverride)!=null?C:Zit(D)}),GL(function(D){return isFinite(D)?D:0}))),RPW=D1(uG(GL(function(D){var C;
return(C=D.exposureOverride)!=null?C:Zit(D)}),GL(function(D){return isFinite(D)?D:-1})));var CW=function(D,C){this.a=D;this.b=C;if(D.clock.timeline!==C.clock.timeline)throw Error();};
CW.prototype.equivalentTo=function(D){return D instanceof CW?this.a.equivalentTo(D.a)&&this.b.equivalentTo(D.b):!1};
CW.prototype.extrapolateToTime=function(D){var C=this.a.extrapolateToTime(D).value,X=this.b.extrapolateToTime(D).value;return{timestamp:D,value:[C,X]}};
_.$a.Object.defineProperties(CW.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 D=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),C=this.a.lastMeasurement.timestamp.equals(D)?this.a.lastMeasurement.value:this.a.extrapolateToTime(D).value,X=this.b.lastMeasurement.timestamp.equals(D)?this.b.lastMeasurement.value:this.b.extrapolateToTime(D).value;return{timestamp:D,value:[C,X]}}}});var Xn=function(D,C){this.input=D;this.mapFunction=C;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Xn.prototype.equivalentTo=function(D){return D instanceof Xn?this.input.equivalentTo(D.input)&&this.mapFunction===D.mapFunction:!1};
Xn.prototype.extrapolateToTime=function(D){D=this.input.extrapolateToTime(D);return{timestamp:D.timestamp,value:this.mapFunction(D.value)}};
_.$a.Object.defineProperties(Xn.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var cF=function(){};
cF.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
cF.prototype.extrapolateUsingTimestampMap=function(D){var C=this.clock.timeline,X,c=(X=D.get(C))!=null?X:this.clock.now();D.set(C,c);return this.extrapolateToTime(c)};
cF.prototype.map=function(D){return new uJx(this,D)};
cF.prototype.joinWith=function(D){return new Qhd(this,D)};
var Qhd=function(){CW.apply(this,arguments);this.map=cF.prototype.map;this.joinWith=cF.prototype.joinWith;this.extrapolateToNow=cF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=cF.prototype.extrapolateUsingTimestampMap};
_.h(Qhd,CW);var uJx=function(){Xn.apply(this,arguments);this.map=cF.prototype.map;this.joinWith=cF.prototype.joinWith;this.extrapolateToNow=cF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=cF.prototype.extrapolateUsingTimestampMap};
_.h(uJx,Xn);var XJ=function(D,C){this.lastMeasurement=C;this.extrapolateToNow=cF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=cF.prototype.extrapolateUsingTimestampMap;this.map=cF.prototype.map;this.joinWith=cF.prototype.joinWith;this.clock=D};
XJ.prototype.equivalentTo=function(D){return D.active};
XJ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.$a.Object.defineProperties(XJ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var Cqd=GL(function(D){if(D.value.viewportGeometrySourceName==="omid"){if(D.value.elementGeometrySourceName==="nio")return"omio";if(D.value.elementGeometrySourceName==="geo")return"omgeo"}return D.value.elementGeometrySourceName==="geo"||D.value.elementGeometrySourceName==="nio"?D.value.viewportGeometrySourceName:D.value.elementGeometrySourceName});var VnR=uG(dH(function(D){return!isNaN(D)}),IV(function(D,C){return isNaN(D)?C:Math.min(D,C)},NaN),Wd());var zPZ=D1(uG(GL(function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.exposedViewportLocalGeometry.width*D.exposedViewportLocalGeometry.height)}),GL(function(D){return isFinite(D)?Math.min(1,D):0})));var D6t=uG(D1(GL(function(D){D=D.exposureOverride?D.elementGeometry.width*D.elementGeometry.height*D.exposureOverride/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height):D.intersectionGeometry.width*D.intersectionGeometry.height/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height);return isFinite(D)?D:0})));var Wxd=function(D,C){var X=this;this.timeProvider=D;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=C.pipe(Wd()).subscribe(function(c){SOj(X);X.measurementRequestObserver=c})},U6m=function(D,C){SOj(D);
D.lastMeasurementRequest=D.timeProvider.setTimeout(function(){var X;return void((X=D.measurementRequestObserver)==null?void 0:X.next())},C)},SOj=function(D){D.lastMeasurementRequest!==null&&D.timeProvider.clearTimeout(D.lastMeasurementRequest);
D.lastMeasurementRequest=null};
Wxd.prototype.dispose=function(){SOj(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Bo5=function(){};var m6m=function(D,C){this.context=D;this.strategies=C};
_.h(m6m,Bo5);m6m.prototype.buildGeometrySource=function(D,C){var X=this.strategies.map(function(p){return p.buildGeometrySource(D,C)}),c=AUj(X.map(function(p){return p.geometrySource})),W=c.capturedErrors.pipe(bF5());
return{geometrySource:c.chain.pipe(Ky(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:W,strategyErrors:c.capturedErrors}].concat(_.VB(X.map(function(p){return p.additionalOutputs}))))}};
var bF5=function(){return IV(function(D,C){C instanceof wV?D.push(C.measurementStrategyFailureReason):D.push(-1);return D},[])};var EQ3=function(D,C){this.context=D;this.poller=C};
_.h(EQ3,Bo5);EQ3.prototype.buildGeometrySource=function(D,C){var X=Pqd(vQm(this.context,this.poller),xmj(this.context,C.requestSource));return{geometrySource:O7n(D.measurableCreative.pipe(X),C.inApp),additionalOutputs:{}}};var ejm=function(D,C,X){X=X===void 0?tn5(D,C):X;this.context=D;this.intersectionObserverStrategy=X};
_.h(ejm,Bo5);ejm.prototype.buildGeometrySource=function(D,C){var X=this.intersectionObserverStrategy(C.useV2);return{geometrySource:O7n(D.measurableCreative.pipe(X,N8o(this.context)),C.inApp),additionalOutputs:{}}};var rRc=function(D,C,X){var c=c===void 0?Symbol():c;this.element=D;this.immediateUrls=C;this.timeOnScreenUrls=X;this.symbol=c};var oQj=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Bq5=Object.freeze([1,.75,oQj.exposureThreshold,oQj.largeAdExposureThreshold,0]);var war=function(D,C){C=C===void 0?36E5:C;var X=X===void 0?!0:X;this.creatives=new bo;this.elementsToUnregister=new bo;this.elementMap=new Map;var c=new WI(window,null);c.beaconFactory=new h6(c,new dd(c));sen(c,this.creatives,this.elementsToUnregister,D,C,X).subscribe()},GKh=function(D,C,X,c){if(!D.elementMap.has(C)){var W=new jo(C);
D.elementMap.set(C,W);D.creatives.next(new rRc(W,X,c))}},ZOn=function(D,C){D.elementsToUnregister.next(C);
var X=D.elementMap.get(C);X!==void 0&&(X.release(),D.elementMap.delete(C))};var Tij=function(D){var C=D.url;D=D.uaDataValues;this.JSC$9641_url_=C;this.uaDataValues_=D;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var X=/[?&]([^&=]+)=([^&]*)/g;D=X.exec(C);)this.urlParamValues_[D[1]]=D[2]},HGh=function(D){D=D.uaDataValues_;
if(!D)return"";var C=Sp("uap",D.platform)+Sp("uapv",D.platformVersion)+Sp("uafv",D.uaFullVersion)+Sp("uaa",D.architecture)+Sp("uam",D.model)+Sp("uab",D.bitness);D.fullVersionList&&(C+="&uafvl="+encodeURIComponent(D.fullVersionList.map(function(X){return encodeURIComponent(X.brand)+";"+encodeURIComponent(X.version)}).join("|")));
D.wow64!=null&&(C+="&uaw="+Number(D.wow64));return C.slice(1)};var Kvb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Kvb,_.aH);Kvb.prototype.getId=function(){return _.EG(this,1)};var ob=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ob,_.aH);ob.prototype.getSeconds=function(){return mX(this,1)};
ob.prototype.setSeconds=function(D){return _.Cf(this,1,Pp(D),"0")};_.tm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(_.tm,_.aH);_.tm.prototype.getSeconds=function(){return mX(this,1)};
_.tm.prototype.setSeconds=function(D){return _.Cf(this,1,Pp(D),"0")};
_.hix=function(D){var C=Number(Ny(D,1));D=_.PI(D,2);return new Date(C*1E3+D/1E6)};var WF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(WF,_.aH);WF.prototype.getUrl=function(){return _.EG(this,1)};
WF.prototype.setUrl=function(D){return _.Tt(this,1,D)};
WF.prototype.getHeight=function(){return _.PI(this,2)};
WF.prototype.getWidth=function(){return _.PI(this,3)};var pW=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(pW,_.aH);pW.prototype.getAspectRatio=function(){return ez(this,1)};
pW.prototype.getDuration=function(){return _.Bz(this,ob,2)};var xde=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(xde,_.aH);var Lv4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Lv4,_.aH);var shM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(shM,_.aH);var mdd=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(mdd,_.aH);var ei5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ei5,_.aH);var ET5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ET5,_.aH);var tpN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(tpN,_.aH);var Noq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Noq,_.aH);var Yec=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Yec,_.aH);var SL=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(SL,_.aH);var UC=[2,4,5,6,7];var yRk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(yRk,_.aH);var x5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(x5,_.aH);_.S=x5.prototype;_.S.getId=function(){return _.Bz(this,Kvb,1)};
_.S.getName=function(){return _.EG(this,2)};
_.S.setDescription=function(D){return _.Tt(this,3,D)};
_.S.getUrl=function(){return _.EG(this,8)};
_.S.setUrl=function(D){return _.Tt(this,8,D)};
var gk=function(D){return _.Ih(D,WF,10,_.AR())};
x5.prototype.getOwner=function(D){return _.ycg(this,40,D)};
var ab=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ab,_.aH);_.Ib=[0,fR,rPe];_.OC=[0,fR,rPe];var nTd=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(nTd,_.aH);var A3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(A3,_.aH);A3.prototype.getStatus=function(){return _.tu(this,1)};
A3.prototype.removeItem=function(D){return tCe(this,2,D)};var wIk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(wIk,_.aH);wIk.prototype.getName=function(){return _.EG(this,8)};var PF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(PF,_.aH);PF.prototype.getCommand=function(){return _.tu(this,1)};
PF.prototype.getSource=function(){return _.Bz(this,wIk,2)};
PF.prototype.setVisible=function(D){return _.rl(this,5,D)};
PF.prototype.removeItem=function(D){return tCe(this,7,D)};var Fvb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Fvb,_.aH);Fvb.prototype.getCommand=function(){return _.tu(this,1)};
Fvb.prototype.removeItem=function(D){return tCe(this,4,D)};
var ZF5=_.rj(Fvb);var $1=function(D,C,X){X=X===void 0?Error():X;var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=D;C+=":";X instanceof Error?(this.message=C+X.message,this.stack=X.stack||""):(this.message=C+String(X),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.h($1,Error);_.nF=function(){this.JSC$9699_disposed_=this.JSC$9699_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.nF.prototype.JSC$9699_disposed_=!1;_.nF.prototype.isDisposed=function(){return this.JSC$9699_disposed_};
_.nF.prototype.dispose=function(){this.JSC$9699_disposed_||(this.JSC$9699_disposed_=!0,this.disposeInternal())};
_.nF.prototype[Symbol.dispose]=function(){this.dispose()};
_.hR=function(D,C){D.addOnDisposeCallback(_.AZ(_.Ue,C))};
_.nF.prototype.addOnDisposeCallback=function(D,C){this.JSC$9699_disposed_?C!==void 0?D.call(C):D():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),C&&(D=D.bind(C)),this.onDisposeCallbacks_.push(D))};
_.nF.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var vF=function(D){_.nF.call(this);this.wpc=D};
_.h(vF,_.nF);vF.prototype.gpf=function(){return this.wpc.f()};
vF.prototype.eaG=function(D){return this.wpc.c(D)};
vF.prototype.t6=function(D){return this.wpc.m(JU3(D))};
vF.prototype.mjn=function(D){return this.wpc.mws(JU3(D))};
var ah=function(D){_.nF.call(this);var C=this;this.vm=D;this.u2w="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.sZd=void 0;this.tFL=this.vm.p;this.t3g=this.nHL.bind(this);this.addOnDisposeCallback(function(){return void Gy5(C)})};
_.h(ah,_.nF);var Vpq=function(D){var C;return _.I(function(X){if(X.nextAddress==1){if(!D.vm.wpc)throw new $1(30,"NWA");return D.ePQ?X.return(D.ePQ):X.yield(D.vm.wpc(),2)}C=X.yieldResult;D.ePQ=new vF(C);return X.return(D.ePQ)})};
ah.prototype.snapshot=function(D){return this.vm.s(Object.assign({},D.m1&&{c:D.m1},D.cDw&&{s:D.cDw},D.j5I!==void 0&&{p:D.j5I}))};
ah.prototype.nHL=function(D){this.vm.e(D)};
ah.prototype.jRl=function(D,C){return this.vm.c(D,C,!1)};
var Gy5=function(D){D.sZd!==void 0&&(D.u2w.forEach(function(C){var X;(X=D.sZd)==null||X.removeEventListener(C,D.t3g)}),D.sZd=void 0)};
ah.prototype.dhl=function(){return this.vm.l()};var ia=function(){_.nF.apply(this,arguments);this.ed3=1};
_.h(ia,_.nF);ia.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.ed3++;return this};
ia.prototype.dispose=function(){--this.ed3||_.nF.prototype.dispose.call(this)};var Toc=function(D){this.grg=D;D.addNewEventMetric("/client_streamz/bg/frs",_.ic("mk"))};
Toc.prototype.record=function(D,C){this.grg.record("/client_streamz/bg/frs",D,C)};
var HFM=function(D){this.vr3=D;D.addNewEventMetric("/client_streamz/bg/wrl",_.ic("mn"),vI("ac"),vI("sc"),_.ic("rk"),_.ic("mk"))};
HFM.prototype.record=function(D,C,X,c,W,p){this.vr3.record("/client_streamz/bg/wrl",D,C,X,c,W,p)};
var JRk=function(D){this.orB=D;D.addNewCounter("/client_streamz/bg/ec",_.ic("en"),_.ic("mk"))};
JRk.prototype.increment=function(D,C){this.orB.JSC$9952_incrementCounter("/client_streamz/bg/ec",D,C)};
var ziq=function(D){this.ihg=D;D.addNewEventMetric("/client_streamz/bg/el",_.ic("en"),_.ic("mk"))};
ziq.prototype.record=function(D,C,X){this.ihg.record("/client_streamz/bg/el",D,C,X)};
var jh4=function(D){this.y4j=D;D.addNewCounter("/client_streamz/bg/cec",vI("ec"),_.ic("mk"))};
jh4.prototype.increment=function(D,C){this.y4j.JSC$9952_incrementCounter("/client_streamz/bg/cec",D,C)};
var Mpq=function(D){this.ezm=D;D.addNewCounter("/client_streamz/bg/po/csc",vI("cs"),_.ic("mk"))};
Mpq.prototype.increment=function(D,C){this.ezm.JSC$9952_incrementCounter("/client_streamz/bg/po/csc",D,C)};
var qef=function(D){this.pfg=D;D.addNewCounter("/client_streamz/bg/po/ctav",_.ic("av"),_.ic("mk"))};
qef.prototype.increment=function(D,C){this.pfg.JSC$9952_incrementCounter("/client_streamz/bg/po/ctav",D,C)};
var f1J=function(D){this.hzu=D;D.addNewCounter("/client_streamz/bg/po/cwsc",_.ic("su"),_.ic("mk"))};
f1J.prototype.increment=function(D,C){this.hzu.JSC$9952_incrementCounter("/client_streamz/bg/po/cwsc",D,C)};var uLj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(uLj,_.aH);var kVd=function(D,C){return _.D6(D,3,C,Qq3)};var ddJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ddJ,_.aH);var RiC=[1,2,3];var l1g=[0,RiC,_.cq,KG5,LGk];var Dmq=[0,_.oK,[0,zj,_.qy]];var Chk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Chk,_.aH);var Xe5=[1,2,3];var cwM=[0,Xe5,B3b,vtq,_.Wq,Dmq];var oU5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(oU5,_.aH);var W5k=[0,_.oK,l1g,cwM];var peC=[0,_.CL];var Sz4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Sz4,_.aH);var Umb=[0,_.CL,-1,_.lS];var gUx=[0,_.CL,-1,_.Rk,_.lS];var aHC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(aHC,_.aH);var IHc=[1,2,3];var Oib=[0,IHc,_.Wq,Umb,_.Wq,gUx,_.Wq,peC];var AwC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(AwC,_.aH);AwC.prototype.JSC$9772_serializeBinary=jHW([0,_.CL,Oib,swf,_.oK,W5k,hoN,_.xYN]);var Ph5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Ph5,_.aH);var iib=function(D){var C=new AwC;C=_.N3(C,1,D.JSC$9888_metricName);var X=$mk(D);C=_.D6(C,3,X,_.kt);X=[];for(var c=[],W=_.U(D.cellMap.keys()),p=W.next();!p.done;p=W.next())c.push(p.value.split(","));for(W=0;W<c.length;W++){p=c[W];for(var g=D.cellType,a=D.getCells(p)||[],O=[],P=0;P<a.length;P++){var k=a[P],u=k&&k.cellValue;k=new Chk;switch(g){case 3:u=Number(u);Number.isFinite(u)&&ee(k,1,Xe5,Pp(u));break;case 2:ee(k,2,Xe5,_.f5(Number(u)))}O.push(k)}g=O;for(a=0;a<g.length;a++){O=g[a];P=new oU5;O=_.Lf(P,
2,O);P=[];k=vUk(D);for(u=0;u<k.length;u++){var Q=k[u],B=p[u],K=new ddJ;switch(Q){case 3:ee(K,1,RiC,Bp(String(B)));break;case 2:Q=Number(B);Number.isFinite(Q)&&ee(K,2,RiC,_.g3(Q));break;case 1:ee(K,3,RiC,i5d(B==="true"))}P.push(K)}hu(O,1,P);X.push(O)}}hu(C,4,X);return C};var k3x=function(D){if(!D)return"";if(/^about:(?:blank|srcdoc)$/.test(D))return window.origin||"";D.indexOf("blob:")===0&&(D=D.substring(5));D=D.split("#")[0].split("?")[0];D=D.toLowerCase();D.indexOf("//")==0&&(D=window.location.protocol+D);/^[\w\-]*:\/\//.test(D)||(D=window.location.href);var C=D.substring(D.indexOf("://")+3),X=C.indexOf("/");X!=-1&&(C=C.substring(0,X));X=D.substring(0,D.indexOf("://"));if(!X)throw Error("qa`"+D);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("ra`"+X);D="";var c=C.indexOf(":");if(c!=-1){var W=C.substring(c+1);C=C.substring(0,c);if(X==="http"&&W!=="80"||X==="https"&&W!=="443")D=":"+W}return X+"://"+C+D};var QAC=function(D,C,X){var c=String(_.co.location.href);return c&&D&&C?[C,ug4(k3x(c),D,X||null)].join(" "):null},ug4=function(D,C,X){var c=[],W=[];
if((Array.isArray(X)?2:1)==1)return W=[C,D],_.pC(c,function(a){W.push(a)}),B8f(W.join(" "));
var p=[],g=[];_.pC(X,function(a){g.push(a.key);p.push(a.value)});
X=Math.floor((new Date).getTime()/1E3);W=p.length==0?[X,C,D]:[p.join(":"),X,C,D];_.pC(c,function(a){W.push(a)});
D=B8f(W.join(" "));D=[X,D];g.length==0||D.push(g.join(""));return D.join("_")},B8f=function(D){var C=lh5();
C.update(D);return C.digestString().toLowerCase()};var k1=function(D){this.JSC$9783_document_=D||{cookie:""}},biC;
_.S=k1.prototype;_.S.isEnabled=function(){if(!_.co.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};
_.S.set=function(D,C,X){var c=!1;if(typeof X==="object"){var W=X.sameSite;c=X.secure||!1;var p=X.domain||void 0;var g=X.path||void 0;var a=X.maxAge}if(/[;=\s]/.test(D))throw Error("sa`"+D);if(/[;\r\n]/.test(C))throw Error("ta`"+C);a===void 0&&(a=-1);X=p?";domain="+p:"";g=g?";path="+g:"";c=c?";secure":"";a=a<0?"":a==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+a*1E3)).toUTCString();this.JSC$9783_document_.cookie=D+"="+C+X+g+a+c+(W!=null?";samesite="+W:"")};
_.S.get=function(D,C){for(var X=D+"=",c=(this.JSC$9783_document_.cookie||"").split(";"),W=0,p;W<c.length;W++){p=Po(c[W]);if(p.lastIndexOf(X,0)==0)return p.slice(X.length);if(p==D)return""}return C};
_.S.remove=function(D,C,X){var c=this.containsKey(D);this.set(D,"",{maxAge:0,path:C,domain:X});return c};
_.S.getKeys=function(){return biC(this).keys};
_.S.getValues=function(){return biC(this).values};
_.S.isEmpty=function(){return!this.JSC$9783_document_.cookie};
_.S.getCount=function(){return this.JSC$9783_document_.cookie?(this.JSC$9783_document_.cookie||"").split(";").length:0};
_.S.containsKey=function(D){return this.get(D)!==void 0};
_.S.containsValue=function(D){for(var C=biC(this).values,X=0;X<C.length;X++)if(C[X]==D)return!0;return!1};
_.S.clear=function(){for(var D=biC(this).keys,C=D.length-1;C>=0;C--)this.remove(D[C])};
biC=function(D){D=(D.JSC$9783_document_.cookie||"").split(";");for(var C=[],X=[],c,W,p=0;p<D.length;p++)W=Po(D[p]),c=W.indexOf("="),c==-1?(C.push(""),X.push(W)):(C.push(W.substring(0,c)),X.push(W.substring(c+1)));return{keys:C,values:X}};
_.Yz=new k1(typeof document=="undefined"?null:document);var jCd,rwq;jCd=function(){var D=_.co.__SAPISID||_.co.__APISID||_.co.__3PSAPISID||_.co.__1PSAPISID||_.co.__OVERRIDE_SID;if(D)return!0;typeof document!=="undefined"&&(D=new k1(document),D=D.get("SAPISID")||D.get("APISID")||D.get("__Secure-3PAPISID")||D.get("__Secure-1PAPISID"));return!!D};
rwq=function(D,C,X,c){(D=_.co[D])||typeof document==="undefined"||(D=(new k1(document)).get(C));return D?QAC(D,X,c):null};
_.kA5=function(D){var C=k3x(_.co==null?void 0:_.co.location.href),X=[];if(jCd()){C=C.indexOf("https:")==0||C.indexOf("chrome-extension:")==0||C.indexOf("chrome-untrusted://new-tab-page")==0||C.indexOf("moz-extension:")==0;var c=C?_.co.__SAPISID:_.co.__APISID;c||typeof document==="undefined"||(c=new k1(document),c=c.get(C?"SAPISID":"APISID")||c.get("__Secure-3PAPISID"));(c=c?QAC(c,C?"SAPISIDHASH":"APISIDHASH",D):null)&&X.push(c);C&&((C=rwq("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",D))&&X.push(C),
(D=rwq("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",D))&&X.push(D))}return X.length==0?null:X.join(" ")};var K5C=function(){this.minSize=1024};
K5C.prototype.compress=function(D){var C,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return C=new CompressionStream("gzip"),X=(new Response(C.readable)).arrayBuffer(),c=C.writable.getWriter(),p.yield(c.write((new TextEncoder).encode(D)),2);case 2:return p.yield(c.close(),3);case 3:return W=Uint8Array,p.yield(X,4);case 4:return p.return(new W(p.yieldResult))}})};
K5C.prototype.isSupported=function(D){return D<this.minSize?!1:typeof CompressionStream!=="undefined"};var hP5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(hP5,_.aH);var ua=function(D,C){this.intervalMs=D;this.callback=C;this.enabled=!1;this.nowFn=function(){return _.ok()};
this.lastTimeMs=this.nowFn()};
ua.prototype.setInterval=function(D){this.intervalMs=D;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
ua.prototype.start=function(){var D=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){D.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
ua.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
ua.prototype.tick=function(){var D=this;if(this.enabled){var C=Math.max(this.nowFn()-this.lastTimeMs,0);C<this.intervalMs*.8?this.timer=setTimeout(function(){D.tick()},this.intervalMs-C):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var xmg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(xmg,_.aH);var L5J=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(L5J,_.aH);var sAk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(sAk,_.aH);sAk.prototype.getTransmissionType=function(){return _.tu(this,1)};var cgd=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(cgd,_.aH);var Qg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Qg,_.aH);var XKj=function(D){hu(oz3,1,D)};
Qg.prototype.getModel=function(){return _.EG(this,6)};
var mmC=_.rj(Qg);var ePf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ePf,_.aH);var DGr=["platform","platformVersion","architecture","model","uaFullVersion"],oz3=new Qg,CXd=null;var BF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(BF,_.aH);var EUJ=function(D){return _.bl(D,1,1)};var tnx=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,4)};
_.h(tnx,_.aH);_.ba=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,36)};
_.h(_.ba,_.aH);_.ba.prototype.getExperimentIds=function(){return _.Bz(this,hP5,16)};var N8M=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,19)};
_.h(N8M,_.aH);N8M.prototype.setLogSource=function(D){return _.bl(this,2,D)};
N8M.prototype.setScheduler=function(D){return _.bl(this,10,D)};var ywJ=function(D,C){this.isServiceWorkerScope=C=C===void 0?!1:C;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new N8M;Number.isInteger(D)&&this.logRequest.setLogSource(D);C||(this.locale=document.documentElement.getAttribute("lang"));Yzf(this,new BF)};
ywJ.prototype.setLogSource=function(D){this.logRequest.setLogSource(D);return this};
var Yzf=function(D,C){_.Lf(D.logRequest,1,C);_.tu(C,1)||EUJ(C);D.isServiceWorkerScope||(C=rk(D),_.EG(C,5)||_.N3(C,5,D.locale));D.uach&&(C=rk(D),_.Bz(C,Qg,9)||_.Lf(C,9,D.uach))},nUd=function(D,C){D.transmissionType=C},weC=function(D){var C=C===void 0?DGr:C;
var X=D.isServiceWorkerScope?void 0:Tv();X?WCn(X,C).then(function(c){D.uach=mmC(c!=null?c:"[]");c=rk(D);_.Lf(c,9,D.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},rk=function(D){var C=_.Bz(D.logRequest,BF,1);
C||(C=new BF,Yzf(D,C));D=C;C=_.Bz(D,ePf,11);C||(C=new ePf,_.Lf(D,11,C));return C};
ywJ.prototype.build=function(D,C,X,c,W,p){C=C===void 0?0:C;X=X===void 0?0:X;c=c===void 0?null:c;W=W===void 0?0:W;p=p===void 0?0:p;if(!this.isServiceWorkerScope){var g=rk(this);var a=new sAk;a=_.bl(a,1,this.transmissionType);a=_.kT(a,2,this.isFinal);X=_.nR(a,3,X>0?X:void 0);X=_.nR(X,4,W>0?W:void 0);X=_.nR(X,5,p>0?p:void 0);W=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p=W[_.SC]|0;X=hc(X,p)?X:swR(X,W,p)?LGn(X,W):new X.constructor(Gk(W,p,!0));_.Lf(g,10,X)}g=this.logRequest.clone();X=Date.now().toString();
g=_.rD(g,4,Pp(X));D=D.slice();D=hu(g,3,D);c&&(g=new xmg,c=_.nR(g,13,c),g=new L5J,c=_.Lf(g,2,c),g=new tnx,c=_.Lf(g,1,c),c=_.bl(c,2,9),_.Lf(D,18,c));C&&_.wO(D,14,C);return D};uc.prototype.currBackoffCount_=0;uc.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
uc.prototype.getValue=function(){return this.currValue_};
var F5c=function(D){D.currBaseValue_=Math.min(D.maxValue_,D.currBaseValue_*D.backoffFactor_);D.currValue_=Math.min(D.maxValue_,D.currBaseValue_+(D.randomFactor_?Math.round(D.randomFactor_*(Math.random()-.5)*2*D.currBaseValue_):0));D.currBackoffCount_++};var N3q=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,8)};
_.h(N3q,_.aH);var Zib=_.rj(N3q);var YX4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(YX4,_.aH);var KW;KW=new yP5;var x1=function(D){_.nF.call(this);var C=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9861_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$9861_sendBeaconApiEnabled=!1;this.logSource=D.logSource;this.getAuthHeaderValue=
D.getAuthHeaderValue||function(){};
this.logRequestBuilder=new ywJ(D.logSource,D.isServiceWorkerScope);this.network=D.network||null;this.productID=D.productID||null;this.bufferSize=1E3;this.clearcutUrl=D.urlOverride||null;this.sessionIndex=D.sessionIndex||null;this.disableAutomaticFlush=D.disableAutomaticFlush||!1;this.withCredentials=!D.disableWithCredentials;this.isServiceWorkerScope=D.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Tv()&&!!Tv().navigator&&Tv().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(G3q())).searchParams&&!!(new URL(G3q())).searchParams.set;var X=EUJ(new BF);Yzf(this.logRequestBuilder,X);this.flushBackoff=new uc(1E4,3E5,.1);D=Vnf(this,D.backgroundJobDeferrer);this.JSC$9861_flushTimer=new ua(this.flushBackoff.getValue(),D);this.backupTimer=new ua(6E5,D);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){T8e(C);
var c;(c=C.metalogService)==null||c.flush()}}),document.addEventListener("pagehide",function(){T8e(C);
var c;(c=C.metalogService)==null||c.flush()}))};
_.h(x1,_.nF);var Vnf=function(D,C){return D.isBrowserSupported?C?function(){C().then(function(){D.flush()})}:function(){D.flush()}:function(){}};
x1.prototype.disposeInternal=function(){T8e(this);this.JSC$9861_flushTimer.stop();this.backupTimer.stop();_.nF.prototype.disposeInternal.call(this)};
var Hid=function(D){D.clearcutUrl||(D.clearcutUrl=G3q());try{return(new URL(D.clearcutUrl)).toString()}catch(C){return(new URL(D.clearcutUrl,Tv().location.origin)).toString()}};
x1.prototype.dispatch=function(D){if(D instanceof _.ba)this.log(D);else try{var C=new _.ba,X=D.serialize();var c=_.N3(C,8,X);this.log(c)}catch(W){LW(this,4,1)}};
var LW=function(D,C,X){D.metalogService&&D.metalogService.increment(C,X)};
x1.prototype.log=function(D){LW(this,2,1);if(this.isBrowserSupported){D=D.clone();var C=this.sequencePosition++;D=_.wO(D,21,C);this.componentId&&_.N3(D,26,this.componentId);C=D;if(ycj(_.uS(C,1))==null){var X=Date.now();X=Number.isFinite(X)?X.toString():"0";_.rD(C,1,Pp(X))}_.Ydm(_.uS(C,15))!=null||_.wO(C,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(X=this.experimentIds.clone(),_.Lf(C,16,X));LW(this,1,1);C=this.pendingEvents.length-this.bufferSize+1;C>0&&(this.pendingEvents.splice(0,C),
this.numLogsDroppedSinceLastFlush+=C,LW(this,3,C));this.pendingEvents.push(D);this.disableAutomaticFlush||this.JSC$9861_flushTimer.enabled||this.JSC$9861_flushTimer.start()}};
x1.prototype.flush=function(D,C){var X=this;if(this.pendingEvents.length===0)D&&D();else if(this.JSC$9861_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Jwf(this);else{var c=Date.now();if(this.noFlushUntilMs>c&&this.startWaitingMs<c)C&&C("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?nUd(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var W=this.pendingEvents.length,
p=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),g=this.getAuthHeaderValue();if(g&&this.lastFailedAuth===g)C&&C("stale-auth-token");else{this.pendingEvents=[];this.JSC$9861_flushTimer.enabled&&this.JSC$9861_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;c=p.serialize();var a;this.JSC$9861_compressor&&this.JSC$9861_compressor.isSupported(c.length)&&
(a=this.JSC$9861_compressor.compress(c));var O=zPC(this,c,g),P=function(Q){X.flushBackoff.reset();X.JSC$9861_flushTimer.setInterval(X.flushBackoff.getValue());if(Q){var B=null;try{var K=JSON.stringify(JSON.parse(Q.replace(")]}'\n","")));B=Zib(K)}catch(L){}B&&(Q=Number(mX(B,1,_.Fe("-1"))),Q>0&&(X.startWaitingMs=Date.now(),X.noFlushUntilMs=X.startWaitingMs+Q),cPJ(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,KW.fieldIndex),C6Z(B,KW.fieldIndex),B=KW.ctor?KW.getExtensionFn(B,KW.ctor,KW.fieldIndex,
KW.JSC$9041_hasMessageId):KW.getExtensionFn(B,KW.fieldIndex,null,KW.JSC$9041_hasMessageId),B=B===null?void 0:B)&&(B=_.PI(B,1,-1),B!==-1&&(X.flushBackoff=new uc(B<1?1:B,3E5,.1),X.JSC$9861_flushTimer.setInterval(X.flushBackoff.getValue())))}D&&D();X.numRetriesSinceLastSuccessfulFlush=0},k=function(Q,B){var K=_.Ih(p,_.ba,3,_.AR());
var L=Number(mX(p,14));F5c(X.flushBackoff);X.JSC$9861_flushTimer.setInterval(X.flushBackoff.getValue());Q===401&&g&&(X.lastFailedAuth=g);L&&(X.numLogsDroppedSinceLastFlush+=L);B===void 0&&(B=X.isRetryable(Q));B&&(X.pendingEvents=K.concat(X.pendingEvents),X.disableAutomaticFlush||X.JSC$9861_flushTimer.enabled||X.JSC$9861_flushTimer.start());LW(X,7,1);C&&C("net-send-failed",Q);++X.numRetriesSinceLastSuccessfulFlush},u=function(){X.network&&X.network.send(O,P,k)};
a?a.then(function(Q){LW(X,5,W);O.requestHeaders["Content-Encoding"]="gzip";O.requestHeaders["Content-Type"]="application/binary";O.body=Q;O.bodyType=2;u()},function(){LW(X,6,W);
u()}):u()}}}};
var zPC=function(D,C,X){X=X===void 0?null:X;var c=c===void 0?D.withCredentials:c;var W={},p=new URL(Hid(D));X&&(W.Authorization=X);D.sessionIndex&&(W["X-Goog-AuthUser"]=D.sessionIndex,p.searchParams.set("authuser",D.sessionIndex));D.pageId&&(Object.defineProperty(W,"X-Goog-PageId",{value:D.pageId}),p.searchParams.set("pageId",D.pageId));return{url:p.toString(),body:C,bodyType:1,requestHeaders:W,requestType:"POST",withCredentials:c,timeoutMillis:D.timeoutMillis}},T8e=function(D){D.logRequestBuilder.isFinal=
!0;
D.flush();D.logRequestBuilder.isFinal=!1},Jwf=function(D){jAJ(D,function(C,X){C=new URL(C);
C.searchParams.set("format","json");var c=!1;try{c=Tv().navigator.sendBeacon(C.toString(),X.serialize())}catch(W){}c||(D.isSendBeaconSupported=!1);return c})},jAJ=function(D,C){if(D.pendingEvents.length!==0){var X=new URL(Hid(D));
X.searchParams.delete("format");var c=D.getAuthHeaderValue();c&&X.searchParams.set("auth",c);X.searchParams.set("authuser",D.sessionIndex||"0");for(c=0;c<10&&D.pendingEvents.length;++c){var W=D.pendingEvents.slice(0,32),p=D.logRequestBuilder.build(W,D.numLogsDroppedSinceLastFlush,D.numRetriesSinceLastSuccessfulFlush,D.productID,D.persistedLogRecoveredCount,D.persistedLogExpiredCount);if(!C(X.toString(),p)){++D.numRetriesSinceLastSuccessfulFlush;break}D.numLogsDroppedSinceLastFlush=0;D.numRetriesSinceLastSuccessfulFlush=
0;D.persistedLogRecoveredCount=0;D.persistedLogExpiredCount=0;D.pendingEvents=D.pendingEvents.slice(W.length)}D.JSC$9861_flushTimer.enabled&&D.JSC$9861_flushTimer.stop()}};
x1.prototype.isRetryable=function(D){return 500<=D&&D<600||D===401||D===0};
var G3q=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Mne=function(){this.abortSupported=typeof AbortController!=="undefined"};
Mne.prototype.send=function(D,C,X){var c=this,W,p,g,a,O,P,k,u,Q,B;return _.I(function(K){switch(K.nextAddress){case 1:return p=(W=c.abortSupported?new AbortController:void 0)?setTimeout(function(){W.abort()},D.timeoutMillis):void 0,_.KK(K,2,3),g=Object.assign({},{method:D.requestType,
headers:Object.assign({},D.requestHeaders)},D.body&&{body:D.body},D.withCredentials&&{credentials:"include"},{signal:D.timeoutMillis&&W?W.signal:null}),K.yield(fetch(D.url,g),5);case 5:a=K.yieldResult;if(a.status!==200){(O=X)==null||O(a.status);K.jumpTo(3);break}if((P=C)==null){K.jumpTo(7);break}return K.yield(a.text(),8);case 8:P(K.yieldResult);case 7:case 3:_.xF(K);clearTimeout(p);_.es(K,0);break;case 2:k=_.Eu(K);switch((u=k)==null?void 0:u.name){case "AbortError":(Q=X)==null||Q(408);break;default:(B=
X)==null||B(400)}K.jumpTo(3)}})};
Mne.prototype.getTransmissionType=function(){return 4};_.BI=function(D,C){C=C===void 0?"0":C;_.nF.call(this);this.logSource=D;this.sessionIndex=C;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9879_clearExperimentIds=this.productID=null;this.JSC$9879_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.h(_.BI,_.nF);var $Gn=function(D,C){D.buildLabel=C;return D},PXm=function(D,C){D.network=C;
return D},iC5=function(D,C){D.JSC$9879_clearExperimentIds=C},Agm=function(D){D.JSC$9879_sendBeaconApiEnabled=!0;
return D};
_.BI.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.BI.prototype.build=function(){this.network||(this.network=new Mne);var D=new x1({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.kA5,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.hR(this,D);if(this.buildLabel){var C=this.buildLabel,X=
rk(D.logRequestBuilder);_.N3(X,7,C)}D.JSC$9861_compressor=new K5C;this.componentId&&(D.componentId=this.componentId);this.productID&&(D.productID=this.productID);this.pageId&&(D.pageId=this.pageId);this.JSC$9879_clearExperimentIds&&((X=this.JSC$9879_clearExperimentIds)?(D.experimentIds||(D.experimentIds=new hP5),C=D.experimentIds,X=X.serialize(),_.N3(C,4,X)):D.experimentIds&&_.rD(D.experimentIds,4));this.JSC$9879_sendBeaconApiEnabled&&(D.JSC$9861_sendBeaconApiEnabled=D.isSendBeaconSupported);weC(D.logRequestBuilder);
this.bufferSize&&(D.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(D);return D};var QQW=function(D,C,X,c,W,p,g){D=D===void 0?-1:D;C=C===void 0?"":C;X=X===void 0?"":X;c=c===void 0?!1:c;W=W===void 0?"":W;_.nF.call(this);this.logSource=D;this.componentId=C;p?C=p:(D=new _.BI(D,"0"),D.componentId=C,_.hR(this,D),X!==""&&(D.destinationUrl=X),c&&(D.serviceWorkerScopeEnabled=!0),W&&$Gn(D,W),g&&PXm(D,g),C=D.build());this.JSC$9883_transport=C};
_.h(QQW,_.nF);QQW.prototype.flush=function(D){D=D||[];if(D.length){for(var C=new Ph5,X=[],c=0;c<D.length;c++){var W=D[c],p=iib(W);X.push(p);W.clear()}hu(C,1,X);this.JSC$9883_transport.dispatch(C);this.JSC$9883_transport.flush()}};var qze=function(D){this.cellValue=D};var sC=function(D,C,X){this.JSC$9888_metricName=D;this.cellType=C;this.fields=X||[];this.cellMap=new Map},vUk=function(D){return D.fields.map(function(C){return C.fieldType})},$mk=function(D){return D.fields.map(function(C){return C.fieldName})};
_.S=sC.prototype;_.S.addCell=function(D){var C=_.MJ.apply(1,arguments),X=this.getCells(C);X?X.push(new qze(D)):this.JSC$9888_setCell(D,C)};
_.S.JSC$9888_setCell=function(D){var C=this.JSC$9888_getKey(_.MJ.apply(1,arguments));this.cellMap.set(C,[new qze(D)])};
_.S.getCells=function(){var D=this.JSC$9888_getKey(_.MJ.apply(0,arguments));return this.cellMap.has(D)?this.cellMap.get(D):void 0};
_.S.getCell=function(){var D=this.getCells(_.MJ.apply(0,arguments));return D&&D.length?D[0]:void 0};
_.S.clear=function(){this.cellMap.clear()};
_.S.JSC$9888_getKey=function(){var D=_.MJ.apply(0,arguments);return D?D.join(","):"key"};var fHN=function(D,C){sC.call(this,D,3,C)};
_.h(fHN,sC);fHN.prototype.JSC$9891_incrementCounterBy=function(D){var C=_.MJ.apply(1,arguments),X=0,c=this.getCell(C);c&&(X=c.cellValue);this.JSC$9888_setCell(X+D,C)};var dme=function(D,C){sC.call(this,D,2,C)};
_.h(dme,sC);dme.prototype.record=function(D){this.addCell(D,_.MJ.apply(1,arguments))};_.m2=function(D){this.id=D};
_.m2.prototype.toString=function(){return this.id};_.eL=function(D,C){this.type=D instanceof _.m2?String(D):D;this.currentTarget=this.target=C;this.defaultPrevented=this.propagationStopped_=!1};
_.eL.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.eL.prototype.preventDefault=function(){this.defaultPrevented=!0};_.EC=function(D,C){_.eL.call(this,D?D.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;D&&this.init(D,C)};
_.WT(_.EC,_.eL);
_.EC.prototype.init=function(D,C){var X=this.type=D.type,c=D.changedTouches&&D.changedTouches.length?D.changedTouches[0]:null;this.target=D.target||D.srcElement;this.currentTarget=C;C=D.relatedTarget;C||(X=="mouseover"?C=D.fromElement:X=="mouseout"&&(C=D.toElement));this.relatedTarget=C;c?(this.clientX=c.clientX!==void 0?c.clientX:c.pageX,this.clientY=c.clientY!==void 0?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0):(this.offsetX=_.Ik||D.offsetX!==void 0?D.offsetX:D.layerX,
this.offsetY=_.Ik||D.offsetY!==void 0?D.offsetY:D.layerY,this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0);this.button=D.button;this.keyCode=D.keyCode||0;this.key=D.key||"";this.charCode=D.charCode||(X=="keypress"?D.keyCode:0);this.ctrlKey=D.ctrlKey;this.altKey=D.altKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pointerId=D.pointerId||0;this.pointerType=D.pointerType;this.state=D.state;
this.timeStamp=D.timeStamp;this.event_=D;D.defaultPrevented&&_.EC.superClass_.preventDefault.call(this)};
_.EC.prototype.isButton=function(D){return this.event_.button==D};
_.EC.prototype.stopPropagation=function(){_.EC.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.EC.prototype.preventDefault=function(){_.EC.superClass_.preventDefault.call(this);var D=this.event_;D.preventDefault?D.preventDefault():D.returnValue=!1};var RPc="closure_listenable_"+(Math.random()*1E6|0),t3=function(D){return!(!D||!D[RPc])};var lHe=0;var D6b=function(D,C,X,c,W){this.listener=D;this.proxy=null;this.src=C;this.type=X;this.capture=!!c;this.handler=W;this.key=++lHe;this.removed=this.callOnce=!1},Cqe=function(D){D.removed=!0;
D.listener=null;D.proxy=null;D.src=null;D.handler=null};QL.prototype.add=function(D,C,X,c,W){var p=D.toString();D=this.listeners[p];D||(D=this.listeners[p]=[],this.typeCount_++);var g=X2x(D,C,c,W);g>-1?(C=D[g],X||(C.callOnce=!1)):(C=new D6b(C,this.src,p,!!c,W),C.callOnce=X,D.push(C));return C};
QL.prototype.remove=function(D,C,X,c){D=D.toString();if(!(D in this.listeners))return!1;var W=this.listeners[D];C=X2x(W,C,X,c);return C>-1?(Cqe(W[C]),_.Ejo(W,C),W.length==0&&(delete this.listeners[D],this.typeCount_--),!0):!1};
var cUN=function(D,C){var X=C.type;if(!(X in D.listeners))return!1;var c=_.VF(D.listeners[X],C);c&&(Cqe(C),D.listeners[X].length==0&&(delete D.listeners[X],D.typeCount_--));return c};
QL.prototype.removeAll=function(D){D=D&&D.toString();var C=0,X;for(X in this.listeners)if(!D||X==D){for(var c=this.listeners[X],W=0;W<c.length;W++)++C,Cqe(c[W]);delete this.listeners[X];this.typeCount_--}return C};
QL.prototype.getListener=function(D,C,X,c){D=this.listeners[D.toString()];var W=-1;D&&(W=X2x(D,C,X,c));return W>-1?D[W]:null};
QL.prototype.hasListener=function(D,C){var X=D!==void 0,c=X?D.toString():"",W=C!==void 0;return _.ZI.some(this.listeners,function(p){for(var g=0;g<p.length;++g)if(!(X&&p[g].type!=c||W&&p[g].capture!=C))return!0;return!1})};
var X2x=function(D,C,X,c){for(var W=0;W<D.length;++W){var p=D[W];if(!p.removed&&p.listener==C&&p.capture==!!X&&p.handler==c)return W}return-1};var oQg,Wxe,p25,U6q,gQd,QK,Bc,O7k,ahg,IhJ,N$,AUg,SOg;oQg="closure_lm_"+(Math.random()*1E6|0);Wxe={};p25=0;_.Kb=function(D,C,X,c,W){if(c&&c.once)return QK(D,C,X,c,W);if(Array.isArray(C)){for(var p=0;p<C.length;p++)_.Kb(D,C[p],X,c,W);return null}X=SOg(X);return t3(D)?D.listen(C,X,_.MR(c)?!!c.capture:!!c,W):U6q(D,C,X,!1,c,W)};
U6q=function(D,C,X,c,W,p){if(!C)throw Error("va");var g=_.MR(W)?!!W.capture:!!W,a=N$(D);a||(D[oQg]=a=new QL(D));X=a.add(C,X,c,g,p);if(X.proxy)return X;c=gQd();X.proxy=c;c.src=D;c.listener=X;if(D.addEventListener)_.a6d||(W=g),W===void 0&&(W=!1),D.addEventListener(C.toString(),c,W);else if(D.attachEvent)D.attachEvent(ahg(C.toString()),c);else if(D.addListener&&D.removeListener)D.addListener(c);else throw Error("wa");p25++;return X};
gQd=function(){var D=IhJ,C=function(X){return D.call(C.src,C.listener,X)};
return C};
QK=function(D,C,X,c,W){if(Array.isArray(C)){for(var p=0;p<C.length;p++)QK(D,C[p],X,c,W);return null}X=SOg(X);return t3(D)?D.listenOnce(C,X,_.MR(c)?!!c.capture:!!c,W):U6q(D,C,X,!0,c,W)};
_.Y1=function(D,C,X,c,W){if(Array.isArray(C))for(var p=0;p<C.length;p++)_.Y1(D,C[p],X,c,W);else c=_.MR(c)?!!c.capture:!!c,X=SOg(X),t3(D)?D.unlisten(C,X,c,W):D&&(D=N$(D))&&(C=D.getListener(C,X,c,W))&&Bc(C)};
Bc=function(D){if(typeof D==="number"||!D||D.removed)return!1;var C=D.src;if(t3(C))return cUN(C.eventTargetListeners_,D);var X=D.type,c=D.proxy;C.removeEventListener?C.removeEventListener(X,c,D.capture):C.detachEvent?C.detachEvent(ahg(X),c):C.addListener&&C.removeListener&&C.removeListener(c);p25--;(X=N$(C))?(cUN(X,D),X.typeCount_==0&&(X.src=null,C[oQg]=null)):Cqe(D);return!0};
O7k=function(D,C,X,c,W){X=SOg(X);c=!!c;return t3(D)?D.getListener(C,X,c,W):D?(D=N$(D))?D.getListener(C,X,c,W):null:null};
ahg=function(D){return D in Wxe?Wxe[D]:Wxe[D]="on"+D};
IhJ=function(D,C){if(D.removed)D=!0;else{C=new _.EC(C,this);var X=D.listener,c=D.handler||D.src;D.callOnce&&Bc(D);D=X.call(c,C)}return D};
N$=function(D){D=D[oQg];return D instanceof QL?D:null};
AUg="__closure_events_fn_"+(Math.random()*1E9>>>0);SOg=function(D){if(typeof D==="function")return D;D[AUg]||(D[AUg]=function(C){return D.handleEvent(C)});
return D[AUg]};_.yg=function(){_.nF.call(this);this.eventTargetListeners_=new QL(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.WT(_.yg,_.nF);_.yg.prototype[RPc]=!0;_.S=_.yg.prototype;_.S.setParentEventTarget=function(D){this.parentEventTarget_=D};
_.S.addEventListener=function(D,C,X,c){_.Kb(this,D,C,X,c)};
_.S.removeEventListener=function(D,C,X,c){_.Y1(this,D,C,X,c)};
_.S.dispatchEvent=function(D){var C,X=this.parentEventTarget_;if(X)for(C=[];X;X=X.parentEventTarget_)C.push(X);X=this.actualEventTarget_;var c=D.type||D;if(typeof D==="string")D=new _.eL(D,X);else if(D instanceof _.eL)D.target=D.target||X;else{var W=D;D=new _.eL(c,X);_.ZI.extend(D,W)}W=!0;var p;if(C)for(p=C.length-1;!D.propagationStopped_&&p>=0;p--){var g=D.currentTarget=C[p];W=Pqe(g,c,!0,D)&&W}D.propagationStopped_||(g=D.currentTarget=X,W=Pqe(g,c,!0,D)&&W,D.propagationStopped_||(W=Pqe(g,c,!1,D)&&
W));if(C)for(p=0;!D.propagationStopped_&&p<C.length;p++)g=D.currentTarget=C[p],W=Pqe(g,c,!1,D)&&W;return W};
_.S.disposeInternal=function(){_.yg.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.S.listen=function(D,C,X,c){return this.eventTargetListeners_.add(String(D),C,!1,X,c)};
_.S.listenOnce=function(D,C,X,c){return this.eventTargetListeners_.add(String(D),C,!0,X,c)};
_.S.unlisten=function(D,C,X,c){return this.eventTargetListeners_.remove(String(D),C,X,c)};
_.S.removeAllListeners=function(D){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(D):0};
var Pqe=function(D,C,X,c){C=D.eventTargetListeners_.listeners[String(C)];if(!C)return!0;C=C.concat();for(var W=!0,p=0;p<C.length;++p){var g=C[p];if(g&&!g.removed&&g.capture==X){var a=g.listener,O=g.handler||g.src;g.callOnce&&cUN(D.eventTargetListeners_,g);W=a.call(O,c)!==!1&&W}}return W&&!c.defaultPrevented};
_.yg.prototype.getListener=function(D,C,X,c){return this.eventTargetListeners_.getListener(String(D),C,X,c)};
_.yg.prototype.hasListener=function(D,C){return this.eventTargetListeners_.hasListener(D!==void 0?String(D):void 0,C)};var nW=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(D){return D&&AsyncContext.Snapshot.wrap(D)}:function(D){return D};var $6e=function(D,C){this.create_=D;this.reset_=C;this.occupants_=0;this.JSC$9923_head_=null};
$6e.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var D=this.JSC$9923_head_;this.JSC$9923_head_=D.next;D.next=null}else D=this.create_();return D};
$6e.prototype.put=function(D){this.reset_(D);this.occupants_<100&&(this.occupants_++,D.next=this.JSC$9923_head_,this.JSC$9923_head_=D)};var vQq=function(){this.workTail_=this.workHead_=null};
vQq.prototype.add=function(D,C){var X=SYm.get();X.set(D,C);this.workTail_?this.workTail_.next=X:this.workHead_=X;this.workTail_=X};
vQq.prototype.remove=function(){var D=null;this.workHead_&&(D=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),D.next=null);return D};
var SYm=new $6e(function(){return new i7q},function(D){return D.reset()}),i7q=function(){this.next=this.scope=this.fn=null};
i7q.prototype.set=function(D,C){this.fn=D;this.scope=C;this.next=null};
i7q.prototype.reset=function(){this.next=this.scope=this.fn=null};var k4g,UGm,pK5,ur5;UGm=!1;pK5=new vQq;_.wk=function(D,C){k4g||ur5();UGm||(k4g(),UGm=!0);pK5.add(D,C)};
ur5=function(){var D=Promise.resolve(void 0);k4g=function(){D.then(gz3)}};var Qef=function(D){D.prototype.$goog_Thenable=!0},Bqx=function(D){if(!D)return!1;
try{return!!D.$goog_Thenable}catch(C){return!1}};var b7f,rUb,KxC,x6d,Lxf,sek,tjC,yUN,Z7C,w2g,Aaj;_.mM=function(D,C){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(D!=_.e$)try{var X=this;D.call(C,function(c){X.resolve_(2,c)},function(c){X.resolve_(3,c)})}catch(c){this.resolve_(3,c)}};
b7f=function(){this.next=this.context=this.JSC$9934_onRejected=this.JSC$9934_onFulfilled=this.child=null;this.always=!1};
b7f.prototype.reset=function(){this.context=this.JSC$9934_onRejected=this.JSC$9934_onFulfilled=this.child=null;this.always=!1};
rUb=new $6e(function(){return new b7f},function(D){D.reset()});
KxC=function(D,C,X){var c=rUb.get();c.JSC$9934_onFulfilled=D;c.JSC$9934_onRejected=C;c.context=X;return c};
_.WE=function(D){if(D instanceof _.mM)return D;var C=new _.mM(_.e$);C.resolve_(2,D);return C};
_.x7=function(D){return new _.mM(function(C,X){X(D)})};
x6d=function(D,C,X){hj5(D,C,X,null)||_.wk(_.AZ(C,D))};
_.Fn=function(D){return new _.mM(function(C,X){var c=D.length,W=[];if(c)for(var p=function(P,k){c--;W[P]=k;c==0&&C(W)},g=function(P){X(P)},a,O=0;O<D.length;O++)a=D[O],x6d(a,_.AZ(p,O),g);
else C(W)})};
Lxf=function(D){return new _.mM(function(C){var X=D.length,c=[];if(X)for(var W=function(a,O,P){X--;c[a]=O?{fulfilled:!0,value:P}:{fulfilled:!1,reason:P};X==0&&C(c)},p,g=0;g<D.length;g++)p=D[g],x6d(p,_.AZ(W,g,!0),_.AZ(W,g,!1));
else C(c)})};
sek=function(D){return new _.mM(function(C,X){var c=D.length,W=[];if(c)for(var p=function(P){C(P)},g=function(P,k){c--;
W[P]=k;c==0&&X(W)},a,O=0;O<D.length;O++)a=D[O],x6d(a,p,_.AZ(g,O));
else C(void 0)})};
_.zr=function(){var D,C,X=new _.mM(function(c,W){D=c;C=W});
return new m6d(X,D,C)};
_.mM.prototype.then=function(D,C,X){return ejd(this,nW(typeof D==="function"?D:null),nW(typeof C==="function"?C:null),X)};
Qef(_.mM);tjC=function(D,C,X,c){EQ4(D,KxC(C||_.e$,X||null,c))};
_.ZZ=function(D,C){C=nW(C);C=KxC(C,C);C.always=!0;EQ4(D,C);return D};
_.mM.prototype.finally=function(D){var C=this;D=nW(D);return new _.mM(function(X,c){tjC(C,function(W){D();X(W)},function(W){D();
c(W)})})};
_.mM.prototype.thenCatch=function(D,C){return ejd(this,null,nW(D),C)};
_.mM.prototype.catch=_.mM.prototype.thenCatch;_.mM.prototype.cancel=function(D){if(this.state_==0){var C=new _.wE(D);_.wk(function(){Nqq(this,C)},this)}};
var Nqq=function(D,C){if(D.state_==0)if(D.parent_){var X=D.parent_;if(X.callbackEntries_){for(var c=0,W=null,p=null,g=X.callbackEntries_;g&&(g.always||(c++,g.child==D&&(W=g),!(W&&c>1)));g=g.next)W||(p=g);W&&(X.state_==0&&c==1?Nqq(X,C):(p?(c=p,c.next==X.callbackEntriesTail_&&(X.callbackEntriesTail_=c),c.next=c.next.next):YOb(X),yUN(X,W,3,C)))}D.parent_=null}else D.resolve_(3,C)},EQ4=function(D,C){D.callbackEntries_||D.state_!=2&&D.state_!=3||nQd(D);
D.callbackEntriesTail_?D.callbackEntriesTail_.next=C:D.callbackEntries_=C;D.callbackEntriesTail_=C},ejd=function(D,C,X,c){var W=KxC(null,null,null);
W.child=new _.mM(function(p,g){W.JSC$9934_onFulfilled=C?function(a){try{var O=C.call(c,a);p(O)}catch(P){g(P)}}:p;
W.JSC$9934_onRejected=X?function(a){try{var O=X.call(c,a);O===void 0&&a instanceof _.wE?g(a):p(O)}catch(P){g(P)}}:g});
W.child.parent_=D;EQ4(D,W);return W.child};
_.mM.prototype.unblockAndFulfill_=function(D){this.state_=0;this.resolve_(2,D)};
_.mM.prototype.unblockAndReject_=function(D){this.state_=0;this.resolve_(3,D)};
_.mM.prototype.resolve_=function(D,C){this.state_==0&&(this===C&&(D=3,C=new TypeError("xa")),this.state_=1,hj5(C,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=C,this.state_=D,this.parent_=null,nQd(this),D!=3||C instanceof _.wE||w2g(this,C)))};
var hj5=function(D,C,X,c){if(D instanceof _.mM)return tjC(D,C,X,c),!0;if(Bqx(D))return D.then(C,X,c),!0;if(_.MR(D))try{var W=D.then;if(typeof W==="function")return Fxk(D,W,C,X,c),!0}catch(p){return X.call(c,p),!0}return!1},Fxk=function(D,C,X,c,W){var p=!1,g=function(O){p||(p=!0,X.call(W,O))},a=function(O){p||(p=!0,c.call(W,O))};
try{C.call(D,g,a)}catch(O){a(O)}},nQd=function(D){D.executing_||(D.executing_=!0,_.wk(D.executeCallbacks_,D))},YOb=function(D){var C=null;
D.callbackEntries_&&(C=D.callbackEntries_,D.callbackEntries_=C.next,C.next=null);D.callbackEntries_||(D.callbackEntriesTail_=null);return C};
_.mM.prototype.executeCallbacks_=function(){for(var D;D=YOb(this);)yUN(this,D,this.state_,this.result_);this.executing_=!1};
yUN=function(D,C,X,c){if(X==3&&C.JSC$9934_onRejected&&!C.always)for(;D&&D.hadUnhandledRejection_;D=D.parent_)D.hadUnhandledRejection_=!1;if(C.child)C.child.parent_=null,Z7C(C,X,c);else try{C.always?C.JSC$9934_onFulfilled.call(C.context):Z7C(C,X,c)}catch(W){Aaj.call(null,W)}rUb.put(C)};
Z7C=function(D,C,X){C==2?D.JSC$9934_onFulfilled.call(D.context,X):D.JSC$9934_onRejected&&D.JSC$9934_onRejected.call(D.context,X)};
w2g=function(D,C){D.hadUnhandledRejection_=!0;_.wk(function(){D.hadUnhandledRejection_&&Aaj.call(null,C)})};
Aaj=om;_.wE=function(D){_.Dn.call(this,D)};
_.WT(_.wE,_.Dn);_.wE.prototype.name="cancel";var m6d=function(D,C,X){this.promise=D;this.resolve=C;this.reject=X};var Gg;_.BH=function(D,C){_.yg.call(this);this.JSC$9946_interval_=D||1;this.timerObject_=C||_.co;this.boundTick_=(0,_.wo)(this.tick_,this);this.last_=_.ok()};
_.WT(_.BH,_.yg);_.S=_.BH.prototype;_.S.enabled=!1;_.S.JSC$9948_timer_=null;_.S.setInterval=function(D){this.JSC$9946_interval_=D;this.JSC$9948_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9948_timer_&&this.stop()};
_.S.tick_=function(){if(this.enabled){var D=_.ok()-this.last_;D>0&&D<this.JSC$9946_interval_*.8?this.JSC$9948_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9946_interval_-D):(this.JSC$9948_timer_&&(this.timerObject_.clearTimeout(this.JSC$9948_timer_),this.JSC$9948_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.S.start=function(){this.enabled=!0;this.JSC$9948_timer_||(this.JSC$9948_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9946_interval_),this.last_=_.ok())};
_.S.stop=function(){this.enabled=!1;this.JSC$9948_timer_&&(this.timerObject_.clearTimeout(this.JSC$9948_timer_),this.JSC$9948_timer_=null)};
_.S.disposeInternal=function(){_.BH.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Gg=function(D,C,X){if(typeof D==="function")X&&(D=(0,_.wo)(D,X));else if(D&&typeof D.handleEvent=="function")D=(0,_.wo)(D.handleEvent,D);else throw Error("ya");return Number(C)>2147483647?-1:_.co.setTimeout(D,C||0)};
_.G4J=function(D){var C=null;return(new _.mM(function(X,c){C=Gg(function(){X(void 0)},D);
C==-1&&c(Error("za"))})).thenCatch(function(X){_.co.clearTimeout(C);
throw X;})};var xT=function(D){_.nF.call(this);this.streamzLogger=D;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9952_flushTimer=new _.BH(this.flushInterval);this.JSC$9952_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.hR(this,this.JSC$9952_flushTimer)};
_.h(xT,_.nF);xT.prototype.sendIsolatedPayload=function(D){this.shouldSendIsolatedPayload=D;this.invocationLimit=1};
var Vj5=function(D){D.JSC$9952_flushTimer.enabled||D.JSC$9952_flushTimer.start();D.invocationCount++;D.invocationCount>=D.invocationLimit&&D.snapshotAndFlush()};
xT.prototype.snapshotAndFlush=function(){var D=this.metricMap.values();D=[].concat(_.VB(D)).filter(function(C){return C.cellMap.size});
D.length&&this.streamzLogger.flush(D,this.shouldSendIsolatedPayload);TqM(D);this.invocationCount=0;this.JSC$9952_flushTimer.enabled&&this.JSC$9952_flushTimer.stop()};
xT.prototype.addNewCounter=function(D){var C=_.MJ.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new fHN(D,C))};
xT.prototype.addNewEventMetric=function(D){var C=_.MJ.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new dme(D,C))};
var H75=function(D,C){return D.disabledMetrics.has(C)?void 0:D.metricMap.get(C)};
xT.prototype.JSC$9952_incrementCounter=function(D){this.JSC$9952_incrementCounterBy(D,1,_.MJ.apply(1,arguments))};
xT.prototype.JSC$9952_incrementCounterBy=function(D,C){var X=_.MJ.apply(2,arguments),c=H75(this,D);c&&c instanceof fHN&&(c.JSC$9891_incrementCounterBy(C,X),Vj5(this))};
xT.prototype.record=function(D,C){var X=_.MJ.apply(2,arguments),c=H75(this,D);c&&c instanceof dme&&(c.record(C,X),Vj5(this))};
var TqM=function(D){for(var C=0;C<D.length;C++)D[C].clear()};_.Vg=function(D,C,X){X=X===void 0?{}:X;C=Error.call(this,C);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=D;this.metadata=X;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.h(_.Vg,Error);_.Vg.prototype.toString=function(){var D="RpcError("+(IfZ(this.code)||String(this.code))+")";this.message&&(D+=": "+this.message);return D};_.JU4=_.co.JSON.parse;_.Tg=_.co.JSON.stringify;_.bE=_.co.JSON.parse;_.zjk=function(D){switch(D){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 jeb=function(D){switch(D){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var MjM,qOf=function(){};
_.WT(qOf,_.OC3);qOf.prototype.createInstance=function(){return new XMLHttpRequest};
MjM=new qOf;_.HF=function(D){_.yg.call(this);this.headers=new Map;this.JSC$9961_xmlHttpFactory_=D||null;this.JSC$9961_active_=!1;this.JSC$9961_xhr_=null;this.JSC$9961_lastUri_="";this.JSC$9961_lastErrorCode_=0;this.JSC$9961_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9961_timeoutId_=null;this.responseType_="";this.JSC$9961_withCredentials_=!1};
_.WT(_.HF,_.yg);var fhM=/^https?$/i,d6x=["POST","PUT"],RjC=[],qyF=function(D,C,X,c,W,p,g){var a=new _.HF;RjC.push(a);C&&a.listen("complete",C);a.listenOnce("ready",a.cleanupSend_);p&&(a.timeoutInterval_=Math.max(0,p));g&&(a.JSC$9961_withCredentials_=g);a.send(D,X,c,W)};
_.HF.prototype.cleanupSend_=function(){this.dispose();_.VF(RjC,this)};
_.HF.prototype.send=function(D,C,X,c){if(this.JSC$9961_xhr_)throw Error("Aa`"+this.JSC$9961_lastUri_+"`"+D);C=C?C.toUpperCase():"GET";this.JSC$9961_lastUri_=D;this.JSC$9961_lastError_="";this.JSC$9961_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9961_active_=!0;this.JSC$9961_xhr_=this.createXhr();this.JSC$9961_xhr_.onreadystatechange=nW((0,_.wo)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9961_xhr_.open(C,String(D),!0),this.inOpen_=!1}catch(g){lhx(this,g);return}D=X||"";X=new Map(this.headers);
if(c)if(Object.getPrototypeOf(c)===Object.prototype)for(var W in c)X.set(W,c[W]);else if(typeof c.keys==="function"&&typeof c.get==="function"){W=_.U(c.keys());for(var p=W.next();!p.done;p=W.next())p=p.value,X.set(p,c.get(p))}else throw Error("Ba`"+String(c));c=Array.from(X.keys()).find(function(g){return"content-type"==g.toLowerCase()});
W=_.co.FormData&&D instanceof _.co.FormData;!_.Zn(d6x,C)||c||W||X.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");C=_.U(X);for(c=C.next();!c.done;c=C.next())X=_.U(c.value),c=X.next().value,X=X.next().value,this.JSC$9961_xhr_.setRequestHeader(c,X);this.responseType_&&(this.JSC$9961_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9961_xhr_&&this.JSC$9961_xhr_.withCredentials!==this.JSC$9961_withCredentials_&&(this.JSC$9961_xhr_.withCredentials=this.JSC$9961_withCredentials_);
try{this.JSC$9961_timeoutId_&&(clearTimeout(this.JSC$9961_timeoutId_),this.JSC$9961_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9961_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9961_xhr_.send(D),this.inSend_=!1}catch(g){lhx(this,g)}};
_.HF.prototype.createXhr=function(){return this.JSC$9961_xmlHttpFactory_?this.JSC$9961_xmlHttpFactory_.createInstance():MjM.createInstance()};
_.HF.prototype.timeout_=function(){typeof Ohx!="undefined"&&this.JSC$9961_xhr_&&(this.JSC$9961_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9961_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var lhx=function(D,C){D.JSC$9961_active_=!1;D.JSC$9961_xhr_&&(D.inAbort_=!0,D.JSC$9961_xhr_.abort(),D.inAbort_=!1);D.JSC$9961_lastError_=C;D.JSC$9961_lastErrorCode_=5;DGJ(D);CXe(D)},DGJ=function(D){D.errorDispatched_||(D.errorDispatched_=!0,D.dispatchEvent("complete"),D.dispatchEvent("error"))};
_.HF.prototype.abort=function(D){this.JSC$9961_xhr_&&this.JSC$9961_active_&&(this.JSC$9961_active_=!1,this.inAbort_=!0,this.JSC$9961_xhr_.abort(),this.inAbort_=!1,this.JSC$9961_lastErrorCode_=D||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),CXe(this))};
_.HF.prototype.disposeInternal=function(){this.JSC$9961_xhr_&&(this.JSC$9961_active_&&(this.JSC$9961_active_=!1,this.inAbort_=!0,this.JSC$9961_xhr_.abort(),this.inAbort_=!1),CXe(this,!0));_.HF.superClass_.disposeInternal.call(this)};
_.HF.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)XKg(this);else this.onReadyStateChangeEntryPoint_()};
_.HF.prototype.onReadyStateChangeEntryPoint_=function(){XKg(this)};
var XKg=function(D){if(D.JSC$9961_active_&&typeof Ohx!="undefined")if(D.inSend_&&_.J3(D)==4)setTimeout(D.onReadyStateChange_.bind(D),0);else if(D.dispatchEvent("readystatechange"),D.isComplete()){D.JSC$9961_active_=!1;try{if(D.isSuccess())D.dispatchEvent("complete"),D.dispatchEvent("success");else{D.JSC$9961_lastErrorCode_=6;try{var C=_.J3(D)>2?D.JSC$9961_xhr_.statusText:""}catch(X){C=""}D.JSC$9961_lastError_=C+" ["+D.getStatus()+"]";DGJ(D)}}finally{CXe(D)}}},CXe=function(D,C){if(D.JSC$9961_xhr_){D.JSC$9961_timeoutId_&&
(clearTimeout(D.JSC$9961_timeoutId_),D.JSC$9961_timeoutId_=null);
var X=D.JSC$9961_xhr_;D.JSC$9961_xhr_=null;C||D.dispatchEvent("ready");try{X.onreadystatechange=null}catch(c){}}};
_.HF.prototype.isActive=function(){return!!this.JSC$9961_xhr_};
_.HF.prototype.isComplete=function(){return _.J3(this)==4};
_.HF.prototype.isSuccess=function(){var D=this.getStatus(),C;if(!(C=jeb(D))){if(D=D===0)D=Sek(String(this.JSC$9961_lastUri_)),D=!fhM.test(D);C=D}return C};
_.J3=function(D){return D.JSC$9961_xhr_?D.JSC$9961_xhr_.readyState:0};
_.S=_.HF.prototype;_.S.getStatus=function(){try{return _.J3(this)>2?this.JSC$9961_xhr_.status:-1}catch(D){return-1}};
_.S.getResponseText=function(){try{return this.JSC$9961_xhr_?this.JSC$9961_xhr_.responseText:""}catch(D){return""}};
_.S.getResponse=function(){try{if(!this.JSC$9961_xhr_)return null;if("response"in this.JSC$9961_xhr_)return this.JSC$9961_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9961_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9961_xhr_)return this.JSC$9961_xhr_.mozResponseArrayBuffer}return null}catch(D){return null}};
_.S.getAllResponseHeaders=function(){return this.JSC$9961_xhr_&&_.J3(this)>=2?this.JSC$9961_xhr_.getAllResponseHeaders()||"":""};
_.S.getLastError=function(){return typeof this.JSC$9961_lastError_==="string"?this.JSC$9961_lastError_:String(this.JSC$9961_lastError_)};var vzt=function(){};
vzt.prototype.send=function(D,C,X){C=C===void 0?function(){}:C;
X=X===void 0?function(){}:X;
qyF(D.url,function(c){c=c.target;c.isSuccess()?C(c.getResponseText()):X(c.getStatus())},D.requestType,D.body,D.requestHeaders,D.timeoutMillis,D.withCredentials)};
vzt.prototype.getTransmissionType=function(){return 1};var cge=function(D,C){this.tWm=D;this.event=C;this.startTime=LF()},bCR;
cge.prototype.done=function(){this.tWm.rz(this.event,LF()-this.startTime)};
var zg=function(){ia.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.h(zg,ia);_.jL=function(D,C,X){var c=LF();C=C();D.rz(X,LF()-c);return C};
bCR=function(){zg.apply(this,arguments)};
_.h(bCR,zg);_.S=bCR.prototype;_.S.gXq=function(){};
_.S.eW=function(){};
_.S.rz=function(){};
_.S.logError=function(){};
_.S.h8=function(){};
_.S.ioG=function(){};
_.S.vbi=function(){};
_.S.obL=function(){};
var oz4=function(D){zg.call(this);var C=this;this.kX=D;this.TEST_ONLY={fpM:function(){return C.kX},
getExperimentIds:function(){return C.kX.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void C.kX.dispose()})};
_.h(oz4,zg);_.S=oz4.prototype;_.S.update=function(D){this.kX.dispose();this.kX=D};
_.S.eW=function(D){this.kX.eW(D)};
_.S.rz=function(D,C){this.kX.rz(D,C)};
_.S.logError=function(D){this.kX.logError(D)};
_.S.h8=function(){this.kX.h8()};
_.S.ioG=function(D){this.kX.ioG(D)};
_.S.vbi=function(D){this.kX.vbi(D)};
_.S.obL=function(D){this.kX.obL(D)};
_.S.gXq=function(D){this.kX.gXq(D)};
var WCk=function(D,C){_.nF.call(this);var X=this;this.callback=D;this.twA=C;this.mf4=-C;this.addOnDisposeCallback(function(){return void clearTimeout(X.timer)})};
_.h(WCk,_.nF);var pKx=function(D){if(D.timer===void 0){var C=Math.max(0,D.mf4+D.twA-LF());D.timer=setTimeout(function(){try{D.callback()}finally{D.mf4=LF(),D.timer=void 0}},C)}},SYd=function(D,C){zg.call(this);
this.metrics=D;this.s0=C};
_.h(SYd,zg);_.S=SYd.prototype;_.S.gXq=function(D){this.metrics.oHd.record(D,this.s0)};
_.S.eW=function(D){this.metrics.eventCount.increment(D,this.s0)};
_.S.rz=function(D,C){this.metrics.xbu.record(C,D,this.s0)};
_.S.logError=function(D){this.metrics.errorCount.increment(D,this.s0)};
_.S.ioG=function(D){this.metrics.kYe.increment(D,this.s0)};
_.S.vbi=function(D){this.metrics.b5H.increment(D,this.s0)};
_.S.obL=function(D){this.metrics.tp4.increment(D,this.s0)};
var rgZ=function(D,C){C=C===void 0?[]:C;var X={s0:D.s0||"_",mrL:D.mrL||[],giX:D.giX|0,destinationUrl:D.destinationUrl,esL:D.esL||function(){},
uxJ:D.uxJ||function(p,g){return BTh(p,g,X.esL,X.destinationUrl)}},c=X.uxJ("52",X.mrL.concat(C));
SYd.call(this,{oHd:new Toc(c),errorCount:new jh4(c),eventCount:new JRk(c),xbu:new ziq(c),oBD:new HFM(c),kYe:new Mpq(c),b5H:new qef(c),tp4:new f1J(c)},X.s0);var W=this;this.TEST_ONLY={getExperimentIds:function(){return W.options.mrL.concat(W.vTw).sort(function(p,g){return p-g})}};
this.options=X;this.service=c;this.kbH=!D.uxJ;this.flushDebouncer=new WCk(function(){return void W.service.snapshotAndFlush()},X.giX);
this.addOnDisposeCallback(function(){W.flushDebouncer.dispose();W.kbH&&W.service.dispose()});
(this.vTw=C.slice()).sort(_.yW3)};
_.h(rgZ,SYd);rgZ.prototype.h8=function(){pKx(this.flushDebouncer)};var VMt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(VMt,_.aH);_.Tm5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(_.Tm5,_.aH);var VR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,0,VR.messageId)};
_.h(VR,_.aH);var UGq=_.MDF(VR);VR.messageId="bfkj";var qOR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(qOR,_.aH);var gz4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(gz4,_.aH);var af5=_.rj(gz4);_.gL=function(){var D=this;this.promise=new Promise(function(C,X){D.resolve=C;D.reject=X})};_.M$=function(D){_.nF.call(this);var C=this;this.qti=Math.floor(Math.random()*200);this.eKG=new gz4;if("challenge"in D&&UGq(D.challenge)){var X=_.EG(D.challenge,4,void 0,y5);var c=_.EG(D.challenge,5,void 0,y5);_.EG(D.challenge,7,void 0,y5)&&(this.eKG=af5(_.EG(D.challenge,7,void 0,y5)))}else X=D.program,c=D.globalName;this.addOnDisposeCallback(function(){var K,L,t;return _.I(function(Y){if(Y.nextAddress==1)return Y.yield(C.eSL,2);K=Y.yieldResult;L=K.nXo;(t=L)==null||t();_.t_(Y)})});
this.oZ=KCn(D.bHi||{},this.eKG);_.hR(this,this.oZ);var W=new _.gL;this.eSL=W.promise;this.oZ.eW("t");var p=this.oZ.share(),g=new cge(p,"t"),a=function(K,L,t,Y){if(!C.oZ.isDisposed()){var y="k";L?y="h":t&&(y="u");y!=="k"?Y!==0&&(C.oZ.eW(y),C.oZ.rz(y,K)):C.qti<=0?(C.oZ.eW(y),C.oZ.rz(y,K),C.qti=Math.floor(Math.random()*200)):C.qti--}},O=function(K,L,t,Y){Promise.resolve().then(function(){g.done();
p.h8();p.dispose();W.resolve({a8j:K,nXo:L,n2J:t,n8j:Y})})};
if(!_.co[c])throw this.oZ.logError(25),Error("Ca");if(!_.co[c].a)throw this.oZ.logError(26),Error("Da");try{var P=_.co[c].a;c=[];for(var k=[],u=fho(this.eKG),Q=0;Q<u.length;Q++)c.push(u[Q]),k.push(1);var B=d65(this.eKG);for(u=0;u<B.length;u++)c.push(B[u]),k.push(2);this.r3d=_.U(P(X,O,!0,D.r2m,a,[c,k],_.EG(this.eKG,5),!1)).next().value;this.tFL=W.promise.then(function(){})}catch(K){throw this.oZ.logError(28),K;
}};
_.h(_.M$,_.nF);_.M$.prototype.snapshot=function(D){if(this.isDisposed())throw Error("Ea");this.oZ.eW("n");var C=this.oZ.share();return this.eSL.then(function(X){var c=X.a8j;return new Promise(function(W){var p=new cge(C,"n");c(function(g){p.done();C.gXq(g.length);C.h8();C.dispose();W(g)},[D.m1,
D.cDw,D.cTj,D.j5I])})})};
_.M$.prototype.nHL=function(D){this.eSL.then(function(C){var X;(X=C.n2J)==null||X(D)})};
_.M$.prototype.jRl=function(D,C){return this.eSL.then(function(X){var c;return(c=X.n8j)==null?void 0:c(D,C,!1)})};
_.M$.prototype.dhl=function(){return this.oZ.share()};var IfC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(IfC,_.aH);var blo=_.MDF(IfC);var OC4=function(){this.promises={};this.ykK=null},Agq=function(){OC4.instance||(OC4.instance=new OC4);
return OC4.instance},$Gk=function(D,C){return PXd(D,_.Bz(C,VMt,1,y5),_.Bz(C,_.Tm5,2,y5),_.EG(C,3,void 0,y5))},PXd=function(D,C,X,c){if(!C&&!X)return Promise.resolve();
if(!c)return mGo(C,X);var W;(W=D.promises)[c]||(W[c]=new Promise(function(p,g){mGo(C,X).then(function(){D.ykK=c;p()},function(a){delete D.promises[c];
g(a)})}));
return D.promises[c]};var vzb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(vzb,_.aH);var iCx=function(D,C){return _.Tt(D,1,C)},kVe=function(D,C){return _.Tt(D,2,C)};var q$=function(D){_.nF.call(this);var C=this;this.options=D;this.gee=new _.gL;this.tFL=this.gee.promise;this.h3L=new _.gL;this.dfE=1;this.eDy=new _.gL;this.wIh=[];this.isPaused=!1;this.fLG=D.fLG||function(){};
this.iBe=new oz4(KCn(D.bHi||{}));uLg(this,D.tJ,D.oyr,D.ygt,D.m6t,Object.assign({},QQc,D.rnw||{}));this.addOnDisposeCallback(function(){return void BT5(C)})};
_.h(q$,_.nF);q$.prototype.snapshot=function(D){var C=this;return _.I(function(X){switch(X.nextAddress){case 1:if(C.isDisposed())throw Error("Ea");if(C.zl||C.oVE){X.jumpTo(2);break}return X.yield(C.h3L.promise,2);case 2:if(!C.zl){X.jumpTo(4);break}return X.yield(C.zl.snapshot(D),5);case 5:return X.return(X.yieldResult);case 4:throw C.oVE;}})};
q$.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.uR&&this.uR.pause())};
q$.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.uR&&this.uR.resume())};
q$.prototype.checkForRefresh=function(){var D=this;return _.I(function(C){if(D.isDisposed())throw Error("Ea");var X;if(X=D.uR)X=D.uR,X.isExpired()?(bCf(X),X.resolver(0),X=!0):X=!1,X=!X;return X?C.jumpTo(0):C.yield(D.eDy.promise,0)})};
var KCk=function(D){var C;return _.I(function(X){if(D.isDisposed())throw Error("Ea");(C=D.uR)==null||rgC(C);return X.yield(D.eDy.promise,0)})},BT5=function(D){D.oVE=Error("Ga");
D.h3L.resolve();RjZ(D.gee.promise);D.gee.reject(Error("Ga"));D.iBe.dispose();Promise.all(D.wIh).then(function(){var X;return _.I(function(c){(X=D.zl)==null||X.dispose();D.zl=void 0;_.t_(c)})});
D.wIh=[];var C;(C=D.uR)==null||rgC(C);RjZ(D.eDy.promise);D.eDy.reject(Error("Ga"))};
q$.prototype.nHL=function(D){var C,X;(C=this.zl)==null||(X=C.nHL)==null||X.call(C,D)};
q$.prototype.jRl=function(D,C){var X,c,W;return(W=(X=this.zl)==null?void 0:(c=X.jRl)==null?void 0:c.call(X,D,C))!=null?W:Promise.resolve()};
var hGd=function(D,C){var X=D.fLG;D.fLG=function(){X();C()}},xG5=function(D,C){D.isDisposed()||(D.zl=C,D.iBe.update(C.dhl()),D.h3L.resolve(),D.gee.resolve(void 0),D.fLG())};
q$.prototype.handleError=function(D){if(!this.isDisposed()){this.oVE=D;this.h3L.resolve();var C,X;(X=(C=this.options).sno)==null||X.call(C,D)}};
var LCd=function(D,C){C&&(Promise.all(D.wIh).then(function(){return void C.dispose()}),D.wIh=[])},fW=function(D,C){D.dfE=C;
var X,c;(c=(X=D.options).qNd)==null||c.call(X,C)},sQ4=function(D){D.isDisposed()||(D.eDy.resolve(),D.eDy=new _.gL)},uLg=function(D,C,X,c,W,p){c=c===void 0?Agq():c;
W=W===void 0?Promise.resolve(void 0):W;var g,a,O,P,k,u,Q,B,K,L,t,Y;_.I(function(y){switch(y.nextAddress){case 1:return y.yield(0,3);case 3:a=null;if(!g){y.jumpTo(6);break}fW(D,7);_.KK(y,7);return y.yield(tR(g.snapshot({}),p.tVD,function(){return Promise.resolve("E:CTO")}),9);
case 9:a=y.yieldResult;_.SR(y,6);break;case 7:_.Eu(y),a="E:UCE";case 6:O=void 0,P=g?p.ktw:p.zow,k=new uc(P,p.wnj,p.f5m,p.tvg),u=1;case 10:if(!(u<=p.maxAttempts)){y.jumpTo(12);break}if(u===1){y.jumpTo(13);break}fW(D,0);D.uR=new dk(k.getValue(),p.cey,p.ljr);return y.yield(D.uR.promise,14);case 14:Q=y.yieldResult,D.uR=void 0,Q===1?(u=1,k.reset()):F5c(k);case 13:_.KK(y,15);B=void 0;if(X){B=X;y.jumpTo(17);break}fW(D,5);K=c.ykK;return y.yield(tR(mGM(C,K,a),p.f6r,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:B=y.yieldResult;case 17:return fW(D,3),y.yield(tR($Gk(c,B),p.eGG,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return fW(D,8),y.yield(W,20);case 20:return L=new _.M$({challenge:B,bHi:D.options.bHi,r2m:D.options.r2m}),y.yield(tR(L.tFL,p.kkJ,function(){return Promise.reject(Error("Ja"))}),21);
case 21:O=L;y.jumpTo(12);break;case 15:t=_.Eu(y),D.handleError(t),sQ4(D);case 11:u++;y.jumpTo(10);break;case 12:if(D.isDisposed()){y.jumpTo(5);break}O&&(X=void 0,LCd(D,g),g=O,xG5(D,O),sQ4(D));fW(D,2);D.uR=new dk(p.pcB,p.cey,p.ljr);D.isPaused&&D.uR.pause();return y.yield(D.uR.promise,22);case 22:D.uR=void 0;if(D.isDisposed()){y.jumpTo(5);break}y.jumpTo(3);break;case 5:(Y=g)==null||Y.dispose(),_.t_(y)}})};
q$.prototype.dhl=function(){return this.iBe.share()};
var QQc={pcB:432E5,cey:3E5,ljr:10,tVD:1E4,f6r:3E4,eGG:3E4,kkJ:6E4,zow:1E3,ktw:6E4,wnj:6E5,f5m:.25,tvg:2,maxAttempts:10},dk=function(D,C,X){var c=this;this.endTimeMs=0;this.avl=null;this.isPaused=!1;this.tick=function(){if(!c.isPaused){var W=c.endTimeMs-Date.now();W<=c.egz?(c.avl=null,c.resolver(0)):c.avl=setTimeout(c.tick,Math.min(W,c.cey))}};
this.cey=C;this.egz=X;this.promise=new Promise(function(W){c.resolver=W});
eGb(this,D)},eGb=function(D,C){D.endTimeMs=Date.now()+C;
D.tick()};
dk.prototype.pause=function(){this.isPaused||(this.isPaused=!0,bCf(this))};
dk.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var rgC=function(D){bCf(D);D.endTimeMs=0;D.isPaused=!1;D.resolver(1)},bCf=function(D){D.avl&&(clearTimeout(D.avl),D.avl=null)};
dk.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var Ezc,tqh=(Ezc=Math.imul)!=null?Ezc:function(D,C){return D*C|0},Nd=[196,
200,224,18],Rb=function(D,C,X){X=X===void 0?[]:X;this.maxItems=D;this.mk=C===void 0?0:C;this.dz=X},tq5=function(D){var C=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!C)return new Rb(D);var X=C.split(",");if(X.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rb(D);C=X.slice(1);C.length===1&&C[0]===""&&(C=[]);X=Number(X[0]);return isNaN(X)||X<0||X>C.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rb(D)):new Rb(D,X,C)};
Rb.prototype.serialize=function(){return String(this.mk)+","+this.dz.join()};
Rb.prototype.insert=function(D,C){var X=void 0;if(this.dz[this.mk]!==D){var c=this.dz.indexOf(D);c!==-1?(this.dz.splice(c,1),c<this.mk&&this.mk--,this.dz.splice(this.mk,0,D)):(X=this.dz[this.mk],this.dz[this.mk]=D)}this.mk=(this.mk+1)%this.maxItems;D=eGt("iU5q-!O9@$",this.serialize());X&&D&&C(X);return D};
var NT5=function(D,C){this.qAn=C;try{var X=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(c){X=!1}X&&(this.index=tq5(D))},YYx=function(D,C,X,c,W){var p=D.index?_.jL(D.qAn,function(){return nzJ(D.index,YY5(C),X,c,W)},"W"):"u";
D.qAn.obL(p)},ygd=function(D,C,X){var c=_.U(D.index?_.jL(D.qAn,function(){return wKF(YY5(C),X)},"R"):["u"]),W=c.next().value;
c=c.next().value;D.qAn.vbi(W);return c};var nzN={toString:function(D){var C=[],X=0;D-=-2147483648;C[X++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(D%52);for(D=Math.floor(D/52);D>0;)C[X++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(D%62),D=Math.floor(D/62);return C.join("")}};var ZCd=function(D){D=wK5(D);for(var C=2654435769,X=2654435769,c=314159265,W=D.length,p=W,g=0,a=function(){C-=X;C-=c;C^=c>>>13;X-=c;X-=C;X^=C<<8;c-=C;c-=X;c^=X>>>13;C-=X;C-=c;C^=c>>>12;X-=c;X-=C;X^=C<<16;c-=C;c-=X;c^=X>>>5;C-=X;C-=c;C^=c>>>3;X-=c;X-=C;X^=C<<10;c-=C;c-=X;c^=X>>>15};p>=12;p-=12,g+=12)C+=FCf(D,g),X+=FCf(D,g+4),c+=FCf(D,g+8),a();
c+=W;switch(p){case 11:c+=D[g+10]<<24;case 10:c+=D[g+9]<<16;case 9:c+=D[g+8]<<8;case 8:X+=D[g+7]<<24;case 7:X+=D[g+6]<<16;case 6:X+=D[g+5]<<8;case 5:X+=D[g+4];case 4:C+=D[g+3]<<24;case 3:C+=D[g+2]<<16;case 2:C+=D[g+1]<<8;case 1:C+=D[g]}a();return nzN.toString(c)},wK5=function(D){for(var C=[],X=0;X<D.length;X++)C.push(D.charCodeAt(X));
return C},FCf=function(D,C){return D[C]+(D[C+1]<<8)+(D[C+2]<<16)+(D[C+3]<<24)};var la=function(D){_.nF.call(this);this.yA=D;this.u9G=new _.gL};
_.h(la,_.nF);var GVf=function(D,C){var X=setTimeout(function(){D.u9G.resolve()},C);
D.addOnDisposeCallback(function(){return void clearTimeout(X)})};
la.prototype.mjn=function(D,C){var X=this.t6(D);C==null||C(X);return _.jL(this.yA,function(){return _.tP(X,2)},this.mdw)};
var Vq4=function(D,C,X,c){return _.jL(D.yA,function(){return X?D.mjn(C,c):D.t6(C,c)},D.urL)},TTx=function(D,C,X,c){la.call(this,D);
this.wwa=C;this.lkW=X;this.urL="m";this.mdw="x";this.fkJ=0;GVf(this,c)};
_.h(TTx,la);TTx.prototype.t6=function(D,C){var X=this;this.yA.eW(this.urL);++this.fkJ>=this.lkW&&this.u9G.resolve();var c=D();D=_.jL(this.yA,function(){return X.wwa(c)},"C");
if(D===void 0)throw new $1(17,"YNJ:Undefined");if(!(D instanceof Uint8Array))throw new $1(18,"ODM:Invalid");C==null||C(D);return D};
var HCg=function(D,C,X){la.call(this,D);this.kTn=C;this.urL="f";this.mdw="z";GVf(this,X)};
_.h(HCg,la);HCg.prototype.t6=function(){return this.kTn};
var Jgd=function(D,C,X){la.call(this,D);this.kkm=C;this.urL="w";this.mdw="z";GVf(this,X)};
_.h(Jgd,la);Jgd.prototype.t6=function(){var D=this;return _.jL(this.yA,function(){return _.Dk(D.kkm)},"d")};
Jgd.prototype.mjn=function(){return this.kkm};
var zGM=function(D,C){la.call(this,D);this.error=C;this.urL="e";this.mdw="y"};
_.h(zGM,la);var jQN=function(D,C){var X=(C(D.error.message)+":"+C(D.error.stack)).substring(0,2048);C=X.length+1;X=FCR(X);var c=new Uint8Array(4+X.length);c.set([42,C&127|128,C>>7,D.error.code]);c.set(X,4);return c};
zGM.prototype.t6=function(){if(this.nnm)return this.nnm;this.nnm=jQN(this,function(D){return"_"+ZCd(D)});
return jQN(this,function(D){return D})};
var Mq4=function(D,C,X){la.call(this,D);this.q2g=C;this.clientState=X;this.urL="S";this.mdw="q"};
_.h(Mq4,la);Mq4.prototype.t6=function(){var D=Math.floor(Date.now()/1E3),C=[Math.random()*255,Math.random()*255],X=C.concat([this.q2g&255,this.clientState],[D>>24&255,D>>16&255,D>>8&255,D&255]);D=new Uint8Array(2+X.length);D[0]=34;D[1]=X.length;D.set(X,2);X=D.subarray(2);for(var c=C=C.length;c<X.length;++c)X[c]^=X[c%C];this.yA.ioG(this.clientState);return D};var qYJ={l6g:3E4,i6I:2E4},Ds=function(D){_.nF.call(this);var C=this;this.joi=new _.gL;this.gjm=0;this.kk=void 0;this.state=2;this.vm=D.vm;this.tJ=D.tJ;this.rnw=Object.assign({},qYJ,D.rnw||{});this.t2=D.vm.dhl();var X;this.onError=(X=D.onError)!=null?X:function(){};
this.vr4=D.vr4||!1;if(ffC(D)){var c=this.vm;this.aad=function(){return KCk(c).catch(function(g){g=C.reportError(new $1(C.kG?20:32,"TRG:Disposed",g));C.kk=g;var a;(a=C.kG)==null||a.dispose();C.kG=void 0;C.joi.reject(g)})};
hGd(c,function(){return void dG5(C)});
c.dfE===2&&dG5(this)}else this.aad=D.yrI,dG5(this);var W=this.t2.share();W.eW("o");var p=new cge(W,"o");this.joi.promise.then(function(){p.done();W.h8();W.dispose()},function(){return void W.dispose()});
this.addOnDisposeCallback(function(){C.kG?(C.kG.dispose(),C.kG=void 0):C.kk?C.t2.h8():(C.kk=C.reportError(new $1(32,"TNP:Disposed")),C.t2.h8(),C.joi.reject(C.kk))});
_.hR(this,this.t2)};
_.h(Ds,_.nF);Ds.prototype.gpf=function(){return this.joi.promise};
var RGC=function(D,C){if(!(C instanceof $1))if(C instanceof _.Vg){var X=Error(C.toString());X.stack=C.stack;C=new $1(11,"EBH:Error",X)}else C=new $1(12,"BSO:Unknown",C);return D.reportError(C)},dG5=function(D){var C,X,c,W,p,g,a,O,P,k,u,Q,B,K,L;
return _.I(function(t){switch(t.nextAddress){case 1:C=void 0;D.gjm++;X=new _.gL;D.vm instanceof q$&&D.vm.wIh.push(X.promise);if(!D.vr4){t.jumpTo(2);break}c=new _.gL;setTimeout(function(){return void c.resolve()});
return t.yield(c.promise,2);case 2:return W=D.t2.share(),_.KK(t,4,5),D.state=5,p={},g=[],t.yield(tR(D.vm.snapshot({m1:p,cTj:g}),D.rnw.i6I,function(){return Promise.reject(new $1(15,"MDA:Timeout"))}),7);
case 7:a=t.yieldResult;if(D.isDisposed())throw new $1(D.kG?20:32,"MDA:Disposed");O=g[0];D.state=6;return t.yield(tR(lfg(D.tJ,a),D.rnw.l6g,function(){return Promise.reject(new $1(10,"BWB:Timeout"))}),8);
case 8:P=t.yieldResult;if(D.isDisposed())throw new $1(D.kG?20:32,"BWB:Disposed");D.state=7;C=_.jL(W,function(){var y=DXg(D,P,X,O);y.u9G.promise.then(function(){return void D.aad()});
return y},"i");
case 5:_.xF(t);W.dispose();_.es(t,6);break;case 4:k=_.Eu(t);(u=C)==null||u.dispose();if(!D.kk){Q=RGC(D,k);X.resolve();var Y;if(Y=D.vm instanceof q$&&D.gjm<2)a:if(k instanceof $1)Y=k.code!==32&&k.code!==20&&k.code!==10;else{if(k instanceof _.Vg)switch(k.code){case 2:case 13:case 14:case 4:break;default:Y=!1;break a}Y=!0}if(Y)return B=(1+Math.random()*.25)*(D.kG?6E4:1E3),K=setTimeout(function(){return void D.aad()},B),D.addOnDisposeCallback(function(){return void clearTimeout(K)}),t.return();
D.kk=Q}W.logError(D.kG?13:14);D.joi.reject(D.kk);return t.return();case 6:D.state=8,D.gjm=0,(L=D.kG)==null||L.dispose(),D.kG=C,D.joi.resolve(),_.t_(t)}})},DXg=function(D,C,X,c){var W=Nxb(C,2)*1E3;
if(W<=0)throw new $1(31,"TTM:Invalid");if(_.EG(C,4))return new Jgd(D.t2,_.EG(C,4),W);if(!Nxb(C,3))return new HCg(D.t2,vgd(_.bS(C,1)),W);if(!c)throw new $1(4,"PMD:Undefined");c=c(vgd(_.bS(C,1)));if(!(c instanceof Function))throw new $1(16,"APF:Failed");D.sdg=Math.floor((Date.now()+W)/1E3);D=new TTx(D.t2,c,Nxb(C,3),W);D.addOnDisposeCallback(function(){return void X.resolve()});
return D};
Ds.prototype.t6=function(D){return Clk(this,Object.assign({},D),!1)};
Ds.prototype.mjn=function(D){return Clk(this,Object.assign({},D),!0)};
Ds.prototype.eaG=function(D){if(D>150)return!1;try{return this.cache=new NT5(D,this.t2),!0}catch(C){return this.reportError(new $1(22,"GBJ:init",C)),!1}};
Ds.prototype.reportError=function(D){this.t2.logError(D.code);this.onError(D);return D};
var Xze=function(D,C){C=C instanceof $1?C:new $1(5,"TVD:error",C);return D.reportError(C)},Clk=function(D,C,X){try{if(D.isDisposed())throw new $1(21,"BNT:disposed");
if(!D.kG&&D.kk)throw D.kk;var c,W;return(W=(c=cCJ(D,C,X))!=null?c:ohN(D,C,X))!=null?W:WI4(D,C,X)}catch(p){if(!C.ccQ)throw Xze(D,p);return pze(D,X,p)}},cCJ=function(D,C,X){var c;
return(c=D.kG)==null?void 0:Vq4(c,function(){return SHf(D,C)},X,function(W){var p;
if(D.kG instanceof TTx&&((p=C.lQ)==null?0:p.ycj))try{var g;(g=D.cache)==null||YYx(g,SHf(D,C),W,C.lQ.eJe,D.sdg-120)}catch(a){D.reportError(new $1(24,"ELX:write",a))}})},ohN=function(D,C,X){var c;
if((c=C.lQ)!=null&&c.rXa)try{var W,p=(W=D.cache)==null?void 0:ygd(W,SHf(D,C),C.lQ.eJe);return p?X?_.jL(D.t2,function(){return _.tP(p,2)},"a"):p:void 0}catch(g){D.reportError(new $1(23,"RXO:read",g))}},WI4=function(D,C,X){var c={stack:[],
error:void 0,hasError:!1};try{if(!C.dZm)throw new $1(29,"SDF:notready");return Vq4(kJf(c,new Mq4(D.t2,0,D.state)),function(){return SHf(D,C)},X)}catch(W){c.error=W,c.hasError=!0}finally{udM(c)}},pze=function(D,C,X){var c={stack:[],
error:void 0,hasError:!1};try{var W=Xze(D,X);return Vq4(kJf(c,new zGM(D.t2,W)),function(){return[]},C)}catch(p){c.error=p,c.hasError=!0}finally{udM(c)}},SHf=function(D,C){return C.fcn?C.fcn:C.m1?_.jL(D.t2,function(){return C.fcn=FCR(C.m1)},"c"):[]},ffC=function(D){return wx(function(C){if(!xU(C))return!1;
for(var X=_.U(Object.entries(D)),c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;if(!(c in C)){if(W.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!W(C[c]))return!1}return!0})}({vm:function(D){return wx(function(C){return C instanceof D})}(q$)},"");var UXM=function(){var D=_.Wl();this.JSC$10079_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",$T("cookie_enabled"),$T("cookie_3p_enabled"),_.ic("browser"))};
UXM.prototype.increment=function(D,C,X){this.JSC$10079_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",D,C,X)};
var XYd=function(){var D=_.Wl();this.JSC$10103_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",vI("tick"),$T("from_st_cookie"))};
XYd.prototype.increment=function(D,C){this.JSC$10103_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",D,C)};
var ghM=function(){var D=_.Wl();this.JSC$10109_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ic("status"))};
ghM.prototype.increment=function(D){this.JSC$10109_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",D)};
var ai4=function(){var D=_.Wl();this.JSC$10112_streamzService=D;D.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ic("stage"),$T("is_using_ytd_player"),$T("has_expandable_tiles"))};
ai4.prototype.increment=function(D,C,X){this.JSC$10112_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",D,C,X)};
var IiN=function(){var D=_.Wl();this.JSC$10115_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/response_signature",_.ic("check_status"))};
IiN.prototype.increment=function(D){this.JSC$10115_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/web/response_signature",D)};
var Oqb=function(){var D=_.Wl();this.JSC$10118_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ic("sig"),vI("de"))};
Oqb.prototype.increment=function(D,C){this.JSC$10118_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/web/e_sig_log",D,C)};
var ACC=function(){var D=_.Wl();this.JSC$10121_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ic("sig"),vI("de"))};
ACC.prototype.increment=function(D,C){this.JSC$10121_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/web/e_sig_en",D,C)};
_.PlN=function(){var D=_.Wl();this.JSC$10124_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ic("action"))};
_.PlN.prototype.increment=function(D){this.JSC$10124_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/web/enforcement_intent",D)};var CV=window;var $Xk=(new Date).getTime();_.ZI.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.ZI.createSet("action","cite","data","formaction","href","manifest","poster","src");var vhN=function(D){this.servicePromise_=D;D.then((0,_.wo)(function(){},this),function(){},this)},iq5=function(D,C,X){D.servicePromise_.then(function(c){var W=c[C];
if(!W)throw Error("Ka`"+C);return W.apply(c,X)})},QpC=function(D,C,X){for(var c=Array(arguments.length-2),W=2;W<arguments.length;W++)c[W-2]=arguments[W];
W=kb5(D,C).then(function(p){return p.apply(null,c)},function(p){p=Error("La`"+C+"`"+D+"`"+p,{cause:p});
delete usJ[C];return _.x7(p)});
return new vhN(W)},usJ={},kb5=function(D,C){var X=usJ[C];
if(X)return X;X=(X=_.Df(C))?_.WE(X):(new _.mM(function(c,W){var p=(new yM(document)).createElement("SCRIPT");p.async=!0;_.gH(p,_.t2(Ap5(D)));p.onload=p.onreadystatechange=function(){p.readyState&&p.readyState!="loaded"&&p.readyState!="complete"||c()};
p.onerror=function(g){W(Error("Ma`"+C+"`"+D,{cause:g}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(p)})).then(function(){var c=_.Df(C);
if(!c)throw Error("Na`"+C+"`"+D);return c});
return usJ[C]=X};var BD5={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},rCJ=function(){var D=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ZCm(function(){return _.I(function(C){if(C.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?C.return(Promise.resolve()):C.yield(bqC(D),2);D.rsaForList.length>
0&&document.addEventListener("click",D.requestAccessForHelpPanel);_.t_(C)})});
this.requestAccessForHelpPanel=function(){if(!(D.rsaForPromises.length>0)){for(var C=_.U(D.rsaForList),X=C.next();!X.done;X=C.next()){X=X.value;try{D.rsaForPromises.push(document.requestStorageAccessFor(X))}catch(c){}}Promise.all(D.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){D.reset()})}}};
rCJ.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var bqC=function(D){var C,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:C=_.U(Object.values(BD5)),X=C.next();case 2:if(X.done){p.jumpTo(0);break}c=X.value;_.KK(p,5);return p.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:c}),7);case 7:W=p.yieldResult;W.state!=="granted"&&D.rsaForList.push(c);_.SR(p,3);break;case 5:_.Eu(p);p.jumpTo(0);break;case 3:X=C.next(),p.jumpTo(2)}})};(new rCJ).initialize();var KIk=function(D){this.JSC$10138_loader_=D};
KIk.prototype.startHelp=function(D){iq5(this.JSC$10138_loader_,"startHelp",arguments)};
KIk.prototype.JSC$10140_loadChatSupport=function(D){iq5(this.JSC$10138_loader_,"loadChatSupport",arguments)};
var xXq=function(D,C){C=C||{};D=QpC(hxd,"help.service.Lazy.create",D,{apiKey:C.apiKey||C.apiKey,asxUiUri:C.asxUiUri||C.asxUiUri,environment:C.environment||C.environment,flow:C.flow||C.flow,frdProductData:C.frdProductData||C.frdProductData,frdProductDataSerializedJspb:C.frdProductDataSerializedJspb||C.frdProductDataSerializedJspb,helpCenterPath:C.helpCenterPath||C.helpCenterPath,locale:C.locale||C.locale||"en-US".replace(/-/g,"_"),nonce:C.nonce||C.nonce,productData:C.productData||C.productData,receiverUri:C.receiverUri||
C.receiverUri,renderApiUri:C.renderApiUri||C.renderApiUri,theme:C.theme||C.theme,window:C.window||C.window});return new KIk(D)},hxd=new Ri(qIm,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var LIq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(LIq,_.aH);var spC=_.rj(LIq);var mXN=[0,_.XD,fR,rPe];_.exb=new function(D,C,X,c){this.configType=D;this.flagName=X;this.defaultValue=c;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 tRN=function(){this.retriever=_.iX().resolve(Eh4)};_.R9={get payments(){return window.payments}};Vq3(Node);Vq3(Element);var NDJ=Vq3(HTMLElement);Vq3(SVGElement);var YHf,yCe,oJ,nhC;YHf=function(D){return typeof D.className=="string"?D.className:D.getAttribute&&D.getAttribute("class")||""};
yCe=function(D){return D.classList?D.classList:YHf(D).match(/\S+/g)||[]};
_.X9=function(D,C){typeof D.className=="string"?D.className=C:D.setAttribute&&D.setAttribute("class",C)};
_.cP=function(D,C){return D.classList?D.classList.contains(C):_.Zn(yCe(D),C)};
_.q_=function(D,C){if(D.classList)D.classList.add(C);else if(!_.cP(D,C)){var X=YHf(D);_.X9(D,X+(X.length>0?" "+C:C))}};
oJ=function(D,C){if(D.classList)Array.prototype.forEach.call(C,function(W){_.q_(D,W)});
else{var X={};Array.prototype.forEach.call(yCe(D),function(W){X[W]=!0});
Array.prototype.forEach.call(C,function(W){X[W]=!0});
C="";for(var c in X)C+=C.length>0?" "+c:c;_.X9(D,C)}};
_.j6=function(D,C){D.classList?D.classList.remove(C):_.cP(D,C)&&_.X9(D,Array.prototype.filter.call(yCe(D),function(X){return X!=C}).join(" "))};
nhC=function(D,C){D.classList?Array.prototype.forEach.call(C,function(X){_.j6(D,X)}):_.X9(D,Array.prototype.filter.call(yCe(D),function(X){return!_.Zn(C,X)}).join(" "))};var wzx=function(D){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=D.document},Gbc=function(D,C){FIk(D);
var X=document.createElement("div"),c;(c=C.parentNode)==null||c.insertBefore(X,C);X.tabIndex=0;X.id="fc-focus-trap-pre-div";X=document.createElement("div");var W;(W=C.parentNode)==null||W.insertBefore(X,C.nextSibling);X.tabIndex=0;X.id="fc-focus-trap-post-div";var p=ZqJ(D,C),g=ZqJ(D,C,!0);p&&g&&(D.focusChangeHandler=function(){var a=D.document.activeElement;if(a)if(_.lc(C,a))D.previouslyFocusedElement=a;else if(a===D.document.activeElement)switch(D.previouslyFocusedElement){case p:g.focus();D.previouslyFocusedElement=
g;break;default:p.focus(),D.previouslyFocusedElement=p}},D.document.addEventListener("focus",D.focusChangeHandler,!0),D.document.addEventListener("focusin",D.focusChangeHandler))},FIk=function(D){D.focusChangeHandler&&(document.removeEventListener("focus",D.focusChangeHandler,!0),document.removeEventListener("focusin",D.focusChangeHandler),D.focusChangeHandler=null);
var C;(C=document.getElementById("fc-focus-trap-pre-div"))==null||C.remove();var X;(X=document.getElementById("fc-focus-trap-post-div"))==null||X.remove()},VR5=function(D,C,X,c,W){X=X===void 0?!0:X;
var p;W=(p=W===void 0?null:W)!=null?p:ZqJ(D,C,c===void 0?!1:c);W!==null&&(W.focus(),X&&Gbc(D,C))};
wzx.prototype.disableButton=function(D,C){C=C===void 0?null:C;D.disabled=!0;C&&_.q_(D,C)};
var ZqJ=function(D,C,X){X=X===void 0?!1:X;if(AvF(C)&&!X)return C;var c=X?[].slice.call(C.children,0).reverse():C.children;c=_.U(c);for(var W=c.next();!W.done;W=c.next())if(W=W.value,NDJ(W)&&(W=ZqJ(D,W,X)))return W;return AvF(C)&&X?C:null};var TDk=function(D){this.originalBodyOverflow="";this.JSC$10165_domHelper=tp(D);var C;this.isScrollingEnabled=((C=this.JSC$10165_domHelper.JSC$9491_document_.body)==null?void 0:C.style.overflow)!=="hidden"};
TDk.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10165_domHelper.JSC$9491_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.WT(_.FJ,_.nF);_.S=_.FJ.prototype;_.S.JSC$10168_id_=0;_.S.disposeInternal=function(){_.FJ.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10166_listener_;delete this.handler_};
_.S.start=function(D){this.stop();this.JSC$10168_id_=Gg(this.callback_,D!==void 0?D:this.JSC$10166_interval_)};
_.S.stop=function(){this.isActive()&&_.co.clearTimeout(this.JSC$10168_id_);this.JSC$10168_id_=0};
_.S.fire=function(){this.stop();this.JSC$10168_doAction_()};
_.S.isActive=function(){return this.JSC$10168_id_!=0};
_.S.JSC$10168_doAction_=function(){this.JSC$10168_id_=0;this.JSC$10166_listener_&&this.JSC$10166_listener_.call(this.handler_)};_.bQ=function(D){_.nF.call(this);this.handler_=D;this.JSC$10169_keys_={}};
_.WT(_.bQ,_.nF);var Hqe=[];_.bQ.prototype.listen=function(D,C,X,c){Array.isArray(C)||(C&&(Hqe[0]=C.toString()),C=Hqe);for(var W=0;W<C.length;W++){var p=_.Kb(D,C[W],X||this.handleEvent,c||!1,this.handler_||this);if(!p)break;this.JSC$10169_keys_[p.key]=p}return this};
_.bQ.prototype.listenOnce=function(D,C,X,c){return JCe(this,D,C,X,c)};
var JCe=function(D,C,X,c,W,p){if(Array.isArray(X))for(var g=0;g<X.length;g++)JCe(D,C,X[g],c,W,p);else{C=QK(C,X,c||D.handleEvent,W,p||D.handler_||D);if(!C)return D;D.JSC$10169_keys_[C.key]=C}return D};
_.bQ.prototype.unlisten=function(D,C,X,c,W){if(Array.isArray(C))for(var p=0;p<C.length;p++)this.unlisten(D,C[p],X,c,W);else if(D=O7k(D,C,X||this.handleEvent,_.MR(c)?!!c.capture:!!c,W||this.handler_||this))Bc(D),delete this.JSC$10169_keys_[D.key];return this};
_.bQ.prototype.removeAll=function(){_.ZI.forEach(this.JSC$10169_keys_,function(D,C){this.JSC$10169_keys_.hasOwnProperty(C)&&Bc(D)},this);
this.JSC$10169_keys_={}};
_.bQ.prototype.disposeInternal=function(){_.bQ.superClass_.disposeInternal.call(this);this.removeAll()};
_.bQ.prototype.handleEvent=function(){throw Error("Oa");};var WP=function(){_.nF.call(this);this.services_={}};
_.WT(WP,_.nF);WP.prototype.connect=function(D){D&&D()};
WP.prototype.isConnected=function(){return!0};
WP.prototype.registerService=function(D,C,X){this.services_[D]={callback:C,objectPayload:!!X}};
WP.prototype.getService=function(D,C){var X=this.services_[D];return X?X:this.defaultService_?{callback:_.AZ(this.defaultService_,D),objectPayload:_.MR(C)}:null};
var zxJ=function(D,C){if(C&&typeof D==="string")try{return JSON.parse(D)}catch(X){return null}else if(!C&&typeof D!=="string")return(0,_.Tg)(D);return D};
WP.prototype.disposeInternal=function(){WP.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 pV=function(D,C){this.sequence_=[];this.onCancelFunction_=D;this.defaultScope_=C||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
pV.prototype.cancel=function(D){if(this.fired_)this.result_ instanceof pV&&this.result_.cancel();else{if(this.parent_){var C=this.parent_;delete this.parent_;D?C.cancel(D):(C.branches_--,C.branches_<=0&&C.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new SP(this))}};
pV.prototype.continue_=function(D,C){this.blocked_=!1;jpc(this,D,C)};
var jpc=function(D,C,X){D.fired_=!0;D.result_=X;D.hadError_=!C;MR5(D)},fib=function(D){if(D.fired_){if(!D.silentlyCanceled_)throw new qHk(D);
D.silentlyCanceled_=!1}};
pV.prototype.callback=function(D){fib(this);jpc(this,!0,D)};
pV.prototype.errback=function(D){fib(this);jpc(this,!1,D)};
var dX4=function(D,C,X){U9(D,C,null,X)};
pV.prototype.finally=function(D){var C=this;return Rx5(new Promise(function(X,c){U9(C,function(W){D();X(W)},function(W){D();
c(W)})}))};
var U9=function(D,C,X,c){var W=D.fired_;W||(C===X?C=X=nW(C):(C=nW(C),X=nW(X)));D.sequence_.push([C,X,c]);W&&MR5(D)};
pV.prototype.then=function(D,C,X){var c,W,p=new _.mM(function(g,a){W=g;c=a});
U9(this,W,function(g){g instanceof SP?p.cancel():c(g);return liM},this);
return p.then(D,C,X)};
Qef(pV);var DNk=function(D,C){C instanceof pV?dX4(D,(0,_.wo)(C.branch,C)):dX4(D,function(){return C})};
pV.prototype.branch=function(D){var C=new pV;U9(this,C.callback,C.errback,C);D&&(C.parent_=this,this.branches_++);return C};
pV.prototype.isError=function(D){return D instanceof Error};
var CwC=function(D){return gO(D.sequence_,function(C){return typeof C[1]==="function"})},liM={},MR5=function(D){if(D.unhandledErrorId_&&D.fired_&&CwC(D)){var C=D.unhandledErrorId_,X=XLJ[C];
X&&(_.co.clearTimeout(X.JSC$10186_id_),delete XLJ[C]);D.unhandledErrorId_=0}D.parent_&&(D.parent_.branches_--,delete D.parent_);C=D.result_;for(var c=X=!1;D.sequence_.length&&!D.blocked_;){var W=D.sequence_.shift(),p=W[0],g=W[1];W=W[2];if(p=D.hadError_?g:p)try{var a=p.call(W||D.defaultScope_,C);a===liM&&(a=void 0);a!==void 0&&(D.hadError_=D.hadError_&&(a==C||D.isError(a)),D.result_=C=a);if(Bqx(C)||typeof _.co.Promise==="function"&&C instanceof _.co.Promise)c=!0,D.blocked_=!0}catch(O){C=O,D.hadError_=
!0,CwC(D)||(X=!0)}}D.result_=C;c&&(a=(0,_.wo)(D.continue_,D,!0),c=(0,_.wo)(D.continue_,D,!1),C instanceof pV?(U9(C,a,c),C.blocking_=!0):C.then(a,c));X&&(C=new cYf(C),XLJ[C.JSC$10186_id_]=C,D.unhandledErrorId_=C.JSC$10186_id_)},Rx5=function(D){var C=new pV;
D.then(function(X){C.callback(X)},function(X){C.errback(X)});
return C},qHk=function(){_.Dn.call(this)};
_.WT(qHk,_.Dn);qHk.prototype.message="Deferred has already fired";qHk.prototype.name="AlreadyCalledError";var SP=function(){_.Dn.call(this)};
_.WT(SP,_.Dn);SP.prototype.message="Deferred was canceled";SP.prototype.name="CanceledError";var cYf=function(D){this.JSC$10186_id_=_.co.setTimeout((0,_.wo)(this.throwError,this),0);this.JSC$10186_error_=D};
cYf.prototype.throwError=function(){delete XLJ[this.JSC$10186_id_];throw this.JSC$10186_error_;};
var XLJ={};var old={1:"NativeMessagingTransport"},WMM=["pu","lru","pru","lpu","ppu"],SUq=function(){for(var D=10,C=pL5,X=C.length,c="";D-- >0;)c+=C.charAt(Math.floor(Math.random()*X));return c},pL5="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var gt=function(D){_.nF.call(this);this.JSC$10189_domHelper_=D||tp()};
_.WT(gt,_.nF);gt.prototype.transportType=0;gt.prototype.getWindow=function(){return this.JSC$10189_domHelper_.getWindow()};
gt.prototype.getName=function(){return old[String(this.transportType)]||""};var aJ=function(D,C,X,c,W){gt.call(this,X);this.JSC$10192_channel_=D;this.protocolVersion_=W||2;this.peerHostname_=C||"*";this.JSC$10192_eventHandler_=new _.bQ(this);this.maybeAttemptToConnectTimer_=new _.BH(100,this.getWindow());this.oneSidedHandshake_=!!c;this.setupAckReceived_=new pV;this.setupAckSent_=new pV;this.JSC$10192_connected_=new pV;this.endpointId_=SUq();this.peerEndpointId_=null;this.oneSidedHandshake_?UNe(this.JSC$10192_channel_)==1?DNk(this.JSC$10192_connected_,this.setupAckReceived_):
DNk(this.JSC$10192_connected_,this.setupAckSent_):(DNk(this.JSC$10192_connected_,this.setupAckReceived_),this.protocolVersion_==2&&DNk(this.JSC$10192_connected_,this.setupAckSent_));dX4(this.JSC$10192_connected_,this.notifyConnected_,this);this.JSC$10192_connected_.callback(!0);this.JSC$10192_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.WT(aJ,gt);aJ.prototype.peerProtocolVersion_=null;aJ.prototype.initialized_=!1;aJ.prototype.transportType=1;var gle={};aJ.prototype.sendTimerId_=0;
var OQq=function(D){var C=D.event_.data;if(typeof C!=="string")return!1;var X=C.indexOf("|"),c=C.indexOf(":");if(X==-1||c==-1)return!1;var W=C.substring(0,X);X=C.substring(X+1,c);C=C.substring(c+1);if(c=IJ[W])return c.xpcDeliver(X,C,D.event_.origin),!0;c=aoC(C)[0];for(var p in IJ){var g=IJ[p];if(UNe(g)==1&&!g.isConnected()&&X=="tp"&&(c=="SETUP"||c=="SETUP_NTPV2")&&IoN(g,D.event_.origin))return delete IJ[g.name],g.name=W,IJ[W]=g,g.xpcDeliver(X,C),!0}return!1},AYb=function(D){D.protocolVersion_!=2||
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||D.send("tp","SETUP_NTPV2,"+D.endpointId_);
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||D.send("tp","SETUP")},Pwb=function(D,C){if(D.protocolVersion_!=2||D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||C!=2){if(D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||C!=1)return;
D.send("tp","SETUP_ACK")}else D.send("tp","SETUP_ACK_NTPV2");D.setupAckSent_.fired_||D.setupAckSent_.callback(!0)},$N5=function(D,C){C>D.peerProtocolVersion_&&(D.peerProtocolVersion_=C);
D.peerProtocolVersion_==1&&(D.setupAckSent_.fired_||D.oneSidedHandshake_||D.setupAckSent_.callback(!0),D.peerEndpointId_=null)};
_.S=aJ.prototype;_.S.connect=function(){var D=this.getWindow(),C=_.fh(D),X=gle[C];typeof X!=="number"&&(X=0);X==0&&_.Kb(D.postMessage?D:D.document,"message",OQq,!1,aJ);gle[C]=X+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.S.maybeAttemptToConnect_=function(){var D=UNe(this.JSC$10192_channel_)==0;this.oneSidedHandshake_&&D||this.JSC$10192_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),AYb(this))};
_.S.send=function(D,C){var X=this.JSC$10192_channel_.peerWindowObject_;X&&(this.send=function(c,W){var p=this,g=this.JSC$10192_channel_.name;this.sendTimerId_=Gg(function(){p.sendTimerId_=0;try{var a=X.postMessage?X:X.document;a.postMessage&&a.postMessage(g+"|"+c+":"+W,p.peerHostname_)}catch(O){}},0)},this.send(D,C))};
_.S.notifyConnected_=function(){var D=this.JSC$10192_channel_,C=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;D.isConnected()||D.connectionDelay_&&D.connectionDelay_.isActive()||(D.state_=2,_.Ue(D.connectionDelay_),C!==void 0?(D.connectionDelay_=new _.FJ(D.connectCb_,C),D.connectionDelay_.start()):(D.connectionDelay_=null,D.connectCb_()))};
_.S.disposeInternal=function(){if(this.initialized_){var D=this.getWindow(),C=_.fh(D),X=gle[C];gle[C]=X-1;X==1&&_.Y1(D.postMessage?D:D.document,"message",OQq,!1,aJ)}this.sendTimerId_&&(_.co.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Ue(this.JSC$10192_eventHandler_);delete this.JSC$10192_eventHandler_;_.Ue(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10192_connected_.cancel();delete this.JSC$10192_connected_;delete this.send;aJ.superClass_.disposeInternal.call(this)};
var aoC=function(D){D=D.split(",");D[1]=D[1]||null;return D};var iQg;_.O9=function(D){if(D.getValues&&typeof D.getValues=="function")return D.getValues();if(typeof Map!=="undefined"&&D instanceof Map||typeof Set!=="undefined"&&D instanceof Set)return Array.from(D.values());if(typeof D==="string")return D.split("");if(_.JW(D)){for(var C=[],X=D.length,c=0;c<X;c++)C.push(D[c]);return C}return _.ZI.getValues(D)};
_.vlx=function(D){if(D.getKeys&&typeof D.getKeys=="function")return D.getKeys();if(!D.getValues||typeof D.getValues!="function"){if(typeof Map!=="undefined"&&D instanceof Map)return Array.from(D.keys());if(!(typeof Set!=="undefined"&&D instanceof Set)){if(_.JW(D)||typeof D==="string"){var C=[];D=D.length;for(var X=0;X<D;X++)C.push(X);return C}return _.ZI.getKeys(D)}}};
iQg=function(D,C,X){if(D.forEach&&typeof D.forEach=="function")D.forEach(C,X);else if(_.JW(D)||typeof D==="string")Array.prototype.forEach.call(D,C,X);else for(var c=_.vlx(D),W=_.O9(D),p=W.length,g=0;g<p;g++)C.call(X,W[g],c&&c[g],D)};var I$m,uF,BP,KMd,kub,Qig,u3b,rYx,BOx;
_.H7=function(D,C){this.JSC$10197_domain_=this.userInfo_=this.scheme_="";this.JSC$10197_port_=null;this.fragment_=this.JSC$10197_path_="";this.JSC$10197_ignoreCase_=!1;var X;D instanceof _.H7?(this.JSC$10197_ignoreCase_=C!==void 0?C:D.JSC$10197_ignoreCase_,_.As(this,D.scheme_),this.userInfo_=D.userInfo_,_.PP(this,D.JSC$10197_domain_),_.$x(this,D.JSC$10197_port_),_.vP(this,D.getPath()),_.iF(this,D.JSC$10197_queryData_.clone()),_.kx(this,D.fragment_)):D&&(X=_.IQ(String(D)))?(this.JSC$10197_ignoreCase_=
!!C,_.As(this,X[1]||"",!0),this.userInfo_=uF(X[2]||""),_.PP(this,X[3]||"",!0),_.$x(this,X[4]),_.vP(this,X[5]||"",!0),_.iF(this,X[6]||"",!0),_.kx(this,X[7]||"",!0)):(this.JSC$10197_ignoreCase_=!!C,this.JSC$10197_queryData_=new _.Qh(null,this.JSC$10197_ignoreCase_))};
_.H7.prototype.toString=function(){var D=[],C=this.scheme_;C&&D.push(BP(C,kub,!0),":");var X=this.JSC$10197_domain_;if(X||C=="file")D.push("//"),(C=this.userInfo_)&&D.push(BP(C,kub,!0),"@"),D.push(_.WK(X).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),X=this.JSC$10197_port_,X!=null&&D.push(":",String(X));if(X=this.getPath())this.JSC$10197_domain_&&X.charAt(0)!="/"&&D.push("/"),D.push(BP(X,X.charAt(0)=="/"?u3b:Qig,!0));(X=this.JSC$10197_queryData_.toString())&&D.push("?",X);(X=this.fragment_)&&D.push("#",
BP(X,BOx));return D.join("")};
_.H7.prototype.resolve=function(D){var C=this.clone(),X=!!D.scheme_;X?_.As(C,D.scheme_):X=!!D.userInfo_;X?C.userInfo_=D.userInfo_:X=!!D.JSC$10197_domain_;X?_.PP(C,D.JSC$10197_domain_):X=D.JSC$10197_port_!=null;var c=D.getPath();if(X)_.$x(C,D.JSC$10197_port_);else if(X=!!D.JSC$10197_path_){if(c.charAt(0)!="/")if(this.JSC$10197_domain_&&!this.JSC$10197_path_)c="/"+c;else{var W=C.getPath().lastIndexOf("/");W!=-1&&(c=C.getPath().slice(0,W+1)+c)}W=c;if(W==".."||W==".")c="";else if(_.am(W,"./")||_.am(W,
"/.")){c=_.Wo(W,"/");W=W.split("/");for(var p=[],g=0;g<W.length;){var a=W[g++];a=="."?c&&g==W.length&&p.push(""):a==".."?((p.length>1||p.length==1&&p[0]!="")&&p.pop(),c&&g==W.length&&p.push("")):(p.push(a),c=!0)}c=p.join("/")}else c=W}X?_.vP(C,c):X=D.JSC$10197_queryData_.toString()!=="";X?_.iF(C,D.JSC$10197_queryData_.clone()):X=!!D.fragment_;X&&_.kx(C,D.fragment_);return C};
_.H7.prototype.clone=function(){return new _.H7(this)};
_.As=function(D,C,X){D.scheme_=X?uF(C,!0):C;D.scheme_&&(D.scheme_=D.scheme_.replace(/:$/,""));return D};
_.PP=function(D,C,X){D.JSC$10197_domain_=X?uF(C,!0):C;return D};
_.$x=function(D,C){if(C){C=Number(C);if(isNaN(C)||C<0)throw Error("Pa`"+C);D.JSC$10197_port_=C}else D.JSC$10197_port_=null;return D};
_.H7.prototype.getPath=function(){return this.JSC$10197_path_};
_.vP=function(D,C,X){D.JSC$10197_path_=X?uF(C,!0):C;return D};
_.iF=function(D,C,X){C instanceof _.Qh?(D.JSC$10197_queryData_=C,bQf(D.JSC$10197_queryData_,D.JSC$10197_ignoreCase_)):(X||(C=BP(C,rYx)),D.JSC$10197_queryData_=new _.Qh(C,D.JSC$10197_ignoreCase_));return D};
_.oA=function(D,C,X){D.JSC$10197_queryData_.set(C,X);return D};
_.ce=function(D,C){return D.JSC$10197_queryData_.get(C)};
_.kx=function(D,C,X){D.fragment_=X?uF(C):C;return D};
_.bF=function(D){_.oA(D,"zx",Ci());return D};
_.Xg=function(D,C){return D instanceof _.H7?D.clone():new _.H7(D,C)};
I$m=function(D,C){D instanceof _.H7||(D=_.Xg(D));C instanceof _.H7||(C=_.Xg(C));return D.resolve(C)};
uF=function(D,C){return D?C?decodeURI(D.replace(/%25/g,"%2525")):decodeURIComponent(D):""};
BP=function(D,C,X){return typeof D==="string"?(D=encodeURI(D).replace(C,KMd),X&&(D=D.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D):null};
KMd=function(D){D=D.charCodeAt(0);return"%"+(D>>4&15).toString(16)+(D&15).toString(16)};
kub=/[#\/\?@]/g;Qig=/[#\?:]/g;u3b=/[#\?]/g;rYx=/[#\?@]/g;BOx=/#/g;_.Qh=function(D,C){this.count_=this.keyMap_=null;this.encodedQuery_=D||null;this.JSC$10198_ignoreCase_=!!C};
_.rt=function(D){D.keyMap_||(D.keyMap_=new Map,D.count_=0,D.encodedQuery_&&a1C(D.encodedQuery_,function(C,X){D.add($z(C),X)}))};
_.S=_.Qh.prototype;_.S.getCount=function(){_.rt(this);return this.count_};
_.S.add=function(D,C){_.rt(this);this.encodedQuery_=null;D=KV(this,D);var X=this.keyMap_.get(D);X||this.keyMap_.set(D,X=[]);X.push(C);this.count_+=1;return this};
_.S.remove=function(D){_.rt(this);D=KV(this,D);return this.keyMap_.has(D)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(D).length,this.keyMap_.delete(D)):!1};
_.S.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.S.isEmpty=function(){_.rt(this);return this.count_==0};
_.S.containsKey=function(D){_.rt(this);D=KV(this,D);return this.keyMap_.has(D)};
_.S.containsValue=function(D){var C=this.getValues();return _.Zn(C,D)};
_.S.forEach=function(D,C){_.rt(this);this.keyMap_.forEach(function(X,c){X.forEach(function(W){D.call(C,W,c,this)},this)},this)};
_.S.getKeys=function(){_.rt(this);for(var D=Array.from(this.keyMap_.values()),C=Array.from(this.keyMap_.keys()),X=[],c=0;c<C.length;c++)for(var W=D[c],p=0;p<W.length;p++)X.push(C[c]);return X};
_.S.getValues=function(D){_.rt(this);var C=[];if(typeof D==="string")this.containsKey(D)&&(C=C.concat(this.keyMap_.get(KV(this,D))));else{D=Array.from(this.keyMap_.values());for(var X=0;X<D.length;X++)C=C.concat(D[X])}return C};
_.S.set=function(D,C){_.rt(this);this.encodedQuery_=null;D=KV(this,D);this.containsKey(D)&&(this.count_-=this.keyMap_.get(D).length);this.keyMap_.set(D,[C]);this.count_+=1;return this};
_.S.get=function(D,C){if(!D)return C;D=this.getValues(D);return D.length>0?String(D[0]):C};
_.had=function(D,C,X){D.remove(C);X.length>0&&(D.encodedQuery_=null,D.keyMap_.set(KV(D,C),_.Ho(X)),D.count_+=X.length)};
_.Qh.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var D=[],C=Array.from(this.keyMap_.keys()),X=0;X<C.length;X++){var c=C[X],W=_.WK(c);c=this.getValues(c);for(var p=0;p<c.length;p++){var g=W;c[p]!==""&&(g+="="+_.WK(c[p]));D.push(g)}}return this.encodedQuery_=D.join("&")};
_.Qh.prototype.clone=function(){var D=new _.Qh;D.encodedQuery_=this.encodedQuery_;this.keyMap_&&(D.keyMap_=new Map(this.keyMap_),D.count_=this.count_);return D};
var KV=function(D,C){C=String(C);D.JSC$10198_ignoreCase_&&(C=C.toLowerCase());return C},bQf=function(D,C){C&&!D.JSC$10198_ignoreCase_&&(_.rt(D),D.encodedQuery_=null,D.keyMap_.forEach(function(X,c){var W=c.toLowerCase();
c!=W&&(this.remove(c),_.had(this,W,X))},D));
D.JSC$10198_ignoreCase_=C};
_.Qh.prototype.extend=function(D){for(var C=0;C<arguments.length;C++)iQg(arguments[C],function(X,c){this.add(c,X)},this)};var hs=function(D,C){WP.call(this);for(var X=0,c;c=WMM[X];X++)if(c in D&&!/^https?:\/\//.test(D[c]))throw Error("Ra`"+D[c]+"`"+c);this.cfg_=D;this.name=this.cfg_.cn||SUq();this.JSC$10193_domHelper_=C||tp();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.bQ(this);D.lpu=D.lpu||Udq(this.JSC$10193_domHelper_.getWindow().location.href)+"/robots.txt";D.ppu=D.ppu||Udq(D.pu||"")+"/robots.txt";IJ[this.name]=this;O7k(window,"unload",xN5)||QK(window,"unload",xN5)};
_.WT(hs,WP);var LMd=RegExp("^%*tp$"),six=RegExp("^%+tp$");_.S=hs.prototype;_.S.connectionDelay_=null;_.S.peerWindowDeferred_=null;_.S.transport_=null;_.S.state_=1;_.S.isConnected=function(){return this.state_==2};
_.S.peerWindowObject_=null;_.S.iframeElement_=null;_.S.getConfig=function(){return this.cfg_};
_.S.connect=function(D){this.connectCb_=D||_.e$;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?dX4(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.S.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10193_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var D=this.iframeElement_.contentWindow;D||(D=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=D}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10193_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new aJ(this,this.cfg_.ph,this.JSC$10193_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.S.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Ue(this.transport_);this.connectCb_=this.transport_=null;_.Ue(this.connectionDelay_);this.connectionDelay_=null};
_.S.send=function(D,C){if(this.isConnected()){try{var X=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(W){X=!1}if(X){_.MR(C)&&(C=(0,_.Tg)(C));X=this.transport_;var c=X.send;LMd.test(D)&&(D="%"+D);D=D.replace(/[%:|]/g,encodeURIComponent);c.call(X,D,C)}else this.close()}};
_.S.xpcDeliver=function(D,C,X){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.wo)(this.xpcDeliver,this,D,C,X));else if(IoN(this,X)&&!this.isDisposed()&&this.state_!=3)if(D&&D!="tp")this.isConnected()&&(D=D.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),D=six.test(D)?D.substring(1):D,D=this.getService(D,C))&&(C=zxJ(C,D.objectPayload),C!=null&&D.callback(C));else switch(D=this.transport_,X=aoC(C),C=X[1],X[0]){case "SETUP_ACK":$N5(D,1);D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":D.protocolVersion_==2&&($N5(D,2),D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0));break;case "SETUP":$N5(D,1);Pwb(D,1);break;case "SETUP_NTPV2":D.protocolVersion_==2&&(X=D.peerProtocolVersion_,$N5(D,2),Pwb(D,2),X!=1&&D.peerEndpointId_==null||D.peerEndpointId_==C||AYb(D),D.peerEndpointId_=C)}};
var UNe=function(D){var C=D.cfg_.role;return typeof C==="number"?C:window.parent==D.peerWindowObject_?1:0},IoN=function(D,C){var X=D.cfg_.ph;
return _.Um(C==null?"":String(C))||_.Um(X==null?"":String(X))||C==D.cfg_.ph};
hs.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete IJ[this.name];_.Ue(this.peerLoadHandler_);delete this.peerLoadHandler_;hs.superClass_.disposeInternal.call(this)};
var xN5=function(){for(var D in IJ)_.Ue(IJ[D])},IJ={};var eaC=function(D,C){this.win=D;this.allowAdsHttpEndpoint=C;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10207_domHelper=tp(D);this.scrollManager=new TDk(D);this.accessibilityManager=new wzx(D);mNx(this)},mNx=function(D){var C=function(){D.allowAdsPopup&&D.allowAdsPopup.style.setProperty("display","none","important");
D.wallElement.style.setProperty("display","","important");FIk(D.accessibilityManager);VR5(D.accessibilityManager,D.wallElement.querySelector(".fc-dialog-container"),!1,!1,D.wallElement.querySelector(".fc-button-whitelist"));D.scrollManager.enableScrolling()};
D.allowAdsPopup=D.JSC$10207_domHelper.JSC$9493_createDom("DIV",{"class":"fc-whitelist-root"});D.allowAdsPopup.style.setProperty("display","none","important");D.JSC$10207_domHelper.appendChild(D.JSC$10207_domHelper.JSC$9491_document_.body,D.allowAdsPopup);var X=D.JSC$10207_domHelper.JSC$9493_createDom("DIV",{"class":"fc-dialog-overlay"});D.JSC$10207_domHelper.appendChild(D.allowAdsPopup,X);var c=D.JSC$10207_domHelper.JSC$9493_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:C});D.JSC$10207_domHelper.appendChild(D.allowAdsPopup,
c);X=D.JSC$10207_domHelper.JSC$9493_createDom("IFRAME");X.className="fc-whitelist-dialog";X.frameBorder="0";X.id="fc-whitelist-iframe";X.tabIndex="0";_.CK(X,D.allowAdsHttpEndpoint);D.JSC$10207_domHelper.appendChild(c,X);c={};c.pu=_.NJ(D.allowAdsHttpEndpoint).toString();c.tp=1;c.cn="fc-whitelist-channel";c.ifrid=X.id;c.osh=!0;D.allowAdsCrossPageChannel=new hs(c);D.allowAdsCrossPageChannel.registerService("close",C);D.allowAdsCrossPageChannel.registerService("refresh",function(){D.win.location.reload()});
D.allowAdsCrossPageChannel.registerService("resize",function(W){if(W){var p=D.allowAdsPopup.querySelector(".fc-whitelist-dialog");W.width&&p.style.setProperty("width",W.width,"important");W.height&&p.style.setProperty("height",W.height,"important")}},!0);
D.allowAdsCrossPageChannel.connect()};
eaC.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10207_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var xx=window,LV=document,Elc=xx.location,teM=function(){},NOg=/\[native code\]/,s9=function(D,C,X){return D[C]=D[C]||X},YU5=function(D){D=D.sort();
for(var C=[],X=void 0,c=0;c<D.length;c++){var W=D[c];W!=X&&C.push(W);X=W}return C},mN=function(){var D;
if((D=Object.create)&&NOg.test(D))D=D(null);else{D={};for(var C in D)D[C]=void 0}return D},eP=s9(xx,"gapi",{});var E9={};E9=s9(xx,"___jsl",mN());s9(E9,"I",0);s9(E9,"hel",10);var yYk=function(){var D=Elc.href;if(E9.dpo)var C=E9.h;else{C=E9.h;var X=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),c=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(D=D&&(X.exec(D)||c.exec(D)))try{C=decodeURIComponent(D[2])}catch(W){}}return C},nlk=function(D){var C=s9(E9,"PQ",[]);
E9.PQ=[];var X=C.length;if(X===0)D();else for(var c=0,W=function(){++c===X&&D()},p=0;p<X;p++)C[p](W)},wLC=function(D){return s9(s9(E9,"H",mN()),D,mN())};var ts=function(D){this.JSC$10209_obj_=D};
ts.prototype.value=function(){return this.JSC$10209_obj_};
ts.prototype.getWidth=function(){return this.JSC$10209_obj_.width};
ts.prototype.getHeight=function(){return this.JSC$10209_obj_.height};
ts.prototype.getStyle=function(){return this.JSC$10209_obj_.style};var FMd=function(D){this.JSC$10212_obj_=D||{}};
_.S=FMd.prototype;_.S.value=function(){return this.JSC$10212_obj_};
_.S.setUrl=function(D){this.JSC$10212_obj_.url=D;return this};
_.S.getUrl=function(){return this.JSC$10212_obj_.url};
_.S.getStyle=function(){return this.JSC$10212_obj_.style};
_.S.getId=function(){return this.JSC$10212_obj_.id};
_.S.getContext=function(){return this.JSC$10212_obj_.context};
var ZQ5=function(D){D.JSC$10212_obj_.attributes=D.JSC$10212_obj_.attributes||{};return new ts(D.JSC$10212_obj_.attributes)};var GuM=function(){FMd.apply(this,arguments)};
_.h(GuM,FMd);var Ved=s9(E9,"perf",mN());s9(Ved,"g",mN());var TOd=s9(Ved,"i",mN());s9(Ved,"r",[]);mN();mN();var JYN=function(D,C,X){C&&C.length>0&&(C=HQd(C),X&&X.length>0&&(C+="___"+HQd(X)),C.length>28&&(C=C.substr(0,28)+(C.length-28)),X=C,C=s9(TOd,"_p",mN()),s9(C,X,mN())[D]=(new Date).getTime(),C=Ved.r,typeof C==="function"?C(D,"_p",X):C.push([D,"_p",X]))},HQd=function(D){return D.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var zac=mN(),jiC=[],Nq=function(D){throw Error("Ua`"+D);};
jiC.push(["jsl",function(D){for(var C in D)if(Object.prototype.hasOwnProperty.call(D,C)){var X=D[C];typeof X=="object"?E9[C]=s9(E9,C,[]).concat(X):s9(E9,C,X)}if(C=D.u)D=s9(E9,"us",[]),D.push(C),(C=/^https:(.*)$/.exec(C))&&D.push("http:"+C[1])}]);
var MeC=/^(\/[a-zA-Z0-9_\-]+)+$/,qUb=[/\/amp\//,/\/amp$/,/^\/amp$/],foc=/^[a-zA-Z0-9\-_\.,!]+$/,dNe=/^gapi\.loaded_[0-9]+$/,RaJ=/^[a-zA-Z0-9,._-]+$/,XfJ=function(D,C,X,c,W){var p=D.split(";"),g=p.shift(),a=zac[g],O=null;a?O=a(p,C,X,c):Nq("no hint processor for: "+g);O||Nq("failed to generate load url");C=O;X=C.match(lo5);(c=C.match(DIk))&&c.length===1&&CVM.test(C)&&X&&X.length===1||Nq("failed sanity: "+D);try{D="?";if(W&&W.length>0){Ymm(W);var P=W.join(",");O=O+"?le="+P;D="&"}if(E9.rol){var k=E9.ol;
k&&k.length&&(O=""+O+D+"ol="+k.length)}}catch(u){}return O},WRb=function(D,C,X,c){D=cI5(D);
dNe.test(X)||Nq("invalid_callback");C=obb(C);c=c&&c.length?obb(c):null;var W=function(p){return encodeURIComponent(p).replace(/%2C/g,",")};
return[encodeURIComponent(D.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",W(D.version),"/m=",W(C),c?"/exm="+W(c):"","/rt=j/sv=1/d=1/ed=1",D.activeMods?"/am="+W(D.activeMods):"",D.resourceSig?"/rs="+W(D.resourceSig):"",D.zcms?"/t="+W(D.zcms):"","/cb=",W(X)].join("")},cI5=function(D){D.charAt(0)!=="/"&&Nq("relative path");
for(var C=D.substring(1).split("/"),X=[];C.length;){D=C.shift();if(!D.length||D.indexOf(".")==0)Nq("empty/relative directory");else if(D.indexOf("=")>0){C.unshift(D);break}X.push(D)}D={};for(var c=0,W=C.length;c<W;++c){var p=C[c].split("="),g=decodeURIComponent(p[0]),a=decodeURIComponent(p[1]);p.length==2&&g&&a&&(D[g]=D[g]||a)}C="/"+X.join("/");MeC.test(C)||Nq("invalid_prefix");X=0;for(c=qUb.length;X<c;++X)qUb[X].test(C)&&Nq("invalid_prefix");X=pfq(D,"k",!0);c=pfq(D,"am");W=pfq(D,"rs");D=pfq(D,"t");
return{pathPrefix:C,version:X,activeMods:c,resourceSig:W,zcms:D}},obb=function(D){for(var C=[],X=0,c=D.length;X<c;++X){var W=D[X].replace(/\./g,"_").replace(/-/g,"_");
RaJ.test(W)&&C.push(W)}return C.join(",")},pfq=function(D,C,X){D=D[C];
!D&&X&&Nq("missing: "+C);if(D){if(foc.test(D))return D;Nq("invalid: "+C)}return null},CVM=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,DIk=/\/cb=/g,lo5=/\/\//g;
zac.m=function(D,C,X,c){(D=D[0])||Nq("missing_hint");return"https://apis.google.com"+WRb(D,C,X,c)};
var S6C=decodeURI("%73cript"),UIM=/^[-+_0-9\/A-Za-z]+={0,2}$/,gbC=function(D,C){for(var X=[],c=0;c<D.length;++c){var W=D[c],p;if(p=W){a:{for(p=0;p<C.length;p++)if(C[p]===W)break a;p=-1}p=p<0}p&&X.push(W)}return X},a0d=function(){var D=E9.nonce;
return D!==void 0?D&&D===String(D)&&D.match(UIM)?D:E9.nonce=null:LV.querySelector?(D=LV.querySelector("script[nonce]"))?(D=D.nonce||D.getAttribute("nonce")||"",D&&D===String(D)&&D.match(UIM)?E9.nonce=D:E9.nonce=null):null:null},AI4=function(D){if(LV.readyState!="loading")I0C(D);
else{var C=a0d(),X="";C!==null&&(X=' nonce="'+C+'"');D="<"+S6C+' src="'+encodeURI(D)+'"'+X+"></"+S6C+">";LV.write(O25?O25.createHTML(D):D)}},I0C=function(D){var C=LV.createElement(S6C);
C.setAttribute("src",O25?O25.createScriptURL(D):D);D=a0d();D!==null&&C.setAttribute("nonce",D);C.async="true";(D=LV.getElementsByTagName(S6C)[0])?D.parentNode.insertBefore(C,D):(LV.head||LV.body||LV.documentElement).appendChild(C)},$I4=function(D,C,X){PVd(function(){var c=C===yYk()?s9(eP,"_",mN()):mN();
c=s9(wLC(C),"_",c);D(c)},X)},SMr=function(D,C){var X=C||{};
typeof C=="function"&&(X={},X.callback=C);var c=(C=X)&&C._c;if(c)for(var W=0;W<jiC.length;W++){var p=jiC[W][0],g=jiC[W][1];g&&Object.prototype.hasOwnProperty.call(c,p)&&g(c[p],D,C)}C=[];D?C=D.split(":"):X.features&&(C=X.features);if(!(D=X.h)&&(D=yYk(),!D))throw Error("Va");vbc(C||[],X,D)},vbc=function(D,C,X){D=YU5(D)||[];
var c=C.callback,W=C.config,p=C.timeout,g=C.ontimeout,a=C.onerror,O=void 0;typeof a=="function"&&(O=a);var P=null,k=!1;if(p&&!g||!p&&g)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";a=s9(wLC(X),"r",[]).sort();var u=s9(wLC(X),"L",[]).sort(),Q=E9.le||[],B=[].concat(a),K=function(J,T){if(k)return 0;xx.clearTimeout(P);u.push.apply(u,L);var H=((eP||{}).config||{}).update;H?H(W):W&&s9(E9,"cu",[]).push(W);if(T){JYN("me0",J,B);try{$I4(T,X,O)}finally{JYN("me1",J,B)}}return 1};
p>0&&(P=xx.setTimeout(function(){k=!0;g()},p));
var L=gbC(D,u);if(L.length){L=gbC(D,a);var t=s9(E9,"CP",[]),Y=t.length;t[Y]=function(J){if(!J)return 0;JYN("ml1",L,B);var T=function(q){t[Y]=null;K(L,J)&&nlk(function(){c&&c();q()})},H=function(){var q=t[Y+1];
q&&q()};
Y>0&&t[Y-1]?t[Y]=function(){T(H)}:T(H)};
if(L.length){var y="loaded_"+E9.I++;eP[y]=function(J){t[Y](J);eP[y]=null};
D=XfJ(X,L,"gapi."+y,a,Q);a.push.apply(a,L);JYN("ml0",L,B);C.sync||xx.___gapisync?AI4(D):I0C(D)}else t[Y](teM)}else K(L)&&c&&c()},i2e;
var k5M=null,uf4=_.co.trustedTypes;if(uf4&&uf4.createPolicy){try{k5M=uf4.createPolicy("goog#gapi",{createHTML:ihq,createScript:ihq,createScriptURL:ihq})}catch(D){_.co.console&&_.co.console.error(D.message)}i2e=k5M}else i2e=k5M;var O25=i2e,PVd=function(D,C){if(E9.hee&&E9.hel>0)try{return D()}catch(X){C&&C(X),E9.hel--,SMr("debug_error",function(){try{window.___jsl.hefn(X)}catch(c){throw X;}})}else try{return D()}catch(X){throw C&&C(X),X;
}},QXJ=eP.load;
QXJ&&s9(E9,"ol",[]).push(QXJ);eP.load=function(D,C){return PVd(function(){return SMr(D,C)})};var jQJ;var b2c=function(D,C){var X=X||[];this.serviceId_=D;this.moduleId_=C||null;this.dependencies_=[];B05(this,X)};
b2c.prototype.toString=function(){return this.serviceId_};
b2c.prototype.getModuleId=function(){return this.moduleId_};
var B05=function(D,C){var X=!1;X=X===void 0?!1:X;D.dependencies_=D.dependencies_.concat(C);if(X){if(!D.moduleId_)throw Error("Wa`"+D.serviceId_);C.map(function(c){return c.getModuleId()}).forEach(function(c){Mq3(function(W){W.addExtraEdge(D.moduleId_,c)})})}};var wHm=new b2c("MpJwZc","MpJwZc");var eIh=new _.m2("a"),ZlW=new _.m2("c"),FFR=function(D,C,X){_.eL.call(this,D,C);this.node=C;this.kind=X};
_.h(FFR,_.eL);var rIk=function(){this.JSC$10225_keys_={};this.urlPrefix_="";this.JSC$10225_queryData_={}};
rIk.prototype.toString=function(){var D=this.urlPrefix_+KRq(this),C=_.EY(this.JSC$10225_queryData_),X="";C!=""&&(X="?"+C);return D+X};
var hLM=function(D){D=Yx(D,"md");return!!D&&D!=="0"},KRq=function(D){var C=[],X=function(c){D.JSC$10225_keys_[c]!==void 0&&C.push(c+"="+D.JSC$10225_keys_[c])};
hLM(D)?(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 D.JSC$10225_keys_||yh(D,"d","0"),X("d"),X("exm"),X("excm"),(D.JSC$10225_keys_.excm||D.JSC$10225_keys_.exm)&&C.push("ed=1"),X("im"),X("dg"),X("sm"),Yx(D,"br")!="1"&&Yx(D,"br")!="0"||X("br"),X("br-d"),Yx(D,"rb")=="1"&&X("rb"),Yx(D,"zs")!=="0"&&X("zs"),xIM(D)!==""&&X("wt"),X("gssmodulesetproto"),X("ujg"),X("sp"),X("rs"),X("cb"),X("ee"),X("slk"),X("dti"),X("m"));return C.join("/")},
Yx=function(D,C){return D.JSC$10225_keys_[C]?D.JSC$10225_keys_[C]:null},yh=function(D,C,X){X?D.JSC$10225_keys_[C]=X:delete D.JSC$10225_keys_[C]},LRg=function(D,C){D.urlPrefix_=C},sXd=function(D,C){C&&C.length>0?(C.sort(),yh(D,"exm",C.join(","))):yh(D,"exm",null)},mIN=function(D,C){C&&C.length>0?(C.sort(),yh(D,"excm",C.join(","))):yh(D,"excm",null)},eLe=function(D){return(D=Yx(D,"m"))?D.split(","):[]},xIM=function(D){switch(Yx(D,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Ebg=function(D,C){var X=Object.keys(C).filter(function(c){return!!Object.keys(C[c]).length}).map(function(c){var W=Object.keys(C[c]);
W.length>1&&W.sort();return c+":"+W.join(",")});
X.sort();yh(D,"ee",X.join(";"))},Zqr=function(D){var C=Yx(D,"ee");
if(!C)return{};D={};C=_.U(C.split(";"));for(var X=C.next();!X.done;X=C.next()){var c=_.U(X.value.split(":"));X=c.next().value;c=c.next().value;D[X]={};c=_.U(c.split(","));for(var W=c.next();!W.done;W=c.next())D[X][W.value]=!0}return D},tff=function(D){delete D.JSC$10225_keys_.m;
delete D.JSC$10225_keys_.exm;delete D.JSC$10225_keys_.ed};
rIk.prototype.clone=function(){var D=new rIk;D.JSC$10225_keys_=Object.assign({},this.JSC$10225_keys_);D.urlPrefix_=this.urlPrefix_;D.JSC$10225_queryData_=Object.assign({},this.JSC$10225_queryData_);return D};
var GbW=function(D,C){C=C===void 0?!0:C;var X=N0J(D),c=new rIk,W=_.IQ(X)[5];_.ZI.forEach(Y6g,function(g){var a=W.match("/"+g+"=([^/]+)");a&&yh(c,g,a[1])});
var p="";p=D.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";LRg(c,D.substr(0,D.indexOf(p)+p.length));if(!C)return c;(D=_.IQ(X)[6]||null)&&a1C(D,function(g,a){c.JSC$10225_queryData_[g]=a});
return c},nhZ=function(D){D=_.mC(N0J(D));
return D===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(D)?/\/k=/.test(D):!1},N0J=function(D){return D.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?D.substr(65):D},Y6g={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"},yIx=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.nV=function(D){this.JSC$10237_id_=D;this.opts={}};
_.nV.prototype.JSC$10239_setLabel=function(D){this.label_=D||void 0;return this};
_.nV.prototype.addUploadMetadata=function(D,C){var X=this.opts.data||{};X[D]=C;this.opts.data=X;return this};
var nbb=function(D){var C=_.ZI.filter(D.opts,function(X){return X!==null});
C=_.ZI.isEmpty(C)?null:C;D=[D.JSC$10237_id_,D.label_,C];C=mR5(D);return D=D.slice(0,C+1)};
_.nV.prototype.toString=function(){var D=nbb(this);return"("+_.Gv(D,function(C){return JSON.stringify(C)}).join(",")+")"};
_.nV.prototype.getId=function(){return this.JSC$10237_id_};
_.nV.prototype.getOptions=function(){return _.ZI.clone(this.opts)};var wt=function(){_.nV.call(this,"image-search")};
_.h(wt,_.nV);wt.prototype.setSize=function(D){this.opts.imgsz=D;return this};
wt.prototype.JSC$10239_setLabel=function(D){_.nV.prototype.JSC$10239_setLabel.call(this,D);return this};
wt.prototype.addUploadMetadata=function(D,C){_.nV.prototype.addUploadMetadata.call(this,D,C);return this};var F9=function(){_.nV.call(this,"maps")};
_.h(F9,_.nV);F9.prototype.setZoom=function(D){this.opts.zoom=D;return this};
F9.prototype.JSC$10239_setLabel=function(D){_.nV.prototype.JSC$10239_setLabel.call(this,D);return this};
F9.prototype.addUploadMetadata=function(D,C){_.nV.prototype.addUploadMetadata.call(this,D,C);return this};_.Zs=function(){_.nV.call(this,"photos")};
_.h(_.Zs,_.nV);_.Zs.prototype.JSC$10239_setLabel=function(D){_.nV.prototype.JSC$10239_setLabel.call(this,D);return this};
_.Zs.prototype.addUploadMetadata=function(D,C){_.nV.prototype.addUploadMetadata.call(this,D,C);return this};var GP=function(){_.nV.call(this,"url")};
_.h(GP,_.nV);var wfg=function(){var D=new GP;D.opts.type="video";D.opts.site="youtube.com";return D};
GP.prototype.JSC$10239_setLabel=function(D){_.nV.prototype.JSC$10239_setLabel.call(this,D);return this};
GP.prototype.addUploadMetadata=function(D,C){_.nV.prototype.addUploadMetadata.call(this,D,C);return this};var Vh=function(){_.nV.call(this,"video-search")};
_.h(Vh,_.nV);var FRf=function(){var D=new Vh;D.opts.site="youtube.com";return D};
Vh.prototype.JSC$10239_setLabel=function(D){_.nV.prototype.JSC$10239_setLabel.call(this,D);return this};
Vh.prototype.addUploadMetadata=function(D,C){_.nV.prototype.addUploadMetadata.call(this,D,C);return this};var Z2d=function(){_.nV.call(this,"web")};
_.h(Z2d,_.nV);Z2d.prototype.JSC$10239_setLabel=function(D){_.nV.prototype.JSC$10239_setLabel.call(this,D);return this};
Z2d.prototype.addUploadMetadata=function(D,C){_.nV.prototype.addUploadMetadata.call(this,D,C);return this};var TP=function(){this.items_=[];this.opts={}},G5e=function(D){switch(D){case "image-search":return new wt;
case "maps":return new F9;case "photos":return new _.Zs;case "url":return new GP;case "video-search":return new Vh;case "web":return new Z2d}return new _.nV(D)};
TP.prototype.addView=function(D){this.items_.push(typeof D==="string"?G5e(D):D);return this};
var Vfc=function(D){return"("+_.Gv(D.items_,function(C){return C.toString()}).join(",")+")"};
TP.prototype.toString=function(){return Vfc(this)};
TP.prototype.getViews=function(D,C){C=C===void 0?[]:C;for(var X=this.items_,c=0;c<X.length;c++){var W=X[c];W instanceof TP?W.getViews(D,C):W.getId()==D&&C.push(W)}return C};
TP.prototype.getOptions=function(){return _.ZI.clone(this.opts)};var qd=function(D){this.basePickerUrl_=D||"https://docs.google.com/picker";this.nav_=new TP};
qd.prototype.nav_=null;qd.prototype.addView=function(D){this.nav_.addView(D);return this};
qd.prototype.getBaseUrl=function(){return this.basePickerUrl_};
qd.prototype.getViews=function(D){return this.nav_.getViews(D)};
_.T0C=function(D,C){D.callback_=C;return D};var H2x=new Map;H2x.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");H2x.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");H2x.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var JIN=new Set;JIN.add("application/vnd.google-apps.kix");JIN.add("application/vnd.google-apps.ritz");JIN.add("application/vnd.google-apps.punch");var c0N=function(D,C,X){var c=X&&_.EG(X,1);X=zLM(X);var W=D[0].getId();switch(_.tu(W,2)){case 13:return jXq(D,C,c,X);case 3:return Mff(D,C,c,X);case 10:return q6b(D,C,c,X);case 27:return q6b(D,C,c,X);case 12:return f04(D,C);case 2:return dIb(D,C,c,X);case 5:return RL5(D,C,c,X);case 9:return l0e(D,C,c,X);case 6:return DOf(D,C,c,X);case 25:return CQq(D,C,c,X);case 1:return _.QO(D[0],xde,26)?XHd(D,C,c,X):q6b(D,C,c,X);default:return{}}},DOf=function(D,C,X,c){D=D.map(function(W){return{id:W.getId().getId(),
serviceId:"youtube",name:W.getName(),description:_.EG(W,3),type:HP(W),lastEditedUtc:_.hix(_.Bz(W,_.tm,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:_.EG(W,13),thumbnails:Js(gk(W))}});
return{action:C,docs:D,viewToken:c,view:X||"youtube",v2Translated:!0}},dIb=function(D,C,X,c){var W=D.map(function(p){var g=p.getId().getId(),a=_.EG(p,7),O=p.getName(),P=HP(p),k=_.hix(_.Bz(p,_.tm,12)).getTime(),u=p.getUrl(),Q=Number(Ydd(p)),B=_.EG(p,3),K=_.EG(p,11),L=Js(gk(p));
var t=_.Bz(p,ab,21);t=_.sG(t,1);var Y=_.Bz(p,ab,21);Y=_.EG(Y,10);var y=_.EG(p,13);var J=_.Bz(p,ab,21);J=_.sG(J,9);var T=_.Bz(p,ab,21);T=_.EG(T,11);g={id:g,serviceId:"docs",mimeType:a,name:O,type:P,lastEditedUtc:k,url:u,sizeBytes:Q,description:B,iconUrl:K,thumbnails:L,isShared:t,downloadUrl:Y,embedUrl:y,copyable:J,resourceKey:T};a=_.Bz(p,ab,21);_.sG(a,12)&&(g.uploadState="success",g.isNew=!0);a=_.Bz(p,ab,21);_.QO(a,pW,3)&&(p=_.Bz(p,ab,21),p=_.Bz(p,pW,3),_.QO(p,ob,2)&&(a=jp(p.getDuration().getSeconds()),
O=p.getDuration(),O=_.PI(O,2),g.duration=a+O/1E9),g.aspectRatio=p.getAspectRatio());return g});
return{action:C,docs:W,viewToken:c,view:X||"all",extraUserInputs:oa5(D),v2Translated:!0}},RL5=function(D,C,X,c){D=D.map(function(W){var p=_.Bz(W,yRk,15);
p=_.Bz(p,WF,1);NN(W,10,WF,p);return{id:W.getId().getId(),serviceId:"web",mimeType:_.EG(W,7),name:W.getName(),type:HP(W),url:W.getUrl(),description:_.EG(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Js(gk(W))}});
return{action:C,docs:D,viewToken:c,view:X||"image-search",v2Translated:!0}},l0e=function(D,C,X,c){D=D.map(function(W){return{serviceId:"url",
name:gk(W)[0].getUrl().split("/").pop(),type:HP(W),mimeType:_.EG(W,7),url:W.getUrl(),description:_.EG(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Js(gk(W))}});
return{action:C,docs:D,viewToken:c,view:X||"url",v2Translated:!0}},XHd=function(D,C,X,c){D=D.map(function(W){return{id:W.getId().getId(),
serviceId:"picasa",name:W.getName(),type:HP(W),description:_.EG(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Js(gk(W))}});
return{action:C,docs:D,viewToken:c,view:X||"webcam",v2Translated:!0}},q6b=function(D,C,X,c){return{action:C,
docs:D.map(WFJ),viewToken:c,view:pHx(X||"upload",D),extraUserInputs:oa5(D),v2Translated:!0}},pHx=function(D,C){return C.some(function(X){var c;
return((c=_.Bz(X,SL,30))==null?void 0:_.tu(c,3))===9})?D+"/gmailphotos":D},Mff=function(D,C,X,c){var W=D.map(function(p){var g={id:p.getId().getId(),
serviceId:"picasa",mimeType:_.EG(p,7),name:p.getName(),type:HP(p),lastEditedUtc:_.hix(_.Bz(p,_.tm,12)).getTime(),url:p.getUrl(),sizeBytes:Number(Ydd(p)),description:_.EG(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Js(gk(p)),mediaKey:p.getId().getId(),parentId:_.EG(p,4)},a,O=(a=_.Bz(p,mdd,18))==null?void 0:_.Bz(a,shM,3);O&&(g.latitude=ez(O,1),g.longitude=ez(O,2));var P;p=(P=_.Bz(p,mdd,18))==null?void 0:mX(P,6);P=p!=null?jp(p):void 0;P&&(g.version=
P);return g});
return{action:C,docs:W,viewToken:c,view:X||"photos",extraUserInputs:oa5(D),v2Translated:!0}},jXq=function(D,C,X,c){D=D.map(function(W){return{id:W.getId().getId(),
serviceId:"et",name:gk(W)[0].getUrl().split("/").pop(),description:_.EG(W,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Js(gk(W),"etjpg")}});
return{action:C,docs:D,viewToken:c,view:X||"et",v2Translated:!0}},CQq=function(D,C,X,c){D=D.map(function(W){var p=W.getId().getId(),g=c["2"];
return{id:p,serviceId:g.type!=="gmail_themes"&&g.parent==="6226252643674576769"?"picasa":"static_themes",name:W.getName(),mimeType:_.EG(W,7),type:HP(W),description:_.EG(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:W.getUrl(),thumbnails:Js(gk(W))}});
return{action:C,docs:D,viewToken:c,view:X||"photos",v2Translated:!0}},f04=function(D,C){D=D.map(function(X){var c=_.Bz(X,Lv4,27);
c=_.d3(c,1,_.r3,_.AR())[0];return{id:X.getId().getId(),serviceId:"contacts",mimeType:_.EG(X,7),name:X.getName(),description:_.EG(X,3),url:"mailto:"+c,thumbnail:[{url:_.EG(X,11)}],email:c}});
return{action:C,docs:D,view:"contacts",v2Translated:!0}},zLM=function(D){if(!D)return{};
var C=_.EG(D,3);C=C&&JSON.parse(C)||{};return{0:_.EG(D,1),1:_.EG(D,2),2:C}},Js=function(D,C){C=C===void 0?"":C;
if(!D.length)return null;C=="etjpg"&&(D=D.filter(function(X){return X.getUrl().includes("w1200-h300")}));
return D.map(function(X){return{url:X.getUrl(),height:X.getHeight(),width:X.getWidth(),type:C}})},oa5=function(D){return{isAttachment:D.some(function(C){return _.sG(C,31)})}},WFJ=function(D){var C,X={id:(C=D.getId())==null?void 0:C.getId(),
serviceId:SrJ(D),mimeType:_.EG(D,7),name:D.getName(),type:HP(D),sizeBytes:Number(Ydd(D)),description:_.EG(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Js(gk(D)),isNew:!0};if(C=_.Bz(D,SL,30)){X.dataUrl=_.EG(C,1)||null;a:{var c=_.Bz(D,SL,30);switch(_.tu(c,3)){case 9:c=_.yO(c,Noq,2,UC);c={remoteRefs:c&&_.EG(c,1)};break a;case 10:case 15:c=_.yO(c,tpN,4,UC);var W=gk(D);c={photo_id:c&&_.EG(c,1),media_key:D.getId().getId(),media_type:_.tu(D,6)===1?1:2,image_url:W&&
W[0].getUrl(),width:W&&String(W[0].getWidth()),height:W&&String(W[0].getHeight())};break a}c=null}X.uploadMetadata=c;X.uploadId=_.EG(C,9)||null;X.uploadState=UOc(C)||null}(c=C&&_.yO(C,tpN,4,UC))&&(X.id=_.EG(c,1));(c=C&&_.yO(C,Yec,5,UC))&&(X.contentId=_.EG(c,1));(c=C&&_.yO(C,ei5,7,UC))&&(X.contentId=_.EG(c,1));(c=C&&_.yO(C,ET5,6,UC))&&(X.contentId=_.EG(c,1));(C==null?void 0:_.tu(C,3))===1&&(X.mediaKey=D.getId().getId());return X},SrJ=function(D){var C;
switch(((C=_.Bz(D,SL,30))==null?void 0:_.tu(C,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},HP=function(D){switch(_.tu(D,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 _.EG(D,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},UOc=function(D){switch(D==null?void 0:_.tu(D,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 Ol4,gag,a45,I4J;_.A05=function(D,C){var X=C||{};C=X.document||document;var c=_.NJ(D).toString(),W=(new yM(C)).createElement("SCRIPT"),p={script_:W,timeout_:void 0},g=new pV(gag,p),a=null,O=X.timeout!=null?X.timeout:5E3;O>0&&(a=window.setTimeout(function(){a45(W,!0);g.errback(new I4J(1,"Timeout reached for loading script "+c))},O),p.timeout_=a);
W.onload=W.onreadystatechange=function(){W.readyState&&W.readyState!="loaded"&&W.readyState!="complete"||(a45(W,X.cleanupWhenDone||!1,a),g.callback(null))};
W.onerror=function(){a45(W,!0,a);g.errback(new I4J(0,"Error while loading script "+c))};
p=X.attributes||{};_.ZI.extend(p,{type:"text/javascript",charset:"UTF-8"});iyf(W,p);_.gH(W,D);Ol4(C).appendChild(W);return g};
Ol4=function(D){var C=Ee("HEAD",D);return C&&C.length!==0?C[0]:D.documentElement};
gag=function(){if(this&&this.script_){var D=this.script_;D&&D.tagName=="SCRIPT"&&a45(D,!0,this.timeout_)}};
a45=function(D,C,X){X!=null&&_.co.clearTimeout(X);D.onload=function(){};
D.onerror=function(){};
D.onreadystatechange=function(){};
C&&window.setTimeout(function(){_.ep(D)},0)};
I4J=function(D,C){var X="Jsloader error (code #"+D+")";C&&(X+=": "+C);_.Dn.call(this,X);this.code=D};
_.WT(I4J,_.Dn);var PQx=_.q8(["https://apis.google.com/js/api.js"]),$OM=_.kX(PQx),u2M=function(D,C,X){X=X===void 0?{}:X;var c=!1,W=vag(D,C,X).then(function(g){c=!0;return g}),p=_.G4J(5E3).then(function(){return c?vag(D,C,X):ilc(C,X).then(function(g){return kTN(g,D)})});
return sek([W,p])},vag=function(D,C,X){X=X===void 0?{}:X;
return QSb(C,X).then(function(c){return kTN(c,D)})},kTN=function(D,C){var X=_.Wo(C,"gapi.")?C.slice(5):C;
return D[X]?_.WE(D[X]):new _.mM(function(c,W){var p=Gg(function(){W(Error("Ya"))},3E4);
D.load(C,{callback:function(){_.co.clearTimeout(p);c(D[X])},
onerror:function(g){_.co.clearTimeout(p);W(g)}})})},QSb=function(D,C){C=C===void 0?{}:C;
return D.gapi&&D.gapi.load?_.WE(D.gapi):ilc(D,C)},ilc=function(D,C){C=C===void 0?{}:C;
return _.A05($OM,{document:D.document,attributes:C}).then(function(){return D.gapi})},Bre=function(){};
Bre.prototype.load=function(D,C,X){C=C===void 0?window:C;X=X===void 0?{}:X;var c=Date.now();return u2M(D,C,X).then(function(W){var p=Date.now();return{library:W,loadStartMs:c,loadEndMs:p}},function(W){throw W instanceof Error?W:Error(String(W));
})};var pzd=function(){_.nF.call(this);this.gapiLoader_=new Bre;this.origin_=null;this.gapiPickerIframeResolver_=_.zr();this.gapiIframesResolver_=_.zr();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.h(pzd,_.nF);var blM=function(D,C){var X=X===void 0?{}:X;var c=_.Df("gapi.iframes",C);return c?(D=Date.now(),_.WE({library:c,loadStartMs:D,loadEndMs:D})):D.gapiLoader_.load("gapi.iframes",C,X)},r0g=function(D,C,X,c,W,p){var g=!1;
g=g===void 0?!1:g;blM(D,Tv(C.ownerDocument)).then(function(a){var O=a.library;D.gapiIframesResolver_.resolve(O);a=D.gapiPickerIframeResolver_;var P=a.resolve,k=g;k=k===void 0?!1:k;var u={};u["host-message-handler"]=X;D.hostMessageHandlerInternal_=u;var Q=_.Xg(c);Q=_.Xg(Q);Q=_.$x(_.PP(_.As(new _.H7,Q.scheme_),Q.JSC$10197_domain_),Q.JSC$10197_port_).toString();D.origin_=Q;Q=(new GuM).setUrl(c);Q.JSC$10212_obj_.where=C;Q.JSC$10212_obj_.allowPost=k;Q.JSC$10212_obj_.messageHandlers=u;k=_.Df("makeWhiteListIframesFilter",
O)([D.origin_]);Q.JSC$10212_obj_.messageHandlersFilter=k;W!=null&&(Q.JSC$10212_obj_.id=W);p!=null&&(Q.JSC$10212_obj_.rpctoken=p);k=ZQ5(Q);k.JSC$10209_obj_.style={display:"block","min-width":"100%",width:"1px"};k.JSC$10209_obj_.height="100%";ZQ5(Q).value().allow="camera 'src' "+D.origin_;O=O.getContext().openChild(Q.value());P.call(a,O)},function(a){D.gapiIframesResolver_.reject(a);
D.gapiPickerIframeResolver_.reject(a)});
return D.gapiPickerIframeResolver_.promise},KFx=function(D,C){return _.Fn([D.gapiIframesResolver_.promise,
D.gapiPickerIframeResolver_.promise]).then(function(X){var c=_.U(X);X=c.next().value;return(c=c.next().value)?c.send("picker-message-handler",C,void 0,_.Df("makeWhiteListIframesFilter",X)([D.origin_])):_.x7(Error("Za"))})};
pzd.prototype.disposeInternal=function(){h2J(this);_.nF.prototype.disposeInternal.call(this)};
var h2J=function(D){D.gapiPickerIframeResolver_.promise.then(function(C){C&&(C.unregister("host-message-handler"),delete D.hostMessageHandlerInternal_["host-message-handler"])})};var xOc=function(){this.nextId=0};var sSd=function(D,C){switch(D.action){case "select-contacts":D=LFf(D.contacts);break;case "visibility":D=D.visible;var X=new PF;D=_.w1(X,1,7).setVisible(D);X={};X["iframe-command"]=D.serialize();D=X;break;default:D=null}return D?KFx(C,D):_.WE()},LFf=function(D){if(!D||D.length==0)return null;
var C=new PF;_.w1(C,1,11);var X=new xOc;D.forEach(function(c){if(c.email){var W=new x5;W=_.Tt(W,2,c.name?c.name:c.email);var p=new Lv4;c=_.VNo(p,1,_.kt,c.email,_.r3);c=_.Lf(W,27,c);W=new Kvb;p=":"+(X.nextId++).toString(36);W=_.Tt(W,1,p);W=_.w1(W,2,12);c=_.Lf(c,1,W)}else c=null;c&&NN(C,7,x5,c)});
D={};D["iframe-command"]=C.serialize();return D};_.mO5=function(){if(qm5){var D=/Windows NT ([0-9.]+)/;return(D=D.exec(_.kj()))?D[1]:"0"}return _.MZk?(D=/1[0|1][_.][0-9_.]+/,(D=D.exec(_.kj()))?D[0].replace(/_/g,"."):"10"):MBm?(D=/Android\s+([^\);]+)(\)|;)/,(D=D.exec(_.kj()))?D[1]:""):dR5||R3N||ln5?(D=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(D=D.exec(_.kj()))?D[1].replace(/_/g,"."):""):""}();var zP;zP=function(D){return(D=D.exec(_.kj()))?D[1]:""};
_.e2b=function(){if(_.Au)return zP(/Firefox\/([0-9.]+)/);if(_.g1||AC||JWf)return pMb;if(_.PT){if(_.tW()||_.h3F()){var D=zP(/CriOS\/([0-9.]+)/);if(D)return D}return zP(/Chrome\/([0-9.]+)/)}if(_.Di&&!_.tW())return zP(/Version\/([0-9.]+)/);if(dCm||Rko){if(D=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.kj()))return D[1]+"."+D[2]}else if(Ikg)return(D=zP(/Android\s+([0-9.]+)/))?D:zP(/Version\/([0-9.]+)/);return""}();var Ea5=function(){};
_.cT(Ea5);Ea5.prototype.nextId_=0;_.jP=function(D){return":"+(D.nextId_++).toString(36)};var Mq=function(D){_.yg.call(this);this.JSC$10307_dom_=D||tp();this.JSC$10307_id_=null;this.inDocument_=!1;this.JSC$10307_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.WT(Mq,_.yg);Mq.prototype.idGenerator_=Ea5.getInstance();Mq.prototype.getId=function(){return this.JSC$10307_id_||(this.JSC$10307_id_=_.jP(this.idGenerator_))};
Mq.prototype.getElement=function(){return this.JSC$10307_element_};
var qq=function(D){D.googUiComponentHandler_||(D.googUiComponentHandler_=new _.bQ(D));return D.googUiComponentHandler_},tkk=function(D,C){if(D==C)throw Error("$a");
var X;if(X=C&&D.parent_&&D.JSC$10307_id_){X=D.parent_;var c=D.JSC$10307_id_;X=X.childIndex_&&c?_.ZI.get(X.childIndex_,c)||null:null}if(X&&D.parent_!=C)throw Error("$a");D.parent_=C;Mq.superClass_.setParentEventTarget.call(D,C)};
Mq.prototype.setParentEventTarget=function(D){if(this.parent_&&this.parent_!=D)throw Error("ab");Mq.superClass_.setParentEventTarget.call(this,D)};
Mq.prototype.JSC$10309_createDom=function(){this.JSC$10307_element_=this.JSC$10307_dom_.createElement("DIV")};
Mq.prototype.render=function(D){Nre(this,D)};
var Nre=function(D,C,X){if(D.inDocument_)throw Error("bb");D.JSC$10307_element_||D.JSC$10309_createDom();C?C.insertBefore(D.JSC$10307_element_,X||null):D.JSC$10307_dom_.JSC$9491_document_.body.appendChild(D.JSC$10307_element_);D.parent_&&!D.parent_.inDocument_||D.enterDocument()};
_.S=Mq.prototype;_.S.decorate=function(D){if(this.inDocument_)throw Error("bb");if(D&&this.canDecorate(D)){this.wasDecorated_=!0;var C=_.Hd(D);this.JSC$10307_dom_&&this.JSC$10307_dom_.JSC$9491_document_==C||(this.JSC$10307_dom_=tp(D));this.decorateInternal(D);this.enterDocument()}else throw Error("cb");};
_.S.canDecorate=function(){return!0};
_.S.decorateInternal=function(D){this.JSC$10307_element_=D};
_.S.enterDocument=function(){this.inDocument_=!0;Yrx(this,function(D){!D.inDocument_&&D.getElement()&&D.enterDocument()})};
_.S.exitDocument=function(){Yrx(this,function(D){D.inDocument_&&D.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.S.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Yrx(this,function(D){D.dispose()});
!this.wasDecorated_&&this.JSC$10307_element_&&_.ep(this.JSC$10307_element_);this.parent_=this.model_=this.JSC$10307_element_=this.childIndex_=this.children_=null;Mq.superClass_.disposeInternal.call(this)};
_.S.getModel=function(){return this.model_};
_.S.addChild=function(D,C){var X=this.children_?this.children_.length:0;if(D.inDocument_&&(C||!this.inDocument_))throw Error("bb");if(X<0||X>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);D.parent_==this?(_.ZI.set(this.childIndex_,D.getId(),D),_.VF(this.children_,D)):_.ZI.add(this.childIndex_,D.getId(),D);tkk(D,this);_.N5m(this.children_,X,0,D);D.inDocument_&&this.inDocument_&&D.parent_==this?(C=this.getContentElement(),
(C.childNodes[X]||null)!=D.getElement()&&(D.getElement().parentElement==C&&C.removeChild(D.getElement()),X=C.childNodes[X]||null,C.insertBefore(D.getElement(),X))):C?(this.JSC$10307_element_||this.JSC$10309_createDom(),X=this.children_?this.children_[X+1]||null:null,Nre(D,this.getContentElement(),X?X.JSC$10307_element_:null)):this.inDocument_&&!D.inDocument_&&D.JSC$10307_element_&&D.JSC$10307_element_.parentNode&&D.JSC$10307_element_.parentNode.nodeType==1&&D.enterDocument()};
_.S.getContentElement=function(){return this.JSC$10307_element_};
var Yrx=function(D,C){D.children_&&D.children_.forEach(C,void 0)};
Mq.prototype.removeChild=function(D,C){if(D){var X=typeof D==="string"?D:D.getId();D=this.childIndex_&&X?_.ZI.get(this.childIndex_,X)||null:null;X&&D&&(_.ZI.remove(this.childIndex_,X),_.VF(this.children_,D),C&&(D.exitDocument(),D.JSC$10307_element_&&_.ep(D.JSC$10307_element_)),tkk(D,null))}if(!D)throw Error("eb");return D};_.WT(dGh,ffZ);_.WT(RGZ,ffZ);var y0e;_.ZI.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var na5=function(D,C){C?D.setAttribute("role",C):D.removeAttribute("role")},fV=function(D,C,X){Array.isArray(X)&&(X=X.join(" "));
var c="aria-"+C;X===""||X==void 0?(y0e||(X={},y0e=(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=y0e,C in X?D.setAttribute(c,X[C]):D.removeAttribute(c)):D.setAttribute(c,X)};var wHq;_.dt=function(D,C,X){_.yg.call(this);this.target=D;this.handle=C||D;this.limits=X||new j$(NaN,NaN,NaN,NaN);this.JSC$10312_document_=_.Hd(D);this.JSC$10312_eventHandler_=new _.bQ(this);_.hR(this,this.JSC$10312_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;_.Kb(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=wHq};
_.WT(_.dt,_.yg);wHq=_.co.document&&_.co.document.documentElement&&!!_.co.document.documentElement.setCapture&&!!_.co.document.releaseCapture;_.FFf=function(D,C){D.hysteresisDistanceSquared_=Math.pow(C,2)};
_.S=_.dt.prototype;_.S.setEnabled=function(D){this.enabled_=D};
_.S.disposeInternal=function(){_.dt.superClass_.disposeInternal.call(this);_.Y1(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10312_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10312_document_.releaseCapture();this.handle=this.target=null};
_.S.startDrag=function(D){var C=D.type=="mousedown";if(!this.enabled_||this.dragging_||C&&(!D.isButton(0)||_.MZk&&D.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new RJ("start",this,D.clientX,D.clientY,D)))this.dragging_=!0,C&&D.preventDefault();else return;else C&&D.preventDefault();C=this.JSC$10312_document_;var X=C.documentElement,c=!this.useSetCapture_;this.JSC$10312_eventHandler_.listen(C,["touchmove","mousemove"],this.handleMove_,
{capture:c,passive:!1});this.JSC$10312_eventHandler_.listen(C,["touchend","mouseup"],this.endDrag,c);this.useSetCapture_?(X.setCapture(!1),this.JSC$10312_eventHandler_.listen(X,"losecapture",this.endDrag)):this.JSC$10312_eventHandler_.listen(Tv(C),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10312_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,c);this.clientX=this.startX=D.clientX;this.clientY=this.startY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=EF(tp(this.JSC$10312_document_))}};
_.S.endDrag=function(D,C){this.JSC$10312_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10312_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new RJ("end",this,D.clientX,D.clientY,D,Zlc(this,this.deltaX),GTJ(this,this.deltaY),C||D.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.S.handleMove_=function(D){if(this.enabled_){var C=D.clientX-this.clientX,X=D.clientY-this.clientY;this.clientX=D.clientX;this.clientY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;if(!this.dragging_){var c=this.startX-this.clientX,W=this.startY-this.clientY;if(c*c+W*W>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new RJ("start",this,D.clientX,D.clientY,D)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(D);return}}X=Vkd(this,C,X);C=X.x;X=X.y;this.dragging_&&this.dispatchEvent(new RJ("beforedrag",
this,D.clientX,D.clientY,D,C,X))&&(Trd(this,D,C,X),D.preventDefault())}};
var Vkd=function(D,C,X){var c=EF(tp(D.JSC$10312_document_));C+=c.x-D.pageScroll.x;X+=c.y-D.pageScroll.y;D.pageScroll=c;D.deltaX+=C;D.deltaY+=X;return new _.VI(Zlc(D,D.deltaX),GTJ(D,D.deltaY))};
_.dt.prototype.onScroll_=function(D){var C=Vkd(this,0,0);D.clientX=this.clientX;D.clientY=this.clientY;Trd(this,D,C.x,C.y)};
var Trd=function(D,C,X,c){D.target.style.left=X+"px";D.target.style.top=c+"px";D.dispatchEvent(new RJ("drag",D,C.clientX,C.clientY,C,X,c))},Zlc=function(D,C){var X=D.limits;
D=isNaN(X.left)?null:X.left;X=isNaN(X.width)?0:X.width;return Math.min(D!=null?D+X:Infinity,Math.max(D!=null?D:-Infinity,C))},GTJ=function(D,C){var X=D.limits;
D=isNaN(X.top)?null:X.top;X=isNaN(X.height)?0:X.height;return Math.min(D!=null?D+X:Infinity,Math.max(D!=null?D:-Infinity,C))};
_.dt.prototype.isDragging=function(){return this.dragging_};
var RJ=function(D,C,X,c,W,p,g){_.eL.call(this,D);this.clientX=X;this.clientY=c;this.browserEvent=W;this.left=p!==void 0?p:C.deltaX;this.top=g!==void 0?g:C.deltaY};
_.WT(RJ,_.eL);var lF=function(D){this.JSC$10319_map_=new Map;var C=arguments.length;if(C>1){if(C%2)throw Error("ma");for(var X=0;X<C;X+=2)this.set(arguments[X],arguments[X+1])}else D&&this.addAll(D)};
_.S=lF.prototype;_.S.getCount=function(){return this.JSC$10319_map_.size};
_.S.getValues=function(){return Array.from(this.JSC$10319_map_.values())};
_.S.getKeys=function(){return Array.from(this.JSC$10319_map_.keys())};
_.S.containsKey=function(D){return this.JSC$10319_map_.has(D)};
_.S.containsValue=function(D){return this.getValues().some(function(C){return C==D})};
_.S.equals=function(D,C){var X=this;C=C===void 0?function(c,W){return c===W}:C;
return this===D?!0:this.JSC$10319_map_.size!=D.getCount()?!1:this.getKeys().every(function(c){return C(X.JSC$10319_map_.get(c),D.get(c))})};
_.S.isEmpty=function(){return this.JSC$10319_map_.size==0};
_.S.clear=function(){this.JSC$10319_map_.clear()};
_.S.remove=function(D){return this.JSC$10319_map_.delete(D)};
_.S.get=function(D,C){return this.JSC$10319_map_.has(D)?this.JSC$10319_map_.get(D):C};
_.S.set=function(D,C){this.JSC$10319_map_.set(D,C);return this};
_.S.addAll=function(D){if(D instanceof lF){D=_.U(D.JSC$10319_map_);for(var C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;this.JSC$10319_map_.set(C,X)}}else if(D)for(D=_.U(Object.entries(D)),C=D.next();!C.done;C=D.next())X=_.U(C.value),C=X.next().value,X=X.next().value,this.JSC$10319_map_.set(C,X)};
_.S.forEach=function(D,C){var X=this;C=C===void 0?this:C;this.JSC$10319_map_.forEach(function(c,W){return D.call(C,c,W,X)})};
_.S.clone=function(){return new lF(this)};(function(){for(var D=["ms","moz","webkit","o"],C,X=0;C=D[X]&&!_.co.requestAnimationFrame;++X)_.co.requestAnimationFrame=_.co[C+"RequestAnimationFrame"],_.co.cancelAnimationFrame=_.co[C+"CancelAnimationFrame"]||_.co[C+"CancelRequestAnimationFrame"];if(!_.co.requestAnimationFrame){var c=0;_.co.requestAnimationFrame=function(W){var p=(new Date).getTime(),g=Math.max(0,16-(p-c));c=p+g;return _.co.setTimeout(function(){W(p+g)},g)};
_.co.cancelAnimationFrame||(_.co.cancelAnimationFrame=function(W){clearTimeout(W)})}})();
var Hlq=[[],[]],J0q=0,z24=!1,jSM=0,qrd=function(D,C){var X=jSM++,c={measureTask:{id:X,fn:D.measure,context:C},mutateTask:{id:X,fn:D.mutate,context:C},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(c.args||(c.args=[]),c.args.length=0,c.args.push.apply(c.args,arguments),c.args.push(c.state)):c.args&&c.args.length!=0?(c.args[0]=c.state,c.args.length=1):c.args=[c.state];c.isScheduled||(c.isScheduled=!0,Hlq[J0q].push(c));z24||(z24=!0,window.requestAnimationFrame(Mk4))}},Mk4=
function(){z24=!1;
var D=Hlq[J0q],C=D.length;J0q=(J0q+1)%2;for(var X,c=0;c<C;++c){X=D[c];var W=X.measureTask;X.isScheduled=!1;W.fn&&W.fn.apply(W.context,X.args)}for(c=0;c<C;++c)X=D[c],W=X.mutateTask,X.isScheduled=!1,W.fn&&W.fn.apply(W.context,X.args),X.state={};D.length=0};var f4g=_.q8(["about:blank"]),dO5=_.q8(["javascript:undefined"]),R2d=_.kX(f4g);_.NJ(R2d);var l45=_.kX(dO5);_.NJ(l45);var DF=function(D){_.yg.call(this);this.JSC$10325_element_=D;this.listenKeyIn_=_.Kb(this.JSC$10325_element_,"focus",this,!0);this.listenKeyOut_=_.Kb(this.JSC$10325_element_,"blur",this,!0)};
_.WT(DF,_.yg);DF.prototype.handleEvent=function(D){var C=new _.EC(D.event_);C.type=D.type=="focusin"||D.type=="focus"?"focusin":"focusout";this.dispatchEvent(C)};
DF.prototype.disposeInternal=function(){DF.superClass_.disposeInternal.call(this);Bc(this.listenKeyIn_);Bc(this.listenKeyOut_);delete this.JSC$10325_element_};var DFb=function(D,C){this.JSC$10328_element_=D;this.JSC$10328_dom_=C};var CX=function(D,C){Mq.call(this,C);this.useIframeMask_=!!D;this.lastFocus_=null;this.resizeBackgroundTask_=qrd({mutate:this.resizeBackground_},this);qrd({mutate:this.updateModalAndBackground_},this)};
_.WT(CX,Mq);_.S=CX.prototype;_.S.focusHandler_=null;_.S.visible_=!1;_.S.bgEl_=null;_.S.bgIframeEl_=null;_.S.tabCatcherElement_=null;_.S.backwardTabWrapInProgress_=!1;_.S.getCssClass=function(){return"goog-modalpopup"};
_.S.getBackgroundElement=function(){return this.bgEl_};
_.S.JSC$10309_createDom=function(){CX.superClass_.JSC$10309_createDom.call(this);var D=this.getElement(),C=Po(this.getCssClass()).split(" ");oJ(D,C);D.tabIndex=0;_.Sn(D,!1);CE4(this);X7J(this)};
var CE4=function(D){if(D.useIframeMask_&&!D.bgIframeEl_){var C=D.JSC$10307_dom_.JSC$9493_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.CK(C,R2d);D.bgIframeEl_=C;D.bgIframeEl_.className=D.getCssClass()+"-bg";_.Sn(D.bgIframeEl_,!1);jVk(D.bgIframeEl_,0)}D.bgEl_||(D.bgEl_=D.JSC$10307_dom_.JSC$9493_createDom("DIV",D.getCssClass()+"-bg"),_.Sn(D.bgEl_,!1))},X7J=function(D){D.tabCatcherElement_||(D.tabCatcherElement_=D.JSC$10307_dom_.createElement("SPAN"),_.Sn(D.tabCatcherElement_,
!1),D.tabCatcherElement_.tabIndex=0,D.tabCatcherElement_.style.position="absolute")};
_.S=CX.prototype;_.S.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.S.canDecorate=function(D){return!!D&&D.tagName=="DIV"};
_.S.decorateInternal=function(D){CX.superClass_.decorateInternal.call(this,D);D=Po(this.getCssClass()).split(" ");oJ(this.getElement(),D);CE4(this);X7J(this);this.getElement().tabIndex=0;_.Sn(this.getElement(),!1)};
_.S.enterDocument=function(){this.bgIframeEl_&&_.Ti(this.bgIframeEl_,this.getElement());_.Ti(this.bgEl_,this.getElement());CX.superClass_.enterDocument.call(this);_.Hq(this.tabCatcherElement_,this.getElement());this.focusHandler_=new DF(this.JSC$10307_dom_.JSC$9491_document_);qq(this).listen(this.focusHandler_,"focusin",this.onFocus);c8J(this,!1)};
_.S.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Ue(this.focusHandler_);CX.superClass_.exitDocument.call(this);_.ep(this.bgIframeEl_);_.ep(this.bgEl_);_.ep(this.tabCatcherElement_)};
_.S.setVisible=function(D){if(D!=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_&&c8J(this,D),D){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10307_dom_.JSC$9491_document_.activeElement}catch(W){}this.updateModalAndBackground_();qq(this).listen(this.JSC$10307_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10307_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);orx(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)QK(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){qq(this).unlisten(this.JSC$10307_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10307_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)QK(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var C=this.JSC$10307_dom_,X=C.JSC$9491_document_.body,c=C.JSC$9491_document_.activeElement||X;if(!this.lastFocus_||this.lastFocus_==X){this.lastFocus_=null;break a}(c==X||C.contains(this.getElement(),c))&&this.lastFocus_.focus()}catch(W){}this.lastFocus_=
null}}};
var c8J=function(D,C){D.modalAriaVisibilityHelper_||(D.modalAriaVisibilityHelper_=new DFb(D.JSC$10307_element_,D.JSC$10307_dom_));D=D.modalAriaVisibilityHelper_;if(C){D.hiddenElements_||(D.hiddenElements_=[]);C=D.JSC$10328_dom_.getChildren(D.JSC$10328_dom_.JSC$9491_document_.body);for(var X=0;X<C.length;X++){var c=C[X],W;if(W=c!=D.JSC$10328_element_)W=c.getAttribute("aria-hidden"),W=!(W==null||W==void 0?0:String(W));W&&(fV(c,"hidden",!0),D.hiddenElements_.push(c))}}else if(D.hiddenElements_){for(C=
0;C<D.hiddenElements_.length;C++)D.hiddenElements_[C].removeAttribute("aria-hidden");D.hiddenElements_=null}};
CX.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var orx=function(D,C){D.bgIframeEl_&&_.Sn(D.bgIframeEl_,C);D.bgEl_&&_.Sn(D.bgEl_,C);_.Sn(D.getElement(),C);_.Sn(D.tabCatcherElement_,C)};
_.S=CX.prototype;_.S.onShow=function(){this.dispatchEvent("show")};
_.S.onHide=function(){orx(this,!1);this.dispatchEvent("hide")};
_.S.isVisible=function(){return this.visible_};
_.S.focus=function(){this.focusElement_()};
_.S.resizeBackground_=function(){this.bgIframeEl_&&_.Sn(this.bgIframeEl_,!1);this.bgEl_&&_.Sn(this.bgEl_,!1);var D=this.JSC$10307_dom_.JSC$9491_document_;var C=_.eo(Tv(this.JSC$10307_dom_.JSC$9491_document_)||window);var X=Math.max(C.width,Math.max(D.body.scrollWidth,D.documentElement.scrollWidth));D=Math.max(C.height,Math.max(D.body.scrollHeight,D.documentElement.scrollHeight));this.bgIframeEl_&&(_.Sn(this.bgIframeEl_,!0),_.TVe(this.bgIframeEl_,X,D));this.bgEl_&&(_.Sn(this.bgEl_,!0),_.TVe(this.bgEl_,
X,D))};
_.S.reposition=function(){var D;if(_.VoJ(this.getElement())=="fixed")var C=D=0;else C=EF(this.JSC$10307_dom_),D=C.x,C=C.y;var X=JpC(this.getElement());var c=_.eo(Tv(this.JSC$10307_dom_.JSC$9491_document_)||window);D=Math.max(D+c.width/2-X.width/2,0);C=Math.max(C+c.height/2-X.height/2,0);fL(this.getElement(),D,C);fL(this.tabCatcherElement_,D,C)};
_.S.onFocus=function(D){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():D.target==this.tabCatcherElement_&&Gg(this.focusElement_,0,this)};
_.S.focusElement_=function(){try{this.getElement().focus()}catch(D){}};
_.S.disposeInternal=function(){_.Ue(this.popupShowTransition_);this.popupShowTransition_=null;_.Ue(this.popupHideTransition_);this.popupHideTransition_=null;_.Ue(this.bgShowTransition_);this.bgShowTransition_=null;_.Ue(this.bgHideTransition_);this.bgHideTransition_=null;CX.superClass_.disposeInternal.call(this)};var Md=function(D,C,X){CX.call(this,C,X);this.JSC$10338_class_=D||"modal-dialog";this.buttons_=(new XM).addButton(WPq,!0).addButton(p7g,!1,!0)};
_.WT(Md,CX);_.S=Md.prototype;_.S.escapeToCancel_=!0;_.S.hasTitleCloseButton_=!0;_.S.modal_=!0;_.S.draggable_=!0;_.S.backgroundElementOpacity_=.5;_.S.title_="";_.S.JSC$10340_dragger_=null;_.S.JSC$10340_disposeOnHide_=!1;_.S.titleEl_=null;_.S.titleTextEl_=null;_.S.titleTextId_=null;_.S.titleCloseEl_=null;_.S.contentEl_=null;_.S.buttonEl_=null;_.S.getCssClass=function(){return this.JSC$10338_class_};
_.S.setTitle=function(D){this.title_=D;this.titleTextEl_&&_.zi(this.titleTextEl_,D)};
_.S.getTitle=function(){return this.title_};
_.S.getContent=function(){return""};
_.S.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Sn5=function(D){D.getElement()||D.render();return D.getElement()};
Md.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Md.superClass_.getBackgroundElement.call(this)};
var UFe=function(D,C){D.backgroundElementOpacity_=C;D.getElement()&&(C=D.getBackgroundElement())&&jVk(C,D.backgroundElementOpacity_)};
Md.prototype.setDraggable=function(D){this.draggable_=D;grq(this,D&&this.inDocument_)};
Md.prototype.handleDrag=function(){};
var grq=function(D,C){var X=Po(D.JSC$10338_class_+"-title-draggable").split(" ");D.getElement()&&(C?oJ(D.titleEl_,X):nhC(D.titleEl_,X));C&&!D.JSC$10340_dragger_?(C=new _.dt(D.getElement(),D.titleEl_),D.JSC$10340_dragger_=C,oJ(D.titleEl_,X),_.Kb(D.JSC$10340_dragger_,"start",D.setDraggerLimits_,!1,D),_.Kb(D.JSC$10340_dragger_,"drag",D.handleDrag,!1,D)):!C&&D.JSC$10340_dragger_&&(D.JSC$10340_dragger_.dispose(),D.JSC$10340_dragger_=null)};
_.S=Md.prototype;
_.S.JSC$10309_createDom=function(){Md.superClass_.JSC$10309_createDom.call(this);var D=this.getElement(),C=this.JSC$10307_dom_;this.titleTextId_=this.getId();var X=this.getId()+".contentEl";this.titleEl_=C.JSC$9493_createDom("DIV",this.JSC$10338_class_+"-title",this.titleTextEl_=C.JSC$9493_createDom("SPAN",{className:this.JSC$10338_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=C.JSC$9493_createDom("SPAN",this.JSC$10338_class_+"-title-close"));byM(D,this.titleEl_,this.contentEl_=
C.JSC$9493_createDom("DIV",{className:this.JSC$10338_class_+"-content",id:X}),this.buttonEl_=C.JSC$9493_createDom("DIV",this.JSC$10338_class_+"-buttons"));na5(this.titleTextEl_,"heading");na5(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;fV(this.titleCloseEl_,"label","Close");na5(D,"dialog");fV(D,"labelledby",this.titleTextId_||"");_.Sn(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(D=this.buttons_,D.JSC$10341_element_=this.buttonEl_,D.render());_.Sn(this.buttonEl_,!!this.buttons_);
UFe(this,this.backgroundElementOpacity_)};
_.S.decorateInternal=function(D){Md.superClass_.decorateInternal.call(this,D);D=this.getElement();var C=this.JSC$10338_class_+"-content";this.contentEl_=nL(document,null,C,D)[0];this.contentEl_||(this.contentEl_=this.JSC$10307_dom_.JSC$9493_createDom("DIV",C),D.appendChild(this.contentEl_));C=this.JSC$10338_class_+"-title";var X=this.JSC$10338_class_+"-title-text",c=this.JSC$10338_class_+"-title-close";(this.titleEl_=nL(document,null,C,D)[0])?(this.titleTextEl_=nL(document,null,X,this.titleEl_)[0],
this.titleCloseEl_=nL(document,null,c,this.titleEl_)[0]):(this.titleEl_=this.JSC$10307_dom_.JSC$9493_createDom("DIV",C),D.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=nXq(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.FD("SPAN",{className:X,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;fV(D,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10307_dom_.JSC$9493_createDom("SPAN",c),this.titleEl_.appendChild(this.titleCloseEl_));_.Sn(this.titleCloseEl_,this.hasTitleCloseButton_);C=this.JSC$10338_class_+"-buttons";(this.buttonEl_=nL(document,null,C,D)[0])?(this.buttons_=new XM(this.JSC$10307_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10307_dom_.JSC$9493_createDom("DIV",C),D.appendChild(this.buttonEl_),this.buttons_&&(D=this.buttons_,D.JSC$10341_element_=this.buttonEl_,D.render()),_.Sn(this.buttonEl_,
!!this.buttons_));UFe(this,this.backgroundElementOpacity_)};
_.S.enterDocument=function(){Md.superClass_.enterDocument.call(this);qq(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);qq(this).listen(this.buttonEl_,"click",this.onButtonClick_);grq(this,this.draggable_);qq(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var D=this.getElement();na5(D,"dialog");this.titleTextEl_.id!==""&&fV(D,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){D=this.JSC$10307_dom_;
var C=this.getBackgroundElement();D.removeNode(this.bgIframeEl_);D.removeNode(C)}this.isVisible()&&c8J(this,!1)}};
_.S.exitDocument=function(){this.isVisible()&&this.setVisible(!1);grq(this,!1);Md.superClass_.exitDocument.call(this)};
_.S.setVisible=function(D){D!=this.isVisible()&&(this.inDocument_||this.render(),Md.superClass_.setVisible.call(this,D))};
_.S.onShow=function(){Md.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.S.onHide=function(){Md.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10340_disposeOnHide_&&this.dispose()};
_.S.setDraggerLimits_=function(){var D=this.JSC$10307_dom_.JSC$9491_document_,C=_.eo(Tv(D)||window),X=Math.max(D.body.scrollWidth,C.width);D=Math.max(D.body.scrollHeight,C.height);var c=JpC(this.getElement());_.VoJ(this.getElement())=="fixed"?this.JSC$10340_dragger_.limits=new j$(0,0,Math.max(0,C.width-c.width),Math.max(0,C.height-c.height)):this.JSC$10340_dragger_.limits=new j$(0,0,X-c.width,D-c.height)};
_.S.onTitleCloseClick_=function(){auC(this)};
var auC=function(D){if(D.hasTitleCloseButton_){var C=D.buttons_,X=C&&C.cancelButton_;X?(C=C.get(X),D.dispatchEvent(new c6(X,C))&&D.setVisible(!1)):D.setVisible(!1)}},Iuq=function(D){D.hasTitleCloseButton_=!1;
D.titleCloseEl_&&_.Sn(D.titleCloseEl_,D.hasTitleCloseButton_)};
Md.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Md.superClass_.disposeInternal.call(this)};
Md.prototype.onButtonClick_=function(D){a:{for(D=D.target;D!=null&&D!=this.buttonEl_;){if(D.tagName=="BUTTON")break a;D=D.parentNode}D=null}if(D&&!D.disabled){D=D.name;var C=this.buttons_.get(D);this.dispatchEvent(new c6(D,C))&&this.setVisible(!1)}};
Md.prototype.onKey_=function(D){var C=!1,X=!1,c=this.buttons_,W=D.target;if(D.type=="keydown")if(this.escapeToCancel_&&D.keyCode==27){var p=c&&c.cancelButton_;W=W.tagName=="SELECT"&&!W.disabled;p&&!W?(X=!0,C=c.get(p),C=this.dispatchEvent(new c6(p,C))):W||(C=!0)}else{if(D.keyCode==9&&D.shiftKey&&W==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(k){}Gg(this.resetBackwardTabWrap_,0,this)}}else if(D.keyCode==13){if(W.tagName=="BUTTON"&&!W.disabled)p=W.name;
else if(W==this.titleCloseEl_)auC(this);else if(c){var g=c.defaultButton_,a;if(a=g)a:{a=Ee("BUTTON",c.JSC$10341_element_);for(var O,P=0;O=a[P];P++)if(O.name==g||O.id==g){a=O;break a}a=null}W=(W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="A")&&!W.disabled;!a||a.disabled||W||(p=g)}p&&c&&(X=!0,C=this.dispatchEvent(new c6(p,String(c.get(p)))))}else W!=this.titleCloseEl_||D.keyCode!=32&&D.key!=" "||auC(this);if(C||X)D.stopPropagation(),D.preventDefault();C&&this.setVisible(!1)};
var c6=function(D,C){this.type="dialogselect";this.key=D;this.caption=C};
_.WT(c6,_.eL);var XM=function(D){lF.call(this);D||tp();this.cancelButton_=this.JSC$10341_element_=this.defaultButton_=null};
_.WT(XM,lF);_.S=XM.prototype;_.S.clear=function(){lF.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.S.set=function(D,C,X,c){lF.prototype.set.call(this,D,C);X&&(this.defaultButton_=D);c&&(this.cancelButton_=D);return this};
_.S.addButton=function(D,C,X){return this.set(D.key,D.caption,C,X)};
_.S.render=function(){if(this.JSC$10341_element_){_.aG(this.JSC$10341_element_,ai3);var D=tp(this.JSC$10341_element_);this.forEach(function(C,X){C=D.JSC$9493_createDom("BUTTON",{name:X},C);X==this.defaultButton_&&(C.className="goog-buttonset-default");this.JSC$10341_element_.appendChild(C)},this)}};
_.S.decorate=function(D){if(D&&D.nodeType==1){this.JSC$10341_element_=D;D=Ee("BUTTON",this.JSC$10341_element_);for(var C,X,c,W=0;C=D[W];W++)if(X=C.name||C.id,c=nXq(C)||C.value,X){var p=W==0;this.set(X,c,p,C.name=="cancel");p&&_.q_(C,"goog-buttonset-default")}}};
_.S.getElement=function(){return this.JSC$10341_element_};
var WPq={key:"ok",caption:"OK"},p7g={key:"cancel",caption:"Cancel"},ONC={key:"yes",caption:"Yes"},A8C={key:"no",caption:"No"},PE5={key:"save",caption:"Save"},$Fg={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new XM).addButton(WPq,!0,!0),(new XM).addButton(WPq,!0).addButton(p7g,!1,!0),(new XM).addButton(ONC,!0).addButton(A8C,!1,!0),(new XM).addButton(ONC).addButton(A8C,!0).addButton(p7g,!1,!0),(new XM).addButton($Fg).addButton(PE5).addButton(p7g,!0,!0));_.WT(lfj,Md);_.WT(DXj,qd);var vrJ=_.q8(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),iNb=_.q8(["//apis.google.com/js/rpc.js"]),gho=_.kX(vrJ),UXo=_.kX(iNb),Xzd=null;var fF=function(D,C){_.yg.call(this);this.JSC$10350_element_=D;D=_.OU(this.JSC$10350_element_)?this.JSC$10350_element_:this.JSC$10350_element_?this.JSC$10350_element_.body:null;this.isRtl_=!!D&&_.Mo4(D);this.listenKey_=_.Kb(this.JSC$10350_element_,_.ak?"DOMMouseScroll":"mousewheel",this,C)};
_.WT(fF,_.yg);fF.prototype.handleEvent=function(D){var C=0,X=0,c=D.event_;c.type=="mousewheel"?(D=kCb(-c.wheelDelta),c.wheelDeltaX!==void 0?(C=kCb(-c.wheelDeltaX),X=kCb(-c.wheelDeltaY)):X=D):(D=c.detail,D>100?D=3:D<-100&&(D=-3),c.axis!==void 0&&c.axis===c.HORIZONTAL_AXIS?C=D:X=D);typeof this.maxDeltaX_==="number"&&(C=_.N8(C,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(X=_.N8(X,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(C=-C);C=new uoM(D,c,C,X);this.dispatchEvent(C)};
var kCb=function(D){return _.Ik&&(_.MZk||fn5)&&D%40!=0?D:D/40};
fF.prototype.disposeInternal=function(){fF.superClass_.disposeInternal.call(this);Bc(this.listenKey_);this.listenKey_=null};
var uoM=function(D,C,X,c){_.EC.call(this,C);this.type="mousewheel";this.detail=D;this.deltaX=X;this.deltaY=c};
_.WT(uoM,_.EC);_.ly=function(D){var C="instance_";if(D.instance_&&D.hasOwnProperty(C))return D.instance_;C=new D;return D.instance_=C};var SHR;var QBx=_.q8(["https://about:blank"]),Blk=_.q8(['javascript:""']),bNC=_.q8(["about:blank"]);_.WT(Uz,lfj);_.S=Uz.prototype;_.S.JSC$10358_url_="";_.S.JSC$10358_iframe_=null;_.S.iframeLoaded_=!1;_.S.loadedFired_=!1;_.S.callback_=function(){};
_.S.enterDocument=function(){Uz.superClass_.enterDocument.call(this);WI3(this.getBackgroundElement(),qq(this))};
_.S.render=function(D){var C=this;Uz.superClass_.render.call(this,D);this.useGapi_?blM(this.iframeManager_,window).then(function(){return r85(C)}).then(null,function(){C.callback_({action:"error"})}):KPd(this)};
var r85=function(D){var C=D.JSC$10307_dom_.JSC$9493_createDom("div",["picker-dialog-content","picker-frame"]);_.Sn(C,!1);D.getContentElement().appendChild(C);return r0g(D.iframeManager_,C,function(X){var c=ZF5(X["iframe-command"]);switch(c.getCommand()){case 1:X=D.callback_;c=_.Bz(c,A3,2);var W="";switch(c.getStatus()){case 2:W="cancel";break;case 1:W="picked";break;case 3:W="error"}var p=_.Ih(c,x5,2,_.AR(Qq4));c=p.length===0?{action:W}:c0N(p,W,_.Bz(c,nTd,7));X.call(D,c);D.setVisible(!1);break;case 4:Iuq(D);
D.callback_({action:"loaded"});break;case 7:case 8:X=D.callback_;a:{W=c.getCommand();p=_.Bz(c,A3,2);switch(W){case 7:W="uploadScheduled";break;case 8:W="uploadStateChange";break;default:c={};break a}c=_.Ih(p,x5,2,_.AR(Qq4));if(c.length===0)c={action:W};else{var g=_.Bz(p,nTd,7);p=g&&_.EG(g,1);g=zLM(g);c=q6b(c,W,p,g)}}X.call(D,c)}},D.JSC$10358_url_,D.targetId_,D.rpcToken_).then(function(X){D.JSC$10358_iframe_=X.getIframeEl();
hIb(D);_.Sn(D.JSC$10358_iframe_.parentElement,!0);_.q_(D.getElement(),"picker-dialog");xFb(D);return X})},KPd=function(D){D.JSC$10358_iframe_=D.JSC$10307_dom_.JSC$9493_createDom("IFRAME",{id:D.targetId_,
name:D.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.CK(D.JSC$10358_iframe_,LPM(D));_.q_(D.getElement(),"picker-dialog");D.getContentElement().appendChild(D.JSC$10358_iframe_);qq(D).listen(D.JSC$10358_iframe_,"load",function(){return void hIb(D)});
D.JSC$10358_iframe_.src=D.JSC$10358_url_;xFb(D)},mFx=function(D){sBb(D,(0,_.wo)(function(C){C.setAuthToken(this.targetId_,this.rpcToken_)},D))},xFb=function(D){var C=_.ce(_.Xg(D.JSC$10358_url_),"title");
C&&D.setTitle(C)},LPM=function(D){return _.bhn("Internet Explorer")>=7&&_.Wo(D.JSC$10358_url_,"https")?_.kX(QBx):_.g1?_.kX(Blk):_.kX(bNC)},hIb=function(D){mFx(D);
D.iframeLoaded_=!0;D.JSC$10358_iframe_.tabIndex=0;D.isVisible()&&D.focus()};
Uz.prototype.handleKeydown_=function(D){D.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),D.stopPropagation(),D.preventDefault())};
var sBb=function(D,C){var X=D.JSC$10356_gadgetsDomHelper_;cCr(function(){C(X.getWindow().gadgets.rpc)},X)};
Uz.prototype.setUrl=function(D){D=_.oA(new _.H7(D),"rpcService",this.targetId_);_.oA(D,"rpctoken",this.rpcToken_);_.kx(D,"rpctoken="+this.rpcToken_);_.As(D,"https");this.JSC$10358_url_=D.toString();this.JSC$10358_iframe_&&(this.JSC$10358_iframe_.src=this.JSC$10358_url_)};
var eI5=function(D,C){D.callback_=C;sBb(D,(0,_.wo)(function(X){X.register(this.targetId_,(0,_.wo)(this.handlePickerAction_,this))},D))};
Uz.prototype.handlePickerAction_=function(D){var C=D.action;C=="loaded"&&(this.loadedFired_=!0,Erc(this,new RGZ(this.isVisible())),tcc(this),Iuq(this),qq(this).unlisten(this.JSC$10307_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10358_iframe_.tabIndex=0);C!="picked"&&C!="cancel"||this.setVisible(!1);this.callback_(D)};
var tcc=function(D){D.JSC$10358_appId_&&Erc(D,new dGh(D.JSC$10358_appId_,window.location.protocol+"//"+window.location.host))};
Uz.prototype.setRelayUrl=function(D){sBb(this,(0,_.wo)(function(C){C.setRelayUrl(this.targetId_,D)},this))};
var Erc=function(D,C){D.useGapi_&&sSd(C,D.iframeManager_).then(null,function(){D.callback_({action:"error"})});
sBb(D,(0,_.wo)(function(X){X.call(this.targetId_,"picker",null,C)},D))};
Uz.prototype.resizePicker_=function(){var D=Tv(this.JSC$10307_dom_.JSC$9491_document_)||window;if(_.ce(_.Xg(this.JSC$10358_url_),"ignoreLimits")=="true")D=new _.me(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.ce(_.Xg(this.JSC$10358_url_),"shadeDialog")=="true"){var C=Sn5(this);C=qFf(C);var X=_.eo(D);D=X.width-80;X=X.height-40;C&&(D-=C.left?C.left:0,D-=C.right?C.right:0,X-=C.top?C.top:0,X-=C.bottom?C.bottom:0);D=new _.me(D>0?D:0,X>0?X:0)}else(C=this.preferredDialogWidth_)?(C=Math.max(320,
Math.min(1051,C)),(X=this.preferredDialogHeight_)||(X=_.eo(D).height*.85),X=Math.max(480,Math.min(650,X))):(C=_.eo(D),X=C.width*.618,X=X<C.height?Math.round(Math.max(480,Math.min(650,X*.85))):Math.round(Math.max(480,Math.min(650,C.height*.85))),C=Math.round(X/.618)),D=_.eo(D),C=Math.min(C,Math.max(D.width,320)),X=Math.min(X,Math.max(D.height,480)),D=new _.me(C,X);_.TVe(this.getContentElement(),D);this.reposition()};
Uz.prototype.reposition=function(){if(_.ce(_.Xg(this.JSC$10358_url_),"shadeDialog")=="true"){var D=JpC(this.getElement()),C=_.eo(this.JSC$10307_dom_.getWindow());D=Math.floor(C.width/2-D.width/2);C=Sn5(this);if(C=qFf(C)){var X=C.left?C.left:0;X+=C.right?C.right:0;D=Math.floor(D-X/2)}D=D>0?D:0;C=EF(this.JSC$10307_dom_).y;fL(this.getElement(),D,C)}else Uz.superClass_.reposition.call(this)};
Uz.prototype.setVisible=function(D){if(D!=this.isVisible()&&this.autoSizeDialog_){var C=this.JSC$10307_dom_.getWindow();D?(this.resizePicker_(),qq(this).listen(C,"resize",this.resizePicker_),this.iframeLoaded_||qq(this).listen(C,"keydown",this.handleKeydown_)):(qq(this).unlisten(C,"resize",this.resizePicker_),this.iframeLoaded_||qq(this).unlisten(C,"keydown",this.handleKeydown_))}Uz.superClass_.setVisible.call(this,D);Erc(this,new RGZ(D))};
Uz.prototype.focus=function(){Uz.superClass_.focus.call(this);if(this.JSC$10358_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10358_iframe_.focus()}catch(D){}};var uj=function(D,C){C=C===void 0?Uz:C;qd.call(this,D);this.pickerConstructor=C;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(D=window.location.origin)||(D=window.location.protocol+"//"+window.location.host);D&&this.urlParamMap_.set("origin",D);this.postProcessors_=[]};
_.h(uj,DXj);uj.prototype.JSC$10363_disposeOnHide_=!1;
uj.prototype.build=function(){this.JSC$10264_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10264_appId_);this.getRelayUrl()||this.setRelayUrl(_.vP(_.kx(_.iF(_.Xg(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var D=new this.pickerConstructor(Nle(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);D.JSC$10340_disposeOnHide_=this.JSC$10363_disposeOnHide_;
D.JSC$10358_appId_=this.JSC$10264_appId_;D.loadedFired_&&tcc(D);eI5(D,this.callback_);return D};
var Yn4=function(D){D.urlParamMap_.set("multiselectEnabled","true");return D};
_.S=uj.prototype;_.S.getHeight=function(){return this.dialogHeight_};
_.S.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.S.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.S.getTitle=function(){return this.urlParamMap_.get("title")};
_.S.getWidth=function(){return this.dialogWidth_};
var y8d=function(D){D.JSC$10363_disposeOnHide_=void 0;return D};
uj.prototype.setRelayUrl=function(D){this.urlParamMap_.set("parent",D);return this};
var nrq=function(D,C){D.urlParamMap_.set("selectButtonLabel",C);return D};
uj.prototype.setSize=function(D,C){this.dialogWidth_=D;this.dialogHeight_=C;return this};
uj.prototype.setTitle=function(D){this.urlParamMap_.set("title",D);return this};
var Nle=function(D){D.postProcessors_.length&&D.urlParamMap_.set("pp",JSON.stringify(D.postProcessors_));D.urlParamMap_.set("nav",Vfc(D.nav_));var C=new _.H7(D.getBaseUrl());D.urlParamMap_.forEach(function(X,c){_.oA(C,c,X)});
return C};var ZNC=function(D,C){D.name!==void 0?(this.name=D.name,this.code=w7x[D.name]):(this.code=D=D.code,this.name=FPM(D));_.Dn.call(this,Sub("%s %s",this.name,C))};
_.WT(ZNC,_.Dn);var FPM=function(D){var C=_.ZI.findKey(w7x,function(X){return D==X});
if(C===void 0)throw Error("hb`"+D);return C},oN={},w7x=(oN.AbortError=3,oN.EncodingError=5,oN.InvalidModificationError=9,oN.InvalidStateError=7,oN.NotFoundError=1,oN.NotReadableError=4,oN.NoModificationAllowedError=6,oN.PathExistsError=12,oN.QuotaExceededError=10,oN.SecurityError=2,oN.SyntaxError=8,oN.TypeMismatchError=11,oN);var GCg=function(D,C){_.eL.call(this,D.type,C);this.event_=D};
_.WT(GCg,_.eL);var Vck=function(D,C,X){X===void 0&&(X=D.size);return D.slice?D.slice(C,X):null};var Oqt=new WeakMap,IiJ=function(D,C){D=[D];for(var X=C.length-1;X>=0;--X)D.push(typeof C[X],C[X]);return D.join("\v")};_.PlJ(function(){if(!_.co.Blob)return!1;var D=new Uint8Array(100);try{var C=new Blob([D])}catch(X){return!1}return C.size!=100?!1:!0});
var Tlc=_.PlJ(function(){if(!_.co.Blob)return!1;var D=new Uint8Array(100);try{var C=new Blob([D])}catch(X){return!1}return Vck(C,0,1)===null?!1:!0});_.co.U3bHHf!=null||(_.co.U3bHHf=0);_.co.U3bHHf++;_.HNM=new WeakMap;_.J85=new WeakMap;var vhJ={};var IA=void 0;var kbh=Symbol("pb");var Eh3=Pe("WizInjectionContext_Dispatcher");var iq=Symbol("qb");var ej,n7;ej=function(){this.afterRenderCallbacks=null};
_.r8h=Symbol("rb");n7=function(D){this.props=D;this.__unmounted=!1};
n7.prototype.didPatch=function(){};
n7.prototype.didMount=function(){};
n7.prototype.didUnmount=function(){};
n7.prototype.didUpdate=function(){};_.xXm=Pe("WizInjectionContext_RootElement");var spZ=Pe("WizInjectionContext_AppContext"),LIm=Pe("WizInjectionContext_ModelRootElement"),mXJ=Pe("WizInjectionContext_RendererData"),ext=Pe("WizInjectionContext_InjectingConstructor"),hxm=Pe("WizInjectionContext_AsyncDeps"),tRJ={};var FIn=!1;var TDn={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:VZc,enableContextPerComponent:VZc,enableLazyTsx:T55,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:GJf,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var ve=Object.assign({},{attributes:{},handleError:function(D){throw D;}},TDn);var zIf=Symbol("vb"),ZH=Symbol("wb"),jiZ=Symbol("xb"),JYJ=Symbol("yb"),DIn=wx(function(D){return xU(D)&&zIf in D});var ih=null,uh=!1,Be=1,Ki=Symbol("Cb"),Ez={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var W6=Symbol("Db"),pX=Symbol("Eb"),r8=Symbol("Fb"),olm=Object.assign({},Ez,{value:W6,dirty:!0,error:null,equal:MRh,kind:"computed",producerMustRecompute:function(D){return D.value===W6||D.value===pX},
producerRecomputeValue:function(D){if(D.value===pX)throw Error("Z");var C=D.value;D.value=pX;var X=CwZ(D),c=!1;try{var W=D.computation();kU(null);c=C!==W6&&C!==r8&&W!==r8&&D.equal(C,W)}catch(p){W=r8,D.error=p}finally{kU(X),D&&cYR(D)}c?D.value=C:(D.value=W,D.version++)}});var jBc=Object.assign({},Ez,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var UNd=function(){throw Error();};var aoZ=null,pLF=Object.assign({},Ez,{equal:MRh,value:void 0,kind:"signal"});var IoJ=Object.assign({},Ez,{value:W6,dirty:!0,error:null,equal:MRh,kind:"linkedSignal",producerMustRecompute:function(D){return D.value===W6||D.value===pX},
producerRecomputeValue:function(D){if(D.value===pX)throw Error("Z");var C=D.value;D.value=pX;var X=CwZ(D);try{var c=D.source();var W=D.computation(c,C===W6||C===r8?void 0:{source:D.sourceValue,value:C});D.sourceValue=c}catch(p){W=r8,D.error=p}finally{kU(X),D&&cYR(D)}C!==W6&&W!==r8&&D.equal(C,W)?D.value=C:(D.value=W,D.version++)}});Object.assign({},Ez,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(D){D.schedule!==null&&D.schedule(D.ref)},
cleanupFn:function(){}});var kut=Symbol("Gb"),SG={},$NF=(SG[kut]=!0,SG.debugName="[component]",SG.getComponentStack=function(){for(var D=[],C=this;C;)u3t(C)&&D.push(C.debugName),C=C.parent;return D},SG.registerSignal=function(){},SG.registerEffect=function(){},SG);var Qij=Symbol("Hb"),sz=Symbol("Ib");var m5=Array.isArray;var mN5;var Mcq={},ElW=si5(Object.assign({},{consumerAllowSignalWrites:!0},Mcq)),tU=si5(Object.assign({},{consumerAllowSignalWrites:!0},Mcq));var yv=Symbol("Nb");var YU=null,YUF,yYn=null,nln;var G3=0,Vv=!1,UL=function(){this.queue=new Set};
UL.prototype.schedule=function(D){this.queue.add(D)};
UL.prototype.remove=function(D){this.queue.delete(D)};
UL.prototype.clear=function(){this.queue.clear()};
var Guo=Symbol("Ob"),FMm=Symbol("Pb"),gF=function(){UL.apply(this,arguments)};
_.h(gF,UL);gF.prototype.flush=function(){if(this.queue.size){Vv=!0;for(var D=_.U(this.queue),C=D.next();!C.done;C=D.next()){C=C.value;this.queue.delete(C);try{C.run()}catch(X){qnc(X)}}Vv=!1}};
var fug=function(){gF.apply(this,arguments)};
_.h(fug,gF);var ZQh=new fug,dF5=function(){gF.apply(this,arguments)};
_.h(dF5,gF);dF5.prototype.schedule=function(D){return _.I(function(C){if(C.nextAddress==1)return C.yield(Promise.resolve(),2);D.run();_.t_(C)})};
dF5.prototype.enqueue=function(D){this.queue.add(D)};
var Vem=new dF5,aN=function(){UL.apply(this,arguments)};
_.h(aN,UL);aN.prototype.flush=function(){this.queue.size&&CVo(this.queue)};
var RI4=function(){aN.apply(this,arguments)};
_.h(RI4,aN);RI4.prototype.schedule=function(D){D.version===0?D.run():this.queue.add(D)};
RI4.prototype.flush=function(){if(this.queue.size)if(ve.flushRenderEffectsDuringRender){var D=this.queue;this.queue=new Set;CVo(D)}else CVo(this.queue)};
var HQm=new RI4,luk=function(){aN.apply(this,arguments)};
_.h(luk,aN);luk.prototype.schedule=function(D){return _.I(function(C){if(C.nextAddress==1)return C.yield(Promise.resolve(),2);D.run();_.t_(C)})};
luk.prototype.enqueue=function(D){this.queue.add(D)};
var MeZ=new luk,DCe=function(){aN.apply(this,arguments)};
_.h(DCe,aN);var zaW=new DCe,foW=[HQm,ZQh,zaW],loF=[Vem,MeZ],C5x=[HQm,zaW,MeZ],Xfr=[].concat(_.VB(foW),_.VB(loF)),XEN=[];aoZ=function(){Rar();for(var D=_.U(XEN),C=D.next();!C.done;C=D.next())C=C.value,C()};
var qnc=om;var IN={},cZJ=Object.assign({},jBc,(IN[zIf]=!0,IN.effectType=ZH,IN.isResettableContext=!0,IN.consumerMarkedDirty=qUt,IN.run=function(){obt(this)},IN.cleanup=function(){KIn(this)},IN.componentStack=void 0,IN.debugName="[effect]",IN.destroy=function(){if(Qv(this))for(var D=this.producers;D!==void 0;)D=XLr(D);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;D=_.U(C5x);for(var C=D.next();!C.done;C=D.next())C.value.remove(this);rCr(this)},IN[Symbol.dispose]=function(){this.destroy()},IN)),oCg=Object.assign({},cZJ,{version:1,
dirty:!1});var WRt=Object.assign({},cZJ,{effectType:ZH});var pfm=Object.assign({},cZJ,{effectType:jiZ});var xIo=Symbol("Rb");var UOW=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var mIJ={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},sXm=
{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}]}},bXh={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},tfR=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Ebj={"*":{async:1,dir:0,loading:2,target:3}};var WUM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,OL={},Y6j=(OL[1]=null,OL[2]=function(D,C){return C instanceof dj?lU(C):Td.toString()},OL[3]=function(D,C){return Fm(C)?_.Z6(C):WUM.test(String(C))?String(C):Td.toString()},OL[4]=function(D,C){return C instanceof EB?_.NJ(C):Td.toString()},OL[5]=function(D,C){return String(C)},OL[7]=null,OL[8]=null,OL[10]=null,OL);var saW=Symbol("Ub");var iSW=function(D){var C=pEq,X=D,c="",W="",p=1;D<0&&(D=-D);if(D===Infinity)D=(Infinity*Math.sign(X)).toString();else{for(var g=0;g<Sp5.length;g++){var a=Sp5[g];p=C[a];if(D>=p||p<=1&&D>.1*p){c=a;break}}c?(c+="B",W=" "):p=1;D=Math.round(X/p*10)/10+W+c}return D},Sp5="Y Z E P T G M K  m u n".split(" "),pEq={"":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};_.UC5=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 rq={};RegExp.prototype.hasOwnProperty("sticky");var a4F=function(D){D=String(D);for(var C=function(c,W,p){for(var g=Math.min(W.length-p,c.length),a=0;a<g;a++){var O=W[p+a];if(c[a]!==("A"<=O&&O<="Z"?O.toLowerCase():O))return!1}return!0},X=0;(X=D.indexOf("<",X))!=-1;){if(C("\x3c/script",D,X)||C("\x3c!--",D,X))return"zSoyz";
X+=1}return D};var Dh={default:"__default"};var G5d=Object.prototype.hasOwnProperty;wfj.prototype=Object.create(null);var $b=H25();var OO=null;var CQm=function(D){this.created=[];this.deleted=[];this.node=D};var XHm=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var D=this,C=D;D;)C=D,D=D.parentNode;return C};var zLo=function(D,C){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=D;this.key=C;this.text=void 0};var p7=null,Sj=null,oe=null,gq=null,dIt=[],f03=MfR,ae=[],Ie=[],LYj=function(D){return c0J(function(C,X,c){oe=Sj=C;Sj=null;X(c);q6t(null);Sj=oe;oe=oe.parentNode;return C},D)}(),xH3=function(D){return c0J(function(C,X,c){var W={nextSibling:C};
Sj=W;X(c);oe&&q6t(C.nextSibling);return W===Sj?null:Sj},D)}();var AU=[],WFr=0;var P2=new wfj;var s4=new wfj;var gCc=H25(),A0F=gCc[Dh.default],Ol3=gCc.style,gaj=["focusin","focusout"],vaj="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var X7r=function(){},J0m=function(){},SnF=function(){},or5=function(){};var v2=Symbol("bc");var Brd,QSt=u2o;var xQ=Symbol("cc");var p7j=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(" ")),
WPm=new Set(["a","font","script","style","title"]);_.hU={setUp:Yr5,tearDown:Yr5,log:Yr5,logNodeRange:Yr5,graft:function(D,C){C()}};var N6={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var YQ=null,y2=function(D,C){n7.call(this,D);var X=this;this.functionComponent=C;this.hooks=[];this.hookCounter=0;this.disposeEffects=jn(function(c){X.effectContext=c;_.z3(function(){qrm(X,X.el)})},ve.alwaysTrackContexts||!!IA)};
_.h(y2,n7);y2.prototype.render=function(D){var C=YQ;YQ=this;this.hookCounter=0;var X=kU(tU),c=_.Oz(this.effectContext);try{return JCd("render",this.componentName),this.functionComponent(D)}finally{zxr("render",this.componentName),_.Oz(c),kU(X),YQ=C}};
_.$a.Object.defineProperties(y2.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return teo(this.functionComponent)}}});var UFd=Symbol("qc"),DFt=function(D,C,X){this.afterRenderCallbacks=null;this.kind=D;this.props=C;this.children=X};
_.h(DFt,ej);DFt.prototype.render=function(){var D=l4F(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var C=_.U(this.afterRenderCallbacks),X=C.next();!X.done;X=C.next())X=X.value,D=X(D);return D};
DFt.prototype.getChildren=function(){return this.children};var auZ=[];UNd=function(D){throw Error("ob`"+D.debugName);};
(function(){var D=OO;OO=function(C){D==null||D(C);Ium(C)}})();Object.assign({},oCg,{effectType:ZH,elementRef:null,attributes:null,fn:function(){var D=this.elementRef;var C;D.element!=null||(D.element=(C=D.document.getElementById(D.value))!=null?C:void 0);D=D.element;for(C=this.attributes;C;){var X=C.signal();X!==C.prevValue&&(C.prevValue=X,C.namespace===1?D[C.name]=X:UOW.has(C.name)?lh(D,C.name,X?"":null):lh(D,C.name,X));C=C.next}}});_.wq.debugName="tbhMcf";_.Fr.debugName="zyMFzb";Object.assign({},oCg,{effectType:ZH});_.v.debugName="RlDudd";var ONZ={nonNullableCondIsNull:function(){return Error("uc")}};var uoo=function(){this.map=new Map};
uoo.prototype.push=function(D,C){var X=this.map;X.has(D)&&(this.multi||(this.multi=new Map),this.multi.set(C,X.get(D)));X.set(D,C)};
uoo.prototype.pop=function(D){var C=this.map,X=C.get(D),c;X!==void 0&&((c=this.multi)==null?0:c.has(X))?(C.set(D,this.multi.get(X)),this.multi.delete(X)):C.delete(D);return X};_.Zh.debugName="nsTGHd";_.G4.debugName="vI1rtf";_.hIt={OUT_OF_ORDER_HOOK_CALL:function(D){return Error("vc`"+D)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(D,C){return Error("zc`"+((C===void 0?0:C)?"IDOM":"Reactive")+"`"+(V2(D)?D.description:D))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(D,C){return Error("Ac`"+(V2(D)?D.description:D)+"`"+C)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(D){return Error("Bc`"+(V2(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED:function(D){return Error("Cc`"+(V2(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(D){return Error("Dc`"+(V2(D)?D.description:D))}};Brd=CE3;var ErW=Symbol("Ec");jSo({beforeRender:function(D){var C=_.Oz(D.effectContext);try{var X;((X=D.__syncEffects)==null?0:X.length)&&Yn3(D.__syncEffects)}finally{_.Oz(C)}},
didPatch:function(D){var C=_.Oz(D.effectContext);try{var X;((X=D.__syncEffects)==null?0:X.length)&&Yn3(D.__syncEffects)}finally{_.Oz(C)}},
didUnmount:function(D){var C;((C=D.hooks)==null?0:C.length)&&D.hooks.forEach(Nld)}});var aS4,ISg,Otf;aS4=_.co.window;_.jj=(aS4==null?void 0:(ISg=aS4.yt)==null?void 0:ISg.config_)||(aS4==null?void 0:(Otf=aS4.ytcfg)==null?void 0:Otf.data_)||{};_.$h("yt.config_",_.jj);var AZM={},ZNZ=[];_.Zf=function(D){var C=_.MJ.apply(1,arguments);var X=Error.call(this,D);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.args=[].concat(_.VB(C));Object.setPrototypeOf(this,this.constructor.prototype)};
_.h(_.Zf,Error);var pxR=function(D,C,X){this.actionName=D;this.optionalAction=C===void 0?!1:C;this.args=X===void 0?null:X;this.returnValue=[]};_.A7=function(D){this.name=D};_.Xf=new _.A7("signalAction");var dFF=/^[\w.]*$/,J8F={q:!0,search_query:!0},HNo=String(TlW);var kz;kz=Symbol("Fc");_.P6=function(D){this.name=D};
_.P6.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var RI3=function(D){this.key=D},cZr=function(D){this.deferredKey=D},DCd=function(){var D=this;
this.providers=new Map;this.JSC$10654_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(D.providers)}}};
DCd.prototype.addProvider=function(D){this.providers.set(D.provide,D);var C=this.JSC$10654_deferred.get(D.provide);if(C)try{C.resolver(this.resolve(D.provide))}catch(X){C.rejector(X)}};
DCd.prototype.resolve=function(D){return D instanceof cZr?P5b(this,D):D instanceof RI3?$Cc(this,D.key,[],!0):$Cc(this,D,[])};
var P5b=function(D,C){C=C.deferredKey;if(D.JSC$10654_deferred.has(C))return D.JSC$10654_deferred.get(C).promise;var X={};X.promise=new Promise(function(c,W){X.resolver=c;X.rejector=W});
D.JSC$10654_deferred.set(C,X);return X.promise},$Cc=function(D,C,X,c){c=c===void 0?!1:c;
if(X.indexOf(C)>-1)throw Error("Gc`"+C);if(D.cachedValues.has(C))return D.cachedValues.get(C);if(!D.providers.has(C)){if(c)return;throw Error("Hc`"+C);}c=D.providers.get(C);X.push(C);if(c.useValue!==void 0)var W=c.useValue;else if(c.useFactory)W=c[kz]?vCJ(D,c[kz],X):[],W=c.useFactory.apply(c,_.VB(W));else if(c.useClass){W=c.useClass;var p=W[kz]?vCJ(D,W[kz],X):[];W=new (Function.prototype.bind.apply(W,[null].concat(_.VB(p))))}else throw Error("Ic`"+C);X.pop();c.skipCache||D.cachedValues.set(C,W);return W},
vCJ=function(D,C,X){return C?C.map(function(c){return c instanceof RI3?$Cc(D,c.key,X,!0):$Cc(D,c,X)}):[]};var lun;var cf=new _.P6("ENDPOINT_HANDLER_TOKEN");_.oX=new _.A7("urlEndpoint");var itb=function(){this.data=[];this.cachedPackedInt52=-1};
itb.prototype.set=function(D,C){C=C===void 0?!0:C;0<=D&&D<52&&Number.isInteger(D)&&this.data[D]!==C&&(this.data[D]=C,this.cachedPackedInt52=-1)};
itb.prototype.get=function(D){return!!this.data[D]};
var kox=function(D){D.cachedPackedInt52===-1&&(D.cachedPackedInt52=D.data.reduce(function(C,X,c){return C+(X?Math.pow(2,c):0)},0));
return D.cachedPackedInt52};var itt=function(D){var C=u_5;D=D===void 0?_.Df("yt.ads.biscotti.lastId_")||"":D;var X=Object,c=X.assign,W={};W.dt=$Xk;W.flash="0";a:{try{var p=C.JSC$10660_win_.top.location.href}catch(R){p=2;break a}p=p?p===C.doc_.location.href?0:1:2}W=(W.frm=p,W);try{W.u_tz=-(new Date).getTimezoneOffset();try{var g=CV.history.length}catch(R){g=0}W.u_his=g;var a;W.u_h=(a=CV.screen)==null?void 0:a.height;var O;W.u_w=(O=CV.screen)==null?void 0:O.width;var P;W.u_ah=(P=CV.screen)==null?void 0:P.availHeight;var k;W.u_aw=
(k=CV.screen)==null?void 0:k.availWidth;var u;W.u_cd=(u=CV.screen)==null?void 0:u.colorDepth}catch(R){}g=C.JSC$10660_win_;try{var Q=g.screenX;var B=g.screenY}catch(R){}try{var K=g.outerWidth;var L=g.outerHeight}catch(R){}try{var t=g.innerWidth;var Y=g.innerHeight}catch(R){}try{var y=g.screenLeft;var J=g.screenTop}catch(R){}try{t=g.innerWidth,Y=g.innerHeight}catch(R){}try{var T=g.screen.availWidth;var H=g.screen.availTop}catch(R){}Q=[y,J,Q,B,T,H,K,L,t,Y];B=xdd(!1,C.JSC$10660_win_.top);K={};var q=q===
void 0?_.co:q;L=new itb;"SVGElement"in q&&"createElementNS"in q.document&&L.set(0);t=aIM();t["allow-top-navigation-by-user-activation"]&&L.set(1);t["allow-popups-to-escape-sandbox"]&&L.set(2);q.crypto&&q.crypto.subtle&&L.set(3);"TextDecoder"in q&&"TextEncoder"in q&&L.set(4);q=kox(L);C=(K.bc=q,K.bih=B.height,K.biw=B.width,K.brdim=Q.join(),K.vis=i7m(C.doc_),K.wgl=!!CV.WebGLRenderingContext,K);X=c.call(X,W,C);X.ca_type="image";D&&(X.bid=D);return X},u_5=new function(){var D=window.document;
this.JSC$10660_win_=window;this.doc_=D};
_.$h("yt.ads_.signals_.getAdSignalsString",function(D){return zIR(itt(D))});_.ok();navigator.userAgent.indexOf(" (CrKey ");var UCh="XMLHttpRequest"in _.co?function(){return new XMLHttpRequest}:null;var Q7g="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),BeJ=[].concat(_.VB(Q7g),["client_dev_set_cookie"]);var vCr={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"},ISj="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(_.VB(Q7g)),xCt=!1,AZo=_.ko5,rZd=$CW;var M5R=[{messageFn:function(D){return"Cannot read property '"+D.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(D){return"Cannot call '"+D.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(D){return D.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var btJ={messageWeights:[],callbackWeights:[{callback:ekh,weight:500},{callback:ECt,weight:500}]};var rZe=function(){this.callbackWeights=[];this.messageWeights=[]},KUq,j_Z=function(){if(!KUq){var D=KUq=new rZe;
D.messageWeights.length=0;D.callbackWeights.length=0;Oah(D,btJ)}return KUq},Oah=function(D,C){C.messageWeights&&D.messageWeights.push.apply(D.messageWeights,C.messageWeights);
C.callbackWeights&&D.callbackWeights.push.apply(D.callbackWeights,C.callbackWeights)};_.WT(_.tg,_.nF);_.tg.prototype.subscribe=function(D,C,X){var c=this.topics_[D];c||(c=this.topics_[D]=[]);var W=this.JSC$10684_key_;this.subscriptions_[W]=D;this.subscriptions_[W+1]=C;this.subscriptions_[W+2]=X;this.JSC$10684_key_=W+3;c.push(W);return W};
var hkg=function(D){var C=lw,X=!1,c=C.subscribe("handleError",function(W){X||(X=!0,this.unsubscribeByKey(c),D.apply(void 0,arguments))},C)};
_.tg.prototype.unsubscribe=function(D,C,X){if(D=this.topics_[D]){var c=this.subscriptions_;if(D=D.find(function(W){return c[W+1]==C&&c[W+2]==X}))return this.unsubscribeByKey(D)}return!1};
_.tg.prototype.unsubscribeByKey=function(D){var C=this.subscriptions_[D];if(C){var X=this.topics_[C];this.publishDepth_!=0?(this.pendingKeys_.push(D),this.subscriptions_[D+1]=function(){}):(X&&_.VF(X,D),delete this.subscriptions_[D],delete this.subscriptions_[D+1],delete this.subscriptions_[D+2])}return!!C};
_.tg.prototype.publish=function(D,C){var X=this.topics_[D];if(X){var c=Array(arguments.length-1),W=arguments.length,p;for(p=1;p<W;p++)c[p-1]=arguments[p];if(this.async_)for(p=0;p<X.length;p++)W=X[p],xCb(this.subscriptions_[W+1],this.subscriptions_[W+2],c);else{this.publishDepth_++;try{for(p=0,W=X.length;p<W&&!this.isDisposed();p++){var g=X[p];this.subscriptions_[g+1].apply(this.subscriptions_[g+2],c)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;X=this.pendingKeys_.pop();)this.unsubscribeByKey(X)}}return p!=
0}return!1};
var xCb=function(D,C,X){_.wk(function(){D.apply(C,X)})};
_.tg.prototype.clear=function(D){if(D){var C=this.topics_[D];C&&(C.forEach(this.unsubscribeByKey,this),delete this.topics_[D])}else this.subscriptions_.length=0,this.topics_={}};
_.tg.prototype.getCount=function(D){if(D){var C=this.topics_[D];return C?C.length:0}D=0;for(C in this.topics_)D+=this.getCount(C);return D};
_.tg.prototype.disposeInternal=function(){_.tg.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var lw=new _.tg;var hC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(hC,_.aH);hC.prototype.getColdHashData=function(){return _.EG(this,3)};
hC.prototype.getHotHashData=function(){return _.EG(this,5)};
hC.prototype.setHotHashData=function(D){return _.N3(this,5,D)};var HeZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(HeZ,_.aH);var kro=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(kro,_.aH);_.S=kro.prototype;_.S.getDeviceId=function(){return _.EG(this,6)};
_.S.getExperimentIds=function(D){var C=_.d3(this,9,_.aw,3,!0);lnh(C,D);return C[D]};
_.S.getPlayerType=function(){return _.tu(this,36)};
_.S.setHomeGroupInfo=function(D){return _.Lf(this,81,D)};
_.S.clearLocationPlayabilityToken=function(){return _.rD(this,89)};var tY=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(tY,_.aH);tY.prototype.setKey=function(D){return _.N3(this,1,D)};
tY.prototype.getValue=function(){return Y5(this,2,Q_n)};
var Q_n=[2,3,4,5,6];var LUx=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(LUx,_.aH);LUx.prototype.setTrackingParams=function(D){return _.rD(this,1,_.Yg(D,!1))};var uAh=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(uAh,_.aH);var jIF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(jIF,_.aH);jIF.prototype.getExperimentIds=function(D){var C=_.d3(this,5,_.BxZ,3,!0);lnh(C,D);return C[D]};var nQ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(nQ,_.aH);nQ.prototype.getToken=function(){return _.se(this,2)};
nQ.prototype.setToken=function(D){return _.N3(this,2,D)};var Yl=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Yl,_.aH);Yl.prototype.setSafetyMode=function(D){return _.bl(this,5,D)};var EU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(EU,_.aH);EU.prototype.setClient=function(D){return _.Lf(this,1,D)};var znh={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 JXr;_.Gh=function(){var D=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.co.addEventListener("beforeinstallprompt",function(C){C.preventDefault();D.deferredInstallPrompt=C});
_.co.addEventListener("appinstalled",function(){D.appInstalledEventFired=!0},{once:!0})};
JXr=function(){if(!_.co.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.co.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.co.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.co.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.co.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(D){return"WEB_DISPLAY_MODE_UNKNOWN"}};var f7t=function(){this.syncHeaders=!0},dho=function(D){var C={},X=[];
"USER_SESSION_ID"in _.jj&&X.push({key:"u",value:_.q6("USER_SESSION_ID")});if(X=_.kA5(X))C.Authorization=X,X=D=D==null?void 0:D.sessionIndex,X===void 0&&(X=Number(_.q6("SESSION_INDEX",0)),X=isNaN(X)?0:X),_.b("voice_search_auth_header_removal")||(C["X-Goog-AuthUser"]=X.toString()),"INNERTUBE_HOST_OVERRIDE"in _.jj||(C["X-Origin"]=window.location.origin),D===void 0&&"DELEGATED_SESSION_ID"in _.jj&&(C["X-Goog-PageId"]=_.q6("DELEGATED_SESSION_ID"));return C};var s7x={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var $E=_.Df("ytglobal.prefsUserPrefsPrefs_")||{},mCf;_.$h("ytglobal.prefsUserPrefsPrefs_",$E);_.v6=function(){this.cookieName=_.q6("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.q6("ALT_PREF_COOKIE_DOMAIN","youtube.com");var D=_.Yz.get(this.cookieName,void 0);D&&this.parse(D)};
_.PE=function(){mCf||(mCf=new _.v6);return mCf};
_.v6.prototype.get=function(D,C){ek5(D);ECb(D);D=$E[D]!==void 0?$E[D].toString():null;return D!=null?D:C?C:""};
_.v6.prototype.set=function(D,C){ek5(D);ECb(D);if(C==null)throw Error("Lc");$E[D]=C.toString()};
_.v6.prototype.getFlag=function(D){return!!((tyg("f"+(Math.floor(D/31)+1))||0)&1<<D%31)};
_.$C=function(D,C,X){D="f"+(Math.floor(C/31)+1);C=1<<C%31;var c=tyg(D)||0;c=X?c|C:c&~C;c===0?delete $E[D]:(X=c.toString(16),$E[D]=X.toString())};
_.v6.prototype.remove=function(D){ek5(D);ECb(D);delete $E[D]};
_.v6.prototype.save=function(){var D=!0;_.b("web_secure_pref_cookie_killswitch")&&(D=!1);_.y3(this.cookieName,this.dump(),63072E3,this.cookieDomain,D)};
_.v6.prototype.clear=function(){_.ZI.clear($E)};
_.v6.prototype.dump=function(){var D=[],C;for(C in $E)$E.hasOwnProperty(C)&&D.push(C+"="+encodeURIComponent(String($E[C])));return D.join("&")};
var ECb=function(D){if(/^f([1-9][0-9]*)$/.test(D))throw Error("Mc`"+D);},ek5=function(D){if(!/^\w+$/.test(D))throw Error("Nc`"+D);
},tyg=function(D){D=$E[D]!==void 0?$E[D].toString():null;
return D!=null&&/^[A-Fa-f0-9]+$/.test(D)?parseInt(D,16):null};
_.v6.prototype.parse=function(D){D=decodeURIComponent(D).split("&");for(var C=0;C<D.length;C++){var X=D[C].split("="),c=X[0];(X=X[1])&&($E[c]=X.toString())}};var Go3={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"},MVd={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},q1Z={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},TeJ={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var W0;_.i1=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Zo=function(D,C,X){return D.addJob(C,0,X)};
_.i1.prototype.addLowPriorityJob=function(D,C){return this.addJob(D,1,C)};
_.hG=function(D,C,X){return D.addJob(C,2,X)};
_.$w=function(D,C,X){return D.addJob(C,3,X)};
_.pI=function(D,C,X){return D.addJob(C,4,X)};
W0=function(D){var C=_.Df("yt.scheduler.instance.addImmediateJob");C?C(D):D()};
_.i1.prototype.debounce=function(D,C,X){var c=this,W=0,p=function(){W&&c.cancelJob(W);W=c.addJob(D,C,X);c.cancelDebouncedJobMap.set(p,W)};
return p};
_.i1.prototype.cancelThrottle=function(D){(D=this.cancelThrottledJobMap.get(D))&&D()};var kE=function(){_.i1.apply(this,arguments)},Neg;
_.h(kE,_.i1);_.s3=function(){kE.instance||(kE.instance=new kE);return kE.instance};
kE.prototype.addJob=function(D,C,X){X!==void 0&&Number.isNaN(Number(X))&&(X=void 0);var c=_.Df("yt.scheduler.instance.addJob");return c?c(D,C,X):X===void 0?(D(),NaN):_.xz(D,X||0)};
kE.prototype.cancelJob=function(D){if(D===void 0||!Number.isNaN(Number(D))){var C=_.Df("yt.scheduler.instance.cancelJob");C?C(D):_.sY(D)}};
kE.prototype.start=function(){var D=_.Df("yt.scheduler.instance.start");D&&D()};
kE.prototype.pause=function(){var D=_.Df("yt.scheduler.instance.pause");D&&D()};
Neg=function(){_.s3();var D=_.Df("yt.scheduler.instance.setPriorityThreshold");D&&D(4)};
_.qX=_.s3();_.GV.prototype.set=function(D,C){C===void 0?this.mechanism.remove(D):this.mechanism.set(D,(0,_.Tg)(C))};
_.GV.prototype.get=function(D){try{var C=this.mechanism.get(D)}catch(X){return}if(C!==null)try{return JSON.parse(C)}catch(X){throw"Storage: Invalid value was encountered";}};
_.GV.prototype.remove=function(D){this.mechanism.remove(D)};var u1=function(D){this.mechanism=D};
_.WT(u1,_.GV);var Ypd=function(D){this.data=D},yZe=function(D){return D===void 0||D instanceof Ypd?D:new Ypd(D)};
u1.prototype.set=function(D,C){u1.superClass_.set.call(this,D,yZe(C))};
u1.prototype.getWrapper=function(D){D=u1.superClass_.get.call(this,D);if(D===void 0||D instanceof Object)return D;throw"Storage: Invalid value was encountered";};
u1.prototype.get=function(D){if(D=this.getWrapper(D)){if(D=D.data,D===void 0)throw"Storage: Invalid value was encountered";}else D=void 0;return D};_.WT(V3,u1);_.nCd=function(D){var C=D.creation;D=D.expiration;return!!D&&D<_.ok()||!!C&&C>_.ok()};
V3.prototype.set=function(D,C,X){if(C=yZe(C)){if(X){if(X<_.ok()){V3.prototype.remove.call(this,D);return}C.expiration=X}C.creation=_.ok()}V3.superClass_.set.call(this,D,C)};
V3.prototype.getWrapper=function(D,C){var X=V3.superClass_.getWrapper.call(this,D);if(X)if(!C&&_.nCd(X))V3.prototype.remove.call(this,D);else return X};var Qn=function(){};
Qn.prototype.next=function(){return B6};
var B6={done:!0,value:void 0},b1=function(D){return{value:D,done:!1}};
Qn.prototype.__iterator__=function(){return this};
_.wE4=function(D){if(D instanceof Qn)return D;if(typeof D.__iterator__=="function")return D.__iterator__(!1);if(_.JW(D)){var C=0,X=new Qn;X.next=function(){for(;;){if(C>=D.length)return B6;if(C in D)return b1(D[C++]);C++}};
return X}throw Error("Oc");};var FU5=function(D){if(D instanceof rF||D instanceof KX||D instanceof h7)return D;if(typeof D.next=="function")return new rF(function(){return D});
if(typeof D[Symbol.iterator]=="function")return new rF(function(){return D[Symbol.iterator]()});
if(typeof D.__iterator__=="function")return new rF(function(){return D.__iterator__()});
throw Error("Pc");},rF=function(D){this.func_=D};
rF.prototype.__iterator__=function(){return new KX(this.func_())};
rF.prototype[Symbol.iterator]=function(){return new h7(this.func_())};
rF.prototype.toEs6=function(){return new h7(this.func_())};
var KX=function(D){this.JSC$10769_iter_=D};
_.h(KX,Qn);KX.prototype.next=function(){return this.JSC$10769_iter_.next()};
KX.prototype[Symbol.iterator]=function(){return new h7(this.JSC$10769_iter_)};
KX.prototype.toEs6=function(){return new h7(this.JSC$10769_iter_)};
var h7=function(D){rF.call(this,function(){return D});
this.JSC$10772_iter_=D};
_.h(h7,rF);h7.prototype.next=function(){return this.JSC$10772_iter_.next()};var ZtM=function(){};var xE=function(){};
_.WT(xE,ZtM);xE.prototype.getCount=function(){for(var D=0,C=_.U(this),X=C.next();!X.done;X=C.next())D++;return D};
xE.prototype[Symbol.iterator]=function(){return FU5(this.__iterator__(!0)).toEs6()};
xE.prototype.clear=function(){var D=Array.from(this);D=_.U(D);for(var C=D.next();!C.done;C=D.next())this.remove(C.value)};_.WT(TV,xE);_.S=TV.prototype;_.S.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var D=this.storage_;if(D)try{D.setItem("__sak","1");D.removeItem("__sak");var C=!0}catch(X){C=X instanceof DOMException&&(X.name==="QuotaExceededError"||X.code===22||X.code===1014||X.name==="NS_ERROR_DOM_QUOTA_REACHED")&&D&&D.length!==0}else C=!1;this.cachedIsStorageAvailable_=C}return this.cachedIsStorageAvailable_};
_.S.set=function(D,C){LX(this);try{this.storage_.setItem(D,C)}catch(X){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.S.get=function(D){LX(this);D=this.storage_.getItem(D);if(typeof D!=="string"&&D!==null)throw"Storage mechanism: Invalid value was encountered";return D};
_.S.remove=function(D){LX(this);this.storage_.removeItem(D)};
_.S.getCount=function(){LX(this);return this.storage_.length};
_.S.__iterator__=function(D){LX(this);var C=0,X=this.storage_,c=new Qn;c.next=function(){if(C>=X.length)return B6;var W=X.key(C++);if(D)return b1(W);W=X.getItem(W);if(typeof W!=="string")throw"Storage mechanism: Invalid value was encountered";return b1(W)};
return c};
_.S.clear=function(){LX(this);this.storage_.clear()};
_.S.key=function(D){LX(this);return this.storage_.key(D)};
var LX=function(D){if(D.storage_==null)throw Error("Qc");D.isAvailable()||om(Error("Qc"))};_.WT(JZ5,TV);_.WT(zkZ,TV);_.WT(HK,xE);HK.prototype.set=function(D,C){this.mechanism_.set(this.JSC$10787_prefix_+D,C)};
HK.prototype.get=function(D){return this.mechanism_.get(this.JSC$10787_prefix_+D)};
HK.prototype.remove=function(D){this.mechanism_.remove(this.JSC$10787_prefix_+D)};
HK.prototype.__iterator__=function(D){var C=this.mechanism_[Symbol.iterator](),X=this,c=new Qn;c.next=function(){var W=C.next();if(W.done)return W;for(W=W.value;W.slice(0,X.JSC$10787_prefix_.length)!=X.JSC$10787_prefix_;){W=C.next();if(W.done)return W;W=W.value}return b1(D?W.slice(X.JSC$10787_prefix_.length):X.mechanism_.get(W))};
return c};_.Do=function(D){this.expiringStorage_=(D=_.Jg(D))?new V3(D):null;this.JSC$10791_domain_=document.domain||window.location.hostname};
_.S=_.Do.prototype;_.S.hasLocalStorage=function(){return!!this.expiringStorage_};
_.S.set=function(D,C,X,c){X=X||31104E3;this.remove(D);if(this.hasLocalStorage())try{this.expiringStorage_.set(D,C,Date.now()+X*1E3);return}catch(p){}var W="";if(c)try{W=escape((0,_.Tg)(C))}catch(p){return}else W=escape(C);_.y3(D,W,X,this.JSC$10791_domain_)};
_.S.get=function(D,C){var X=void 0,c=!this.hasLocalStorage();if(!c)try{X=this.expiringStorage_.get(D)}catch(W){c=!0}if(c&&(X=_.Yz.get(D,void 0))&&(X=unescape(X),C))try{X=JSON.parse(X)}catch(W){this.remove(D),X=void 0}return X};
_.S.remove=function(D){this.hasLocalStorage()&&this.expiringStorage_.remove(D);_.wE3(D,"/",this.JSC$10791_domain_)};
_.S.getCreationTime=function(D){return this.hasLocalStorage()&&(D=(this.expiringStorage_.getWrapper(D)||{}).creation,typeof D==="number")?D:null};var Myt=function(){var D;return function(){D||(D=new _.Do("ytidb"));return D}}();var fSn;_.jq=[];fSn=!1;var P8m=dCm||Rko;var sL={},Go4=(sL.AUTH_INVALID="No user identifier specified.",sL.EXPLICIT_ABORT="Transaction was explicitly aborted.",sL.IDB_NOT_SUPPORTED="IndexedDB is not supported.",sL.MISSING_INDEX="Index not created.",sL.MISSING_OBJECT_STORES="Object stores not created.",sL.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",sL.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",sL.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",sL.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",sL.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",sL.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",sL.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",sL),m0={},VyC=(m0.AUTH_INVALID="ERROR",m0.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",m0.EXPLICIT_ABORT="IGNORED",
m0.IDB_NOT_SUPPORTED="ERROR",m0.MISSING_INDEX="WARNING",m0.MISSING_OBJECT_STORES="ERROR",m0.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",m0.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",m0.QUOTA_EXCEEDED="WARNING",m0.QUOTA_MAYBE_EXCEEDED="WARNING",m0.UNKNOWN_ABORT="WARNING",m0.INCOMPATIBLE_DB_VERSION="WARNING",m0),eG={},TeN=(eG.AUTH_INVALID=!1,eG.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,eG.EXPLICIT_ABORT=!1,eG.IDB_NOT_SUPPORTED=!1,eG.MISSING_INDEX=!1,eG.MISSING_OBJECT_STORES=!1,eG.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,eG.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,eG.QUOTA_EXCEEDED=!1,eG.QUOTA_MAYBE_EXCEEDED=!0,eG.UNKNOWN_ABORT=!0,eG.INCOMPATIBLE_DB_VERSION=!1,eG),lX=function(D,C,X,c,W){C=C===void 0?{}:C;X=X===void 0?Go4[D]:X;c=c===void 0?VyC[D]:c;W=W===void 0?TeN[D]:W;_.Zf.call(this,X,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:D},C));this.type=D;this.message=X;this.level=c;this.retryable=W;Object.setPrototypeOf(this,lX.prototype)};
_.h(lX,_.Zf);var HtC=function(D,C){lX.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:C,foundObjectStores:D},Go4.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,HtC.prototype)};
_.h(HtC,lX);var Dht=function(D,C){var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.index=D;this.objectStore=C;Object.setPrototypeOf(this,Dht.prototype)};
_.h(Dht,Error);var C8J=["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 cz=function(D){this.executor=D},Xs=function(D){var C=this;
this.state={status:"PENDING"};this.JSC$10819_onFulfilled=[];this.JSC$10819_onRejected=[];D=D.executor;var X=function(W){if(C.state.status==="PENDING"){C.state={status:"FULFILLED",value:W};W=_.U(C.JSC$10819_onFulfilled);for(var p=W.next();!p.done;p=W.next())p=p.value,p()}},c=function(W){if(C.state.status==="PENDING"){C.state={status:"REJECTED",
reason:W};W=_.U(C.JSC$10819_onRejected);for(var p=W.next();!p.done;p=W.next())p=p.value,p()}};
try{D(X,c)}catch(W){c(W)}};
Xs.all=function(D){return new Xs(new cz(function(C,X){var c=[],W=D.length;W===0&&C(c);for(var p={i$jscomp$468:0};p.i$jscomp$468<D.length;p={i$jscomp$468:p.i$jscomp$468},++p.i$jscomp$468)Xs.resolve(D[p.i$jscomp$468]).then(function(g){return function(a){c[g.i$jscomp$468]=a;W--;W===0&&C(c)}}(p)).catch(function(g){X(g)})}))};
Xs.resolve=function(D){return new Xs(new cz(function(C,X){D instanceof Xs?D.then(C,X):C(D)}))};
Xs.reject=function(D){return new Xs(new cz(function(C,X){X(D)}))};
Xs.prototype.then=function(D,C){var X=this,c=D!=null?D:oPF,W=C!=null?C:cXm;return new Xs(new cz(function(p,g){X.state.status==="PENDING"?(X.JSC$10819_onFulfilled.push(function(){JZx(X,X,c,p,g)}),X.JSC$10819_onRejected.push(function(){zkC(X,X,W,p,g)})):X.state.status==="FULFILLED"?JZx(X,X,c,p,g):X.state.status==="REJECTED"&&zkC(X,X,W,p,g)}))};
Xs.prototype.catch=function(D){return this.then(void 0,D)};
var JZx=function(D,C,X,c,W){try{if(D.state.status!=="FULFILLED")throw Error("Tc");var p=X(D.state.value);p instanceof Xs?j75(D,C,p,c,W):c(p)}catch(g){W(g)}},zkC=function(D,C,X,c,W){try{if(D.state.status!=="REJECTED")throw Error("Uc");
var p=X(D.state.reason);p instanceof Xs?j75(D,C,p,c,W):c(p)}catch(g){W(g)}},j75=function(D,C,X,c,W){C===X?W(new TypeError("Vc")):X.then(function(p){p instanceof Xs?j75(D,C,p,c,W):c(p)},function(p){W(p)})};var EL;EL=window;_.kh=EL.ytcsi&&EL.ytcsi.now?EL.ytcsi.now:EL.performance&&EL.performance.timing&&EL.performance.now&&EL.performance.timing.navigationStart?function(){return EL.performance.timing.navigationStart+EL.performance.now()}:function(){return(new Date).getTime()};var Wz=function(D,C){this.JSC$10831_wrapped=D;this.options=C;this.transactionCount=0;this.startedMs=Math.round((0,_.kh)());this.hasUnknownAbortedTransaction=!1},t7=function(){return _.b("idb_immediate_commit")},fSk,dCq,yn,Dhb;
Wz.prototype.add=function(D,C,X){return _.ap(this,[D],{mode:"readwrite",enableRetries:!0,commit:t7()},function(c){return c.objectStore(D).add(C,X)})};
Wz.prototype.clear=function(D){return _.ap(this,[D],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore(D).clear()})};
Wz.prototype.close=function(){this.JSC$10831_wrapped.close();var D;((D=this.options)==null?0:D.closed)&&this.options.closed()};
Wz.prototype.count=function(D,C){return _.ap(this,[D],{mode:"readonly",enableRetries:!0,commit:t7()},function(X){return X.objectStore(D).count(C)})};
var X3=function(D,C,X){D=D.JSC$10831_wrapped.createObjectStore(C,X);return new N4(D)};
Wz.prototype.delete=function(D,C){return _.ap(this,[D],{mode:"readwrite",enableRetries:!0,commit:t7()&&!(C instanceof IDBKeyRange)},function(X){return X.objectStore(D).delete(C)})};
var Myb=function(D,C){return _.ap(D,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(X){return X.objectStore("ResponseStore").index("byInterface").delete(C)})};
Wz.prototype.get=function(D,C){return _.ap(this,[D],{mode:"readonly",enableRetries:!0,commit:t7()},function(X){return X.objectStore(D).get(C)})};
Wz.prototype.getAll=function(D,C,X){return _.ap(this,[D],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(D).getAll(C,X)})};
Wz.prototype.put=function(D,C,X){return _.ap(this,[D],{mode:"readwrite",enableRetries:!0,commit:t7()},function(c){return c.objectStore(D).put(C,X)})};
Wz.prototype.objectStoreNames=function(){return Array.from(this.JSC$10831_wrapped.objectStoreNames)};
_.ap=function(D,C,X,c){var W,p,g,a,O,P,k,u,Q,B,K,L;return _.I(function(t){switch(t.nextAddress){case 1:var Y={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof X==="string"?Y.mode=X:Object.assign(Y,X);W=Y;D.transactionCount++;p=W.enableRetries?3:1;g=0;case 2:if(a){t.jumpTo(4);break}g++;O=Math.round((0,_.kh)());_.KK(t,5);P=D.JSC$10831_wrapped.transaction(C,W.mode);Y=t.yield;var y=!!W.commit;var J=new pq(P);y=qpq(J,c,y);return Y.call(t,y,7);case 7:return k=t.yieldResult,u=Math.round((0,_.kh)()),
fSk(D,O,u,g,void 0,C.join(),W),t.return(k);case 5:Q=_.Eu(t);B=Math.round((0,_.kh)());K=X_r(Q,D.JSC$10831_wrapped.name,C.join(),D.JSC$10831_wrapped.version);if((L=K instanceof lX&&!K.retryable)||g>=p)fSk(D,O,B,g,K,C.join(),W),a=K;t.jumpTo(2);break;case 4:return t.return(Promise.reject(a))}})};
fSk=function(D,C,X,c,W,p,g){C=X-C;W?(W instanceof lX&&(W.type==="QUOTA_EXCEEDED"||W.type==="QUOTA_MAYBE_EXCEEDED")&&qG("QUOTA_EXCEEDED",{dbName:dT(D.JSC$10831_wrapped.name),objectStoreNames:p,transactionCount:D.transactionCount,transactionMode:g.mode}),W instanceof lX&&W.type==="UNKNOWN_ABORT"&&(X-=D.startedMs,X<0&&X>=2147483648&&(X=0),qG("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:p,transactionDuration:C,transactionCount:D.transactionCount,dbDuration:X}),D.hasUnknownAbortedTransaction=!0),
dCq(D,!1,c,p,C,g.tag),_.MG(W)):dCq(D,!0,c,p,C,g.tag)};
dCq=function(D,C,X,c,W,p){qG("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:D.hasUnknownAbortedTransaction,duration:W,isSuccessful:C,tryCount:X,tag:p===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":p})};
Wz.prototype.getName=function(){return this.JSC$10831_wrapped.name};
var N4=function(D){this.JSC$10846_wrapped=D};
N4.prototype.add=function(D,C){return op(this.JSC$10846_wrapped.add(D,C))};
N4.prototype.autoIncrement=function(){return this.JSC$10846_wrapped.autoIncrement};
N4.prototype.clear=function(){return op(this.JSC$10846_wrapped.clear()).then(function(){})};
var cL=function(D,C,X){D.JSC$10846_wrapped.createIndex(C,X,{unique:!1})};
N4.prototype.count=function(D){return op(this.JSC$10846_wrapped.count(D))};
var RkM=function(D,C){return OH(D,{query:C},function(X){return X.delete().then(function(){return X.continue()})}).then(function(){})};
N4.prototype.delete=function(D){return D instanceof IDBKeyRange?RkM(this,D):op(this.JSC$10846_wrapped.delete(D))};
N4.prototype.get=function(D){return op(this.JSC$10846_wrapped.get(D))};
N4.prototype.getAll=function(D,C){return"getAll"in IDBObjectStore.prototype?op(this.JSC$10846_wrapped.getAll(D,C)):lSc(this,D,C)};
var lSc=function(D,C,X){var c=[];return OH(D,{query:C},function(W){if(!(X!==void 0&&c.length>=X))return c.push(W.getValue()),W.continue()}).then(function(){return c})};
N4.prototype.index=function(D){try{return new YE(this.JSC$10846_wrapped.index(D))}catch(C){if(C instanceof Error&&C.name==="NotFoundError")throw new Dht(D,this.JSC$10846_wrapped.name);throw C;}};
N4.prototype.getName=function(){return this.JSC$10846_wrapped.name};
N4.prototype.keyPath=function(){return this.JSC$10846_wrapped.keyPath};
N4.prototype.put=function(D,C){return op(this.JSC$10846_wrapped.put(D,C))};
var OH=function(D,C,X){D=D.JSC$10846_wrapped.openCursor(C.query,C.direction);return Dhb(D).then(function(c){return S13(c,X)})},pq=function(D){var C=this;
this.JSC$10854_wrapped=D;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(X,c){C.JSC$10854_wrapped.addEventListener("complete",function(){X()});
C.JSC$10854_wrapped.addEventListener("error",function(W){W.currentTarget===W.target&&c(C.JSC$10854_wrapped.error)});
C.JSC$10854_wrapped.addEventListener("abort",function(){var W=C.JSC$10854_wrapped.error;if(W)c(W);else if(!C.aborted){W=lX;for(var p=C.JSC$10854_wrapped.objectStoreNames,g=[],a=0;a<p.length;a++){var O=p.item(a);if(O===null)throw Error("Wc");g.push(O)}W=new W("UNKNOWN_ABORT",{objectStoreNames:g.join(),dbName:C.JSC$10854_wrapped.db.name,mode:C.JSC$10854_wrapped.mode});c(W)}})})},qpq=function(D,C,X){var c=new Promise(function(W,p){try{var g=C(D);
X&&D.commit();g.then(function(a){W(a)}).catch(p)}catch(a){p(a),D.abort()}});
return Promise.all([c,D.done]).then(function(W){return _.U(W).next().value})};
pq.prototype.abort=function(){this.JSC$10854_wrapped.abort();this.aborted=!0;throw new lX("EXPLICIT_ABORT");};
pq.prototype.commit=function(){if(!this.aborted){var D,C;(C=(D=this.JSC$10854_wrapped).commit)==null||C.call(D)}};
pq.prototype.objectStore=function(D){D=this.JSC$10854_wrapped.objectStore(D);var C=this.objectStoreCache.get(D);C||(C=new N4(D),this.objectStoreCache.set(D,C));return C};
var YE=function(D){this.JSC$10856_wrapped=D};
YE.prototype.count=function(D){return op(this.JSC$10856_wrapped.count(D))};
YE.prototype.delete=function(D){return _.ul(this,{query:D},function(C){return C.delete().then(function(){return C.continue()})})};
YE.prototype.get=function(D){return op(this.JSC$10856_wrapped.get(D))};
YE.prototype.getAll=function(D,C){return"getAll"in IDBIndex.prototype?op(this.JSC$10856_wrapped.getAll(D,C)):C8N(this,D,C)};
var C8N=function(D,C,X){var c=[];return _.ul(D,{query:C},function(W){if(!(X!==void 0&&c.length>=X))return c.push(W.getValue()),W.continue()}).then(function(){return c})};
YE.prototype.keyPath=function(){return this.JSC$10856_wrapped.keyPath};
YE.prototype.unique=function(){return this.JSC$10856_wrapped.unique};
_.ul=function(D,C,X){D=D.JSC$10856_wrapped.openCursor(C.query===void 0?null:C.query,C.direction===void 0?"next":C.direction);return Dhb(D).then(function(c){return S13(c,X)})};
yn=function(D,C){this.request=D;this.cursor=C};
Dhb=function(D){return op(D).then(function(C){return C?new yn(D,C):null})};
yn.prototype.continue=function(D){this.cursor.continue(D);return Dhb(this.request)};
yn.prototype.delete=function(){return op(this.cursor.delete()).then(function(){})};
yn.prototype.getValue=function(){return this.cursor.value};
yn.prototype.update=function(D){return op(this.cursor.update(D))};var nX=function(D,C){this.name=D;this.options=C;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},X_J;
nX.prototype.openDb=function(D,C,X){X=X===void 0?{}:X;return gPt(D,C,X)};
nX.prototype.delete=function(D){D=D===void 0?{}:D;return _.UH(this.name,D)};
X_J=function(D,C){return new lX("INCOMPATIBLE_DB_VERSION",{dbName:D.name,oldVersion:D.options.version,newVersion:C})};
_.gD=function(D,C){if(!C)throw Cq("openWithToken",dT(D.name));return D.open()};
nX.prototype.open=function(){var D=this;if(!this.isCompatible)throw X_J(this);if(this.connectionPromise)return this.connectionPromise;var C,X=function(){D.connectionPromise===C&&(D.connectionPromise=void 0)},c={blocking:function(p){p.close()},
closed:X,terminated:X,upgrade:this.options.upgrade},W=function(){var p,g,a,O,P,k,u,Q,B,K;return _.I(function(L){switch(L.nextAddress){case 1:return g=(p=Error().stack)!=null?p:"",_.KK(L,2),L.yield(D.openDb(D.name,D.options.version,c),4);case 4:for(var t=a=L.yieldResult,Y=D.options,y=[],J=_.U(Object.keys(Y.objectStores)),T=J.next();!T.done;T=J.next()){T=T.value;var H=Y.objectStores[T],q=H.removedAtVersion===void 0?Number.MAX_VALUE:H.removedAtVersion;!(t.JSC$10831_wrapped.version>=H.addedAtVersion)||
t.JSC$10831_wrapped.version>=q||t.JSC$10831_wrapped.objectStoreNames.contains(T)||y.push(T)}O=y;if(O.length===0){L.jumpTo(5);break}P=Object.keys(D.options.objectStores);k=a.objectStoreNames();if(D.timesReopenedToFixMissingObjectStore<_.BK("ytidb_reopen_db_retries",0))return D.timesReopenedToFixMissingObjectStore++,a.close(),_.MG(new lX("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:P,foundObjectStores:k})),L.return(W());if(!(D.timesDeletedToFixMissingObjectStore<_.BK("ytidb_remake_db_retries",
1))){L.jumpTo(6);break}D.timesDeletedToFixMissingObjectStore++;return L.yield(D.delete(),7);case 7:return _.MG(new lX("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:P,foundObjectStores:k})),L.return(W());case 6:throw new HtC(k,P);case 5:return L.return(a);case 2:u=_.Eu(L);if(u instanceof DOMException?u.name!=="VersionError":"DOMError"in self&&u instanceof DOMError?u.name!=="VersionError":!(u instanceof Object&&"message"in u)||u.message!=="An attempt was made to open a database using a lower version than the existing version."){L.jumpTo(8);
break}return L.yield(D.openDb(D.name,void 0,Object.assign({},c,{upgrade:void 0})),9);case 9:Q=L.yieldResult;B=Q.JSC$10831_wrapped.version;if(D.options.version!==void 0&&B>D.options.version+1)throw Q.close(),D.isCompatible=!1,X_J(D,B);return L.return(Q);case 8:throw X(),u instanceof Error&&!_.b("ytidb_async_stack_killswitch")&&(u.stack=u.stack+"\n"+g.substring(g.indexOf("\n")+1)),X_r(u,D.name,"",(K=D.options.version)!=null?K:-1);}})};
return this.connectionPromise=C=W()};var a7h=new nX("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(D,C){C(1)&&X3(D,"databases",{keyPath:"actualName"})}});var ieR,$hd=new function(){}(new function(){});new _.gL;var cXq=function(D,C){nX.call(this,D,C);this.options=C;fC(D)};
_.h(cXq,nX);var LnR=function(D,C){var X;return function(){X||(X=new cXq(D,C));return X}};
cXq.prototype.openDb=function(D,C,X){X=X===void 0?{}:X;return(this.options.shared?be5:BJh)(D,C,Object.assign({},X))};
cXq.prototype.delete=function(D){D=D===void 0?{}:D;return(this.options.shared?xhJ:rXm)(this.name,D)};var oP5={},sI3=il("ytGcfConfig",{objectStores:(oP5.coldConfigStore={addedAtVersion:1},oP5.hotConfigStore={addedAtVersion:1},oP5),shared:!1,upgrade:function(D,C){C(1)&&(cL(X3(D,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),cL(X3(D,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Wnd=function(){_.nF.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var D=_.Df("yt.gcf.config.hotUpdateCallbacks");D?(this.localHotConfigJobQueue=[].concat(_.VB(D)),this.sharedHotConfigJobQueue=D):(this.sharedHotConfigJobQueue=[],_.$h("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.h(Wnd,_.nF);Wnd.prototype.disposeInternal=function(){for(var D=_.U(this.localHotConfigJobQueue),C=D.next();!C.done;C=D.next()){var X=this.sharedHotConfigJobQueue;C=X.indexOf(C.value);C>=0&&X.splice(C,1)}this.localHotConfigJobQueue.length=0;_.nF.prototype.disposeInternal.call(this)};var Gu=function(){var D=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Wnd;this.TEST_ONLY={initializeConfigDb:function(){D.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return D.coldGlobalConfigGroup},
setHotConfigGroup:function(C){p_x(D,C)},
setHotHashData:function(C){D.setHotHashData(C)},
setColdConfigGroup:function(C){S14(D,C)},
getColdHashData:function(){return D.coldHashData},
getHotHashData:function(){return D.hotHashData},
getHotConfigGroup:function(){return D.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Uh5()},
getExportedHotConfigGroup:function(){return wF()},
getExportedColdHashData:function(){return _.Df("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Df("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){gPb(D)},
resetInstance:function(){D.setHotHashData(void 0);a75(D);delete Gu.instance},
setDebounceTimer:function(C){D.debounceTimer=C},
getDebounceTimer:function(){return D.debounceTimer}}},I7g=function(){if(!Gu.instance){var D=new Gu;
Gu.instance=D}return Gu.instance},P8d=function(D){var C;
_.I(function(X){if(X.nextAddress==1)return _.b("start_client_gcf")||_.b("delete_gcf_config_db")?_.b("start_client_gcf")?X.yield(_.vz(),3):X.jumpTo(2):X.return();X.nextAddress!=2&&((C=X.yieldResult)&&_.FL()&&!_.b("delete_gcf_config_db")?(D.isConfigDbInitialized=!0,gPb(D)):(Oef(D),AXb(D)));return _.b("delete_gcf_config_db")?X.yield(Y1Z(),0):X.jumpTo(0)})},VC=function(){var D;
return(D=wF())!=null?D:_.q6("RAW_HOT_CONFIG_GROUP")},$he=function(D){var C,X,c,W,p,g;
return _.I(function(a){switch(a.nextAddress){case 1:if(D.hotGlobalConfigGroup)return a.return(wF());if(!D.isConfigDbInitialized)return C=Cq("getHotConfig IDB not initialized"),_.CC(C),a.return(Promise.reject(C));X=Pz();c=_.q6("TIME_CREATED_MS");if(!X){W=Cq("getHotConfig token error");_.CC(W);a.jumpTo(2);break}return a.yield(NJW(X),3);case 3:if((p=a.yieldResult)&&p.timestamp>c)return p_x(D,p.config),D.setHotHashData(p.hashData),a.return(wF());case 2:AXb(D);if(!(X&&D.hotGlobalConfigGroup&&D.hotHashData)){a.jumpTo(4);
break}return a.yield(enW(D.hotGlobalConfigGroup,D.hotHashData,X,c),4);case 4:return D.hotGlobalConfigGroup?a.return(wF()):(g=new _.Zf("Config not available in ytConfig"),_.CC(g),a.return(Promise.reject(g)))}})},ief=function(D){var C,X,c,W,p,g;
return _.I(function(a){switch(a.nextAddress){case 1:if(D.coldGlobalConfigGroup)return a.return(Uh5());if(!D.isConfigDbInitialized)return C=Cq("getColdConfig IDB not initialized"),_.CC(C),a.return(Promise.reject(C));X=Pz();c=_.q6("TIME_CREATED_MS");if(!X){W=Cq("getColdConfig");_.CC(W);a.jumpTo(2);break}return a.yield(tV3(X),3);case 3:if((p=a.yieldResult)&&p.timestamp>c)return S14(D,p.config),vP5(D,p.configData),a75(D,p.hashData),a.return(Uh5());case 2:Oef(D);if(!(X&&D.coldGlobalConfigGroup&&D.coldHashData&&
D.configData)){a.jumpTo(4);break}return a.yield(EPm(D.coldGlobalConfigGroup,D.coldHashData,D.configData,X,c),4);case 4:return D.coldGlobalConfigGroup?a.return(Uh5()):(g=new _.Zf("Config not available in ytConfig"),_.CC(g),a.return(Promise.reject(g)))}})},gPb=function(D){if(!D.hotGlobalConfigGroup||!D.coldGlobalConfigGroup){if(!Pz()){var C=Cq("scheduleGetConfigs");
_.CC(C)}D.initJob||(D.initJob=_.qX.addLowPriorityJob(function(){return _.I(function(X){switch(X.nextAddress){case 1:return _.KK(X,2),X.yield($he(D),4);case 4:_.SR(X,3);break;case 2:_.Eu(X);case 3:return _.KK(X,5),X.yield(ief(D),7);case 7:_.SR(X,6);break;case 5:_.Eu(X);case 6:D.initJob&&(D.initJob=0),_.t_(X)}})},100))}},E_Z=function(D,C,X){var c,W,p;
return _.I(function(g){switch(g.nextAddress){case 1:if(!_.b("start_client_gcf")){g.jumpTo(0);break}X&&p_x(D,X);D.setHotHashData(C);c=Pz();if(!c){g.jumpTo(3);break}if(X){g.jumpTo(4);break}return g.yield(NJW(c),5);case 5:W=g.yieldResult,X=(p=W)==null?void 0:p.config;case 4:return g.yield(enW(X,C,c),3);case 3:if(X)for(var a=X,O=_.U(D.configUpdateService.sharedHotConfigJobQueue),P=O.next();!P.done;P=O.next())P=P.value,P(a);_.t_(g)}})},t5R=function(D,C,X){var c,W,p,g;
return _.I(function(a){if(a.nextAddress==1){if(!_.b("start_client_gcf"))return a.jumpTo(0);a75(D,C);return(c=Pz())?X?a.jumpTo(4):a.yield(tV3(c),5):a.jumpTo(0)}a.nextAddress!=4&&(W=a.yieldResult,X=(p=W)==null?void 0:p.config);if(!X)return a.jumpTo(0);g=X.configData;return a.yield(EPm(X,C,g,c),0)})},l75=function(){var D=I7g(),C=(0,_.kh)()-D.debounceTimer;
if(!(D.debounceTimer!==0&&C<_.BK("send_config_hash_timer"))){C=_.Df("yt.gcf.config.coldConfigData");var X=_.Df("yt.gcf.config.hotHashData"),c=_.Df("yt.gcf.config.coldHashData");C&&X&&c&&(D.debounceTimer=(0,_.kh)());return{coldConfigData:C,hotHashData:X,coldHashData:c}}},Oef=function(D){S14(D,_.q6("RAW_COLD_CONFIG_GROUP"));
a75(D,_.q6("SERIALIZED_COLD_HASH_DATA"));var C;vP5(D,(C=D.coldGlobalConfigGroup)==null?void 0:C.configData)},AXb=function(D){p_x(D,_.q6("RAW_HOT_CONFIG_GROUP"));
D.setHotHashData(_.q6("SERIALIZED_HOT_HASH_DATA"))},p_x=function(D,C){D.hotGlobalConfigGroup=C;
_.$h("yt.gcf.config.hotConfigGroup",D.hotGlobalConfigGroup||null)},S14=function(D,C){D.coldGlobalConfigGroup=C;
_.$h("yt.gcf.config.coldConfigGroup",D.coldGlobalConfigGroup||null)};
Gu.prototype.setHotHashData=function(D){this.hotHashData=D;_.$h("yt.gcf.config.hotHashData",this.hotHashData||null)};
var a75=function(D,C){D.coldHashData=C;_.$h("yt.gcf.config.coldHashData",D.coldHashData||null)},vP5=function(D,C){D.configData=C;
_.$h("yt.gcf.config.coldConfigData",D.configData||null)},wF=function(){return _.Df("yt.gcf.config.hotConfigGroup")},Uh5=function(){return _.Df("yt.gcf.config.coldConfigGroup")};var eR={},k1c=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";eR.assign=function(D){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var X=C.shift();if(X){if(typeof X!=="object")throw new TypeError("Zc`"+X);for(var c in X)Object.prototype.hasOwnProperty.call(X,c)&&(D[c]=X[c])}}return D};
eR.shrinkBuf=function(D,C){if(D.length===C)return D;if(D.subarray)return D.subarray(0,C);D.length=C;return D};
var u$x={arraySet:function(D,C,X,c,W){if(C.subarray&&D.subarray)D.set(C.subarray(X,X+c),W);else for(var p=0;p<c;p++)D[W+p]=C[X+p]},
flattenChunks:function(D){var C,X;var c=X=0;for(C=D.length;c<C;c++)X+=D[c].length;var W=new Uint8Array(X);c=X=0;for(C=D.length;c<C;c++){var p=D[c];W.set(p,X);X+=p.length}return W}},QIJ={arraySet:function(D,C,X,c,W){for(var p=0;p<c;p++)D[W+p]=C[X+p]},
flattenChunks:function(D){return[].concat.apply([],D)}};
eR.setTyped=function(){k1c?(eR.Buf8=Uint8Array,eR.Buf16=Uint16Array,eR.Buf32=Int32Array,eR.assign(eR,u$x)):(eR.Buf8=Array,eR.Buf16=Array,eR.Buf32=Array,eR.assign(eR,QIJ))};
eR.setTyped();var BJ5=!0;try{new Uint8Array(1)}catch(D){BJ5=!1}
var NLh=function(D){var C,X,c=D.length,W=0;for(C=0;C<c;C++){var p=D.charCodeAt(C);if((p&64512)===55296&&C+1<c){var g=D.charCodeAt(C+1);(g&64512)===56320&&(p=65536+(p-55296<<10)+(g-56320),C++)}W+=p<128?1:p<2048?2:p<65536?3:4}var a=new eR.Buf8(W);for(C=X=0;X<W;C++)p=D.charCodeAt(C),(p&64512)===55296&&C+1<c&&(g=D.charCodeAt(C+1),(g&64512)===56320&&(p=65536+(p-55296<<10)+(g-56320),C++)),p<128?a[X++]=p:(p<2048?a[X++]=192|p>>>6:(p<65536?a[X++]=224|p>>>12:(a[X++]=240|p>>>18,a[X++]=128|p>>>12&63),a[X++]=
128|p>>>6&63),a[X++]=128|p&63);return a};var QEm={};QEm=function(D,C,X,c){var W=D&65535|0;D=D>>>16&65535|0;for(var p;X!==0;){p=X>2E3?2E3:X;X-=p;do W=W+C[c++]|0,D=D+W|0;while(--p);W%=65521;D%=65521}return W|D<<16|0};for(var Hz={},FM,bex=[],rXq=0;rXq<256;rXq++){FM=rXq;for(var Kn5=0;Kn5<8;Kn5++)FM=FM&1?3988292384^FM>>>1:FM>>>1;bex[rXq]=FM}Hz=function(D,C,X,c){X=c+X;for(D^=-1;c<X;c++)D=D>>>8^bex[(D^C[c])&255];return D^-1};var Yh={};Yh={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 god=[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],Ign=[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],t_d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],khr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Fs=Array(576);xh(Fs);var Zi=Array(60);xh(Zi);var tC=Array(512);xh(tC);var EH=Array(256);xh(EH);var agj=Array(29);xh(agj);var OHm=Array(30);xh(OHm);var mzJ,ecF,EoR,sEo=!1;var MX;
MX=[new jR(0,0,0,0,function(D,C){var X=65535;for(X>D.pending_buf_size-5&&(X=D.pending_buf_size-5);;){if(D.lookahead<=1){JC(D);if(D.lookahead===0&&C===0)return 1;if(D.lookahead===0)break}D.strstart+=D.lookahead;D.lookahead=0;var c=D.block_start+X;if(D.strstart===0||D.strstart>=c)if(D.lookahead=D.strstart-c,D.strstart=c,Gb(D,!1),D.strm.avail_out===0)return 1;if(D.strstart-D.block_start>=D.w_size-262&&(Gb(D,!1),D.strm.avail_out===0))return 1}D.insert=0;if(C===4)return Gb(D,!0),D.strm.avail_out===0?3:
4;D.strstart>D.block_start&&Gb(D,!1);return 1}),
new jR(4,4,8,4,BLo),new jR(4,5,16,8,BLo),new jR(4,6,32,32,BLo),new jR(4,4,16,16,zb),new jR(8,16,32,32,zb),new jR(8,16,128,128,zb),new jR(8,32,128,256,zb),new jR(32,128,258,1024,zb),new jR(32,258,258,4096,zb)];var LWj={};LWj=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 Y2r=Object.prototype.toString;
xz5.prototype.push=function(D,C){var X=this.strm,c=this.options.chunkSize;if(this.ended)return!1;var W=C===~~C?C:C===!0?4:0;typeof D==="string"?X.input=NLh(D):Y2r.call(D)==="[object ArrayBuffer]"?X.input=new Uint8Array(D):X.input=D;X.next_in=0;X.avail_in=X.input.length;do{X.avail_out===0&&(X.output=new eR.Buf8(c),X.next_out=0,X.avail_out=c);D=hcJ(X,W);if(D!==1&&D!==0)return hnC(this,D),this.ended=!0,!1;if(X.avail_out===0||X.avail_in===0&&(W===4||W===2))if(this.options.to==="string"){var p=eR.shrinkBuf(X.output,
X.next_out);C=p;p=p.length;if(p<65537&&(C.subarray&&BJ5||!C.subarray))C=String.fromCharCode.apply(null,eR.shrinkBuf(C,p));else{for(var g="",a=0;a<p;a++)g+=String.fromCharCode(C[a]);C=g}this.chunks.push(C)}else C=eR.shrinkBuf(X.output,X.next_out),this.chunks.push(C)}while((X.avail_in>0||X.avail_out===0)&&D!==1);if(W===4)return(X=this.strm)&&X.state?(c=X.state.status,c!==42&&c!==69&&c!==73&&c!==91&&c!==103&&c!==113&&c!==666?D=yJ(X,-2):(X.state=null,D=c===113?yJ(X,-3):0)):D=-2,hnC(this,D),this.ended=
!0,D===0;W===2&&(hnC(this,0),X.avail_out=0);return!0};
var hnC=function(D,C){C===0&&(D.result=D.options.to==="string"?D.chunks.join(""):eR.flattenChunks(D.chunks));D.chunks=[];D.err=C;D.msg=D.strm.msg};var xhN=typeof TextEncoder!=="undefined"?new TextEncoder:null,aJm=xhN?function(D){return xhN.encode(D)}:function(D){D=_.yL(D);
for(var C=new Uint8Array(D.length),X=0;X<C.length;X++)C[X]=D[X];return C};var Rzm={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Dgm={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var ZF=function(D,C){this.version=D;this.args=C};
ZF.prototype.serialize=function(){return{version:this.version,args:this.args}};var ZHJ=function(D,C){this.topic=D;this.dataClass=C};
ZHJ.prototype.toString=function(){return this.topic};var Lnf=_.Df("ytPubsub2Pubsub2Instance")||new _.tg;_.tg.prototype.subscribe=_.tg.prototype.subscribe;_.tg.prototype.unsubscribeByKey=_.tg.prototype.unsubscribeByKey;_.tg.prototype.publish=_.tg.prototype.publish;_.tg.prototype.clear=_.tg.prototype.clear;_.$h("ytPubsub2Pubsub2Instance",Lnf);var FWo=_.Df("ytPubsub2Pubsub2SubscribedKeys")||{};_.$h("ytPubsub2Pubsub2SubscribedKeys",FWo);var V_j=_.Df("ytPubsub2Pubsub2TopicToKeys")||{};_.$h("ytPubsub2Pubsub2TopicToKeys",V_j);
var GhR=_.Df("ytPubsub2Pubsub2IsAsync")||{};_.$h("ytPubsub2Pubsub2IsAsync",GhR);_.$h("ytPubsub2Pubsub2SkipSubKey",null);var RcW=void 0,fgo=void 0;var prZ=_.BK("max_body_size_to_compress",5E5),Sso=_.BK("min_body_size_to_compress",500),dD=!0,AAr=0,Rp=0,OGt=_.BK("compression_performance_threshold_lr",250),$wF=_.BK("slow_compressions_before_abandon_count",4),CHd=!1,Xrm=new Map,gno=1,UwJ=!0;_.WT(ll,iGF);ll.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 sI4=function(D,C,X){X||(X=0);var c=D.W_;if(typeof C==="string")for(var W=0;W<16;W++)c[W]=C.charCodeAt(X)<<24|C.charCodeAt(X+1)<<16|C.charCodeAt(X+2)<<8|C.charCodeAt(X+3),X+=4;else for(W=0;W<16;W++)c[W]=C[X]<<24|C[X+1]<<16|C[X+2]<<8|C[X+3],X+=4;for(C=16;C<80;C++)X=c[C-3]^c[C-8]^c[C-14]^c[C-16],c[C]=(X<<1|X>>>31)&4294967295;C=D.chain_[0];X=D.chain_[1];W=D.chain_[2];for(var p=D.chain_[3],g=D.chain_[4],a,O,P=0;P<80;P++)P<40?P<20?(a=p^X&(W^p),O=1518500249):(a=X^W^p,O=1859775393):P<60?(a=X&W|p&(X|W),
O=2400959708):(a=X^W^p,O=3395469782),a=(C<<5|C>>>27)+a+g+O+c[P]&4294967295,g=p,p=W,W=(X<<30|X>>>2)&4294967295,X=C,C=a;D.chain_[0]=D.chain_[0]+C&4294967295;D.chain_[1]=D.chain_[1]+X&4294967295;D.chain_[2]=D.chain_[2]+W&4294967295;D.chain_[3]=D.chain_[3]+p&4294967295;D.chain_[4]=D.chain_[4]+g&4294967295};
ll.prototype.update=function(D,C){if(D!=null){C===void 0&&(C=D.length);for(var X=C-this.blockSize,c=0,W=this.buf_,p=this.inbuf_;c<C;){if(p==0)for(;c<=X;)sI4(this,D,c),c+=this.blockSize;if(typeof D==="string")for(;c<C;){if(W[p]=D.charCodeAt(c),++p,++c,p==this.blockSize){sI4(this,W);p=0;break}}else for(;c<C;)if(W[p]=D[c],++p,++c,p==this.blockSize){sI4(this,W);p=0;break}}this.inbuf_=p;this.total_+=C}};
ll.prototype.digest=function(){var D=[],C=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var X=this.blockSize-1;X>=56;X--)this.buf_[X]=C&255,C/=256;sI4(this,this.buf_);for(X=C=0;X<5;X++)for(var c=24;c>=0;c-=8)D[C]=this.chain_[X]>>c&255,++C;return D};var Qo3;var Vn=function(D){var C=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(k){C.databaseToken=k},
triggerThrottle:function(){C.throttledSend()},
cancelThrottle:function(){C.cancelThrottledSend()},
immediateSend:function(k){return _.I(function(u){return u.yield(C.immediateSend(k),0)})},
requestWithinAgeLimit:function(k,u){return C.requestWithinAgeLimit(k,u)},
retryQueuedRequests:function(){C.retryQueuedRequests()}};
var X;this.throttleTimeout=(X=D.throttleTimeout)!=null?X:100;var c;this.retryMaxAttempts=(c=D.retryMaxAttempts)!=null?c:1;var W;this.requestAgeLimitMs=(W=D.requestAgeLimitMs)!=null?W:2592E6;var p;this.queuedRequestAgeLimitMs=(p=D.queuedRequestAgeLimitMs)!=null?p:12E4;var g;this.retryDelayMs=(g=D.retryDelayMs)!=null?g:5E3;var a;this.databaseToken=(a=D.databaseToken)!=null?a:void 0;this.enableCleaning=!!D.enableCleaning;var O;this.cleaningRate=(O=D.cleaningRate)!=null?O:.1;var P;this.potentialEsfErrorLimit=
(P=D.potentialEsfErrorLimit)!=null?P:10;D.handleError&&(this.handleError=D.handleError);D.handleWarning&&(this.handleWarning=D.handleWarning);D.disableYtIdbTransactions&&(this.disableYtIdbTransactions=D.disableYtIdbTransactions);D.bypassDbTokenDependency&&(this.bypassDbTokenDependency=D.bypassDbTokenDependency);this.getBooleanFlag=D.getBooleanFlag;this.jobManager=D.jobManager;this.logsStore=D.logsStore;this.networkManager=D.networkManager;this.sendFn=D.sendFn;this.onlineEvent=D.onlineEvent;this.offlineEvent=
D.offlineEvent;GZ(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&mhd(this)},mhd=function(D){GZ(D)&&!D.disableYtIdbTransactions&&(D.initialized=!0,D.enableCleaning&&Math.random()<=D.cleaningRate&&D.logsStore.cleanLogsStore(D.databaseToken),D.retryQueuedRequests(),D.networkManager.isNetworkAvailable()&&D.throttledSend(),D.networkManager.listen(D.onlineEvent,D.throttledSend.bind(D)),D.networkManager.listen(D.offlineEvent,D.cancelThrottledSend.bind(D)))};
_.S=Vn.prototype;_.S.writeThenSend=function(D,C){var X=this;C=C===void 0?{}:C;if(GZ(this)&&this.initialized){var c={url:D,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(c,this.databaseToken).then(function(W){c.id=W;X.networkManager.isNetworkAvailable()&&X.immediateSend(c)}).catch(function(W){X.immediateSend(c);
enc(X,W)})}else this.sendFn(D,C)};
_.S.sendThenWrite=function(D,C,X){var c=this;C=C===void 0?{}:C;if(GZ(this)&&this.initialized){var W={url:D,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(W.skipRetry=X);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!W.skipRetry){if(!W.skipRetry){var p=C.onError?C.onError:function(){};
C.onError=function(g,a){return _.I(function(O){if(O.nextAddress==1)return O.yield(c.logsStore.set(W,c.databaseToken).catch(function(P){enc(c,P)}),2);
p(g,a);_.t_(O)})}}this.sendFn(D,C,W.skipRetry)}else this.logsStore.set(W,this.databaseToken).catch(function(g){c.sendFn(D,C,W.skipRetry);
enc(c,g)})}else this.sendFn(D,C,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&X)};
_.S.sendAndWrite=function(D,C){var X=this;C=C===void 0?{}:C;if(GZ(this)&&this.initialized){var c={url:D,options:C,timestamp:this.now(),status:"NEW",sendCount:0},W=!1,p=C.onSuccess?C.onSuccess:function(){};
c.options.onSuccess=function(g,a){c.id!==void 0?X.logsStore.deleteRequest(c.id,X.databaseToken):W=!0;X.networkManager.networkStatusHint&&X.getBooleanFlag&&X.getBooleanFlag("vss_network_hint")&&X.networkManager.networkStatusHint(!0);p(g,a)};
this.sendFn(c.url,c.options,void 0,!0);this.logsStore.set(c,this.databaseToken).then(function(g){c.id=g;W&&X.logsStore.deleteRequest(c.id,X.databaseToken)}).catch(function(g){enc(X,g)})}else this.sendFn(D,C,void 0,!0)};
_.S.throttledSend=function(){var D=this;if(!GZ(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D.logsStore.getMostRecentByStatus("NEW",D.databaseToken),2);if(X.nextAddress!=3)return C=X.yieldResult,C?X.yield(D.immediateSend(C),3):(D.cancelThrottledSend(),X.return());D.intervalJob&&(D.intervalJob=0,D.throttledSend());_.t_(X)})},this.throttleTimeout))};
_.S.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.S.immediateSend=function(D){var C=this,X;return _.I(function(c){switch(c.nextAddress){case 1:if(!GZ(C))throw Error("cd");if(D.id===void 0){c.jumpTo(2);break}return c.yield(C.logsStore.markAsQueued(D.id,C.databaseToken),3);case 3:(X=c.yieldResult)||C.handleWarning(Error("dd"));case 2:if(C.requestWithinAgeLimit(D,C.requestAgeLimitMs)){c.jumpTo(4);break}C.handleWarning(Error("ed"));if(D.id===void 0){c.jumpTo(5);break}return c.yield(C.logsStore.deleteRequest(D.id,C.databaseToken),5);case 5:return c.return();
case 4:D.skipRetry||(D=EPq(C,D));if(!D){c.jumpTo(0);break}if(!D.skipRetry||D.id===void 0){c.jumpTo(8);break}return c.yield(C.logsStore.deleteRequest(D.id,C.databaseToken),8);case 8:C.sendFn(D.url,D.options,!!D.skipRetry),_.t_(c)}})};
var EPq=function(D,C){if(!GZ(D))throw Error("fd");var X=C.options.onError?C.options.onError:function(){};
C.options.onError=function(W,p){var g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:g=hOh(p);(a=xwj(p))&&D.getBooleanFlag&&D.getBooleanFlag("web_enable_error_204")&&D.handleError(Error("gd"),C.url,p);if(!(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&g||D.getBooleanFlag&&!D.getBooleanFlag("nwl_consider_error_code")&&D.potentialEsfErrorCounter<=D.potentialEsfErrorLimit)){k.jumpTo(2);break}if(!D.networkManager.sendNetworkCheckRequest){k.jumpTo(3);break}return k.yield(D.networkManager.sendNetworkCheckRequest(),
3);case 3:if(D.networkManager.isNetworkAvailable()){k.jumpTo(2);break}X(W,p);if(!D.getBooleanFlag||!D.getBooleanFlag("nwl_consider_error_code")||((O=C)==null?void 0:O.id)===void 0){k.jumpTo(6);break}return k.yield(D.logsStore.resetRequest(C.id,D.databaseToken,!1),6);case 6:return k.return();case 2:if(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&!g&&D.potentialEsfErrorCounter>D.potentialEsfErrorLimit)return k.return();D.potentialEsfErrorCounter++;if(((P=C)==null?void 0:P.id)===void 0){k.jumpTo(8);
break}return C.sendCount<D.retryMaxAttempts?k.yield(D.logsStore.resetRequest(C.id,D.databaseToken,!0,a?!1:void 0),12):k.yield(D.logsStore.deleteRequest(C.id,D.databaseToken),8);case 12:D.jobManager.addLowPriorityJob(function(){D.networkManager.isNetworkAvailable()&&D.throttledSend()},D.retryDelayMs);
case 8:X(W,p),_.t_(k)}})};
var c=C.options.onSuccess?C.options.onSuccess:function(){};
C.options.onSuccess=function(W,p){var g;return _.I(function(a){if(a.nextAddress==1)return((g=C)==null?void 0:g.id)===void 0?a.jumpTo(2):a.yield(D.logsStore.deleteRequest(C.id,D.databaseToken),2);D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);c(W,p);_.t_(a)})};
return C};
Vn.prototype.requestWithinAgeLimit=function(D,C){D=D.timestamp;return this.now()-D>=C?!1:!0};
Vn.prototype.retryQueuedRequests=function(){var D=this;if(!GZ(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(C){C&&!D.requestWithinAgeLimit(C,D.queuedRequestAgeLimitMs)?D.jobManager.addLowPriorityJob(function(){return _.I(function(X){if(X.nextAddress==1)return C.id===void 0?X.jumpTo(2):X.yield(D.logsStore.resetRequest(C.id,D.databaseToken),2);D.retryQueuedRequests();_.t_(X)})}):D.networkManager.isNetworkAvailable()&&D.throttledSend()})};
var enc=function(D,C){D.writeError&&!D.networkManager.isNetworkAvailable()?D.writeError(C):D.handleError(C)},GZ=function(D){return!!D.databaseToken||D.bypassDbTokenDependency};var LZJ;var ylW={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var tV4={},wrr=il("ServiceWorkerLogsDatabase",{objectStores:(tV4.SWHealthLog={addedAtVersion:1},tV4),shared:!0,upgrade:function(D,C){C(1)&&cL(X3(D,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var zOm={},JAm=0;var fJZ;var TZ=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},UU=function(){if(!TZ.instance){var D=_.Df("yt.networkRequestMonitor.instance")||new TZ;
_.$h("yt.networkRequestMonitor.instance",D);TZ.instance=D}return TZ.instance};
TZ.prototype.requestComplete=function(D,C){C&&(this.anyRequestHasSucceeded=!0);D=this.removeParams(D);this.requestMap.get(D)||this.requestMap.set(D,C)};
TZ.prototype.isEndpointCFR=function(D){D=this.removeParams(D);return(D=this.requestMap.get(D))?!1:D===!1&&this.anyRequestHasSucceeded?!0:null};
TZ.prototype.removeParams=function(D){return D.split("?")[0]};
TZ.prototype.removeParams=TZ.prototype.removeParams;TZ.prototype.isEndpointCFR=TZ.prototype.isEndpointCFR;TZ.prototype.requestComplete=TZ.prototype.requestComplete;TZ.getInstance=UU;var H6=function(D){_.yg.call(this);var C=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=D!=null?D:{addLowPriorityJob:function(W,p){return setTimeout(W,p)},
cancelJob:function(W){clearTimeout(W)}};
var X,c;this.isOnline=(c=(X=window.navigator)==null?void 0:X.onLine)!=null?c:!0;this.onNavigatorChange=function(){return _.I(function(W){return W.yield(NJc(C),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Y1C(this)};
_.h(H6,_.yg);H6.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete H6.instance};
H6.prototype.isNetworkAvailable=function(){return this.isOnline};
var Y1C=function(D){D.pollingJob=D.jobManager.addLowPriorityJob(function(){var C;return _.I(function(X){if(X.nextAddress==1)return D.isOnline?((C=window.navigator)==null?0:C.onLine)?X.jumpTo(3):X.yield(NJc(D),3):X.yield(NJc(D),3);Y1C(D);_.t_(X)})},3E4)},NJc=function(D,C){return D.networkRequestPromise?D.networkRequestPromise:D.networkRequestPromise=new Promise(function(X){var c,W,p,g;
return _.I(function(a){switch(a.nextAddress){case 1:return c=window.AbortController?new window.AbortController:void 0,p=(W=c)==null?void 0:W.signal,g=!1,_.KK(a,2,3),c&&(D.abortTimeoutKey=D.jobManager.addLowPriorityJob(function(){c.abort()},C||2E4)),a.yield(fetch("/generate_204",{method:"HEAD",
signal:p}),5);case 5:g=!0;case 3:_.xF(a);D.networkRequestPromise=void 0;D.abortTimeoutKey&&(D.jobManager.cancelJob(D.abortTimeoutKey),D.abortTimeoutKey=0);g!==D.isOnline&&(D.isOnline=g,D.isOnline?D.dispatchEvent("networkstatus-online"):D.dispatchEvent("networkstatus-offline"));X(g);_.es(a,0);break;case 2:_.Eu(a),g=!1,a.jumpTo(3)}})})};var J7=function(){_.yg.call(this);var D=this;this.shouldFlushErrors=!1;H6.instance||(H6.instance=new H6(_.qX));this.sharedNetworkStatusManager=H6.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(D.shouldFlushErrors&&_.b("offline_error_handling")){var C=dwh().get("errors",!0);if(C){for(var X in C)if(C[X]){var c=new _.Zf(X,"sent via offline_errors");c.name=C[X].name;c.stack=C[X].stack;c.level=C[X].level;_.Re(c)}dwh().set("errors",{},2592E3,!0)}}})};
_.h(J7,_.yg);var yX4=function(){if(!J7.instance){var D=_.Df("yt.networkStatusManager.instance")||new J7;_.$h("yt.networkStatusManager.instance",D);J7.instance=D}return J7.instance};
_.S=J7.prototype;_.S.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.S.networkStatusHint=function(D){this.sharedNetworkStatusManager.isOnline=D};
_.S.getWindowStatus=function(){var D=window.navigator.onLine;return D===void 0?!0:D};
_.S.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.S.listen=function(D,C){return this.sharedNetworkStatusManager.listen(D,C)};
_.S.sendNetworkCheckRequest=function(D){D=NJc(this.sharedNetworkStatusManager,D);D.then(function(C){_.b("use_cfr_monitor")&&UU().requestComplete("generate_204",C)});
return D};
J7.prototype.sendNetworkCheckRequest=J7.prototype.sendNetworkCheckRequest;J7.prototype.listen=J7.prototype.listen;J7.prototype.enableErrorFlushing=J7.prototype.enableErrorFlushing;J7.prototype.getWindowStatus=J7.prototype.getWindowStatus;J7.prototype.networkStatusHint=J7.prototype.networkStatusHint;J7.prototype.isNetworkAvailable=J7.prototype.isNetworkAvailable;J7.getInstance=yX4;_.Se=function(D){D=D===void 0?{}:D;_.yg.call(this);var C=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=yX4();var X=_.Df("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);X&&(D.rateLimit?(this.rateLimit=D.rateLimit,X("networkstatus-online",function(){nPC(C,"publicytnetworkstatus-online")}),X("networkstatus-offline",function(){nPC(C,"publicytnetworkstatus-offline")})):(X("networkstatus-online",function(){C.dispatchEvent("publicytnetworkstatus-online")}),X("networkstatus-offline",
function(){C.dispatchEvent("publicytnetworkstatus-offline")})))};
_.h(_.Se,_.yg);_.Se.prototype.isNetworkAvailable=function(){var D=_.Df("yt.networkStatusManager.instance.isNetworkAvailable");return D?D.bind(this.nsmInstance)():!0};
_.Se.prototype.networkStatusHint=function(D){var C=_.Df("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);C&&C(D)};
_.Se.prototype.sendNetworkCheckRequest=function(D){var C=this,X;return _.I(function(c){X=_.Df("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(C.nsmInstance);return _.b("skip_network_check_if_cfr")&&UU().isEndpointCFR("generate_204")?c.return(new Promise(function(W){var p;C.networkStatusHint(((p=window.navigator)==null?void 0:p.onLine)||!0);W(C.isNetworkAvailable())})):X?c.return(X(D)):c.return(!0)})};
var nPC=function(D,C){D.rateLimit?D.lastJobTime?(_.qX.cancelJob(D.schedulerJob),D.schedulerJob=_.qX.addLowPriorityJob(function(){D.lastPublicSignalSent!==C&&(D.dispatchEvent(C),D.lastPublicSignalSent=C,D.lastJobTime=(0,_.kh)())},D.rateLimit-((0,_.kh)()-D.lastJobTime))):(D.dispatchEvent(C),D.lastPublicSignalSent=C,D.lastJobTime=(0,_.kh)()):D.dispatchEvent(C)};var Xc3,zZ=function(){Vn.call(this,{logsStore:{cleanLogsStore:yAn,deleteRequest:Ys3,getMostRecentByStatus:Enj,markAsQueued:tYW,resetRequest:Nir,set:eO5},networkManager:_.cvd(),handleError:function(D,C,X){var c,W=X==null?void 0:(c=X.error)==null?void 0:c.code;if(W===400||W===415){var p;D=new _.Zf(D.message,C,X==null?void 0:(p=X.error)==null?void 0:p.code);_.CC(D,void 0,void 0,void 0,!0)}else _.Re(D)},
handleWarning:_.CC,sendFn:D_m,now:_.kh,writeError:ROn,jobManager:_.s3(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.BK("potential_esf_error_limit",10),getBooleanFlag:_.b,disableYtIdbTransactions:!(_.FL()&&_.o7d())});this.initializationPromise=new _.gL;_.b("networkless_immediately_drop_all_requests")&&nnn();xhJ("LogsDatabaseV2")};
_.h(zZ,Vn);_.FnM=function(){var D=_.Df("yt.networklessRequestController.instance");D||(D=new zZ,_.$h("yt.networklessRequestController.instance",D),_.b("networkless_logging")&&_.vz().then(function(C){D.databaseToken=C;mhd(D);D.initializationPromise.resolve();D.enableCleaning&&Math.random()<=D.cleaningRate&&D.databaseToken&&ZGo(D.databaseToken);_.b("networkless_immediately_drop_sw_health_store")&&w_4(D)}));
return D};
zZ.prototype.writeThenSend=function(D,C){C||(C={});C=COF(D,C);_.FL()||(this.initialized=!1);Vn.prototype.writeThenSend.call(this,D,C)};
zZ.prototype.sendThenWrite=function(D,C,X){C||(C={});C=COF(D,C);_.FL()||(this.initialized=!1);Vn.prototype.sendThenWrite.call(this,D,C,X)};
zZ.prototype.sendAndWrite=function(D,C){C||(C={});C=COF(D,C);_.FL()||(this.initialized=!1);Vn.prototype.sendAndWrite.call(this,D,C)};
zZ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var w_4=function(D){var C;_.I(function(X){if(!D.databaseToken)throw C=Cq("clearSWHealthLogsDb"),C;return X.return(GAr(D.databaseToken).catch(function(c){D.handleError(c)}))})};_.pc5=!1;_.Wpt=_.co.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.pc5};_.$h("ytNetworklessLoggingInitializationOptions",_.Wpt);var JY=function(D){var C=this;this.config_=null;D?this.config_=D:yX3()&&(this.config_=_.QJ());_.Zo(_.qX,function(){KZm(C)},5E3)};
JY.prototype.isReady=function(){!this.config_&&yX3()&&(this.config_=_.QJ());return!!this.config_};
var rAJ=function(D,C,X,c){!_.q6("VISITOR_DATA")&&C!=="visitor_id"&&Math.random()<.01&&_.CC(new _.Zf("Missing VISITOR_DATA when sending innertube request.",C,X,c));if(!D.isReady()){var W=new _.Zf("innertube xhrclient not ready",C,X,c);_.Re(W);throw W;}var p={headers:c.headers||{},method:"POST",postParams:X,postBody:c.postBody,postBodyFormat:c.postBodyFormat||"JSON",onTimeout:function(){c.onTimeout()},
onFetchTimeout:c.onTimeout,onSuccess:function(u,Q){if(c.onSuccess)c.onSuccess(Q)},
onFetchSuccess:function(u){if(c.onSuccess)c.onSuccess(u)},
onProgress:function(u){if(c.onProgress)c.onProgress(u)},
onError:function(u,Q){if(c.onError)c.onError(Q)},
onFetchError:function(u){if(c.onError)c.onError(u)},
timeout:c.timeout,withCredentials:!0,compress:c.compress};p.headers["Content-Type"]||(p.headers["Content-Type"]="application/json");var g="";(W=D.config_.innertubeHostOverride)&&(g=W);var a=D.config_.innertubeUseThirdPartyAuth||!1,O=_.RnW(a,g,c);Object.assign(p.headers,O);p.headers.Authorization&&!g&&a&&(p.headers["x-origin"]=window.location.origin);var P=_.gT(g+("/youtubei/"+D.config_.innertubeApiVersion+"/"+C),{alt:"json"}),k=function(u){u=u===void 0?!1:u;var Q;if(c.retry&&g!="www.youtube-nocookie.com"&&
(u||_.b("skip_ls_gel_retry")||p.headers["Content-Type"]!=="application/json"||(Q=Bi5(C,X,O,a)),Q)){var B=p.onSuccess,K=p.onFetchSuccess;p.onSuccess=function(Y,y){bGm(Q);B(Y,y)};
X.onFetchSuccess=function(Y,y){bGm(Q);K(Y,y)}}try{if(u&&c.retry&&!c.networklessOptions.bypassNetworkless)p.method="POST",c.networklessOptions.writeThenSend?_.FnM().writeThenSend(P,p):_.FnM().sendAndWrite(P,p);
else if(c.compress){var L=!c.networklessOptions.writeThenSend;if(p.postBody){var t=p.postBody;typeof t!=="string"&&(t=JSON.stringify(p.postBody));IJZ(P,t,p,_.eq,L)}else IJZ(P,JSON.stringify(p.postParams),p,u_h,L)}else u_h(P,p)}catch(Y){if(Y.name==="InvalidAccessError")Q&&(bGm(Q),Q=0),_.CC(Error("id"));else throw Y;}Q&&_.Zo(_.qX,function(){KZm(D)},5E3)};
_.S4m()?k1W().then(function(u){k(u)}):k(!1)};var sZt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(sZt,_.aH);var Zed=0,g7t=_.Ik?"webkit":_.ak?"moz":_.g1?"ms":JWf?"o":"";_.$h("ytDomDomGetNextId",_.Df("ytDomDomGetNextId")||function(){return++Zed});var G1J={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},PL=function(D){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(D=
D||window.event){this.event=D;for(var C in D)C in G1J||(this[C]=D[C]);this.scale=D.scale;this.rotation=D.rotation;var X=D.target||D.srcElement;X&&X.nodeType==3&&(X=X.parentNode);this.target=X;var c=D.relatedTarget;if(c)try{c=c.nodeName?c:null}catch(W){c=null}else this.type=="mouseover"?c=D.fromElement:this.type=="mouseout"&&(c=D.toElement);this.relatedTarget=c;this.clientX=D.clientX!=void 0?D.clientX:D.pageX;this.clientY=D.clientY!=void 0?D.clientY:D.pageY;this.keyCode=D.keyCode?D.keyCode:D.which;
this.charCode=D.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=D.altKey;this.ctrlKey=D.ctrlKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pageX_=D.pageX;this.pageY_=D.pageY}}catch(W){}},VVe=function(D){if(document.body&&document.documentElement){var C=document.body.scrollTop+document.documentElement.scrollTop;
D.pageX_=D.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);D.pageY_=D.clientY+C}};
PL.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
PL.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
PL.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var AY=_.co.ytEventsEventsListeners||{};_.$h("ytEventsEventsListeners",AY);var $_3=_.co.ytEventsEventsCounter||{count:0};_.$h("ytEventsEventsCounter",$_3);var v7Z=_.Ef(function(){var D=!1;try{var C=Object.defineProperty({},"capture",{get:function(){D=!0}});
window.addEventListener("test",null,C)}catch(X){}return D});_.WT(vL,_.nF);vL.prototype.onMouseMove_=function(D){D.pageX_===void 0&&VVe(D);var C=D.pageX_;D.pageY_===void 0&&VVe(D);this.position_=new _.VI(C,D.pageY_)};
vL.prototype.checkPosition_=function(){if(this.position_){var D=(0,_.kh)();if(this.previousTime_!=0){var C=this.previousPosition_,X=this.position_,c=C.x-X.x;C=C.y-X.y;c=Math.sqrt(c*c+C*C)/(D-this.previousTime_);this.cycles_[this.index_]=Math.abs((c-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(X=C=0;X<4;X++)C+=this.cycles_[X]||0;C>=3&&this.callback_();this.previousVelocity_=c}this.previousTime_=D;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
vL.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.ibZ(this.mouseListenerKey_)};var bbo={};var e7J=new _.A7("rawColdConfigGroup");var mnd=new _.A7("rawHotConfigGroup");var TJN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(TJN,_.aH);var Lat=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Lat,_.aH);var F3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D,500)};
_.h(F3,_.aH);F3.prototype.getPayloadCase=function(){return _.KR(this,HeC)};
F3.prototype.getContext=function(){return _.Bz(this,Lat,33)};
var HeC=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var rlj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(rlj,_.aH);var lRm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(lRm,_.aH);lRm.prototype.setVideoId=function(D){return ee(this,1,Dn3,Bp(D))};
lRm.prototype.getPlaylistId=function(){return _.se(this,yC(this,Dn3,2))};
var Dn3=[1,2];var iIh=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(iIh,_.aH);iIh.prototype.getContext=function(){return _.Bz(this,EU,1)};
iIh.prototype.getTier=function(){return _.tu(this,7)};var JXJ,QC,BL;JXJ=_.co.ytPubsubPubsubInstance||new _.tg;QC=_.co.ytPubsubPubsubSubscribedKeys||{};BL=_.co.ytPubsubPubsubTopicToKeys||{};_.rvd=_.co.ytPubsubPubsubIsSynchronous||{};_.tg.prototype.subscribe=_.tg.prototype.subscribe;_.tg.prototype.unsubscribeByKey=_.tg.prototype.unsubscribeByKey;_.tg.prototype.publish=_.tg.prototype.publish;_.tg.prototype.clear=_.tg.prototype.clear;_.$h("ytPubsubPubsubInstance",JXJ);_.$h("ytPubsubPubsubTopicToKeys",BL);_.$h("ytPubsubPubsubIsSynchronous",_.rvd);
_.$h("ytPubsubPubsubSubscribedKeys",QC);var rO=window;var jG=_.b("web_enable_lifecycle_monitoring")&&s3h()!==0,zn5=_.b("web_enable_lifecycle_monitoring");var jI5=function(D){var C=this;var X=X===void 0?0:X;var c=c===void 0?_.s3():c;this.JSC$11052_defaultPriority=X;this.scheduler=c;this.completedResolver=new _.gL;this.scheduledPayloads=D;for(D={i$jscomp$492:0};D.i$jscomp$492<this.scheduledPayloads.length;D={payload$jscomp$20:void 0,i$jscomp$492:D.i$jscomp$492},D.i$jscomp$492++)D.payload$jscomp$20=this.scheduledPayloads[D.i$jscomp$492],X=function(W){return function(){W.payload$jscomp$20.job();C.scheduledPayloads[W.i$jscomp$492].processed=!0;C.scheduledPayloads.every(function(p){return p.processed===
!0})&&C.completedResolver.resolve()}}(D),c=this.getPriority(D.payload$jscomp$20),c=this.scheduler.addJob(X,c),this.scheduledPayloads[D.i$jscomp$492]=Object.assign({},D.payload$jscomp$20,{job:X,
jobId:c})};
jI5.prototype.flushJobs=function(){var D=this,C=Array.from(this.scheduledPayloads.keys()).sort(function(c,W){return D.getPriority(D.scheduledPayloads[W])-D.getPriority(D.scheduledPayloads[c])});
C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=this.scheduledPayloads[X.value],X.jobId===void 0||X.processed||(this.scheduler.cancelJob(X.jobId),this.scheduler.addJob(X.job,10))};
jI5.prototype.cancel=function(){for(var D=_.U(this.scheduledPayloads),C=D.next();!C.done;C=D.next())C=C.value,C.jobId===void 0||C.processed||this.scheduler.cancelJob(C.jobId),C.processed=!0;this.completedResolver.resolve()};
jI5.prototype.getPriority=function(D){var C;return(C=D.priority)!=null?C:this.JSC$11052_defaultPriority};var M4=function(D){this.state=D;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};jG&&m_W(this.state)};
M4.prototype.install=function(D){this.plugins.push(D);return this};
M4.prototype.uninstall=function(){var D=this;_.MJ.apply(0,arguments).forEach(function(C){C=D.plugins.indexOf(C);C>-1&&D.plugins.splice(C,1)})};
M4.prototype.transition=function(D,C){var X=this;jG&&eWm(this.state);var c=this.transitions.find(function(p){return Array.isArray(p.from)?p.from.find(function(g){return g===X.state&&p.to===D}):p.from===X.state&&p.to===D});
if(c){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);MVe(this,D,C);this.state=D;jG&&m_W(this.state);c=c.action.bind(this);var W=this.plugins.filter(function(p){return p[D]}).map(function(p){return p[D]});
c(q1C(this,W),C)}else throw Error("jd`"+this.state+"`"+D);};
var q1C=function(D,C){var X=C.filter(function(W){return f7b(D,W)===10}),c=C.filter(function(W){return f7b(D,W)!==10});
return D.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var W=_.MJ.apply(0,arguments);return _.I(function(p){if(p.nextAddress==1)return p.yield(D.runImmediateJobsAsync.apply(D,[X].concat(_.VB(W))),2);D.setJobSetWithScheduledJobs.apply(D,[c].concat(_.VB(W)));_.t_(p)})}:function(){var W=_.MJ.apply(0,arguments);
D.runImmediateJobsSync.apply(D,[X].concat(_.VB(W)));D.setJobSetWithScheduledJobs.apply(D,[c].concat(_.VB(W)))}};
M4.prototype.runImmediateJobsSync=function(D){var C=_.MJ.apply(1,arguments);_.s3();for(var X=_.U(D),c=X.next(),W={};!c.done;W={lifecycle$jscomp$2:void 0},c=X.next())W.lifecycle$jscomp$2=c.value,W0(function(p){return function(){dhM(p.lifecycle$jscomp$2.name);t6m(function(){return p.lifecycle$jscomp$2.callback.apply(p.lifecycle$jscomp$2,_.VB(C))});
q4(p.lifecycle$jscomp$2.name)}}(W))};
M4.prototype.runImmediateJobsAsync=function(D){var C=_.MJ.apply(1,arguments),X,c,W,p;return _.I(function(g){g.nextAddress==1&&(_.s3(),X=_.U(D),c=X.next(),W={});if(g.nextAddress!=3){if(c.done)return g.jumpTo(0);W.lifecycle$jscomp$3=c.value;W.asyncJobCompletion=void 0;p=function(a){return function(){dhM(a.lifecycle$jscomp$3.name);var O=t6m(function(){return a.lifecycle$jscomp$3.callback.apply(a.lifecycle$jscomp$3,_.VB(C))});
b55(O)?a.asyncJobCompletion=_.b("web_lifecycle_error_handling_killswitch")?O.then(function(){q4(a.lifecycle$jscomp$3.name)}):O.then(function(){q4(a.lifecycle$jscomp$3.name)},function(P){E7m(P);
q4(a.lifecycle$jscomp$3.name)}):q4(a.lifecycle$jscomp$3.name)}}(W);
W0(p);return W.asyncJobCompletion?g.yield(W.asyncJobCompletion,3):g.jumpTo(3)}W={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};c=X.next();return g.jumpTo(2)})};
M4.prototype.setJobSetWithScheduledJobs=function(D){var C=_.MJ.apply(1,arguments),X=this,c=D.map(function(W){return{job:function(){dhM(W.name);t6m(function(){return W.callback.apply(W,_.VB(C))});
q4(W.name)},
priority:f7b(X,W)}});
c.length&&(this.jobSet=new jI5(c))};
var f7b=function(D,C){var X,c;return(c=(X=D.overridePriority)!=null?X:C.priority)!=null?c:0},dhM=function(D){jG&&D&&m_W(D)},q4=function(D){jG&&D&&eWm(D)},MVe=function(D,C,X){zn5&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+D.constructor.name+"] '"+D.state+"' to '"+C+"'"),console.log("with message: ",X),console.groupEnd())};
_.$a.Object.defineProperties(M4.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Rnc=function(D){M4.call(this,D===void 0?"none":D);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(){}}]},l7x;
_.h(Rnc,M4);Rnc.prototype.runApplicationNavigationBegin=function(D,C){var X=this;this.navigationTimer=_.Zo(_.qX,function(){X.currentState==="application_navigating"&&X.transition("none")},5E3);
D(C==null?void 0:C.event)};
Rnc.prototype.runApplicationNavigationEnd=function(D,C){this.navigationTimer&&(_.qX.cancelJob(this.navigationTimer),this.navigationTimer=null);D(C==null?void 0:C.event)};
_.s_j=function(){l7x||(l7x=new Rnc);return l7x};var Llj=[];_.$h("yt.logging.transport.getScrapedGelPayloads",function(){return Llj});var KQ=function(){var D=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return D.totalEntries}}};
KQ.prototype.storePayload=function(D,C){D=N2r(D);this.store[D]?this.store[D].push(C):(this.memoizedKeySequences={},this.store[D]=[C]);this.totalEntries++;_.b("more_accurate_gel_parser")&&(C=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(C));return D};
KQ.prototype.smartExtractMatchingEntries=function(D){if(!D.keys.length)return[];for(var C=Dzk(this,D.keys.splice(0,1)[0]),X=[],c=0;c<C.length;c++)this.store[C[c]]&&D.sizeLimit&&(this.store[C[c]].length<=D.sizeLimit?(X.push.apply(X,_.VB(this.store[C[c]])),delete this.store[C[c]]):X.push.apply(X,_.VB(this.store[C[c]].splice(0,D.sizeLimit))));this.totalEntries-=X.length;(D==null?0:D.sizeLimit)&&X.length<(D==null?void 0:D.sizeLimit)&&(D.sizeLimit-=X.length,X.push.apply(X,_.VB(this.smartExtractMatchingEntries(D))));
return X};
KQ.prototype.extractMatchingEntries=function(D){D=Dzk(this,D);for(var C=[],X=0;X<D.length;X++)this.store[D[X]]&&(C.push.apply(C,_.VB(this.store[D[X]])),delete this.store[D[X]]);this.totalEntries-=C.length;return C};
KQ.prototype.getSequenceCount=function(D){D=Dzk(this,D);for(var C=0,X=0;X<D.length;X++){var c=void 0;C+=((c=this.store[D[X]])==null?void 0:c.length)||0}return C};
var Dzk=function(D,C){var X=N2r(C);if(D.memoizedKeySequences[X])return D.memoizedKeySequences[X];var c=Object.keys(D.store)||[];if(c.length<=1&&N2r(C)===c[0])return c;for(var W=[],p=0;p<c.length;p++){var g=c[p].split("/");if(Cjg(C.auth,g[0])){var a=C.isJspb;Cjg(a===void 0?"undefined":a?"true":"false",g[1])&&Cjg(C.cttAuthInfo,g[2])&&(a=C.tier,a=a===void 0?"undefined":JSON.stringify(a),Cjg(a,g[3])&&W.push(c[p]))}}return D.memoizedKeySequences[X]=W},Cjg=function(D,C){return D===void 0||D==="undefined"?
!0:D===C};
KQ.prototype.getSequenceCount=KQ.prototype.getSequenceCount;KQ.prototype.extractMatchingEntries=KQ.prototype.extractMatchingEntries;KQ.prototype.smartExtractMatchingEntries=KQ.prototype.smartExtractMatchingEntries;KQ.prototype.storePayload=KQ.prototype.storePayload;var g_d,SIo,a55,LQ,Xld,YIn,N$m,p0J,Wlh,M6Z,Und,h7j,X0h;g_d=_.BK("initial_gel_batch_timeout",2E3);SIo=_.BK("gel_queue_timeout_max_ms",6E4);a55=_.BK("gel_min_batch_size",5);LQ=void 0;Xld=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
YIn=new Xld;N$m=new Xld;p0J=new Xld;Wlh=new Xld;Und=!0;h7j=1;_.KlW=new Map;X0h=_.co.ytLoggingTransportTokensToCttTargetIds_||{};_.$h("ytLoggingTransportTokensToCttTargetIds_",X0h);var Cum=_.co.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.$h("ytLoggingTransportTokensToJspbCttTargetIds_",Cum);var xl={};var Tu=_.co.ytLoggingGelSequenceIdObj_||{};_.$h("ytLoggingGelSequenceIdObj_",Tu);var w0J=[];var f5t=new Set,T$J=0,l5Z=0,R7Z=0,Jlm=[],HIr=[],DHh=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var AGd=function(){};
AGd.prototype.getUrl=function(D,C){C=C===void 0?!1:C;return D.hasOwnProperty("shareEndpoint")?null:_.ouj(D,null,C)};
var hgr=function(D,C,X){D={endpoint:C,actions:[]};X=(X.path?X.path[0]:X.target).icon||"";C=X.indexOf(":");C>0&&(X=X.substr(C+1));X&&D.actions.push(X);return D};var awr=/Command$/,gum=/Endpoint$/,pX5=new Map;var c94,oob;c94=1;_.Wf=function(){this.actionRoutingMap=new Map};
_.Wf.prototype.triggerAction=function(D){var C=new pxR(D,!1,_.MJ.apply(1,arguments));this.handleAction(C);return C.returnValue};
_.Wf.prototype.triggerOptionalAction=function(D){var C=new pxR(D,!0,_.MJ.apply(1,arguments));this.handleAction(C);return C.returnValue};
_.fX=function(D,C,X){C.forEach(function(c){var W=UH3(c);W&&D.triggerOptionalAction(W,c,X,void 0)})};
_.Wf.prototype.handleAction=function(D){var C=this.actionRoutingMap.get(D.actionName);C&&oob(D,C);D.optionalAction||D.returnValue.length!==0||(D=new _.Zf("Unhandled action",D.actionName),_.CC(D))};
oob=function(D,C){C.forEach(function(X){var c=null;X?c=X.apply(null,D.args):(X=Error("kd"),X.params=D.actionName,_.Re(X));D.returnValue.push(c)})};
_.p2=function(D,C,X){X||(X=c94++);for(var c=_.U(Object.keys(C)),W=c.next();!W.done;W=c.next()){W=W.value;var p=D.actionRoutingMap.get(W);p||(p=new Map,D.actionRoutingMap.set(W,p));D.registerActionHandler(X,W,C[W],p)}return X};
_.Wf.prototype.registerActionHandler=function(D,C,X,c){c.set(D,_.lq(X))};
_.U6=function(D,C,X){C=_.U(Object.keys(C));for(var c=C.next();!c.done;c=C.next())(c=D.actionRoutingMap.get(c.value))&&c.delete(X)};
_.cT(_.Wf);var vu3=function(D,C){var X=_.Wf.getInstance();_.JU(function(){var c={},W=_.p2(X,(c[D]=C,c));_.z3(function(){var p={};_.U6(X,(p[D]="",p),W)})})};var sMj=Symbol("md");Brd=CE3;var NUZ=new Set(["For","If","Match","Watch"]),WWx={},plf=(WWx[Dh.default]=function(){return PQ5},WWx.style=function(){return PQ5},WWx),S2N;
for(S2N in plf)ve.attributes[S2N]=plf[S2N](ve.attributes[S2N]);var iV=new _.P6("VISIBILITY_OBSERVER");var HTo={retrieve:function(D){return this.id.\u0275prov.token===D.\u0275prov.token?this.contextValue:this?_.Aw(this,this.id):kbh}};var lvm=function(D,C,X){if(D!==BU5)return!1;D=LYj(document.createElement("div"),function(){var c=uq(!1);try{X[0]()}finally{uq(c)}});
D=Array.from(D.childNodes);D.length===1&&(D=D[0]);return D};Brd=CE3;var Uzb=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(D){}var goe=typeof WeakRef==="function";var agg=function(D){this.value=D};
agg.prototype.deref=function(){return this.value};
var Igk=goe?WeakRef:agg,OHd=function(D){this.newKeyHandler=D;this.map=new WeakMap};
OHd.prototype.add=function(D,C){this.map.has(D)||(this.newKeyHandler(D),this.map.set(D,[]));this.map.get(D).push(new Igk(C))};
OHd.prototype.get=function(D){var C=this;return function c(){var W,p,g,a,O,P,k,u,Q,B,K;return _.a2(c,function(L){switch(L.nextAddress){case 1:_.m$(L,2);W=C.map.get(D);if(!W)return L.return();p=0;g=_.U(W);a=g.next();case 4:if(a.done){L.jumpTo(6);break}O=a.value;P=O.deref();if(!P){L.jumpTo(5);break}p++;k=_.I2;return L.yield(P,8);case 8:k(L.yieldResult);case 5:a=g.next();L.jumpTo(4);break;case 6:if(2*p<W.length){u=0;Q=_.U(W);for(B=Q.next();!B.done;B=Q.next())K=B.value,K.deref()&&(W[u++]=K);W.length=
u}case 2:_.xF(L),_.es(L,0)}})}()};var A9J=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},dHF=new OHd(function(D){D.addEventListener("abort",lwo,{once:!0})}),fwF=new WeakMap,PjC=function(D){D=D===void 0?dF:D;
this.signal=new D};
PjC.prototype.abort=function(D){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=D,D=new Event("abort"),this.signal.dispatchEvent(D))};
var dF=function(){this.target=A9J();this.aborted=!1;this.onabort=null};
dF.prototype.throwIfAborted=function(){qNo.call(this)};
dF.prototype.addEventListener=function(D,C,X){this.target.addEventListener(D,C,X)};
dF.prototype.removeEventListener=function(D,C,X){this.target.removeEventListener(D,C,X)};
dF.prototype.dispatchEvent=function(D){if(this.onabort&&D.type==="abort")this.onabort(D);return this.target.dispatchEvent(D)};
dF.abort=MrR;dF.timeout=Doj;dF.any=RdJ;var jan=Uzb?AbortController:PjC,RN=Uzb?AbortSignal:dF;typeof RN.abort!=="function"&&(RN.abort=MrR);typeof RN.prototype.throwIfAborted!=="function"&&(RN.prototype.throwIfAborted=qNo);typeof RN.any!=="function"&&(RN.any=RdJ);typeof RN.timeout!=="function"&&(RN.timeout=Doj);var uV=null,XCr=new Map;var $zg=function(D){D=D.clone();tff(D);yh(D,"dg",null);yh(D,"d","0");sXd(D,null);mIN(D,null);return D},vo5=!0,iHc=function(D,C,X){var c=X===void 0?{}:X;
X=c.cssRowKey===void 0?void 0:c.cssRowKey;var W=c.combinedSignature===void 0?void 0:c.combinedSignature;var p=c.extraEdges===void 0?void 0:c.extraEdges;c=c.callback===void 0?void 0:c.callback;yh(D,"m",C.join(","));p&&Ebg(D,p);X&&(yh(D,"ck",X),W?yh(D,"rs",W):vo5&&(vo5=!1));if(c){if(c!=null&&!yIx.test(c))throw Error("Xa`"+c);yh(D,"cb",c)}D=D.toString();_.Wo(D,"/")&&(D=Udq(document.location.href)+D);return _.t2(D)};var uUf=function(D){return khJ(D).then(function(C){return JSON.parse(C.responseText)})},khJ=function(D){var C={},X=C.xmlHttpFactory?C.xmlHttpFactory.createInstance():MjM.createInstance();
return(new _.mM(function(c,W){var p;try{X.open("GET",D,!0)}catch(O){W(new l1("Error opening XHR: "+O.message,D,X))}X.onreadystatechange=function(){if(X.readyState==4){_.co.clearTimeout(p);var O;!(O=jeb(X.status))&&(O=X.status===0)&&(O=Sek(D),O=!(O=="http"||O=="https"||O==""));O?c(X):W(new QEd(X.status,D,X))}};
X.onerror=function(){W(new l1("Network error",D,X))};
if(C.headers)for(var g in C.headers){var a=C.headers[g];a!=null&&X.setRequestHeader(g,a)}C.withCredentials&&(X.withCredentials=C.withCredentials);C.responseType&&(X.responseType=C.responseType);C.mimeType&&X.overrideMimeType(C.mimeType);C.timeoutMs>0&&(p=_.co.setTimeout(function(){X.onreadystatechange=function(){};
X.abort();W(new BLM(D,X))},C.timeoutMs));
try{X.send(null)}catch(O){X.onreadystatechange=function(){},_.co.clearTimeout(p),W(new l1("Error sending XHR: "+O.message,D,X))}})).thenCatch(function(c){c instanceof _.wE&&X.abort();
throw c;})},l1=function(D,C,X){_.Dn.call(this,D+", url="+C);
this.url=C;this.xhr=X};
_.WT(l1,_.Dn);l1.prototype.name="XhrError";var QEd=function(D,C,X){l1.call(this,"Request Failed, status="+D,C,X);this.status=D};
_.WT(QEd,l1);QEd.prototype.name="XhrHttpError";var BLM=function(D,C){l1.call(this,"Request timed out",D,C)};
_.WT(BLM,l1);BLM.prototype.name="XhrTimeoutError";XN=XN||{};var DE=function(){_.nF.call(this)};
_.WT(DE,_.nF);DE.prototype.initialize=function(){};var bHc=function(D,C){this.fn_=D;this.handler_=C};
bHc.prototype.execute=function(D){this.fn_&&(this.fn_.call(this.handler_||null,D),this.fn_=this.handler_=null)};
bHc.prototype.abort=function(){this.handler_=this.fn_=null};var Cr=function(D,C){_.nF.call(this);this.deps_=D;this.JSC$11207_id_=C;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.WT(Cr,_.nF);Cr.prototype.moduleConstructor_=DE;Cr.prototype.module_=null;Cr.prototype.getId=function(){return this.JSC$11207_id_};
Cr.prototype.registerCallback=function(D,C){return Xk(this.onloadCallbacks_,D,C)};
var r9J=function(D,C){Xk(D.onErrorCallbacks_,C)},Xk=function(D,C,X){C=new bHc(C,X);
D.push(C);return C};
Cr.prototype.isLoaded=function(){return!!this.module_};
Cr.prototype.onLoad=function(D){var C=new this.moduleConstructor_;C.initialize(D());this.module_=C;C=(C=KWC(this.earlyOnloadCallbacks_,D()))||KWC(this.onloadCallbacks_,D());C||(this.onErrorCallbacks_.length=0);return C};
Cr.prototype.onError=function(D){(D=KWC(this.onErrorCallbacks_,D))&&om(Error("rd`"+D));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var KWC=function(D,C){for(var X=[],c=0;c<D.length;c++)try{D[c].execute(C)}catch(W){om(W),X.push(W)}D.length=0;return X.length?X:null};
Cr.prototype.disposeInternal=function(){Cr.superClass_.disposeInternal.call(this);_.Ue(this.module_)};var hcN,Eof,mzN,ec5,LWg,sEM,nox,Y2J,y95;
_.Bf=function(D,C,X,c,W){c=c===void 0?!1:c;W=W===void 0?!1:W;var p=p===void 0?!0:p;this.scsReferenceUrl_=GbW(_.NJ(D).toString(),p);this.cssRowKey_=C;this.combinedSignature_=X;this.useNegativeLoading_=c;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(D=Yx(this.scsReferenceUrl_,"excm"))?D.split(","):[];this.shouldScanForCss_=W;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;VRF();_.cG(this,eLe(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
hcN=function(D,C){if(C.href||C.getAttribute("data-href"))if(C=C.href||C.getAttribute("data-href"),nhZ(C)&&!GbW(C).urlPrefix_.endsWith("_/js/")){C=eLe(GbW(C));C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,D.loadedCssModuleList_.includes(X)||D.loadedCssModuleList_.push(X)}};
_.Bf.prototype.JSC$11212_loadModules=function(D,C,X){var c=X===void 0?{}:X;C=c.extraEdges;X=c.onError;var W=c.onSuccess;c=c.forceReload;if(!D)throw Error("sd");if(this.shouldScanForCss_){for(var p=_.U(document.getElementsByTagName("style")),g=p.next();!g.done;g=p.next())hcN(this,g.value);p=_.U(document.getElementsByTagName("link"));for(g=p.next();!g.done;g=p.next())hcN(this,g.value)}xzx(this,LWg(this,D),C,X,W,c)};
var xzx=function(D,C,X,c,W,p){c=c===void 0?function(){}:c;
W=W===void 0?function(){}:W;
p=p===void 0?!1:p;sEM(D,C,function(g,a,O){O=O===void 0?a:O;D.enableFallbackFetch&&p?D.loadWithFetch(g,a,c,W,O):D.load(g,a,c,W,O,X)},X)||c(-1)};
_.Bf.prototype.loadWithFetch=function(){_.I(function(){throw Error("td");})};
_.Bf.prototype.maybeSetAdditionalFields=function(){};
Eof=function(D,C,X){if(D.useNegativeLoading_){var c=D.scsReferenceUrl_;D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,extraEdges:X,requestedModuleIds:mzN(D),requestedCssModuleIds:ec5(D)};var W=D===void 0?{}:D;D=W.requestedModuleIds===void 0?[]:W.requestedModuleIds;X=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds;var p=W.cssRowKey===void 0?void 0:W.cssRowKey;var g=W.combinedSignature===void 0?void 0:W.combinedSignature;var a=W.extraEdges===void 0?void 0:W.extraEdges;
W=W.callback===void 0?void 0:W.callback;c=$zg(c);yh(c,"d","1");sXd(c,D);mIN(c,X);C=iHc(c,C,{cssRowKey:p,combinedSignature:g,extraEdges:a,callback:W})}else c=D.scsReferenceUrl_,D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,requestedModuleIds:mzN(D),requestedCssModuleIds:ec5(D)},a=D===void 0?{}:D,D=a.requestedCssModuleIds===void 0?[]:a.requestedCssModuleIds,X=a.cssRowKey===void 0?void 0:a.cssRowKey,p=a.combinedSignature===void 0?void 0:a.combinedSignature,g=a.extraEdges===void 0?
void 0:a.extraEdges,a=a.callback===void 0?void 0:a.callback,c=$zg(c),mIN(c,D),C=iHc(c,C,{cssRowKey:X,combinedSignature:p,extraEdges:g,callback:a});return C};
_.cG=function(D,C){for(var X=!1,c=[],W=0;W<C.length;++W){var p=C[W];D.requestedModuleMap_[p]||(D.requestedModuleMap_[p]=!0,D.requestedModuleList_.push(p),X=!0,c.push(p))}X&&(D.requestedModuleListSorted_=!1)};
_.oR=function(D,C){for(var X=[],c=0;c<C.length;++c){var W=C[c];D.requestedModuleMap_[W]&&(delete D.requestedModuleMap_[W],_.VF(D.requestedModuleList_,W),X.push(W))}};
_.Bf.prototype.load=function(D,C,X,c,W){W=W===void 0?C:W;_.NJ(D);var p=this.useCors_,g=this.corsMode_,a=this.fetchPriority,O=_.mv("SCRIPT");_.gH(O,D);p&&(O.crossOrigin=g);O.async=!1;a&&O.setAttribute("fetchpriority",a);_.cG(this,C);_.t_e(this,D,O,C,X,c,W)};
_.t_e=function(D,C,X,c,W,p,g){g=g===void 0?c:g;D.lastScript_=X;D.insertPos.insertBefore(X,D.insertPos.firstChild);_.NL5(X,c,function(){X.parentElement.removeChild(X);D.lastScript_==X&&(D.lastScript_=null);p()},function(a){X.parentElement.removeChild(X);
D.lastScript_==X&&(D.lastScript_=null);_.oR(D,a);D.pendingModuleGraphUpdate_?D.pendingModuleGraphUpdate_.then(function(){W(-1,C)}):W(-1,C)},g)};
_.NL5=function(D,C,X,c,W){W=W===void 0?C:W;var p=C.length,g=function(){p=0;D.onload=null;D.onerror=null;a=function(){}},a=function(){g();
var P=W.filter(function(k){return!HI().getModuleInfo(k).isLoaded()});
P.length!==0?c(P,"Response was successful but was missing module(s) "+P+"."):X()},O=function(){p--;
p==0&&a()};
C.forEach(function(P){P=HI().getModuleInfo(P);P.isLoaded()?O():(Xk(P.earlyOnloadCallbacks_,O),r9J(P,O))});
D.onload=function(){return a()};
D.onerror=function(){g();c(C)}};
mzN=function(D){D.requestedModuleListSorted_||(D.requestedModuleListSorted_=!0,D.requestedModuleList_.sort());return D.requestedModuleList_};
ec5=function(D){D=D.loadedCssModuleList_;D.sort();return D};
LWg=function(D,C){return C.filter(function(X){return!D.requestedModuleMap_[X]})};
sEM=function(D,C,X,c){if(D.pendingModuleGraphUpdate_)return D.pendingModuleGraphUpdate_.then(function(){sEM(D,C,X,c)}),!0;
if(!D.useNegativeLoading_){var W=[],p=Object.assign({},D.requestedModuleMap_);Y2J(D,C,function(k){W.push(k.getId())},c,function(k){return!k.isLoaded()},p);
C=W}for(p=0;p<C.length;){for(var g=C.length-p,a=p==0?C:C.slice(p,C.length),O=Eof(D,a,c),P=_.NJ(O).toString();P.length>D.urlMaxLength;)if(g>1)g-=Math.ceil((P.length-D.urlMaxLength)/6),g=Math.max(g,1),a=C.slice(p,p+g),O=Eof(D,a,c),P=_.NJ(O).toString();else return D.useNegativeLoading_?(D.useNegativeLoading_=!1,D.pendingModuleGraphUpdate_=y95(D).then(function(k){nox(D,k,c)}),sEM(D,C.slice(p),X,c)):!1;
p+=g;D.useNegativeLoading_?X(O,a):X(O,a,p===C.length?C:[])}return!0};
nox=function(D,C,X){HI().setAllModuleInfoString((C||{}).moduleGraph);Y2J(D,mzN(D),function(c){_.cG(D,[c.getId()])},X);
D.pendingModuleGraphUpdate_=null};
Y2J=function(D,C,X,c,W,p){p=p===void 0?{}:p;var g=HI();C=_.U(C);for(var a=C.next();!a.done;a=C.next()){a=a.value;var O=g.getModuleInfo(a);if(!(p[a]||W&&!W(O))){p[a]=!0;var P=O.deps_||[];if(c){var k=[];c[a]&&(k=Object.keys(c[a]));P=P.concat(k)}Y2J(D,P,X,c,W,p);X(O)}}};
y95=function(D){D=D.scsReferenceUrl_.clone();tff(D);yh(D,"dg",null);yh(D,"md","1");return uUf(D.toString())};var ofr=new Uint8Array(123);var wl4=[];var FWM=function(){this.JSC$10219_loader_=null};
_.S=FWM.prototype;_.S.setBatchModeEnabled=function(){};
_.S.setAllModuleInfoString=function(){};
_.S.addExtraEdge=function(){throw Error("ud");};
_.S.removeExtraEdge=function(){throw Error("vd");};
_.S.getModuleContext=function(){return null};
_.S.isActive=function(){return!1};
_.S.isUserActive=function(){return!1};
_.S.registerInitializationCallback=function(){};
_.S.registerCallback=function(){};var WG=function(D,C,X,c,W){var p=Error.call(this);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.name="ModuleLoadFailure";this.type=D;this.status=C;this.requestedModuleIds=X;this.url=c;this.cause=W;this.message=this.toString()};
_.h(WG,Error);WG.prototype.toString=function(){return ZHN(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ZHN=function(D){switch(D.type){case WG.Type.UNAUTHORIZED:return"Unauthorized";case WG.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case WG.Type.TIMEOUT:return"Timed out";case WG.Type.OLD_CODE_GONE:return"Out of date module id";case WG.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+D.type}};
XN.ModuleLoadFailure=WG;XN.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var pr=function(){this.moduleIds_=this.JSC$10219_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11225_extraEdges_={};this.JSC$11225_callbackMap_={};this.JSC$11225_currentlyLoadingModule_=this.baseModuleInfo_=new Cr([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new pV;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.WT(pr,FWM);var Ghf=function(D,C){_.Dn.call(this,"Error loading "+D+": "+C)};
_.WT(Ghf,_.Dn);pr.prototype.setBatchModeEnabled=function(D){this.batchModeEnabled_=D};
pr.prototype.setAllModuleInfoString=function(D,C){if(!(this instanceof pr))this.setAllModuleInfoString(D,C);else if(typeof D==="string"){if(D.startsWith("d$")){D=D.substring(2);for(var X=[],c=0,W=D.indexOf("/"),p=0,g=!1,a=0;;){var O=g?D.substring(p):D.substring(p,W);if(O.length===0)c++,p="sy"+c.toString(36),O=[];else{var P=O.indexOf(":");if(P<0)p=O,O=[];else if(P===O.length-1)p=O.substring(0,P),O=Array(X[a-1]);else{p=O.substring(0,P);O=O.substring(P+1).split(",");P=a;for(var k=0;k<O.length;k++)P-=
O[k].length===0?1:Number(O[k]),O[k]=X[P]}P=0;if(p.length===0)P=1;else if(p.charAt(0)==="+"||p.charAt(0)==="-")P=Number(p);P!==0&&(c+=P,p="sy"+c.toString(36))}X.push(p);V_g(this,p,O);if(g)break;p=W+1;W=D.indexOf("/",p);W===-1&&(g=!0);a++}this.moduleIds_=X}else if(D.startsWith("p$"))TLd(this,D);else{D=D.split("/");X=[];for(c=0;c<D.length;c++){a=D[c].split(":");W=a[0];g=[];if(a[1])for(g=a[1].split(","),a=0;a<g.length;a++)g[a]=X[parseInt(g[a],36)];X.push(W);V_g(this,W,g)}this.moduleIds_=X}C&&C.length?
(_.zJ(this.loadingModuleIds_,C),this.lastInitialModuleId_=_.NR(C)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11225_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11225_currentlyLoadingModule_=null,(C=this.baseModuleInfo_.onLoad((0,_.wo)(this.getModuleContext,this)))&&C.length&&HHN(this,new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,C[0])),SU(this))}};
var TLd=function(D,C){var X=C.substring(2);for(C=0;C<64;C++)ofr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(C)]=C;var c={buf:X,pos:0};Qo(c);var W=Qo(c),p=Qo(c)+1;C=Array(W);var g=Array(W),a=Array(W);p=Array(p);var O=0,P=0,k=c.pos,u=c.buf.indexOf("|",c.pos);c.pos=u+1;for(u=0;u<W;u++){var Q=Qo(c),B=Q&2,K=Q&1;Q>>>=2;K?(O+=Q>>>1^-(Q&1),Q="sy"+O.toString(36)):(K=k,k+=Q,Q=X.substring(K,k));C[u]=Q;B&&(p[P++]=Q)}p[P]="";c.pos++;P=W&-2;X=W&1;for(O=0;O<P;O+=2)k=WdW(c),a[O]=
k&7,a[O+1]=k>>>3&7;X&&(X=WdW(c),a[P]=X&7);c.pos++;for(P=0;P<W;P++)a[P]===7&&(a[P]=Qo(c));c.pos++;for(X=P=0;X<W;X++){O=a[X];k=O===0?wl4:Array(O);g[X]=k;u=P;for(B=0;B<O;B++)u-=Qo(c),k[B]=p[u];p[P]===C[X]&&P++}for(c=0;c<C.length;c++)V_g(D,C[c],g[c]);D.moduleIds_=C};
_.S=pr.prototype;_.S.getModuleInfo=function(D){return this.moduleInfoMap[D]};
_.S.addExtraEdge=function(D,C){var X=this.getModuleInfo(D);X&&X.isLoaded()?this.load(C):(this.JSC$11225_extraEdges_[D]||(this.JSC$11225_extraEdges_[D]={}),this.JSC$11225_extraEdges_[D][C]=!0)};
_.S.removeExtraEdge=function(D,C){if(this.JSC$11225_extraEdges_[D]){delete this.JSC$11225_extraEdges_[D][C];for(var X in this.JSC$11225_extraEdges_[D])return;delete this.JSC$11225_extraEdges_[D]}};
_.S.isActive=function(){return this.loadingModuleIds_.length>0};
_.S.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var SU=function(D){var C=D.lastActive_,X=D.isActive();X!=C&&(D.executeCallbacks_(X?"active":"idle"),D.lastActive_=X);C=D.isUserActive();C!=D.userLastActive_&&(D.executeCallbacks_(C?"userActive":"userIdle"),D.userLastActive_=C)},V_g=function(D,C,X){D.moduleInfoMap[C]?(D=D.moduleInfoMap[C].deps_,D!=X&&D.splice.apply(D,[0,
D.length].concat(_.VB(X)))):D.moduleInfoMap[C]=new Cr(X,C)},zc4=function(D,C,X){var c=[];
Ymm(C,c);C=[];for(var W={},p=0;p<c.length;p++){var g=c[p],a=D.getModuleInfo(g);if(!a)throw Error("wd`"+g);var O=new pV;W[g]=O;a.isLoaded()?O.callback(null):(J9N(D,g,a,!!X,O),D.isModuleLoading(g)||C.push(g))}C.length>0&&(D.loadingModuleIds_.length===0?D.loadModules_(C):(D.requestedModuleIdsQueue_.push(C),SU(D)));return W},J9N=function(D,C,X,c,W){X.registerCallback(W.callback,W);
r9J(X,function(p){W.errback(new Ghf(C,p))});
D.isModuleLoading(C)?c&&(jE5(D,C),SU(D)):c&&jE5(D,C)};
pr.prototype.loadModules_=function(D,C,X){var c=this;C=C===void 0?0:C;var W=M_d(this,D);this.loadingModuleIds_=W;this.requestedLoadingModuleIds_=this.batchModeEnabled_?D:_.Ho(W);SU(this);if(W.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,W);D=this.JSC$10219_loader_;if(!D)throw Error("xd");if(Object.keys(this.JSC$11225_extraEdges_).length>0&&!D.supportsExtraEdges)throw Error("yd");X=(0,_.wo)(D.JSC$11212_loadModules,D,_.Ho(W),this.moduleInfoMap,{extraEdges:this.JSC$11225_extraEdges_,
forceReload:!!X,onError:function(p,g,a){var O=c.requestedLoadingModuleIds_;p=p!=null?p:void 0;var P=C;a=a===void 0?!1:a;a=(a===void 0?0:a)?0:(P===void 0?0:P)+1;P=_.Ho(W);c.requestedLoadingModuleIds_=O;W.forEach(_.AZ(_.VF,c.requestedModuleIds_),c);p==401?(HHN(c,new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.UNAUTHORIZED,p)),c.requestedModuleIdsQueue_.length=0):p==410?(q2q(c,new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.OLD_CODE_GONE,p)),fgM(c)):a>=3?(q2q(c,new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
p,P,g)),fgM(c)):c.loadModules_(c.requestedLoadingModuleIds_,a,p==8001||!1)},
onTimeout:(0,_.wo)(this.handleLoadTimeout_,this)});(D=Math.pow(C,2)*5E3)?_.co.setTimeout(X,D):X()}};
var M_d=function(D,C){C=C.filter(function(W){return D.moduleInfoMap[W].isLoaded()?(_.co.setTimeout(function(){return Error("zd`"+W)},0),!1):!0});
for(var X=[],c=0;c<C.length;c++)X=X.concat(dzc(D,C[c]));Ymm(X);return!D.batchModeEnabled_&&X.length>1?(C=X.shift(),D.requestedModuleIdsQueue_=X.map(function(W){return[W]}).concat(D.requestedModuleIdsQueue_),[C]):X},dzc=function(D,C){var X=_.ZI.createSet(D.requestedModuleIds_),c=[];
X[C]||c.push(C);C=[C];for(var W=0;W<C.length;W++)for(var p=D.getModuleInfo(C[W]).deps_,g=p.length-1;g>=0;g--){var a=p[g];D.getModuleInfo(a).isLoaded()||X[a]||(c.push(a),C.push(a))}c.reverse();Ymm(c);return c};
pr.prototype.JSC$11220_setLoaded=function(){if(this.JSC$11225_currentlyLoadingModule_){var D=this.JSC$11225_currentlyLoadingModule_.getId(),C=[];if(this.JSC$11225_extraEdges_[D]){for(var X=_.U(Object.keys(this.JSC$11225_extraEdges_[D])),c=X.next();!c.done;c=X.next()){c=c.value;var W=this.getModuleInfo(c);W&&!W.isLoaded()&&(this.removeExtraEdge(D,c),C.push(c))}this.loadMultiple(C)}this.isDisposed()||((C=this.moduleInfoMap[D].onLoad((0,_.wo)(this.getModuleContext,this)))&&C.length&&HHN(this,new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,C[0])),_.VF(this.userInitiatedLoadingModuleIds_,D),_.VF(this.loadingModuleIds_,D),this.loadingModuleIds_.length===0&&fgM(this),this.lastInitialModuleId_&&D==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),SU(this),this.JSC$11225_currentlyLoadingModule_=null)}};
pr.prototype.isModuleLoading=function(D){if(_.Zn(this.loadingModuleIds_,D))return!0;for(var C=0;C<this.requestedModuleIdsQueue_.length;C++)if(_.Zn(this.requestedModuleIdsQueue_[C],D))return!0;return!1};
pr.prototype.load=function(D,C){return zc4(this,[D],C)[D]};
pr.prototype.loadMultiple=function(D){return zc4(this,D)};
var jE5=function(D,C){_.Zn(D.userInitiatedLoadingModuleIds_,C)||D.userInitiatedLoadingModuleIds_.push(C)};
pr.prototype.beforeLoadModuleCode=function(D){var C=this;this.JSC$11225_currentlyLoadingModule_&&this.JSC$11225_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11220_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[D]&&Rcc(this,this.moduleInfoMap[D].deps_||[],function(X){X.module_=new DE;_.VF(C.loadingModuleIds_,X.getId())},function(X){return!X.isLoaded()});
this.JSC$11225_currentlyLoadingModule_=this.getModuleInfo(D)};
pr.prototype.registerInitializationCallback=function(D){this.JSC$11225_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Cr([],"synthetic_module_overhead"),this.JSC$11225_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Xk(this.JSC$11225_currentlyLoadingModule_.earlyOnloadCallbacks_,D)};
pr.prototype.handleLoadTimeout_=function(){q2q(this,new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.TIMEOUT));fgM(this)};
var q2q=function(D,C){D.requestedLoadingModuleIds_.length>1?D.requestedModuleIdsQueue_=D.requestedLoadingModuleIds_.map(function(X){return[X]}).concat(D.requestedModuleIdsQueue_):HHN(D,C)},HHN=function(D,C){var X=D.requestedLoadingModuleIds_;
D.loadingModuleIds_.length=0;for(var c=[],W=0;W<D.requestedModuleIdsQueue_.length;W++){var p=D.requestedModuleIdsQueue_[W].filter(function(O){var P=dzc(this,O);return gO(X,function(k){return _.Zn(P,k)})},D);
_.zJ(c,p)}for(W=0;W<X.length;W++)_.e35(c,X[W]);for(W=0;W<c.length;W++){for(p=0;p<D.requestedModuleIdsQueue_.length;p++)_.VF(D.requestedModuleIdsQueue_[p],c[W]);_.VF(D.userInitiatedLoadingModuleIds_,c[W])}if(W=D.JSC$11225_callbackMap_.error)for(p=0;p<W.length;p++)for(var g=W[p],a=0;a<c.length;a++)g("error",c[a],C);for(c=0;c<X.length;c++)if(D.moduleInfoMap[X[c]])D.moduleInfoMap[X[c]].onError(C);D.requestedLoadingModuleIds_.length=0;SU(D)},fgM=function(D){for(;D.requestedModuleIdsQueue_.length;){var C=
D.requestedModuleIdsQueue_.shift().filter(function(X){return!this.getModuleInfo(X).isLoaded()},D);
if(C.length>0){D.loadModules_(C);return}}SU(D)};
pr.prototype.registerCallback=function(D,C){Array.isArray(D)||(D=[D]);for(var X=0;X<D.length;X++){var c=D[X],W=C,p=this.JSC$11225_callbackMap_;p[c]||(p[c]=[]);p[c].push(W)}};
pr.prototype.executeCallbacks_=function(D){for(var C=this.JSC$11225_callbackMap_[D],X=0;C&&X<C.length;X++)C[X](D)};
var Rcc=function(D,C,X,c,W){c=c===void 0?function(){return!0}:c;
W=W===void 0?{}:W;C=_.U(C);for(var p=C.next();!p.done;p=C.next()){p=p.value;var g=D.getModuleInfo(p);!W[p]&&c(g)&&(W[p]=!0,Rcc(D,g.deps_||[],X,c,W),X(g))}};
pr.prototype.dispose=function(){_.go(_.ZI.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11225_callbackMap_={};this.isDisposed_=!0};
pr.prototype.isDisposed=function(){return this.isDisposed_};
_.Ty=function(){return new pr};var lgN=[5E3,2E4],w5r=function(){this.JSC$10219_loader_=null;this.JSC$11233_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11233_queue_=[];this.JSC$11233_extraEdges_=Object.create(null);this.JSC$11233_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.h(w5r,FWM);_.S=w5r.prototype;_.S.setAllModuleInfoString=function(){this.JSC$11233_currentlyLoadingModule_&&this.JSC$11233_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11220_setLoaded()};
_.S.getModuleInfo=function(D){var C=this.JSC$11233_moduleInfoMap_[D];C||(C=new Cr([],D),this.JSC$11233_moduleInfoMap_[D]=C);return C};
_.S.addExtraEdge=function(D,C){this.getModuleInfo(D).isLoaded()?this.load(C):(this.JSC$11233_extraEdges_[D]||(this.JSC$11233_extraEdges_[D]={}),this.JSC$11233_extraEdges_[D][C]=!0)};
_.S.removeExtraEdge=function(D,C){if(this.JSC$11233_extraEdges_[D]){delete this.JSC$11233_extraEdges_[D][C];for(var X in this.JSC$11233_extraEdges_[D])return;delete this.JSC$11233_extraEdges_[D]}};
_.S.isModuleLoading=function(D){return!!this.loadingModules_[D]};
_.S.load=function(D){DwC(this,[D]);return CHe(this,D)};
_.S.loadMultiple=function(D){var C=this,X=Object.create(null),c=[];D.forEach(function(W){X[W]||(X[W]=CHe(C,W),c.push(W))});
DwC(this,c);return X};
_.S.beforeLoadModuleCode=function(D){var C;((C=this.JSC$11233_currentlyLoadingModule_)==null?void 0:C.getId())==="synthetic_module_overhead"&&this.JSC$11220_setLoaded();var X,c;Xrq(this,(c=(X=this.JSC$11233_moduleInfoMap_[D])==null?void 0:X.deps_)!=null?c:[],function(W){W.module_=new DE},function(W){return!W.isLoaded()});
this.JSC$11233_currentlyLoadingModule_=this.getModuleInfo(D)};
_.S.JSC$11220_setLoaded=function(){if(this.JSC$11233_currentlyLoadingModule_){var D=this.JSC$11233_currentlyLoadingModule_.getId(),C=[];if(this.JSC$11233_extraEdges_[D]){for(var X=_.U(Object.keys(this.JSC$11233_extraEdges_[D])),c=X.next();!c.done;c=X.next())c=c.value,this.getModuleInfo(c).isLoaded()||(this.removeExtraEdge(D,c),C.push(c));this.loadMultiple(C)}this.JSC$11233_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11233_currentlyLoadingModule_=null;(!this.isModuleLoading(D)&&/^sy[0-9a-z]{0,4}$/.test(D)||D==="synthetic_module_overhead")&&delete this.JSC$11233_moduleInfoMap_[D];this.unsetModulesAsLoading(D)}};
_.S.registerInitializationCallback=function(D){this.JSC$11233_currentlyLoadingModule_||(this.JSC$11233_moduleInfoMap_.synthetic_module_overhead=new Cr([],"synthetic_module_overhead"),this.JSC$11233_currentlyLoadingModule_=this.JSC$11233_moduleInfoMap_.synthetic_module_overhead);Xk(this.JSC$11233_currentlyLoadingModule_.earlyOnloadCallbacks_,D)};
_.S.setModulesAsLoading=function(){var D=this;_.MJ.apply(0,arguments).forEach(function(C){D.loadingModules_[C]=!0})};
_.S.unsetModulesAsLoading=function(){var D=this;_.MJ.apply(0,arguments).forEach(function(C){delete D.loadingModules_[C]})};
var CHe=function(D,C){return new _.mM(function(X,c){var W=D.getModuleInfo(C);W.isLoaded()?X(null):(W.registerCallback(function(){X(null)}),r9J(W,function(p){var g="Error loading "+C+": "+p;
p instanceof XN.ModuleLoadFailure&&p.url&&(g=g+", requested url: "+p.url.toString());c(Error(g))}))})},DwC=function(D,C){C=C.filter(function(X){return!D.isModuleLoading(X)&&!D.getModuleInfo(X).isLoaded()});
C.length>0&&(D.setModulesAsLoading.apply(D,_.VB(C)),D.JSC$11233_queue_.push(C),cAC(D))},cAC=function(D){for(var C={};D.activeLoads_<Infinity&&D.JSC$11233_queue_.length>0;C={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})C.ids$jscomp$37=D.JSC$11233_queue_.shift().filter(function(X){return!D.getModuleInfo(X).isLoaded()}),C.ids$jscomp$37.length>0&&(D.activeLoads_++,C.finishLoad=function(X){return function(){D.activeLoads_--;
cAC(D);X.finishLoad=function(){}}}(C),_.Fn(C.ids$jscomp$37.map(function(X){return CHe(D,X)})).then(function(X){return function(){(0,X.finishLoad)()}}(C)),C.attempt$jscomp$6=0,C.load$jscomp$1=function(X){return function(){if(Object.keys(D.JSC$11233_extraEdges_).length>0&&!D.JSC$10219_loader_.supportsExtraEdges)throw Error("yd");
D.JSC$10219_loader_.JSC$11212_loadModules(X.ids$jscomp$37,D.JSC$11233_moduleInfoMap_,{extraEdges:D.JSC$11233_extraEdges_,onError:function(c,W){var p=lgN[X.attempt$jscomp$6++];p!==void 0?setTimeout(function(){(0,X.load$jscomp$1)()},p):(D.unsetModulesAsLoading.apply(D,_.VB(X.ids$jscomp$37)),(0,X.finishLoad)(),X.ids$jscomp$37.forEach(function(g){g=D.getModuleInfo(g);
if(!g.isLoaded())g.onError(new XN.ModuleLoadFailure(XN.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,c,X.ids$jscomp$37,W))}))}})}}(C),(0,C.load$jscomp$1)())},Xrq=function(D,C,X,c,W){c=c===void 0?function(){return!0}:c;
W=W===void 0?{}:W;C=_.U(C);for(var p=C.next();!p.done;p=C.next()){p=p.value;var g=D.getModuleInfo(p);!W[p]&&c(g)&&(W[p]=!0,Xrq(D,g.deps_||[],X,c,W),X(g))}};var onx=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var gfo=Symbol("Bd");window.JSCompiler_renameProperty=function(D){return D};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var WZ4=!onx||HTMLElement.es5Shimmed||_.co.Reflect===void 0||_.co.customElements===void 0||_.co.customElements.polyfillWrapFlushCallback||!1,prC,VSd=function(){var D=HTMLElement;if(WZ4)return D;if(prC!==void 0)return prC;var C=_.co.Reflect,X=function(){return C.construct(D,[],this.constructor)};
X.prototype=D.prototype;X.prototype.constructor=X;X.es5Shimmed=!0;Object.setPrototypeOf(X,D);return prC=X},SsM=!1;WZ4||SsM||(SsM=!0,_.co.HTMLElement=VSd());/*

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 Pym=/(url\()([^)]*)(\))/g,Omj=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Amh,bV;var D4=!window.ShadyDOM||!window.ShadyDOM.inUse,UwN=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),gnM=!window.customElements.polyfillWrapFlushCallback,aJd;if(aJd=D4&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var IJC=new CSSStyleSheet;IJC.replaceSync("");var OGb=document.createElement("div");OGb.attachShadow({mode:"open"});OGb.shadowRoot.adoptedStyleSheets=[IJC];aJd=OGb.shadowRoot.adoptedStyleSheets[0]===IJC}catch(D){aJd=!1}
var AAJ=aJd,PH5=window.Polymer&&window.Polymer.rootPath||vfh(document.baseURI||window.location.href),n2=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Kwm=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,pl=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,$w5=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,lV=window.Polymer&&window.Polymer.legacyOptimizations||!1,WH=window.Polymer&&window.Polymer.legacyWarnings||!1,vn4=window.Polymer&&window.Polymer.syncInitialRender||
!1,Ff=window.Polymer&&window.Polymer.legacyUndefined||!1,iG5=window.Polymer&&window.Polymer.orderedComputed||!1,Uy=window.Polymer&&window.Polymer.removeNestedTemplates||!1,gW=window.Polymer&&window.Polymer.fastDomIf||!1,aR=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,kAx=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,uzb=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var IR={},Qo4={},G5=function(){return HTMLElement.apply(this,arguments)||this};
_.h(G5,HTMLElement);G5.import=function(D,C){return D?(D=IR[D]||Qo4[D.toLowerCase()])&&C?D.querySelector(C):D:null};
G5.prototype.attributeChangedCallback=function(D,C,X){C!==X&&this.register()};
G5.prototype.register=function(D){if(D=D||this.id){if(pl&&(IR[D]||Qo4[D.toLowerCase()])!==void 0)throw IR[D]=Qo4[D.toLowerCase()]=null,Error("Cd`"+D);this.id=D;IR[D]=Qo4[D.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.$a.Object.defineProperties(G5.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var D=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;D=_.r0(this.getAttribute("assetpath")||"",D.baseURI);this.__assetpath=vfh(D)}return this.__assetpath}}});
_.$a.Object.defineProperties(G5,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
G5["import"]=G5.import;G5.prototype.modules=IR;customElements.define("dom-module",G5);var Bix=0,ktZ=0,K2=[],bGq=0,im5=!1,rAN=document.createTextNode(""),KZd,d0;(new window.MutationObserver(u15)).observe(rAN,{characterData:!0});_.Oy={after:function(D){return{run:function(C){return window.setTimeout(C,D)},
cancel:function(C){window.clearTimeout(C)}}},
run:function(D,C){return window.setTimeout(D,C)},
cancel:function(D){window.clearTimeout(D)}};
_.hv={run:function(D){return window.requestAnimationFrame(D)},
cancel:function(D){window.cancelAnimationFrame(D)}};
KZd={run:function(D){return window.requestIdleCallback?window.requestIdleCallback(D):window.setTimeout(D,16)},
cancel:function(D){window.cancelIdleCallback?window.cancelIdleCallback(D):window.clearTimeout(D)}};
d0={run:function(D){im5||(im5=!0,rAN.textContent=bGq++);K2.push(D);return Bix++},
cancel:function(D){var C=D-ktZ;if(C>=0){if(!K2[C])throw Error("Dd`"+D);K2[C]=null}}};var hO5=0,Ax=function(D){var C=D.__mixinApplications;C||(C=new WeakMap,D.__mixinApplications=C);var X=hO5++;return function(c){var W=c.__mixinSet;if(W&&W[X])return c;var p=C,g=p.get(c);g||(g=D(c),p.set(c,g),c=Object.create(g.__mixinSet||W||null),c[X]=!0,g.__mixinSet=c);return g}};_.yo=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(D){return ShadyDOM.patch(D)}:function(D){return D};var xwg=Ax(function(D){var C=function(){var X=D.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};
_.h(C,D);C.createProperties=function(X){var c=this.prototype,W;for(W in X)W in c||c._createPropertyAccessor(W)};
C.attributeNameForProperty=function(X){return X.toLowerCase()};
C.typeForProperty=function(){};
C.prototype._createPropertyAccessor=function(X,c){this._addPropertyToAttributeMap(X);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[X]||(this.__dataHasAccessor[X]=!0,this._definePropertyAccessor(X,c))};
C.prototype._addPropertyToAttributeMap=function(X){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var c=this.__dataAttributes[X];c||(c=this.constructor.attributeNameForProperty(X),this.__dataAttributes[c]=X);return c};
C.prototype._definePropertyAccessor=function(X,c){Object.defineProperty(this,X,{get:function(){return this.__data[X]},
set:c?function(){}:function(W){this._setPendingProperty(X,W,!0)&&this._invalidateProperties()}})};
C.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
C.prototype._initializeProperties=function(){for(var X in this.__dataHasAccessor)this.hasOwnProperty(X)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[X]=this[X],delete this[X])};
C.prototype._initializeInstanceProperties=function(X){Object.assign(this,X)};
C.prototype._setProperty=function(X,c){this._setPendingProperty(X,c)&&this._invalidateProperties()};
C.prototype._getProperty=function(X){return this.__data[X]};
C.prototype._setPendingProperty=function(X,c){var W=this.__data[X],p=this._shouldPropertyChange(X,c,W);p&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||X in this.__dataOld||(this.__dataOld[X]=W),this.__data[X]=c,this.__dataPending[X]=c);return p};
C.prototype._isPropertyPending=function(X){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(X))};
C.prototype._invalidateProperties=function(){var X=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,d0.run(function(){X.__dataInvalid&&(X.__dataInvalid=!1,X._flushProperties())}))};
C.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
C.prototype._flushProperties=function(){this.__dataCounter++;var X=this.__data,c=this.__dataPending,W=this.__dataOld;this._shouldPropertiesChange(X,c,W)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(X,c,W));this.__dataCounter--};
C.prototype._shouldPropertiesChange=function(X,c){return!!c};
C.prototype._propertiesChanged=function(){};
C.prototype._shouldPropertyChange=function(X,c,W){return W!==c&&(W===W||c===c)};
C.prototype.attributeChangedCallback=function(X,c,W,p){c!==W&&this._attributeToProperty(X,W);D.prototype.attributeChangedCallback&&D.prototype.attributeChangedCallback.call(this,X,c,W,p)};
C.prototype._attributeToProperty=function(X,c,W){if(!this.__serializing){var p=this.__dataAttributes;X=p&&p[X]||X;this[X]=this._deserializeValue(c,W||this.constructor.typeForProperty(X))}};
C.prototype._propertyToAttribute=function(X,c,W){this.__serializing=!0;W=arguments.length<3?this[X]:W;this._valueToNodeAttribute(this,W,c||this.constructor.attributeNameForProperty(X));this.__serializing=!1};
C.prototype._valueToNodeAttribute=function(X,c,W){c=this._serializeValue(c);if(W==="class"||W==="name"||W==="slot")X=(0,_.yo)(X);c===void 0?X.removeAttribute(W):X.setAttribute(W,c===""&&window.trustedTypes?window.trustedTypes.emptyScript:c)};
C.prototype._serializeValue=function(X){switch(typeof X){case "boolean":return X?"":void 0;default:return X!=null?X.toString():void 0}};
C.prototype._deserializeValue=function(X,c){switch(c){case Boolean:return X!==null;case Number:return Number(X);default:return X}};
return C});var LZN=0,Q9J=[];var soN=Ax(function(D){function C(p){p=Object.getPrototypeOf(p);return p.prototype instanceof W?p:null}
function X(p){if(!p.hasOwnProperty("__ownProperties")){var g=null;if(p.hasOwnProperty("properties")){var a=p.properties;if(a){g={};for(var O in a){var P=a[O];g[O]=typeof P==="function"?{type:P}:P}}}p.__ownProperties=g}return p.__ownProperties}
var c=xwg(D),W=function(){return c.apply(this,arguments)||this};
_.h(W,c);W.finalize=function(){if(!this.hasOwnProperty("__finalized")){var p=C(this);p&&p.finalize();this.__finalized=!0;this._finalizeClass()}};
W._finalizeClass=function(){var p=X(this);p&&this.createProperties(p)};
W.typeForProperty=function(p){return(p=this._properties[p])&&p.type};
W.prototype._initializeProperties=function(){LZN++;this.constructor.finalize();c.prototype._initializeProperties.call(this)};
W.prototype.connectedCallback=function(){c.prototype.connectedCallback&&c.prototype.connectedCallback.call(this);this._enableProperties()};
W.prototype.disconnectedCallback=function(){c.prototype.disconnectedCallback&&c.prototype.disconnectedCallback.call(this)};
_.$a.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var p=this;if(!this.hasOwnProperty("__observedAttributes")){BEJ(this.prototype);var g=this._properties;this.__observedAttributes=g?Object.keys(g).map(function(a){return p.prototype._addPropertyToAttributeMap(a)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var p=C(this);this.__properties=Object.assign({},p&&p._properties,X(this))}return this.__properties}}});
return W});var bmd={},rm3=/-[a-z]/g,Kdj=/([A-Z])/g;for(var mwx={},eOx=HTMLElement.prototype;eOx;){for(var Eng=Object.getOwnPropertyNames(eOx),tYc=0;tYc<Eng.length;tYc++)mwx[Eng[tYc]]=!0;eOx=Object.getPrototypeOf(eOx)}var NiJ=window.trustedTypes?function(D){return trustedTypes.isHTML(D)||trustedTypes.isScript(D)||trustedTypes.isScriptURL(D)}:function(){return!1},Ys4=Ax(function(D){var C=xwg(D);
D=function(){return C.apply(this,arguments)||this};
_.h(D,C);D.createPropertiesForAttributes=function(){for(var X=this.observedAttributes,c=0;c<X.length;c++)this.prototype._createPropertyAccessor(hI(X[c]))};
D.attributeNameForProperty=function(X){return xb(X)};
D.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);C.prototype._initializeProperties.call(this)};
D.prototype._initializeProtoProperties=function(X){for(var c in X)this._setProperty(c,X[c])};
D.prototype._ensureAttribute=function(X,c){this.hasAttribute(X)||this._valueToNodeAttribute(this,c,X)};
D.prototype._serializeValue=function(X){switch(typeof X){case "object":if(X instanceof Date)return X.toString();if(X){if(NiJ(X))return X;try{return JSON.stringify(X)}catch(c){return""}}default:return C.prototype._serializeValue.call(this,X)}};
D.prototype._deserializeValue=function(X,c){switch(c){case Object:try{var W=JSON.parse(X)}catch(p){W=X}break;case Array:try{W=JSON.parse(X)}catch(p){W=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+X)}break;case Date:W=isNaN(X)?String(X):Number(X);W=new Date(W);break;default:W=C.prototype._deserializeValue.call(this,X,c)}return W};
D.prototype._definePropertyAccessor=function(X,c){if(!mwx[X]){var W=this[X];W!==void 0&&(this.__data?this._setPendingProperty(X,W):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[X]=W))}C.prototype._definePropertyAccessor.call(this,X,c)};
D.prototype._hasAccessor=function(X){return this.__dataHasAccessor&&this.__dataHasAccessor[X]};
D.prototype._isPropertyPending=function(X){return!!(this.__dataPending&&X in this.__dataPending)};
return D});var yAk={"dom-if":!0,"dom-repeat":!0},nnk=!1,wrJ=!1,FZk=function(){var D=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(C){return C}});
return function(C,X,c){X=X.getAttribute(c);D&&c.startsWith("on-")?C.setAttribute(c,D.createScript(X,c)):C.setAttribute(c,X)}}(),ZGM=Ax(function(D){var C=function(){return D.apply(this,arguments)||this};
_.h(C,D);C._parseTemplate=function(X,c){if(!X._templateInfo){var W=X._templateInfo={};W.nodeInfoList=[];W.nestedTemplate=!!c;W.stripWhiteSpace=c&&c.stripWhiteSpace||X.hasAttribute&&X.hasAttribute("strip-whitespace");this._parseTemplateContent(X,W,{parent:null})}return X._templateInfo};
C._parseTemplateContent=function(X,c,W){return this._parseTemplateNode(X.content,c,W)};
C._parseTemplateNode=function(X,c,W){var p=!1;X.localName!="template"||X.hasAttribute("preserve-content")?X.localName==="slot"&&(c.hasInsertionPoint=!0):p=this._parseTemplateNestedTemplate(X,c,W)||p;if(!nnk){nnk=!0;var g=document.createElement("textarea");g.placeholder="a";wrJ=g.placeholder===g.textContent}wrJ&&X.localName==="textarea"&&X.placeholder&&X.placeholder===X.textContent&&(X.textContent=null);X.firstChild&&this._parseTemplateChildNodes(X,c,W);X.hasAttributes&&X.hasAttributes()&&(p=this._parseTemplateNodeAttributes(X,
c,W)||p);return p||W.noted};
C._parseTemplateChildNodes=function(X,c,W){if(X.localName!=="script"&&X.localName!=="style")for(var p=X.firstChild,g=0,a;p;p=a){if(p.localName=="template"){var O=p.getAttribute("is");if(O&&yAk[O])for(a=p,a.removeAttribute("is"),p=a.ownerDocument.createElement(O),a.parentNode.replaceChild(p,a),p.appendChild(a);a.attributes.length;)O=a.attributes[0].name,FZk(p,a,O),a.removeAttribute(O)}a=p.nextSibling;if(p.nodeType===Node.TEXT_NODE){for(O=a;O&&O.nodeType===Node.TEXT_NODE;)p.textContent+=O.textContent,
a=O.nextSibling,X.removeChild(O),O=a;if(c.stripWhiteSpace&&!p.textContent.trim()){X.removeChild(p);continue}}O={parentIndex:g,parentInfo:W};this._parseTemplateNode(p,c,O)&&(O.infoIndex=c.nodeInfoList.push(O)-1);p.parentNode&&g++}};
C._parseTemplateNestedTemplate=function(X,c,W){c=this._parseTemplate(X,c);(c.content=X.content.ownerDocument.createDocumentFragment()).appendChild(X.content);W.templateInfo=c;return!0};
C._parseTemplateNodeAttributes=function(X,c,W){for(var p=!1,g=Array.from(X.attributes),a=g.length-1,O;O=g[a];a--)p=this._parseTemplateNodeAttribute(X,c,W,O.name,O.value)||p;return p};
C._parseTemplateNodeAttribute=function(X,c,W,p,g){return p.slice(0,3)==="on-"?(X.removeAttribute(p),W.events=W.events||[],W.events.push({name:p.slice(3),value:g}),!0):p==="id"?(W.id=g,!0):!1};
C._contentForTemplate=function(X){var c=X._templateInfo;return c&&c.content||X.content};
C.prototype._stampTemplate=function(X,c){X&&!X.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(X);c=c||this.constructor._parseTemplate(X);var W=c.nodeInfoList;X=document.importNode(c.content||X.content,!0);X.__noInsertionPoint=!c.hasInsertionPoint;var p=X.nodeList=Array(W.length);X.$={};for(var g=0,a=W.length,O=void 0;g<a&&(O=W[g]);g++){var P=p[g]=h_t(X,O);O.id&&(X.$[O.id]=P);var k=P,u=O,Q=c;u.templateInfo&&(k._templateInfo=u.templateInfo,k._parentTemplateInfo=
Q);if(O.events&&O.events.length)for(k=0,u=O.events,Q=void 0;k<u.length&&(Q=u[k]);k++)this._addMethodEventListenerToNode(P,Q.name,Q.value,this)}return X};
C.prototype._addMethodEventListenerToNode=function(X,c,W,p){W=xor(p||X,W);this._addEventListenerToNode(X,c,W);return W};
C.prototype._addEventListenerToNode=function(X,c,W){X.addEventListener(c,W)};
C.prototype._removeEventListenerFromNode=function(X,c,W){X.removeEventListener(c,W)};
return C});var NI=0,w0=[],GAJ={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},VYb=/[A-Z]/,Tig=function(D,C,X,c,W){var p=W?s6(D):D;if(C=C[p])for(p=0;p<C.length;p++){var g=C[p];if(g.info.lastRun!==NI&&(!W||tbo(D,g.trigger))){g.info.lastRun=NI;g=g.info;for(var a=X,O=c,P=0,k=a.length-1,u=-1;P<=k;){var Q=P+k>>1,B=O.get(a[Q].methodInfo)-O.get(g.methodInfo);if(B<0)P=Q+1;else if(B>0)k=Q-1;else{u=Q;break}}u<
0&&(u=k+1);a.splice(u,0,g)}}},MbZ=[],HG5=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"),$y=Ax(function(D){var C=ZGM(Ys4(D));
D=function(){var X=C.call(this)||this;X.__isPropertyEffectsClient=!0;return X};
_.h(D,C);D.prototype._initializeProperties=function(){C.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
D.prototype._registerHost=function(){if(PG.length){var X=PG[PG.length-1];X._enqueueClient(this);this.__dataHost=X}};
D.prototype._initializeProtoProperties=function(X){this.__data=Object.create(X);this.__dataPending=Object.create(X);this.__dataOld={}};
D.prototype._initializeInstanceProperties=function(X){var c=this.__readOnly,W;for(W in X)c&&c[W]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[W]=this.__dataPending[W]=X[W])};
D.prototype._addPropertyEffect=function(X,c,W){this._createPropertyAccessor(X,c=="__readOnly");var p=Efm(this,c,!0)[X];p||(p=this[c][X]=[]);p.push(W)};
D.prototype._removePropertyEffect=function(X,c,W){X=Efm(this,c,!0)[X];W=X.indexOf(W);W>=0&&X.splice(W,1)};
D.prototype._hasPropertyEffect=function(X,c){c=this[c];return!(!c||!c[X])};
D.prototype._hasReadOnlyEffect=function(X){return this._hasPropertyEffect(X,"__readOnly")};
D.prototype._hasNotifyEffect=function(X){return this._hasPropertyEffect(X,"__notifyEffects")};
D.prototype._hasReflectEffect=function(X){return this._hasPropertyEffect(X,"__reflectEffects")};
D.prototype._hasComputedEffect=function(X){return this._hasPropertyEffect(X,"__computeEffects")};
D.prototype._setPendingPropertyOrPath=function(X,c,W,p){if(p||s6(Array.isArray(X)?X[0]:X)!==X){if(!p&&(p=tI(this,X),X=e_m(this,X,c),!X||!C.prototype._shouldPropertyChange.call(this,X,c,p)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(X,c,W)){if(W=this.__dataLinkedPaths)for(var g in W)p=W[g],mR(g,X)?(p=ef(g,p,X),this._setPendingPropertyOrPath(p,c,!0,!0)):mR(p,X)&&(p=ef(p,g,X),this._setPendingPropertyOrPath(p,c,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[X])return this._setPendingProperty(X,
c,W);this[X]=c}return!1};
D.prototype._setUnmanagedPropertyToNode=function(X,c,W){if(W!==X[c]||typeof W=="object")c==="className"&&(X=(0,_.yo)(X)),X[c]=W};
D.prototype._setPendingProperty=function(X,c,W){var p=this.__dataHasPaths&&L2(X);if(this._shouldPropertyChange(X,c,(p?this.__dataTemp:this.__data)[X])){this.__dataPending||(this.__dataPending={},this.__dataOld={});X in this.__dataOld||(this.__dataOld[X]=this.__data[X]);p?this.__dataTemp[X]=c:this.__data[X]=c;this.__dataPending[X]=c;if(p||this.__notifyEffects&&this.__notifyEffects[X])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[X]=W;return!0}return!1};
D.prototype._setProperty=function(X,c){this._setPendingProperty(X,c,!0)&&this._invalidateProperties()};
D.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
D.prototype._enqueueClient=function(X){this.__dataPendingClients=this.__dataPendingClients||[];X!==this&&this.__dataPendingClients.push(X)};
D.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
D.prototype.__enableOrFlushClients=function(){var X=this.__dataPendingClients;if(X){this.__dataPendingClients=null;for(var c=0;c<X.length;c++){var W=X[c];W.__dataEnabled?W.__dataPending&&W._flushProperties():W._enableProperties()}}};
D.prototype._readyClients=function(){this.__enableOrFlushClients()};
D.prototype.setProperties=function(X,c){for(var W in X)!c&&this.__readOnly&&this.__readOnly[W]||this._setPendingPropertyOrPath(W,X[W],!0);this._invalidateProperties()};
D.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
D.prototype._propertiesChanged=function(X,c,W){X=this.__dataHasPaths;this.__dataHasPaths=!1;var p;if(p=this.__computeEffects)if(iG5){NI++;var g=Fdo(this),a=[],O;for(O in c)Tig(O,p,a,g,X);for(;O=a.shift();)GtR(this,"",c,W,O)&&Tig(O.methodInfo,p,a,g,X);Object.assign(W,this.__dataOld);Object.assign(c,this.__dataPending);this.__dataPending=null}else for(g=c;Yb(this,p,g,W,X);)Object.assign(W,this.__dataOld),Object.assign(c,this.__dataPending),g=this.__dataPending,this.__dataPending=null;p=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(c,W,X);this._flushClients();Yb(this,this.__reflectEffects,c,W,X);Yb(this,this.__observeEffects,c,W,X);if(p){g=this.__notifyEffects;a=NI++;for(var P in p)if(p[P]){if(O=g){var k=g;O=a;var u=P,Q=c,B=W,K=X,L=!1,t=K?s6(u):u;if(k=k[t]){t=0;for(var Y=k.length,y=void 0;t<Y&&(y=k[t]);t++)y.info&&y.info.lastRun===O||K&&!tbo(u,y.trigger)||(y.info&&(y.info.lastRun=O),y.fn(this,u,Q,B,y.info,K,void 0),L=!0)}O=L}if(O)var J=!0;else{if(O=X)O=P,u=c,Q=s6(O),Q!==
O?(Q=xb(Q)+"-changed",YWm(this,Q,u[O],O),O=!0):O=!1;O&&(J=!0)}}var T;J&&(T=this.__dataHost)&&T._invalidateProperties&&T._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
D.prototype._propagatePropertyChanges=function(X,c,W){this.__propagateEffects&&Yb(this,this.__propagateEffects,X,c,W);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,X,c,W)};
D.prototype._runEffectsForTemplate=function(X,c,W,p){var g=this,a=function(O,P){Yb(g,X.propertyEffects,O,W,P,X.nodeList);for(var k=X.firstChild;k;k=k.nextSibling)g._runEffectsForTemplate(k,O,W,P)};
X.runEffects?X.runEffects(a,c,p):a(c,p)};
D.prototype.linkPaths=function(X,c){X=E6(X);c=E6(c);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[X]=c};
D.prototype.unlinkPaths=function(X){X=E6(X);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[X]};
D.prototype.notifySplices=function(X,c){var W={path:""};X=tI(this,X,W);R_3(this,X,W.path,c)};
D.prototype.get=function(X,c){return tI(c||this,X)};
D.prototype.set=function(X,c,W){W?e_m(W,X,c):this.__readOnly&&this.__readOnly[X]||this._setPendingPropertyOrPath(X,c,!0)&&this._invalidateProperties()};
D.prototype.push=function(X){var c=_.MJ.apply(1,arguments),W={path:""},p=tI(this,X,W),g=p.length,a=p.push.apply(p,_.VB(c));c.length&&Z0(this,p,W.path,g,c.length,[]);return a};
D.prototype.pop=function(X){var c={path:""};X=tI(this,X,c);var W=!!X.length,p=X.pop();W&&Z0(this,X,c.path,X.length,0,[p]);return p};
D.prototype.splice=function(X,c,W){var p=_.MJ.apply(3,arguments),g={path:""},a=tI(this,X,g);c<0?c=a.length-Math.floor(-c):c&&(c=Math.floor(c));var O=arguments.length===2?a.splice(c):a.splice.apply(a,[c,W].concat(_.VB(p)));(p.length||O.length)&&Z0(this,a,g.path,c,p.length,O);return O};
D.prototype.shift=function(X){var c={path:""};X=tI(this,X,c);var W=!!X.length,p=X.shift();W&&Z0(this,X,c.path,0,0,[p]);return p};
D.prototype.unshift=function(X){var c=_.MJ.apply(1,arguments),W={path:""},p=tI(this,X,W),g=p.unshift.apply(p,_.VB(c));c.length&&Z0(this,p,W.path,0,c.length,[]);return g};
D.prototype.notifyPath=function(X,c){if(arguments.length==1){var W={path:""};c=tI(this,X,W);W=W.path}else W=Array.isArray(X)?E6(X):X;this._setPendingPropertyOrPath(W,c,!0,!0)&&this._invalidateProperties()};
D.prototype._createReadOnlyProperty=function(X,c){this._addPropertyEffect(X,"__readOnly");c&&(this["_set"+(X[0].toUpperCase()+X.substring(1))]=function(W){this._setProperty(X,W)})};
D.prototype._createPropertyObserver=function(X,c,W){var p={property:X,method:c,dynamicFn:!!W};this._addPropertyEffect(X,"__observeEffects",{fn:NE5,info:p,trigger:{name:X}});W&&this._addPropertyEffect(c,"__observeEffects",{fn:NE5,info:p,trigger:{name:c}})};
D.prototype._createMethodObserver=function(X,c){var W=fTh(X);if(!W)throw Error("Ed`"+X);z_h(this,W,"__observeEffects",Zmd,null,c)};
D.prototype._createNotifyingProperty=function(X){this._addPropertyEffect(X,"__notifyEffects",{fn:ymR,info:{eventName:xb(X)+"-changed",property:X}})};
D.prototype._createReflectedProperty=function(X){var c=this.constructor.attributeNameForProperty(X);c[0]==="-"?console.warn("Property "+X+" cannot be reflected to attribute "+c+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(X,"__reflectEffects",{fn:nft,info:{attrName:c}})};
D.prototype._createComputedProperty=function(X,c,W){var p=fTh(c);if(!p)throw Error("Fd`"+c);c=z_h(this,p,"__computeEffects",GtR,X,W);Efm(this,"__computeInfo")[X]=c};
D.prototype._marshalArgs=function(X,c,W){for(var p=this.__data,g=[],a=0,O=X.length;a<O;a++){var P=X[a],k=P.name,u=P.structured,Q=P.wildcard,B=P.value;P.literal||(Q?(P=mR(k,c),u=doJ(p,W,P?c:k),B={path:P?c:k,value:u,base:P?tI(p,k):u}):B=u?doJ(p,W,k):p[k]);if(Ff&&!this._overrideLegacyUndefined&&B===void 0&&X.length>1)return w0;g[a]=B}return g};
D.addPropertyEffect=function(X,c,W){this.prototype._addPropertyEffect(X,c,W)};
D.createPropertyObserver=function(X,c,W){this.prototype._createPropertyObserver(X,c,W)};
D.createMethodObserver=function(X,c){this.prototype._createMethodObserver(X,c)};
D.createNotifyingProperty=function(X){this.prototype._createNotifyingProperty(X)};
D.createReadOnlyProperty=function(X,c){this.prototype._createReadOnlyProperty(X,c)};
D.createReflectedProperty=function(X){this.prototype._createReflectedProperty(X)};
D.createComputedProperty=function(X,c,W){this.prototype._createComputedProperty(X,c,W)};
D.bindTemplate=function(X){return this.prototype._bindTemplate(X)};
D.prototype._bindTemplate=function(X,c){var W=this.constructor._parseTemplate(X),p=this.__preBoundTemplateInfo==W;if(!p)for(var g in W.propertyEffects)this._createPropertyAccessor(g);c?(W=Object.create(W),W.wasPreBound=p,this.__templateInfo?(X=X._parentTemplateInfo||this.__templateInfo,c=X.lastChild,W.parent=X,X.lastChild=W,(W.previousSibling=c)?c.nextSibling=W:X.firstChild=W):this.__templateInfo=W):this.__preBoundTemplateInfo=W;return W};
D._addTemplatePropertyEffect=function(X,c,W){(X.hostProps=X.hostProps||{})[c]=!0;X=X.propertyEffects=X.propertyEffects||{};(X[c]=X[c]||[]).push(W)};
D.prototype._stampTemplate=function(X,c){c=c||this._bindTemplate(X,!0);PG.push(this);X=C.prototype._stampTemplate.call(this,X,c);PG.pop();c.nodeList=X.nodeList;if(!c.wasPreBound)for(var W=c.childNodes=[],p=X.firstChild;p;p=p.nextSibling)W.push(p);X.templateInfo=c;W=c.nodeList;p=c.nodeInfoList;if(p.length)for(var g=0;g<p.length;g++){var a=W[g],O=p[g].bindings;if(O)for(var P=0;P<O.length;P++){var k=O[P],u=a,Q=k;if(Q.isCompound){for(var B=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),K=Q.parts,
L=Array(K.length),t=0;t<K.length;t++)L[t]=K[t].literal;K=Q.target;B[K]=L;Q.literal&&Q.kind=="property"&&(K==="className"&&(u=(0,_.yo)(u)),u[K]=Q.literal)}Jmt(a,this,k)}a.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(c,this.__data,null,!1),this._flushClients());return X};
D.prototype._removeBoundDom=function(X){X=X.templateInfo;var c=X.previousSibling,W=X.nextSibling,p=X.parent;c?c.nextSibling=W:p&&(p.firstChild=W);W?W.previousSibling=c:p&&(p.lastChild=c);X.nextSibling=X.previousSibling=null;X=X.childNodes;for(c=0;c<X.length;c++)W=X[c],(0,_.yo)((0,_.yo)(W).parentNode).removeChild(W)};
D._parseTemplateNode=function(X,c,W){var p=C._parseTemplateNode.call(this,X,c,W);if(X.nodeType===Node.TEXT_NODE){var g=this._parseBindings(X.textContent,c);g&&(X.textContent=j9m(g)||" ",Hmr(this,c,W,"text","textContent",g),p=!0)}return p};
D._parseTemplateNodeAttribute=function(X,c,W,p,g){var a=this._parseBindings(g,c);if(a){g=p;var O="property";VYb.test(p)?O="attribute":p[p.length-1]=="$"&&(p=p.slice(0,-1),O="attribute");var P=j9m(a);P&&O=="attribute"&&(p=="class"&&X.hasAttribute("class")&&(P+=" "+X.getAttribute(p)),X.setAttribute(p,P));O=="attribute"&&g=="disable-upgrade$"&&X.setAttribute(p,"");X.localName==="input"&&g==="value"&&X.setAttribute(g,"");X.removeAttribute(g);O==="property"&&(p=hI(p));Hmr(this,c,W,O,p,a,P);return!0}return C._parseTemplateNodeAttribute.call(this,
X,c,W,p,g)};
D._parseTemplateNestedTemplate=function(X,c,W){var p=C._parseTemplateNestedTemplate.call(this,X,c,W),g=X.parentNode,a=W.templateInfo,O=g.localName==="dom-if",P=g.localName==="dom-repeat";Uy&&(O||P)&&(g.removeChild(X),W=W.parentInfo,W.templateInfo=a,W.noted=!0,p=!1);X=a.hostProps;if(gW&&O)X&&(c.hostProps=Object.assign(c.hostProps||{},X),Uy||(W.parentInfo.noted=!0));else for(var k in X)Hmr(this,c,W,"property","_host_"+k,[{mode:"{",source:k,dependencies:[k],hostProp:!0}]);return p};
D._parseBindings=function(X,c){for(var W=[],p=0,g;(g=HG5.exec(X))!==null;){g.index>p&&W.push({literal:X.slice(p,g.index)});p=g[1][0];var a=!!g[2];g=g[3].trim();var O=!1,P="",k=-1;p=="{"&&(k=g.indexOf("::"))>0&&(P=g.substring(k+2),g=g.substring(0,k),O=!0);k=fTh(g);var u=[];if(k){var Q=k,B=Q.args;Q=Q.methodName;for(var K=0;K<B.length;K++){var L=B[K];L.literal||u.push(L)}if((B=c.dynamicFns)&&B[Q]||k.static)u.push(Q),k.dynamicFn=!0}else u.push(g);W.push({source:g,mode:p,negate:a,customEvent:O,signature:k,
dependencies:u,event:P});p=HG5.lastIndex}p&&p<X.length&&(X=X.substring(p))&&W.push({literal:X});return W.length?W:null};
D._evaluateBinding=function(X,c,W,p,g,a){X=c.signature?Zmd(X,W,p,g,c.signature):W!=c.source?tI(X,c.source):a&&L2(W)?tI(X,W):X.__data[W];c.negate&&(X=!X);return X};
_.$a.Object.defineProperties(D.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return GAJ}}});
return D}),PG=[];var JAd=window.ShadyCSS&&window.ShadyCSS.cssBuild,vG=Ax(function(D){function C(c,W,p,g){if(!JAd){for(var a=W.content.querySelectorAll("style"),O=XRr(W),P=cTj(p),k=W.content.firstElementChild,u=0;u<P.length;u++){var Q=P[u];Q.textContent=c._processStyleText(Q.textContent,g);W.content.insertBefore(Q,k)}for(k=P=0;k<O.length;k++)u=O[k],Q=a[P],Q!==u?(u=u.cloneNode(!0),Q.parentNode.insertBefore(u,Q)):P++,u.textContent=c._processStyleText(u.textContent,g)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(W,
p);if(uzb&&JAd&&AAJ&&(W=W.content.querySelectorAll("style"))){var B="";Array.from(W).forEach(function(K){B+=K.textContent;K.parentNode.removeChild(K)});
c._styleSheet=new CSSStyleSheet;c._styleSheet.replaceSync(B)}}
var X=soN($y(D));D=function(){return X.call(this)||this};
_.h(D,X);D._finalizeClass=function(){X._finalizeClass.call(this);var c;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(c=this.__ownObservers)&&this.createObservers(c,this._properties);this._prepareTemplate()};
D._prepareTemplate=function(){var c=this.template;c&&(typeof c==="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):lV||(c=c.cloneNode(!0)));this.prototype._template=c};
D.createProperties=function(c){for(var W in c){var p=this.prototype,g=W,a=c[W],O=c;a.computed&&(a.readOnly=!0);a.computed&&(p._hasReadOnlyEffect(g)?console.warn("Cannot redefine computed property '"+g+"'."):p._createComputedProperty(g,a.computed,O));a.readOnly&&!p._hasReadOnlyEffect(g)?p._createReadOnlyProperty(g,!a.computed):a.readOnly===!1&&p._hasReadOnlyEffect(g)&&console.warn("Cannot make readOnly property '"+g+"' non-readOnly.");a.reflectToAttribute&&!p._hasReflectEffect(g)?p._createReflectedProperty(g):
a.reflectToAttribute===!1&&p._hasReflectEffect(g)&&console.warn("Cannot make reflected property '"+g+"' non-reflected.");a.notify&&!p._hasNotifyEffect(g)?p._createNotifyingProperty(g):a.notify===!1&&p._hasNotifyEffect(g)&&console.warn("Cannot make notify property '"+g+"' non-notify.");a.observer&&p._createPropertyObserver(g,a.observer,O[a.observer]);p._addPropertyToAttributeMap(g)}};
D.createObservers=function(c,W){for(var p=this.prototype,g=0;g<c.length;g++)p._createMethodObserver(c[g],W)};
D.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);X.prototype._initializeProperties.call(this);this.rootPath=PH5;this.importPath=this.constructor.importPath;var c=this.constructor;if(!c.hasOwnProperty("__propertyDefaults")){c.__propertyDefaults=null;var W=c._properties,p;for(p in W){var g=W[p];"value"in g&&(c.__propertyDefaults=c.__propertyDefaults||{},c.__propertyDefaults[p]=g)}}if(c=c.__propertyDefaults)for(var a in c)W=c[a],
this._canApplyPropertyDefault(a)&&(W=typeof W.value=="function"?W.value.call(this):W.value,this._hasAccessor(a)?this._setPendingProperty(a,W,!0):this[a]=W)};
D.prototype._canApplyPropertyDefault=function(c){return!this.hasOwnProperty(c)};
D._processStyleText=function(c,W){return $oh(c,W)};
D._finalizeTemplate=function(c){var W=this.prototype._template;if(W&&!W.__polymerFinalized){W.__polymerFinalized=!0;var p=this.importPath;p=p?_.r0(p):"";C(this,W,c,p);this.prototype._bindTemplate(W)}};
D.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);X.prototype.connectedCallback.call(this)};
D.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);X.prototype.ready.call(this)};
D.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));X.prototype._readyClients.call(this)};
D.prototype._attachDom=function(c){var W=(0,_.yo)(this);if(W.attachShadow)return c?(W.shadowRoot||(W.attachShadow({mode:"open",shadyUpgradeFragment:c}),W.shadowRoot.appendChild(c),this.constructor._styleSheet&&(W.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),vn4&&window.ShadyDOM&&window.ShadyDOM.flushInitial(W.shadowRoot),W.shadowRoot):null;throw Error("Hd");};
D.prototype.updateStyles=function(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)};
D.prototype.resolveUrl=function(c,W){!W&&this.importPath&&(W=_.r0(this.importPath));return _.r0(c,W)};
D._parseTemplateContent=function(c,W,p){W.dynamicFns=W.dynamicFns||this._properties;return X._parseTemplateContent.call(this,c,W,p)};
D._addTemplatePropertyEffect=function(c,W,p){!WH||W in this._properties||p.info.part.signature&&p.info.part.signature.static||p.info.part.hostProp||c.nestedTemplate||console.warn("Property '"+W+"' used in template but not declared in 'properties'; attribute will not be observed.");return X._addTemplatePropertyEffect.call(this,c,W,p)};
_.$a.Object.defineProperties(D,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var c=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof c==="function"&&(c=c());if(c===void 0){if(c=this.hasOwnProperty("is")){c=this.is;var W=null;if(c&&(!pl||$w5)&&(W=G5.import(c,"template"),pl&&!W))throw Error("Gd`"+c);c=W}c=c||Object.getPrototypeOf(this.prototype).constructor.template}this._template=c}return this._template},
set:function(c){this._template=c}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var c=this.importMeta;c?this._importPath=vfh(c.url):this._importPath=(c=G5.import(this.is))&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return D});var zOd=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(D){return D}}),ath=function(D,C){joc(D,C);
this.value=C.reduce(function(X,c,W){return X+ItR(c)+D[W+1]},D[0]).toString()},joc;
ath.prototype.toString=function(){return this.value};
_.MY4=function(D){var C=_.MJ.apply(1,arguments);joc(D,C);var X=document.createElement("template");C=C.reduce(function(c,W,p){if(W instanceof HTMLTemplateElement)W=W.innerHTML;else if(W instanceof ath)W=ItR(W);else throw Error("Jd`"+W);return c+W+D[p+1]},D[0]);
zOd&&(C=zOd.createHTML(C));X.innerHTML=C;return X};
joc=function(D,C){if(!Array.isArray(D)||!Array.isArray(D.raw)||C.length!==D.length-1)throw new TypeError("Kd");};var iW=vG(HTMLElement);var qsC=Ax(function(D){var C=vG(D);D=function(){var X=C.call(this)||this;X.__lastItems=null;X.__lastMulti=null;X.__selectedMap=null;return X};
_.h(D,C);D.prototype.__updateSelection=function(X,c){var W=c.path;W=="items"?(c=c.base||[],W=this.__lastItems,X!==this.__lastMulti&&this.clearSelection(),W&&(W=gwZ(c,W),this.__applySplices(W)),this.__lastItems=c,this.__lastMulti=X):c.path=="items.splices"?this.__applySplices(c.value.indexSplices):(X=W.slice(6),c=parseInt(X,10),X.indexOf(".")<0&&X==c&&this.__deselectChangedIdx(c))};
D.prototype.__applySplices=function(X){for(var c=this,W=this.__selectedMap,p={},g=0;g<X.length;p={s$jscomp$109:void 0},g++){p.s$jscomp$109=X[g];W.forEach(function(k){return function(u,Q){u<k.s$jscomp$109.index||(u>=k.s$jscomp$109.index+k.s$jscomp$109.removed.length?W.set(Q,u+k.s$jscomp$109.addedCount-k.s$jscomp$109.removed.length):W.set(Q,-1))}}(p));
for(var a=0;a<p.s$jscomp$109.addedCount;a++){var O=p.s$jscomp$109.index+a;W.has(this.items[O])&&W.set(this.items[O],O)}}this.__updateLinks();var P=0;W.forEach(function(k,u){k<0?(c.multi?c.splice("selected",P,1):c.selected=c.selectedItem=null,W.delete(u)):P++})};
D.prototype.__updateLinks=function(){var X=this;this.__dataLinkedPaths={};if(this.multi){var c=0;this.__selectedMap.forEach(function(W){W>=0&&X.linkPaths("items."+W,"selected."+c++)})}else this.__selectedMap.forEach(function(W){X.linkPaths("selected","items."+W);
X.linkPaths("selectedItem","items."+W)})};
D.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
D.prototype.isSelected=function(X){return this.__selectedMap.has(X)};
D.prototype.isIndexSelected=function(X){return this.isSelected(this.items[X])};
D.prototype.__deselectChangedIdx=function(X){var c=this,W=this.__selectedIndexForItemIndex(X);if(W>=0){var p=0;this.__selectedMap.forEach(function(g,a){W==p++&&c.deselect(a)})}};
D.prototype.__selectedIndexForItemIndex=function(X){if(X=this.__dataLinkedPaths["items."+X])return parseInt(X.slice(9),10)};
D.prototype.deselect=function(X){var c=this.__selectedMap.get(X);if(c>=0){this.__selectedMap.delete(X);var W;this.multi&&(W=this.__selectedIndexForItemIndex(c));this.__updateLinks();this.multi?this.splice("selected",W,1):this.selected=this.selectedItem=null}};
D.prototype.deselectIndex=function(X){this.deselect(this.items[X])};
D.prototype.select=function(X){this.selectIndex(this.items.indexOf(X))};
D.prototype.selectIndex=function(X){var c=this.items[X];this.isSelected(c)?this.toggle&&this.deselectIndex(X):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(c,X),this.__updateLinks(),this.multi?this.push("selected",c):this.selected=this.selectedItem=c)};
_.$a.Object.defineProperties(D,{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 D}),fJC=qsC(iW),ky=function(){return fJC.apply(this,arguments)||this};
_.h(ky,fJC);_.$a.Object.defineProperties(ky,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(ky.is,ky);var dw5=window.Polymer;window.Polymer=function(D){return window.Polymer._polymerFn(D)};
dw5&&Object.assign(Polymer,dw5);Polymer._polymerFn=function(){throw Error("Ld");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:$oh,resolveUrl:_.r0,pathFromUrl:vfh};Polymer.DomModule=G5;Polymer.Async={timeOut:_.Oy,animationFrame:_.hv,idlePeriod:KZd,microTask:d0};Polymer.dedupingMixin=Ax;Polymer.wrap=_.yo;Polymer.PropertiesChanged=xwg;Polymer.telemetry={instanceCount:LZN,incrementInstanceCount:function(){LZN++},
registrations:Q9J,register:BEJ,dumpRegistrations:function(){Q9J.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=soN;Polymer.CaseMap={dashToCamelCase:hI,camelToDashCase:xb};Polymer.PropertyAccessors=Ys4;Polymer.TemplateStamp=ZGM;Polymer.Path={isPath:L2,root:s6,isAncestor:Ldt,isDescendant:mR,translate:ef,matches:s9m,normalize:E6,split:mom,get:tI,set:e_m,isDeep:L2};Polymer.Settings={useShadow:D4,useNativeCSSProperties:UwN,useNativeCustomElements:gnM,get rootPath(){return PH5},setRootPath:function(D){PH5=D},
get sanitizeDOMValue(){return n2},setSanitizeDOMValue:function(D){n2=D},
get passiveTouchGestures(){return Kwm},setPassiveTouchGestures:function(D){Kwm=D},
get strictTemplatePolicy(){return pl},setStrictTemplatePolicy:function(D){pl=D},
get allowTemplateFromDomModule(){return $w5},setAllowTemplateFromDomModule:function(D){$w5=D},
get legacyOptimizations(){return lV},setLegacyOptimizations:function(D){lV=D},
get syncInitialRender(){return vn4},setSyncInitialRender:function(D){vn4=D},
get legacyUndefined(){return Ff},setLegacyUndefined:function(D){Ff=D},
get legacyWarnings(){return WH},setLegacyWarnings:function(D){WH=D},
get orderedComputed(){return iG5},setOrderedComputed:function(D){iG5=D},
get fastDomIf(){return gW},setFastDomIf:function(D){gW=D},
get removeNestedTemplates(){return Uy},setRemoveNestedTemplates:function(D){Uy=D},
get suppressTemplateNotifications(){return aR},setSuppressTemplateNotifications:aR};Polymer.rootPath!==void 0&&(PH5=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(n2=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Kwm=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(pl=Polymer.strictTemplatePolicy);$w5=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(lV=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(vn4=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Ff=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(WH=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(iG5=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(gW=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Uy=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(aR=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return n2},
set:function(D){n2=D}});Polymer.PropertyEffects=$y;Polymer.StyleGather={stylesFromModules:CTm,stylesFromModule:D8j,stylesFromTemplate:XRr,stylesFromModuleImports:cTj,cssFromModules:Wwn,cssFromModule:owF,cssFromTemplate:pRh,cssFromModuleImports:function(D){return(D=G5.import(D))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):""}};Polymer.ElementMixin=vG;Polymer.updateStyles=function(D){window.ShadyCSS&&window.ShadyCSS.styleDocument(D)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:gwZ};Polymer.html=_.MY4;Polymer.htmlLiteral=function(D){return new ath(D,_.MJ.apply(1,arguments))};Polymer.Element=iW;Polymer.ArraySelectorMixin=qsC;Polymer.ArraySelector=ky;var ROk=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,lJg=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jut=/@media\s(.*)/;var $8t=null,PTt=window.HTMLImports&&window.HTMLImports.whenReady||null,vw3;var D_d=null,uW=null,Qb=function(){this.customStyles=[];this.enqueued=!1;inm(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},CO5=function(D){!D.enqueued&&uW&&(D.enqueued=!0,inm(uW))};
Qb.prototype.addCustomStyle=function(D){D.__seenByShadyCSS||(D.__seenByShadyCSS=!0,this.customStyles.push(D),CO5(this))};
Qb.prototype.getStyleForCustomStyle=function(D){if(D.__shadyCSSCachedStyle)return D.__shadyCSSCachedStyle;var C;D.getStyle?C=D.getStyle():C=D;return C};
Qb.prototype.processStyles=function(){for(var D=this.customStyles,C=0;C<D.length;C++){var X=D[C];if(!X.__shadyCSSCachedStyle){var c=this.getStyleForCustomStyle(X);c&&(c=c.__appliedElement||c,D_d&&D_d(c),X.__shadyCSSCachedStyle=c)}}return D};
Qb.prototype.addCustomStyle=Qb.prototype.addCustomStyle;Qb.prototype.getStyleForCustomStyle=Qb.prototype.getStyleForCustomStyle;Qb.prototype.processStyles=Qb.prototype.processStyles;Object.defineProperties(Qb.prototype,{transformCallback:{get:function(){return D_d},
set:function(D){D_d=D}},
validateCallback:{get:function(){return uW},
set:function(D){var C=!1;uW||(C=!0);uW=D;C&&CO5(this)}}});var uxm=!(window.ShadyDOM&&window.ShadyDOM.inUse),k_W,PH;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(PH=window.ShadyCSS.cssBuild);var Xc4=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?k_W=window.ShadyCSS.nativeCss:window.ShadyCSS?(Q2W(window.ShadyCSS),window.ShadyCSS=void 0):Q2W(window.WebComponents&&window.WebComponents.flags);var Vzr=k_W;var cve=new Qb;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(D,C){cve.processStyles();Onh(D,C)},
styleElement:function(){cve.processStyles()},
styleDocument:function(D){cve.processStyles();Onh(document.body,D)},
getComputedStyleValue:function(D,C){return ATo(D,C)},
flushCustomStyles:function(){},
nativeCss:Vzr,nativeShadow:uxm,cssBuild:PH,disableRuntime:Xc4});window.ShadyCSS.CustomStyleInterface=cve;var o7e=window.ShadyCSS.CustomStyleInterface,BG=function(){var D=HTMLElement.call(this)||this;D._style=null;o7e.addCustomStyle(D);return D};
_.h(BG,HTMLElement);BG.prototype.getStyle=function(){if(this._style)return this._style;var D=this.querySelector("style");if(!D)return null;this._style=D;var C=D.getAttribute("include");C&&(D.removeAttribute("include"),D.textContent=Wwn(C)+D.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
BG.prototype.getStyle=BG.prototype.getStyle;window.customElements.define("custom-style",BG);Polymer.CustomStyle=BG;var bW=function(){this._timer=this._callback=this._asyncModule=null},rW,pcx;
bW.prototype.setConfig=function(D,C){var X=this;this._asyncModule=D;this._callback=C;this._timer=this._asyncModule.run(function(){X._timer=null;rW.delete(X);X._callback()})};
bW.prototype.cancel=function(){this.isActive()&&(Wpb(this),rW.delete(this))};
var Wpb=function(D){D.isActive()&&(D._asyncModule.cancel(D._timer),D._timer=null)};
bW.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
bW.prototype.isActive=function(){return this._timer!=null};
_.Kr=function(D,C,X){D instanceof bW?Wpb(D):D=new bW;D.setConfig(C,X);return D};
rW=new Set;_.hx=function(D){rW.add(D)};
pcx=function(){var D=!!rW.size;rW.forEach(function(C){try{C.flush()}catch(X){setTimeout(function(){throw X;})}});
return D};var bnj=typeof document.head.style.touchAction==="string",BBh=["mousedown","mousemove","mouseup","click"],EwJ=[0,1,4,2],S4q;try{S4q=(new MouseEvent("test",{buttons:1})).buttons===1}catch(D){S4q=!1}var eDJ=S4q,rTF=!1;(function(){try{var D=Object.defineProperty({},"passive",{get:function(){rTF=!0}});
window.addEventListener("test",null,D);window.removeEventListener("test",null,D)}catch(C){}})();
var x8F=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Lwo=[],U_b={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Hn5={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},s2m=function(D){var C=D.sourceCapabilities;if(!C||C.firesTouchEvents)if(D.__polymerGesturesHandled={skip:!0},D.type==="click"){C=!1;for(var X=yTj(D),c=0;c<X.length;c++){if(X[c].nodeType===Node.ELEMENT_NODE)if(X[c].localName==="label")Lwo.push(X[c]);
else if(U_b[X[c].localName]){var W=X[c];var p=Array.prototype.slice.call(W.labels||[]);if(!p.length){p=[];try{var g=W.getRootNode();if(W.id){var a=g.querySelectorAll("label[for = '"+W.id+"']");for(W=0;W<a.length;W++)p.push(a[W])}}catch(O){}}for(W=0;W<p.length;W++)C=C||Lwo.indexOf(p[W])>-1}if(X[c]===g7b)return}C||(D.preventDefault(),D.stopPropagation())}},g7b=null,xy=null,wR3=0,FwZ=0,nw5=-1,ZnR=!1;
document.addEventListener("touchend",function(D){xy||m8h(!0);g7b=yTj(D)[0];xy=_.Kr(xy,_.Oy.after(2500),function(){m8h();xy=g7b=null})},rTF?{passive:!0}:!1);
var yTj=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(D){return D.composedPath&&D.composedPath()||[]},jf={},JI=[];
G_5({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Hf(this.info)},
mousedown:function(D){if(T5(D)){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),X=this;NBd(this.info,function(c){T5(c)||(RX("up",C,c),Hf(X.info))},function(c){T5(c)&&RX("up",C,c);
Hf(X.info)});
RX("down",C,D)}},
touchstart:function(D){RX("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)},
touchend:function(D){RX("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)}});
G_5({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(D){this.moves.length>2&&this.moves.shift();this.moves.push(D)},
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;Hf(this.info)},
mousedown:function(D){if(T5(D)){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),X=this,c=function(W){var p=W.clientX,g=W.clientY;VXj(X.info,p,g)&&(X.info.state=X.info.started?W.type==="mouseup"?"end":"track":"start",X.info.state==="start"&&z5("tap"),X.info.addMove({x:p,y:g}),T5(W)||(X.info.state="end",Hf(X.info)),C&&TBt(X.info,C,W),X.info.started=!0)};
NBd(this.info,c,function(W){X.info.started&&c(W);Hf(X.info)});
this.info.x=D.clientX;this.info.y=D.clientY}},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchmove:function(D){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];var X=D.clientX,c=D.clientY;VXj(this.info,X,c)&&(this.info.state==="start"&&z5("tap"),this.info.addMove({x:X,y:c}),TBt(this.info,C,D),this.info.state="track",this.info.started=!0)},
touchend:function(D){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:D.clientX,y:D.clientY}),TBt(this.info,C,D))}});
G_5({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(D){T5(D)&&(this.info.x=D.clientX,this.info.y=D.clientY)},
click:function(D){T5(D)&&JTt(this.info,D)},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchend:function(D){JTt(this.info,D.changedTouches[0],D)}});var aRJ=Ax(function(D){var C=function(){return D.apply(this,arguments)||this};
_.h(C,D);C.prototype._addEventListenerToNode=function(X,c,W){MI(X,c,W)||D.prototype._addEventListenerToNode.call(this,X,c,W)};
C.prototype._removeEventListenerFromNode=function(X,c,W){qI(X,c,W)||D.prototype._removeEventListenerFromNode.call(this,X,c,W)};
return C});var Lr=Ax(function(D){var C=function(){return D.apply(this,arguments)||this};
_.h(C,D);C.prototype._shouldPropertyChange=function(X,c,W){return zDo(this,X,c,W,!0)};
return C}),IRk=Ax(function(D){var C=function(){return D.apply(this,arguments)||this};
_.h(C,D);C.prototype._shouldPropertyChange=function(X,c,W){return zDo(this,X,c,W,this.mutableData)};
_.$a.Object.defineProperties(C,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return C});
Lr._mutablePropertyChange=zDo;var j2o=!1;var Obk=aRJ(IRk($y(HTMLElement))),sy=function(){var D=Obk.call(this)||this;if(pl)throw Error("Md");D.root=null;D.$=null;D.__children=null;return D};
_.h(sy,Obk);_.S=sy.prototype;_.S.attributeChangedCallback=function(){this.mutableData=!0};
_.S.connectedCallback=function(){MXr()||(this.style.display="none");this.render()};
_.S.disconnectedCallback=function(){this.__removeChildren()};
_.S.__insertChildren=function(){(0,_.yo)((0,_.yo)(this).parentNode).insertBefore(this.root,this)};
_.S.__removeChildren=function(){if(this.__children)for(var D=0;D<this.__children.length;D++)this.root.appendChild(this.__children[D])};
_.S.render=function(){var D=this;if(!this.__children){var C=C||this.querySelector("template");if(!C){var X=new MutationObserver(function(){if(C=D.querySelector("template"))X.disconnect(),D.render();else throw Error("Nd");});
X.observe(this,{childList:!0});return}this.root=this._stampTemplate(C);this.$=this.root.$;this.__children=[];for(var c=this.root.firstChild;c;c=c.nextSibling)this.__children[this.__children.length]=c;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.$a.Object.defineProperties(sy,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",sy);Polymer.Debouncer=bW;Polymer.Gestures={gestures:jf,recognizers:JI,deepTargetFind:Y3m,addListener:MI,removeListener:qI,register:G_5,setTouchAction:_.f2,prevent:z5,resetMouseCanceller:function(){xy&&xy.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:MI,remove:qI};Polymer.GestureEventListeners=aRJ;Polymer.MutableData=Lr;Polymer.OptionalMutableData=IRk;Polymer.DomBind=sy;_.m8=function(){do{var D=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var C=pcx()}while(D||C)};var q3o=null;fto.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:fto,writable:!0}});var o5m=$y(fto),cut=Lr(o5m),Av5=$y(function(){}),Cl=function(D){var C=Av5.call(this)||this;
C._configureProperties(D);C.root=C._stampTemplate(C.__dataHost);var X=[];C.children=X;for(var c=C.root.firstChild;c;c=c.nextSibling)X.push(c),c.__templatizeInstance=C;C.__templatizeOwner&&C.__templatizeOwner.__hideTemplateChildren__&&C._showHideChildren(!0);X=C.__templatizeOptions;(D&&X.instanceProps||!X.instanceProps)&&C._enableProperties();return C};
_.h(Cl,Av5);_.S=Cl.prototype;_.S._configureProperties=function(D){if(this.__templatizeOptions.forwardHostProp)for(var C in this.__hostProps)this._setPendingProperty(C,this.__dataHost["_host_"+C]);for(var X in D)this._setPendingProperty(X,D[X])};
_.S.forwardHostProp=function(D,C){this._setPendingPropertyOrPath(D,C,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.S._addEventListenerToNode=function(D,C,X){var c=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(D,C,function(p){p.model=c;X(p)});
else{var W=this.__dataHost.__dataHost;W&&W._addEventListenerToNode(D,C,X)}};
_.S._showHideChildren=function(D){RDF(D,this.children)};
_.S._setUnmanagedPropertyToNode=function(D,C,X){D.__hideTemplateChildren__&&D.nodeType==Node.TEXT_NODE&&C=="textContent"?D.__polymerTextContent__=X:Av5.prototype._setUnmanagedPropertyToNode.call(this,D,C,X)};
_.S.dispatchEvent=function(){return!0};
_.$a.Object.defineProperties(Cl.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var D=this.__parentModel;if(!D){var C;D=this;do D=D.__dataHost.__dataHost;while((C=D.__templatizeOptions)&&!C.parentModel);this.__parentModel=D}return D}}});
var DyW=Lr(Cl);var eU=function(){var D=iW.call(this)||this;D.__renderDebouncer=null;D._lastIf=!1;D.__hideTemplateChildren__=!1;return D};
_.h(eU,iW);_.S=eU.prototype;_.S.__debounceRender=function(){var D=this;this.__renderDebouncer=_.Kr(this.__renderDebouncer,d0,function(){return D.__render()});
_.hx(this.__renderDebouncer)};
_.S.disconnectedCallback=function(){iW.prototype.disconnectedCallback.call(this);var D=(0,_.yo)(this).parentNode;D&&(D.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.yo)(D).host)||this.__teardownInstance()};
_.S.connectedCallback=function(){iW.prototype.connectedCallback.call(this);MXr()||(this.style.display="none");this.if&&this.__debounceRender()};
_.S.__ensureTemplate=function(){var D=this;if(!this.__template){var C=this._templateInfo?this:(0,_.yo)(this).querySelector("template");if(!C){var X=new MutationObserver(function(){if((0,_.yo)(D).querySelector("template"))X.disconnect(),D.__render();else throw Error("Qd");});
X.observe(this,{childList:!0});return!1}this.__template=C}return!0};
_.S.__ensureInstance=function(){var D=(0,_.yo)(this).parentNode;if(this.__hasInstance()){var C=this.__getInstanceNodes();if(C&&C.length&&(0,_.yo)(this).previousSibling!==C[C.length-1])for(var X=0,c=void 0;X<C.length&&(c=C[X]);X++)(0,_.yo)(D).insertBefore(c,this)}else{if(!D||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(D)}return!0};
_.S.render=function(){_.m8()};
_.S.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();aR&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.S.__hasInstance=function(){};
_.S.__getInstanceNodes=function(){};
_.S.__createAndInsertInstance=function(){};
_.S.__teardownInstance=function(){};
_.S._showHideChildren=function(){};
_.$a.Object.defineProperties(eU,{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:eU.prototype.__debounceRender},restamp:{type:Boolean,observer:eU.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var PO5=function(){var D=eU.call(this)||this;D.__instance=null;D.__syncInfo=null;return D};
_.h(PO5,eU);_.S=PO5.prototype;_.S.__hasInstance=function(){return!!this.__instance};
_.S.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.S.__createAndInsertInstance=function(D){var C=this,X=this.__dataHost||this;if(pl&&!this.__dataHost)throw Error("Od");var c=X._bindTemplate(this.__template,!0);c.runEffects=function(W,p,g){var a=C.__syncInfo;if(C.if)a&&(C.__syncInfo=null,C._showHideChildren(),p=Object.assign(a.changedProps,p)),W(p,g);else if(C.__instance)if(a||(a=C.__syncInfo={runEffects:W,changedProps:{}}),g)for(var O in p)W=s6(O),a.changedProps[W]=C.__dataHost[W];else Object.assign(a.changedProps,p)};
this.__instance=X._stampTemplate(this.__template,c);(0,_.yo)(D).insertBefore(this.__instance,this)};
_.S.__syncHostProperties=function(){var D=this.__syncInfo;D&&(this.__syncInfo=null,D.runEffects(D.changedProps,!1))};
_.S.__teardownInstance=function(){var D=this.__dataHost||this;this.__instance&&(D._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.S._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,RDF(D,this.__instance.templateInfo.childNodes));D||this.__syncHostProperties()};
var $_4=function(){var D=eU.call(this)||this;D.__ctor=null;D.__instance=null;D.__invalidProps=null;return D};
_.h($_4,eU);_.S=$_4.prototype;_.S.__hasInstance=function(){return!!this.__instance};
_.S.__getInstanceNodes=function(){return this.__instance.children};
_.S.__createAndInsertInstance=function(D){this.__ctor||(this.__ctor=X2(this.__template,this,{mutableData:!0,forwardHostProp:function(C,X){this.__instance&&(this.if?this.__instance.forwardHostProp(C,X):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[s6(C)]=!0))}}));
this.__instance=new this.__ctor;(0,_.yo)(D).insertBefore(this.__instance.root,this)};
_.S.__teardownInstance=function(){if(this.__instance){var D=this.__instance.children;if(D&&D.length){var C=(0,_.yo)(D[0]).parentNode;if(C){C=(0,_.yo)(C);for(var X=0,c=void 0;X<D.length&&(c=D[X]);X++)C.removeChild(c)}}this.__instance=this.__invalidProps=null}};
_.S.__syncHostProperties=function(){var D=this.__invalidProps;if(D){this.__invalidProps=null;for(var C in D)this.__instance._setPendingProperty(C,this.__dataHost[C]);this.__instance._flushProperties()}};
_.S._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,this.__instance._showHideChildren(D));D||this.__syncHostProperties()};
_.Es=gW?PO5:$_4;customElements.define(_.Es.is,_.Es);Polymer.enqueueDebouncer=_.hx;Polymer.flush=_.m8;Polymer.Templatize={templatize:X2,modelForElement:aat};Polymer.TemplateInstanceBase=Cl;Polymer.DomIf=_.Es;var v7C=IRk(iW),eY=function(){var D=v7C.call(this)||this;D.__instances=[];D.__renderDebouncer=null;D.__itemsIdxToInstIdx={};D.__chunkCount=null;D.__renderStartTime=null;D.__itemsArrayChanged=!1;D.__shouldMeasureChunk=!1;D.__shouldContinueChunking=!1;D.__chunkingId=0;D.__sortFn=null;D.__filterFn=null;D.__observePaths=null;D.__ctor=null;D.__isDetached=!0;D.template=null;return D};
_.h(eY,v7C);_.S=eY.prototype;_.S.disconnectedCallback=function(){v7C.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var D=0;D<this.__instances.length;D++)this.__detachInstance(D);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.S.connectedCallback=function(){v7C.prototype.connectedCallback.call(this);MXr()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var D=(0,_.yo)((0,_.yo)(this).parentNode),C=0;C<this.__instances.length;C++)this.__attachInstance(C,D);this.__chunkingId&&this.__render()}};
_.S.__ensureTemplatized=function(){var D=this;if(!this.__ctor){var C=this.template=this._templateInfo?this:this.querySelector("template");if(!C){var X=new MutationObserver(function(){if(D.querySelector("template"))X.disconnect(),D.__render();else throw Error("Rd");});
X.observe(this,{childList:!0});return!1}var c={};c[this.as]=!0;c[this.indexAs]=!0;c[this.itemsIndexAs]=!0;this.__ctor=X2(C,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:c,forwardHostProp:function(W,p){for(var g=this.__instances,a=0,O=void 0;a<g.length&&(O=g[a]);a++)O.forwardHostProp(W,p)},
notifyInstanceProp:function(W,p,g){s9m(this.as,p)&&(W=W[this.itemsIndexAs],p==this.as&&(this.items[W]=g),p=ef(this.as,"items."+W,p),this.notifyPath(p,g))}})}return!0};
_.S.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.S.__functionFromPropertyValue=function(D){if(typeof D==="string"){var C=this.__getMethodHost();return function(){return C[D].apply(C,arguments)}}return D};
_.S.__sortChanged=function(D){this.__sortFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.S.__filterChanged=function(D){this.__filterFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.S.__computeFrameTime=function(D){return Math.ceil(1E3/D)};
_.S.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.S.__handleObservedPaths=function(D){if(this.__sortFn||this.__filterFn)if(!D)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var C=this.__observePaths,X=0;X<C.length;X++)D.indexOf(C[X])===0&&this.__debounceRender(this.__render,this.delay)};
_.S.__itemsChanged=function(D){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(D.path,D.value)||(D.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.S.__debounceRender=function(D,C){C=C===void 0?0:C;this.__renderDebouncer=_.Kr(this.__renderDebouncer,C>0?_.Oy.after(C):d0,D.bind(this));_.hx(this.__renderDebouncer)};
_.S.render=function(){this.__debounceRender(this.__render);_.m8()};
_.S.__render=function(){var D=this;if(this.__ensureTemplatized()){var C=this.items||[],X=this.__sortAndFilterItems(C),c=this.__calculateLimit(X.length);this.__updateInstances(C,c,X);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){D.__chunkingId=null;D.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);aR&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.S.__sortAndFilterItems=function(D){for(var C=this,X=Array(D.length),c=0;c<D.length;c++)X[c]=c;this.__filterFn&&(X=X.filter(function(W,p,g){return C.__filterFn(D[W],p,g)}));
this.__sortFn&&X.sort(function(W,p){return C.__sortFn(D[W],D[p])});
return X};
_.S.__calculateLimit=function(D){var C=D,X=this.__instances.length;if(this.initialCount){var c;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(C=Math.min(D,this.initialCount),this.__chunkCount=(c=Math.max(C-X,0))||1):(c=Math.min(Math.max(D-X,0),this.__chunkCount),C=Math.min(X+c,D));this.__shouldMeasureChunk=c===this.__chunkCount;this.__shouldContinueChunking=C<D;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return C};
_.S.__continueChunking=function(){if(this.__shouldMeasureChunk){var D=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/D*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.S.__updateInstances=function(D,C,X){var c=this.__itemsIdxToInstIdx={},W;for(W=0;W<C;W++){var p=this.__instances[W],g=X[W],a=D[g];c[g]=W;p?(p._setPendingProperty(this.as,a),p._setPendingProperty(this.indexAs,W),p._setPendingProperty(this.itemsIndexAs,g),p._flushProperties()):this.__insertInstance(a,W,g)}for(D=this.__instances.length-1;D>=W;D--)this.__detachAndRemoveInstance(D)};
_.S.__detachInstance=function(D){D=this.__instances[D];for(var C=(0,_.yo)(D.root),X=0;X<D.children.length;X++)C.appendChild(D.children[X]);return D};
_.S.__attachInstance=function(D,C){C.insertBefore(this.__instances[D].root,this)};
_.S.__detachAndRemoveInstance=function(D){this.__detachInstance(D);this.__instances.splice(D,1)};
_.S.__stampInstance=function(D,C,X){var c={};c[this.as]=D;c[this.indexAs]=C;c[this.itemsIndexAs]=X;return new this.__ctor(c)};
_.S.__insertInstance=function(D,C,X){D=this.__stampInstance(D,C,X);X=(X=this.__instances[C+1])?X.children[0]:this;(0,_.yo)((0,_.yo)(this).parentNode).insertBefore(D.root,X);return this.__instances[C]=D};
_.S._showHideChildren=function(D){for(var C=0;C<this.__instances.length;C++)this.__instances[C]._showHideChildren(D)};
_.S.__handleItemPath=function(D,C){var X=D.slice(6),c=X.indexOf(".");D=c<0?X:X.substring(0,c);if(D==parseInt(D,10)){X=c<0?"":X.substring(c+1);this.__handleObservedPaths(X);if(D=this.__instances[this.__itemsIdxToInstIdx[D]])D._setPendingPropertyOrPath(this.as+(X?"."+X:""),C,!1,!0),D._flushProperties();return!0}};
_.S.itemForElement=function(D){return(D=this.modelForElement(D))&&D[this.as]};
_.S.indexForElement=function(D){return(D=this.modelForElement(D))&&D[this.indexAs]};
_.S.modelForElement=function(D){return aat(this.template,D)};
_.$a.Object.defineProperties(eY,{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:eY.prototype.__sortChanged},filter:{type:Function,observer:eY.prototype.__filterChanged},observe:{type:String,observer:eY.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!aR,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.*)"]}}});
eY.prototype._setRenderedItemCount=function(){};
customElements.define(eY.is,eY);Polymer.DomRepeat=eY;var ibC=function(D,C){var X=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=D;this.callback=C;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){X._schedule()};
this.connect();this._schedule()},k2d=function(D){var C=(0,_.yo)(D);
if(Sk(D))return C.assignedNodes({flatten:!0});D=[];for(var X=0;X<C.childNodes.length;X++){var c=C.childNodes[X];Sk(c)?D.push.apply(D,_.VB((0,_.yo)(c).assignedNodes({flatten:!0}))):D.push(c)}return D};
_.S=ibC.prototype;_.S.connect=function(){var D=this;Sk(this._target)?this._listenSlots([this._target]):(0,_.yo)(this._target).children&&(this._listenSlots((0,_.yo)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(C){D._processMutations(C)}):(this._nativeChildrenObserver=new MutationObserver(function(C){D._processMutations(C)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.S.disconnect=function(){Sk(this._target)?this._unlistenSlots([this._target]):(0,_.yo)(this._target).children&&(this._unlistenSlots((0,_.yo)(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};
_.S._schedule=function(){var D=this;this._scheduled||(this._scheduled=!0,d0.run(function(){return D.flush()}))};
_.S._processMutations=function(D){this._processSlotMutations(D);this.flush()};
_.S._processSlotMutations=function(D){if(D)for(var C=0;C<D.length;C++){var X=D[C];X.addedNodes&&this._listenSlots(X.addedNodes);X.removedNodes&&this._unlistenSlots(X.removedNodes)}};
_.S.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 D={target:this._target,addedNodes:[],removedNodes:[]},C=k2d(this._target),X=gwZ(C,this._effectiveNodes),c=0,W=void 0;c<X.length&&(W=X[c]);c++)for(var p=0,g=void 0;p<W.removed.length&&(g=W.removed[p]);p++)D.removedNodes.push(g);
c=0;for(W=void 0;c<X.length&&(W=X[c]);c++)for(p=W.index;p<W.index+W.addedCount;p++)D.addedNodes.push(C[p]);this._effectiveNodes=C;C=!1;if(D.addedNodes.length||D.removedNodes.length)C=!0,this.callback.call(this._target,D);return C};
_.S._listenSlots=function(D){for(var C=0;C<D.length;C++){var X=D[C];Sk(X)&&X.addEventListener("slotchange",this._boundSchedule)}};
_.S._unlistenSlots=function(D){for(var C=0;C<D.length;C++){var X=D[C];Sk(X)&&X.removeEventListener("slotchange",this._boundSchedule)}};var Ey=Element.prototype,uVx=Ey.matches||Ey.matchesSelector||Ey.mozMatchesSelector||Ey.msMatchesSelector||Ey.oMatchesSelector||Ey.webkitMatchesSelector,Q3k=function(D,C){return uVx.call(D,C)},Ur=function(D){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(D);
this.node=D},Kpc;
_.S=Ur.prototype;_.S.observeNodes=function(D){return new ibC(this.node,D)};
_.S.unobserveNodes=function(D){D.disconnect()};
_.S.notifyObserver=function(){};
_.S.deepContains=function(D){if((0,_.yo)(this.node).contains(D))return!0;var C=D;for(D=D.ownerDocument;C&&C!==D&&C!==this.node;)C=(0,_.yo)(C).parentNode||(0,_.yo)(C).host;return C===this.node};
_.S.getOwnerRoot=function(){return(0,_.yo)(this.node).getRootNode()};
_.S.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.yo)(this.node).assignedNodes({flatten:!0}):[]};
_.S.getDestinationInsertionPoints=function(){for(var D=[],C=(0,_.yo)(this.node).assignedSlot;C;)D.push(C),C=(0,_.yo)(C).assignedSlot;return D};
_.S.importNode=function(D,C){return(0,_.yo)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(D,C)};
_.S.getEffectiveChildNodes=function(){return k2d(this.node)};
_.S.queryDistributedElements=function(D){for(var C=this.getEffectiveChildNodes(),X=[],c=0,W=C.length,p=void 0;c<W&&(p=C[c]);c++)p.nodeType===Node.ELEMENT_NODE&&Q3k(p,D)&&X.push(p);return X};
_.$a.Object.defineProperties(Ur.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var D=this.node;return D._activeElement!==void 0?D._activeElement:D.activeElement}}});
var tx=function(D){this.event=D};
_.$a.Object.defineProperties(tx.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 B25=Ur;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var bbM=window.ShadyDOM.Wrapper,rve=function(){return bbM.apply(this,arguments)||this};
_.h(rve,bbM);Object.getOwnPropertyNames(Ur.prototype).forEach(function(D){D!="activeElement"&&D!="constructor"&&(rve.prototype[D]=Ur.prototype[D])});
ORZ(rve.prototype,["classList"]);B25=rve;Object.defineProperties(tx.prototype,{localTarget:{get:function(){var D=this.event.currentTarget;D=D&&_.kr(D).getOwnerRoot();for(var C=this.path,X=0;X<C.length;X++){var c=C[X];if(_.kr(c).getOwnerRoot()===D)return c}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Iaj(),ORZ(Ur.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Aur();Kpc=B25;_.kr=function(D){D=D||document;if(D instanceof B25)return D;if(D instanceof tx)return D;var C=D.__domApi;C||(D instanceof Event?C=new tx(D):C=new B25(D),D.__domApi=C);return C};var hWN=/:host\(:dir\((ltr|rtl)\)\)/g,x_q=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Lp5=/:dir\((?:ltr|rtl)\)/,s35=!(!window.ShadyDOM||!window.ShadyDOM.inUse),aS=[],Ni=null,gr="",m_c=Ax(function(D){s35||Ni||(gr=document.documentElement.getAttribute("dir"),Ni=new MutationObserver(PSj),Ni.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var C=Ys4(D);D=function(){var X=C.call(this)||this;X.__autoDirOptOut=!1;return X};
_.h(D,C);D._processStyleText=function(X,c){X=C._processStyleText.call(this,X,c);!s35&&Lp5.test(X)&&(X=this._replaceDirInCssText(X),this.__activateDir=!0);return X};
D._replaceDirInCssText=function(X){X=X.replace(hWN,':host([dir="$1"])');return X=X.replace(x_q,':host([dir="$2"]) $1')};
D.prototype.ready=function(){C.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
D.prototype.connectedCallback=function(){C.prototype.connectedCallback&&C.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Ni&&Ni.takeRecords().length&&PSj(),aS.push(this),this.__autoDirOptOut||this.setAttribute("dir",gr))};
D.prototype.disconnectedCallback=function(){C.prototype.disconnectedCallback&&C.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var X=aS.indexOf(this);X>-1&&aS.splice(X,1)}};
D.__activateDir=!1;return D});var eWd=function(D){for(;D;){var C=Object.getOwnPropertyDescriptor(D,"observedAttributes");if(C)return C.get;D=Object.getPrototypeOf(D.prototype).constructor}return function(){return[]}};
Ax(function(D){var C=vG(D),X=eWd(C);D=function(){return C.call(this)||this};
_.h(D,C);D.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:C.prototype._initializeProperties.call(this)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||C.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(c){return C.prototype._canApplyPropertyDefault.call(this,c)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(c))};
D.prototype.attributeChangedCallback=function(c,W,p,g){c=="disable-upgrade"?this.__isUpgradeDisabled&&p==null&&(C.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.yo)(this).isConnected&&C.prototype.connectedCallback.call(this)):C.prototype.attributeChangedCallback.call(this,c,W,p,g)};
D.prototype.connectedCallback=function(){this.__isUpgradeDisabled||C.prototype.connectedCallback.call(this)};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||C.prototype.disconnectedCallback.call(this)};
_.$a.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X.call(this).concat("disable-upgrade")}}});
return D});var IS=!1,v5R=[],Or=[];var QkJ=window.ShadyDOM,B1j=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",ruR):document.readyState==="interactive"||document.readyState==="complete"?ruR():window.addEventListener("DOMContentLoaded",ruR);var xym=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=""},KXo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,hYo=/@import[^;]*;/gim,tzh=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,N1J=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,YGj=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,yuW=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,eYR=/^@[^\s]*keyframes/,
my3=/\s+/g;var n5F={};var ZRt=Promise.resolve();var E7q=new Set;var t6q=/;\s*/m,N2J=/^\s*(initial)|(inherit)\s*$/,Y4q=/\s*!important/,yvJ=function(){this._map={}};
yvJ.prototype.set=function(D,C){D=D.trim();this._map[D]={properties:C,dependants:{}}};
yvJ.prototype.get=function(D){D=D.trim();return this._map[D]||null};
var n7J=null,nr=function(){this._measureElement=this._currentElement=null;this._map=new yvJ};
_.S=nr.prototype;_.S.detectMixin=function(D){D=lJg.test(D)||ROk.test(D);lJg.lastIndex=0;ROk.lastIndex=0;return D};
_.S.transformTemplate=function(D,C){if(D._gatheredStyle===void 0){var X=[];for(var c=D.content.querySelectorAll("style"),W=0;W<c.length;W++){var p=c[W];if(p.hasAttribute("shady-unscoped")){if(!uxm){var g=p.textContent;if(!E7q.has(g)){E7q.add(g);var a=document.createElement("style");a.setAttribute("shady-unscoped","");a.textContent=g;document.head.appendChild(a)}p.parentNode.removeChild(p)}}else X.push(p.textContent),p.parentNode.removeChild(p)}(X=X.join("").trim())?(c=document.createElement("style"),
c.textContent=X,D.content.insertBefore(c,D.content.firstChild),X=c):X=null;D._gatheredStyle=X}return(D=D._gatheredStyle)?this.JSC$11433_transformStyle(D,C):null};
_.S.JSC$11433_transformStyle=function(D,C){C=C===void 0?"":C;var X=HR5(D);this.transformRules(X,C);D.textContent=T1o(X);return X};
_.S.transformCustomStyle=function(D){var C=this,X=HR5(D);zYW(X,function(c){c.selector===":root"&&(c.selector="html");C.transformRule(c)});
D.textContent=T1o(X);return X};
_.S.transformRules=function(D,C){var X=this;this._currentElement=C;zYW(D,function(c){X.transformRule(c)});
this._currentElement=null};
_.S.transformRule=function(D){D.cssText=wcq(this,D.parsedCssText,D);D.selector===":root"&&(D.selector=":host > *")};
var wcq=function(D,C,X){C=C.replace(ROk,function(c,W,p,g){return D._produceCssProperties(c,W,p,g,X)});
return D._consumeCssProperties(C,X)};
_.S=nr.prototype;_.S._getInitialValueForProperty=function(D){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(D)};
_.S._fallbacksFromPreviousRules=function(D){for(var C=this,X=D;X.parent;)X=X.parent;var c={},W=!1;zYW(X,function(p){(W=W||p===D)||p.selector===D.selector&&Object.assign(c,C._cssTextToMap(p.parsedCssText))});
return c};
_.S._consumeCssProperties=function(D,C){for(var X;X=lJg.exec(D);){var c=X[0],W=X[1];X=X.index;var p=X+c.indexOf("@apply"),g=X+c.length;c=D.slice(0,p);D=D.slice(g);p=C?this._fallbacksFromPreviousRules(C):{};Object.assign(p,this._cssTextToMap(c));W=this._atApplyToCssProperties(W,p);D=c+W+D;lJg.lastIndex=X+W.length}return D};
_.S._atApplyToCssProperties=function(D,C){D=D.replace(t6q,"");var X=[],c=this._map.get(D);c||(this._map.set(D,{}),c=this._map.get(D));if(c){this._currentElement&&(c.dependants[this._currentElement]=!0);var W,p=c.properties;for(W in p){var g=C&&C[W];c=[W,": var(",D,"_-_",W];g&&c.push(",",g.replace(Y4q,""));c.push(")");Y4q.test(p[W])&&c.push(" !important");X.push(c.join(""))}}return X.join("; ")};
_.S._replaceInitialOrInherit=function(D,C){var X=N2J.exec(C);X&&(C=X[1]?this._getInitialValueForProperty(D):"apply-shim-inherit");return C};
_.S._cssTextToMap=function(D,C){C=C===void 0?!1:C;D=D.split(";");for(var X,c,W={},p=0;p<D.length;p++)if(X=D[p])c=X.split(":"),c.length>1&&(X=c[0].trim(),c=c.slice(1).join(":"),C&&(c=this._replaceInitialOrInherit(X,c)),W[X]=c);return W};
_.S._invalidateMixinEntry=function(D){if(n7J)for(var C in D.dependants)C!==this._currentElement&&n7J(C)};
_.S._produceCssProperties=function(D,C,X,c,W){var p=this;X&&jkd(X,function(K,L){L&&p._map.get(L)&&(c="@apply "+L+";")});
if(!c)return D;var g=this._consumeCssProperties(""+c,W);W=D.slice(0,D.indexOf("--"));var a=g=this._cssTextToMap(g,!0),O=this._map.get(C),P=O&&O.properties;P?a=Object.assign(Object.create(P),g):this._map.set(C,a);var k=[],u,Q=!1;for(u in a){var B=g[u];B===void 0&&(B="initial");!P||u in P||(Q=!0);k.push(C+"_-_"+u+": "+B)}Q&&this._invalidateMixinEntry(O);O&&(O.properties=a);X&&(W=D+";"+W);return W+k.join("; ")+";"};
nr.prototype.detectMixin=nr.prototype.detectMixin;nr.prototype.transformStyle=nr.prototype.JSC$11433_transformStyle;nr.prototype.transformCustomStyle=nr.prototype.transformCustomStyle;nr.prototype.transformRules=nr.prototype.transformRules;nr.prototype.transformRule=nr.prototype.transformRule;nr.prototype.transformTemplate=nr.prototype.transformTemplate;nr.prototype._separator="_-_";Object.defineProperty(nr.prototype,"invalidCallback",{get:function(){return n7J},
set:function(D){n7J=D}});var wW=new nr,Fpe=function(){this.customStyleInterface=null;wW.invalidCallback=wTt},Fk=function(D){!D.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(D.customStyleInterface=window.ShadyCSS.CustomStyleInterface,D.customStyleInterface.transformCallback=function(C){wW.transformCustomStyle(C)},D.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){D.customStyleInterface.enqueued&&D.flushCustomStyles()})})};
_.S=Fpe.prototype;_.S.prepareTemplate=function(D,C){Fk(this);MzW(D)===""&&(n5F[C]=D,C=wW.transformTemplate(D,C),D._styleAst=C)};
_.S.flushCustomStyles=function(){Fk(this);if(this.customStyleInterface){var D=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var C=0;C<D.length;C++){var X=this.customStyleInterface.getStyleForCustomStyle(D[C]);X&&wW.transformCustomStyle(X)}this.customStyleInterface.enqueued=!1}}};
_.S.styleSubtree=function(D,C){Fk(this);C&&Onh(D,C);if(D.shadowRoot)for(this.styleElement(D),D=D.shadowRoot.children||D.shadowRoot.childNodes,C=0;C<D.length;C++)this.styleSubtree(D[C]);else for(D=D.children||D.childNodes,C=0;C<D.length;C++)this.styleSubtree(D[C])};
_.S.styleElement=function(D){Fk(this);var C=D.localName,X;C?C.indexOf("-")>-1?X=C:X=D.getAttribute&&D.getAttribute("is")||"":X=D.is;C=n5F[X];if(!(C&&MzW(C)!==""||!C||FXj(C))){if(FXj(C)||C._applyShimValidatingVersion!==C._applyShimNextVersion)this.prepareTemplate(C,X),Gjn(C);if(D=D.shadowRoot)if(D=D.querySelector("style"))D.__cssRules=C._styleAst,D.textContent=T1o(C._styleAst)}};
_.S.styleDocument=function(D){Fk(this);this.styleSubtree(document.body,D)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var ZE=new Fpe,Zbe=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(D,C){ZE.flushCustomStyles();ZE.prepareTemplate(D,C)},
prepareTemplateStyles:function(D,C,X){window.ShadyCSS.prepareTemplate(D,C,X)},
prepareTemplateDom:function(){},
styleSubtree:function(D,C){ZE.flushCustomStyles();ZE.styleSubtree(D,C)},
styleElement:function(D){ZE.flushCustomStyles();ZE.styleElement(D)},
styleDocument:function(D){ZE.flushCustomStyles();ZE.styleDocument(D)},
getComputedStyleValue:function(D,C){return ATo(D,C)},
flushCustomStyles:function(){ZE.flushCustomStyles()},
nativeCss:Vzr,nativeShadow:uxm,cssBuild:PH,disableRuntime:Xc4};Zbe&&(window.ShadyCSS.CustomStyleInterface=Zbe)}window.ShadyCSS.ApplyShim=wW;var G2k;G2k=window.ShadyCSS;_.GI=Ax(function(D){D=aRJ(vG(D));var C=JAd?D:m_c(D),X=eWd(C),c={x:"pan-x",y:"pan-y",none:"none",all:"auto"};D=function(){return C.call(this)||this};
_.h(D,C);D.prototype.created=function(){};
D.prototype.__attributeReaction=function(W,p,g){(this.__dataAttributes&&this.__dataAttributes[W]||W==="disable-upgrade")&&this.attributeChangedCallback(W,p,g,null)};
D.prototype.setAttribute=function(W,p){if(kAx&&!this._legacyForceObservedAttributes){var g=this.getAttribute(W);C.prototype.setAttribute.call(this,W,p);this.__attributeReaction(W,g,String(p))}else C.prototype.setAttribute.call(this,W,p)};
D.prototype.removeAttribute=function(W){if(kAx&&!this._legacyForceObservedAttributes){var p=this.getAttribute(W);C.prototype.removeAttribute.call(this,W);this.__attributeReaction(W,p,null)}else C.prototype.removeAttribute.call(this,W)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||C.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(W){return C.prototype._canApplyPropertyDefault.call(this,W)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(W))};
D.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(C.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
D.prototype.attached=function(){};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(C.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
D.prototype.detached=function(){};
D.prototype.attributeChangedCallback=function(W,p,g,a){p!==g&&(W=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.yo)(this).isConnected&&this.connectedCallback()):(C.prototype.attributeChangedCallback.call(this,W,p,g,a),this.attributeChanged(W,p,g)))};
D.prototype.attributeChanged=function(){};
D.prototype._initializeProperties=function(){if(lV&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var W=Object.getPrototypeOf(this);W.hasOwnProperty("__hasRegisterFinished")||(this._registered(),W.__hasRegisterFinished=!0);C.prototype._initializeProperties.call(this);this.root=this;this.created();kAx&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
D.prototype._takeAttributes=function(){for(var W=this.attributes,p=0,g=W.length;p<g;p++){var a=W[p];this.__attributeReaction(a.name,null,a.value)}};
D.prototype._registered=function(){};
D.prototype.ready=function(){this._ensureAttributes();C.prototype.ready.call(this)};
D.prototype._ensureAttributes=function(){};
D.prototype._applyListeners=function(){};
D.prototype.serialize=function(W){return this._serializeValue(W)};
D.prototype.deserialize=function(W,p){return this._deserializeValue(W,p)};
D.prototype.reflectPropertyToAttribute=function(W,p,g){this._propertyToAttribute(W,p,g)};
D.prototype.serializeValueToAttribute=function(W,p,g){this._valueToNodeAttribute(g||this,W,p)};
D.prototype.extend=function(W,p){if(!W||!p)return W||p;for(var g=Object.getOwnPropertyNames(p),a=0,O=void 0;a<g.length&&(O=g[a]);a++){var P=Object.getOwnPropertyDescriptor(p,O);P&&Object.defineProperty(W,O,P)}return W};
D.prototype.mixin=function(W,p){for(var g in p)W[g]=p[g];return W};
D.prototype.chainObject=function(W,p){W&&p&&W!==p&&(W.__proto__=p);return W};
D.prototype.instanceTemplate=function(W){W=this.constructor._contentForTemplate(W);return document.importNode(W,!0)};
D.prototype.fire=function(W,p,g){g=g||{};p=p===null||p===void 0?{}:p;W=new Event(W,{bubbles:g.bubbles===void 0?!0:g.bubbles,cancelable:!!g.cancelable,composed:g.composed===void 0?!0:g.composed});W.detail=p;(0,_.yo)(g.node||this).dispatchEvent(W);return W};
D.prototype.listen=function(W,p,g){W=W||this;var a=this.__boundListeners||(this.__boundListeners=new WeakMap),O=a.get(W);O||(O={},a.set(W,O));a=p+g;O[a]||(O[a]=this._addMethodEventListenerToNode(W,p,g,this))};
D.prototype.unlisten=function(W,p,g){W=W||this;var a=this.__boundListeners&&this.__boundListeners.get(W);g=p+g;var O=a&&a[g];O&&(this._removeEventListenerFromNode(W,p,O),a[g]=null)};
D.prototype.setScrollDirection=function(W,p){_.f2(p||this,c[W]||"auto")};
D.prototype.$$=function(W){return this.root.querySelector(W)};
D.prototype.distributeContent=function(){var W=_.kr(this);window.ShadyDOM&&W.shadowRoot&&ShadyDOM.flush()};
D.prototype.getEffectiveChildNodes=function(){return _.kr(this).getEffectiveChildNodes()};
D.prototype.queryDistributedElements=function(W){return _.kr(this).queryDistributedElements(W)};
D.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
D.prototype.getEffectiveTextContent=function(){for(var W=this.getEffectiveChildNodes(),p=[],g=0,a;a=W[g];g++)a.nodeType!==Node.COMMENT_NODE&&p.push(a.textContent);return p.join("")};
D.prototype.queryEffectiveChildren=function(W){return(W=this.queryDistributedElements(W))&&W[0]};
D.prototype.queryAllEffectiveChildren=function(W){return this.queryDistributedElements(W)};
D.prototype.getContentChildNodes=function(W){return(W=this.root.querySelector(W||"slot"))?_.kr(W).getDistributedNodes():[]};
D.prototype.getContentChildren=function(W){return this.getContentChildNodes(W).filter(function(p){return p.nodeType===Node.ELEMENT_NODE})};
D.prototype.isLightDescendant=function(W){return this!==W&&(0,_.yo)(this).contains(W)&&(0,_.yo)(this).getRootNode()===(0,_.yo)(W).getRootNode()};
D.prototype.isLocalDescendant=function(W){return this.root===(0,_.yo)(W).getRootNode()};
D.prototype.scopeSubtree=function(W,p){return bRm(W,p===void 0?!1:p)};
D.prototype.getComputedStyleValue=function(W){return G2k.getComputedStyleValue(this,W)};
D.prototype.debounce=function(W,p,g){this._debouncers=this._debouncers||{};return this._debouncers[W]=_.Kr(this._debouncers[W],g>0?_.Oy.after(g):d0,p.bind(this))};
D.prototype.isDebouncerActive=function(W){this._debouncers=this._debouncers||{};W=this._debouncers[W];return!(!W||!W.isActive())};
D.prototype.flushDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.flush()};
D.prototype.cancelDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.cancel()};
D.prototype.async=function(W,p){return p>0?_.Oy.run(W.bind(this),p):~d0.run(W.bind(this))};
D.prototype.cancelAsync=function(W){W<0?d0.cancel(~W):_.Oy.cancel(W)};
D.prototype.create=function(W,p){W=document.createElement(W);if(p)if(W.setProperties)W.setProperties(p);else for(var g in p)W[g]=p[g];return W};
D.prototype.elementMatches=function(W,p){return Q3k(p||this,W)};
D.prototype.toggleAttribute=function(W,p){var g=this;arguments.length===3&&(g=arguments[2]);arguments.length==1&&(p=!g.hasAttribute(W));if(p)return(0,_.yo)(g).setAttribute(W,""),!0;(0,_.yo)(g).removeAttribute(W);return!1};
D.prototype.toggleClass=function(W,p,g){g=g||this;arguments.length==1&&(p=!g.classList.contains(W));p?g.classList.add(W):g.classList.remove(W)};
D.prototype.transform=function(W,p){p=p||this;p.style.webkitTransform=W;p.style.transform=W};
D.prototype.translate3d=function(W,p,g,a){this.transform("translate3d("+W+","+p+","+g+")",a||this)};
D.prototype.arrayDelete=function(W,p){if(Array.isArray(W)){if(p=W.indexOf(p),p>=0)return W.splice(p,1)}else if(p=tI(this,W).indexOf(p),p>=0)return this.splice(W,p,1);return null};
D.prototype._logger=function(W,p){Array.isArray(p)&&p.length===1&&Array.isArray(p[0])&&(p=p[0]);switch(W){case "log":case "warn":case "error":console[W].apply(console,_.VB(p))}};
D.prototype._log=function(){this._logger("log",_.MJ.apply(0,arguments))};
D.prototype._warn=function(){this._logger("warn",_.MJ.apply(0,arguments))};
D.prototype._error=function(){this._logger("error",_.MJ.apply(0,arguments))};
D.prototype._logf=function(W){return["[%s::%s]",this.is,W].concat(_.VB(_.MJ.apply(1,arguments)))};
_.$a.Object.defineProperties(D.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var W=(0,_.yo)(this).getRootNode();return W instanceof DocumentFragment?W.host:W}}});
_.$a.Object.defineProperties(D,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return kAx&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],BEJ(this.prototype)),this.__observedAttributes):X.call(this).concat("disable-upgrade")}}});
D.prototype.is="";return D});Polymer.FlattenedNodesObserver=ibC;Polymer.DomApi=Kpc;Polymer.EventApi=tx;Polymer.dom=_.kr;Polymer.dom.matchesSelector=Q3k;Polymer.dom.flush=_.m8;Polymer.dom.addDebouncer=_.hx;Polymer.DirMixin=m_c;Polymer.RenderStatus={beforeNextRender:_.uNJ,afterNextRender:_.A0,flush:function(){for(;v5R.length||Or.length;)$yr(v5R),$yr(Or);IS=!1}};Polymer.LegacyElementMixin=_.GI;var V6x;V6x=Lr._mutablePropertyChange;var T2x={properties:{mutableData:Boolean},_shouldPropertyChange:function(D,C,X){return V6x(this,D,C,X,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(D,C,X){return V6x(this,D,C,X,!0)}};
Polymer.OptionalMutableDataBehavior=T2x;var qGZ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},DsF={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},lar=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},DsF),HbJ=(0,_.GI)(HTMLElement),jrj=function(D,C){D||console.warn("Polymer.Class requires `info` argument");C=C?C(HbJ):HbJ;C=Cp3(D,C,D.behaviors);C.is=C.prototype.is=
D.is;return C};Polymer.Class=jrj;Polymer.mixinBehaviors=function(D,C){return Cp3({},(0,_.GI)(C),D)};
Polymer.GenerateClassFromInfo=Cp3;_.mZ=function(D){var C=typeof D==="function"?D:_.mZ.Class(D);D._legacyForceObservedAttributes&&(C.prototype._legacyForceObservedAttributes=D._legacyForceObservedAttributes);customElements.define(C.is,C);return C};
_.mZ.Class=jrj;Polymer._polymerFn=_.mZ;var JvM=window.onLegacyPolymerFunctionDefinedCallback;JvM&&JvM();var qKm={templatize:function(D,C){this._templatizerTemplate=D;this.ctor=X2(D,this,{mutableData:!!C,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(D){return new this.ctor(D)},
modelForElement:function(D){return aat(this._templatizerTemplate,D)}};Polymer.Templatizer=qKm;_.Vb=(0,_.GI)(HTMLElement).prototype;Polymer.Base=_.Vb;var c6o=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.vH=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.h(_.vH,PolymerFakeBaseClass);var iQ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.h(iQ,PolymerFakeBaseClass);var oJZ=Symbol("Sd"),OLh=[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 zWk=zWk||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},j3x;(function(D){function C(T,H,q){var R=J.get(T);if(!R){if(!q)return;R=new Y;J.set(T,R)}T=R.get(H);if(!T){if(!q)return;T=new Y;R.set(H,T)}return T}
function X(T,H,q){if(c(T,H,q))return!0;H=Q(H);return H!==null?X(T,H,q):!1}
function c(T,H,q){H=C(H,q,!1);return H===void 0?!1:!!H.has(T)}
function W(T,H,q){if(c(T,H,q))return p(T,H,q);H=Q(H);if(H!==null)return W(T,H,q)}
function p(T,H,q){H=C(H,q,!1);if(H!==void 0)return H.get(T)}
function g(T,H){var q=a(T,H);T=Q(T);if(T===null)return q;var R=g(T,H);if(R.length<=0)return q;if(q.length<=0)return R;H=new y;T=[];q=_.U(q);for(var ph=q.next();!ph.done;ph=q.next())ph=ph.value,H.has(ph)||(H.add(ph),T.push(ph));q=_.U(R);for(R=q.next();!R.done;R=q.next())R=R.value,H.has(R)||(H.add(R),T.push(R));return T}
function a(T,H){T=C(T,H,!1);var q=[];T&&T.forEach(function(R,ph){return q.push(ph)});
return q}
function O(T){return T===void 0}
function P(T){return typeof T==="object"?T!==null:typeof T==="function"}
function k(T){return typeof T==="function"}
function u(T){return typeof T==="symbol"?T:String(T)}
function Q(T){var H=Object.getPrototypeOf(T);if(typeof T!=="function"||T===t||H!==t)return H;var q=Object.getPrototypeOf(T.prototype);if(q==null||q===Object.prototype)return H;q=q.constructor;return typeof q!=="function"||q===T?H:q}
function B(){function T(){this._keys=[];this._values=[];this._cache=H}
var H={};T.prototype={get size(){return this._keys.length},has:function(q){return q===this._cache?!0:this._find(q)>=0?(this._cache=q,!0):!1},
get:function(q){var R=this._find(q);if(R>=0)return this._cache=q,this._values[R]},
set:function(q,R){this.delete(q);this._keys.push(q);this._values.push(R);this._cache=q;return this},
delete:function(q){q=this._find(q);return q>=0?(this._keys.splice(q,1),this._values.splice(q,1),this._cache=H,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=H},
forEach:function(q){for(var R=this.size,ph=0;ph<R;++ph){var Om=this._keys[ph],xj=this._values[ph];this._cache=Om;q.call(this,xj,Om,this)}},
_find:function(q){for(var R=this._keys,ph=R.length,Om=0;Om<ph;++Om)if(R[Om]===q)return Om;return-1}};
return T}
function K(){function T(){this._map=new Y}
T.prototype={get size(){return this._map.length},has:function(H){return this._map.has(H)},
add:function(H){this._map.set(H,H);return this},
delete:function(H){return this._map.delete(H)},
clear:function(){this._map.clear()},
forEach:function(H,q){this._map.forEach(H,q)}};
return T}
function L(){function T(){this._key=q()}
function H(r5,Fd){for(var GJ=0;GJ<Fd;++GJ)r5[GJ]=Math.random()*255|0}
function q(){do{if(ph)var r5=ph.randomBytes(16);else typeof Uint8Array==="function"?(r5=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(r5):H(r5,16)):(r5=Array(16),H(r5,16));r5[6]=r5[6]&79|64;r5[8]=r5[8]&191|128;for(var Fd="",GJ=0;GJ<16;++GJ){var jZ=r5[GJ];if(GJ===4||GJ===6||GJ===8)Fd+="-";jZ<16&&(Fd+="0");Fd+=jZ.toString(16).toLowerCase()}r5="@@WeakMap@@"+Fd}while(Om.call(xj,r5));xj[r5]=!0;return r5}
function R(r5,Fd){if(!Om.call(r5,Bo)){if(!Fd)return;Object.defineProperty(r5,Bo,{value:Object.create(null)})}return r5[Bo]}
var ph=typeof global!=="undefined"&&typeof zWk==="object"&&typeof require==="function"&&require("crypto"),Om=Object.prototype.hasOwnProperty,xj={},Bo=q();T.prototype={has:function(r5){return(r5=R(r5,!1))?this._key in r5:!1},
get:function(r5){if(r5=R(r5,!1))return r5[this._key]},
set:function(r5,Fd){R(r5,!0)[this._key]=Fd;return this},
delete:function(r5){return(r5=R(r5,!1))&&this._key in r5?delete r5[this._key]:!1},
clear:function(){this._key=q()}};
return T}
var t=Object.getPrototypeOf(Function),Y=typeof Map==="function"?Map:B(),y=typeof Set==="function"?Set:K(),J=new (typeof WeakMap==="function"?WeakMap:L());D.decorate=function(T,H,q,R){if(O(R)){if(O(q)){if(!Array.isArray(T))throw new TypeError;if(!k(H))throw new TypeError;for(q=T.length-1;q>=0;--q)if(R=(0,T[q])(H),!O(R)){if(!k(R))throw new TypeError;H=R}return H}if(!Array.isArray(T))throw new TypeError;if(!P(H))throw new TypeError;q=u(q);for(R=T.length-1;R>=0;--R)(0,T[R])(H,q)}else{if(Array.isArray(T))if(P(H)){if(O(q))throw new TypeError;
if(!P(R))throw new TypeError;}else throw new TypeError;else throw new TypeError;q=u(q);for(var ph=T.length-1;ph>=0;--ph){var Om=(0,T[ph])(H,q,R);if(!O(Om)){if(!P(Om))throw new TypeError;R=Om}}return R}};
D.metadata=function(T,H){return function(q,R){if(O(R)){if(!k(q))throw new TypeError;C(q,void 0,!0).set(T,H)}else{if(!P(q))throw new TypeError;R=u(R);C(q,R,!0).set(T,H)}}};
D.defineMetadata=function(T,H){var q;if(P(H))O(q)||(q=u(q));else throw new TypeError;C(H,q,!0).set("parameters",T)};
D.hasMetadata=function(T,H,q){if(P(H))O(q)||(q=u(q));else throw new TypeError;return X(T,H,q)};
D.hasOwnMetadata=function(T,H,q){if(P(H))O(q)||(q=u(q));else throw new TypeError;return c(T,H,q)};
D.getMetadata=function(T,H,q){if(P(H))O(q)||(q=u(q));else throw new TypeError;return W(T,H,q)};
D.getOwnMetadata=function(T,H,q){if(P(H))O(q)||(q=u(q));else throw new TypeError;return p(T,H,q)};
D.getMetadataKeys=function(T,H){if(P(T))O(H)||(H=u(H));else throw new TypeError;return g(T,H)};
D.getOwnMetadataKeys=function(T,H){if(P(T))O(H)||(H=u(H));else throw new TypeError;return a(T,H)};
D.deleteMetadata=function(T,H,q){if(P(H))O(q)||(q=u(q));else throw new TypeError;var R=C(H,q,!1);if(!O(R)){if(!R.delete(T))return!1;if(R.size>0)return!0;T=J.get(H);T.delete(q);if(T.size>0)return!0;J.delete(H);return!0}};
(function(T){if(typeof T.Reflect!=="undefined"){if(T.Reflect!==D)for(var H in D)T.Reflect[H]=D[H]}else T.Reflect=D})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(j3x||(j3x={}));var b9j=self;var M6C=[0,_.Rk,_.CL,_.Rk];var q4x=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(q4x,_.aH);var fRg=_.Bv(q4x,[0,_.pL,_.oK,M6C,_.CL,_.Uf]);var RWx=[0,_.S$,-3,_.Uf,_.pL,_.Rk,_.Qwf,_.S$,b1N,i1c,zj,_.lS,_.Rk,function(){return d_4},
_.CL],d_4=[0,_.oK,function(){return RWx},
_.pL,14,_.S$];_.WT(_.ka,_.nF);_.S=_.ka.prototype;_.S.start=function(){this.stop();this.usingListeners_=!1;var D=lRq(this),C=Dn4(this);D&&!C&&this.JSC$11476_win_.mozRequestAnimationFrame?(this.JSC$11476_id_=_.Kb(this.JSC$11476_win_,"MozBeforePaint",this.callback_),this.JSC$11476_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11476_id_=D&&C?D.call(this.JSC$11476_win_,this.callback_):this.JSC$11476_win_.setTimeout(Vsq(this.callback_),20)};
_.S.stop=function(){if(this.isActive()){var D=lRq(this),C=Dn4(this);D&&!C&&this.JSC$11476_win_.mozRequestAnimationFrame?Bc(this.JSC$11476_id_):D&&C?C.call(this.JSC$11476_win_,this.JSC$11476_id_):this.JSC$11476_win_.clearTimeout(this.JSC$11476_id_)}this.JSC$11476_id_=null};
_.S.fire=function(){this.stop();this.JSC$11478_doAction_()};
_.S.isActive=function(){return this.JSC$11476_id_!=null};
_.S.JSC$11478_doAction_=function(){this.usingListeners_&&this.JSC$11476_id_&&Bc(this.JSC$11476_id_);this.JSC$11476_id_=null;this.JSC$11476_listener_.call(this.handler_,_.ok())};
_.S.disposeInternal=function(){this.stop();_.ka.superClass_.disposeInternal.call(this)};
var lRq=function(D){D=D.JSC$11476_win_;return D.requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||null},Dn4=function(D){D=D.JSC$11476_win_;
return D.cancelAnimationFrame||D.cancelRequestAnimationFrame||D.webkitCancelRequestAnimationFrame||D.mozCancelRequestAnimationFrame||D.oCancelRequestAnimationFrame||D.msCancelRequestAnimationFrame||null};_.Al=function(D,C,X){_.nF.call(this);this.JSC$11479_listener_=X!=null?D.bind(X):D;this.JSC$11479_interval_=C;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11479_timer_=null};
_.h(_.Al,_.nF);_.S=_.Al.prototype;_.S.fire=function(D){this.args_=arguments;this.JSC$11479_timer_||this.pauseCount_?this.shouldFire_=!0:Cud(this)};
_.S.stop=function(){this.JSC$11479_timer_&&(_.co.clearTimeout(this.JSC$11479_timer_),this.JSC$11479_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.S.pause=function(){this.pauseCount_++};
_.S.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11479_timer_||(this.shouldFire_=!1,Cud(this))};
_.S.disposeInternal=function(){_.nF.prototype.disposeInternal.call(this);this.stop()};
var Cud=function(D){D.JSC$11479_timer_=Gg(function(){D.JSC$11479_timer_=null;D.shouldFire_&&!D.pauseCount_&&(D.shouldFire_=!1,Cud(D))},D.JSC$11479_interval_);
var C=D.args_;D.args_=null;D.JSC$11479_listener_.apply(null,C)};var X05=function(D,C){this.childIterator_=D[_.co.Symbol.iterator]();this.mapFn_=C};
X05.prototype[Symbol.iterator]=function(){return this};
X05.prototype.next=function(){var D=this.childIterator_.next();return{value:D.done?void 0:this.mapFn_.call(void 0,D.value),done:D.done}};
var cl5=function(D,C){return new X05(D,C)};var o_e={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 azm=function(D){var C=Wl5(D);if(!C)throw Error("Wd`"+D);return C},Wl5=function(D){var C={};
D=String(D);var X=D.charAt(0)=="#"?D:"#"+D;if(p0N.test(X))return C.hex=XQt(X),C.type="hex",C;X=PmZ(D);return X.length?(C.hex=Z9r(X[0],X[1],X[2]),C.type="rgb",C):o_e&&(D=o_e[D.toLowerCase()])?(C.hex=D,C.type="named",C):null},SIM=/#(.)(.)(.)/,XQt=function(D){if(!p0N.test(D))throw Error("Yd`"+D);
D.length==4&&(D=D.replace(SIM,"#$1$1$2$2$3$3"));return D.toLowerCase()},IzJ=function(D){D=XQt(D);
D=parseInt(D.slice(1),16);return[D>>16,D>>8&255,D&255]},Z9r=function(D,C,X){D=Number(D);
C=Number(C);X=Number(X);if(D!=(D&255)||C!=(C&255)||X!=(X&255))throw Error("Zd`"+D+"`"+C+"`"+X);C=D<<16|C<<8|X;return D<16?"#"+(16777216|C).toString(16).slice(1):"#"+C.toString(16)},p0N=/^#(?:[0-9a-f]{3}){1,2}$/i,Une=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,PmZ=function(D){var C=D.match(Une);
if(C){D=Number(C[1]);var X=Number(C[2]);C=Number(C[3]);if(D>=0&&D<=255&&X>=0&&X<=255&&C>=0&&C<=255)return[D,X,C]}return[]};var g_e={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},PC=g_e;PC=g_e;var X1R,a5x,I5g;X1R=function(D,C){switch(C){case 1:return D%4!=0||D%100==0&&D%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
a5x=function(D,C,X,c,W){D=new Date(D,C,X);W=W||0;return D.valueOf()+(((c!==void 0?c:3)-W+7)%7-((D.getDay()+6)%7-W+7)%7)*864E5};
_.TI=function(D,C,X){typeof D==="number"?(this.date=I5g(D,C||0,X||1),OI5(this,X||1)):_.MR(D)?(this.date=I5g(D.getFullYear(),D.getMonth(),D.getDate()),OI5(this,D.getDate())):(this.date=new Date(_.ok()),D=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),OI5(this,D))};
I5g=function(D,C,X){C=new Date(D,C,X);D>=0&&D<100&&C.setFullYear(C.getFullYear()-1900);return C};
_.S=_.TI.prototype;_.S.firstDayOfWeek_=PC.FIRSTDAYOFWEEK;_.S.firstWeekCutOffDay_=PC.FIRSTWEEKCUTOFFDAY;_.S.clone=function(){var D=new _.TI(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.S.getFullYear=function(){return this.date.getFullYear()};
_.S.getYear=function(){return this.getFullYear()};
_.S.getMonth=function(){return this.date.getMonth()};
_.S.getDate=function(){return this.date.getDate()};
_.S.getTime=function(){return this.date.getTime()};
_.S.getDay=function(){return this.date.getDay()};
_.S.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.S.getUTCMonth=function(){return this.date.getUTCMonth()};
_.S.getUTCDate=function(){return this.date.getUTCDate()};
_.S.getUTCDay=function(){return this.date.getDay()};
_.S.getUTCHours=function(){return this.date.getUTCHours()};
_.S.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.S.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.S.set=function(D){this.date=new Date(D.getFullYear(),D.getMonth(),D.getDate())};
_.S.setFullYear=function(D){this.date.setFullYear(D)};
_.S.setYear=function(D){this.setFullYear(D)};
_.S.setMonth=function(D){this.date.setMonth(D)};
_.S.setDate=function(D){this.date.setDate(D)};
_.S.setTime=function(D){this.date.setTime(D)};
_.S.setUTCFullYear=function(D){this.date.setUTCFullYear(D)};
_.S.setUTCMonth=function(D){this.date.setUTCMonth(D)};
_.S.setUTCDate=function(D){this.date.setUTCDate(D)};
_.S.add=function(D){if(D.years||D.months){var C=this.getMonth()+D.months+D.years*12,X=this.getYear()+Math.floor(C/12);C%=12;C<0&&(C+=12);var c=Math.min(X1R(X,C),this.getDate());this.setDate(1);this.setFullYear(X);this.setMonth(C);this.setDate(c)}D.days&&(X=this.getYear(),C=X>=0&&X<=99?-1900:0,D=new Date((new Date(X,this.getMonth(),this.getDate(),12)).getTime()+D.days*864E5),this.setDate(1),this.setFullYear(D.getFullYear()+C),this.setMonth(D.getMonth()),this.setDate(D.getDate()),OI5(this,D.getDate()))};
_.S.JSC$11492_toIsoString=function(D){var C=this.getFullYear(),X=C<0?"-":C>=1E4?"+":"";return[X+_.$J(Math.abs(C),X?6:4),_.$J(this.getMonth()+1,2),_.$J(this.getDate(),2)].join(D?"-":"")};
_.S.equals=function(D){return!(!D||this.getYear()!=D.getYear()||this.getMonth()!=D.getMonth()||this.getDate()!=D.getDate())};
_.S.toString=function(){return this.JSC$11492_toIsoString()};
var OI5=function(D,C){D.getDate()!=C&&D.date.setUTCHours(D.date.getUTCHours()+(D.getDate()<C?1:-1))};
_.TI.prototype.valueOf=function(){return this.date.valueOf()};var Jx=function(D,C,X,c,W){this.reversed=!!C;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!X;D&&HG(this,D,c);this.depth=W!=void 0?W:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.WT(Jx,Qn);var HG=function(D,C,X,c){if(D.node=C)D.tagType=typeof X==="number"?X:D.node.nodeType!=1?0:D.reversed?-1:1;typeof c==="number"&&(D.depth=c)};
_.S=Jx.prototype;_.S.JSC$11507_copyFrom=function(D){this.node=D.node;this.tagType=D.tagType;this.depth=D.depth;this.reversed=D.reversed;this.constrained=D.constrained};
_.S.clone=function(){return new Jx(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.S.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return B6;var D=this.node;var C=this.reversed?-1:1;if(this.tagType==C){var X=this.reversed?D.lastChild:D.firstChild;X?HG(this,X):HG(this,D,C*-1)}else(X=this.reversed?D.previousSibling:D.nextSibling)?HG(this,X):HG(this,D.parentNode,C*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(D=this.node)?b1(D):B6};
_.S.equals=function(D){return D.node==this.node&&(!this.node||D.tagType==this.tagType)};
_.S.splice=function(D){var C=this.node,X=this.reversed?1:-1;this.tagType==X&&(this.tagType=X*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Jx.prototype.next.call(this);this.reversed=!this.reversed;X=_.JW(arguments[0])?arguments[0]:arguments;for(var c=X.length-1;c>=0;c--)_.Hq(X[c],C);_.ep(C)};var AlM=function(){},zI=function(D){for(var C=[],X=D.getTextRangeCount(),c=0;c<X;c++)C.push(D.getTextRange(c));
return C};
AlM.prototype.isReversed=function(){return!1};
AlM.prototype.getWindow=function(){return Tv(_.Hd(this.JSC$11509_getStartNode()))};
var Puq=function(D,C){Jx.call(this,D,C,!0)};
_.WT(Puq,Jx);var jU=function(D,C,X,c,W){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!W;if(D){this.startNode_=D;this.startOffset_=C;this.endNode_=X;this.endOffset_=c;if(D.nodeType==1&&D.tagName!="BR")if(D=D.childNodes,C=D[C])this.startNode_=C,this.startOffset_=0;else{D.length&&(this.startNode_=_.NR(D));var p=!0}X.nodeType==1&&((this.endNode_=X.childNodes[c])?this.endOffset_=0:this.endNode_=X)}Jx.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);p&&this.next()};
_.WT(jU,Puq);_.S=jU.prototype;_.S.JSC$11515_getStartNode=function(){return this.startNode_};
_.S.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)};
_.S.next=function(){return this.isLast()?B6:jU.superClass_.next.call(this)};
_.S.JSC$11507_copyFrom=function(D){this.startNode_=D.startNode_;this.endNode_=D.endNode_;this.startOffset_=D.startOffset_;this.endOffset_=D.endOffset_;this.isReversed_=D.isReversed_;jU.superClass_.JSC$11507_copyFrom.call(this,D)};
_.S.clone=function(){var D=new jU(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);D.JSC$11507_copyFrom(this);return D};var $nN=function(){};
$nN.prototype.__iterator__=function(){return new jU(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Mi=function(D){this.range_=D};
_.WT(Mi,$nN);var v_k=function(D){var C=_.Hd(D).createRange();if(D.nodeType==3)C.setStart(D,0),C.setEnd(D,D.length);else if(Gi(D)||D.nodeType==3){for(var X,c=D;(X=c.firstChild)&&(Gi(X)||X.nodeType==3);)c=X;C.setStart(c,0);for(c=D;(X=c.lastChild)&&(Gi(X)||X.nodeType==3);)c=X;C.setEnd(c,c.nodeType==1?c.childNodes.length:c.length)}else X=D.parentNode,D=Array.prototype.indexOf.call(X.childNodes,D),C.setStart(X,D),C.setEnd(X,D+1);return C},iI5=function(D,C,X,c){var W=_.Hd(D).createRange();
W.setStart(D,C);W.setEnd(X,c);return W};
_.S=Mi.prototype;_.S.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.S.getContainer=function(){return this.range_.commonAncestorContainer};
_.S.compareBrowserRangeEndpoints=function(D,C,X){return this.range_.compareBoundaryPoints(X==1?C==1?_.co.Range.START_TO_START:_.co.Range.START_TO_END:C==1?_.co.Range.END_TO_START:_.co.Range.END_TO_END,D)};
_.S.isCollapsed=function(){return this.range_.collapsed};
_.S.select=function(D){this.selectInternal(Tv(_.Hd(this.range_.startContainer)).getSelection(),D)};
_.S.selectInternal=function(D){D.removeAllRanges();D.addRange(this.range_)};
_.S.insertNode=function(D,C){var X=this.range_.cloneRange();X.collapse(C);X.insertNode(D);X.detach();return D};
_.S.collapse=function(D){this.range_.collapse(D)};_.WT(uQ,Mi);uQ.prototype.selectInternal=function(D,C){!C||this.isCollapsed()?uQ.superClass_.selectInternal.call(this,D,C):(D.collapse(this.range_.endContainer,this.range_.endOffset),D.extend(this.range_.startContainer,this.range_.startOffset))};_.WT(Qk,Mi);Qk.prototype.compareBrowserRangeEndpoints=function(D,C,X){return Qk.superClass_.compareBrowserRangeEndpoints.call(this,D,C,X)};
Qk.prototype.selectInternal=function(D,C){C?D.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):D.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var krM=function(D){return _.Ik?new Qk(D):_.ak?new uQ(D):new Mi(D)};var qi=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},uA5;
_.WT(qi,AlM);uA5=function(D,C){var X=new qi;X.browserRangeWrapper_=D;X.isReversed_=!!C;return X};
_.Q_k=function(D){D=_.Ik?new Qk(v_k(D)):_.ak?new uQ(v_k(D)):new Mi(v_k(D));return uA5(D)};
_.fr=function(D,C,X,c){var W=new qi;W.isReversed_=B$b(D,C,X,c);if(_.OU(D)&&!Gi(D)){var p=D.parentNode;C=Array.prototype.indexOf.call(p.childNodes,D);D=p}_.OU(X)&&!Gi(X)&&(p=X.parentNode,c=Array.prototype.indexOf.call(p.childNodes,X),X=p);W.isReversed_?(W.startNode_=X,W.startOffset_=c,W.endNode_=D,W.endOffset_=C):(W.startNode_=D,W.startOffset_=C,W.endNode_=X,W.endOffset_=c);return W};
_.S=qi.prototype;_.S.clone=function(){var D=new qi;D.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();D.startNode_=this.startNode_;D.startOffset_=this.startOffset_;D.endNode_=this.endNode_;D.endOffset_=this.endOffset_;D.isReversed_=this.isReversed_;return D};
_.S.JSC$11509_getType=function(){return"text"};
_.S.getBrowserRangeObject=function(){return dW(this).range_};
_.S.getTextRangeCount=function(){return 1};
_.S.getTextRange=function(){return this};
var dW=function(D){var C;if(!(C=D.browserRangeWrapper_)){C=D.JSC$11509_getStartNode();var X=D.JSC$11509_getStartOffset(),c=D.JSC$11509_getEndNode(),W=D.JSC$11509_getEndOffset();C=_.Ik?new Qk(iI5(C,X,c,W)):_.ak?new uQ(iI5(C,X,c,W)):new Mi(iI5(C,X,c,W));C=D.browserRangeWrapper_=C}return C};
_.S=qi.prototype;_.S.getContainer=function(){return dW(this).getContainer()};
_.S.JSC$11509_getStartNode=function(){return this.startNode_||(this.startNode_=dW(this).range_.startContainer)};
_.S.JSC$11509_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=dW(this).range_.startOffset};
_.S.JSC$11509_getEndNode=function(){return this.endNode_||(this.endNode_=dW(this).range_.endContainer)};
_.S.JSC$11509_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=dW(this).range_.endOffset};
_.S.isReversed=function(){return this.isReversed_};
_.S.JSC$11509_containsRange=function(D,C){if(D.JSC$11509_getType()=="text"){var X=dW(this);D=dW(D);C=C&&!D.isCollapsed();D=D.range_;X=C?X.compareBrowserRangeEndpoints(D,0,1)>=0&&X.compareBrowserRangeEndpoints(D,1,0)<=0:X.compareBrowserRangeEndpoints(D,0,0)>=0&&X.compareBrowserRangeEndpoints(D,1,1)<=0}else X=!1;return X};
_.S.isCollapsed=function(){return dW(this).isCollapsed()};
_.S.JSC$11509_getText=function(){return dW(this).range_.toString()};
_.S.__iterator__=function(){return new jU(this.JSC$11509_getStartNode(),this.JSC$11509_getStartOffset(),this.JSC$11509_getEndNode(),this.JSC$11509_getEndOffset())};
_.S.select=function(){dW(this).select(this.isReversed_)};
_.S.JSC$11509_removeContents=function(){var D=dW(this).range_;D.extractContents();if(D.startContainer.hasChildNodes()&&(D=D.startContainer.childNodes[D.startOffset])){var C=D.previousSibling;wdk(D)==""&&_.ep(D);C&&wdk(C)==""&&_.ep(C)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.S.insertNode=function(D,C){D=dW(this).insertNode(D,C);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return D};
_.S.collapse=function(D){D=this.isReversed()?!D:D;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(D);D?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var bIC=function(){};
_.WT(bIC,AlM);bIC.prototype.JSC$11509_containsRange=function(D,C){var X=zI(this);D=zI(D);return(C?gO:_.GOJ)(D,function(c){return gO(X,function(W){return W.JSC$11509_containsRange(c,C)})})};
bIC.prototype.insertNode=function(D,C){C?_.Ti(D,this.JSC$11509_getStartNode()):_.Hq(D,this.JSC$11509_getEndNode());return D};var rlg,Klc=tp().JSC$9491_document_.documentElement;rlg=Klc.requestFullscreen?"fullscreenchange":Klc.webkitRequestFullscreen?"webkitfullscreenchange":Klc.mozRequestFullScreen?"mozfullscreenchange":Klc.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var h7g=function(){var D=tp().JSC$9491_document_;return!!(D.webkitIsFullScreen||D.mozFullScreen||D.msFullscreenElement||D.fullscreenElement)};var RR=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.WT(RR,bIC);_.S=RR.prototype;_.S.clone=function(){var D=new RR;D.browserRanges_=_.Ho(this.browserRanges_);return D};
_.S.JSC$11509_getType=function(){return"mutli"};
_.S.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.S.getTextRangeCount=function(){return this.browserRanges_.length};
_.S.getTextRange=function(D){this.ranges_[D]||(this.ranges_[D]=uA5(krM(this.browserRanges_[D])));return this.ranges_[D]};
_.S.getContainer=function(){if(!this.container_){for(var D=[],C=this.getTextRangeCount(),X=0;X<C;X++)D.push(this.getTextRange(X).getContainer());this.container_=eeq.apply(null,D)}return this.container_};
var lW=function(D){D.sortedRanges_||(D.sortedRanges_=zI(D),D.sortedRanges_.sort(function(C,X){var c=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();var W=X.JSC$11509_getStartNode();X=X.JSC$11509_getStartOffset();return c==W&&C==X?0:B$b(c,C,W,X)?1:-1}));
return D.sortedRanges_};
_.S=RR.prototype;_.S.JSC$11509_getStartNode=function(){return lW(this)[0].JSC$11509_getStartNode()};
_.S.JSC$11509_getStartOffset=function(){return lW(this)[0].JSC$11509_getStartOffset()};
_.S.JSC$11509_getEndNode=function(){return _.NR(lW(this)).JSC$11509_getEndNode()};
_.S.JSC$11509_getEndOffset=function(){return _.NR(lW(this)).JSC$11509_getEndOffset()};
_.S.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.S.JSC$11509_getText=function(){return zI(this).map(function(D){return D.JSC$11509_getText()}).join("")};
_.S.__iterator__=function(){return new DK(this)};
_.S.select=function(){var D=this.getWindow().getSelection();D.removeAllRanges();for(var C=this.getTextRangeCount(),X=0;X<C;X++)D.addRange(this.getTextRange(X).getBrowserRangeObject())};
_.S.JSC$11509_removeContents=function(){zI(this).forEach(function(D){D.JSC$11509_removeContents()})};
_.S.collapse=function(D){if(!this.isCollapsed()){var C=D?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;C.collapse(D);this.ranges_=[C];this.sortedRanges_=[C];this.browserRanges_=[C.getBrowserRangeObject()]}};
var DK=function(D){this.iterators_=null;this.currentIdx_=0;D&&(this.iterators_=lW(D).map(function(C){return _.wE4(C)}));
Jx.call(this,D?this.JSC$11515_getStartNode():null,!1,!0)};
_.WT(DK,Puq);_.S=DK.prototype;_.S.JSC$11515_getStartNode=function(){return this.iterators_[0].JSC$11515_getStartNode()};
_.S.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.S.next=function(){for(;this.currentIdx_<this.iterators_.length;){var D=this.iterators_[this.currentIdx_],C=D.next();if(C.done)this.currentIdx_++;else return HG(this,D.node,D.tagType,D.depth),C}return B6};
_.S.JSC$11507_copyFrom=function(D){this.iterators_=_.Ho(D.iterators_);DK.superClass_.JSC$11507_copyFrom.call(this,D)};
_.S.clone=function(){var D=new DK(null);D.JSC$11507_copyFrom(this);return D};var xn5,B$b;_.gE=function(){var D=window.getSelection();return D&&xn5(D)};
xn5=function(D){var C=!1;if(D.createRange)try{var X=D.createRange()}catch(W){return null}else if(D.rangeCount){if(D.rangeCount>1){X=new RR;C=D.rangeCount;for(var c=0;c<C;c++)X.browserRanges_.push(D.getRangeAt(c));return X}X=D.getRangeAt(0);C=B$b(D.anchorNode,D.anchorOffset,D.focusNode,D.focusOffset)}else return null;return uA5(krM(X),C)};
_.C0=function(D,C){return _.fr(D,C,D,C)};
_.Xl=function(D,C,X,c){return _.fr(D,C,X,c)};
B$b=function(D,C,X,c){if(D==X)return c<C;var W;if(D.nodeType==1&&C)if(W=D.childNodes[C])D=W,C=0;else if(_.lc(D,X))return!0;if(X.nodeType==1&&c)if(W=X.childNodes[c])X=W,c=0;else if(_.lc(X,D))return!1;return(m3d(D,X)||C-c)>0};var c8=function(){_.yg.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.wo)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.wo)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.wo)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.wo)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.wo)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.wo)(this.dispatchProgressEvent_,this)};
_.WT(c8,_.yg);c8.prototype.abort=function(){try{this.reader_.abort()}catch(D){throw new ZNC(D,"aborting read");}};
c8.prototype.getError=function(){return this.reader_.error&&new ZNC(this.reader_.error,"reading file")};
c8.prototype.dispatchProgressEvent_=function(D){this.dispatchEvent(new GCg(D,this))};
c8.prototype.disposeInternal=function(){c8.superClass_.disposeInternal.call(this);delete this.reader_};
var s_g=function(D){var C=new c8,X=Llg(C);C.reader_.readAsArrayBuffer(D);return X},mne=function(D){var C=new c8,X=Llg(C);
C.reader_.readAsDataURL(D);return X},Llg=function(D){var C=new pV;
D.listen("loadend",_.AZ(function(X,c){var W=c.reader_.result,p=c.getError();W==null||p?X.errback(p):X.callback(W);c.dispose()},C,D));
return C};var oC=function(){_.yg.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11549_eventHandler_=new _.bQ(this);this.JSC$11549_isInitialized_=!1};
_.WT(oC,_.yg);var e7N=new _.m2("d"),E_C=new _.m2("beforedragstart"),t5f=new _.m2("dragstart"),N$d=new _.m2("beforedragmove"),YIk=new _.m2("dragmove"),ylc=new _.m2("beforedragend"),n_5=new _.m2("dragend"),w0N=new _.m2("e");oC.prototype.isDragging=function(){return!!this.JSC$11549_dragger_};
var Flb=function(D,C){C.dlgGrowthDirection_=0;C.dlgDragHoverClass_=void 0;C.dlgDragPermission=0;D.dragLists_.push(C)},ZIM=function(D,C){D.getHandleForDragItem_=C};
oC.prototype.init=function(){if(!this.JSC$11549_isInitialized_){for(var D=this.dragLists_.length,C=0;C<D;C++)for(var X=_.J6(this.dragLists_[C]),c=X.length,W=0;W<c;++W){var p=X[W],g=this.getHandleForDragItem_(p),a=_.fh(g);this.dragItemForHandle_[a]=p;this.dragItemHoverClasses_&&(this.JSC$11549_eventHandler_.listen(p,"mouseover",this.handleDragItemMouseover_),this.JSC$11549_eventHandler_.listen(p,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11549_eventHandler_.listen(g,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11549_eventHandler_.listen(g,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(p);this.JSC$11549_eventHandler_.listen(g,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11549_isInitialized_=!0}};
oC.prototype.disposeInternal=function(){this.JSC$11549_eventHandler_.dispose();for(var D=this.dragLists_.length,C=0;C<D;C++){var X=this.dragLists_[C];X.dlgGrowthDirection_=void 0;X.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Grk(this);oC.superClass_.disposeInternal.call(this)};
var V5e=function(D,C){for(var X=D.dragLists_.length,c=0;c<X;c++){var W=D.dragLists_[c];W.dlgBounds_=kim(W)}X=D.dragItems_.length;for(c=0;c<X;c++)W=D.dragItems_[c],W!=C&&(W.dlgBounds_=kim(W))};
_.S=oC.prototype;
_.S.handlePotentialDragStart_=function(D){var C=_.fh(D.currentTarget);C=this.dragItemForHandle_[C];if(C.parentElement.dlgDragPermission!=2){this.currDragItem_=C;a:{C=this.currDragItem_;for(var X=C.cloneNode(!0),c=Ee("TEXTAREA",C),W=Ee("TEXTAREA",X),p=0;p<c.length;p++)W[p].value=c[p].value;switch(C.tagName){case "TR":C=_.FD("TABLE",null,_.FD("TBODY",null,X));break a;case "TD":case "TH":C=_.FD("TABLE",null,_.FD("TBODY",null,_.FD("TR",null,X)));break a;case "TEXTAREA":X.value=C.value;default:C=X;break a}C=
void 0}this.draggerEl_=C;this.draggerElClasses_&&oJ(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Hd(this.currDragItem_).body.appendChild(this.draggerEl_);X=_.Jp(this.currDragItem_);C=this.draggerEl_;c=_.Jp(C);if(X instanceof _.VI){var g=X.y;X=X.x}fL(C,C.offsetLeft+(X-c.x),C.offsetTop+(Number(g)-c.y));this.JSC$11549_dragger_=new _.dt(this.draggerEl_);_.FFf(this.JSC$11549_dragger_,this.hysteresisDistance_);
_.Kb(this.JSC$11549_dragger_,"start",this.handleDragStart_,!1,this);_.Kb(this.JSC$11549_dragger_,"end",this.handleDragEnd_,!1,this);_.Kb(this.JSC$11549_dragger_,"earlycancel",this.JSC$11551_cleanup_,!1,this);this.dispatchEvent(new W8(e7N,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11549_dragger_));this.JSC$11549_dragger_.startDrag(D)}};
_.S.handleDragStart_=function(D){if(this.dispatchEvent(new W8(E_C,this,D.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.x3N(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?oJ(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var C=HyC(this.draggerEl_);this.draggerEl_.halfWidth=C.width/2;this.draggerEl_.halfHeight=C.height/2;C=this.draggerEl_.getBoundingClientRect();
var X=D.clientY,c=Zlc(this.JSC$11549_dragger_,D.clientX);if(c>C.right){var W=this.currDragItem_.getBoundingClientRect();this.JSC$11549_dragger_.deltaX=c-(c-W.left)/W.width*C.width}X=GTJ(this.JSC$11549_dragger_,X);X>C.bottom&&(this.JSC$11549_dragger_.deltaY+=X-C.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";V5e(this,this.currDragItem_);this.currDragItem_.style.display="";_.Kb(this.JSC$11549_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new W8(t5f,
this,D.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11549_dragger_))}else D.preventDefault(),this.JSC$11551_cleanup_()};
_.S.handleDragMove_=function(D){var C=_.Jp(this.draggerEl_);C=new _.VI(C.x+this.draggerEl_.halfWidth,C.y+this.draggerEl_.halfHeight);a:{var X=null;if(this.currDragItem_.style.display!="none"){X=this.currDragItem_.parentNode;var c=kim(X);if(T$N(C,c))break a}c=this.dragLists_.length;for(var W=0;W<c;W++){var p=this.dragLists_[W];if(p!=X&&T$N(C,p.dlgBounds_)){X=p;break a}}X=null}if(X){if(X==null)throw Error("$d");c=0;W=!1;p=void 0;switch(X.dlgGrowthDirection_){case 0:c=C.y;var g=HIJ;var a=Jlq;break;case 4:W=
!0;case 2:c=C.x;g=z7C;a=Jlq;break;case 5:W=!0;case 3:c=C.x,g=j_C,a=M5f}for(var O=null,P,k=_.J6(X),u=k.length,Q=0;Q<u;Q++){var B=k[Q];if(B!=this.currDragItem_){var K=g(B.dlgBounds_);if(W){var L=qId(B,C);p===void 0&&(p=L);a(c,K)&&(P==void 0||L<p||L==p&&(a(K,P)||K==P))&&(O=B,P=K);L<p&&(p=L)}else a(c,K)&&(P==void 0||a(K,P))&&(O=B,P=K)}}g=O!==null&&qId(O,C)>p?null:O}else g=null;if(!this.dispatchEvent(new W8(N$d,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11549_dragger_,C,X,g)))return!1;if(X&&X.dlgDragPermission!=
1)this.currDragItem_.parentNode==X&&_.x3N(this.currDragItem_)==g||X.insertBefore(this.currDragItem_,g),this.currDragItem_.style.display="",X.dlgDragHoverClass_&&_.q_(X,X.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",a=this.dragLists_.length,P=0;P<a;P++)c=this.dragLists_[P],c.dlgDragHoverClass_&&_.j6(c,c.dlgDragHoverClass_);X!=this.currHoverList_&&(this.currHoverList_=X,V5e(this,this.currDragItem_));this.dispatchEvent(new W8(YIk,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11549_dragger_,
C,X,g));return!1};
_.S.JSC$11551_cleanup_=function(){Grk(this);this.JSC$11549_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var D=this.dragLists_.length,C=0;C<D;C++)this.dragLists_[C].dlgBounds_=null;D=this.dragItems_.length;for(C=0;C<D;C++)this.dragItems_[C].dlgBounds_=null};
_.S.handleDragEnd_=function(D){if(!this.dispatchEvent(new W8(ylc,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11549_dragger_)))return!1;Grk(this);this.dispatchEvent(new W8(n_5,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11549_dragger_));this.JSC$11551_cleanup_();return!0};
var Grk=function(D){_.Ue(D.JSC$11549_dragger_);var C=D.draggerEl_&&D.draggerEl_.parentElement;D.draggerEl_&&_.ep(D.draggerEl_);D.currDragItem_&&D.currDragItem_.style.display=="none"&&(D.origList_.insertBefore(D.currDragItem_,D.origNextItem_),D.currDragItem_.style.display="");D.currDragItemClasses_&&D.currDragItem_?nhC(D.currDragItem_,D.currDragItemClasses_||[]):D.currDragItem_&&(D.currDragItem_.style.visibility="");for(var X=D.dragLists_.length,c=0;c<X;c++){var W=D.dragLists_[c];W.dlgDragHoverClass_&&
_.j6(W,W.dlgDragHoverClass_)}C&&D.dispatchEvent(new W8(w0N,D,null,D.currDragItem_,D.draggerEl_,D.JSC$11549_dragger_))};
_.S=oC.prototype;_.S.getHandleForDragItem_=function(D){return D};
_.S.handleDragItemMouseover_=function(D){oJ(D.currentTarget,this.dragItemHoverClasses_||[])};
_.S.handleDragItemMouseout_=function(D){nhC(D.currentTarget,this.dragItemHoverClasses_||[])};
_.S.handleDragItemHandleMouseover_=function(D){oJ(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.S.handleDragItemHandleMouseout_=function(D){nhC(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
var T$N=function(D,C){return D.x>C.left&&D.x<C.left+C.width&&D.y>C.top&&D.y<C.top+C.height},qId=function(D,C){D=D.dlgBounds_;
return Math.abs(C.y-(D.top+(D.height-1)/2))},HIJ=function(D){return D.top+D.height-1},z7C=function(D){return D.left+D.width-1},j_C=function(D){return D.left||0},Jlq=function(D,C){return D<C},M5f=function(D,C){return D>C},W8=function(D,C,X,c,W,p){_.eL.call(this,D);
this.event=X;this.currDragItem=c;this.draggerEl=W;this.JSC$11553_dragger=p};
_.WT(W8,_.eL);_.WT(rr,_.nF);var f5b=new _.VI(0,0);rr.prototype.JSC$11557_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
rr.prototype.JSC$11557_onMouseMove=function(D){var C=this.containerIsActuallyContent_?f5b:EF(tp(this.containerNode_)),X=this.horizontalScrolling_?this.calculateScrollDelta(D.clientX+C.x,this.scrollBounds_.left,this.scrollBounds_.width):0,c=this.calculateScrollDelta(D.clientY+C.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=X;this.scrollDelta_.y=c;!(X=!X&&!c)&&(X=this.constrainScroll_)&&(X=D.clientX+C.x,D=D.clientY+C.y,C=this.containerBounds_,X=!(C.left<=X&&C.left+C.width>=
X&&C.top<=D&&C.top+C.height>=D));X?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
rr.prototype.calculateScrollDelta=function(D,C,X){var c=0;D<C?c=-8:D>C+X&&(c=8);return c};
rr.prototype.disposeInternal=function(){rr.superClass_.disposeInternal.call(this);this.JSC$11555_eventHandler_.dispose();this.scrollTimer_.dispose()};var dnJ={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"}}},p0=dnJ;p0=dnJ;var SB={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 R7C=function(){},JX=function(D){if(typeof D=="number"){var C=new R7C;
C.standardOffset_=D;var X=D;if(X==0)X="Etc/GMT";else{var c=["Etc/GMT",X<0?"-":"+"];X=Math.abs(X);c.push(Math.floor(X/60)%100);X%=60;X!=0&&c.push(":",_.$J(X,2));X=c.join("")}C.timeZoneId_=X;X=D;X==0?X="UTC":(c=["UTC",X<0?"+":"-"],X=Math.abs(X),c.push(Math.floor(X/60)%100),X%=60,X!=0&&c.push(":",X),X=c.join(""));D=l5C(D);C.tzNames_=[X,X];C.tzNamesExt_={STD_LONG_NAME_GMT:D,STD_GENERIC_LOCATION:D};C.transitions_=[];return C}C=new R7C;C.timeZoneId_=D.id;C.standardOffset_=-D.std_offset;C.tzNames_=D.names;
C.tzNamesExt_=D.names_ext;C.transitions_=D.transitions;return C},l5C=function(D){var C=["GMT"];
C.push(D<=0?"+":"-");D=Math.abs(D);C.push(_.$J(Math.floor(D/60)%100,2),":",_.$J(D%60,2));return C.join("")},DH5=function(D,C){C=Date.UTC(C.getUTCFullYear(),C.getUTCMonth(),C.getUTCDate(),C.getUTCHours(),C.getUTCMinutes())/36E5;
for(var X=0;X<D.transitions_.length&&C>=D.transitions_[X];)X+=2;return X==0?0:D.transitions_[X-1]},CKC=function(D,C){D=D.standardOffset_-DH5(D,C);
return D===-1440?0:D};var z1=function(D,C){this.patternParts_=[];this.JSC$11568_dateTimeSymbols_=C||PC;typeof D=="number"?XXe(this,D):cG4(this,D)},oug=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Uv=function(D){return D.getHours?D.getHours():0},cG4=function(D,C){for(bzh&&(C=C.replace(/\u200f/g,""));C;){for(var X=C,c=0;c<oug.length;++c){var W=C.match(oug[c]);
if(W){var p=W[0];C=C.substring(p.length);c==0&&(p=="''"?p="'":(p=p.substring(1,W[1]=="'"?p.length-1:p.length),p=p.replace(/''/g,"'")));D.patternParts_.push({text:p,type:c});break}}if(X===C)throw Error("ae`"+C);}};
z1.prototype.format=function(D,C){if(!D)throw Error("be");var X=C?(D.getTimezoneOffset()-CKC(C,D))*6E4:0,c=X?new Date(D.getTime()+X):D,W=c;C&&c.getTimezoneOffset()!=D.getTimezoneOffset()&&(c=new Date(c.getTime()+(c.getTimezoneOffset()-D.getTimezoneOffset())*6E4),W=new Date(D.getTime()+(X+(X>0?-864E5:864E5))));X=[];for(var p=0;p<this.patternParts_.length;++p){var g=this.patternParts_[p].text;1==this.patternParts_[p].type?X.push(WYe(this,g,D,c,W,C)):X.push(g)}return X.join("")};
var XXe=function(D,C){if(C<4)var X=D.JSC$11568_dateTimeSymbols_.DATEFORMATS[C];else if(C<8)X=D.JSC$11568_dateTimeSymbols_.TIMEFORMATS[C-4];else if(C<12)X=D.JSC$11568_dateTimeSymbols_.DATETIMEFORMATS[C-8],X=X.replace("{1}",D.JSC$11568_dateTimeSymbols_.DATEFORMATS[C-8]),X=X.replace("{0}",D.JSC$11568_dateTimeSymbols_.TIMEFORMATS[C-8]);else if(C===12)X=D.JSC$11568_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(C===13)X=D.JSC$11568_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{XXe(D,10);return}cG4(D,X)},gP=function(D,C){C=String(C);
D=D.JSC$11568_dateTimeSymbols_||PC;if(D.ZERODIGIT!==void 0&&!ByW){for(var X=[],c=0;c<C.length;c++){var W=C.charCodeAt(c);X.push(48<=W&&W<=57?String.fromCharCode(D.ZERODIGIT+W-48):C.charAt(c))}C=X.join("")}return C},ByW=!1,bzh=!1,SNb=function(D,C,X,c){X=X.getFullYear();
X<=0&&c&&(X=1-X);return gP(D,pXx(X,C))},pXx=function(D,C){C==2&&(D%=100);
D<0&&C++;return _.$J(D,C)},aC=function(D){if(!(D.getHours&&D.getSeconds&&D.getMinutes))throw Error("ce");
},UH4=function(D,C){aC(C);
C=Uv(C);return D.JSC$11568_dateTimeSymbols_.AMPMS[C>=12&&C<24?1:0]},WYe=function(D,C,X,c,W,p){var g=C.length;
switch(C.charAt(0)){case "G":return X=c.getFullYear()>0?1:0,g>=4?D.JSC$11568_dateTimeSymbols_.ERANAMES[X]:D.JSC$11568_dateTimeSymbols_.ERAS[X];case "y":return SNb(D,g,c,!0);case "Y":return X=(new Date(a5x(c.getFullYear(),c.getMonth(),c.getDate(),D.JSC$11568_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11568_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),g==2&&(X%=100),gP(D,pXx(X,g));case "u":return SNb(D,g,c,!1);case "M":a:switch(X=c.getMonth(),g){case 5:g=D.JSC$11568_dateTimeSymbols_.NARROWMONTHS[X];
break a;case 4:g=D.JSC$11568_dateTimeSymbols_.MONTHS[X];break a;case 3:g=D.JSC$11568_dateTimeSymbols_.SHORTMONTHS[X];break a;default:g=gP(D,_.$J(X+1,g))}return g;case "k":return aC(W),gP(D,_.$J(Uv(W)||24,g));case "S":return gP(D,(W.getMilliseconds()/1E3).toFixed(Math.min(3,g)).slice(2)+(g>3?_.$J(0,g-3):""));case "E":return X=c.getDay(),g>=4?D.JSC$11568_dateTimeSymbols_.WEEKDAYS[X]:D.JSC$11568_dateTimeSymbols_.SHORTWEEKDAYS[X];case "a":return UH4(D,W);case "b":return UH4(D,W);case "B":return UH4(D,
W);case "h":return aC(W),gP(D,_.$J(Uv(W)%12||12,g));case "K":return aC(W),gP(D,_.$J(Uv(W)%12,g));case "H":return aC(W),gP(D,_.$J(Uv(W),g));case "c":a:switch(X=c.getDay(),g){case 5:g=D.JSC$11568_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[X];break a;case 4:g=D.JSC$11568_dateTimeSymbols_.STANDALONEWEEKDAYS[X];break a;case 3:g=D.JSC$11568_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[X];break a;default:g=gP(D,_.$J(X,1))}return g;case "L":a:switch(X=c.getMonth(),g){case 5:g=D.JSC$11568_dateTimeSymbols_.STANDALONENARROWMONTHS[X];
break a;case 4:g=D.JSC$11568_dateTimeSymbols_.STANDALONEMONTHS[X];break a;case 3:g=D.JSC$11568_dateTimeSymbols_.STANDALONESHORTMONTHS[X];break a;default:g=gP(D,_.$J(X+1,g))}return g;case "Q":return X=Math.floor(c.getMonth()/3),g<4?D.JSC$11568_dateTimeSymbols_.SHORTQUARTERS[X]:D.JSC$11568_dateTimeSymbols_.QUARTERS[X];case "d":return gP(D,_.$J(c.getDate(),g));case "m":return aC(W),gP(D,_.$J(W.getMinutes?W.getMinutes():0,g));case "s":return aC(W),gP(D,_.$J(W.getSeconds(),g));case "v":return(p||JX(X.getTimezoneOffset())).timeZoneId_;
case "V":return D=p||JX(X.getTimezoneOffset()),g<=2?D.timeZoneId_:DH5(D,X)>0?D.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?D.tzNamesExt_.STD_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return X=a5x(W.getFullYear(),W.getMonth(),W.getDate(),D.JSC$11568_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11568_dateTimeSymbols_.FIRSTDAYOFWEEK),gP(D,_.$J(Math.floor(Math.round((X-(new Date((new Date(X)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,g));case "z":return D=p||JX(X.getTimezoneOffset()),g<4?D.tzNames_[DH5(D,X)>0?2:0]:D.tzNames_[DH5(D,X)>0?3:1];case "Z":return C=p||JX(X.getTimezoneOffset()),g<4?(g=-CKC(C,X),D=[g<0?"-":"+"],g=Math.abs(g),D.push(_.$J(Math.floor(g/60)%100,2),_.$J(g%60,2)),g=D.join("")):g=gP(D,l5C(CKC(C,X))),g;default:return""}};var guq=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,awJ=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,L9t=function(D){this.patternParts_=[];this.JSC$11577_dateTimeSymbols_=PC;if(typeof D=="number"){D>11&&(D=10);if(D<4)var C=this.JSC$11577_dateTimeSymbols_.DATEFORMATS[D];else D<8?C=this.JSC$11577_dateTimeSymbols_.TIMEFORMATS[D-4]:(C=this.JSC$11577_dateTimeSymbols_.DATETIMEFORMATS[D-8],C=C.replace("{1}",this.JSC$11577_dateTimeSymbols_.DATEFORMATS[D-8]),C=C.replace("{0}",this.JSC$11577_dateTimeSymbols_.TIMEFORMATS[D-
8]));Iwb(this,C)}else Iwb(this,D)},Iwb=function(D,C){for(var X=!1,c="",W=0;W<C.length;W++){var p=C.charAt(W);
if(guq.test(p))for(c.length>0&&(D.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),D.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});W<C.length-1&&C.charAt(W+1)==" ";)W++;else if(X)p=="'"?W+1<C.length&&C.charAt(W+1)=="'"?(c+="'",W++):X=!1:c+=p;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(p)>=0){c.length>0&&(D.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c="");for(var g=C.charAt(W),a=W+1;a<C.length&&C.charAt(a)==g;)a++;g=a-W;g<=0?a=!1:(a="MydhHmsSDkK".indexOf(p),
a=a>0||a==0&&g<3);D.patternParts_.push({text:p,count:g,abutStart:!1,numeric:a});W+=g-1}else p=="'"?W+1<C.length&&C.charAt(W+1)=="'"?(c+="'",W++):X=!0:c+=p}c.length>0&&D.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});C=!1;for(X=0;X<D.patternParts_.length;X++)D.patternParts_[X].numeric?!C&&X+1<D.patternParts_.length&&D.patternParts_[X+1].numeric&&(C=!0,D.patternParts_[X].abutStart=!0):C=!1};
L9t.prototype.parse=function(D,C,X){var c=!1,W=!1;X&&(c=X.predictive||!1,W=X.validate||!1);if(c)for(X=0;X<this.patternParts_.length;X++){var p=this.patternParts_[X];if(p.count>0&&("abBhHkKm".indexOf(p.text.charAt(0))<0||p.count>2||p.abutStart))throw Error("de`"+p.text.charAt(0));}p=new OTN;X=[0];p.dayPeriodIndex=-1;for(var g=0;g<this.patternParts_.length&&!(c&&X[0]>=D.length);g++){if(this.patternParts_[g].count==0){a:{var a=D;var O=X,P=this.patternParts_[g],k=c;if(P.text.match(guq)!=null){if(P=O[0],
AGe(a,O),O[0]>P){a=!0;break a}}else{if(a.indexOf(P.text,O[0])==O[0]){O[0]+=P.text.length;a=!0;break a}if(k&&P.text.indexOf(a.substring(O[0]))==0){O[0]+=a.length-O[0];a=!0;break a}}a=!1}if(a)continue;return 0}if(this.patternParts_[g].abutStart){a:{O=D;P=X;k=g;var u=P[0],Q=0;for(a=k;a<this.patternParts_.length;a++){var B=this.patternParts_[a],K=B.count;if(K===0)break;if(a==k&&(K-=Q,Q++,K==0)){a=0;break a}var L=a>k&&B.numeric,t=P[0];if(!PKg(this,O,P,B,K,p,!1)||L&&P[0]-t<K)a=k-1,P[0]=u}a-=k}if(a<=0)return 0;
g+=a-1}else if(!PKg(this,D,X,this.patternParts_[g],0,p,c))return 0}a:{D=W;if(C==null)throw Error("ee");p.era!=void 0&&p.year!=void 0&&p.era==0&&p.year>0&&(p.year=-(p.year-1));p.year!=void 0&&C.setFullYear(p.year);c=C.getDate();C.setDate(1);p.month!=void 0&&C.setMonth(p.month);p.day!=void 0?C.setDate(p.day):(W=X1R(C.getFullYear(),C.getMonth()),C.setDate(c>W?W:c));typeof C.setHours==="function"&&(p.hours==void 0&&(p.hours=C.getHours()),p.hours<12&&(p.ampm!=void 0&&p.ampm>0?p.hours+=12:p.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(p.dayPeriodName)||["night1","night2"].includes(p.dayPeriodName)&&p.hours>=6)&&(p.hours+=12)),C.setHours(p.hours));typeof C.setMinutes==="function"&&p.minutes!=void 0&&C.setMinutes(p.minutes);typeof C.setSeconds==="function"&&p.seconds!=void 0&&C.setSeconds(p.seconds);typeof C.setMilliseconds==="function"&&p.milliseconds!=void 0&&C.setMilliseconds(p.milliseconds);if(D&&(p.year&&p.year!=C.getFullYear()||p.month&&p.month!=
C.getMonth()||p.day&&p.day!=C.getDate()||p.hours&&p.hours>=24||p.minutes&&p.minutes>=60||p.seconds&&p.seconds>=60||p.milliseconds&&p.milliseconds>=1E3))C=!1;else{p.tzOffset!=void 0&&C.setTime(C.getTime()+(p.tzOffset-C.getTimezoneOffset())*60*1E3);p.ambiguousYear&&(D=new Date,D.setFullYear(D.getFullYear()-80),C.getTime()<D.getTime()&&C.setFullYear(D.getFullYear()+100));if(p.dayOfWeek!=void 0)if(p.day==void 0)p=(7+p.dayOfWeek-C.getDay())%7,p>3&&(p-=7),D=C.getMonth(),C.setDate(C.getDate()+p),C.getMonth()!=
D&&C.setDate(C.getDate()+(p>0?-7:7));else if(p.dayOfWeek!=C.getDay()){C=!1;break a}C=!0}}return C?X[0]:0};
var PKg=function(D,C,X,c,W,p,g){AGe(C,X);if(c.numeric&&W>0&&X[0]+W>C.length)return!1;switch(c.text.charAt(0)){case "G":return IC(C,X,[D.JSC$11577_dateTimeSymbols_.ERAS],function(a){return p.era=a}),!0;
case "M":case "L":return $H5(D,C,X,W,c,p);case "E":return IC(C,X,[D.JSC$11577_dateTimeSymbols_.WEEKDAYS,D.JSC$11577_dateTimeSymbols_.SHORTWEEKDAYS],function(a){return p.dayOfWeek=a});
case "B":case "b":return W=[],D=[[].concat(D.JSC$11577_dateTimeSymbols_.AMPMS)],W.push("isAm"),W.push("isPm"),C=IC(C,X,D,function(a){return p.dayPeriodIndex=a},g),p.dayPeriodName=W[p.dayPeriodIndex],g?C:!0;
case "a":return C=IC(C,X,[D.JSC$11577_dateTimeSymbols_.AMPMS],function(a){return p.ampm=a},g),g?C:!0;
case "y":return vu4(D,C,X,c,W,p);case "Q":return IC(C,X,[D.JSC$11577_dateTimeSymbols_.QUARTERS,D.JSC$11577_dateTimeSymbols_.SHORTQUARTERS],function(a){p.month=a*3;p.day=1});
case "d":return Ov(D,C,X,c,W,function(a){p.day=a}),!0;
case "S":return iTb(D,C,X,W,p);case "h":case "K":case "H":case "k":return C=Ov(D,C,X,c,W,function(a){p.hours=c.text.charAt(0)==="h"&&a===12?0:a},g),g?C:!0;
case "m":return C=Ov(D,C,X,c,W,function(a){p.minutes=a},g),g?C:!0;
case "s":return Ov(D,C,X,c,W,function(a){p.seconds=a}),!0;
case "z":case "Z":case "v":return kUc(D,C,X,p);default:return!1}},vu4=function(D,C,X,c,W,p){var g=X[0];
W=An(D,C,X,W);W===null&&(W=An(D,C,X,0,!0));if(W===null)return!1;W>=0&&X[0]-g==2&&c.count==2?(D=W,C=(new Date).getFullYear()-80,X=C%100,p.ambiguousYear=D==X,D+=Math.floor(C/100)*100+(D<X?100:0),p.year=D):p.year=W;return!0},$H5=function(D,C,X,c,W,p){return W.numeric&&Ov(D,C,X,W,c,function(g){p.month=g-1})?!0:IC(C,X,[D.JSC$11577_dateTimeSymbols_.MONTHS,
D.JSC$11577_dateTimeSymbols_.STANDALONEMONTHS,D.JSC$11577_dateTimeSymbols_.SHORTMONTHS,D.JSC$11577_dateTimeSymbols_.STANDALONESHORTMONTHS],function(g){p.month=g})},iTb=function(D,C,X,c,W){var p=X[0];
D=An(D,C,X,c);if(D===null)return!1;X=X[0]-p;W.milliseconds=X<3?D*Math.pow(10,3-X):Math.round(D/Math.pow(10,X-3));return!0},kUc=function(D,C,X,c){C.indexOf("GMT",X[0])==X[0]&&(X[0]+=3);
if(X[0]>=C.length)return c.tzOffset=0,!0;var W=X[0],p=An(D,C,X,0,!0);if(p===null)return!1;if(X[0]<C.length&&C.charAt(X[0])==":"){var g=p*60;X[0]++;p=An(D,C,X,0);if(p===null)return!1;g+=p}else g=p,g=g<24&&X[0]-W<=3?g*60:g%100+g/100*60;c.tzOffset=-g;return!0},Ov=function(D,C,X,c,W,p,g){g=g||!1;
var a=X[0];D=An(D,C,X,W);if(D===null)return!1;if(g&&X[0]-a<c.count){if(X[0]<C.length)return!1;D*=Math.pow(10,c.count-(X[0]-a))}p(D);return!0},IC=function(D,C,X,c,W){W=W||!1;
for(var p,g=0;g<X.length;g++){p=C;for(var a=X[g],O=W,P=0,k=null,u=D.substring(p[0]).toLowerCase(),Q=0;Q<a.length;Q++){var B=a[Q].toLowerCase();if(O&&B.indexOf(u)==0){P=u.length;k=Q;break}a[Q].length>P&&u.indexOf(B)==0&&(P=a[Q].length,k=Q)}k!==null&&(p[0]+=P);p=k;if(p!==null)return c(p),!0}return!1},AGe=function(D,C){(D=D.substring(C[0]).match(awJ))&&(C[0]+=D[0].length)},An=function(D,C,X,c,W){C=c>0?C.substring(0,X[0]+c):C;
W=W||!1;if(D.JSC$11577_dateTimeSymbols_.ZERODIGIT){c=[];for(var p=X[0];p<C.length;p++){var g=C.charCodeAt(p)-D.JSC$11577_dateTimeSymbols_.ZERODIGIT;c.push(0<=g&&g<=9?String.fromCharCode(g+48):C.charAt(p))}C=c.join("")}else C=C.substring(X[0]);D=C.match(new RegExp("^"+(W?"[+-]?":"")+"\\d+"));if(!D)return null;X[0]+=D[0].length;return parseInt(D[0],10)},OTN=function(){};
OTN.prototype.ambiguousYear=!1;var uv4;
uv4={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 Qab={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}"]};
Qab={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 BUx=function(){var D={type:"unit",style:"narrow"};this.listType_=D&&D.type?D.type:"conjunction";this.listStyle_=D&&D.style?D.style:"long";this.listSymbols_=Qab;D=0;switch(this.listStyle_){case "short":D=1;break;case "narrow":D=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[D];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[D];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=
this.listSymbols_.AND_END[D];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[D];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[D];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=this.listSymbols_.OR_END[D];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[D],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[D],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[D],this.listEndPattern_=this.listSymbols_.UNIT_END[D]}};
BUx.prototype.format=function(D){return bTd(this,D)};
var bTd=function(D,C){var X=C.length;switch(X){case 0:return"";case 1:return String(C[0]);case 2:return D.listTwoPattern_.replace("{0}",String(C[0])).replace("{1}",String(C[1]))}for(var c=D.listStartPattern_.replace("{0}",String(C[0])).replace("{1}",String(C[1])),W=2;W<X-1;++W)c=D.listMiddlePattern_.replace("{0}",c).replace("{1}",String(C[W]));return D.listEndPattern_.replace("{0}",c).replace("{1}",String(C[X-1]))};var rGg={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"},KYb=rGg,hdk=rGg;hdk=KYb=rGg;var LYg,P8,iR,acm,$Y,xH4;
_.VZ=function(D,C,X,c){var W;if(W=C){a:if(C&&C.length===3){for(W=0;W<3;W++){var p=C[W];if(p<"A"||p>"Z"&&p<"a"||p>"z"){W=!1;break a}}W=!0}else W=!1;W=!W}if(W)throw new TypeError("fe");this.intlCurrencyCode_=C?C.toUpperCase():null;this.currencyStyle_=X||0;this.overrideNumberFormatSymbols_=c||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_=P8(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof D==="number")switch(D){case 1:$Y(this,P8(this).DECIMAL_PATTERN);break;case 2:$Y(this,P8(this).SCIENTIFIC_PATTERN);break;case 3:$Y(this,P8(this).PERCENT_PATTERN);break;case 4:D=P8(this).CURRENCY_PATTERN;C=["0"];if(X=
SB[iR(this)]){X=X[0]&7;if(X>0)for(C.push("."),c=0;c<X;c++)C.push("0");D=D.replace(/0.00/g,C.join(""))}$Y(this,D);break;case 5:xH4(this,1);break;case 6:xH4(this,2);break;default:throw Error("ie");}else $Y(this,D)};
LYg=!1;P8=function(D){return D.overrideNumberFormatSymbols_||(LYg?hdk:KYb)};
iR=function(D){return D.intlCurrencyCode_||P8(D).DEF_CURRENCY_CODE};
acm=function(D,C){if(C>308)throw Error("he`"+C);D.maximumFractionDigits_=C;return D};
$Y=function(D,C){var X=[0];D.positivePrefix_=sac(D,C,X);for(var c=X[0],W=-1,p=0,g=0,a=0,O=-1,P=C.length,k=!0;X[0]<P&&k;X[0]++)switch(C.charAt(X[0])){case "#":g>0?a++:p++;O>=0&&W<0&&O++;break;case "0":if(a>0)throw Error("oe`"+C);g++;O>=0&&W<0&&O++;break;case ",":O>0&&D.groupingArray_.push(O);O=0;break;case ".":if(W>=0)throw Error("pe`"+C);W=p+g+a;break;case "E":if(D.useExponentialNotation_)throw Error("qe`"+C);D.useExponentialNotation_=!0;D.minExponentDigits_=0;X[0]+1<P&&C.charAt(X[0]+1)=="+"&&(X[0]++,
D.useSignForPositiveExponent_=!0);for(;X[0]+1<P&&C.charAt(X[0]+1)=="0";)X[0]++,D.minExponentDigits_++;if(p+g<1||D.minExponentDigits_<1)throw Error("re`"+C);k=!1;break;default:X[0]--,k=!1}g==0&&p>0&&W>=0&&(g=W,g==0&&g++,a=p-g,p=g-1,g=1);if(W<0&&a>0||W>=0&&(W<p||W>p+g)||O==0)throw Error("se`"+C);a=p+g+a;D.maximumFractionDigits_=W>=0?a-W:0;W>=0&&(D.minimumFractionDigits_=p+g-W,D.minimumFractionDigits_<0&&(D.minimumFractionDigits_=0));D.minimumIntegerDigits_=(W>=0?W:a)-p;D.useExponentialNotation_&&(D.maximumIntegerDigits_=
p+D.minimumIntegerDigits_,D.maximumFractionDigits_==0&&D.minimumIntegerDigits_==0&&(D.minimumIntegerDigits_=1));D.groupingArray_.push(Math.max(0,O));D.decimalSeparatorAlwaysShown_=W==0||W==a;c=X[0]-c;D.positiveSuffix_=sac(D,C,X);X[0]<C.length&&C.charAt(X[0])==";"?(X[0]++,D.multiplier_!=1&&(D.negativePercentSignExpected_=!0),D.negativePrefix_=sac(D,C,X),X[0]+=c,D.negativeSuffix_=sac(D,C,X)):(D.negativePrefix_+=D.positivePrefix_,D.negativeSuffix_+=D.positiveSuffix_)};
xH4=function(D,C){D.compactStyle_=C;$Y(D,P8(D).DECIMAL_PATTERN);D.minimumFractionDigits_=0;acm(D,2);if(D.minimumFractionDigits_>0)throw Error("ge");D.significantDigits_=2};
_.VZ.prototype.parse=function(D,C){C=C||[0];if(this.compactStyle_!==0)throw Error("je");D=D.replace(/ |\u202f/g,"\u00a0");var X=D.indexOf(this.positivePrefix_,C[0])==C[0],c=D.indexOf(this.negativePrefix_,C[0])==C[0];X&&c&&(this.positivePrefix_.length>this.negativePrefix_.length?c=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(X=!1));X?C[0]+=this.positivePrefix_.length:c&&(C[0]+=this.negativePrefix_.length);if(D.indexOf(P8(this).INFINITY,C[0])==C[0]){C[0]+=P8(this).INFINITY.length;var W=
Infinity}else{W=D;var p=!1,g=!1,a=!1,O=-1,P=1,k=P8(this).DECIMAL_SEP,u=P8(this).GROUP_SEP,Q=P8(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");u=u.replace(/\u202f/g,"\u00a0");for(var B="";C[0]<W.length;C[0]++){var K=W.charAt(C[0]),L=mHk(this,K);if(L>=0&&L<=9)B+=L,a=!0;else if(K==k.charAt(0)){if(p||g)break;B+=".";p=!0}else if(K==u.charAt(0)&&("\u00a0"!=u.charAt(0)||C[0]+1<W.length&&mHk(this,W.charAt(C[0]+1))>=0)){if(p||g)break}else if(K==Q.charAt(0)){if(g)break;B+="E";g=!0;O=C[0]}else if(K==
"+"||K=="-"){if(a&&O!=C[0]-1)break;B+=K}else if(this.multiplier_==1&&K==P8(this).PERCENT.charAt(0)){if(P!=1)break;P=100;if(a){C[0]++;break}}else if(this.multiplier_==1&&K==P8(this).PERMILL.charAt(0)){if(P!=1)break;P=1E3;if(a){C[0]++;break}}else break}this.multiplier_!=1&&(P=this.multiplier_);W=parseFloat(B)/P}if(X){if(D.indexOf(this.positiveSuffix_,C[0])!=C[0])return NaN;C[0]+=this.positiveSuffix_.length}else if(c){if(D.indexOf(this.negativeSuffix_,C[0])!=C[0])return NaN;C[0]+=this.negativeSuffix_.length}return c?
-W:W};
_.VZ.prototype.format=function(D){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(D))return P8(this).NAN;var C=[];var X=D;if(this.compactStyle_==0)X=kY;else{X=Math.abs(X);var c=edJ(this,X<=1?0:Eu5(X)).divisorBase;X=edJ(this,c+Eu5(trq(this,uR(X,-c)).intValue))}D=uR(D,-X.divisorBase);(c=D<0||D==0&&1/D<0)?X.negative_prefix?C.push(X.negative_prefix):(C.push(X.prefix),C.push(this.negativePrefix_)):(C.push(X.prefix),C.push(this.positivePrefix_));if(isFinite(D))if(D*=
c?-1:1,D*=this.multiplier_,this.useExponentialNotation_){var W=D;if(W==0)NUC(this,W,this.minimumIntegerDigits_,C),YNM(this,0,C);else{var p=Math.floor(Math.log(W)/Math.log(10)+2E-15);W=uR(W,-p);var g=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(g=p%this.maximumIntegerDigits_,g<0&&(g=this.maximumIntegerDigits_+g),W=uR(W,g),p-=g,g=1):this.minimumIntegerDigits_<1?(p++,W=uR(W,-1)):(p-=this.minimumIntegerDigits_-1,W=uR(W,this.minimumIntegerDigits_-
1));NUC(this,W,g,C);YNM(this,p,C)}}else NUC(this,D,this.minimumIntegerDigits_,C);else C.push(P8(this).INFINITY);c?X.negative_suffix?C.push(X.negative_suffix):(isFinite(D)&&C.push(X.suffix),C.push(this.negativeSuffix_)):(isFinite(D)&&C.push(X.suffix),C.push(this.positiveSuffix_));return C.join("")};
var trq=function(D,C){var X=uR(C,D.maximumFractionDigits_);D.significantDigits_>0&&(X=yGq(X,D.significantDigits_,D.maximumFractionDigits_));X=Math.round(X);if(isFinite(X)){var c=Math.floor(uR(X,-D.maximumFractionDigits_));X=Math.floor(X-uR(c,D.maximumFractionDigits_));if(X<0||X>=uR(1,D.maximumFractionDigits_))c=Math.round(C),X=0}else c=C,X=0;return{intValue:c,fracValue:X}},NUC=function(D,C,X,c){if(D.minimumFractionDigits_>D.maximumFractionDigits_)throw Error("le");
c||(c=[]);C=trq(D,C);var W=C.intValue,p=C.fracValue,g=D.minimumFractionDigits_>0||p>0||!1;C=D.minimumFractionDigits_;g&&(C=D.minimumFractionDigits_);for(var a="",O=W;O>1E20;)a="0"+a,O=Math.round(uR(O,-1));a=O+a;var P=P8(D).DECIMAL_SEP;O=P8(D).ZERO_DIGIT.codePointAt(0);var k=a.length,u=0;if(W>0||X>0){for(W=k;W<X;W++)c.push(String.fromCodePoint(O));if(D.groupingArray_.length>=2)for(X=1;X<D.groupingArray_.length;X++)u+=D.groupingArray_[X];X=k-u;if(X>0){W=D.groupingArray_;u=k=0;for(var Q,B=P8(D).GROUP_SEP,
K=a.length,L=0;L<K;L++)if(c.push(String.fromCodePoint(O+Number(a.charAt(L)))),K-L>1)if(Q=W[u],L<X){var t=X-L;(Q===1||Q>0&&t%Q===1)&&c.push(B)}else u<W.length&&(L===X?u+=1:Q===L-X-k+1&&(c.push(B),k+=Q,u+=1))}else{X=a;a=D.groupingArray_;W=P8(D).GROUP_SEP;Q=X.length;B=[];for(k=a.length-1;k>=0&&Q>0;k--){u=a[k];for(K=0;K<u&&Q-K-1>=0;K++)B.push(String.fromCodePoint(O+Number(X.charAt(Q-K-1))));Q-=u;Q>0&&B.push(W)}c.push.apply(c,B.reverse())}}else g||c.push(String.fromCodePoint(O));(D.decimalSeparatorAlwaysShown_||
g)&&c.push(P);p=String(p);g=p.split("e+");g.length==2&&(p=String(yGq(parseFloat(g[0]),D.significantDigits_,1)),p=p.replace(".",""),p+=(0,_.INJ)("0",parseInt(g[1],10)-p.length+1));D.maximumFractionDigits_+1>p.length&&(p="1"+(0,_.INJ)("0",D.maximumFractionDigits_-p.length)+p);for(D=p.length;p.charAt(D-1)=="0"&&D>C+1;)D--;for(C=1;C<D;C++)c.push(String.fromCodePoint(O+Number(p.charAt(C))))},YNM=function(D,C,X){X.push(P8(D).EXP_SYMBOL);
C<0?(C=-C,X.push(P8(D).MINUS_SIGN)):D.useSignForPositiveExponent_&&X.push(P8(D).PLUS_SIGN);C=""+C;for(var c=P8(D).ZERO_DIGIT,W=C.length;W<D.minExponentDigits_;W++)X.push(c);D=c.codePointAt(0)-nuk;for(c=0;c<C.length;c++)X.push(String.fromCodePoint(D+C.codePointAt(c)))},mHk=function(D,C){C=C.codePointAt(0);
if(48<=C&&C<58)return C-48;D=P8(D).ZERO_DIGIT.codePointAt(0);return D<=C&&C<D+10?C-D:-1},nuk="0".codePointAt(0),sac=function(D,C,X){for(var c="",W=!1,p=C.length;X[0]<p;X[0]++){var g=C.charAt(X[0]);
if(g=="'")X[0]+1<p&&C.charAt(X[0]+1)=="'"?(X[0]++,c+="'"):W=!W;else if(W)c+=g;else switch(g){case "#":case "0":case ",":case ".":case ";":return c;case "\u00a4":if(X[0]+1<p&&C.charAt(X[0]+1)=="\u00a4")X[0]++,c+=iR(D);else switch(D.currencyStyle_){case 0:g=iR(D);c+=g in SB?SB[g][1]:g;break;case 2:g=iR(D);var a=SB[g];c+=a?g==a[1]?g:g+" "+a[1]:g;break;case 1:g=iR(D),c+=g in SB?SB[g][2]:g}break;case "%":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("me");if(D.negativePercentSignExpected_&&
D.multiplier_!=100)throw Error("ne");D.multiplier_=100;D.negativePercentSignExpected_=!1;c+=P8(D).PERCENT;break;case "\u2030":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("me");if(D.negativePercentSignExpected_&&D.multiplier_!=1E3)throw Error("ne");D.multiplier_=1E3;D.negativePercentSignExpected_=!1;c+=P8(D).PERMILL;break;default:c+=g}}return c},kY={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},edJ=function(D,C){D=D.compactStyle_==1?p0.COMPACT_DECIMAL_SHORT_PATTERN:p0.COMPACT_DECIMAL_LONG_PATTERN;D==null&&(D=p0.COMPACT_DECIMAL_SHORT_PATTERN);if(C<3)return kY;C=Math.min(14,C);var X=D[uR(1,C)];for(--C;!X&&C>=3;)X=D[uR(1,C)],C--;if(!X)return kY;X=X.other;var c=D="",W=X.indexOf(";");W>=0&&(X=X.substring(0,W),W=X.substring(W+1))&&(c=/([^0]*)(0+)(.*)/.exec(W),D=c[1],c=c[3]);return X&&X!="0"?(X=/([^0]*)(0+)(.*)/.exec(X))?{divisorBase:C+
1-(X[2].length-1),negative_prefix:D,negative_suffix:c,prefix:X[1],suffix:X[3]}:kY:kY},Eu5=function(D){if(!isFinite(D))return D>0?D:0;
for(var C=0;(D/=10)>=1;)C++;return C},uR=function(D,C){if(!D||!isFinite(D)||C==0)return D;
D=String(D).split("e");return parseFloat(D[0]+"e"+(parseInt(D[1]||0,10)+C))},wX4=function(D,C){return D&&isFinite(D)?uR(Math.round(uR(D,C)),-C):D},yGq=function(D,C,X){if(!D)return D;
C=C-Eu5(D)-1;return C<-X?wX4(D,-X):wX4(D,C)};var FYq=function(D){return D%10==1&&D%100!=11?"one":D%10==2&&D%100!=12?"two":D%10==3&&D%100!=13?"few":"other"},ZTC=FYq;
ZTC=FYq;var GUk=function(D,C){var X=D|0;if(void 0===C){C=Math;var c=C.min,W=D+"",p=W.indexOf(".");C=c.call(C,p===-1?0:W.length-p-1,3)}c=Math.pow(10,C);D={v:C,f:(D*c|0)%c};return X==1&&D.v==0?"one":"other"},G1=GUk;
G1=GUk;var JGb=function(D){this.JSC$11620_pattern_=D;this.parsedPattern_=this.literals_=this.initialLiterals_=null;D=KYb;var C=p0;if(VrJ!==D||TUC!==C)VrJ=D,TUC=C,HTM=new _.VZ(1);this.numberFormatter_=HTM},VrJ=null,TUC=null,HTM=null,zdC=RegExp("'([{}#].*?)'","g"),jak=RegExp("''","g");
JGb.prototype.format=function(D){if(this.JSC$11620_pattern_){this.initialLiterals_=[];var C=Mrf(this,this.JSC$11620_pattern_);this.parsedPattern_=qNM(this,C);this.JSC$11620_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ho(this.initialLiterals_),C=[],fw5(this,this.parsedPattern_,D,!1,C),D=C.join("");this.literals_.length>0;)D=D.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else D="";return D};
var fw5=function(D,C,X,c,W){for(var p=0;p<C.length;p++)switch(C[p].type){case 4:W.push(C[p].value);break;case 3:var g=C[p].value;var a=D,O=W,P=X[g];P===void 0?O.push("Undefined parameter - "+g):(a.literals_.push(P),O.push(a.buildPlaceholder_(a.literals_)));break;case 2:g=C[p].value;a=D;O=X;P=c;var k=W,u=g.argumentIndex;O[u]===void 0?k.push("Undefined parameter - "+u):(u=g[O[u]],u===void 0&&(u=g.other),fw5(a,u,O,P,k));break;case 0:g=C[p].value;dH5(D,g,X,G1,c,W);break;case 1:g=C[p].value,dH5(D,g,X,
ZTC,c,W)}},dH5=function(D,C,X,c,W,p){var g=C.argumentIndex,a=C.argumentOffset,O=+X[g];
isNaN(O)?p.push("Undefined or invalid parameter - "+g):(a=O-a,g=C[X[g]],g===void 0&&(c=c(Math.abs(a)),g=C[c],g===void 0&&(g=C.other)),C=[],fw5(D,g,X,W,C),X=C.join(""),W?p.push(X):(D=D.numberFormatter_.format(a),p.push(X.replace(/#/g,D))))},Mrf=function(D,C){var X=D.initialLiterals_,c=D.buildPlaceholder_.bind(D);
C=C.replace(jak,function(){X.push("'");return c(X)});
return C=C.replace(zdC,function(W,p){X.push(p);return c(X)})},RdN=function(D){var C=0,X=[],c=[],W=/[{}]/g;
W.lastIndex=0;for(var p;p=W.exec(D);){var g=p.index;p[0]=="}"?(X.pop(),X.length==0&&(p={type:1},p.value=D.substring(C,g),c.push(p),C=g+1)):(X.length==0&&(C=D.substring(C,g),C!=""&&c.push({type:0,value:C}),C=g+1),X.push("{"))}D=D.substring(C);D!=""&&c.push({type:0,value:D});return c},lwM=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Dog=/^\s*(\w+)\s*,\s*selectordinal\s*,/,CyM=/^\s*(\w+)\s*,\s*select\s*,/,qNM=function(D,C){var X=[];
C=RdN(C);for(var c=0;c<C.length;c++){var W={};if(0==C[c].type)W.type=4,W.value=C[c].value;else if(1==C[c].type){var p=C[c].value;switch(lwM.test(p)?0:Dog.test(p)?1:CyM.test(p)?2:/^\s*\w+\s*/.test(p)?3:5){case 2:W.type=2;W.value=XCJ(D,C[c].value);break;case 0:W.type=0;W.value=cmN(D,C[c].value);break;case 1:W.type=1;W.value=ofJ(D,C[c].value);break;case 3:W.type=3,W.value=C[c].value}}X.push(W)}return X},XCJ=function(D,C){var X="";
C=C.replace(CyM,function(a,O){X=O;return""});
var c={};c.argumentIndex=X;C=RdN(C);for(var W=0;W<C.length;){var p=C[W].value;W++;var g=void 0;1==C[W].type&&(g=qNM(D,C[W].value));c[p.replace(/\s/g,"")]=g;W++}return c},cmN=function(D,C){var X="",c=0;
C=C.replace(lwM,function(O,P,k){X=P;k&&(c=parseInt(k,10));return""});
var W={};W.argumentIndex=X;W.argumentOffset=c;C=RdN(C);for(var p=0;p<C.length;){var g=C[p].value;p++;var a=void 0;1==C[p].type&&(a=qNM(D,C[p].value));W[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=a;p++}return W},ofJ=function(D,C){var X="";
C=C.replace(Dog,function(a,O){X=O;return""});
var c={};c.argumentIndex=X;c.argumentOffset=0;C=RdN(C);for(var W=0;W<C.length;){var p=C[W].value;W++;var g=void 0;1==C[W].type&&(g=qNM(D,C[W].value));c[p.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;W++}return c};
JGb.prototype.buildPlaceholder_=function(D){return"\ufddf_"+(D.length-1).toString(10)+"_"};var gih=function(){var D={style:1},C=Wdc;this.style_=(D==null?void 0:D.style)||0;this.durationSymbols_=C||uv4},pCN=function(D,C){switch(C){default:case "years":return D.durationSymbols_.YEAR;
case "months":return D.durationSymbols_.MONTH;case "weeks":return D.durationSymbols_.WEEK;case "days":return D.durationSymbols_.DAY;case "hours":return D.durationSymbols_.HOUR;case "minutes":return D.durationSymbols_.MINUTE;case "seconds":return D.durationSymbols_.SECOND}},Qe=function(D,C,X){a:{X=pCN(D,X);
switch(D.style_){case 1:if(X.LONG!=void 0){D=X.LONG;break a}case 2:if(X.NARROW!=void 0){D=X.NARROW;break a}default:D=X.SHORT;break a}D=void 0}return D?(new JGb("{DURATION_VALUE,plural,"+D+"}")).format({DURATION_VALUE:C}):""};
gih.prototype.format=function(D){var C=[],X=D.years,c=D.months,W=D.weeks,p=D.days,g=D.hours,a=D.minutes;D=D.seconds;X!=null&&C.push(Qe(this,X,"years"));c!=null&&C.push(Qe(this,c,"months"));W!=null&&C.push(Qe(this,W,"weeks"));p!=null&&C.push(Qe(this,p,"days"));g!=null&&C.push(Qe(this,g,"hours"));a!=null&&C.push(Qe(this,a,"minutes"));D!=null&&C.push(Qe(this,D,"seconds"));return(new BUx).format(C)};var SWe;
SWe={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 KOo=function(){this.rdtfSymbols_=Uof||SWe;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
KOo.prototype.format=function(D,C){a:{C=gfM(this,C);switch(this.style_){case 2:if(C.NARROW!=void 0){C=C.NARROW;break a}case 1:if(C.SHORT!=void 0){C=C.SHORT;break a}default:C=C.LONG;break a}C=void 0}if(!this.alwaysNumeric_&&C&&C.R&&C.R[""+D])D=C.R[""+D];else if(C){var X=Math.abs(D);D=(new JGb("{N,plural,"+(D>0||D==0&&1/D==Infinity?C.F:C.P)+"}")).format({N:X})}else D="";return D};
var gfM=function(D,C){switch(C){default:case 0:return D.rdtfSymbols_.YEAR;case 1:return D.rdtfSymbols_.QUARTER;case 2:return D.rdtfSymbols_.MONTH;case 3:return D.rdtfSymbols_.WEEK;case 4:return D.rdtfSymbols_.DAY;case 5:return D.rdtfSymbols_.HOUR;case 6:return D.rdtfSymbols_.MINUTE;case 7:return D.rdtfSymbols_.SECOND}};var aTg=function(D,C,X,c,W,p,g,a){this.x0=D;this.y0=C;this.x1=X;this.y1=c;this.x2=W;this.y2=p;this.x3=g;this.y3=a};
aTg.prototype.clone=function(){return new aTg(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
aTg.prototype.equals=function(D){return this.x0==D.x0&&this.y0==D.y0&&this.x1==D.x1&&this.y1==D.y1&&this.x2==D.x2&&this.y2==D.y2&&this.x3==D.x3&&this.y3==D.y3};
var IT5=function(D,C){if(C==0)return D.x0;if(C==1)return D.x3;var X=YJ(D.x0,D.x1,C),c=YJ(D.x1,D.x2,C);D=YJ(D.x2,D.x3,C);X=YJ(X,c,C);c=YJ(c,D,C);return YJ(X,c,C)},Omg=function(D,C){var X=(C-D.x0)/(D.x3-D.x0);
if(X<=0)return 0;if(X>=1)return 1;for(var c=0,W=1,p=0,g=0;g<8;g++){p=IT5(D,X);var a=(IT5(D,X+1E-6)-p)/1E-6;if(Math.abs(p-C)<1E-6)return X;if(Math.abs(a)<1E-6)break;else p<C?c=X:W=X,X-=(p-C)/a}for(g=0;Math.abs(p-C)>1E-6&&g<8;g++)p<C?(c=X,X=(X+W)/2):(W=X,X=(X+c)/2),p=IT5(D,X);return X};var B8=function(){_.yg.call(this);this.JSC$11641_name_="closure_frame"+Am5++;this.iframesForDisposal_=[];Pyq[this.JSC$11641_name_]=this},bR;
_.WT(B8,_.yg);var Pyq={},Am5=0,$o5=function(D,C){var X=tp(D);iQg(C,function(c,W){Array.isArray(c)||(c=[c]);_.pC(c,function(p){p=X.JSC$9493_createDom("INPUT",{type:"hidden",name:W,value:p});D.appendChild(p)})})};
_.S=B8.prototype;_.S.JSC$11643_form_=null;_.S.JSC$11643_iframe_=null;_.S.iframeName_=null;_.S.nextIframeId_=0;_.S.JSC$11643_active_=!1;_.S.complete_=!1;_.S.success_=!1;_.S.lastContent_=null;_.S.JSC$11643_lastErrorCode_=0;_.S.iframeDisposalTimer_=null;
_.S.send=function(D,C,X,c){if(this.JSC$11643_active_)throw Error("te");D=new _.H7(D);C=C?C.toUpperCase():"GET";X&&_.bF(D);bR||(bR=_.FD("FORM"),bR.acceptCharset="utf-8",X=bR.style,X.position="absolute",X.visibility="hidden",X.top=X.left="-10px",X.width=X.height="10px",X.overflow="hidden",document.body.appendChild(bR));this.JSC$11643_form_=bR;C=="GET"&&$o5(this.JSC$11643_form_,D.JSC$10197_queryData_);c&&$o5(this.JSC$11643_form_,c);X=D.toString();X=TT5(X);c=this.JSC$11643_form_;X=_.qJ(nf(X));X!==void 0&&
(c.action=X);this.JSC$11643_form_.method=C;vf5(this);imx(this)};
_.S.abort=function(D){if(this.JSC$11643_active_){var C=rP(this);if(C)if(t3(C))C.removeAllListeners(void 0);else if(C=N$(C)){var X=0,c;for(c in C.listeners)for(var W=C.listeners[c].concat(),p=0;p<W.length;++p)Bc(W[p])&&++X}this.success_=this.JSC$11643_active_=this.complete_=!1;this.JSC$11643_lastErrorCode_=D||7;this.dispatchEvent("abort");ktC(this)}};
_.S.disposeInternal=function(){this.JSC$11643_active_&&this.abort();B8.superClass_.disposeInternal.call(this);this.JSC$11643_iframe_&&u1x(this);imx(this);this.JSC$11643_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11643_form_=null;this.JSC$11643_lastErrorCode_=0;delete Pyq[this.JSC$11641_name_]};
_.S.isComplete=function(){return this.complete_};
_.S.isSuccess=function(){return this.success_};
_.S.isActive=function(){return this.JSC$11643_active_};
_.S.getResponseText=function(){return this.lastContent_};
_.S.getLastError=function(){return _.zjk(this.JSC$11643_lastErrorCode_)};
var vf5=function(D){D.JSC$11643_active_=!0;D.complete_=!1;D.JSC$11643_lastErrorCode_=0;D.iframeName_=D.JSC$11641_name_+"_"+(D.nextIframeId_++).toString(36);D.JSC$11643_iframe_=tp(D.JSC$11643_form_).JSC$9493_createDom("IFRAME",{name:D.iframeName_,id:D.iframeName_});var C=D.JSC$11643_iframe_.style;C.visibility="hidden";C.width=C.height="10px";C.display="none";_.Ik?C.marginTop=C.marginLeft="-10px":(C.position="absolute",C.top=C.left="-10px");tp(D.JSC$11643_form_).JSC$9491_document_.body.appendChild(D.JSC$11643_iframe_);
C=D.iframeName_+"_inner";var X=EXe(D.JSC$11643_iframe_);if(document.baseURI){var c=aa(C);c='<head><base href="'+aa(document.baseURI)+'"></head><body><iframe id="'+c+'" name="'+c+'"></iframe>';c=RH(c)}else c=aa(C),c=RH('<body><iframe id="'+c+'" name="'+c+'"></iframe>');X.write(lU(c));_.Kb(X.getElementById(C),"load",D.onIframeLoaded_,!1,D);c=Ee("TEXTAREA",D.JSC$11643_form_);for(var W=0,p=c.length;W<p;W++){var g=c[W].value;wdk(c[W])!=g&&(_.zi(c[W],g),c[W].value=g)}c=X.importNode(D.JSC$11643_form_,!0);
c.target=C;c.action=D.JSC$11643_form_.action;X.body.appendChild(c);W=Ee("SELECT",D.JSC$11643_form_);p=Ee("SELECT",c);g=0;for(var a=W.length;g<a;g++)for(var O=Ee("OPTION",W[g]),P=Ee("OPTION",p[g]),k=0,u=O.length;k<u;k++)P[k].selected=O[k].selected;W=Ee("INPUT",D.JSC$11643_form_);p=Ee("INPUT",c);g=0;for(a=W.length;g<a;g++)if(W[g].type=="file"&&W[g].value!=p[g].value){D.JSC$11643_form_.target=C;c=D.JSC$11643_form_;break}try{D.errorHandled_=!1,c.submit(),X.close(),_.ak&&setTimeout(D.testForFirefoxSilentError_.bind(D),
250)}catch(Q){_.Y1(X.getElementById(C),"load",D.onIframeLoaded_,!1,D),X.close(),K0(D,2)}};
B8.prototype.onIframeLoaded_=function(){_.Y1(rP(this),"load",this.onIframeLoaded_,!1,this);try{var D=this.JSC$11643_iframe_?EXe(rP(this)):null;this.complete_=!0;this.JSC$11643_active_=!1;try{var C=D.body;this.lastContent_=C.textContent||C.innerText}catch(W){var X=1}var c;X||typeof this.errorChecker_!="function"||(c=this.errorChecker_(D))&&(X=4);X?K0(this,X):(this.success_=!0,this.JSC$11643_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),ktC(this))}catch(W){K0(this,1)}};
var K0=function(D,C){D.errorHandled_||(D.success_=!1,D.JSC$11643_active_=!1,D.complete_=!0,D.JSC$11643_lastErrorCode_=C,D.dispatchEvent("complete"),D.dispatchEvent("error"),ktC(D),D.errorHandled_=!0)},ktC=function(D){u1x(D);
imx(D);D.JSC$11643_form_=null;D.dispatchEvent("ready")},u1x=function(D){var C=D.JSC$11643_iframe_;
C&&(C.onreadystatechange=null,C.onload=null,C.onerror=null,D.iframesForDisposal_.push(C));D.iframeDisposalTimer_&&(clearTimeout(D.iframeDisposalTimer_),D.iframeDisposalTimer_=null);_.ak?D.iframeDisposalTimer_=setTimeout(D.disposeIframes_.bind(D),2E3):D.disposeIframes_();D.JSC$11643_iframe_=null;D.iframeName_=null};
B8.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var D=this.iframesForDisposal_.pop();_.ep(D)}};
var imx=function(D){D.JSC$11643_form_&&D.JSC$11643_form_==bR&&_.VM(D.JSC$11643_form_)},rP=function(D){return D.JSC$11643_iframe_?EXe(D.JSC$11643_iframe_).getElementById(D.iframeName_+"_inner"):null};
B8.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11643_active_){var D=this.JSC$11643_iframe_?EXe(rP(this)):null;D&&!ypJ(D,"documentUri")?(_.Y1(rP(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?K0(this,3):K0(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.hn=function(D){return D=="\r"||D=="\n"||D==" "||D=="\t"};var Q9N;_.xY=function(D){this.errorMessage_=null;this.result_=[];this.JSC$11645_buffer_="";this.stack_=[];this.JSC$11645_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!D||!D.deliverMessageAsRawString)};
Q9N={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};_.xY.prototype.isInputValid=function(){return this.streamState_!=3};
_.xY.prototype.done=function(){return this.streamState_===2};
var L0=function(D,C,X){D.streamState_=3;D.errorMessage_="The stream is broken @"+D.JSC$11645_pos_+"/"+X+". With input:\n"+C;throw Error(D.errorMessage_);};
_.xY.prototype.acceptsBinaryInput=function(){return!1};
_.xY.prototype.parse=function(D){function C(){for(;Q<D.length;)if(_.hn(D[Q]))Q++,p.JSC$11645_pos_++;else break;return Q<P}
function X(){for(var K;;){K=D[Q++];if(!K)break;p.JSC$11645_pos_++;switch(p.state_){case O.INIT:K==="{"?p.state_=O.OBJECT_OPEN:K==="["?p.state_=O.ARRAY_OPEN:_.hn(K)||L0(p,D,Q);continue;case O.KEY_START:case O.OBJECT_OPEN:if(_.hn(K))continue;if(p.state_===O.KEY_START)g.push(O.KEY_END);else if(K==="}"){W("{}");p.state_=c();continue}else g.push(O.OBJECT_END);K==='"'?p.state_=O.STRING:L0(p,D,Q);continue;case O.KEY_END:case O.OBJECT_END:if(_.hn(K))continue;K===":"?(p.state_===O.OBJECT_END&&(g.push(O.OBJECT_END),
p.depth_++),p.state_=O.VALUE):K==="}"?(p.depth_--,W(),p.state_=c()):K===","?(p.state_===O.OBJECT_END&&g.push(O.OBJECT_END),p.state_=O.KEY_START):L0(p,D,Q);continue;case O.ARRAY_OPEN:case O.VALUE:if(_.hn(K))continue;if(p.state_===O.ARRAY_OPEN)if(p.depth_++,p.state_=O.VALUE,K==="]"){p.depth_--;if(p.depth_===0){p.state_=O.ARRAY_END;return}W("[]");p.state_=c();continue}else g.push(O.ARRAY_END);K==='"'?p.state_=O.STRING:K==="{"?p.state_=O.OBJECT_OPEN:K==="["?p.state_=O.ARRAY_OPEN:K==="t"?p.state_=O.TRUE1:
K==="f"?p.state_=O.FALSE1:K==="n"?p.state_=O.NULL1:K!=="-"&&("0123456789".indexOf(K)!==-1?p.state_=O.NUM_DIGIT:L0(p,D,Q));continue;case O.ARRAY_END:if(K===",")g.push(O.ARRAY_END),p.state_=O.VALUE,p.depth_===1&&(u=Q);else if(K==="]"){p.depth_--;if(p.depth_===0)return;W();p.state_=c()}else if(_.hn(K))continue;else L0(p,D,Q);continue;case O.STRING:var L=Q;a:for(;;){for(;p.unicodeCount_>0;)if(K=D[Q++],p.unicodeCount_===4?p.unicodeCount_=0:p.unicodeCount_++,!K)break a;if(K==='"'&&!p.slashed_){p.state_=
c();break}if(K==="\\"&&!p.slashed_&&(p.slashed_=!0,K=D[Q++],!K))break;if(p.slashed_)if(p.slashed_=!1,K==="u"&&(p.unicodeCount_=1),K=D[Q++])continue;else break;a.lastIndex=Q;K=a.exec(D);if(!K){Q=D.length+1;break}Q=K.index+1;K=D[K.index];if(!K)break}p.JSC$11645_pos_+=Q-L;continue;case O.TRUE1:if(!K)continue;K==="r"?p.state_=O.TRUE2:L0(p,D,Q);continue;case O.TRUE2:if(!K)continue;K==="u"?p.state_=O.TRUE3:L0(p,D,Q);continue;case O.TRUE3:if(!K)continue;K==="e"?p.state_=c():L0(p,D,Q);continue;case O.FALSE1:if(!K)continue;
K==="a"?p.state_=O.FALSE2:L0(p,D,Q);continue;case O.FALSE2:if(!K)continue;K==="l"?p.state_=O.FALSE3:L0(p,D,Q);continue;case O.FALSE3:if(!K)continue;K==="s"?p.state_=O.FALSE4:L0(p,D,Q);continue;case O.FALSE4:if(!K)continue;K==="e"?p.state_=c():L0(p,D,Q);continue;case O.NULL1:if(!K)continue;K==="u"?p.state_=O.NULL2:L0(p,D,Q);continue;case O.NULL2:if(!K)continue;K==="l"?p.state_=O.NULL3:L0(p,D,Q);continue;case O.NULL3:if(!K)continue;K==="l"?p.state_=c():L0(p,D,Q);continue;case O.NUM_DECIMAL_POINT:K===
"."?p.state_=O.NUM_DIGIT:L0(p,D,Q);continue;case O.NUM_DIGIT:if("0123456789.eE+-".indexOf(K)!==-1)continue;else Q--,p.JSC$11645_pos_--,p.state_=c();continue;default:L0(p,D,Q)}}}
function c(){var K=g.pop();return K!=null?K:O.VALUE}
function W(K){p.depth_>1||(K||(K=u===-1?p.JSC$11645_buffer_+D.substring(k,Q):D.substring(u,Q)),p.deliverMessageAsRawString_?p.result_.push(K):p.result_.push(JSON.parse(K)),u=Q)}
for(var p=this,g=p.stack_,a=p.stringInputPattern_,O=Q9N,P=D.length,k=0,u=-1,Q=0;Q<P;)switch(p.streamState_){case 3:return L0(p,D,Q),null;case 2:return C()&&L0(p,D,Q),null;case 0:if(C()){var B=D[Q++];p.JSC$11645_pos_++;if(B==="["){p.streamState_=1;k=Q;p.state_=O.ARRAY_OPEN;continue}else L0(p,D,Q)}return null;case 1:return X(),p.depth_===0&&p.state_==O.ARRAY_END?(p.streamState_=2,p.JSC$11645_buffer_=D.substring(Q)):p.JSC$11645_buffer_=u===-1?p.JSC$11645_buffer_+D.substring(k):D.substring(u),p.result_.length>
0?(B=p.result_,p.result_=[],B):null}return null};_.WT(_.Kl,V3);h0.prototype.getValue=function(){return this.JSC$11653_value_};
h0.prototype.clone=function(){return new h0(this.JSC$11653_key_,this.JSC$11653_value_)};var sv=function(D){this.nodes_=[];if(D)a:{if(D instanceof sv){var C=D.getKeys();D=D.getValues();if(this.getCount()<=0){for(var X=this.nodes_,c=0;c<C.length;c++)X.push(new h0(C[c],D[c]));break a}}else C=_.ZI.getKeys(D),D=_.ZI.getValues(D);for(X=0;X<C.length;X++)this.insert(C[X],D[X])}};
_.S=sv.prototype;_.S.insert=function(D,C){var X=this.nodes_;X.push(new h0(D,C));D=X.length-1;C=this.nodes_;for(X=C[D];D>0;){var c=D-1>>1;if(C[c].JSC$11653_key_>X.JSC$11653_key_)C[D]=C[c],D=c;else break}C[D]=X};
_.S.remove=function(){var D=this.nodes_,C=D.length,X=D[0];if(!(C<=0)){if(C==1)D.length=0;else{D[0]=D.pop();D=0;C=this.nodes_;for(var c=C.length,W=C[D];D<c>>1;){var p=D*2+1,g=D*2+2;p=g<c&&C[g].JSC$11653_key_<C[p].JSC$11653_key_?g:p;if(C[p].JSC$11653_key_>W.JSC$11653_key_)break;C[D]=C[p];D=p}C[D]=W}return X.getValue()}};
_.S.peek=function(){var D=this.nodes_;if(D.length!=0)return D[0].getValue()};
_.S.getValues=function(){for(var D=this.nodes_,C=[],X=D.length,c=0;c<X;c++)C.push(D[c].getValue());return C};
_.S.getKeys=function(){for(var D=this.nodes_,C=[],X=D.length,c=0;c<X;c++)C.push(D[c].JSC$11653_key_);return C};
_.S.containsValue=function(D){return this.nodes_.some(function(C){return C.getValue()==D})};
_.S.containsKey=function(D){return this.nodes_.some(function(C){return C.JSC$11653_key_==D})};
_.S.clone=function(){return new sv(this)};
_.S.getCount=function(){return this.nodes_.length};
_.S.isEmpty=function(){return this.nodes_.length===0};
_.S.clear=function(){this.nodes_.length=0};_.Ev=function(D,C){this.JSC$11659_map_={};this.JSC$11659_keys_=[];this.version_=this.size=0;var X=arguments.length;if(X>1){if(X%2)throw Error("ma");for(var c=0;c<X;c+=2)this.set(arguments[c],arguments[c+1])}else D&&this.addAll(D)};
_.S=_.Ev.prototype;_.S.getCount=function(){return this.size};
_.S.getValues=function(){tn(this);for(var D=[],C=0;C<this.JSC$11659_keys_.length;C++)D.push(this.JSC$11659_map_[this.JSC$11659_keys_[C]]);return D};
_.S.getKeys=function(){tn(this);return this.JSC$11659_keys_.concat()};
_.S.containsKey=function(D){return this.has(D)};
_.S.has=function(D){return ND(this.JSC$11659_map_,D)};
_.S.containsValue=function(D){for(var C=0;C<this.JSC$11659_keys_.length;C++){var X=this.JSC$11659_keys_[C];if(ND(this.JSC$11659_map_,X)&&this.JSC$11659_map_[X]==D)return!0}return!1};
_.S.equals=function(D,C){if(this===D)return!0;if(this.size!=D.getCount())return!1;C=C||BEN;tn(this);for(var X,c=0;X=this.JSC$11659_keys_[c];c++)if(!C(this.get(X),D.get(X)))return!1;return!0};
var BEN=function(D,C){return D===C};
_.Ev.prototype.isEmpty=function(){return this.size==0};
_.Ev.prototype.clear=function(){this.JSC$11659_map_={};this.version_=this.size=this.JSC$11659_keys_.length=0};
_.Ev.prototype.remove=function(D){return this.delete(D)};
_.Ev.prototype.delete=function(D){return ND(this.JSC$11659_map_,D)?(delete this.JSC$11659_map_[D],--this.size,this.version_++,this.JSC$11659_keys_.length>2*this.size&&tn(this),!0):!1};
var tn=function(D){if(D.size!=D.JSC$11659_keys_.length){for(var C=0,X=0;C<D.JSC$11659_keys_.length;){var c=D.JSC$11659_keys_[C];ND(D.JSC$11659_map_,c)&&(D.JSC$11659_keys_[X++]=c);C++}D.JSC$11659_keys_.length=X}if(D.size!=D.JSC$11659_keys_.length){C={};for(c=X=0;X<D.JSC$11659_keys_.length;){var W=D.JSC$11659_keys_[X];ND(C,W)||(D.JSC$11659_keys_[c++]=W,C[W]=1);X++}D.JSC$11659_keys_.length=c}};
_.S=_.Ev.prototype;_.S.get=function(D,C){return ND(this.JSC$11659_map_,D)?this.JSC$11659_map_[D]:C};
_.S.set=function(D,C){ND(this.JSC$11659_map_,D)||(this.size+=1,this.JSC$11659_keys_.push(D),this.version_++);this.JSC$11659_map_[D]=C};
_.S.addAll=function(D){if(D instanceof _.Ev)for(var C=D.getKeys(),X=0;X<C.length;X++)this.set(C[X],D.get(C[X]));else for(C in D)this.set(C,D[C])};
_.S.forEach=function(D,C){for(var X=this.getKeys(),c=0;c<X.length;c++){var W=X[c],p=this.get(W);D.call(C,p,W,this)}};
_.S.clone=function(){return new _.Ev(this)};
_.S.transpose=function(){for(var D=new _.Ev,C=0;C<this.JSC$11659_keys_.length;C++){var X=this.JSC$11659_keys_[C];D.set(this.JSC$11659_map_[X],X)}return D};
_.S.keys=function(){return FU5(this.__iterator__(!0)).toEs6()};
_.S.values=function(){return FU5(this.__iterator__(!1)).toEs6()};
_.S.entries=function(){var D=this;return cl5(this.keys(),function(C){return[C,D.get(C)]})};
_.S.__iterator__=function(D){tn(this);var C=0,X=this.version_,c=this,W=new Qn;W.next=function(){if(X!=c.version_)throw Error("ue");if(C>=c.JSC$11659_keys_.length)return B6;var p=c.JSC$11659_keys_[C++];return b1(D?p:c.JSC$11659_map_[p])};
return W};
var ND=function(D,C){return Object.prototype.hasOwnProperty.call(D,C)};var rm4=function(){this.JSC$11662_map_=new _.Ev;this.JSC$11662_head_=new bme("");this.JSC$11662_head_.next=this.JSC$11662_head_.prev=this.JSC$11662_head_},Kdg=function(D,C){if(C=D.JSC$11662_map_.get(C))C.remove(),D.insert_(C);
return C};
_.S=rm4.prototype;_.S.get=function(D,C){return(D=Kdg(this,D))?D.value:C};
_.S.set=function(D,C){var X=Kdg(this,D);X?X.value=C:(X=new bme(D,C),this.JSC$11662_map_.set(D,X),this.insert_(X))};
_.S.peek=function(){return this.JSC$11662_head_.next.value};
_.S.shift=function(){return h_b(this,this.JSC$11662_head_.next)};
_.S.pop=function(){return h_b(this,this.JSC$11662_head_.prev)};
_.S.remove=function(D){return(D=this.JSC$11662_map_.get(D))?(this.removeNode(D),!0):!1};
_.S.removeNode=function(D){D.remove();this.JSC$11662_map_.remove(D.key)};
_.S.getCount=function(){return this.JSC$11662_map_.getCount()};
_.S.isEmpty=function(){return this.JSC$11662_map_.isEmpty()};
_.S.getKeys=function(){return this.map(function(D,C){return C})};
_.S.getValues=function(){return this.map(function(D){return D})};
_.S.contains=function(D){return this.some(function(C){return C==D})};
_.S.containsKey=function(D){return this.JSC$11662_map_.containsKey(D)};
_.S.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11662_head_.prev)};
_.S.forEach=function(D,C){for(var X=this.JSC$11662_head_.next;X!=this.JSC$11662_head_;X=X.next)D.call(C,X.value,X.key,this)};
_.S.map=function(D,C){for(var X=[],c=this.JSC$11662_head_.next;c!=this.JSC$11662_head_;c=c.next)X.push(D.call(C,c.value,c.key,this));return X};
_.S.some=function(D,C){for(var X=this.JSC$11662_head_.next;X!=this.JSC$11662_head_;X=X.next)if(D.call(C,X.value,X.key,this))return!0;return!1};
_.S.every=function(D,C){for(var X=this.JSC$11662_head_.next;X!=this.JSC$11662_head_;X=X.next)if(!D.call(C,X.value,X.key,this))return!1;return!0};
_.S.insert_=function(D){D.next=this.JSC$11662_head_.next;D.prev=this.JSC$11662_head_;this.JSC$11662_head_.next=D;for(D.next.prev=D;this.getCount()>100;)this.removeNode(this.JSC$11662_head_.prev)};
var h_b=function(D,C){D.JSC$11662_head_!=C&&D.removeNode(C);return C.value},bme=function(D,C){this.key=D;
this.value=C};
bme.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var xoJ=function(){sv.apply(this,arguments)};
_.h(xoJ,sv);xoJ.prototype.enqueue=function(D,C){this.insert(D,C)};var Ldb=function(){var D=Error();D.name="SecurityError";throw D;},LTJ=function(){return{get opener(){return null},
get closed(){return!0},get location(){Ldb()},get document(){Ldb()},postMessage:function(){},
close:function(){},
focus:function(){}}};var uDt={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 bLr={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 s9q={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(bLr).join("|");var moq=function(){function D(a){a.substr(-1)!==";"&&(a+=";");return g(a)}
for(var C=Object.keys(s9q).sort(Bdh),X=Object.keys(bLr).sort(Bdh),c=0,W=0;c<X.length;c++)C[W]===X[c]?(X[c]+=";?",W++):X[c]+=";";var p=new RegExp("&(?:"+X.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=r6m();return function(a){return String(a).replace(p,D)}}();/*

 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 e_d={};var Efd=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"),tbM=/[\\&]/,NEx=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),YWq=RegExp('[&<>"]',"g"),ymf=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),nfb=function(D){return D.charCodeAt(0)===92?D.charAt(1):moq(D)},wCc=function(D){return tbM.test(D)?D.replace(NEx,nfb):D},FdM=function(D){try{var C,X="";
if(typeof W!=="string"){var c=W;var W=";/?:@&=+$,-_.!~*'()#"}typeof c==="undefined"&&(c=!0);var p,g=e_d[W];if(g)var a=g;else{g=e_d[W]=[];for(p=0;p<128;p++){var O=String.fromCharCode(p);/^[0-9a-z]$/i.test(O)?g.push(O):g.push("%"+("0"+p.toString(16).toUpperCase()).slice(-2))}for(p=0;p<W.length;p++)g[W.charCodeAt(p)]=W[p];a=g}var P=0;for(C=D.length;P<C;P++){var k=D.charCodeAt(P);if(c&&k===37&&P+2<C&&/^[0-9a-f]{2}$/i.test(D.slice(P+1,P+3)))X+=D.slice(P,P+3),P+=2;else if(k<128)X+=a[k];else if(k>=55296&&
k<=57343){if(k>=55296&&k<=56319&&P+1<C){var u=D.charCodeAt(P+1);if(u>=56320&&u<=57343){X+=encodeURIComponent(D[P]+D[P+1]);P++;continue}}X+="%EF%BF%BD"}else X+=encodeURIComponent(D[P])}return X}catch(Q){return D}},Zme=function(D){switch(D){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return D}},YY=function(D,C){return YWq.test(D)?C?D.replace(ymf,Zme):D.replace(YWq,Zme):D};/*

 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 ye;if(String.fromCodePoint)ye=function(D){try{return String.fromCodePoint(D)}catch(C){if(C instanceof RangeError)return String.fromCharCode(65533);throw C;}};
else{var Gtf=String.fromCharCode,Vbe=Math.floor;ye=function(){var D=[],C=-1,X=arguments.length;if(!X)return"";for(var c="";++C<X;){var W=Number(arguments[C]);if(!isFinite(W)||W<0||W>1114111||Vbe(W)!==W)return String.fromCharCode(65533);if(W<=65535)D.push(W);else{W-=65536;var p=(W>>10)+55296;W=W%1024+56320;D.push(p,W)}if(C+1===X||D.length>16384)c+=Gtf.apply(null,D),D.length=0}return c}};var TEg=function(D){this.root=this.current=D;this.entering=!0};
TEg.prototype.next=function(){var D=this.current,C=this.entering;if(D===null)return null;a:switch(D._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var X=!0;break a;default:X=!1}C&&X?D._firstChild?(this.current=D._firstChild,this.entering=!0):this.entering=!1:D===this.root?this.current=null:D._next===null?(this.current=
D._parent,this.entering=!1):(this.current=D._next,this.entering=!0);return{entering:C,node:D}};
var Er=function(D,C){this._type=D;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=C;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Er.prototype.appendChild=function(D){D.unlink();D._parent=this;this._lastChild?(this._lastChild._next=D,D._prev=this._lastChild):this._firstChild=D;this._lastChild=D};
Er.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var HmJ=function(D,C){C.unlink();C._next=D._next;C._next&&(C._next._prev=C);C._prev=D;D._next=C;C._parent=D._parent;C._next||(C._parent._lastChild=C)};
Er.prototype.insertBefore=function(D){D.unlink();D._prev=this._prev;D._prev&&(D._prev._next=D);D._next=this;this._prev=D;D._parent=this._parent;D._prev||(D._parent._firstChild=D)};
_.$a.Object.defineProperties(Er.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(D){this._literal=D}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(D){this._destination=D}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(D){this._title=D}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(D){this._info=D}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(D){this._level=D}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(D){this._listData.type=D}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(D){this._listData.tight=D}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(D){this._listData.start=D}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(D){this._onEnter=D}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(D){this._onExit=D}}});var KEd=/[ \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,
hJh={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 Jmb=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]/),
z_5=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),j9q=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),MbC=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),qWC=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),fT5=/`+/,doN=/^`+/,R_4=/\.\.\./g,lT5=/--+/g,D8g=/^<([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])?)*)>/,
CTd=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,XRJ=/^ *(?:\n *)?/,cTg=/^[ \t\n\x0b\x0c\x0d]/,ow5=/[ \t\n\x0b\x0c\x0d]+/g,Wwk=/^\s/,pR5=/ *$/,S3k=/^ */,U8M=/^ *(?:\n|$)/,gwC=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),at5=/^[^\n`\[\]\\!<&*_'"]+/m,n0=function(D){var C=new Er("text");C._literal=D;return C},wP=function(D){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=D||{}};
wP.prototype.match=function(D){D=D.exec(this.subject.slice(this.pos));if(D===null)return null;this.pos+=D.index+D[0].length;return D[0]};
wP.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Fl=function(D){D.match(XRJ);return!0},Itf=function(D,C,X){var c=0;
var W=D.pos;if(C===39||C===34)c++,D.pos++;else for(;D.peek()===C;)c++,D.pos++;if(c===0)c=null;else{var p=W===0?"\n":D.subject.charAt(W-1);var g=D.peek();g=g===-1?"\n":ye(g);var a=Wwk.test(g);g=Jmb.test(g);var O=Wwk.test(p);var P=Jmb.test(p);p=!a&&!(g&&!O&&!P);a=!O&&!(P&&!a&&!g);C===95?(O=p&&(!a||P),g=a&&(!p||g)):(O=C===39||C===34?p&&!a:p,g=a);D.pos=W;c={numdelims:c,can_open:O,can_close:g}}if(!c)return!1;W=c.numdelims;g=D.pos;D.pos+=W;g=C===39?"\u2019":C===34?"\u201c":D.subject.slice(g,D.pos);g=n0(g);
X.appendChild(g);D.delimiters={cc:C,numdelims:W,origdelims:W,node:g,previous:D.delimiters,next:null,can_open:c.can_open,can_close:c.can_close};D.delimiters.previous!==null&&(D.delimiters.previous.next=D.delimiters);return!0},On5=function(D,C){C.previous!==null&&(C.previous.next=C.next);
C.next===null?D.delimiters=C.previous:C.next.previous=C.previous},ATM=function(D,C){var X,c,W=[],p=!1;
W[95]=C;W[42]=C;W[39]=C;W[34]=C;for(X=D.delimiters;X!==null&&X.previous!==C;)X=X.previous;for(;X!==null;){var g=X.cc;if(X.can_close){var a=X.previous;for(c=!1;a!==null&&a!==C&&a!==W[g];){p=(X.can_open||a.can_close)&&(a.origdelims+X.origdelims)%3===0;if(a.cc===X.cc&&a.can_open&&!p){c=!0;break}a=a.previous}var O=X;if(g===42||g===95)if(c){var P=X.numdelims>=2&&a.numdelims>=2?2:1;var k=a.node;var u=X.node;a.numdelims-=P;X.numdelims-=P;k._literal=k._literal.slice(0,k._literal.length-P);u._literal=u._literal.slice(0,
u._literal.length-P);var Q=new Er(P===1?"emph":"strong");for(P=k._next;P&&P!==u;){var B=P._next;P.unlink();Q.appendChild(P);P=B}HmJ(k,Q);P=a;B=X;P.next!==B&&(P.next=B,B.previous=P);a.numdelims===0&&(k.unlink(),On5(D,a));X.numdelims===0&&(u.unlink(),a=X.next,On5(D,X),X=a)}else X=X.next;else g===39?(X.node._literal="\u2019",c&&(a.node._literal="\u2018"),X=X.next):g===34&&(X.node._literal="\u201d",c&&(a.node.literal="\u201c"),X=X.next);c||p||(W[g]=O.previous,O.can_open||On5(D,O))}else X=X.next}for(;D.delimiters!==
null&&D.delimiters!==C;)On5(D,D.delimiters)},PTb=function(D){D=D.match(z_5);
return D===null?null:wCc(D.substr(1,D.length-2))},$8b=function(D){var C=D.match(j9q);
if(C===null){C=D.pos;for(var X=0,c;(c=D.peek())!==-1;)if(c===92)D.pos+=1,D.peek()!==-1&&(D.pos+=1);else if(c===40)D.pos+=1,X+=1;else if(c===41)if(X<1)break;else D.pos+=1,--X;else if(cTg.exec(ye(c))!==null)break;else D.pos+=1;C=D.subject.substr(C,D.pos-C);return FdM(wCc(C))}return FdM(wCc(C.substr(1,C.length-2)))},vw4=function(D){D=D.match(gwC);
return D===null||D.length>1001?0:D.length},ind=function(D,C,X,c){D.brackets!==null&&(D.brackets.bracketAfter=!0);
D.brackets={node:C,previous:D.brackets,previousDelimiter:D.delimiters,index:X,image:c,active:!0}},k_c=function(D,C){var X;
return(X=D.match(at5))?(D.options.smart?C.appendChild(n0(X.replace(R_4,"\u2026").replace(lT5,function(c){var W=0,p=0;c.length%3===0?p=c.length/3:c.length%2===0?W=c.length/2:c.length%3===2?(W=1,p=(c.length-2)/3):(W=2,p=(c.length-4)/3);c="";var g;for(g=0;g<p;g++)c+="\u2014";for(g=0;g<W;g++)c+="\u2013";return c}))):C.appendChild(n0(X)),!0):!1},uxq=function(D,C,X){D.subject=C;
D.pos=0;C=D.pos;var c=vw4(D);if(c===0)return 0;var W=D.subject.substr(0,c);if(D.peek()===58)D.pos++;else return D.pos=C,0;Fl(D);c=$8b(D);if(c===null||c.length===0)return D.pos=C,0;var p=D.pos;Fl(D);var g=PTb(D);g===null&&(g="",D.pos=p);var a=!0;D.match(U8M)===null&&(g===""?a=!1:(g="",D.pos=p,a=D.match(U8M)!==null));if(!a)return D.pos=C,0;W=xsd(W);if(W==="")return D.pos=C,0;X[W]||(X[W]={destination:c,title:g});return D.pos-C},Q2c=function(D,C){var X,c=D.peek();
if(c===-1)return!1;switch(c){case 10:D.pos+=1;if((X=C._lastChild)&&X.type==="text"&&X._literal[X._literal.length-1]===" "){var W=X._literal[X._literal.length-2]===" ";X._literal=X._literal.replace(pR5,"");C.appendChild(new Er(W?"linebreak":"softbreak"))}else C.appendChild(new Er("softbreak"));D.match(S3k);X=!0;break;case 92:X=D.subject;D.pos+=1;D.peek()===10?(D.pos+=1,X=new Er("linebreak"),C.appendChild(X)):MbC.test(X.charAt(D.pos))?(C.appendChild(n0(X.charAt(D.pos))),D.pos+=1):C.appendChild(n0("\\"));
X=!0;break;case 96:a:if(X=D.match(doN),X===null)X=!1;else{W=D.pos;for(var p;(p=D.match(fT5))!==null;)if(p===X){p=new Er("code");p._literal=D.subject.slice(W,D.pos-X.length).trim().replace(ow5," ");C.appendChild(p);X=!0;break a}D.pos=W;C.appendChild(n0(X));X=!0}break;case 42:case 95:X=Itf(D,c,C);break;case 39:case 34:X=D.options.smart&&Itf(D,c,C);break;case 91:X=D.pos;D.pos+=1;W=n0("[");C.appendChild(W);ind(D,W,X,!1);X=!0;break;case 33:X=D.pos;D.pos+=1;D.peek()===91?(D.pos+=1,W=n0("!["),C.appendChild(W),
ind(D,W,X+1,!0)):C.appendChild(n0("!"));X=!0;break;case 93:var g,a=!1,O;D.pos+=1;var P=D.pos;W=D.brackets;if(W===null)C.appendChild(n0("]"));else if(W.active){X=W.image;var k=D.pos;D.peek()===40&&(D.pos++,Fl(D)&&(p=$8b(D))!==null&&Fl(D)&&(cTg.test(D.subject.charAt(D.pos-1))&&(g=PTb(D)),1)&&Fl(D)&&D.peek()===41?(D.pos+=1,a=!0):D.pos=k);if(!a){var u=D.pos,Q=vw4(D);Q>2?O=D.subject.slice(u,u+Q):W.bracketAfter||(O=D.subject.slice(W.index,P));Q===0&&(D.pos=k);O&&(O=D.refmap[xsd(O)])&&(p=O.destination,g=
O.title,a=!0)}if(a){P=new Er(X?"image":"link");P._destination=p;P._title=g||"";for(p=W.node._next;p;)g=p._next,p.unlink(),P.appendChild(p),p=g;C.appendChild(P);ATM(D,W.previousDelimiter);D.brackets=D.brackets.previous;W.node.unlink();if(!X)for(W=D.brackets;W!==null;)W.image||(W.active=!1),W=W.previous}else D.brackets=D.brackets.previous,D.pos=P,C.appendChild(n0("]"))}else C.appendChild(n0("]")),D.brackets=D.brackets.previous;X=!0;break;case 60:(X=D.match(D8g))?(X=X.slice(1,X.length-1),W=new Er("link"),
W._destination=FdM("mailto:"+X),W._title="",W.appendChild(n0(X)),C.appendChild(W),X=!0):(X=D.match(CTd))?(X=X.slice(1,X.length-1),W=new Er("link"),W._destination=FdM(X),W._title="",W.appendChild(n0(X)),C.appendChild(W),X=!0):X=!1;X||(X=D.match(Efd),X===null?X=!1:(W=new Er("html_inline"),W._literal=X,C.appendChild(W),X=!0));break;case 38:(X=D.match(qWC))?(C.appendChild(n0(moq(X))),X=!0):X=!1;break;default:X=k_c(D,C)}X||(D.pos+=1,C.appendChild(n0(ye(c))));return!0};
wP.prototype.parseInlines=function(D){this.subject=D._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Q2c(this,D););D._string_content=null;ATM(this,null)};
wP.prototype.parse=wP.prototype.parseInlines;var BB5=[/./,/^<(?: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")],bng=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],rT5=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Kwd=/^[#`~*+_=<>0-9-\|]|\|/,hDk=/[^ \t\f\v\r\n]/,x85=/^[*+-]/,LwM=/^(\d{1,9})([.)])/,s2d=/^#{1,6}(?:[ \t]+|$)/,m85=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,eDN=/^(?:`{3,}|~{3,})(?= *$)/,EwN=/^(?:=+|-+)[ \t]*$/,tXC=/\r\n|\n|\r/,sKW=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,mso=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,NBe={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(D,C){for(D=C._firstChild;D;){if(LE5(D)&&D._next){C._listData.tight=!1;break}for(var X=D._firstChild;X;){if(LE5(X)&&(D._next||X._next)){C._listData.tight=!1;break}X=X._next}D=D._next}},
canContain:function(D){return D==="item"},
acceptsLines:!1},block_quote:{continue:function(D){var C=D.currentLine;if(D.indented||mF(C,D.nextNonspace)!==62)return 1;ZK(D);GE(D,1,!1);sr(mF(C,D.offset))&&GE(D,1,!0);return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},item:{continue:function(D,C){if(D.blank){if(C._firstChild==null)return 1;ZK(D)}else if(D.indent>=C._listData.markerOffset+C._listData.padding)GE(D,C._listData.markerOffset+C._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(D){return D!=="item"&&!eJd(D)},
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(D,C){var X=D.currentLine,c=D.indent;if(C._isFenced){if((c=c<=3&&X.charAt(D.nextNonspace)===C._fenceChar&&X.slice(D.nextNonspace).match(eDN))&&c[0].length>=C._fenceLength)return D.finalize(C,D.lineNumber),2;for(C=C._fenceOffset;C>0&&sr(mF(X,D.offset));)GE(D,1,!0),C--}else if(c>=4)GE(D,4,!0);else if(D.blank)ZK(D);else return 1;return 0},
finalize:function(D,C){if(C._isFenced){var X=C._string_content,c=X.indexOf("\n");D=X.slice(0,c);X=X.slice(c+1);C.info=wCc(D.trim());C._literal=X}else C._literal=C._string_content.replace(/(\n *)+$/,"\n");C._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(D,C){return!D.blank||C._htmlBlockType!==6&&C._htmlBlockType!==7?0:1},
finalize:function(D,C){C._literal=C._string_content.replace(/(\n *)+$/,"");C._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(D){return D.blank?1:0},
finalize:function(D,C){for(var X,c=!1;mF(C._string_content,0)===91&&(X=uxq(D.inlineParser,C._string_content,D.refmap));)C._string_content=C._string_content.slice(X),c=!0;c&&!hDk.test(C._string_content)&&C.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(D){return ek(D.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(D){return D=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(D,C){if(!C._rowIsDelimiter){D=C._isHeader?"th":"td";for(var X=C._parent._tableColumns,c=C._string_content,W=0,p="",g,a=C._sourcepos[0][0];W<c.length;){switch(c[W]){case "|":g&&(g._string_content=p.trim(),p="",g=null,X--,X<=0&&(W=c.length));break;default:if(!g){g=new Er(D,[[a,W],[a,W]]);var O=C._parent._columnAlignment,P=C._parent._tableColumns-X;O&&P<=O.length&&P>=0&&(g._alignment=O[P]);C.appendChild(g)}p+=c[W];g._sourcepos[1][1]=W}W++}g&&(g._string_content=p.trim());C._string_content=
""}},
canContain:function(D){return D!=="row"},
acceptsLines:!1}},Y3q=[function(D){if(D.indented||mF(D.currentLine,D.nextNonspace)!==62)return 0;ZK(D);GE(D,1,!1);sr(mF(D.currentLine,D.offset))&&GE(D,1,!0);Ve(D);D.addChild("block_quote",D.nextNonspace);return 1},
function(D){var C;if(!D.indented&&(C=D.currentLine.slice(D.nextNonspace).match(s2d))){ZK(D);GE(D,C[0].length,!1);Ve(D);var X=D.addChild("heading",D.nextNonspace);X.level=C[0].trim().length;X._string_content=D.currentLine.slice(D.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");GE(D,D.currentLine.length-D.offset);return 2}return 0},
function(D){var C;if(!D.indented&&(C=D.currentLine.slice(D.nextNonspace).match(m85))){var X=C[0].length;Ve(D);var c=D.addChild("code_block",D.nextNonspace);c._isFenced=!0;c._fenceLength=X;c._fenceChar=C[0][0];c._fenceOffset=D.indent;ZK(D);GE(D,X,!1);return 2}return 0},
function(D,C){if(!D.indented&&mF(D.currentLine,D.nextNonspace)===60){var X=D.currentLine.slice(D.nextNonspace),c;for(c=1;c<=7;c++)if(BB5[c].test(X)&&(c<7||C.type!=="paragraph"))return Ve(D),D.addChild("html_block",D.offset)._htmlBlockType=c,2}return 0},
function(D,C){var X;if(!D.indented&&C.type==="paragraph"&&(X=D.currentLine.slice(D.nextNonspace).match(EwN))){Ve(D);var c=new Er("heading",C.sourcepos);c.level=X[0][0]==="="?1:2;c._string_content=C._string_content;HmJ(C,c);C.unlink();D.tip=c;GE(D,D.currentLine.length-D.offset,!1);return 2}return 0},
function(D){return!D.indented&&rT5.test(D.currentLine.slice(D.nextNonspace))?(Ve(D),D.addChild("thematic_break",D.nextNonspace),GE(D,D.currentLine.length-D.offset,!1),2):0},
function(D,C){var X,c;if(!(c=D.indented&&C.type!=="list")){a:{var W=C,p=D.currentLine.slice(D.nextNonspace);c={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:D.indent};if(X=p.match(x85))c.type="bullet",c.bulletChar=X[0][0];else{if(!(X=p.match(LwM))||W.type==="paragraph"&&X[1]!=="1"){X=null;break a}c.type="ordered";c.start=parseInt(X[1],10);c.delimiter=X[2]}var g=mF(D.currentLine,D.nextNonspace+X[0].length);if(g!==-1&&g!==9&&g!==32||W.type==="paragraph"&&!D.currentLine.slice(D.nextNonspace+
X[0].length).match(hDk))X=null;else{ZK(D);GE(D,X[0].length,!0);W=D.column;p=D.offset;do GE(D,1,!0),g=mF(D.currentLine,D.offset);while(D.column-W<5&&sr(g));g=mF(D.currentLine,D.offset)===-1;var a=D.column-W;a>=5||a<1||g?(c.padding=X[0].length+1,D.column=W,D.offset=p,sr(mF(D.currentLine,D.offset))&&GE(D,1,!0)):c.padding=X[0].length+a;X=c}}c=!X}if(c)return 0;Ve(D);(c=D.tip.type!=="list")||(C=C._listData,c=!(C.type===X.type&&C.delimiter===X.delimiter&&C.bulletChar===X.bulletChar));c&&(C=D.addChild("list",
D.nextNonspace),C._listData=X);C=D.addChild("item",D.nextNonspace);C._listData=X;return 1},
function(D){var C;return((C=D.options.shouldParseIndentAsCodeBlock)!=null?C:1)&&D.indented&&D.tip.type!=="paragraph"&&!D.blank?(GE(D,4,!0),Ve(D),D.addChild("code_block",D.offset),2):0},
function(D,C){var X=ek(D.currentLine),c=ek(D.lookahead);if(X!==0&&c<0&&Math.abs(X)==Math.abs(c)&&!eJd(C.type)){Ve(D);C=D.addChild("table",D.nextNonspace);C._tableRows=1;C._tableColumns=Math.abs(X);X=D.lookahead;if(mso.test(X)){c=[];for(var W=0,p=!1,g=0,a=void 0;W<X.length;){var O=g>=3;switch(X[W]){case "-":g++;break;case "|":p&&(c.push(a),a=void 0,g=0);p=!0;break;case ":":a||O||(a="left"),!a&&O&&(a="right"),a==="left"&&O&&(a="center")}W++}X=c}else X=void 0;C._columnAlignment=X;C=D.addChild("row",
D.nextNonspace);C._isHeader=!0;GE(D,D.currentLine.length-D.offset,!1);C._string_content=D.currentLine;return 1}return 0},
function(D,C){if(C.type=="table"&&ek(D.currentLine)!==0){Ve(D);var X=C;C=D.addChild("row",D.nextNonspace);ek(D.currentLine)<0?C._rowIsDelimiter=!0:X._tableRows+=1;GE(D,D.currentLine.length-D.offset,!1);C._string_content=D.currentLine;return 2}return 0}],hAR=function(){var D={shouldParseIndentAsCodeBlock:!1};
D=D===void 0?{}:D;this.lastMatchedContainer=this.doc=EJ3();this.refmap={};this.lastLineLength=0;this.inlineParser=new wP(D);this.options=D;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=NBe;this.blockStarts=Y3q},yTg=function(D){D.partiallyConsumedTab&&(D.offset+=1,D.tip._string_content+=" ".repeat(4-D.column%
4));
D.tip._string_content+=D.currentLine.slice(D.offset)+"\n"};
hAR.prototype.addChild=function(D,C){for(;!this.blocks[this.tip.type].canContain(D);)this.finalize(this.tip,this.lineNumber-1);D=new Er(D,[[this.lineNumber,C+1],[0,0]]);D._string_content="";this.tip.appendChild(D);return this.tip=D};
var Ve=function(D){if(!D.allClosed){for(;D.oldtip!==D.lastMatchedContainer;){var C=D.oldtip._parent;D.finalize(D.oldtip,D.lineNumber-1);D.oldtip=C}D.allClosed=!0}},GE=function(D,C,X){for(var c=D.currentLine,W,p;C>0&&(p=c[D.offset]);)p==="\t"?(W=4-D.column%4,X?(D.partiallyConsumedTab=W>C,W=W>C?C:W,D.column+=W,D.offset+=D.partiallyConsumedTab?0:1,C-=W):(D.partiallyConsumedTab=!1,D.column+=W,D.offset+=1,--C)):(D.partiallyConsumedTab=!1,D.offset+=1,D.column+=1,--C)},ZK=function(D){D.offset=D.nextNonspace;
D.column=D.nextNonspaceColumn;D.partiallyConsumedTab=!1},nwx=function(D){for(var C=D.currentLine,X=D.offset,c=D.column,W;(W=C.charAt(X))!=="";)if(W===" ")X++,c++;
else if(W==="\t")X++,c+=4-c%4;else break;D.blank=W==="\n"||W==="\r"||W==="";D.nextNonspace=X;D.nextNonspaceColumn=c;D.indent=D.nextNonspaceColumn-D.column;D.indented=D.indent>=4};
hAR.prototype.finalize=function(D,C){var X=D._parent;D._open=!1;D.sourcepos[1]=[C,this.lastLineLength];this.blocks[D.type].finalize(this,D);this.tip=X};
hAR.prototype.parse=function(D){this.tip=this.doc=EJ3();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!D)return this.doc;this.options.time&&console.time("preparing input");var C=D.split(tXC),X=C.length;D.charCodeAt(D.length-1)===10&&--X;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(D=0;D<X;D++)a:{var c=void 0,W=C[D],p=C[D+1],g=!0,a=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;W.indexOf("\x00")!==-1&&(W=W.replace(/\0/g,"\ufffd"));this.currentLine=W;for(this.lookahead=p;(c=a._lastChild)&&c._open;){a=c;nwx(this);switch(this.blocks[a.type].continue(this,a)){case 0:break;case 1:g=!1;break;case 2:this.lastLineLength=W.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!g){a=a._parent;break}}this.allClosed=a===this.oldtip;this.lastMatchedContainer=
a;c=a.type!=="paragraph"&&NBe[a.type].acceptsLines;p=this.blockStarts;for(g=p.length;!c;){nwx(this);if(!this.indented&&!Kwd.test(W.slice(this.nextNonspace))){ZK(this);break}for(var O=0;O<g;){var P=p[O](this,a);if(P===1){a=this.tip;break}else if(P===2){a=this.tip;c=!0;break}else O++}if(O===g){ZK(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Ve(this);this.blank&&a.lastChild&&(a.lastChild._lastLineBlank=!0);c=a.type;p=this.blank&&!(c==="block_quote"||c==="code_block"&&a._isFenced||
c==="item"&&!a._firstChild&&a.sourcepos[0][0]===this.lineNumber);for(g=a;g;)g._lastLineBlank=p,g=g._parent;this.blocks[c].acceptsLines?(yTg(this),c==="html_block"&&a._htmlBlockType>=1&&a._htmlBlockType<=5&&bng[a._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(a,this.lineNumber)):this.offset<W.length&&!this.blank&&(this.addChild("paragraph",this.offset),ZK(this),yTg(this))}else yTg(this);this.lastLineLength=W.length}for(;this.tip;)this.finalize(this.tip,X);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");W=new TEg(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;X=W.next();)C=X.node,D=C.type,X.entering||D!=="paragraph"&&D!=="heading"&&D!=="th"&&D!="td"||this.inlineParser.parse(C);this.options.time&&console.timeEnd("inline parsing");return this.doc};t$J.prototype.render=function(D){D=new TEg(D);var C;this.buffer="";for(this.lastOut="\n";C=D.next();){var X=C.node.type;if(this[X])this[X](C.node,C.entering)}return this.buffer};
t$J.prototype.out=function(D){TE(this,D)};
var TE=function(D,C){D.buffer+=C;D.lastOut=C};
t$J.prototype.cr=function(){this.lastOut!=="\n"&&TE(this,"\n")};var wR4=/^javascript:|vbscript:|file:|data:/i,FwC=/^data:image\/(?:png|gif|jpeg|webp)/i,Znf=function(D){return wR4.test(D)&&!FwC.test(D)};
t0.prototype=Object.create(t$J.prototype);_.S=t0.prototype;_.S.text=function(D){this.out(D.literal)};
_.S.html_inline=function(D){this.options.safe?TE(this,"\x3c!-- raw HTML omitted --\x3e"):TE(this,D.literal)};
_.S.html_block=function(D){this.cr();this.options.safe?TE(this,"\x3c!-- raw HTML omitted --\x3e"):TE(this,D.literal);this.cr()};
_.S.softbreak=function(){TE(this,this.options.softbreak)};
_.S.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.S.link=function(D,C){var X=this.attrs(D);C?(this.options.safe&&Znf(D.destination)||X.push(["href",YY(D.destination,!0)]),D.title&&X.push(["title",YY(D.title,!0)]),this.tag("a",X)):this.tag("/a")};
_.S.image=function(D,C){C?(this.disableTags===0&&(this.options.safe&&Znf(D.destination)?TE(this,'<img src="" alt="'):TE(this,'<img src="'+YY(D.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(D.title&&TE(this,'" title="'+YY(D.title,!0)),TE(this,'" />')))};
_.S.emph=function(D,C){this.tag(C?"em":"/em")};
_.S.strong=function(D,C){this.tag(C?"strong":"/strong")};
_.S.paragraph=function(D,C){var X=D.parent.parent;D=this.attrs(D);X!==null&&X.type==="list"&&X.listTight||(C?(this.cr(),this.tag("p",D)):(this.tag("/p"),this.cr()))};
_.S.heading=function(D,C){var X="h"+D.level;D=this.attrs(D);C?(this.cr(),this.tag(X,D)):(this.tag("/"+X),this.cr())};
_.S.code=function(D){this.tag("code");this.out(D.literal);this.tag("/code")};
_.S.code_block=function(D){var C=D.info?D.info.split(/\s+/):[],X=this.attrs(D);C.length>0&&C[0].length>0&&X.push(["class","language-"+YY(C[0],!0)]);this.cr();this.tag("pre");this.tag("code",X);this.out(D.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.S.thematic_break=function(D){D=this.attrs(D);this.cr();this.tag("hr",D,!0);this.cr()};
_.S.block_quote=function(D,C){D=this.attrs(D);C?(this.cr(),this.tag("blockquote",D)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.S.list=function(D,C){var X=D.listType==="bullet"?"ul":"ol",c=this.attrs(D);C?(D=D.listStart,D!==null&&D!==1&&c.push(["start",D.toString()]),this.cr(),this.tag(X,c)):(this.cr(),this.tag("/"+X));this.cr()};
_.S.item=function(D,C){D=this.attrs(D);C?this.tag("li",D):(this.tag("/li"),this.cr())};
_.S.custom_inline=function(D,C){C&&D.onEnter?TE(this,D.onEnter):!C&&D.onExit&&TE(this,D.onExit)};
_.S.custom_block=function(D,C){this.cr();C&&D.onEnter?TE(this,D.onEnter):!C&&D.onExit&&TE(this,D.onExit);this.cr()};
_.S.table=function(D,C){D=this.attrs(D);C?(this.cr(),this.tag("table",D)):(this.tag("/table"),this.cr())};
_.S.row=function(D,C){D._rowIsDelimiter||(D=this.attrs(D),C?this.tag("tr",D):this.tag("/tr"))};
_.S.td=function(D,C){var X=this.attrs(D);D._alignment&&X.push(["align",D._alignment]);C?this.tag("td",X):this.tag("/td")};
_.S.th=function(D,C){var X=this.attrs(D);D._alignment&&X.push(["align",D._alignment]);C?this.tag("th",X):this.tag("/th")};
_.S.out=function(D){TE(this,YY(D,!1))};
_.S.tag=function(D,C,X){if(!(this.disableTags>0)){this.buffer+="<"+D;if(C&&C.length>0){D=0;for(var c;(c=C[D])!==void 0;)this.buffer+=" "+c[0]+'="'+c[1]+'"',D++}X&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.S.attrs=function(D){var C=[];this.options.sourcepos&&(D=D.sourcepos)&&C.push(["data-sourcepos",String(D[0][0])+":"+String(D[0][1])+"-"+String(D[1][0])+":"+String(D[1][1])]);return C};
t0.prototype.text=t0.prototype.text;t0.prototype.html_inline=t0.prototype.html_inline;t0.prototype.html_block=t0.prototype.html_block;t0.prototype.softbreak=t0.prototype.softbreak;t0.prototype.linebreak=t0.prototype.linebreak;t0.prototype.link=t0.prototype.link;t0.prototype.image=t0.prototype.image;t0.prototype.emph=t0.prototype.emph;t0.prototype.strong=t0.prototype.strong;t0.prototype.paragraph=t0.prototype.paragraph;t0.prototype.heading=t0.prototype.heading;t0.prototype.code=t0.prototype.code;
t0.prototype.code_block=t0.prototype.code_block;t0.prototype.thematic_break=t0.prototype.thematic_break;t0.prototype.block_quote=t0.prototype.block_quote;t0.prototype.list=t0.prototype.list;t0.prototype.item=t0.prototype.item;t0.prototype.custom_inline=t0.prototype.custom_inline;t0.prototype.custom_block=t0.prototype.custom_block;t0.prototype.table=t0.prototype.table;t0.prototype.row=t0.prototype.row;t0.prototype.td=t0.prototype.td;t0.prototype.th=t0.prototype.th;t0.prototype.out=t0.prototype.out;
t0.prototype.tag=t0.prototype.tag;t0.prototype.attrs=t0.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 G_x,VXg,AdZ;(function(){function D(N,E){return N<E?-1:N>E?1:N>=E?0:NaN}
function C(N){return function(E,Z){return D(N(E),Z)}}
function X(){for(var N=0,E=arguments.length,Z={},Xd;N<E;++N){if(!(Xd=arguments[N]+"")||Xd in Z)throw Error("we`"+Xd);Z[Xd]=[]}return new c(Z)}
function c(N){this._=N}
function W(N,E){return N.trim().split(/^|\s+/).map(function(Z){var Xd="",Im=Z.indexOf(".");Im>=0&&(Xd=Z.slice(Im+1),Z=Z.slice(0,Im));if(Z&&!E.hasOwnProperty(Z))throw Error("xe`"+Z);return{type:Z,name:Xd}})}
function p(N,E,Z){for(var Xd=0,Im=N.length;Xd<Im;++Xd)if(N[Xd].name===E){N[Xd]=zm3;N=N.slice(0,Xd).concat(N.slice(Xd+1));break}Z!=null&&N.push({name:E,value:Z});return N}
function g(N){var E=N,Z=E.indexOf(":");Z>=0&&(E=N.slice(0,Z))!=="xmlns"&&(N=N.slice(Z+1));return Xx.hasOwnProperty(E)?{space:Xx[E],local:N}:N}
function a(N){return function(){var E=this.ownerDocument,Z=this.namespaceURI;return Z==="http://www.w3.org/1999/xhtml"&&E.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?E.createElement(N):E.createElementNS(Z,N)}}
function O(N){return function(){return this.ownerDocument.createElementNS(N.space,N.local)}}
function P(N){N=g(N);return(N.local?O:a)(N)}
function k(){}
function u(N){return N==null?k:function(){return this.querySelector(N)}}
function Q(N){return Array(N.length)}
function B(N,E){this.ownerDocument=N.ownerDocument;this.namespaceURI=N.namespaceURI;this._next=null;this._parent=N;this.__data__=E}
function K(N){return function(){return N}}
function L(N,E,Z,Xd,Im,QF){for(var Lh=0,yF,gx=E.length,cM=QF.length;Lh<cM;++Lh)(yF=E[Lh])?(yF.__data__=QF[Lh],Xd[Lh]=yF):Z[Lh]=new B(N,QF[Lh]);for(;Lh<gx;++Lh)if(yF=E[Lh])Im[Lh]=yF}
function t(N,E,Z,Xd,Im,QF,Lh){var yF,gx,cM={},Iq=E.length,Q5=QF.length,dx=Array(Iq),Yt;for(yF=0;yF<Iq;++yF)if(gx=E[yF])dx[yF]=Yt="$"+Lh.call(gx,gx.__data__,yF,E),Yt in cM?Im[yF]=gx:cM[Yt]=gx;for(yF=0;yF<Q5;++yF)Yt="$"+Lh.call(N,QF[yF],yF,QF),(gx=cM[Yt])?(Xd[yF]=gx,gx.__data__=QF[yF],cM[Yt]=null):Z[yF]=new B(N,QF[yF]);for(yF=0;yF<Iq;++yF)(gx=E[yF])&&cM[dx[yF]]===gx&&(Im[yF]=gx)}
function Y(N,E){return N<E?-1:N>E?1:N>=E?0:NaN}
function y(N){return function(){this.removeAttribute(N)}}
function J(N){return function(){this.removeAttributeNS(N.space,N.local)}}
function T(N,E){return function(){this.setAttribute(N,E)}}
function H(N,E){return function(){this.setAttributeNS(N.space,N.local,E)}}
function q(N,E){return function(){var Z=E.apply(this,arguments);Z==null?this.removeAttribute(N):this.setAttribute(N,Z)}}
function R(N,E){return function(){var Z=E.apply(this,arguments);Z==null?this.removeAttributeNS(N.space,N.local):this.setAttributeNS(N.space,N.local,Z)}}
function ph(N){return function(){this.style.removeProperty(N)}}
function Om(N,E,Z){return function(){this.style.setProperty(N,E,Z)}}
function xj(N,E,Z){return function(){var Xd=E.apply(this,arguments);Xd==null?this.style.removeProperty(N):this.style.setProperty(N,Xd,Z)}}
function Bo(N,E){return N.style.getPropertyValue(E)||(N.ownerDocument&&N.ownerDocument.defaultView||N.document&&N||N.defaultView).getComputedStyle(N,null).getPropertyValue(E)}
function r5(N){return function(){delete this[N]}}
function Fd(N,E){return function(){this[N]=E}}
function GJ(N,E){return function(){var Z=E.apply(this,arguments);Z==null?delete this[N]:this[N]=Z}}
function jZ(){this.textContent=""}
function Ac(N){return function(){this.textContent=N}}
function ib(N){return function(){var E=N.apply(this,arguments);this.textContent=E==null?"":E}}
function d5(){this.innerHTML=""}
function ub(N){return function(){this.innerHTML=N}}
function L5(N){return function(){var E=N.apply(this,arguments);this.innerHTML=E==null?"":E}}
function Nf(){return null}
function xt(){var N=this.parentNode;N&&N.removeChild(this)}
function u6(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function g5(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function oq(N,E,Z){N=rx(N,E,Z);return function(Xd){var Im=Xd.relatedTarget;Im&&(Im===this||Im.compareDocumentPosition(this)&8)||N.call(this,Xd)}}
function rx(N,E,Z){return function(){N.call(this,this.__data__,E,Z)}}
function Rq(N){return N.trim().split(/^|\s+/).map(function(E){var Z="",Xd=E.indexOf(".");Xd>=0&&(Z=E.slice(Xd+1),E=E.slice(0,Xd));return{type:E,name:Z}})}
function K5(N){return function(){var E=this.__on;if(E){for(var Z=0,Xd=-1,Im=E.length,QF;Z<Im;++Z)(QF=E[Z],N.type&&QF.type!==N.type||QF.name!==N.name)?E[++Xd]=QF:this.removeEventListener(QF.type,QF.listener,QF.capture);++Xd?E.length=Xd:delete this.__on}}}
function C1(N,E,Z){var Xd=lQe.hasOwnProperty(N.type)?oq:rx;return function(Im,QF,Lh){Im=this.__on;var yF;QF=Xd(E,QF,Lh);if(Im){Lh=0;for(var gx=Im.length;Lh<gx;++Lh)if((yF=Im[Lh]).type===N.type&&yF.name===N.name){this.removeEventListener(yF.type,yF.listener,yF.capture);this.addEventListener(yF.type,yF.listener=QF,yF.capture=Z);yF.value=E;return}}this.addEventListener(N.type,QF,Z);yF={type:N.type,name:N.name,value:E,listener:QF,capture:Z};Im?Im.push(yF):this.__on=[yF]}}
function LK(N,E,Z){var Xd=N.ownerDocument&&N.ownerDocument.defaultView||N.document&&N||N.defaultView,Im=Xd.CustomEvent;typeof Im==="function"?Im=new Im(E,Z):(Im=Xd.document.createEvent("Event"),Z?(Im.initEvent(E,Z.bubbles,Z.cancelable),Im.detail=Z.detail):Im.initEvent(E,!1,!1));N.dispatchEvent(Im)}
function Mf(N,E){return function(){return LK(this,N,E)}}
function vM(N,E){return function(){return LK(this,N,E.apply(this,arguments))}}
function kg(N,E){this._groups=N;this._parents=E}
function p1(){return new kg([[document.documentElement]],j4p)}
function Rm(){this._="@"+(++M0G).toString(36)}
function ow(N,E,Z){N.prototype=E.prototype=Z;Z.constructor=N}
function iU(N,E){N=Object.create(N.prototype);for(var Z in E)N[Z]=E[Z];return N}
function oH(){}
function QU(N){var E;N=(N+"").trim().toLowerCase();return(E=q_t.exec(N))?(E=parseInt(E[1],16),new mG(E>>8&15|E>>4&240,E>>4&15|E&240,(E&15)<<4|E&15,1)):(E=fdk.exec(N))?jN(parseInt(E[1],16)):(E=dlp.exec(N))?new mG(E[1],E[2],E[3],1):(E=RmU.exec(N))?new mG(E[1]*255/100,E[2]*255/100,E[3]*255/100,1):(E=ldk.exec(N))?Oe(E[1],E[2],E[3],E[4]):(E=DVY.exec(N))?Oe(E[1]*255/100,E[2]*255/100,E[3]*255/100,E[4]):(E=CeN.exec(N))?bc(E[1],E[2]/100,E[3]/100,1):(E=XwN.exec(N))?bc(E[1],E[2]/100,E[3]/100,E[4]):DlC.hasOwnProperty(N)?
jN(DlC[N]):N==="transparent"?new mG(NaN,NaN,NaN,0):null}
function jN(N){return new mG(N>>16&255,N>>8&255,N&255,1)}
function Oe(N,E,Z,Xd){Xd<=0&&(N=E=Z=NaN);return new mG(N,E,Z,Xd)}
function Bd(N){N instanceof oH||(N=QU(N));if(!N)return new mG;N=N.rgb();return new mG(N.r,N.g,N.b,N.opacity)}
function HM(N,E,Z,Xd){return arguments.length===1?Bd(N):new mG(N,E,Z,Xd==null?1:Xd)}
function mG(N,E,Z,Xd){this.r=+N;this.g=+E;this.b=+Z;this.opacity=+Xd}
function UX(N){N=Math.max(0,Math.min(255,Math.round(N)||0));return(N<16?"0":"")+N.toString(16)}
function bc(N,E,Z,Xd){Xd<=0?N=E=Z=NaN:Z<=0||Z>=1?N=E=NaN:E<=0&&(N=NaN);return new We(N,E,Z,Xd)}
function ro(N){if(N instanceof We)return new We(N.h,N.s,N.l,N.opacity);N instanceof oH||(N=QU(N));if(!N)return new We;if(N instanceof We)return N;N=N.rgb();var E=N.r/255,Z=N.g/255,Xd=N.b/255,Im=Math.min(E,Z,Xd),QF=Math.max(E,Z,Xd),Lh=NaN,yF=QF-Im,gx=(QF+Im)/2;yF?(Lh=E===QF?(Z-Xd)/yF+(Z<Xd)*6:Z===QF?(Xd-E)/yF+2:(E-Z)/yF+4,yF/=gx<.5?QF+Im:2-QF-Im,Lh*=60):yF=gx>0&&gx<1?0:Lh;return new We(Lh,yF,gx,N.opacity)}
function fy(N,E,Z,Xd){return arguments.length===1?ro(N):new We(N,E,Z,Xd==null?1:Xd)}
function We(N,E,Z,Xd){this.h=+N;this.s=+E;this.l=+Z;this.opacity=+Xd}
function su(N,E,Z){return(N<60?E+(Z-E)*N/60:N<180?Z:N<240?E+(Z-E)*(240-N)/60:E)*255}
function Kq(N){if(N instanceof Em)return new Em(N.l,N.a,N.b,N.opacity);if(N instanceof Ed){if(isNaN(N.h))return new Em(N.l,0,0,N.opacity);var E=N.h*CIM;return new Em(N.l,Math.cos(E)*N.c,Math.sin(E)*N.c,N.opacity)}N instanceof mG||(N=Bd(N));var Z=K1(N.r),Xd=K1(N.g),Im=K1(N.b);E=TJ(.2225045*Z+.7168786*Xd+.0606169*Im);if(Z===Xd&&Xd===Im)var QF=Z=E;else QF=TJ((.4360747*Z+.3850649*Xd+.1430804*Im)/.96422),Z=TJ((.0139322*Z+.0971045*Xd+.7141733*Im)/.82521);return new Em(116*E-16,500*(QF-E),200*(E-Z),N.opacity)}
function Em(N,E,Z,Xd){this.l=+N;this.a=+E;this.b=+Z;this.opacity=+Xd}
function TJ(N){return N>cek?Math.pow(N,1/3):N/XON+cSg}
function qR(N){return N>mB?N*N*N:XON*(N-cSg)}
function xg(N){return 255*(N<=.0031308?12.92*N:1.055*Math.pow(N,1/2.4)-.055)}
function K1(N){return(N/=255)<=.04045?N/12.92:Math.pow((N+.055)/1.055,2.4)}
function wj(N){if(N instanceof Ed)return new Ed(N.h,N.c,N.l,N.opacity);N instanceof Em||(N=Kq(N));if(N.a===0&&N.b===0)return new Ed(NaN,0,N.l,N.opacity);var E=Math.atan2(N.b,N.a)*odM;return new Ed(E<0?E+360:E,Math.sqrt(N.a*N.a+N.b*N.b),N.l,N.opacity)}
function NY(N,E,Z,Xd){return arguments.length===1?wj(N):new Ed(N,E,Z,Xd==null?1:Xd)}
function Ed(N,E,Z,Xd){this.h=+N;this.c=+E;this.l=+Z;this.opacity=+Xd}
function sd(N,E,Z,Xd){if(arguments.length===1){var Im=N;if(Im instanceof Hp)Im=new Hp(Im.h,Im.s,Im.l,Im.opacity);else{Im instanceof mG||(Im=Bd(Im));var QF=Im.g/255,Lh=Im.b/255,yF=(WmJ*Lh+Im.r/255*-1.7884503806-3.5172982438*QF)/(WmJ+-1.7884503806-3.5172982438);Lh-=yF;var gx=(1.97294*(QF-yF)- -.29227*Lh)/-.90649;Lh=(QF=Math.sqrt(gx*gx+Lh*Lh)/(1.97294*yF*(1-yF)))?Math.atan2(gx,Lh)*odM-120:NaN;Im=new Hp(Lh<0?Lh+360:Lh,QF,yF,Im.opacity)}}else Im=new Hp(N,E,Z,Xd==null?1:Xd);return Im}
function Hp(N,E,Z,Xd){this.h=+N;this.s=+E;this.l=+Z;this.opacity=+Xd}
function zd(N,E,Z,Xd,Im){var QF=N*N,Lh=QF*N;return((1-3*N+3*QF-Lh)*E+(4-6*QF+3*Lh)*Z+(1+3*N+3*QF-3*Lh)*Xd+Lh*Im)/6}
function bb(N){return function(){return N}}
function dV(N,E){return function(Z){return N+Z*E}}
function f7(N,E,Z){return N=Math.pow(N,Z),E=Math.pow(E,Z)-N,Z=1/Z,function(Xd){return Math.pow(N+Xd*E,Z)}}
function jD(N,E){var Z=E-N;return Z?dV(N,Z>180||Z<-180?Z-360*Math.round(Z/360):Z):bb(isNaN(N)?E:N)}
function RA(N){return(N=+N)===1?Sf:function(E,Z){return Z-E?f7(E,Z,N):bb(isNaN(E)?Z:E)}}
function Sf(N,E){var Z=E-N;return Z?dV(N,Z):bb(isNaN(N)?E:N)}
function $7(N){return function(E){var Z=E.length,Xd=Array(Z),Im=Array(Z),QF=Array(Z),Lh;for(Lh=0;Lh<Z;++Lh){var yF=HM(E[Lh]);Xd[Lh]=yF.r||0;Im[Lh]=yF.g||0;QF[Lh]=yF.b||0}Xd=N(Xd);Im=N(Im);QF=N(QF);yF.opacity=1;return function(gx){yF.r=Xd(gx);yF.g=Im(gx);yF.b=QF(gx);return yF+""}}}
function pi(N,E){return N=+N,E-=N,function(Z){return N+E*Z}}
function J9(N){return function(){return N}}
function vA(N){return function(E){return N(E)+""}}
function v7(N,E){var Z=uuJ.lastIndex=QLW.lastIndex=0,Xd,Im,QF,Lh=-1,yF=[],gx=[];N+="";for(E+="";(Xd=uuJ.exec(N))&&(Im=QLW.exec(E));)(QF=Im.index)>Z&&(QF=E.slice(Z,QF),yF[Lh]?yF[Lh]+=QF:yF[++Lh]=QF),(Xd=Xd[0])===(Im=Im[0])?yF[Lh]?yF[Lh]+=Im:yF[++Lh]=Im:(yF[++Lh]=null,gx.push({i:Lh,x:pi(Xd,Im)})),Z=QLW.lastIndex;Z<E.length&&(QF=E.slice(Z),yF[Lh]?yF[Lh]+=QF:yF[++Lh]=QF);return yF.length<2?gx[0]?vA(gx[0].x):J9(E):(E=gx.length,function(cM){for(var Iq=0,Q5;Iq<E;++Iq)yF[(Q5=gx[Iq]).i]=Q5.x(cM);return yF.join("")})}
function mH(N,E,Z,Xd,Im,QF){var Lh,yF,gx;if(Lh=Math.sqrt(N*N+E*E))N/=Lh,E/=Lh;if(gx=N*Z+E*Xd)Z-=N*gx,Xd-=E*gx;if(yF=Math.sqrt(Z*Z+Xd*Xd))Z/=yF,Xd/=yF,gx/=yF;N*Xd<E*Z&&(N=-N,E=-E,gx=-gx,Lh=-Lh);return{translateX:Im,translateY:QF,rotate:Math.atan2(E,N)*pOf,skewX:Math.atan(gx)*pOf,scaleX:Lh,scaleY:yF}}
function xa(N,E,Z,Xd){function Im(cM){return cM.length?cM.pop()+" ":""}
function QF(cM,Iq,Q5,dx,Yt,h2){cM!==Q5||Iq!==dx?(Yt=Yt.push("translate(",null,E,null,Z),h2.push({i:Yt-4,x:pi(cM,Q5)},{i:Yt-2,x:pi(Iq,dx)})):(Q5||dx)&&Yt.push("translate("+Q5+E+dx+Z)}
function Lh(cM,Iq,Q5,dx){cM!==Iq?(cM-Iq>180?Iq+=360:Iq-cM>180&&(cM+=360),dx.push({i:Q5.push(Im(Q5)+"rotate(",null,Xd)-2,x:pi(cM,Iq)})):Iq&&Q5.push(Im(Q5)+"rotate("+Iq+Xd)}
function yF(cM,Iq,Q5,dx){cM!==Iq?dx.push({i:Q5.push(Im(Q5)+"skewX(",null,Xd)-2,x:pi(cM,Iq)}):Iq&&Q5.push(Im(Q5)+"skewX("+Iq+Xd)}
function gx(cM,Iq,Q5,dx,Yt,h2){cM!==Q5||Iq!==dx?(Yt=Yt.push(Im(Yt)+"scale(",null,",",null,")"),h2.push({i:Yt-4,x:pi(cM,Q5)},{i:Yt-2,x:pi(Iq,dx)})):Q5===1&&dx===1||Yt.push(Im(Yt)+"scale("+Q5+","+dx+")")}
return function(cM,Iq){var Q5=[],dx=[];cM=N(cM);Iq=N(Iq);QF(cM.translateX,cM.translateY,Iq.translateX,Iq.translateY,Q5,dx);Lh(cM.rotate,Iq.rotate,Q5,dx);yF(cM.skewX,Iq.skewX,Q5,dx);gx(cM.scaleX,cM.scaleY,Iq.scaleX,Iq.scaleY,Q5,dx);cM=Iq=null;return function(Yt){for(var h2=-1,qA=dx.length,NA;++h2<qA;)Q5[(NA=dx[h2]).i]=NA.x(Yt);return Q5.join("")}}}
function sF(N){return function(E,Z){var Xd=N((E=fy(E)).h,(Z=fy(Z)).h),Im=Sf(E.s,Z.s),QF=Sf(E.l,Z.l),Lh=Sf(E.opacity,Z.opacity);return function(yF){E.h=Xd(yF);E.s=Im(yF);E.l=QF(yF);E.opacity=Lh(yF);return E+""}}}
function h3(N){return function(E,Z){var Xd=N((E=NY(E)).h,(Z=NY(Z)).h),Im=Sf(E.c,Z.c),QF=Sf(E.l,Z.l),Lh=Sf(E.opacity,Z.opacity);return function(yF){E.h=Xd(yF);E.c=Im(yF);E.l=QF(yF);E.opacity=Lh(yF);return E+""}}}
function rz(N){return function Xd(Z){function Im(QF,Lh){var yF=N((QF=sd(QF)).h,(Lh=sd(Lh)).h),gx=Sf(QF.s,Lh.s),cM=Sf(QF.l,Lh.l),Iq=Sf(QF.opacity,Lh.opacity);return function(Q5){QF.h=yF(Q5);QF.s=gx(Q5);QF.l=cM(Math.pow(Q5,Z));QF.opacity=Iq(Q5);return QF+""}}
Z=+Z;Im.gamma=Xd;return Im}(1)}
function Yy(){return f3||(S_M(sb),f3=QV.now()+gbZ)}
function sb(){f3=0}
function yb(){this._call=this._time=this._next=null}
function K9(N,E,Z){var Xd=new yb;Xd.restart(N,E,Z);return Xd}
function Ll(){f3=(a0m=QV.now())+gbZ;eI=Bs=0;try{Yy();++eI;for(var N=I0Z,E;N;)(E=f3-N._time)>=0&&N._call.call(null,E),N=N._next;--eI}finally{eI=0;N=I0Z;for(var Z=Infinity;N;)if(N._call){Z>N._time&&(Z=N._time);var Xd=N;N=N._next}else E=N._next,N._next=null,N=Xd?Xd._next=E:I0Z=E;bk=Xd;eJ(Z);f3=0}}
function mK(){var N=QV.now(),E=N-a0m;E>1E3&&(gbZ-=E,a0m=N)}
function eJ(N){eI||(Bs&&(Bs=clearTimeout(Bs)),N-f3>24?(N<Infinity&&(Bs=setTimeout(Ll,N-QV.now()-gbZ)),rf&&(rf=clearInterval(rf))):(rf||(a0m=QV.now(),rf=setInterval(mK,1E3)),eI=1,S_M(Ll)))}
function p5(N,E,Z){var Xd=new yb;E=E==null?0:+E;Xd.restart(function(Im){Xd.stop();N(Im+E)},E,Z);
return Xd}
function b6(N,E,Z,Xd,Im,QF){var Lh=N.__transition;if(!Lh)N.__transition={};else if(Z in Lh)return;VL(N,Z,{name:E,index:Xd,group:Im,on:o9U,tween:Wbo,time:QF.time,delay:QF.delay,duration:QF.duration,ease:QF.ease,timer:null,state:0})}
function ZG(N,E){N=TL(N,E);if(N.state>0)throw Error("ye");return N}
function gj(N,E){N=TL(N,E);if(N.state>2)throw Error("ze");return N}
function TL(N,E){N=N.__transition;if(!N||!(N=N[E]))throw Error("Ae");return N}
function VL(N,E,Z){function Xd(gx){var cM,Iq;if(Z.state!==1)return QF();for(dx in Lh){var Q5=Lh[dx];if(Q5.name===Z.name){if(Q5.state===3)return p5(Xd);Q5.state===4?(Q5.state=6,Q5.timer.stop(),Q5.on.call("interrupt",N,N.__data__,Q5.index,Q5.group),delete Lh[dx]):+dx<E&&(Q5.state=6,Q5.timer.stop(),delete Lh[dx])}}p5(function(){Z.state===3&&(Z.state=4,Z.timer.restart(Im,Z.delay,Z.time),Im(gx))});
Z.state=2;Z.on.call("start",N,N.__data__,Z.index,Z.group);if(Z.state===2){Z.state=3;yF=Array(Iq=Z.tween.length);var dx=0;for(cM=-1;dx<Iq;++dx)if(Q5=Z.tween[dx].value.call(N,N.__data__,Z.index,Z.group))yF[++cM]=Q5;yF.length=cM+1}}
function Im(gx){gx=gx<Z.duration?Z.ease.call(null,gx/Z.duration):(Z.timer.restart(QF),Z.state=5,1);for(var cM=-1,Iq=yF.length;++cM<Iq;)yF[cM].call(null,gx);Z.state===5&&(Z.on.call("end",N,N.__data__,Z.index,Z.group),QF())}
function QF(){Z.state=6;Z.timer.stop();delete Lh[E];for(var gx in Lh)return;delete N.__transition}
var Lh=N.__transition,yF;Lh[E]=Z;Z.timer=K9(function(gx){Z.state=1;Z.timer.restart(Xd,Z.delay,Z.time);Z.delay<=gx&&Xd(gx-Z.delay)},0,Z.time)}
function XL(N,E){var Z,Xd;return function(){var Im=gj(this,N),QF=Im.tween;if(QF!==Z){Xd=Z=QF;QF=0;for(var Lh=Xd.length;QF<Lh;++QF)if(Xd[QF].name===E){Xd=Xd.slice();Xd.splice(QF,1);break}}Im.tween=Xd}}
function jz(N,E,Z){var Xd,Im;if(typeof Z!=="function")throw Error();return function(){var QF=gj(this,N),Lh=QF.tween;if(Lh!==Xd){Im=(Xd=Lh).slice();Lh={name:E,value:Z};for(var yF=0,gx=Im.length;yF<gx;++yF)if(Im[yF].name===E){Im[yF]=Lh;break}yF===gx&&Im.push(Lh)}QF.tween=Im}}
function m_(N,E,Z){var Xd=N._id;N.each(function(){var Im=gj(this,Xd);(Im.value||(Im.value={}))[E]=Z.apply(this,arguments)});
return function(Im){return TL(Im,Xd).value[E]}}
function Ulq(N,E){var Z;return(typeof E==="number"?pi:E instanceof QU?gd5:(Z=QU(E))?(E=Z,gd5):v7)(N,E)}
function pww(N){return function(){this.removeAttribute(N)}}
function Sgt(N){return function(){this.removeAttributeNS(N.space,N.local)}}
function UVw(N,E,Z){var Xd,Im;return function(){var QF=this.getAttribute(N);return QF===Z?null:QF===Xd?Im:Im=E(Xd=QF,Z)}}
function g9P(N,E,Z){var Xd,Im;return function(){var QF=this.getAttributeNS(N.space,N.local);return QF===Z?null:QF===Xd?Im:Im=E(Xd=QF,Z)}}
function aXw(N,E,Z){var Xd,Im,QF;return function(){var Lh=Z(this);if(Lh==null)return void this.removeAttribute(N);var yF=this.getAttribute(N);return yF===Lh?null:yF===Xd&&Lh===Im?QF:QF=E(Xd=yF,Im=Lh)}}
function IXG(N,E,Z){var Xd,Im,QF;return function(){var Lh=Z(this);if(Lh==null)return void this.removeAttributeNS(N.space,N.local);var yF=this.getAttributeNS(N.space,N.local);return yF===Lh?null:yF===Xd&&Lh===Im?QF:QF=E(Xd=yF,Im=Lh)}}
function O9U(N,E){function Z(){var Xd=this,Im=E.apply(Xd,arguments);return Im&&function(QF){Xd.setAttributeNS(N.space,N.local,Im(QF))}}
Z._value=E;return Z}
function Ae1(N,E){function Z(){var Xd=this,Im=E.apply(Xd,arguments);return Im&&function(QF){Xd.setAttribute(N,Im(QF))}}
Z._value=E;return Z}
function Peo(N,E){return function(){ZG(this,N).delay=+E.apply(this,arguments)}}
function $Vo(N,E){return E=+E,function(){ZG(this,N).delay=E}}
function v9t(N,E){return function(){gj(this,N).duration=+E.apply(this,arguments)}}
function i96(N,E){return E=+E,function(){gj(this,N).duration=E}}
function kOY(N,E){if(typeof E!=="function")throw Error();return function(){gj(this,N).ease=E}}
function uZk(N){return(N+"").trim().split(/^|\s+/).every(function(E){var Z=E.indexOf(".");Z>=0&&(E=E.slice(0,Z));return!E||E==="start"})}
function QuU(N,E,Z){var Xd,Im,QF=uZk(E)?ZG:gj;return function(){var Lh=QF(this,N),yF=Lh.on;if(yF!==Xd)(Im=(Xd=yF).copy()).on(E,Z);Lh.on=Im}}
function BzP(N){return function(){var E=this.parentNode,Z;for(Z in this.__transition)if(+Z!==N)return;E&&E.removeChild(this)}}
function b9t(N,E){var Z,Xd,Im;return function(){var QF=Bo(this,N),Lh=(this.style.removeProperty(N),Bo(this,N));return QF===Lh?null:QF===Z&&Lh===Xd?Im:Im=E(Z=QF,Xd=Lh)}}
function reG(N){return function(){this.style.removeProperty(N)}}
function KbX(N,E,Z){var Xd,Im;return function(){var QF=Bo(this,N);return QF===Z?null:QF===Xd?Im:Im=E(Xd=QF,Z)}}
function hsX(N,E,Z){var Xd,Im,QF;return function(){var Lh=Bo(this,N),yF=Z(this);yF==null&&(yF=(this.style.removeProperty(N),Bo(this,N)));return Lh===yF?null:Lh===Xd&&yF===Im?QF:QF=E(Xd=Lh,Im=yF)}}
function xVP(N,E,Z){function Xd(){var Im=this,QF=E.apply(Im,arguments);return QF&&function(Lh){Im.style.setProperty(N,QF(Lh),Z)}}
Xd._value=E;return Xd}
function LbX(N){return function(){this.textContent=N}}
function suw(N){return function(){var E=N(this);this.textContent=E==null?"":E}}
function yG(N,E,Z,Xd){this._groups=N;this._parents=E;this._name=Z;this._id=Xd}
function Bvh(N){return{type:N}}
function buF(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function O2h(){}
function adk(N,E){var Z=new O2h;if(N instanceof O2h)N.each(function(Lh,yF){Z.set(yF,Lh)});
else if(Array.isArray(N)){var Xd=-1,Im=N.length,QF;if(E==null)for(;++Xd<Im;)Z.set(Xd,N[Xd]);else for(;++Xd<Im;)Z.set(E(QF=N[Xd],Xd,N),QF)}else if(N)for(Xd in N)Z.set(Xd,N[Xd]);return Z}
function AI3(){}
function Idg(N){return function(E){for(var Z={},Xd=0;Xd<N.length;Xd++)Z[N[Xd]]=E[Xd]||"";return Z}}
function mVG(N,E){var Z=Idg(N);return function(Xd,Im){return E(Z(Xd),Im,N)}}
function esU(N){var E=Object.create(null),Z=[];N.forEach(function(Xd){for(var Im in Xd)Im in E||Z.push(E[Im]=Im)});
return Z}
function O6b(N){function E(Lh,yF){function gx(){if(h2)return rbR;if(qA)return qA=!1,ASb;var O6,C7=Q5,tZ;if(Lh.charCodeAt(C7)===34){for(;Q5++<Iq&&Lh.charCodeAt(Q5)!==34||Lh.charCodeAt(++Q5)===34;);(O6=Q5)>=Iq?h2=!0:(tZ=Lh.charCodeAt(Q5++))===10?qA=!0:tZ===13&&(qA=!0,Lh.charCodeAt(Q5)===10&&++Q5);return Lh.slice(C7+1,O6-1).replace(/""/g,'"')}for(;Q5<Iq;){if((tZ=Lh.charCodeAt(O6=Q5++))===10)qA=!0;else if(tZ===13)qA=!0,Lh.charCodeAt(Q5)===10&&++Q5;else if(tZ!==QF)continue;return Lh.slice(C7,O6)}return h2=
!0,Lh.slice(C7,Iq)}
var cM=[],Iq=Lh.length,Q5=0,dx=0,Yt,h2=Iq<=0,qA=!1;Lh.charCodeAt(Iq-1)===10&&--Iq;for(Lh.charCodeAt(Iq-1)===13&&--Iq;(Yt=gx())!==rbR;){for(var NA=[];Yt!==ASb&&Yt!==rbR;)NA.push(Yt),Yt=gx();yF&&(NA=yF(NA,dx++))==null||cM.push(NA)}return cM}
function Z(Lh){return Lh.map(Xd).join(N)}
function Xd(Lh){return Lh==null?"":Im.test(Lh)?'"'+Lh.replace(/"/g,'""')+'"':Lh}
var Im=new RegExp('["'+N+"\n\r]"),QF=N.charCodeAt(0);return{parse:function(Lh,yF){var gx,cM;Lh=E(Lh,function(Iq,Q5){if(gx)return gx(Iq,Q5-1);cM=Iq;gx=yF?mVG(Iq,yF):Idg(Iq)});
Lh.columns=cM||[];return Lh},
parseRows:E,format:function(Lh,yF){yF==null&&(yF=esU(Lh));return[yF.map(Xd).join(N)].concat(Lh.map(function(gx){return yF.map(function(cM){return Xd(gx[cM])}).join(N)})).join("\n")},
formatRows:function(Lh){return Lh.map(Z).join("\n")}}}
function E9k(N){if(!N.ok)throw Error("Be`"+N.status+"`"+N.statusText);return N.text()}
function PIq(N){return function(E,Z,Xd){arguments.length===2&&typeof Z==="function"&&(Xd=Z,Z=void 0);return fetch(E,Z).then(E9k).then(function(Im){return N(Im,Xd)})}}
function $l5(N,E,Z,Xd){if(isNaN(E)||isNaN(Z))return N;var Im,QF=N._root;Xd={data:Xd};var Lh=N._x0,yF=N._y0,gx=N._x1,cM=N._y1,Iq,Q5,dx,Yt,h2;if(!QF)return N._root=Xd,N;for(;QF.length;)if((dx=E>=(Iq=(Lh+gx)/2))?Lh=Iq:gx=Iq,(Yt=Z>=(Q5=(yF+cM)/2))?yF=Q5:cM=Q5,Im=QF,!(QF=QF[h2=Yt<<1|dx]))return Im[h2]=Xd,N;var qA=+N._x.call(null,QF.data);var NA=+N._y.call(null,QF.data);if(E===qA&&Z===NA)return Xd.next=QF,Im?Im[h2]=Xd:N._root=Xd,N;do Im=Im?Im[h2]=Array(4):N._root=Array(4),(dx=E>=(Iq=(Lh+gx)/2))?Lh=Iq:gx=
Iq,(Yt=Z>=(Q5=(yF+cM)/2))?yF=Q5:cM=Q5;while((h2=Yt<<1|dx)===(dx=(NA>=Q5)<<1|qA>=Iq));return Im[dx]=QF,Im[h2]=Xd,N}
function Wr(N,E,Z,Xd,Im){this.node=N;this.x0=E;this.y0=Z;this.x1=Xd;this.y1=Im}
function txU(N){return N[0]}
function Nz3(N){return N[1]}
function Ky5(N,E,Z,Xd,Im,QF){this._x=N;this._y=E;this._x0=Z;this._y0=Xd;this._x1=Im;this._y1=QF;this._root=void 0}
function vdN(N){for(var E={data:N.data},Z=E;N=N.next;)Z=Z.next={data:N.data};return E}
function PVm(N,E){if((E=(N=E?N.toExponential(E-1):N.toExponential()).indexOf("e"))<0)return null;var Z=N.slice(0,E);return[Z.length>1?Z[0]+Z.slice(2):Z,+N.slice(E+1)]}
function YgU(N){return N=PVm(Math.abs(N)),N?N[1]:NaN}
function yeP(N,E){return function(Z,Xd){for(var Im=Z.length,QF=[],Lh=0,yF=N[0],gx=0;Im>0&&yF>0;){gx+yF+1>Xd&&(yF=Math.max(1,Xd-gx));QF.push(Z.substring(Im-=yF,Im+yF));if((gx+=yF+1)>Xd)break;yF=N[Lh=(Lh+1)%N.length]}return QF.reverse().join(E)}}
function n9X(N){return function(E){return E.replace(/[0-9]/g,function(Z){return N[+Z]})}}
function hNh(N){return new xxF(N)}
function xxF(N){if(!(E=wwG.exec(N)))throw Error("Ce`"+N);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 i6e(N,E){E=PVm(N,E);if(!E)return N+"";N=E[0];E=E[1];return E<0?"0."+Array(-E).join("0")+N:N.length>E+1?N.slice(0,E+1)+"."+N.slice(E+1):N+Array(E-N.length+2).join("0")}
function kpf(N){return N}
function Fbk(N){function E(yF){function gx(DN){var sU=tZ,qY=UN,Kf,A2;if(C7==="c")qY=Xr(DN)+qY,DN="";else{DN=+DN;var n1=DN<0;DN=Xr(Math.abs(DN),NA);if(O6){var cK=DN.length,cH=1,AI=-1;a:for(;cH<cK;++cH)switch(DN[cH]){case ".":AI=Kf=cH;break;case "0":AI===0&&(AI=cH);Kf=cH;break;default:if(!+DN[cH])break a;AI>0&&(AI=0)}DN=AI>0?DN.slice(0,AI)+DN.slice(Kf+1):DN}n1&&+DN===0&&(n1=!1);sU=(n1?Q5==="("?Q5:"-":Q5==="-"||Q5==="("?"":Q5)+sU;qY=(C7==="s"?u05[8+Q4x/3]:"")+qY+(n1&&Q5==="("?")":"");if(KF)for(n1=-1,
Kf=DN.length;++n1<Kf;)if(A2=DN.charCodeAt(n1),48>A2||A2>57){qY=(A2===46?Im+DN.slice(n1+1):DN.slice(n1))+qY;DN=DN.slice(0,n1);break}}qA&&!Yt&&(DN=Z(DN,Infinity));A2=sU.length+DN.length+qY.length;n1=A2<h2?Array(h2-A2+1).join(cM):"";qA&&Yt&&(DN=Z(n1+DN,n1.length?h2-qY.length:Infinity),n1="");switch(Iq){case "<":DN=sU+DN+qY+n1;break;case "=":DN=sU+n1+DN+qY;break;case "^":DN=n1.slice(0,A2=n1.length>>1)+sU+DN+qY+n1.slice(A2);break;default:DN=n1+sU+DN+qY}return QF(DN)}
yF=hNh(yF);var cM=yF.fill,Iq=yF.align,Q5=yF.sign,dx=yF.symbol,Yt=yF.zero,h2=yF.width,qA=yF.comma,NA=yF.precision,O6=yF.trim,C7=yF.type;C7==="n"?(qA=!0,C7="g"):Bu5[C7]||(NA==null&&(NA=12),O6=!0,C7="g");if(Yt||cM==="0"&&Iq==="=")Yt=!0,cM="0",Iq="=";var tZ=dx==="$"?Xd[0]:dx==="#"&&/[boxX]/.test(C7)?"0"+C7.toLowerCase():"",UN=dx==="$"?Xd[1]:/[%p]/.test(C7)?Lh:"",Xr=Bu5[C7],KF=/[defgprs%]/.test(C7);NA=NA==null?6:/[gprs]/.test(C7)?Math.max(1,Math.min(21,NA)):Math.max(0,Math.min(20,NA));gx.toString=function(){return yF+
""};
return gx}
var Z=N.grouping&&N.thousands?yeP(N.grouping,N.thousands):kpf,Xd=N.currency,Im=N.decimal,QF=N.numerals?n9X(N.numerals):kpf,Lh=N.percent||"%";return{format:E,formatPrefix:function(yF,gx){var cM=E((yF=hNh(yF),yF.type="f",yF));yF=Math.max(-8,Math.min(8,Math.floor(YgU(gx)/3)))*3;var Iq=Math.pow(10,-yF),Q5=u05[8+yF/3];return function(dx){return cM(Iq*dx)+Q5}}}}
function My(){this.reset()}
function b6M(N,E,Z){var Xd=N.s=E+Z,Im=Xd-E;N.t=E-(Xd-Im)+(Z-Im)}
function $I3(N){return N>1?cR:N<-1?-cR:Math.asin(N)}
function Z9G(){}
function rSe(N){var E=N[0];N=N[1];var Z=o2(N);return[Z*o2(E),Z*ne(E),ne(N)]}
function Kmk(N,E){return[N[1]*E[2]-N[2]*E[1],N[2]*E[0]-N[0]*E[2],N[0]*E[1]-N[1]*E[0]]}
function hmJ(N){var E=vbW(N[0]*N[0]+N[1]*N[1]+N[2]*N[2]);N[0]/=E;N[1]/=E;N[2]/=E}
function GOk(){var N=[],E;return{point:function(Z,Xd){E.push([Z,Xd])},
lineStart:function(){N.push(E=[])},
lineEnd:Z9G,rejoin:function(){N.length>1&&N.push(N.pop().concat(N.shift()))},
result:function(){var Z=N;N=[];E=null;return Z}}}
function i2d(N,E,Z,Xd){this.x=N;this.z=E;this.o=Z;this.e=Xd;this.v=!1;this.n=this.p=null}
function Vxk(N,E,Z,Xd,Im){var QF=[],Lh=[];N.forEach(function(Q5){if(!((dx=Q5.length-1)<=0)){var dx,Yt=Q5[0],h2=Q5[dx],qA=Yt;if(n4(qA[0]-h2[0])<1E-6&&n4(qA[1]-h2[1])<1E-6){Im.lineStart();for(yF=0;yF<dx;++yF)Im.point((Yt=Q5[yF])[0],Yt[1]);Im.lineEnd()}else QF.push(dx=new i2d(Yt,Q5,null,!0)),Lh.push(dx.o=new i2d(Yt,null,dx,!1)),QF.push(dx=new i2d(h2,Q5,null,!1)),Lh.push(dx.o=new i2d(h2,null,dx,!0))}});
if(QF.length){Lh.sort(E);xl4(QF);xl4(Lh);var yF=0;for(N=Lh.length;yF<N;++yF)Lh[yF].e=Z=!Z;Z=QF[0];for(var gx;;){for(var cM=Z,Iq=!0;cM.v;)if((cM=cM.n)===Z)return;E=cM.z;Im.lineStart();do{cM.v=cM.o.v=!0;if(cM.e){if(Iq)for(yF=0,N=E.length;yF<N;++yF)Im.point((gx=E[yF])[0],gx[1]);else Xd(cM.x,cM.n.x,1,Im);cM=cM.n}else{if(Iq)for(E=cM.p.z,yF=E.length-1;yF>=0;--yF)Im.point((gx=E[yF])[0],gx[1]);else Xd(cM.x,cM.p.x,-1,Im);cM=cM.p}cM=cM.o;E=cM.z;Iq=!Iq}while(!cM.v);Im.lineEnd()}}}
function xl4(N){if(E=N.length){for(var E,Z=0,Xd=N[0],Im;++Z<E;)Xd.n=Im=N[Z],Im.p=Xd,Xd=Im;Xd.n=Im=N[0];Im.p=Xd}}
function Tz3(N){return N.length>1}
function H9w(N,E){return((N=N.x)[0]<0?N[1]-cR-1E-6:cR-N[1])-((E=E.x)[0]<0?E[1]-cR-1E-6:cR-E[1])}
function LyW(){}
function Lm4(N){return function(E,Z){var Xd=o2(E),Im=o2(Z);Xd=N(Xd*Im);return[Xd*Im*ne(E),Xd*ne(Z)]}}
function K8(N){return function(E,Z){var Xd=vbW(E*E+Z*Z),Im=N(Xd),QF=ne(Im);Im=o2(Im);return[s45(E*QF,Xd*Im),$I3(Xd&&Z*QF/Xd)]}}
function JeG(N){var E=0,Z=N.children,Xd=Z&&Z.length;if(Xd)for(;--Xd>=0;)E+=Z[Xd].value;else E=1;N.value=E}
function mlf(N,E){var Z=new hO(N);N=+N.value&&(Z.value=N.value);var Xd,Im=[Z],QF,Lh,yF,gx;for(E==null&&(E=zsG);Xd=Im.pop();)if(N&&(Xd.value=+Xd.data.value),(Lh=E(Xd.data))&&(gx=Lh.length))for(Xd.children=Array(gx),yF=gx-1;yF>=0;--yF)Im.push(QF=Xd.children[yF]=new hO(Lh[yF])),QF.parent=Xd,QF.depth=Xd.depth+1;return Z.eachBefore(juG)}
function zsG(N){return N.children}
function MxG(N){N.data=N.data.data}
function juG(N){var E=0;do N.height=E;while((N=N.parent)&&N.height<++E)}
function hO(N){this.data=N;this.depth=this.height=0;this.parent=null}
function sn(N,E,Z,Xd){function Im(QF){return N(QF=new Date(+QF)),QF}
Im.floor=Im;Im.ceil=function(QF){return N(QF=new Date(QF-1)),E(QF,1),N(QF),QF};
Im.round=function(QF){var Lh=Im(QF),yF=Im.ceil(QF);return QF-Lh<yF-QF?Lh:yF};
Im.offset=function(QF,Lh){return E(QF=new Date(+QF),Lh==null?1:Math.floor(Lh)),QF};
Im.range=function(QF,Lh,yF){var gx=[],cM;QF=Im.ceil(QF);yF=yF==null?1:Math.floor(yF);if(!(QF<Lh&&yF>0))return gx;do gx.push(cM=new Date(+QF)),E(QF,yF),N(QF);while(cM<QF&&QF<Lh);return gx};
Im.filter=function(QF){return sn(function(Lh){if(Lh>=Lh)for(;N(Lh),!QF(Lh);)Lh.setTime(Lh-1)},function(Lh,yF){if(Lh>=Lh)if(yF<0)for(;++yF<=0;)for(;E(Lh,-1),!QF(Lh););
else for(;--yF>=0;)for(;E(Lh,1),!QF(Lh););})};
Z&&(Im.count=function(QF,Lh){sLJ.setTime(+QF);mxF.setTime(+Lh);N(sLJ);N(mxF);return Math.floor(Z(sLJ,mxF))},Im.every=function(QF){QF=Math.floor(QF);
return isFinite(QF)&&QF>0?QF>1?Im.filter(Xd?function(Lh){return Xd(Lh)%QF===0}:function(Lh){return Im.count(0,Lh)%QF===0}):Im:null});
return Im}
function dQ(N){return sn(function(E){E.setDate(E.getDate()-(E.getDay()+7-N)%7);E.setHours(0,0,0,0)},function(E,Z){E.setDate(E.getDate()+Z*7)},function(E,Z){return(Z-E-(Z.getTimezoneOffset()-E.getTimezoneOffset())*6E4)/6048E5})}
function Rv(N){return sn(function(E){E.setUTCDate(E.getUTCDate()-(E.getUTCDay()+7-N)%7);E.setUTCHours(0,0,0,0)},function(E,Z){E.setUTCDate(E.getUTCDate()+Z*7)},function(E,Z){return(Z-E)/6048E5})}
function qgX(N){if(0<=N.y&&N.y<100){var E=new Date(-1,N.m,N.d,N.H,N.M,N.S,N.L);E.setFullYear(N.y);return E}return new Date(N.y,N.m,N.d,N.H,N.M,N.S,N.L)}
function k5o(N){if(0<=N.y&&N.y<100){var E=new Date(Date.UTC(-1,N.m,N.d,N.H,N.M,N.S,N.L));E.setUTCFullYear(N.y);return E}return new Date(Date.UTC(N.y,N.m,N.d,N.H,N.M,N.S,N.L))}
function xS(N){return{y:N,m:0,d:1,H:0,M:0,S:0,L:0}}
function fXt(N){function E(qY,Kf){return function(A2){var n1=[],cK=-1,cH=0,AI=qY.length,hg,eB;for(A2 instanceof Date||(A2=new Date(+A2));++cK<AI;)if(qY.charCodeAt(cK)===37){n1.push(qY.slice(cH,cK));(cH=emJ[hg=qY.charAt(++cK)])!=null?hg=qY.charAt(++cK):cH=hg==="e"?" ":"0";if(eB=Kf[hg])hg=eB(A2,cH);n1.push(hg);cH=cK+1}n1.push(qY.slice(cH,cK));return n1.join("")}}
function Z(qY,Kf){return function(A2){var n1=xS(1900);if(Xd(n1,qY,A2,0)!=A2.length)return null;if("Q"in n1)return new Date(n1.Q);"p"in n1&&(n1.H=n1.H%12+n1.p*12);if("V"in n1){if(n1.V<1||n1.V>53)return null;"w"in n1||(n1.w=1);if("Z"in n1){A2=k5o(xS(n1.y));var cK=A2.getUTCDay();A2=cK>4||cK===0?eNh.ceil(A2):eNh(A2);A2=Edc.offset(A2,(n1.V-1)*7);n1.y=A2.getUTCFullYear();n1.m=A2.getUTCMonth();n1.d=A2.getUTCDate()+(n1.w+6)%7}else A2=Kf(xS(n1.y)),cK=A2.getDay(),A2=cK>4||cK===0?Ec3.ceil(A2):Ec3(A2),A2=t0J.offset(A2,
(n1.V-1)*7),n1.y=A2.getFullYear(),n1.m=A2.getMonth(),n1.d=A2.getDate()+(n1.w+6)%7}else if("W"in n1||"U"in n1)"w"in n1||(n1.w="u"in n1?n1.u%7:"W"in n1?1:0),cK="Z"in n1?k5o(xS(n1.y)).getUTCDay():Kf(xS(n1.y)).getDay(),n1.m=0,n1.d="W"in n1?(n1.w+6)%7+n1.W*7-(cK+5)%7:n1.w+n1.U*7-(cK+6)%7;return"Z"in n1?(n1.H+=n1.Z/100|0,n1.M+=n1.Z%100,k5o(n1)):Kf(n1)}}
function Xd(qY,Kf,A2,n1){for(var cK=0,cH=Kf.length,AI=A2.length,hg;cK<cH;){if(n1>=AI)return-1;hg=Kf.charCodeAt(cK++);if(hg===37){if(hg=Kf.charAt(cK++),hg=sU[hg in emJ?Kf.charAt(cK++):hg],!hg||(n1=hg(qY,A2,n1))<0)return-1}else if(hg!=A2.charCodeAt(n1++))return-1}return n1}
var Im=N.dateTime,QF=N.date,Lh=N.time,yF=N.periods,gx=N.days,cM=N.shortDays,Iq=N.months,Q5=N.shortMonths,dx=L8(yF),Yt=s8(yF),h2=L8(gx),qA=s8(gx),NA=L8(cM),O6=s8(cM),C7=L8(Iq),tZ=s8(Iq),UN=L8(Q5),Xr=s8(Q5),KF={a:function(qY){return cM[qY.getDay()]},
A:function(qY){return gx[qY.getDay()]},
b:function(qY){return Q5[qY.getMonth()]},
B:function(qY){return Iq[qY.getMonth()]},
c:null,d:Nuq,e:Nuq,f:dVG,H:Rs6,I:lX3,j:D03,L:Y_x,m:CBG,M:XYt,p:function(qY){return yF[+(qY.getHours()>=12)]},
Q:ySe,s:nd4,S:cDX,u:oA1,U:W1P,V:pYp,w:Sk1,W:U0p,x:null,X:null,y:gAY,Y:a$Y,Z:I$X,"%":wOM},DN={a:function(qY){return cM[qY.getUTCDay()]},
A:function(qY){return gx[qY.getUTCDay()]},
b:function(qY){return Q5[qY.getUTCMonth()]},
B:function(qY){return Iq[qY.getUTCMonth()]},
c:null,d:FmJ,e:FmJ,f:O3o,H:ADw,I:PBG,j:$0k,L:Z65,m:vAU,M:i3p,p:function(qY){return yF[+(qY.getUTCHours()>=12)]},
Q:ySe,s:nd4,S:kRG,u:uHo,U:QvP,V:BQX,w:b3o,W:rDp,x:null,X:null,y:K1N,Y:hpG,Z:x0w,"%":wOM},sU={a:function(qY,Kf,A2){return(Kf=NA.exec(Kf.slice(A2)))?(qY.w=O6[Kf[0].toLowerCase()],A2+Kf[0].length):-1},
A:function(qY,Kf,A2){return(Kf=h2.exec(Kf.slice(A2)))?(qY.w=qA[Kf[0].toLowerCase()],A2+Kf[0].length):-1},
b:function(qY,Kf,A2){return(Kf=UN.exec(Kf.slice(A2)))?(qY.m=Xr[Kf[0].toLowerCase()],A2+Kf[0].length):-1},
B:function(qY,Kf,A2){return(Kf=C7.exec(Kf.slice(A2)))?(qY.m=tZ[Kf[0].toLowerCase()],A2+Kf[0].length):-1},
c:function(qY,Kf,A2){return Xd(qY,Im,Kf,A2)},
d:GpN,e:GpN,f:L1k,H:V0C,I:V0C,j:svt,L:m0o,m:epp,M:EAw,p:function(qY,Kf,A2){return(Kf=dx.exec(Kf.slice(A2)))?(qY.p=Yt[Kf[0].toLowerCase()],A2+Kf[0].length):-1},
Q:tdU,s:NQP,S:YkG,u:yD1,U:nA6,V:wYp,w:F1X,W:Z3P,x:function(qY,Kf,A2){return Xd(qY,QF,Kf,A2)},
X:function(qY,Kf,A2){return Xd(qY,Lh,Kf,A2)},
y:GRw,Y:Vd1,Z:TQo,"%":H3w};KF.x=E(QF,KF);KF.X=E(Lh,KF);KF.c=E(Im,KF);DN.x=E(QF,DN);DN.X=E(Lh,DN);DN.c=E(Im,DN);return{format:function(qY){var Kf=E(qY,KF);Kf.toString=function(){return qY};
return Kf},
parse:function(qY){var Kf=Z(qY,qgX);Kf.toString=function(){return qY};
return Kf},
utcFormat:function(qY){var Kf=E(qY,DN);Kf.toString=function(){return qY};
return Kf},
utcParse:function(qY){var Kf=Z(qY,k5o);Kf.toString=function(){return qY};
return Kf}}}
function L7(N,E,Z){var Xd=N<0?"-":"";N=(Xd?-N:N)+"";var Im=N.length;return Xd+(Im<Z?Array(Z-Im+1).join(E)+N:N)}
function JDN(N){return N.replace(zpP,"\\$&")}
function L8(N){return new RegExp("^(?:"+N.map(JDN).join("|")+")","i")}
function s8(N){for(var E={},Z=-1,Xd=N.length;++Z<Xd;)E[N[Z].toLowerCase()]=Z;return E}
function F1X(N,E,Z){return(E=NC.exec(E.slice(Z,Z+1)))?(N.w=+E[0],Z+E[0].length):-1}
function yD1(N,E,Z){return(E=NC.exec(E.slice(Z,Z+1)))?(N.u=+E[0],Z+E[0].length):-1}
function nA6(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.U=+E[0],Z+E[0].length):-1}
function wYp(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.V=+E[0],Z+E[0].length):-1}
function Z3P(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.W=+E[0],Z+E[0].length):-1}
function Vd1(N,E,Z){return(E=NC.exec(E.slice(Z,Z+4)))?(N.y=+E[0],Z+E[0].length):-1}
function GRw(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.y=+E[0]+(+E[0]>68?1900:2E3),Z+E[0].length):-1}
function TQo(N,E,Z){return(E=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(E.slice(Z,Z+6)))?(N.Z=E[1]?0:-(E[2]+(E[3]||"00")),Z+E[0].length):-1}
function epp(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.m=E[0]-1,Z+E[0].length):-1}
function GpN(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.d=+E[0],Z+E[0].length):-1}
function svt(N,E,Z){return(E=NC.exec(E.slice(Z,Z+3)))?(N.m=0,N.d=+E[0],Z+E[0].length):-1}
function V0C(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.H=+E[0],Z+E[0].length):-1}
function EAw(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.M=+E[0],Z+E[0].length):-1}
function YkG(N,E,Z){return(E=NC.exec(E.slice(Z,Z+2)))?(N.S=+E[0],Z+E[0].length):-1}
function m0o(N,E,Z){return(E=NC.exec(E.slice(Z,Z+3)))?(N.L=+E[0],Z+E[0].length):-1}
function L1k(N,E,Z){return(E=NC.exec(E.slice(Z,Z+6)))?(N.L=Math.floor(E[0]/1E3),Z+E[0].length):-1}
function H3w(N,E,Z){return(N=jvo.exec(E.slice(Z,Z+1)))?Z+N[0].length:-1}
function tdU(N,E,Z){return(E=NC.exec(E.slice(Z)))?(N.Q=+E[0],Z+E[0].length):-1}
function NQP(N,E,Z){return(E=NC.exec(E.slice(Z)))?(N.Q=+E[0]*1E3,Z+E[0].length):-1}
function Nuq(N,E){return L7(N.getDate(),E,2)}
function Rs6(N,E){return L7(N.getHours(),E,2)}
function lX3(N,E){return L7(N.getHours()%12||12,E,2)}
function D03(N,E){return L7(1+t0J.count(ED(N),N),E,3)}
function Y_x(N,E){return L7(N.getMilliseconds(),E,3)}
function dVG(N,E){return Y_x(N,E)+"000"}
function CBG(N,E){return L7(N.getMonth()+1,E,2)}
function XYt(N,E){return L7(N.getMinutes(),E,2)}
function cDX(N,E){return L7(N.getSeconds(),E,2)}
function oA1(N){N=N.getDay();return N===0?7:N}
function W1P(N,E){return L7(MdU.count(ED(N),N),E,2)}
function pYp(N,E){var Z=N.getDay();N=Z>=4||Z===0?tvW(N):tvW.ceil(N);return L7(tvW.count(ED(N),N)+(ED(N).getDay()===4),E,2)}
function Sk1(N){return N.getDay()}
function U0p(N,E){return L7(Ec3.count(ED(N),N),E,2)}
function gAY(N,E){return L7(N.getFullYear()%100,E,2)}
function a$Y(N,E){return L7(N.getFullYear()%1E4,E,4)}
function I$X(N){N=N.getTimezoneOffset();return(N>0?"-":(N*=-1,"+"))+L7(N/60|0,"0",2)+L7(N%60,"0",2)}
function FmJ(N,E){return L7(N.getUTCDate(),E,2)}
function ADw(N,E){return L7(N.getUTCHours(),E,2)}
function PBG(N,E){return L7(N.getUTCHours()%12||12,E,2)}
function $0k(N,E){return L7(1+Edc.count(tj(N),N),E,3)}
function Z65(N,E){return L7(N.getUTCMilliseconds(),E,3)}
function O3o(N,E){return Z65(N,E)+"000"}
function vAU(N,E){return L7(N.getUTCMonth()+1,E,2)}
function i3p(N,E){return L7(N.getUTCMinutes(),E,2)}
function kRG(N,E){return L7(N.getUTCSeconds(),E,2)}
function uHo(N){N=N.getUTCDay();return N===0?7:N}
function QvP(N,E){return L7(qk3.count(tj(N),N),E,2)}
function BQX(N,E){var Z=N.getUTCDay();N=Z>=4||Z===0?Nvn(N):Nvn.ceil(N);return L7(Nvn.count(tj(N),N)+(tj(N).getUTCDay()===4),E,2)}
function b3o(N){return N.getUTCDay()}
function rDp(N,E){return L7(eNh.count(tj(N),N),E,2)}
function K1N(N,E){return L7(N.getUTCFullYear()%100,E,2)}
function hpG(N,E){return L7(N.getUTCFullYear()%1E4,E,4)}
function x0w(){return"+0000"}
function wOM(){return"%"}
function ySe(N){return+N}
function nd4(N){return Math.floor(+N/1E3)}
function vd(N){for(var E=N.length/6|0,Z=Array(E),Xd=0;Xd<E;)Z[Xd]="#"+N.slice(Xd*6,++Xd*6);return Z}
function oQ(N){return f$3(N[N.length-1])}
function uf3(N){var E=N.length;return function(Z){return N[Math.max(0,Math.min(E-1,Math.floor(Z*E)))]}}
function Tuk(N){this._context=N}
function H65(N){this._curve=N}
function JSx(N,E,Z){var Xd=N._x1-N._x0;E-=N._x1;var Im=(N._y1-N._y0)/(Xd||E<0&&-0);N=(Z-N._y1)/(E||Xd<0&&-0);return((Im<0?-1:1)+(N<0?-1:1))*Math.min(Math.abs(Im),Math.abs(N),.5*Math.abs((Im*E+N*Xd)/(Xd+E)))||0}
function zmx(N,E){var Z=N._x1-N._x0;return Z?(3*(N._y1-N._y0)/Z-E)/2:E}
function YAn(N,E,Z){var Xd=N._x0,Im=N._x1,QF=N._y1,Lh=(Im-Xd)/3;N._context.bezierCurveTo(Xd+Lh,N._y0+Lh*E,Im-Lh,QF-Lh*Z,Im,QF)}
function ybm(N){this._context=N}
function j4M(N){this._context=N}
function m7(N,E,Z){this.k=N;this.x=E;this.y=Z}
(function(N){N.length===1&&(N=C(N));return{left:function(E,Z,Xd,Im){Xd==null&&(Xd=0);Im==null&&(Im=E.length);for(;Xd<Im;){var QF=Xd+Im>>>1;N(E[QF],Z)<0?Xd=QF+1:Im=QF}return Xd},
right:function(E,Z,Xd,Im){Xd==null&&(Xd=0);Im==null&&(Im=E.length);for(;Xd<Im;){var QF=Xd+Im>>>1;N(E[QF],Z)>0?Im=QF:Xd=QF+1}return Xd}}})(D);
var zm3={value:function(){}};
c.prototype=X.prototype={constructor:c,on:function(N,E){var Z=this._,Xd=W(N+"",Z),Im,QF=-1,Lh=Xd.length;if(arguments.length<2)for(;++QF<Lh;){var yF;if(yF=Im=(N=Xd[QF]).type){a:{yF=Z[Im];for(var gx=0,cM=yF.length;gx<cM;++gx)if((Im=yF[gx]).name===N.name){Im=Im.value;break a}Im=void 0}yF=Im}if(yF)return Im}else{if(E!=null&&typeof E!=="function")throw Error("De`"+E);for(;++QF<Lh;)if(Im=(N=Xd[QF]).type)Z[Im]=p(Z[Im],N.name,E);else if(E==null)for(Im in Z)Z[Im]=p(Z[Im],N.name,null);return this}},
copy:function(){var N={},E=this._,Z;for(Z in E)N[Z]=E[Z].slice();return new c(N)},
call:function(N,E){if((Im=arguments.length-2)>0)for(var Z=Array(Im),Xd=0,Im,QF;Xd<Im;++Xd)Z[Xd]=arguments[Xd+2];if(!this._.hasOwnProperty(N))throw Error("xe`"+N);QF=this._[N];Xd=0;for(Im=QF.length;Xd<Im;++Xd)QF[Xd].value.apply(E,Z)},
apply:function(N,E,Z){if(!this._.hasOwnProperty(N))throw Error("xe`"+N);N=this._[N];for(var Xd=0,Im=N.length;Xd<Im;++Xd)N[Xd].value.apply(E,Z)}};
var Xx={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/"},M0k=function(N){return function(){return this.matches(N)}};
if(typeof document!=="undefined"){var eA=document.documentElement;if(!eA.matches){var d0k=eA.webkitMatchesSelector||eA.msMatchesSelector||eA.mozMatchesSelector||eA.oMatchesSelector;M0k=function(N){return function(){return d0k.call(this,N)}}}}var q_g=M0k;
B.prototype={constructor:B,appendChild:function(N){return this._parent.insertBefore(N,this._next)},
insertBefore:function(N,E){return this._parent.insertBefore(N,E)},
querySelector:function(N){return this._parent.querySelector(N)},
querySelectorAll:function(N){return this._parent.querySelectorAll(N)}};
var lQe={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(lQe={mouseenter:"mouseover",mouseleave:"mouseout"}));var j4p=[null];kg.prototype=p1.prototype={constructor:kg,select:function(N){typeof N!=="function"&&(N=u(N));for(var E=this._groups,Z=E.length,Xd=Array(Z),Im=0;Im<Z;++Im)for(var QF=E[Im],Lh=QF.length,yF=Xd[Im]=Array(Lh),gx,cM,Iq=0;Iq<Lh;++Iq)(gx=QF[Iq])&&(cM=N.call(gx,gx.__data__,Iq,QF))&&("__data__"in gx&&(cM.__data__=gx.__data__),yF[Iq]=cM);return new kg(Xd,
this._parents)},
filter:function(N){typeof N!=="function"&&(N=q_g(N));for(var E=this._groups,Z=E.length,Xd=Array(Z),Im=0;Im<Z;++Im)for(var QF=E[Im],Lh=QF.length,yF=Xd[Im]=[],gx,cM=0;cM<Lh;++cM)(gx=QF[cM])&&N.call(gx,gx.__data__,cM,QF)&&yF.push(gx);return new kg(Xd,this._parents)},
data:function(N,E){if(!N)return Yt=Array(this.size()),cM=-1,this.each(function(C7){Yt[++cM]=C7}),Yt;
var Z=E?t:L,Xd=this._parents,Im=this._groups;typeof N!=="function"&&(N=K(N));for(var QF=Im.length,Lh=Array(QF),yF=Array(QF),gx=Array(QF),cM=0;cM<QF;++cM){var Iq=Xd[cM],Q5=Im[cM],dx=Q5.length,Yt=N.call(Iq,Iq&&Iq.__data__,cM,Xd),h2=Yt.length,qA=yF[cM]=Array(h2),NA=Lh[cM]=Array(h2);dx=gx[cM]=Array(dx);Z(Iq,Q5,qA,NA,dx,Yt,E);Q5=Iq=0;for(var O6;Iq<h2;++Iq)if(dx=qA[Iq]){for(Iq>=Q5&&(Q5=Iq+1);!(O6=NA[Q5])&&++Q5<h2;);dx._next=O6||null}}Lh=new kg(Lh,Xd);Lh._enter=yF;Lh._exit=gx;return Lh},
enter:function(){return new kg(this._enter||this._groups.map(Q),this._parents)},
exit:function(){return new kg(this._exit||this._groups.map(Q),this._parents)},
merge:function(N){var E=this._groups;N=N._groups;for(var Z=E.length,Xd=Math.min(Z,N.length),Im=Array(Z),QF=0;QF<Xd;++QF)for(var Lh=E[QF],yF=N[QF],gx=Lh.length,cM=Im[QF]=Array(gx),Iq,Q5=0;Q5<gx;++Q5)if(Iq=Lh[Q5]||yF[Q5])cM[Q5]=Iq;for(;QF<Z;++QF)Im[QF]=E[QF];return new kg(Im,this._parents)},
order:function(){for(var N=this._groups,E=-1,Z=N.length;++E<Z;)for(var Xd=N[E],Im=Xd.length-1,QF=Xd[Im],Lh;--Im>=0;)if(Lh=Xd[Im])QF&&QF!==Lh.nextSibling&&QF.parentNode.insertBefore(Lh,QF),QF=Lh;return this},
sort:function(N){function E(Q5,dx){return Q5&&dx?N(Q5.__data__,dx.__data__):!Q5-!dx}
N||(N=Y);for(var Z=this._groups,Xd=Z.length,Im=Array(Xd),QF=0;QF<Xd;++QF){for(var Lh=Z[QF],yF=Lh.length,gx=Im[QF]=Array(yF),cM,Iq=0;Iq<yF;++Iq)if(cM=Lh[Iq])gx[Iq]=cM;gx.sort(E)}return(new kg(Im,this._parents)).order()},
call:function(){var N=arguments[0];arguments[0]=this;N.apply(null,arguments);return this},
nodes:function(){var N=Array(this.size()),E=-1;this.each(function(){N[++E]=this});
return N},
node:function(){for(var N=this._groups,E=0,Z=N.length;E<Z;++E)for(var Xd=N[E],Im=0,QF=Xd.length;Im<QF;++Im){var Lh=Xd[Im];if(Lh)return Lh}return null},
size:function(){var N=0;this.each(function(){++N});
return N},
empty:function(){return!this.node()},
each:function(N){for(var E=this._groups,Z=0,Xd=E.length;Z<Xd;++Z)for(var Im=E[Z],QF=0,Lh=Im.length,yF;QF<Lh;++QF)(yF=Im[QF])&&N.call(yF,yF.__data__,QF,Im);return this},
attr:function(N,E){var Z=g(N);if(arguments.length<2){var Xd=this.node();return Z.local?Xd.getAttributeNS(Z.space,Z.local):Xd.getAttribute(Z)}return this.each((E==null?Z.local?J:y:typeof E==="function"?Z.local?R:q:Z.local?H:T)(Z,E))},
style:function(N,E,Z){return arguments.length>1?this.each((E==null?ph:typeof E==="function"?xj:Om)(N,E,Z==null?"":Z)):Bo(this.node(),N)},
property:function(N,E){return arguments.length>1?this.each((E==null?r5:typeof E==="function"?GJ:Fd)(N,E)):this.node()[N]},
text:function(N){return arguments.length?this.each(N==null?jZ:(typeof N==="function"?ib:Ac)(N)):this.node().textContent},
html:function(N){return arguments.length?this.each(N==null?d5:(typeof N==="function"?L5:ub)(N)):this.node().innerHTML},
append:function(N){var E=typeof N==="function"?N:P(N);return this.select(function(){return this.appendChild(E.apply(this,arguments))})},
insert:function(N,E){var Z=typeof N==="function"?N:P(N),Xd=E==null?Nf:typeof E==="function"?E:u(E);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),Xd.apply(this,arguments)||null)})},
remove:function(){return this.each(xt)},
clone:function(N){return this.select(N?g5:u6)},
datum:function(N){return arguments.length?this.property("__data__",N):this.node().__data__},
on:function(N,E,Z){var Xd=Rq(N+""),Im=Xd.length,QF;if(arguments.length<2){var Lh=this.node().__on;if(Lh)for(var yF=0,gx=Lh.length,cM;yF<gx;++yF){var Iq=0;for(cM=Lh[yF];Iq<Im;++Iq)if((QF=Xd[Iq]).type===cM.type&&QF.name===cM.name)return cM.value}}else{Lh=E?C1:K5;Z==null&&(Z=!1);for(Iq=0;Iq<Im;++Iq)this.each(Lh(Xd[Iq],E,Z));return this}},
dispatch:function(N,E){return this.each((typeof E==="function"?vM:Mf)(N,E))}};
var M0G=0;Rm.prototype=function(){return new Rm}.prototype={constructor:Rm,
get:function(N){for(var E=this._;!(E in N);)if(!(N=N.parentNode))return;return N[E]},
set:function(N,E){return N[this._]=E},
remove:function(N){return this._ in N&&delete N[this._]},
toString:function(){return this._}};
var N5=1/.7,q_t=/^#([0-9a-f]{3})$/,fdk=/^#([0-9a-f]{6})$/,dlp=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),RmU=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ldk=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),DVY=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*\\)$"),
CeN=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),XwN=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*\\)$"),DlC={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};
ow(oH,QU,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ow(mG,HM,iU(oH,{brighter:function(N){N=N==null?N5:Math.pow(N5,N);return new mG(this.r*N,this.g*N,this.b*N,this.opacity)},
darker:function(N){N=N==null?.7:Math.pow(.7,N);return new mG(this.r*N,this.g*N,this.b*N,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"#"+UX(this.r)+UX(this.g)+UX(this.b)},
toString:function(){var N=this.opacity;N=isNaN(N)?1:Math.max(0,Math.min(1,N));return(N===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))+(N===1?")":", "+N+")")}}));
ow(We,fy,iU(oH,{brighter:function(N){N=N==null?N5:Math.pow(N5,N);return new We(this.h,this.s,this.l*N,this.opacity)},
darker:function(N){N=N==null?.7:Math.pow(.7,N);return new We(this.h,this.s,this.l*N,this.opacity)},
rgb:function(){var N=this.h%360+(this.h<0)*360,E=this.l,Z=E+(E<.5?E:1-E)*(isNaN(N)||isNaN(this.s)?0:this.s);E=2*E-Z;return new mG(su(N>=240?N-240:N+120,E,Z),su(N,E,Z),su(N<120?N+240:N-120,E,Z),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 CIM=Math.PI/180,odM=180/Math.PI,cSg=4/29,mB=6/29,XON=3*mB*mB,cek=mB*mB*mB;ow(Em,function(N,E,Z,Xd){return arguments.length===1?Kq(N):new Em(N,E,Z,Xd==null?1:Xd)},iU(oH,{brighter:function(N){return new Em(this.l+18*(N==null?1:N),this.a,this.b,this.opacity)},
darker:function(N){return new Em(this.l-18*(N==null?1:N),this.a,this.b,this.opacity)},
rgb:function(){var N=(this.l+16)/116,E=isNaN(this.a)?N:N+this.a/500,Z=isNaN(this.b)?N:N-this.b/200;E=.96422*qR(E);N=1*qR(N);Z=.82521*qR(Z);return new mG(xg(3.1338561*E-1.6168667*N-.4906146*Z),xg(-.9787684*E+1.9161415*N+.033454*Z),xg(.0719453*E-.2289914*N+1.4052427*Z),this.opacity)}}));
ow(Ed,NY,iU(oH,{brighter:function(N){return new Ed(this.h,this.c,this.l+18*(N==null?1:N),this.opacity)},
darker:function(N){return new Ed(this.h,this.c,this.l-18*(N==null?1:N),this.opacity)},
rgb:function(){return Kq(this).rgb()}}));
var WmJ=1.78277*-.29227-.1347134789;ow(Hp,sd,iU(oH,{brighter:function(N){N=N==null?N5:Math.pow(N5,N);return new Hp(this.h,this.s,this.l*N,this.opacity)},
darker:function(N){N=N==null?.7:Math.pow(.7,N);return new Hp(this.h,this.s,this.l*N,this.opacity)},
rgb:function(){var N=isNaN(this.h)?0:(this.h+120)*CIM,E=+this.l,Z=isNaN(this.s)?0:this.s*E*(1-E),Xd=Math.cos(N);N=Math.sin(N);return new mG(255*(E+Z*(-.14861*Xd+1.78277*N)),255*(E+Z*(-.29227*Xd+-.90649*N)),255*(E+1.97294*Xd*Z),this.opacity)}}));
var gd5=function Z(E){function Xd(QF,Lh){var yF=Im((QF=HM(QF)).r,(Lh=HM(Lh)).r),gx=Im(QF.g,Lh.g),cM=Im(QF.b,Lh.b),Iq=Sf(QF.opacity,Lh.opacity);return function(Q5){QF.r=yF(Q5);QF.g=gx(Q5);QF.b=cM(Q5);QF.opacity=Iq(Q5);return QF+""}}
var Im=RA(E);Xd.gamma=Z;return Xd}(1),f$3=$7(function(E){var Z=E.length-1;
return function(Xd){var Im=Xd<=0?Xd=0:Xd>=1?(Xd=1,Z-1):Math.floor(Xd*Z),QF=E[Im],Lh=E[Im+1];return zd((Xd-Im/Z)*Z,Im>0?E[Im-1]:2*QF-Lh,QF,Lh,Im<Z-1?E[Im+2]:2*Lh-QF)}});
$7(function(E){var Z=E.length;return function(Xd){var Im=Math.floor(((Xd%=1)<0?++Xd:Xd)*Z);return zd((Xd-Im/Z)*Z,E[(Im+Z-1)%Z],E[Im%Z],E[(Im+1)%Z],E[(Im+2)%Z])}});
var uuJ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,QLW=new RegExp(uuJ.source,"g"),pOf=180/Math.PI,ncF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},E8,w9F,fdN,QXr,RpN=xa(function(E){if(E==="none")return ncF;E8||(E8=document.createElement("DIV"),w9F=document.documentElement,fdN=document.defaultView);E8.style.transform=E;E=fdN.getComputedStyle(w9F.appendChild(E8),null).getPropertyValue("transform");w9F.removeChild(E8);E=E.slice(7,-1).split(",");return mH(+E[0],+E[1],+E[2],+E[3],
+E[4],+E[5])},"px, ","px)","deg)"),l$N=xa(function(E){if(E==null)return ncF;
QXr||(QXr=document.createElementNS("http://www.w3.org/2000/svg","g"));QXr.setAttribute("transform",E);if(!(E=QXr.transform.baseVal.consolidate()))return ncF;E=E.matrix;return mH(E.a,E.b,E.c,E.d,E.e,E.f)},", ",")",")");
sF(jD);sF(Sf);h3(jD);h3(Sf);rz(jD);var Fyd=rz(Sf),eI=0,Bs=0,rf=0,I0Z,bk,a0m=0,f3=0,gbZ=0,QV=typeof performance==="object"&&performance.now?performance:Date,S_M=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(E){setTimeout(E,17)};
yb.prototype=K9.prototype={constructor:yb,restart:function(E,Z,Xd){if(typeof E!=="function")throw new TypeError("Ee");Xd=(Xd==null?Yy():+Xd)+(Z==null?0:+Z);this._next||bk===this||(bk?bk._next=this:I0Z=this,bk=this);this._call=E;this._time=Xd;eJ()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,eJ())}};
var o9U=X("start","end","interrupt"),Wbo=[],DWk=p1.prototype.constructor,dlM=0,Y8=p1.prototype;yG.prototype=function(E){return p1().transition(E)}.prototype={constructor:yG,
select:function(E){var Z=this._name,Xd=this._id;typeof E!=="function"&&(E=u(E));for(var Im=this._groups,QF=Im.length,Lh=Array(QF),yF=0;yF<QF;++yF)for(var gx=Im[yF],cM=gx.length,Iq=Lh[yF]=Array(cM),Q5,dx,Yt=0;Yt<cM;++Yt)(Q5=gx[Yt])&&(dx=E.call(Q5,Q5.__data__,Yt,gx))&&("__data__"in Q5&&(dx.__data__=Q5.__data__),Iq[Yt]=dx,b6(Iq[Yt],Z,Xd,Yt,Iq,TL(Q5,Xd)));return new yG(Lh,this._parents,Z,Xd)},
filter:function(E){typeof E!=="function"&&(E=q_g(E));for(var Z=this._groups,Xd=Z.length,Im=Array(Xd),QF=0;QF<Xd;++QF)for(var Lh=Z[QF],yF=Lh.length,gx=Im[QF]=[],cM,Iq=0;Iq<yF;++Iq)(cM=Lh[Iq])&&E.call(cM,cM.__data__,Iq,Lh)&&gx.push(cM);return new yG(Im,this._parents,this._name,this._id)},
merge:function(E){if(E._id!==this._id)throw Error();var Z=this._groups;E=E._groups;for(var Xd=Z.length,Im=Math.min(Xd,E.length),QF=Array(Xd),Lh=0;Lh<Im;++Lh)for(var yF=Z[Lh],gx=E[Lh],cM=yF.length,Iq=QF[Lh]=Array(cM),Q5,dx=0;dx<cM;++dx)if(Q5=yF[dx]||gx[dx])Iq[dx]=Q5;for(;Lh<Xd;++Lh)QF[Lh]=Z[Lh];return new yG(QF,this._parents,this._name,this._id)},
selection:function(){return new DWk(this._groups,this._parents)},
transition:function(){for(var E=this._name,Z=this._id,Xd=++dlM,Im=this._groups,QF=Im.length,Lh=0;Lh<QF;++Lh)for(var yF=Im[Lh],gx=yF.length,cM,Iq=0;Iq<gx;++Iq)if(cM=yF[Iq]){var Q5=TL(cM,Z);b6(cM,E,Xd,Iq,yF,{time:Q5.time+Q5.delay+Q5.duration,delay:0,duration:Q5.duration,ease:Q5.ease})}return new yG(Im,this._parents,E,Xd)},
call:Y8.call,nodes:Y8.nodes,node:Y8.node,size:Y8.size,empty:Y8.empty,each:Y8.each,on:function(E,Z){var Xd=this._id;return arguments.length<2?TL(this.node(),Xd).on.on(E):this.each(QuU(Xd,E,Z))},
attr:function(E,Z){var Xd=g(E),Im=Xd==="transform"?l$N:Ulq;return this.attrTween(E,typeof Z==="function"?(Xd.local?IXG:aXw)(Xd,Im,m_(this,"attr."+E,Z)):Z==null?(Xd.local?Sgt:pww)(Xd):(Xd.local?g9P:UVw)(Xd,Im,Z+""))},
attrTween:function(E,Z){var Xd="attr."+E;if(arguments.length<2)return(Xd=this.tween(Xd))&&Xd._value;if(Z==null)return this.tween(Xd,null);if(typeof Z!=="function")throw Error();var Im=g(E);return this.tween(Xd,(Im.local?O9U:Ae1)(Im,Z))},
style:function(E,Z,Xd){var Im=E==="transform"?RpN:Ulq;return Z==null?this.styleTween(E,b9t(E,Im)).on("end.style."+E,reG(E)):this.styleTween(E,typeof Z==="function"?hsX(E,Im,m_(this,"style."+E,Z)):KbX(E,Im,Z+""),Xd)},
styleTween:function(E,Z,Xd){var Im="style."+E;if(arguments.length<2)return(Im=this.tween(Im))&&Im._value;if(Z==null)return this.tween(Im,null);if(typeof Z!=="function")throw Error();return this.tween(Im,xVP(E,Z,Xd==null?"":Xd))},
text:function(E){return this.tween("text",typeof E==="function"?suw(m_(this,"text",E)):LbX(E==null?"":E+""))},
remove:function(){return this.on("end.remove",BzP(this._id))},
tween:function(E,Z){var Xd=this._id;if(arguments.length<2){Xd=TL(this.node(),Xd).tween;for(var Im=0,QF=Xd.length,Lh;Im<QF;++Im)if((Lh=Xd[Im]).name===E)return Lh.value;return null}return this.each((Z==null?XL:jz)(Xd,E,Z))},
delay:function(E){var Z=this._id;return arguments.length?this.each((typeof E==="function"?Peo:$Vo)(Z,E)):TL(this.node(),Z).delay},
duration:function(E){var Z=this._id;return arguments.length?this.each((typeof E==="function"?v9t:i96)(Z,E)):TL(this.node(),Z).duration},
ease:function(E){var Z=this._id;return arguments.length?this.each(kOY(Z,E)):TL(this.node(),Z).ease}};
var Zuh={time:null,delay:0,duration:250,ease:function(E){return((E*=2)<=1?E*E*E:(E-=2)*E*E+2)/2}};
p1.prototype.transition=function(E){var Z;if(E instanceof yG){var Xd=E._id;E=E._name}else Xd=++dlM,(Z=Zuh).time=Yy(),E=E==null?null:E+"";for(var Im=this._groups,QF=Im.length,Lh=0;Lh<QF;++Lh)for(var yF=Im[Lh],gx=yF.length,cM,Iq=0;Iq<gx;++Iq)if(cM=yF[Iq]){var Q5=cM,dx=E,Yt=Xd,h2=Iq,qA=yF,NA;if(!(NA=Z))a:{NA=void 0;for(var O6=Xd;!(NA=cM.__transition)||!(NA=NA[O6]);)if(!(cM=cM.parentNode)){NA=(Zuh.time=Yy(),Zuh);break a}}b6(Q5,dx,Yt,h2,qA,NA)}return new yG(Im,this._parents,E,Xd)};
["e","w"].map(Bvh);["n","s"].map(Bvh);"n e s w nw ne se sw".split(" ").map(Bvh);buF.prototype=function(){return new buF}.prototype={constructor:buF,
moveTo:function(E,Z){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+Z)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(E,Z){this._+="L"+(this._x1=+E)+","+(this._y1=+Z)},
bezierCurveTo:function(E,Z,Xd,Im,QF,Lh){this._+="C"+ +E+","+ +Z+","+ +Xd+","+ +Im+","+(this._x1=+QF)+","+(this._y1=+Lh)},
rect:function(E,Z,Xd,Im){this._+="M"+(this._x0=this._x1=+E)+","+(this._y0=this._y1=+Z)+"h"+ +Xd+"v"+ +Im+"h"+-Xd+"Z"},
toString:function(){return this._}};
O2h.prototype=adk.prototype={constructor:O2h,has:function(E){return" "+E in this},
get:function(E){return this[" "+E]},
set:function(E,Z){this[" "+E]=Z;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=[],Z;for(Z in this)Z[0]===" "&&E.push(Z.slice(1));return E},
values:function(){var E=[],Z;for(Z in this)Z[0]===" "&&E.push(this[Z]);return E},
entries:function(){var E=[],Z;for(Z in this)Z[0]===" "&&E.push({key:Z.slice(1),value:this[Z]});return E},
size:function(){var E=0,Z;for(Z in this)Z[0]===" "&&++E;return E},
empty:function(){for(var E in this)if(E[0]===" ")return!1;return!0},
each:function(E){for(var Z in this)Z[0]===" "&&E(this[Z],Z.slice(1),this)}};
var lB=adk.prototype;AI3.prototype=function(E,Z){var Xd=new AI3;if(E instanceof AI3)E.each(function(Lh){Xd.add(Lh)});
else if(E){var Im=-1,QF=E.length;if(Z==null)for(;++Im<QF;)Xd.add(E[Im]);else for(;++Im<QF;)Xd.add(Z(E[Im],Im,E))}return Xd}.prototype={constructor:AI3,
has:lB.has,add:function(E){this[" "+E]=E;return this},
remove:lB.remove,clear:lB.clear,values:lB.keys,size:lB.size,empty:lB.empty,each:lB.each};var ASb={},rbR={},C4X=O6b(",").parse,Xnw=O6b("\t").parse;PIq(C4X);PIq(Xnw);var pG=function(E,Z,Xd){Z=new Ky5(Z==null?txU:Z,Xd==null?Nz3:Xd,NaN,NaN,NaN,NaN);return E==null?Z:Z.addAll(E)}.prototype=Ky5.prototype;
pG.copy=function(){var E=new Ky5(this._x,this._y,this._x0,this._y0,this._x1,this._y1),Z=this._root,Xd,Im;if(!Z)return E;if(!Z.length)return E._root=vdN(Z),E;for(Xd=[{source:Z,target:E._root=Array(4)}];Z=Xd.pop();)for(var QF=0;QF<4;++QF)if(Im=Z.source[QF])Im.length?Xd.push({source:Im,target:Z.target[QF]=Array(4)}):Z.target[QF]=vdN(Im);return E};
pG.add=function(E){var Z=+this._x.call(null,E),Xd=+this._y.call(null,E);return $l5(this.cover(Z,Xd),Z,Xd,E)};
pG.addAll=function(E){var Z,Xd,Im=E.length,QF,Lh,yF=Array(Im),gx=Array(Im),cM=Infinity,Iq=Infinity,Q5=-Infinity,dx=-Infinity;for(Xd=0;Xd<Im;++Xd)isNaN(QF=+this._x.call(null,Z=E[Xd]))||isNaN(Lh=+this._y.call(null,Z))||(yF[Xd]=QF,gx[Xd]=Lh,QF<cM&&(cM=QF),QF>Q5&&(Q5=QF),Lh<Iq&&(Iq=Lh),Lh>dx&&(dx=Lh));Q5<cM&&(cM=this._x0,Q5=this._x1);dx<Iq&&(Iq=this._y0,dx=this._y1);this.cover(cM,Iq).cover(Q5,dx);for(Xd=0;Xd<Im;++Xd)$l5(this,yF[Xd],gx[Xd],E[Xd]);return this};
pG.cover=function(E,Z){if(isNaN(E=+E)||isNaN(Z=+Z))return this;var Xd=this._x0,Im=this._y0,QF=this._x1,Lh=this._y1;if(isNaN(Xd))QF=(Xd=Math.floor(E))+1,Lh=(Im=Math.floor(Z))+1;else if(Xd>E||E>QF||Im>Z||Z>Lh){var yF=QF-Xd,gx=this._root,cM;switch(cM=(Z<(Im+Lh)/2)<<1|E<(Xd+QF)/2){case 0:do{var Iq=Array(4);Iq[cM]=gx;gx=Iq}while(yF*=2,QF=Xd+yF,Lh=Im+yF,E>QF||Z>Lh);break;case 1:do Iq=Array(4),Iq[cM]=gx,gx=Iq;while(yF*=2,Xd=QF-yF,Lh=Im+yF,Xd>E||Z>Lh);break;case 2:do Iq=Array(4),Iq[cM]=gx,gx=Iq;while(yF*=
2,QF=Xd+yF,Im=Lh-yF,E>QF||Im>Z);break;case 3:do Iq=Array(4),Iq[cM]=gx,gx=Iq;while(yF*=2,Xd=QF-yF,Im=Lh-yF,Xd>E||Im>Z)}this._root&&this._root.length&&(this._root=gx)}else return this;this._x0=Xd;this._y0=Im;this._x1=QF;this._y1=Lh;return this};
pG.data=function(){var E=[];this.visit(function(Z){if(!Z.length){do E.push(Z.data);while(Z=Z.next)}});
return E};
pG.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]]};
pG.find=function(E,Z,Xd){var Im=this._x0,QF=this._y0,Lh,yF,gx,cM,Iq=this._x1,Q5=this._y1,dx=[],Yt=this._root,h2;Yt&&dx.push(new Wr(Yt,Im,QF,Iq,Q5));Xd==null?Xd=Infinity:(Im=E-Xd,QF=Z-Xd,Iq=E+Xd,Q5=Z+Xd,Xd*=Xd);for(;h2=dx.pop();)if(!(!(Yt=h2.node)||(Lh=h2.x0)>Iq||(yF=h2.y0)>Q5||(gx=h2.x1)<Im||(cM=h2.y1)<QF))if(Yt.length){h2=(Lh+gx)/2;var qA=(yF+cM)/2;dx.push(new Wr(Yt[3],h2,qA,gx,cM),new Wr(Yt[2],Lh,qA,h2,cM),new Wr(Yt[1],h2,yF,gx,qA),new Wr(Yt[0],Lh,yF,h2,qA));if(Yt=(Z>=qA)<<1|E>=h2)h2=dx[dx.length-
1],dx[dx.length-1]=dx[dx.length-1-Yt],dx[dx.length-1-Yt]=h2}else if(h2=E-+this._x.call(null,Yt.data),qA=Z-+this._y.call(null,Yt.data),h2=h2*h2+qA*qA,h2<Xd){var NA=Math.sqrt(Xd=h2);Im=E-NA;QF=Z-NA;Iq=E+NA;Q5=Z+NA;NA=Yt.data}return NA};
pG.remove=function(E){if(isNaN(cM=+this._x.call(null,E))||isNaN(Iq=+this._y.call(null,E)))return this;var Z,Xd=this._root,Im,QF=this._x0,Lh=this._y0,yF=this._x1,gx=this._y1,cM,Iq,Q5,dx,Yt,h2,qA;if(!Xd)return this;if(Xd.length)for(;;){(Yt=cM>=(Q5=(QF+yF)/2))?QF=Q5:yF=Q5;(h2=Iq>=(dx=(Lh+gx)/2))?Lh=dx:gx=dx;if(!(Z=Xd,Xd=Xd[qA=h2<<1|Yt]))return this;if(!Xd.length)break;if(Z[qA+1&3]||Z[qA+2&3]||Z[qA+3&3]){var NA=Z;var O6=qA}}for(;Xd.data!==E;)if(!(Im=Xd,Xd=Xd.next))return this;(E=Xd.next)&&delete Xd.next;
if(Im)return E?Im.next=E:delete Im.next,this;if(!Z)return this._root=E,this;E?Z[qA]=E:delete Z[qA];(Xd=Z[0]||Z[1]||Z[2]||Z[3])&&Xd===(Z[3]||Z[2]||Z[1]||Z[0])&&!Xd.length&&(NA?NA[O6]=Xd:this._root=Xd);return this};
pG.removeAll=function(E){for(var Z=0,Xd=E.length;Z<Xd;++Z)this.remove(E[Z]);return this};
pG.root=function(){return this._root};
pG.size=function(){var E=0;this.visit(function(Z){if(!Z.length){do++E;while(Z=Z.next)}});
return E};
pG.visit=function(E){var Z=[],Xd,Im=this._root,QF,Lh,yF,gx,cM;for(Im&&Z.push(new Wr(Im,this._x0,this._y0,this._x1,this._y1));Xd=Z.pop();)if(!E(Im=Xd.node,Lh=Xd.x0,yF=Xd.y0,gx=Xd.x1,cM=Xd.y1)&&Im.length){Xd=(Lh+gx)/2;var Iq=(yF+cM)/2;(QF=Im[3])&&Z.push(new Wr(QF,Xd,Iq,gx,cM));(QF=Im[2])&&Z.push(new Wr(QF,Lh,Iq,Xd,cM));(QF=Im[1])&&Z.push(new Wr(QF,Xd,yF,gx,Iq));(QF=Im[0])&&Z.push(new Wr(QF,Lh,yF,Xd,Iq))}};
pG.visitAfter=function(E){var Z=[],Xd=[],Im;for(this._root&&Z.push(new Wr(this._root,this._x0,this._y0,this._x1,this._y1));Im=Z.pop();){var QF=Im.node;if(QF.length){var Lh,yF=Im.x0,gx=Im.y0,cM=Im.x1,Iq=Im.y1,Q5=(yF+cM)/2,dx=(gx+Iq)/2;(Lh=QF[0])&&Z.push(new Wr(Lh,yF,gx,Q5,dx));(Lh=QF[1])&&Z.push(new Wr(Lh,Q5,gx,cM,dx));(Lh=QF[2])&&Z.push(new Wr(Lh,yF,dx,Q5,Iq));(Lh=QF[3])&&Z.push(new Wr(Lh,Q5,dx,cM,Iq))}Xd.push(Im)}for(;Im=Xd.pop();)E(Im.node,Im.x0,Im.y0,Im.x1,Im.y1);return this};
pG.x=function(E){return arguments.length?(this._x=E,this):this._x};
pG.y=function(E){return arguments.length?(this._y=E,this):this._y};
var wwG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;hNh.prototype=xxF.prototype;xxF.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 Q4x,Bu5={"%":function(E,Z){return(E*100).toFixed(Z)},
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,Z){return E.toExponential(Z)},
f:function(E,Z){return E.toFixed(Z)},
g:function(E,Z){return E.toPrecision(Z)},
o:function(E){return Math.round(E).toString(8)},
p:function(E,Z){return i6e(E*100,Z)},
r:i6e,s:function(E,Z){var Xd=PVm(E,Z);if(!Xd)return E+"";var Im=Xd[0];Xd=Xd[1];Xd=Xd-(Q4x=Math.max(-8,Math.min(8,Math.floor(Xd/3)))*3)+1;var QF=Im.length;return Xd===QF?Im:Xd>QF?Im+Array(Xd-QF+1).join("0"):Xd>0?Im.slice(0,Xd)+"."+Im.slice(Xd):"0."+Array(1-Xd).join("0")+PVm(E,Math.max(0,Z+Xd-1))[0]},
X:function(E){return Math.round(E).toString(16).toUpperCase()},
x:function(E){return Math.round(E).toString(16)}},u05="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),c1w;
(function(E){return c1w=Fbk(E)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});My.prototype={constructor:My,reset:function(){this.s=this.t=0},
add:function(E){b6M(B0F,E,this.t);b6M(this,B0F.s,this.s);this.s?this.t+=B0F.t:this.s=B0F.t},
valueOf:function(){return this.s}};
var B0F=new My,oS=Math.PI,cR=oS/2,Rm5=oS/4,oMt=oS*2,Gcm=oS/180,n4=Math.abs,Vvh=Math.atan,s45=Math.atan2,o2=Math.cos,ne=Math.sin,vbW=Math.sqrt;new My;new My;new My;var Tvt=new My;(function(E,Z,Xd,Im){return function(QF){function Lh(Xr,KF){E(Xr,KF)&&QF.point(Xr,KF)}
function yF(Xr,KF){Yt.point(Xr,KF)}
function gx(){UN.point=yF;Yt.lineStart()}
function cM(){UN.point=Lh;Yt.lineEnd()}
function Iq(Xr,KF){tZ.push([Xr,KF]);qA.point(Xr,KF)}
function Q5(){qA.lineStart();tZ=[]}
function dx(){Iq(tZ[0][0],tZ[0][1]);qA.lineEnd();var Xr=qA.clean(),KF=h2.result(),DN=KF.length,sU;tZ.pop();O6.push(tZ);tZ=null;if(DN)if(Xr&1){if(DN=KF[0],(KF=DN.length-1)>0){NA||(QF.polygonStart(),NA=!0);QF.lineStart();for(Xr=0;Xr<KF;++Xr)QF.point((sU=DN[Xr])[0],sU[1]);QF.lineEnd()}}else DN>1&&Xr&2&&KF.push(KF.pop().concat(KF.shift())),C7.push(KF.filter(Tz3))}
var Yt=Z(QF),h2=GOk(),qA=Z(h2),NA=!1,O6,C7,tZ,UN={point:Lh,lineStart:gx,lineEnd:cM,polygonStart:function(){UN.point=Iq;UN.lineStart=Q5;UN.lineEnd=dx;C7=[];O6=[]},
polygonEnd:function(){UN.point=Lh;UN.lineStart=gx;UN.lineEnd=cM;var Xr=C7,KF=Xr.length;var DN=-1;for(var sU=0,qY,Kf;++DN<KF;)sU+=Xr[DN].length;for(qY=Array(sU);--KF>=0;)for(Kf=Xr[KF],DN=Kf.length;--DN>=0;)qY[--sU]=Kf[DN];C7=qY;Xr=O6;KF=Im[0];sU=Im[1];var A2=ne(sU);DN=[ne(KF),-o2(KF),0];Kf=qY=0;Tvt.reset();A2===1?sU=cR+1E-6:A2===-1&&(sU=-cR-1E-6);A2=0;for(var n1=Xr.length;A2<n1;++A2)if(cH=(cK=Xr[A2]).length){var cK,cH,AI=cK[cH-1],hg=AI[0],eB=AI[1]/2+Rm5,b2W=ne(eB),ldN=o2(eB);for(eB=0;eB<cH;++eB,hg=
HuJ,b2W=DVf,ldN=tO,AI=rIn){var rIn=cK[eB],HuJ=rIn[0];tO=rIn[1]/2+Rm5;var DVf=ne(tO),tO=o2(tO),yQ=HuJ-hg,Jbt=yQ>=0?1:-1,zNJ=Jbt*yQ,KRm=zNJ>oS;b2W*=DVf;Tvt.add(s45(b2W*Jbt*ne(zNJ),ldN*tO+b2W*o2(zNJ)));qY+=KRm?yQ+Jbt*oMt:yQ;KRm^hg>=KF^HuJ>=KF&&(AI=Kmk(rSe(AI),rSe(rIn)),hmJ(AI),hg=Kmk(DN,AI),hmJ(hg),hg=(KRm^yQ>=0?-1:1)*$I3(hg[2]),sU>hg||sU===hg&&(AI[0]||AI[1]))&&(Kf+=KRm^yQ>=0?1:-1)}}Xr=(qY<-1E-6||qY<1E-6&&Tvt<-1E-6)^Kf&1;C7.length?(NA||(QF.polygonStart(),NA=!0),Vxk(C7,H9w,Xr,Xd,QF)):Xr&&(NA||(QF.polygonStart(),
NA=!0),QF.lineStart(),Xd(null,null,1,QF),QF.lineEnd());NA&&(QF.polygonEnd(),NA=!1);C7=O6=null},
sphere:function(){QF.polygonStart();QF.lineStart();Xd(null,null,1,QF);QF.lineEnd();QF.polygonEnd()}};
return UN}})(function(){return!0},function(E){var Z=NaN,Xd=NaN,Im=NaN,QF;
return{lineStart:function(){E.lineStart();QF=1},
point:function(Lh,yF){var gx=Lh>0?oS:-oS,cM=n4(Lh-Z);if(n4(cM-oS)<1E-6)E.point(Z,Xd=(Xd+yF)/2>0?cR:-cR),E.point(Im,Xd),E.lineEnd(),E.lineStart(),E.point(gx,Xd),E.point(Lh,Xd),QF=0;else if(Im!==gx&&cM>=oS){n4(Z-Im)<1E-6&&(Z-=Im*1E-6);n4(Lh-gx)<1E-6&&(Lh-=gx*1E-6);cM=Z;var Iq=Xd,Q5=Lh,dx,Yt,h2=ne(cM-Q5);Xd=n4(h2)>1E-6?Vvh((ne(Iq)*(Yt=o2(yF))*ne(Q5)-ne(yF)*(dx=o2(Iq))*ne(cM))/(dx*Yt*h2)):(Iq+yF)/2;E.point(Im,Xd);E.lineEnd();E.lineStart();E.point(gx,Xd);QF=0}E.point(Z=Lh,Xd=yF);Im=gx},
lineEnd:function(){E.lineEnd();Z=Xd=NaN},
clean:function(){return 2-QF}}},function(E,Z,Xd,Im){E==null?(Xd*=cR,Im.point(-oS,Xd),Im.point(0,Xd),Im.point(oS,Xd),Im.point(oS,0),Im.point(oS,-Xd),Im.point(0,-Xd),Im.point(-oS,-Xd),Im.point(-oS,0),Im.point(-oS,Xd)):n4(E[0]-Z[0])>1E-6?(E=E[0]<Z[0]?oS:-oS,Xd=Xd*E/2,Im.point(-E,Xd),Im.point(0,Xd),Im.point(E,Xd)):Im.point(Z[0],Z[1])},[-oS,
-cR]);new My;new My;new My;new My;LyW.prototype={constructor:LyW,point:function(E,Z){this.stream.point(E,Z)},
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()}};
o2(30*Gcm);(function(E){return function(Z){var Xd=new LyW,Im;for(Im in E)Xd[Im]=E[Im];Xd.stream=Z;return Xd}})({point:function(E,Z){this.stream.point(E*Gcm,Z*Gcm)}});
Lm4(function(E){return vbW(2/(1+E))}).invert=K8(function(E){return 2*$I3(E/2)});
Lm4(function(E){return(E=E>1?0:E<-1?oS:Math.acos(E))&&E/ne(E)}).invert=K8(function(E){return E});
vbW(3);K8(Vvh);K8($I3);K8(function(E){return 2*Vvh(E)});
hO.prototype=mlf.prototype={constructor:hO,count:function(){return this.eachAfter(JeG)},
each:function(E){var Z,Xd=[this],Im;do{var QF=Xd.reverse();for(Xd=[];Z=QF.pop();)if(E(Z),Z=Z.children){var Lh=0;for(Im=Z.length;Lh<Im;++Lh)Xd.push(Z[Lh])}}while(Xd.length);return this},
eachAfter:function(E){for(var Z,Xd=[this],Im=[],QF,Lh;Z=Xd.pop();)if(Im.push(Z),Z=Z.children)for(QF=0,Lh=Z.length;QF<Lh;++QF)Xd.push(Z[QF]);for(;Z=Im.pop();)E(Z);return this},
eachBefore:function(E){for(var Z,Xd=[this],Im;Z=Xd.pop();)if(E(Z),Z=Z.children)for(Im=Z.length-1;Im>=0;--Im)Xd.push(Z[Im]);return this},
sum:function(E){return this.eachAfter(function(Z){for(var Xd=+E(Z.data)||0,Im=Z.children,QF=Im&&Im.length;--QF>=0;)Xd+=Im[QF].value;Z.value=Xd})},
sort:function(E){return this.eachBefore(function(Z){Z.children&&Z.children.sort(E)})},
path:function(E){var Z=this;var Xd=Z;var Im=E;if(Xd!==Im){var QF=Xd.ancestors(),Lh=Im.ancestors(),yF=null;Xd=QF.pop();for(Im=Lh.pop();Xd===Im;)yF=Xd,Xd=QF.pop(),Im=Lh.pop();Xd=yF}for(Im=[Z];Z!==Xd;)Z=Z.parent,Im.push(Z);for(Z=Im.length;E!==Xd;)Im.splice(Z,0,E),E=E.parent;return Im},
ancestors:function(){for(var E=this,Z=[E];E=E.parent;)Z.push(E);return Z},
links:function(){var E=this,Z=[];E.each(function(Xd){Xd!==E&&Z.push({source:Xd.parent,target:Xd})});
return Z},
copy:function(){return mlf(this).eachBefore(MxG)}};
(function(E,Z){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=Z}).prototype=Object.create(hO.prototype);
var sLJ=new Date,mxF=new Date,CeC=sn(function(){},function(E,Z){E.setTime(+E+Z)},function(E,Z){return Z-E});
CeC.every=function(E){E=Math.floor(E);return isFinite(E)&&E>0?E>1?sn(function(Z){Z.setTime(Math.floor(Z/E)*E)},function(Z,Xd){Z.setTime(+Z+Xd*E)},function(Z,Xd){return(Xd-Z)/E}):CeC:null};
sn(function(E){E.setTime(Math.floor(E/1E3)*1E3)},function(E,Z){E.setTime(+E+Z*1E3)},function(E,Z){return(Z-E)/1E3},function(E){return E.getUTCSeconds()});
sn(function(E){E.setTime(Math.floor(E/6E4)*6E4)},function(E,Z){E.setTime(+E+Z*6E4)},function(E,Z){return(Z-E)/6E4},function(E){return E.getMinutes()});
sn(function(E){var Z=E.getTimezoneOffset()*6E4%36E5;Z<0&&(Z+=36E5);E.setTime(Math.floor((+E-Z)/36E5)*36E5+Z)},function(E,Z){E.setTime(+E+Z*36E5)},function(E,Z){return(Z-E)/36E5},function(E){return E.getHours()});
var t0J=sn(function(E){E.setHours(0,0,0,0)},function(E,Z){E.setDate(E.getDate()+Z)},function(E,Z){return(Z-E-(Z.getTimezoneOffset()-E.getTimezoneOffset())*6E4)/864E5},function(E){return E.getDate()-1}),MdU=dQ(0),Ec3=dQ(1);
dQ(2);dQ(3);var tvW=dQ(4);dQ(5);dQ(6);sn(function(E){E.setDate(1);E.setHours(0,0,0,0)},function(E,Z){E.setMonth(E.getMonth()+Z)},function(E,Z){return Z.getMonth()-E.getMonth()+(Z.getFullYear()-E.getFullYear())*12},function(E){return E.getMonth()});
var ED=sn(function(E){E.setMonth(0,1);E.setHours(0,0,0,0)},function(E,Z){E.setFullYear(E.getFullYear()+Z)},function(E,Z){return Z.getFullYear()-E.getFullYear()},function(E){return E.getFullYear()});
ED.every=function(E){return isFinite(E=Math.floor(E))&&E>0?sn(function(Z){Z.setFullYear(Math.floor(Z.getFullYear()/E)*E);Z.setMonth(0,1);Z.setHours(0,0,0,0)},function(Z,Xd){Z.setFullYear(Z.getFullYear()+Xd*E)}):null};
sn(function(E){E.setUTCSeconds(0,0)},function(E,Z){E.setTime(+E+Z*6E4)},function(E,Z){return(Z-E)/6E4},function(E){return E.getUTCMinutes()});
sn(function(E){E.setUTCMinutes(0,0,0)},function(E,Z){E.setTime(+E+Z*36E5)},function(E,Z){return(Z-E)/36E5},function(E){return E.getUTCHours()});
var Edc=sn(function(E){E.setUTCHours(0,0,0,0)},function(E,Z){E.setUTCDate(E.getUTCDate()+Z)},function(E,Z){return(Z-E)/864E5},function(E){return E.getUTCDate()-1}),qk3=Rv(0),eNh=Rv(1);
Rv(2);Rv(3);var Nvn=Rv(4);Rv(5);Rv(6);sn(function(E){E.setUTCDate(1);E.setUTCHours(0,0,0,0)},function(E,Z){E.setUTCMonth(E.getUTCMonth()+Z)},function(E,Z){return Z.getUTCMonth()-E.getUTCMonth()+(Z.getUTCFullYear()-E.getUTCFullYear())*12},function(E){return E.getUTCMonth()});
var tj=sn(function(E){E.setUTCMonth(0,1);E.setUTCHours(0,0,0,0)},function(E,Z){E.setUTCFullYear(E.getUTCFullYear()+Z)},function(E,Z){return Z.getUTCFullYear()-E.getUTCFullYear()},function(E){return E.getUTCFullYear()});
tj.every=function(E){return isFinite(E=Math.floor(E))&&E>0?sn(function(Z){Z.setUTCFullYear(Math.floor(Z.getUTCFullYear()/E)*E);Z.setUTCMonth(0,1);Z.setUTCHours(0,0,0,0)},function(Z,Xd){Z.setUTCFullYear(Z.getUTCFullYear()+Xd*E)}):null};
var emJ={"-":"",_:" ",0:"0"},NC=/^\s*\d+/,jvo=/^%/,zpP=/[\\^$*+?|[\]().{}]/g,hLo;(function(E){hLo=fXt(E);G_x=hLo.utcFormat;VXg=hLo.utcParse;return hLo})({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||G_x("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||VXg("%Y-%m-%dT%H:%M:%S.%LZ");vd("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
vd("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");vd("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");vd("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");vd("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");vd("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");vd("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
vd("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");vd("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");vd("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");vd("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");vd("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var W3p=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(vd);oQ(W3p);var pn6=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(vd);oQ(pn6);var SKw=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(vd);oQ(SKw);var UWt=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(vd);
oQ(UWt);var gM6=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(vd);oQ(gM6);var aDN=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(vd);oQ(aDN);var IDt=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(vd);oQ(IDt);var OjP=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(vd);oQ(OjP);var A1G=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(vd);oQ(A1G);var P4o=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(vd);oQ(P4o);var $WG=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(vd);oQ($WG);var vMG=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(vd);oQ(vMG);var ijw=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(vd);oQ(ijw);var kGt=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(vd);oQ(kGt);var uaN=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(vd);oQ(uaN);var Qrt=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(vd);oQ(Qrt);var BIU=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(vd);oQ(BIU);var bj3=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(vd);oQ(bj3);var r13=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(vd);oQ(r13);var K3N=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(vd);oQ(K3N);var hHG=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(vd);oQ(hHG);var xWY=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(vd);oQ(xWY);var L36=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(vd);oQ(L36);var srt=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(vd);oQ(srt);var mWU=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(vd);oQ(mWU);var eHt=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(vd);oQ(eHt);var EMo=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(vd);oQ(EMo);Fyd(sd(300,.5,0),sd(-240,.5,1));Fyd(sd(-100,.75,.35),sd(80,1.5,.8));Fyd(sd(260,.75,.35),sd(80,1.5,.8));sd();HM();uf3(vd("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
uf3(vd("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
uf3(vd("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
uf3(vd("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Tuk.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,Z){E=+E;Z=+Z;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(E,Z):this._context.moveTo(E,Z);break;case 1:this._point=2;default:this._context.lineTo(E,Z)}}};
(function(E){function Z(Xd){return new H65(E(Xd))}
Z._curve=E;return Z})(function(E){return new Tuk(E)});
H65.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(E,Z){this._curve.point(Z*Math.sin(E),Z*-Math.cos(E))}};
ybm.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:YAn(this,this._t0,zmx(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(E,Z){var Xd=NaN;E=+E;Z=+Z;if(E!==this._x1||Z!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(E,Z):this._context.moveTo(E,Z);break;case 1:this._point=2;break;case 2:this._point=3;YAn(this,zmx(this,Xd=JSx(this,E,Z)),Xd);break;default:YAn(this,this._t0,Xd=JSx(this,E,Z))}this._x0=this._x1;this._x1=E;this._y0=this._y1;this._y1=Z;this._t0=Xd}}};
(function(E){this._context=new j4M(E)}.prototype=Object.create(ybm.prototype)).point=function(E,Z){ybm.prototype.point.call(this,Z,E)};
j4M.prototype={moveTo:function(E,Z){this._context.moveTo(Z,E)},
closePath:function(){this._context.closePath()},
lineTo:function(E,Z){this._context.lineTo(Z,E)},
bezierCurveTo:function(E,Z,Xd,Im,QF,Lh){this._context.bezierCurveTo(Z,E,Im,Xd,Lh,QF)}};
m7.prototype={constructor:m7,scale:function(E){return E===1?this:new m7(this.k*E,this.x,this.y)},
translate:function(E,Z){return E===0&Z===0?this:new m7(this.k,this.x+this.k*E,this.y+this.k*Z)},
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 m7(1,0,0);AdZ=QU;Xx.svg=Xx.svg;Xx.xhtml=Xx.xhtml;Xx.xlink=Xx.xlink;Xx.xml=Xx.xml;Xx.xmlns=Xx.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 TBb="hammer_"+(Math.random()*1E6|0),Hnx=function(){var D=document||document;if(!D[TBb]){var C=function(){(function(X,c,W,p){function g(Em,TJ,qR){return setTimeout(Q(Em,qR),TJ)}
function a(Em,TJ,qR){return Array.isArray(Em)?(O(Em,qR[TJ],qR),!0):!1}
function O(Em,TJ,qR){var xg;if(Em)if(Em.forEach)Em.forEach(TJ,qR);else if(Em.length!==p){var K1=0;for(xg=Em.length;K1<xg;K1++)TJ.call(qR,Em[K1],K1,Em)}else for(K1 in Em)Em.hasOwnProperty(K1)&&TJ.call(qR,Em[K1],K1,Em)}
function P(Em,TJ,qR){for(var xg=Object.keys(TJ),K1=0,wj=xg.length;K1<wj;K1++)if(!qR||qR&&Em[xg[K1]]===p)Em[xg[K1]]=TJ[xg[K1]];return Em}
function k(Em,TJ){return P(Em,TJ,!0)}
function u(Em,TJ,qR){TJ=TJ.prototype;var xg=Em.prototype=Object.create(TJ);xg.constructor=Em;xg._super=TJ;qR&&P(xg,qR)}
function Q(Em,TJ){return function(){return Em.apply(TJ,arguments)}}
function B(Em,TJ){return typeof Em=="function"?Em.apply(TJ?TJ[0]||p:p,TJ):Em}
function K(Em,TJ,qR){O(t(TJ),function(xg){Em.addEventListener(xg,qR,!1)})}
function L(Em,TJ,qR){O(t(TJ),function(xg){Em.removeEventListener(xg,qR,!1)})}
function t(Em){return Em.trim().split(/\s+/g)}
function Y(Em,TJ,qR){if(Em.indexOf&&!qR)return Em.indexOf(TJ);for(var xg=0,K1=Em.length;xg<K1;xg++)if(qR&&Em[xg][qR]==TJ||!qR&&Em[xg]===TJ)return xg;return-1}
function y(Em,TJ,qR){for(var xg=[],K1=[],wj=0,NY=Em.length;wj<NY;wj++){var Ed=TJ?Em[wj][TJ]:Em[wj];Y(K1,Ed)<0&&xg.push(Em[wj]);K1[wj]=Ed}qR&&(xg=TJ?xg.sort(function(sd,Hp){return sd[TJ]>Hp[TJ]}):xg.sort());
return xg}
function J(Em,TJ){for(var qR,xg=TJ[0].toUpperCase()+TJ.slice(1),K1=0,wj=vM.length;K1<wj;K1++)if(qR=(qR=vM[K1])?qR+xg:TJ,qR in Em)return qR;return p}
function T(Em,TJ){var qR=this;this.manager=Em;this.callback=TJ;this.element=Em.element;this.target=Em.options.inputTarget;this.domHandler=function(xg){B(Em.options.enable,[Em])&&qR.handler(xg)};
this.evEl&&K(this.element,this.evEl,this.domHandler);this.evTarget&&K(this.target,this.evTarget,this.domHandler);this.evWin&&K(X,this.evWin,this.domHandler)}
function H(Em){var TJ;jN?TJ=Fd:Oe?TJ=GJ:QU?TJ=jZ:TJ=r5;return new TJ(Em,q)}
function q(Em,TJ,qR){var xg=qR.pointers.length,K1=qR.changedPointers.length,wj=TJ&1&&xg-K1===0;qR.isFirst=!!wj;qR.isFinal=!!(TJ&12&&xg-K1===0);wj&&(Em.session={});qR.eventType=TJ;TJ=Em.session;xg=qR.pointers;K1=xg.length;TJ.firstInput||(TJ.firstInput=R(qR));K1>1&&!TJ.firstMultiple?TJ.firstMultiple=R(qR):K1===1&&(TJ.firstMultiple=!1);wj=TJ.firstInput;var NY=(K1=TJ.firstMultiple)?K1.center:wj.center,Ed=qR.center=ph(xg);qR.timeStamp=ow();qR.deltaTime=qR.timeStamp-wj.timeStamp;qR.angle=Bo(NY,Ed);qR.distance=
xj(NY,Ed);wj=qR.center;NY=TJ.offsetDelta||{};Ed=TJ.prevDelta||{};var sd=TJ.prevInput||{};if(qR.eventType===1||sd.eventType===4)Ed=TJ.prevDelta={x:sd.deltaX||0,y:sd.deltaY||0},NY=TJ.offsetDelta={x:wj.x,y:wj.y};qR.deltaX=Ed.x+(wj.x-NY.x);qR.deltaY=Ed.y+(wj.y-NY.y);qR.offsetDirection=Om(qR.deltaX,qR.deltaY);K1?(wj=K1.pointers,wj=xj(xg[0],xg[1],HM)/xj(wj[0],wj[1],HM)):wj=1;qR.scale=wj;K1?(K1=K1.pointers,xg=Bo(xg[1],xg[0],HM)-Bo(K1[1],K1[0],HM)):xg=0;qR.rotation=xg;NY=TJ.lastInterval||qR;xg=qR.timeStamp-
NY.timeStamp;qR.eventType!=8&&(xg>25||NY.velocity===p)?(wj=NY.deltaX-qR.deltaX,NY=NY.deltaY-qR.deltaY,Ed=wj/xg||0,sd=NY/xg||0,xg=Ed,K1=sd,Ed=Rm(Ed)>Rm(sd)?Ed:sd,wj=Om(wj,NY),TJ.lastInterval=qR):(Ed=NY.velocity,xg=NY.velocityX,K1=NY.velocityY,wj=NY.direction);qR.velocity=Ed;qR.velocityX=xg;qR.velocityY=K1;qR.direction=wj;TJ=Em.element;a:{for(xg=qR.srcEvent.target;xg;){if(xg==TJ){xg=!0;break a}xg=xg.parentNode}xg=!1}xg&&(TJ=qR.srcEvent.target);qR.target=TJ;Em.emit("hammer.input",qR);Em.recognize(qR);
Em.session.prevInput=qR}
function R(Em){for(var TJ=[],qR=0;qR<Em.pointers.length;qR++)TJ[qR]={clientX:p1(Em.pointers[qR].clientX),clientY:p1(Em.pointers[qR].clientY)};return{timeStamp:ow(),pointers:TJ,center:ph(TJ),deltaX:Em.deltaX,deltaY:Em.deltaY}}
function ph(Em){var TJ=Em.length;if(TJ===1)return{x:p1(Em[0].clientX),y:p1(Em[0].clientY)};for(var qR=0,xg=0,K1=0;K1<TJ;K1++)qR+=Em[K1].clientX,xg+=Em[K1].clientY;return{x:p1(qR/TJ),y:p1(xg/TJ)}}
function Om(Em,TJ){return Em===TJ?1:Rm(Em)>=Rm(TJ)?Em>0?2:4:TJ>0?8:16}
function xj(Em,TJ,qR){qR||(qR=Bd);var xg=TJ[qR[0]]-Em[qR[0]];Em=TJ[qR[1]]-Em[qR[1]];return Math.sqrt(xg*xg+Em*Em)}
function Bo(Em,TJ,qR){qR||(qR=Bd);return Math.atan2(TJ[qR[1]]-Em[qR[1]],TJ[qR[0]]-Em[qR[0]])*180/Math.PI}
function r5(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;T.apply(this,arguments)}
function Fd(){this.evEl=ro;this.evWin=fy;T.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function GJ(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};T.apply(this,arguments)}
function jZ(){T.apply(this,arguments);var Em=Q(this.handler,this);this.touch=new GJ(this.manager,Em);this.mouse=new r5(this.manager,Em)}
function Ac(Em,TJ){this.manager=Em;this.set(TJ)}
function ib(Em){if(Em.indexOf("none")>-1)return"none";var TJ=Em.indexOf("pan-x")>-1,qR=Em.indexOf("pan-y")>-1;return TJ&&qR?"pan-x pan-y":TJ||qR?TJ?"pan-x":"pan-y":Em.indexOf("manipulation")>-1?"manipulation":"auto"}
function d5(Em){this.id=iU++;this.manager=null;this.options=k(Em||{},this.defaults);Em=this.options.enable;this.options.enable=Em===p?!0:Em;this.state=1;this.simultaneous={};this.requireFail=[]}
function ub(Em){return Em==16?"down":Em==8?"up":Em==2?"left":Em==4?"right":""}
function L5(Em,TJ){return(TJ=TJ.manager)?TJ.get(Em):Em}
function Nf(){d5.apply(this,arguments)}
function xt(){Nf.apply(this,arguments);this.pY=this.pX=null}
function u6(){Nf.apply(this,arguments)}
function g5(){d5.apply(this,arguments);this._input=this._timer=null}
function oq(){Nf.apply(this,arguments)}
function rx(){Nf.apply(this,arguments)}
function Rq(){d5.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function K5(Em,TJ){TJ=TJ||{};var qR=TJ.recognizers;TJ.recognizers=qR===p?K5.defaults.preset:qR;return new C1(Em,TJ)}
function C1(Em,TJ){TJ=TJ||{};this.options=k(TJ,K5.defaults);this.options.inputTarget=this.options.inputTarget||Em;this.handlers={};this.session={};this.recognizers=[];this.element=Em;this.input=H(this);this.touchAction=new Ac(this,this.options.touchAction);LK(this,!0);O(TJ.recognizers,function(qR){var xg=this.add(new qR[0](qR[1]));qR[2]&&xg.recognizeWith(qR[2]);qR[3]&&xg.requireFailure(qR[2])},this)}
function LK(Em,TJ){var qR=Em.element;O(Em.options.cssProps,function(xg,K1){qR.style[J(qR.style,K1)]=TJ?xg:""})}
function Mf(Em,TJ){var qR=c.createEvent("Event");qR.initEvent(Em,!0,!0);qR.gesture=TJ;TJ.target.dispatchEvent(qR)}
var vM=" webkit moz MS ms o".split(" "),kg=c.createElement("div"),p1=Math.round,Rm=Math.abs,ow=Date.now,iU=1,oH=/mobile|tablet|ip(ad|hone|od)|android/i,QU="ontouchstart"in X,jN=J(X,"PointerEvent")!==p,Oe=QU&&oH.test(navigator.userAgent),Bd=["x","y"],HM=["clientX","clientY"];T.prototype={handler:function(){},
destroy:function(){this.evEl&&L(this.element,this.evEl,this.domHandler);this.evTarget&&L(this.target,this.evTarget,this.domHandler);this.evWin&&L(X,this.evWin,this.domHandler)}};
var mG={mousedown:1,mousemove:2,mouseup:4};u(r5,T,{handler:function(Em){var TJ=mG[Em.type];TJ&1&&Em.button===0&&(this.pressed=!0);TJ&2&&Em.which!==1&&(TJ=4);this.pressed&&this.allow&&(TJ&4&&(this.pressed=!1),this.callback(this.manager,TJ,{pointers:[Em],changedPointers:[Em],pointerType:"mouse",srcEvent:Em}))}});
var UX={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},bc={2:"touch",3:"pen",4:"mouse",5:"kinect"},ro="pointerdown",fy="pointermove pointerup pointercancel";X.MSPointerEvent&&(ro="MSPointerDown",fy="MSPointerMove MSPointerUp MSPointerCancel");u(Fd,T,{handler:function(Em){var TJ=this.store,qR=!1,xg=Em.type.toLowerCase().replace("ms","");xg=UX[xg];var K1=bc[Em.pointerType]||Em.pointerType;xg&1&&(Em.button===0||K1=="touch")?TJ.push(Em):xg&12&&(qR=!0);var wj=Y(TJ,Em.pointerId,"pointerId");
wj<0||(TJ[wj]=Em,this.callback(this.manager,xg,{pointers:TJ,changedPointers:[Em],pointerType:K1,srcEvent:Em}),qR&&TJ.splice(wj,1))}});
var We={touchstart:1,touchmove:2,touchend:4,touchcancel:8};u(GJ,T,{handler:function(Em){var TJ=We[Em.type];var qR=Array.prototype.slice.call(Em.touches,0);var xg=this.targetIds;if(TJ&3&&qR.length===1)xg[qR[0].identifier]=!0,xg=[qR,qR];else{var K1,wj=Array.prototype.slice.call(Em.targetTouches,0),NY=Array.prototype.slice.call(Em.changedTouches,0),Ed=[];if(TJ===1)for(qR=0,K1=wj.length;qR<K1;qR++)xg[wj[qR].identifier]=!0;qR=0;for(K1=NY.length;qR<K1;qR++)xg[NY[qR].identifier]&&Ed.push(NY[qR]),TJ&12&&
delete xg[NY[qR].identifier];xg=Ed.length?[y(wj.concat(Ed),"identifier",!0),Ed]:void 0}xg&&this.callback(this.manager,TJ,{pointers:xg[0],changedPointers:xg[1],pointerType:"touch",srcEvent:Em})}});
u(jZ,T,{handler:function(Em,TJ,qR){var xg=qR.pointerType=="mouse";if(qR.pointerType=="touch")this.mouse.allow=!1;else if(xg&&!this.mouse.allow)return;TJ&12&&(this.mouse.allow=!0);this.callback(Em,TJ,qR)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var su=J(kg.style,"touchAction"),Kq=su!==p;Ac.prototype={set:function(Em){Em=="compute"&&(Em=this.compute());Kq&&(this.manager.element.style[su]=Em);this.actions=Em.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Em=[];O(this.manager.recognizers,function(TJ){B(TJ.options.enable,[TJ])&&(Em=Em.concat(TJ.getTouchAction()))});
return ib(Em.join(" "))},
preventDefaults:function(Em){if(!Kq){var TJ=Em.srcEvent;Em=Em.offsetDirection;if(this.manager.session.prevented)TJ.preventDefault();else{var qR=this.actions,xg=qR.indexOf("none")>-1,K1=qR.indexOf("pan-y")>-1;qR=qR.indexOf("pan-x")>-1;if(xg||K1&&qR||K1&&Em&6||qR&&Em&24)return this.preventSrc(TJ)}}},
preventSrc:function(Em){this.manager.session.prevented=!0;Em.preventDefault()}};
d5.prototype={defaults:{},set:function(Em){P(this.options,Em);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Em){if(a(Em,"recognizeWith",this))return this;var TJ=this.simultaneous;Em=L5(Em,this);TJ[Em.id]||(TJ[Em.id]=Em,Em.recognizeWith(this));return this},
dropRecognizeWith:function(Em){if(a(Em,"dropRecognizeWith",this))return this;Em=L5(Em,this);delete this.simultaneous[Em.id];return this},
requireFailure:function(Em){if(a(Em,"requireFailure",this))return this;var TJ=this.requireFail;Em=L5(Em,this);Y(TJ,Em)===-1&&(TJ.push(Em),Em.requireFailure(this));return this},
dropRequireFailure:function(Em){if(a(Em,"dropRequireFailure",this))return this;Em=L5(Em,this);Em=Y(this.requireFail,Em);Em>-1&&this.requireFail.splice(Em,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Em){return!!this.simultaneous[Em.id]},
emit:function(Em){function TJ(K1){qR.manager.emit(qR.options.event+(K1?xg&16?"cancel":xg&8?"end":xg&4?"move":xg&2?"start":"":""),Em)}
var qR=this,xg=this.state;xg<8&&TJ(!0);TJ();xg>=8&&TJ(!0)},
tryEmit:function(Em){if(this.canEmit())return this.emit(Em);this.state=32},
canEmit:function(){for(var Em=0;Em<this.requireFail.length;Em++)if(!(this.requireFail[Em].state&33))return!1;return!0},
recognize:function(Em){Em=P({},Em);B(this.options.enable,[this,Em])?(this.state&56&&(this.state=1),this.state=this.process(Em),this.state&30&&this.tryEmit(Em)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
u(Nf,d5,{defaults:{pointers:1},attrTest:function(Em){var TJ=this.options.pointers;return TJ===0||Em.pointers.length===TJ},
process:function(Em){var TJ=this.state,qR=Em.eventType,xg=TJ&6;Em=this.attrTest(Em);return xg&&(qR&8||!Em)?TJ|16:xg||Em?qR&4?TJ|8:TJ&2?TJ|4:2:32}});
u(xt,Nf,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Em=this.options.direction;if(Em===30)return["none"];var TJ=[];Em&6&&TJ.push("pan-y");Em&24&&TJ.push("pan-x");return TJ},
directionTest:function(Em){var TJ=this.options,qR=!0,xg=Em.distance,K1=Em.direction,wj=Em.deltaX,NY=Em.deltaY;K1&TJ.direction||(TJ.direction&6?(K1=wj===0?1:wj<0?2:4,qR=wj!=this.pX,xg=Math.abs(Em.deltaX)):(K1=NY===0?1:NY<0?8:16,qR=NY!=this.pY,xg=Math.abs(Em.deltaY)));Em.direction=K1;return qR&&xg>TJ.threshold&&K1&TJ.direction},
attrTest:function(Em){return Nf.prototype.attrTest.call(this,Em)&&(this.state&2||!(this.state&2)&&this.directionTest(Em))},
emit:function(Em){this.pX=Em.deltaX;this.pY=Em.deltaY;var TJ=ub(Em.direction);TJ&&this.manager.emit(this.options.event+TJ,Em);this._super.emit.call(this,Em)}});
u(u6,Nf,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Em){return this._super.attrTest.call(this,Em)&&(Math.abs(Em.scale-1)>this.options.threshold||this.state&2)},
emit:function(Em){this._super.emit.call(this,Em);Em.scale!==1&&this.manager.emit(this.options.event+(Em.scale<1?"in":"out"),Em)}});
u(g5,d5,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Em){var TJ=this.options,qR=Em.pointers.length===TJ.pointers,xg=Em.distance<TJ.threshold,K1=Em.deltaTime>TJ.time;this._input=Em;if(!xg||!qR||Em.eventType&12&&!K1)this.reset();else if(Em.eventType&1)this.reset(),this._timer=g(function(){this.state=8;this.tryEmit()},TJ.time,this);
else if(Em.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Em){this.state===8&&(Em&&Em.eventType&4?this.manager.emit(this.options.event+"up",Em):(this._input.timeStamp=ow(),this.manager.emit(this.options.event,this._input)))}});
u(oq,Nf,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Em){return this._super.attrTest.call(this,Em)&&(Math.abs(Em.rotation)>this.options.threshold||this.state&2)}});
u(rx,Nf,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return xt.prototype.getTouchAction.call(this)},
attrTest:function(Em){var TJ=this.options.direction;if(TJ&30)var qR=Em.velocity;else TJ&6?qR=Em.velocityX:TJ&24&&(qR=Em.velocityY);return this._super.attrTest.call(this,Em)&&TJ&Em.direction&&Rm(qR)>this.options.velocity&&Em.eventType&4},
emit:function(Em){var TJ=ub(Em.direction);TJ&&this.manager.emit(this.options.event+TJ,Em);this.manager.emit(this.options.event,Em)}});
u(Rq,d5,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Em){var TJ=this.options,qR=Em.pointers.length===TJ.pointers,xg=Em.distance<TJ.threshold,K1=Em.deltaTime<TJ.time;this.reset();if(Em.eventType&1&&this.count===0)return this.failTimeout();if(xg&&K1&&qR){if(Em.eventType!=4)return this.failTimeout();qR=this.pTime?Em.timeStamp-this.pTime<TJ.interval:!0;xg=!this.pCenter||xj(this.pCenter,Em.center)<TJ.posThreshold;this.pTime=Em.timeStamp;this.pCenter=Em.center;xg&&qR?this.count+=1:this.count=1;this._input=Em;if(this.count%TJ.taps===0)return this.hasRequireFailures()?
(this._timer=g(function(){this.state=8;this.tryEmit()},TJ.interval,this),2):8}return 32},
failTimeout:function(){this._timer=g(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))}});
K5.VERSION="2.0.2";K5.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[oq,{enable:!1}],[u6,{enable:!1},["rotate"]],[rx,{direction:6}],[xt,{direction:6},["swipe"]],[Rq],[Rq,{event:"doubletap",taps:2},["tap"]],[g5]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};C1.prototype={set:function(Em){P(this.options,Em);return this},
stop:function(Em){this.session.stopped=Em?2:1},
recognize:function(Em){var TJ=this.session;if(!TJ.stopped){this.touchAction.preventDefaults(Em);var qR=this.recognizers,xg=TJ.curRecognizer;if(!xg||xg&&xg.state&8)xg=TJ.curRecognizer=null;for(var K1=0,wj=qR.length;K1<wj;K1++){var NY=qR[K1];TJ.stopped===2||xg&&NY!=xg&&!NY.canRecognizeWith(xg)?NY.reset():NY.recognize(Em);!xg&&NY.state&14&&(xg=TJ.curRecognizer=NY)}}},
get:function(Em){if(Em instanceof d5)return Em;for(var TJ=this.recognizers,qR=0;qR<TJ.length;qR++)if(TJ[qR].options.event==Em)return TJ[qR];return null},
add:function(Em){if(a(Em,"add",this))return this;var TJ=this.get(Em.options.event);TJ&&this.remove(TJ);this.recognizers.push(Em);Em.manager=this;this.touchAction.update();return Em},
remove:function(Em){if(a(Em,"remove",this))return this;var TJ=this.recognizers;Em=this.get(Em);TJ.splice(Y(TJ,Em),1);this.touchAction.update();return this},
on:function(Em,TJ){var qR=this.handlers;O(t(Em),function(xg){qR[xg]=qR[xg]||[];qR[xg].push(TJ)});
return this},
off:function(Em,TJ){var qR=this.handlers;O(t(Em),function(xg){TJ?qR[xg].splice(Y(qR[xg],TJ),1):delete qR[xg]});
return this},
emit:function(Em,TJ){this.options.domEvents&&Mf(Em,TJ);var qR=this.handlers[Em]&&this.handlers[Em].slice();if(qR&&qR.length){TJ.type=Em;TJ.preventDefault=function(){TJ.srcEvent.preventDefault()};
Em=0;for(var xg=qR.length;Em<xg;Em++)qR[Em](TJ)}},
destroy:function(){this.element&&LK(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
P(K5,{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:C1,Input:T,TouchAction:Ac,Recognizer:d5,AttrRecognizer:Nf,Tap:Rq,Pan:xt,Swipe:rx,Pinch:u6,Rotate:oq,Press:g5,on:K,off:L,each:O,merge:k,extend:P,inherit:u,bindFn:Q,prefixed:J});
X[W]=K5})(window,document,"Hammer");
return window.Hammer}.call({});
C.DOCUMENT=D;D[TBb]=C}return D[TBb]};/*

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

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

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 IZ,V$5,Td5;IZ=Element.prototype;V$5=IZ.matches||IZ.matchesSelector||IZ.mozMatchesSelector||IZ.msMatchesSelector||IZ.oMatchesSelector||IZ.webkitMatchesSelector;Td5=function(){};
_.J6x=function(D){var C=HLd,X=[];return C._collectTabbableNodes(D,X)?C._sortByTabIndex(X):X};
_.S=Td5.prototype;_.S.isFocusable=function(D){return V$5.call(D,"input, select, textarea, button, object")?V$5.call(D,":not([disabled])"):V$5.call(D,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.S._normalizedTabIndex=function(D){return this.isFocusable(D)?(D=D.getAttribute("tabindex")||0,Number(D)):-1};
_.S._collectTabbableNodes=function(D,C){if(D.nodeType!==Node.ELEMENT_NODE||!this._isVisible(D))return!1;var X=this._normalizedTabIndex(D),c=X>0;X>=0&&C.push(D);if(D.localName==="content"||D.localName==="slot")X=_.kr(D).getDistributedNodes();else{var W;X=((W=_.kr(D).shadowRoot)!=null?W:_.kr(D.root||D)).children}for(D=0;D<X.length;D++)c=this._collectTabbableNodes(X[D],C)||c;return c};
_.S._isVisible=function(D){var C=D.style;return C.visibility!=="hidden"&&C.display!=="none"?(C=window.getComputedStyle(D),C.visibility!=="hidden"&&C.display!=="none"):!1};
_.S._sortByTabIndex=function(D){var C=D.length;if(C<2)return D;var X=Math.ceil(C/2);C=this._sortByTabIndex(D.slice(0,X));D=this._sortByTabIndex(D.slice(X));return this._mergeSortByTabIndex(C,D)};
_.S._mergeSortByTabIndex=function(D,C){for(var X=[];D.length>0&&C.length>0;)this._hasLowerTabOrder(D[0],C[0])?X.push(C.shift()):X.push(D.shift());return X.concat(D,C)};
_.S._hasLowerTabOrder=function(D,C){D=Math.max(D.tabIndex,0);C=Math.max(C.tabIndex,0);return D===0||C===0?C>D:D>C};
var HLd=new Td5;var zJN;var jKk;_.mZ({_template:function(){if(jKk!==void 0)return jKk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;zJN===void 0&&(zJN=document.createElement("template"));var c=zJN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return jKk=D},
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&&_.kr(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.kr(this.parentNode).removeChild(this)},
_onTransitionend:function(D){D&&D.target===this&&this.complete()},
_openedChanged:function(D){D?this.prepare():(D=window.getComputedStyle(this),D.transitionDuration!=="0s"&&D.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 OM=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;MI(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)};
OM.prototype._bringOverlayAtIndexToFront=function(D){var C=this._overlays[D];if(C){var X=this._overlays.length-1,c=this._overlays[X];c&&this._shouldBeBehindOverlay(C,c)&&X--;if(!(D>=X)){c=Math.max(this._getZ(_.M$M(this)),this._minimumZ);for(this._getZ(C)<=c&&this._applyOverlayZ(C,c);D<X;)this._overlays[D]=this._overlays[D+1],D++;this._overlays[X]=C}}};
OM.prototype.addOverlay=function(D){var C=this._overlays.indexOf(D);if(C>=0)this._bringOverlayAtIndexToFront(C);else{C=this._overlays.length;var X=this._overlays[C-1],c=Math.max(this._getZ(X),this._minimumZ),W=this._getZ(D);X&&this._shouldBeBehindOverlay(D,X)&&(this._applyOverlayZ(X,c),C--,c=Math.max(this._getZ(this._overlays[C-1]),this._minimumZ));W<=c&&this._applyOverlayZ(D,c);this._overlays.splice(C,0,D)}this.trackBackdrop()};
OM.prototype.removeOverlay=function(D){D=this._overlays.indexOf(D);D!==-1&&(this._overlays.splice(D,1),this.trackBackdrop())};
_.M$M=function(D){return D._overlays[D._overlays.length-1]};
_.S=OM.prototype;_.S.trackBackdrop=function(){var D=this._overlayWithBackdrop();if(D||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(D)-1,this.backdropElement.opened=!!D,this.backdropElement.prepare()};
_.S._overlayWithBackdrop=function(){for(var D=this._overlays.length-1;D>=0;D--)if(this._overlays[D].withBackdrop)return this._overlays[D]};
_.S._getZ=function(D){var C=this._minimumZ;if(D){var X,c,W=Number(((X=D.hostElement)!=null?X:D).style.zIndex||window.getComputedStyle((c=D.hostElement)!=null?c:D).zIndex);W===W&&(C=W)}return C};
_.S._setZ=function(D,C){var X;((X=D.hostElement)!=null?X:D).style.zIndex=C};
_.S._applyOverlayZ=function(D,C){this._setZ(D,C+2)};
_.S._overlayInPath=function(D){D=D||[];for(var C=0;C<D.length;C++){var X=void 0;if(((X=D[C].polymerController)!=null?X:D[C])._manager===this)return D[C]}};
_.S._onCaptureClick=function(D){var C=this._overlays.length-1;if(C!==-1)for(var X=_.kr(D).path,c,W;(c=this._overlays[C])&&this._overlayInPath(X)!==((W=c.hostElement)!=null?W:c);)if(c._onCaptureClick(D),c.allowClickThrough)C--;else break};
_.S._onCaptureFocus=function(D){var C=_.M$M(this);C&&C._onCaptureFocus(D)};
_.S._onCaptureKeyDown=function(D){var C=_.M$M(this);C&&(_.H8.keyboardEventMatchesKeys(D,"esc")?C._onCaptureEsc(D):_.H8.keyboardEventMatchesKeys(D,"tab")&&C._onCaptureTab(D))};
_.S._shouldBeBehindOverlay=function(D,C){return!D.alwaysOnTop&&C.alwaysOnTop&&!C.contains(D)};
_.$a.Object.defineProperties(OM.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 D=document.activeElement;D&&D instanceof Element!==!1||(D=document.body);for(;D.root&&_.kr(D.root).activeElement;)D=_.kr(D.root).activeElement;return D}}});
_.Af=new OM;var QR3=0,BWF=0,br3=null,rxj=[],uE=["wheel","mousewheel","DOMMouseScroll"],K8m;_.b("web_no_lock_on_touchstart_killswitch")&&(uE.push("touchstart"),uE.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;_.Px={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:_.Af},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var D;return this._focusedChild||_.kr((D=this.hostElement)!=null?D:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var D;return _.J6x((D=this.hostElement)!=null?D: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 D;this._observer=_.kr((D=this.hostElement)!=null?D:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var D;_.kr((D=this.hostElement)!=null?D:this).unobserveNodes(this._observer)}this._observer=null;for(var C in this.__rafs)this.__rafs[C]!==null&&cancelAnimationFrame(this.__rafs[C]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(D){this.fire("iron-overlay-canceled",D,{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 D;((D=this.hostElement)!=null?D:this).style.outline="none";var C;((C=this.hostElement)!=null?C:this).style.display="none"}},
_openedChanged:function(D){if(D){var C;((C=this.hostElement)!=null?C:this).removeAttribute("aria-hidden")}else{var X;((X=this.hostElement)!=null?X:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var D;if(this.withBackdrop&&!((D=this.hostElement)!=null?D:this).hasAttribute("tabindex")){var C;((C=this.hostElement)!=null?C:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var X;((X=this.hostElement)!=null?X:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var D;((D=this.hostElement)!=null?D:this).style.display="none";var C;((C=this.hostElement)!=null?C:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var D,C;((D=this.hostElement)!=null?D:this).style.transition=((C=this.hostElement)!=null?C:this).style.webkitTransition="none";var X,c;((X=this.hostElement)!=null?X:this).style.transform=((c=this.hostElement)!=null?c:this).style.webkitTransform="none";var W;((W=this.hostElement)!=null?W:this).style.display=""},
_finishPositioning:function(){var D;((D=this.hostElement)!=null?D:this).style.display="none";this.scrollTop=this.scrollTop;var C,X;((C=this.hostElement)!=null?C:this).style.transition=((X=this.hostElement)!=null?X:this).style.webkitTransition="";var c,W;((c=this.hostElement)!=null?c:this).style.transform=((W=this.hostElement)!=null?W:this).style.webkitTransform="";var p;((p=this.hostElement)!=null?p:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var D=this._manager.deepActiveElement,C;if(!(C=D===document.body))a:{for(;D;D=D.assignedSlot||D.parentNode||D.host)if(D===this){C=!0;break a}C=!1}C&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(D){this.noCancelOnOutsideClick||this.cancel(D)},
_onCaptureFocus:function(D){if(this.withBackdrop){var C=_.kr(D).path;C.indexOf(this)===-1?(D.stopPropagation(),this._applyFocus()):this._focusedChild=C[0]}},
_onCaptureEsc:function(D){this.noCancelOnEscKey||this.cancel(D)},
_onCaptureTab:function(D){if(this.withBackdrop){this.__ensureFirstLastFocusables();var C=D.shiftKey,X=C?this.__firstFocusableNode:this.__lastFocusableNode;C=C?this.__lastFocusableNode:this.__firstFocusableNode;if(X===C)X=!0;else{var c=this._manager.deepActiveElement;X=c===X||c===this}X&&(D.preventDefault(),this._focusedChild=C,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var D=this._focusableNodes;this.__firstFocusableNode=D[0];this.__lastFocusableNode=D[D.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(D,C){var X=this.__rafs;X[D]!==null&&cancelAnimationFrame(X[D]);X[D]=requestAnimationFrame(function(){X[D]=null;C.call(this)}.bind(this))},
__updateScrollObservers:function(D,C,X){D&&C&&this.__isValidScrollAction(X)?(X==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),K8m=_._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()):(D=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),D!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(D,1),K8m=_._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(D4)for(var D=this;D;)D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&D.host&&this.__rootNodes.push(D),D=D.host||D.assignedSlot||D.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(C){C.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(D){D.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(D){return D==="lock"||D==="refit"||D==="cancel"},
__onCaptureScroll:function(D){if(!(this.__isAnimating||_.kr(D).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(D)}},
__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)}};
_.$O=[Gi4,_.lR,_.Px];_.mZ({_template:function(){if(FEM!==void 0)return FEM;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;wqb===void 0&&(wqb=document.createElement("template"));var c=wqb;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return FEM=D},
is:"tp-yt-iron-dropdown",behaviors:[_.Jn,_.H8,_.$O,UyN],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 D=_.kr(this.$.content).getDistributedNodes(),C=0,X=D.length;C<X;C++)if(D[C].nodeType===Node.ELEMENT_NODE)return D[C]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.Px._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Px._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Px._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var D=this.containedElement,C=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),X=0;X<C.length;X++)C[X].node=D;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(D){this._readied&&(D?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var D=this.focusTarget||this.containedElement;D&&this.opened&&!this.noAutoFocus?D.focus():_.Px._applyFocus.apply(this,arguments)}});var qfJ;var fV4;/*

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 ds5=new _.qD({type:"iconset"});
_.mZ({_template:function(){if(fV4!==void 0)return fV4;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;qfJ===void 0&&(qfJ=document.createElement("template"));
var c=qfJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return fV4=D},
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(D){D=(D||"").split(":");this._iconName=D.pop();this._iconsetName=D.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&&_.kr(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=ds5.byKey(this._iconsetName)){var D=this._iconset.applyIcon(this,this._iconName,this.theme);D&&D.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,_.kr(this.root).appendChild(this._img)}});var RJq;var lVd;_.mZ({_template:function(){if(lVd!==void 0)return lVd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;RJq===void 0&&(RJq=document.createElement("template"));var c=RJq;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return lVd=D},
is:"tp-yt-iron-input",behaviors:[_.dP],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(){_.aZ.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.kr(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.kr(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 D=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":D=/[0-9.,e-]/}return D},_bindValueChanged:function(D,C){C&&(D===void 0?C.value=null:D!==C.value&&(this.inputElement.value=D),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:D}))},
_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(D){var C=D.keyCode==19||D.keyCode==20||D.keyCode==45||D.keyCode==46||D.keyCode==144||D.keyCode==145||D.keyCode>32&&D.keyCode<41||D.keyCode>111&&D.keyCode<124;return!(D.keyCode==8||D.keyCode==9||D.keyCode==13||D.keyCode==27)&&!(D.charCode==0&&C)},
_onKeypress:function(D){if(this.allowedPattern||this.inputElement.type==="number"){var C=this._patternRegExp;if(C&&!(D.metaKey||D.ctrlKey||D.altKey)){this._patternAlreadyChecked=!0;var X=String.fromCharCode(D.charCode);this._isPrintable(D)&&!C.test(X)&&(D.preventDefault(),this._announceInvalidCharacter("Invalid character "+X+" not entered."))}}},
_checkPatternValidity:function(){var D=this._patternRegExp;if(!D)return!0;for(var C=0;C<this.inputElement.value.length;C++)if(!D.test(this.inputElement.value[C]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var D=this.inputElement.checkValidity();D&&(this.required&&this.bindValue===""?D=!1:this.hasValidator()&&(D=_.dP.validate.call(this,this.bindValue)));this.invalid=!D;this.fire("iron-input-validate");return D},
_announceInvalidCharacter:function(D){this.fire("iron-announce",{text:D})},
_computeValue:function(D){return D}});var D$x;var CaC;var XF5=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),c3e=XF5&&XF5[1]>=8;
_.mZ({_template:function(){if(CaC!==void 0)return CaC;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;D$x===void 0&&(D$x=document.createElement("template"));var c=D$x;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return CaC=D},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[qKm,_.lR,_.SGk,T2x],_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 _.kr(_.kr(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var D=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,D-this._physicalCount)},set _virtualStart(D){D=this._clamp(D,0,this._maxVirtualStart);this.grid&&(D-=D%this._itemsPerRow);this._virtualStartVal=D},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(D){D%=this._physicalCount;D<0&&(D=this._physicalCount+D);this.grid&&(D-=D%this._itemsPerRow);this._physicalStartVal=D},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(D){this._physicalCountVal=D},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 D=this._firstVisibleIndexVal;if(D==null){var C=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
D=this._iterateItems(function(X,c){C+=this._getPhysicalSizeIncrement(X);if(C>this._scrollPosition)return this.grid?c-c%this._itemsPerRow:c;if(this.grid&&this._virtualCount-1===c)return c-c%this._itemsPerRow})||0}return D},
get lastVisibleIndex(){var D=this._lastVisibleIndexVal;if(D==null){if(this.grid)D=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var C=this._physicalTop+this._scrollOffset;this._iterateItems(function(X,c){C<this._scrollBottom&&(D=c);C+=this._getPhysicalSizeIncrement(X)})}this._lastVisibleIndexVal=D}return D},
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,_.hv);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(D){this.style.webkitOverflowScrolling=D===this?"touch":"";this.style.overflowY=D===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.hv)},
updateViewportBoundaries:function(){var D=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(D["padding-top"],10);this._isRTL=D.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var D=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),C=D-this._scrollPosition,X=C>=0;this._scrollPosition=D;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(C)>this._physicalSize&&this._physicalSize>0?(C-=this._scrollOffset,X=Math.round(C/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=X,this._physicalStart+=X,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(D=this._getReusables(X),X?(this._physicalTop=D.physicalTop,this._virtualStart+=D.indexes.length,this._physicalStart+=D.indexes.length):(this._virtualStart=this._virtualStart-D.indexes.length,this._physicalStart=this._physicalStart-D.indexes.length),this._update(D.indexes,X?null:D.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),d0))},
_getReusables:function(D){var C=[],X=this._hiddenContentSize*this._ratio,c=this._virtualStart,W=this._virtualEnd,p=this._physicalCount,g=this._physicalTop+this._scrollOffset;var a=this._physicalBottom+this._scrollOffset;var O=this._scrollPosition,P=this._scrollBottom;if(D){var k=this._physicalStart;a=O-g}else k=this._physicalEnd,a-=P;for(;;){var u=this._getPhysicalSizeIncrement(k);a-=u;if(C.length>=p||a<=X)break;if(D){if(W+C.length+1>=this._virtualCount)break;if(g+u>=O-this._scrollOffset)break;C.push(k);
g+=u;k=(k+1)%p}else{if(c-C.length<=0)break;if(g+this._physicalSize-u<=P)break;C.push(k);g-=u;k=k===0?p-1:k-1}}return{indexes:C,physicalTop:g-this._scrollOffset}},
_update:function(D,C){if(!(D&&D.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(D);this._updateMetrics(D);if(C)for(;C.length;)D=C.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(D);this._positionItems();this._updateScrollerSize()}},
_createPool:function(D){this._ensureTemplatized();var C,X=Array(D);for(C=0;C<D;C++){var c=this.stamp(null);X[C]=c.root.querySelector("*");this._itemsParent.appendChild(c.root)}return X},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(D){D=this._clamp(this._physicalCount+D,3,this._virtualCount-this._virtualStart);D=this._convertIndexToCompleteRow(D);if(this.grid){var C=D%this._itemsPerRow;C&&D-C<=this._physicalCount&&(D+=this._itemsPerRow);D-=C}D-=this._physicalCount;C=Math.round(this._physicalCount*.5);if(!(D<0)){if(D>0){C=window.performance.now();[].push.apply(this._physicalItems,this._createPool(D));for(var X=0;X<D;X++)this._physicalSizes.push(0);this._physicalCount+=D;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=D);this._update();this._templateCost=(window.performance.now()-C)/D;C=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||C===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,C)),KZd):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,C),d0))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var D=this._getReusables(!0);this._physicalTop=D.physicalTop;this._virtualStart+=D.indexes.length;this._physicalStart+=D.indexes.length;this._update(D.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 D={__key__:!0};D[this.as]=!0;D[this.indexAs]=!0;D[this.selectedAs]=!0;D.tabIndex=!0;this._instanceProps=D;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(D,C){typeof C!=="undefined"&&(this.notifyResize(),_.m8(),D&&this._updateGridMetrics())},
_itemsChanged:function(D){if(D.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,
_.hv);else if(D.path==="items.splices"){this._adjustVirtualIndex(D.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(D.value.indexSplices.some(function(X){return X.addedCount>0||X.removed.length>0})){var C=this._getActiveElement();
this.contains(C)&&C.blur()}D=D.value.indexSplices.some(function(X){return X.index+X.addedCount>=this._virtualStart&&X.index<=this._virtualEnd},this);
this._isClientFull()&&!D||this._debounce("_render",this._render,_.hv)}else D.path!=="items.length"&&this._forwardItemPath(D.path,D.value)},
_forwardItemPath:function(D,C){D=D.slice(6);var X=D.indexOf(".");X===-1&&(X=D.length);var c,W=this.modelForElement(this._offscreenFocusedItem),p=parseInt(D.substring(0,X),10);if(c=this._isIndexRendered(p)){var g=this._getPhysicalIndex(p);var a=this.modelForElement(this._physicalItems[g])}else W&&(a=W);a&&a[this.indexAs]===p&&(D=D.substring(X+1),D=this.as+(D?"."+D:""),a._setPendingPropertyOrPath(D,C,!1,!0),a._flushProperties&&a._flushProperties(),c&&(this._updateMetrics([g]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(D){D.forEach(function(C){C.removed.forEach(this._removeItem,this);C.index<this._virtualStart&&(C=Math.max(C.addedCount-C.removed.length,C.index-this._virtualStart),this._virtualStart+=C,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=C))},this)},
_removeItem:function(D){this.$.selector.deselect(D);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===D&&this._removeFocusedItem()},
_iterateItems:function(D,C){var X,c;if(arguments.length===2&&C)for(c=0;c<C.length;c++){var W=C[c];var p=this._computeVidx(W);if((X=D.call(this,W,p))!=null)return X}else{W=this._physicalStart;for(p=this._virtualStart;W<this._physicalCount;W++,p++)if((X=D.call(this,W,p))!=null)return X;for(W=0;W<this._physicalStart;W++,p++)if((X=D.call(this,W,p))!=null)return X}},
_computeVidx:function(D){return D>=this._physicalStart?this._virtualStart+(D-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+D},
_assignModels:function(D){this._iterateItems(function(C,X){var c=this._physicalItems[C],W=this.items&&this.items[X];if(W!=null){var p=this.modelForElement(c);p.__key__=null;this._forwardProperty(p,this.as,W);this._forwardProperty(p,this.selectedAs,this.$.selector.isSelected(W));this._forwardProperty(p,this.indexAs,X);this._forwardProperty(p,"tabIndex",this._focusedVirtualIndex===X?0:-1);this._physicalIndexForKey[p.__key__]=C;p._flushProperties&&p._flushProperties(!0);c.removeAttribute("hidden")}else c.setAttribute("hidden",
"")},D)},
_updateMetrics:function(D){_.m8();var C=0,X=0,c=this._physicalAverageCount,W=this._physicalAverage;this._iterateItems(function(p){X+=this._physicalSizes[p];this._physicalSizes[p]=this._physicalItems[p].offsetHeight;C+=this._physicalSizes[p];this._physicalAverageCount+=this._physicalSizes[p]?1:0},D);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(X=this._itemsPerRow===1?X:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+C-X,this._itemsPerRow=1);this._physicalAverageCount!==c&&(this._physicalAverage=Math.round((W*c+C)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var D=this._physicalTop;if(this.grid){var C=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(X,c){var W=Math.floor(c%this._itemsPerRow*this._itemWidth+C);this._isRTL&&(W*=-1);this.translate3d(W+"px",D+"px",0,this._physicalItems[X]);this._shouldRenderNextRow(c)&&(D+=this._rowHeight)})}else this._iterateItems(function(X){this.translate3d(0,D+"px",0,this._physicalItems[X]);
D+=this._physicalSizes[X]})},
_getPhysicalSizeIncrement:function(D){return this.grid?this._computeVidx(D)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[D]},
_shouldRenderNextRow:function(D){return D%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var D=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(D!==0){this._physicalTop=this._physicalTop-D;var C=this._scrollPosition;!c3e&&C>0&&this._resetScrollPosition(C-D)}},
_resetScrollPosition:function(D){this.scrollTarget&&D>=0&&(this._scrollPosition=this._scrollTop=D)},
_updateScrollerSize:function(D){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((D=(D=(D=D||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(D){return this.scrollToIndex(this.items.indexOf(D))},
scrollToIndex:function(D){if(!(typeof D!=="number"||D<0||D>this.items.length-1)&&(_.m8(),this._physicalCount!==0)){D=this._clamp(D,0,this._virtualCount-1);if(!this._isIndexRendered(D)||D>=this._maxVirtualStart)this._virtualStart=this.grid?D-this._itemsPerRow*2:D-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var C=this._physicalStart,X=this._virtualStart,c=0,W=this._hiddenContentSize;X<D&&
c<=W;)c+=this._getPhysicalSizeIncrement(C),C=(C+1)%this._physicalCount,X++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+c);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)},_.hv)},
selectItem:function(D){return this.selectIndex(this.items.indexOf(D))},
selectIndex:function(D){if(!(D<0||D>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(D)){var C=this.modelForElement(this._physicalItems[this._getPhysicalIndex(D)]);C&&(C[this.selectedAs]=!0);this.updateSizeForIndex(D)}this.$.selector.selectIndex(D)}},
deselectItem:function(D){return this.deselectIndex(this.items.indexOf(D))},
deselectIndex:function(D){D<0||D>=this._virtualCount||(this._isIndexRendered(D)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(D)])[this.selectedAs]=!1,this.updateSizeForIndex(D)),this.$.selector.deselectIndex(D))},
toggleSelectionForItem:function(D){return this.toggleSelectionForIndex(this.items.indexOf(D))},
toggleSelectionForIndex:function(D){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(D):this.$.selector.isSelected(this.items[D]))?this.deselectIndex(D):this.selectIndex(D)},
clearSelection:function(){this._iterateItems(function(D){this.modelForElement(this._physicalItems[D])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(D){(D?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(D){var C=this.modelForElement(D.target);if(C){var X=_.kr(D).path[0];D=this._getActiveElement();var c=this._physicalItems[this._getPhysicalIndex(C[this.indexAs])];if(X.localName!=="input"&&X.localName!=="button"&&X.localName!=="select"){X=C.tabIndex;C.tabIndex=-100;var W=D?D.tabIndex:-1;C.tabIndex=X;D&&c!==D&&c.contains(D)&&W!==-100||this.toggleSelectionForItem(C[this.as])}}},
_multiSelectionChanged:function(D){this.clearSelection();this.$.selector.multi=D},
updateSizeForItem:function(D){return this.updateSizeForIndex(this.items.indexOf(D))},
updateSizeForIndex:function(D){if(!this._isIndexRendered(D))return null;this._updateMetrics([this._getPhysicalIndex(D)]);this._positionItems();return null},
_manageFocus:function(){var D=this._focusedVirtualIndex;D>=0&&D<this._virtualCount?this._isIndexRendered(D)?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(D){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(D/this._itemsPerRow)*this._itemsPerRow:D},
_isIndexRendered:function(D){return D>=this._virtualStart&&D<=this._virtualEnd},
_isIndexVisible:function(D){return D>=this.firstVisibleIndex&&D<=this.lastVisibleIndex},
_getPhysicalIndex:function(D){return(this._physicalStart+(D-this._virtualStart))%this._physicalCount},
focusItem:function(D){this._focusPhysicalItem(D)},
_focusPhysicalItem:function(D){if(!(D<0||D>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(D)||this.scrollToIndex(D);var C=this._physicalItems[this._getPhysicalIndex(D)],X=this.modelForElement(C),c;X.tabIndex=-100;C.tabIndex===-100&&(c=C);c||(c=_.kr(C).querySelector('[tabindex="-100"]'));X.tabIndex=0;this._focusedVirtualIndex=D;c&&c.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 D=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var C=this.stamp(null);this._focusBackfillItem=C.root.querySelector("*");this._itemsParent.appendChild(C.root)}this._offscreenFocusedItem=this._physicalItems[D];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[D]=this._focusBackfillItem;this._focusedPhysicalIndex=D;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var D=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),C=this._physicalItems[D];if(C){var X=this.modelForElement(C),c=this.modelForElement(this._offscreenFocusedItem);X[this.as]===c[this.as]?(this._focusBackfillItem=C,X.tabIndex=-1,this._physicalItems[D]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(D){D=this.modelForElement(D.target);var C=this.modelForElement(this._focusedItem),X=this._offscreenFocusedItem!==null,c=this._focusedVirtualIndex;D&&(C===D?this._isIndexVisible(c)||this.scrollToIndex(c):(this._restoreFocusedItem(),C&&(C.tabIndex=-1),D.tabIndex=0,this._focusedVirtualIndex=c=D[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(c),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],X&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(D){switch(D.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&D.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&&D.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(D)}},
_clamp:function(D,C,X){return Math.min(X,Math.max(C,D))},
_debounce:function(D,C,X){this._debouncers=this._debouncers||{};this._debouncers[D]=_.Kr(this._debouncers[D],X,C.bind(this));_.hx(this._debouncers[D])},
_forwardProperty:function(D,C,X){D._setPendingProperty(C,X)},
_forwardHostPropV2:function(D,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(X){X&&this.modelForElement(X).forwardHostProp(D,C)},this)},
_notifyInstancePropV2:function(D,C,X){s9m(this.as,C)&&(D=D[this.indexAs],C==this.as&&(this.items[D]=X),this.notifyPath(ef(this.as,"items."+D,C),X))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(D,C,X){C.indexOf(this.as+".")===0&&this.notifyPath("items."+D.__key__+"."+C.slice(this.as.length+1),X)},
_forwardParentPath:function(D,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(X){X&&this.modelForElement(X).notifyPath(D,C)},this)},
_forwardParentProp:function(D,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(X){X&&(this.modelForElement(X)[D]=C)},this)},
_getActiveElement:function(){var D=this._itemsParent.node.domHost;return _.kr(D?D.root:document).activeElement},
_scrollTargetChanged:function(D,C){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(C)if(D==="document")this.scrollTarget=this._doc;else if(typeof D==="string"){var X,c;this.scrollTarget=(C=(c=(X=this.domHost)==null?void 0:X.polymerController)!=null?c:this.domHost)&&C.$?C.$[D]:_.kr(this.ownerDocument).querySelector("#"+D)}else this._isValidScrollTarget()&&(this._oldScrollTarget=D,this._toggleScrollListener(this._shouldHaveListener,D))}});var o15;var W2d;var pFc=function(D,C,X,c){D-=X;C-=c;return Math.sqrt(D*D+C*C)},SCC=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
hUR.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var xi3=function(D){D.maxRadius=0;D.mouseDownStart=0;D.mouseUpStart=0;D.xStart=0;D.yStart=0;D.xEnd=0;D.yEnd=0;D.containerMetrics=new hUR(D.element)};
L8j.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var D=SCC()-this.mouseDownStart;this.mouseUpStart&&(D-=this.mouseUpElapsed);return D},get mouseUpElapsed(){return this.mouseUpStart?SCC()-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 D=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(D*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-D/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var D=this.radius/(this.containerMetrics.size/2);var C=this.xNow-this.containerMetrics.width/2;var X=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+C+"px, "+X+"px)";this.waveContainer.style.transform="translate3d("+C+"px, "+X+"px, 0)";this.wave.style.webkitTransform="scale("+D+","+D+")";this.wave.style.transform="scale3d("+D+","+D+",1)"},
downAction:function(D){var C=this.containerMetrics.width/2,X=this.containerMetrics.height/2;xi3(this);this.mouseDownStart=SCC();this.center?(this.xStart=C,this.yStart=X):(this.xStart=D?D.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=D?D.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=C,this.yEnd=X);D=this.containerMetrics;C=this.xStart;X=this.yStart;this.maxRadius=Math.max(pFc(C,X,0,0),pFc(C,X,
D.width,0),pFc(C,X,0,D.height),pFc(C,X,D.width,D.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=SCC())},
remove:function(){_.kr(_.kr(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.mZ({_template:function(){if(W2d!==void 0)return W2d;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;o15===void 0&&(o15=document.createElement("template"));var c=o15;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return W2d=D},
is:"tp-yt-paper-ripple",behaviors:[_.H8],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(){_.kr(this).parentNode.nodeType==11?this.keyEventTarget=_.kr(this).getOwnerRoot().host:this.keyEventTarget=_.kr(this).parentNode;var D=this.keyEventTarget;this.listen(D,"up","uiUpAction");this.listen(D,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(D){D.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var D=0;D<this.ripples.length;++D)if(!this.ripples[D].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(D){this.noink||this.downAction(D)},
downAction:function(D){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(D),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(D){this.noink||this.upAction(D)},
upAction:function(D){this.holdDown||(this.ripples.forEach(function(C){C.upAction(D)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var D=0;D<this.ripples.length;++D){var C=this.ripples[D];C.isOpacityFullyDecayed&&!C.isRestingAtMaxRadius&&this.removeRipple(C)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var D=new L8j(this);_.kr(this.$.waves).appendChild(D.waveContainer);this.$.background.style.backgroundColor=D.color;this.ripples.push(D);this._setAnimating(!0);return D},
removeRipple:function(D){var C=this.ripples.indexOf(D);C<0||(this.ripples.splice(C,1),D.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var D;for(D=0;D<this.ripples.length;++D){var C=this.ripples[D];C.draw();this.$.background.style.opacity=C.outerOpacity;C.isOpacityFullyDecayed&&!C.isRestingAtMaxRadius&&this.removeRipple(C)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(D,C){C!==void 0&&(D?this.downAction():this.upAction())}});var vx={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(D){zE._downHandler.call(this,D);this.pressed&&this.ensureRipple(D)},
ensureRipple:function(D){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var C=this._rippleContainer||this.root;C&&_.kr(C).appendChild(this._ripple);if(D){C=_.kr(this._rippleContainer||this);var X=_.kr(D).rootTarget;C.deepContains(X)&&this._ripple.uiDownAction(D)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(D){this.hasRipple()&&(this._ripple.noink=D)}};var U$C={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 D=1;this.disabled?D=0:this.active||this.pressed?D=4:this.receivedFocusFromKeyboard&&(D=3);this._setElevation(D)},
_computeKeyboardClass:function(D){this.toggleClass("keyboard-focus",D)},
_spaceKeyDownHandler:function(D){zE._spaceKeyDownHandler.call(this,D);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(D){zE._spaceKeyUpHandler.call(this,D);this.hasRipple()&&this._ripple.uiUpAction()}},g1k=[ftM,
_.Jn,vx,U$C];_.aZb={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=D)},
_createRipple:function(){var D=vx._createRipple();D.id="ink";D.setAttribute("center","");D.classList.add("circle");return D}};
_.IZN=[ftM,_.Jn,vx,_.aZb];_.OW5=[_.IZN,ltN,{_checkedChanged:function(){RD5._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){vx._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var A35;var Pab;var $$g=function(){};
_.S=$$g.prototype;_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._buttonStateChanged=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._createRipple=function(){};
_.S._noinkChanged=function(){};
_.S._computeKeyboardClass=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
_.S._setElevation=function(){};
$$g=_.mZ({_template:function(){if(Pab!==void 0)return Pab;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;A35===void 0&&(A35=document.createElement("template"));var c=A35;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Pab=D},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[g1k],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?U$C._calculateElevation.apply(this):this._setElevation(0)}});var v1J;var iWJ;var kgN={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(D){_.b("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(D)},
_onDialogClickWrapped:function(D){_.b("dialog_behavior_no_tap_killswitch")||this._onDialogClick(D)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(D,C){C&&(D?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(D){if(D){var C;((C=this.hostElement)!=null?C:this).setAttribute("aria-modal","true")}else{var X;((X=this.hostElement)!=null?X:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(D){this.closingReason=this.closingReason||{};this.closingReason.confirmed=D},
_onDialogClick:function(D){for(var C=_.kr(D).path,X=0,c,W=C.indexOf((c=this.hostElement)!=null?c:this);X<W;X++)if(c=C[X],c.hasAttribute&&(c.hasAttribute("dialog-dismiss")||c.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(c.hasAttribute("dialog-confirm"));this.close();D.stopPropagation();break}}},unC=[_.$O,
kgN];var Qbd=document.createElement("template");_.x(Qbd,'<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(Qbd.content);var Bkd=document.createElement("template");_.x(Bkd,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Bkd.content);_.mZ({_template:function(){if(iWJ!==void 0)return iWJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;v1J===void 0&&(v1J=document.createElement("template"));var c=v1J;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return iWJ=D},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[unC,UyN],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 bWM;var r3M;_.mZ({_template:function(){if(r3M!==void 0)return r3M;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;bWM===void 0&&(bWM=document.createElement("template"));var c=bWM;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return r3M=D},
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 D,C,X;if(((D=window.ShadyDOM)==null?void 0:D.noPatch)!==!0&&((C=window.ShadyDOM)==null?void 0:C.noPatch)!=="on-demand"||((X=this.__shady_parentNode)==null?void 0:X.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(kgN)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var K2C=_.q8(['<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>']),hTJ=_.MY4(K2C);hTJ.setAttribute("style","display: none;");document.head.appendChild(hTJ.content);var x$M;var L24;var sbx;var m$J;_.mZ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Db],configure:function(D){var C=D.node,X=C.getBoundingClientRect().height;return this._effect=new KeyframeEffect(C,[{height:X/2+"px"},{height:X+"px"}],this.timingFromConfig(D))}});
_.mZ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Db],configure:function(D){var C=D.node,X=C.getBoundingClientRect().width;return this._effect=new KeyframeEffect(C,[{width:X/2+"px"},{width:X+"px"}],this.timingFromConfig(D))}});
_.mZ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Db],configure:function(D){var C=D.node,X=C.getBoundingClientRect().width;return this._effect=new KeyframeEffect(C,[{width:X+"px"},{width:X-X/20+"px"}],this.timingFromConfig(D))}});
_.mZ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Db],configure:function(D){var C=D.node,X=C.getBoundingClientRect().height;this.setPrefixedProperty(C,"transformOrigin","0 0");return this._effect=new KeyframeEffect(C,[{height:X+"px",transform:"translateY(0)"},{height:X/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(D))}});var iJ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},eTe=function(){};
_.S=eTe.prototype;_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._focusBlurHandler=function(){};
_.S._changedControlState=function(){};
_.S._setFocused=function(){};
eTe=_.mZ({_template:function(){if(m$J!==void 0)return m$J;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;sbx===void 0&&(sbx=document.createElement("template"));var c=sbx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return m$J=D},
is:"tp-yt-paper-menu-button",behaviors:[_.H8,_.Jn],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:iJ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:iJ.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:iJ.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 D=_.kr(this.$.content).getDistributedNodes(),C=0,X=D.length;C<X;C++)if(D[C].nodeType===Node.ELEMENT_NODE)return D[C]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(D,C){D?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):C!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(D){_.Jn._disabledChanged.apply(this,arguments);D&&this.opened&&this.close()},
__onIronOverlayCanceled:function(D){var C=this.$.trigger;_.kr(D.detail).path.indexOf(C)>-1&&D.preventDefault()}});
Object.keys(iJ).forEach(function(D){eTe[D]=iJ[D]});var E15=_.jB.IronButtonState,tLb=(0,_.GI)(HTMLElement);
_.mZ({_template:function(){if(L24!==void 0)return L24;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;x$M===void 0&&(x$M=document.createElement("template"));var c=x$M;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return L24=D},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[E15,_.Jn,vx,_.MD,_.dP],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(D){var C=(0,_.yo)(this);C.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:D});C.shadowRoot.appendChild(D);return tLb.prototype._attachDom.call(this,D)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.kr(this.$.content).getDistributedNodes(),C=0,X=D.length;C<X;C++)if(D[C].nodeType===Node.ELEMENT_NODE)return D[C]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var C="";D?C=D.label||D.getAttribute("label")||D.textContent.trim():C="";this.value=C;this._setSelectedItemLabel(C)},
_computeMenuVerticalOffset:function(D,C){return C?C:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",C=this.contentElement;C&&C.setAttribute("aria-expanded",D)},
_computeLabelClass:function(D,C,X){var c="label";if(D)X&&(c+=" label-is-hidden");else if(X||C)c+=" label-is-floating";return c},
_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 NkJ;var YCd;_.mZ({is:"tp-yt-paper-icon-button",_template:function(){if(YCd!==void 0)return YCd;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;NkJ===void 0&&(NkJ=document.createElement("template"));var c=NkJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return YCd=D},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.IZN],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(D,C){var X=this.getAttribute("aria-label");X&&C!=X||this.setAttribute("aria-label",D)}});var y3x;var n1M;_.kO=[ftM,_.Jn,{hostAttributes:{role:"option",tabindex:"0"}}];_.mZ({_template:function(){if(n1M!==void 0)return n1M;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;y3x===void 0&&(y3x=document.createElement("template"));var c=y3x;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return n1M=D},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.kO]});var wFM;var F2M;var ZWJ={attached:function(){this.fire("addon-attached")},
update:function(){}};var Gg4=1,VL4=1,Tkd=1,HW5=[_.Jn,_.H8,{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();!iW&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(D,C){D?D=D+" "+C:D=C;return D},
_onAddonAttached:function(D){D=_.kr(D).rootTarget;if(D.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,D.id);else{var C="paper-input-add-on-"+VL4++;D.id=C;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,C)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(D){_.Jn._focusBlurHandler.call(this,D);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var D=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",D);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(D){try{var C=this.inputElement.selectionStart;this.value=D;this.inputElement.selectionStart=C;this.inputElement.selectionEnd=C}catch(X){this.value=D}},
_computeAlwaysFloatLabel:function(D,C){return C||D},
_updateAriaLabelledBy:function(){var D=_.kr(this.root).querySelector("label");if(D){if(D.id)var C=D.id;else C="paper-input-label-"+Gg4++,D.id=C;this._ariaLabelledBy=C}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Tkd++)},
_onChange:function(D){this.shadowRoot&&this.fire(D.type,{sourceEvent:D},{node:this,bubbles:D.bubbles,cancelable:D.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var D=document.activeElement;D instanceof HTMLElement&&D!==document.body&&D!==document.documentElement||this._focusableElement.focus()}}}];var J3c;var zT5;_.mZ({_template:function(){if(zT5!==void 0)return zT5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;J3c===void 0&&(J3c=document.createElement("template"));var c=J3c;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return zT5=D},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[ZWJ],properties:{_charCounterStr:{type:String,value:"0"}},update:function(D){if(D.inputElement){D.value=D.value||"";var C=D.value.toString().length.toString();D.inputElement.hasAttribute("maxlength")&&(C+="/"+D.inputElement.getAttribute("maxlength"));this._charCounterStr=C}}});var jbg;var MLN;_.mZ({_template:function(){if(MLN!==void 0)return MLN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;jbg===void 0&&(jbg=document.createElement("template"));var c=jbg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return MLN=D},
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 hI(this.attrForValue)},get _inputElement(){return _.kr(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(D){this._addons||(this._addons=[]);D=D.target;this._addons.indexOf(D)===-1&&(this._addons.push(D),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(D){this._handleValueAndAutoValidate(D.target)},
_onValueChanged:function(D){var C=D.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,C.value===void 0||C.value===""))return;this._handleValueAndAutoValidate(D.target)},
_handleValue:function(D){var C=this._inputElementValue;C||C===0||D.type==="number"&&!D.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:D,value:C,invalid:this.invalid})},
_handleValueAndAutoValidate:function(D){this.autoValidate&&D&&(this.invalid=!(D.validate?D.validate(this._inputElementValue):D.checkValidity()));this._handleValue(D)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(D){if(this._addons)for(var C,X=0;C=this._addons[X];X++)C.update(D)},
_computeInputContentClass:function(D,C,X,c,W){var p="input-content";D?(W&&(p+=" label-is-hidden"),c&&!this.noUnfloatedLabelError&&(p+=" is-invalid")):(D=this.querySelector("label"),C||W?(p+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",c?p+=" is-invalid":X&&(p+=" label-is-highlighted")):(D&&(this.$.labelAndInputContainer.style.position="relative"),c&&!this.noUnfloatedLabelError&&(p+=" is-invalid")));X&&(p+=" focused");return p},
_computeUnderlineClass:function(D,C){var X="underline";C?X+=" is-invalid":D&&(X+=" is-highlighted");return X},
_computeAddOnContentClass:function(D,C){var X="add-on-content";C?X+=" is-invalid":D&&(X+=" is-highlighted");return X}});var qCx;var fZN;_.mZ({_template:function(){if(fZN!==void 0)return fZN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;qCx===void 0&&(qCx=document.createElement("template"));var c=qCx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return fZN=D},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[ZWJ],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(D){this._setInvalid(D.invalid)}});_.mZ({is:"tp-yt-paper-input",_template:function(){if(F2M!==void 0)return F2M;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;wFM===void 0&&(wFM=document.createElement("template"));var c=wFM;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return F2M=D},
behaviors:[HW5,_.MD],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 d$J;var RTe;_.mZ({_template:function(){if(RTe!==void 0)return RTe;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=
D.content,X=C.insertBefore;d$J===void 0&&(d$J=document.createElement("template"));var c=d$J;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return RTe=D},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.kO]});var lZc;var Dqq;_.mZ({_template:function(){if(Dqq!==void 0)return Dqq;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;lZc===void 0&&(lZc=document.createElement("template"));var c=lZc;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Dqq=D},
is:"tp-yt-paper-item-body"});var CFM;var XPc;var csx=function(){};
_.S=csx.prototype;_.S.indexOf=function(){};
_.S.selectPrevious=function(){};
_.S.selectNext=function(){};
_.S.selectIndex=function(){};
_.S.forceSynchronousItemUpdate=function(){};
_.S._checkFallback=function(){};
_.S._addListener=function(){};
_.S._removeListener=function(){};
_.S._activateEventChanged=function(){};
_.S._updateItems=function(){};
_.S._selectSelected=function(){};
_.S._filterItem=function(){};
_.S._valueToItem=function(){};
_.S._valueToIndex=function(){};
_.S._indexToValue=function(){};
_.S._valueForItem=function(){};
_.S._observeItems=function(){};
_.S._itemActivate=function(){};
_.S.multiChanged=function(){};
_.S._updateAttrForSelected=function(){};
_.S._updateSelected=function(){};
_.S._selectMulti=function(){};
_.S._selectionChange=function(){};
_.S._toggleSelected=function(){};
_.S._valuesToItems=function(){};
_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S.select=function(){};
_.S._resetTabindices=function(){};
_.S._updateMultiselectable=function(){};
_.S._focusWithKeyboardEvent=function(){};
_.S._clearSearchText=function(){};
_.S._focusPrevious=function(){};
_.S._focusNext=function(){};
_.S._applySelection=function(){};
_.S._focusedItemChanged=function(){};
_.S._onIronItemsChanged=function(){};
_.S._onShiftTabDown=function(){};
_.S._onFocus=function(){};
_.S._onUpKey=function(){};
_.S._onDownKey=function(){};
_.S._onEscKey=function(){};
_.S._onKeydown=function(){};
_.S._activateHandler=function(){};
_.S._disabledChanged=function(){};
_.S._setSelectedItem=function(){};
_.S._setItems=function(){};
_.S._setSelectedItems=function(){};
_.S._setFocusedItem=function(){};
csx=_.mZ({_template:function(){if(XPc!==void 0)return XPc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;CFM===void 0&&(CFM=document.createElement("template"));var c=CFM;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return XPc=D},
is:"tp-yt-paper-listbox",behaviors:[cub],hostAttributes:{role:"listbox"}});var oxe;var WNC;var pP5={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(D,C){return[D||C?"active":"",C?"cooldown":""].join(" ")},
__activeChanged:function(D,C){this.__setAriaHidden(!D);this.__coolingDown=!D&&C},
__altChanged:function(D){this.setAttribute("aria-label",D||"loading")},
__setAriaHidden:function(D){D?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.mZ({_template:function(){if(WNC!==void 0)return WNC;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;oxe===void 0&&(oxe=document.createElement("template"));var c=oxe;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return WNC=D},
is:"tp-yt-paper-spinner",behaviors:[pP5]});var S9N;var Uqc;_.mZ({_template:function(){if(Uqc!==void 0)return Uqc;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;S9N===void 0&&(S9N=document.createElement("template"));var c=S9N;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Uqc=D},
is:"tp-yt-paper-spinner-lite",behaviors:[pP5]});var gx5;var asM;_.mZ({_template:function(){if(asM!==void 0)return asM;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;gx5===void 0&&(gx5=document.createElement("template"));var c=gx5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return asM=D},
is:"tp-yt-paper-tab",behaviors:[_.Jn,_.jB.IronButtonState,vx],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 D=_.kr(this).parentNode;return!!D&&!!D.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(D){if(this.link){var C=this.queryEffectiveChildren("a");C&&D.target!==C&&C.click()}}});var Isx;var OVb;var AsC=_.q8(['<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>']),PFe=_.MY4(AsC);document.head.appendChild(PFe.content);_.mZ({_template:function(){if(OVb!==void 0)return OVb;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Isx===void 0&&(Isx=document.createElement("template"));var c=Isx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return OVb=D},
is:"tp-yt-paper-tabs",behaviors:[_.lR,_.WXe],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(D){_.kr(this).querySelectorAll("tp-yt-paper-tab").forEach(D?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(D){D.setAttribute("noink","")},
_removeNoinkAttribute:function(D){D.removeAttribute("noink")},
_computeScrollButtonClass:function(D,C,X,c){return!C||X?"hidden":D?c?"hidden":"not-visible":""},
_computeTabsContentClass:function(D,C){var X="tabs-content";D&&(X+=" scrollable");if(!D||C)X+=" fit-container";return X},
_computeSelectionBarClass:function(D,C){var X="selection-bar";D?X+=" hidden":C&&(X+=" align-bottom");return X},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(D){return""+D},
_onIronSelect:function(D){this._tabChanged(D.detail.item,this._previousTab);this._previousTab=D.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();_.RC._activateHandler.apply(this,arguments)},
_scheduleActivation:function(D,C){this._pendingActivationItem=D;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,C)},
_delayedActivationHandler:function(){var D=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;D.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(D){D.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(D,C){this.scrollable&&this._affectScroll(C&&-C.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(D){this.$.tabsContainer.scrollLeft+=D;D=this.$.tabsContainer.scrollLeft;this._leftHidden=D===0||this.hideScrollButtons;this._rightHidden=D===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(D,C){if(D){var X=this.$.tabsContent.getBoundingClientRect(),c=X.width,W=D.getBoundingClientRect();X=W.left-X.left;this._pos={width:this._calcPercent(W.width,c),left:this._calcPercent(X,c)};if(this.noSlide||C==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var p=C.getBoundingClientRect();C=this.items.indexOf(C);D=this.items.indexOf(D);this.$.selectionBar.classList.add("expand");
D=C<D;this._isRTL&&(D=!D);D?this._positionBar(this._calcPercent(W.left+W.width-p.left,c)-5,this._left):this._positionBar(this._calcPercent(p.left+p.width-W.left,c)-5,this._calcPercent(X,c)+5);this.scrollable&&this._scrollToSelectedIfNeeded(W.width,X)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(D,C){C-=this.$.tabsContainer.scrollLeft;C<0?this.$.tabsContainer.scrollLeft+=C:(C+=D-this.$.tabsContainer.offsetWidth,C>0&&(this.$.tabsContainer.scrollLeft+=C))},
_calcPercent:function(D,C){return 100*D/C},
_positionBar:function(D,C){D=D||0;C=C||0;this._width=D;this._left=C;this.transform("translateX("+C+"%) scaleX("+D/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var D=this.$.selectionBar.classList;D.contains("expand")?(D.remove("expand"),D.add("contract"),this._positionBar(this._pos.width,this._pos.left)):D.contains("contract")&&D.remove("contract")}});var $qC;var vxb;_.mZ({_template:function(){if(vxb!==void 0)return vxb;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;$qC===void 0&&($qC=document.createElement("template"));var c=$qC;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return vxb=D},
is:"tp-yt-paper-textarea",behaviors:[HW5,_.MD],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(D){this.$.input.textarea.selectionStart=D},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(D){this.$.input.textarea.selectionEnd=D},_ariaLabelledByChanged:function(D){this._focusableElement.setAttribute("aria-labelledby",D)},
_ariaDescribedByChanged:function(D){this._focusableElement.setAttribute("aria-describedby",D)},
get _focusableElement(){return this.inputElement.textarea}});var iVg;var kPx;/*

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 u9C=function(){};
_.S=u9C.prototype;_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._noinkChanged=function(){};
_.S._focusedChanged=function(){};
_.S.registered=function(){};
_.S._invalidChanged=function(){};
_.S.hasValidator=function(){};
_.S.validate=function(){};
_.S._getValidity=function(){};
_.S._requiredChanged=function(){};
_.S._valueChanged=function(){};
_.S._checkedChanged=function(){};
_.S._buttonStateChanged=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
u9C=_.mZ({is:"tp-yt-paper-toggle-button",_template:function(){if(kPx!==void 0)return kPx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;iVg===void 0&&(iVg=document.createElement("template"));var c=iVg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return kPx=D},
behaviors:[_.OW5],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");_.A0(this,function(){_.f2(this,"pan-y")})},
_ontrack:function(D){D=D.detail;D.state==="start"?this._trackStart(D):D.state==="track"?this._trackMove(D):D.state==="end"&&this._trackEnd(D)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(D){D=D.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+D:D)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+D:D));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 D=vx._createRipple();D.id="ink";D.setAttribute("recenters","");D.classList.add("circle","toggle-ink");return D}});var QJd;var Btf;_.mZ({_template:function(){if(Btf!==void 0)return Btf;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;QJd===void 0&&(QJd=document.createElement("template"));var c=QJd;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Btf=D},
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 D=_.kr(this).parentNode,C=_.kr(this).getOwnerRoot(),X;this.for?X=_.kr(C).querySelector("#"+this.for):X=D.nodeType==Node.DOCUMENT_FRAGMENT_NODE?C.host:D;return X},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(D){D==="entry"?this.show():D==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.kr(this).textContent.trim()===""){for(var D=!0,C=_.kr(this).getEffectiveChildNodes(),X=0;X<C.length;X++)if(C[X].textContent.trim()!==""){D=!1;break}if(D)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 D=this.offset;this.marginTop!=14&&this.offset==14&&(D=this.marginTop);var C=this.offsetParent.getBoundingClientRect(),X=this._target.getBoundingClientRect(),c=this.getBoundingClientRect(),W=(X.width-c.width)/2,p=(X.height-c.height)/2,g=X.left-C.left,a=X.top-C.top;switch(this.position){case "top":var O=g+W;var P=a-c.height-D;break;case "bottom":O=g+W;P=a+X.height+D;break;case "left":O=g-c.width-D;P=a+p;break;case "right":O=g+X.width+
D,P=a+p}this.fitToVisibleBounds?(C.left+O+c.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,O)+"px",this.style.right="auto"),C.top+P+c.height>window.innerHeight?(this.style.bottom=C.height+"px",this.style.top="auto"):(this.style.top=Math.max(-C.top,P)+"px",this.style.bottom="auto")):(this.style.left=O+"px",this.style.top=P+"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(D){D!==500&&this.updateStyles({"--paper-tooltip-delay-in":D+"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(D){if(D==="entry"&&this.animationEntry!=="")return this.animationEntry;if(D==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[D]&&typeof this.animationConfig[D][0].name==="string"){if(this.animationConfig[D][0].timing&&this.animationConfig[D][0].timing.delay&&this.animationConfig[D][0].timing.delay!==0){var C=this.animationConfig[D][0].timing.delay;D==="entry"?this.updateStyles({"--paper-tooltip-delay-in":C+"ms"}):D==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":C+
"ms"})}return this.animationConfig[D][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 bVf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(bVf,_.aH);var rsd=_.Bv(bVf,[0,_.Uf]);var uJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(uJ,_.aH);var KN5=[3,4],hVq=[5,6];var xqc=[0,KN5,hVq,_.Ib,-1,_.Wq,_.OC,-1,eok,Et5];var LNq=_.Bv(uJ,xqc),sJe=_.bU(xqc);var mqg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(mqg,_.aH);var eVC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(eVC,_.aH);var Exc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Exc,_.aH);var tPC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(tPC,_.aH);var Nt4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Nt4,_.aH);var Qq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Qq,_.aH);Qq.prototype.getSource=function(){return _.tu(this,1)};
Qq.prototype.getMessage=function(){return _.EG(this,4)};
Qq.prototype.getData=function(){return _.Bz(this,Nt4,8)};var Y9J=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Y9J,_.aH);var Bx=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Bx,_.aH);var bJ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(bJ,_.aH);var rY=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(rY,_.aH);rY.prototype.getUrl=function(){return _.EG(this,1)};
rY.prototype.setUrl=function(D){return _.N3(this,1,D)};
rY.prototype.hasUrl=function(){return _.r3(_.uS(this,1))!=null};var ysb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ysb,_.aH);var nxf=[3];var wPk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(wPk,_.aH);var Ko=function(D){var C=new wPk;return _.bl(C,2,D)};
wPk.prototype.getLanguage=function(){return Y5(this,4,hf)};
var FNb=function(D){var C=Ko(1);return _.sB(C,6,hf,D)},hf=[3,
4,5,6];var ZVc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ZVc,_.aH);var xO=function(D){var C=new ZVc;return _.bl(C,1,D)},Lo=function(D,C){return _.sB(D,2,GP4,C)},GP4=[2,
3,4,5];var VPC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(VPC,_.aH);var sM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(sM,_.aH);var Ttc=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Ttc,_.aH);var HVb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(HVb,_.aH);var Js5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Js5,_.aH);var zVf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(zVf,_.aH);var jJM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(jJM,_.aH);var ma=function(D){return _.Bz(D,bJ,5)};var MPd=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(MPd,_.aH);MPd.prototype.getValue=function(){return mX(this,1)};var q9k=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(q9k,_.aH);var eT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(eT,_.aH);eT.prototype.getMetadata=function(){return _.yO(this,Js5,7,EM)};
eT.prototype.hasMetadata=function(){return _.BT(this,Js5,7,EM)};
var fsd=_.MDF(eT),EM=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var tf=function(D){this.JSC$12335_name_=D;this.files_=[];this.directories_=[];this.directoryMap_={}};
tf.prototype.getName=function(){return this.JSC$12335_name_};var YO=function(D,C){this.callback_=C;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new tf("");dq5(this,D,this.rootDirectory_);NU(this)},dq5=function(D,C,X){for(var c=0;c<C.length;c++){var W=C[c];
W.isFile?(D.fileOps_++,W.file((0,_.wo)(D.handleFileSuccess_,D,X),(0,_.wo)(D.handleFileError_,D))):D.unscannedDirectories_.push(new RVJ(W,X))}},NU=function(D){if(D.unscannedDirectories_.length>0&&D.directoryOps_<5&&!D.hasError_){D.directoryOps_++;
var C=D.unscannedDirectories_.shift(),X=C.entry,c=new tf(X.name);C=C.parent;C.directoryMap_[c.getName()]=c;C.directories_.push(c);X=X.createReader();X.readEntries((0,_.wo)(D.handleDirectorySuccess_,D,X,c),(0,_.wo)(D.handleDirectoryError_,D))}D.directoryOps_!=0||D.fileOps_!=0||D.unscannedDirectories_.length!=0&&!D.hasError_||D.callback_(D.rootDirectory_.files_,D.rootDirectory_.directories_,D.hasError_)};
YO.prototype.handleDirectorySuccess_=function(D,C,X){dq5(this,X,C);X.length==0?(this.directoryOps_--,NU(this)):D.readEntries((0,_.wo)(this.handleDirectorySuccess_,this,D,C),(0,_.wo)(this.handleDirectoryError_,this))};
YO.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;NU(this)};
YO.prototype.handleFileSuccess_=function(D,C){D.files_.push(C);this.fileOps_--;NU(this)};
YO.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;NU(this)};
var RVJ=function(D,C){this.entry=D;this.parent=C};var yq=function(D){_.yg.call(this);_.Kb(D,"drop",this.onObjectsDropped_,!1,this);_.Kb(D,"dragenter",this.onFilesDragged_,!1,this);_.Kb(D,"dragover",this.onFilesDragged_,!1,this);_.Kb(D,"dragleave",this.onDragLeave_,!1,this);_.Kb(D,"dragend",this.onDragLeave_,!1,this)};
_.WT(yq,_.yg);var ls5=function(D,C){_.eL.call(this,"f");this.files=D;this.directories=C};
_.WT(ls5,_.eL);var D4c=function(){_.eL.call(this,"h")};
_.WT(D4c,_.eL);var C1M=function(){_.eL.call(this,"i")};
_.WT(C1M,_.eL);var X64=function(){_.eL.call(this,"g")};
_.WT(X64,_.eL);yq.prototype.onObjectsDropped_=function(D){var C=this;D.preventDefault();var X=D.event_.dataTransfer;if((D=X&&X.items)&&D.length>0&&D[0].webkitGetAsEntry){X=[];for(var c=[],W=0;W<D.length;W++){var p=D[W].webkitGetAsEntry();p?X.push(p):c.push(D[W])}new YO(X,function(g,a,O){O?C.dispatchEvent(new X64("Error occurred while reading from the file system.")):C.dispatchEvent(new ls5(g,a,c))})}else(D=X&&X.files)&&this.dispatchEvent(new ls5(Array.from(D),[]))};
yq.prototype.onFilesDragged_=function(D){D.type==="dragenter"&&this.dispatchEvent(new D4c);D.preventDefault()};
yq.prototype.onDragLeave_=function(){this.dispatchEvent(new C1M)};var c7x=function(D,C){this.JSC$12358_name_=D;this.inputElement_=C};
c7x.prototype.getName=function(){return this.JSC$12358_name_};
c7x.prototype.getInputElement=function(){return this.inputElement_};var no=function(D,C,X){C=C===void 0?"single_file":C;X=X===void 0?[]:X;_.yg.call(this);this.overlayTarget_=D;this.parentOverlay_=D!=null?D.parentNode:_.mv("scotty-overlay-parent");this.selectorType_=C;this.acceptTypes_=X;this.overlay_=oEc(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.h(no,_.yg);
var oEc=function(D,C,X,c){var W=document.createElement("input");W.setAttribute("type","file");W.setAttribute("name","Filedata");_.Kb(W,"change",D.onFilesSelected_,!1,D);X==="multiple_file"&&(W.multiple="true");X==="single_directory"&&(W.webkitdirectory="true");c.length>0&&W.setAttribute("accept",c.join(","));W.style.position="absolute";W.style.overflow="hidden";W.style.height="0px";W.style.width="0px";W.style.opacity="0";W.setAttribute("aria-hidden","true");W.setAttribute("tabIndex",-1);if(D.overlayTarget_!=
null)return W.style.height=C.offsetHeight+"px",W.style.width=C.offsetWidth+"px",D.parentOverlay_&&(D.parentOverlay_.style.position="relative"),_.Hq(W,C),fL(W,new _.VI(C.offsetLeft,C.offsetTop)),W;D.parentOverlay_.appendChild(W);return W};
no.prototype.click=function(){this.overlay_.click()};
no.prototype.onFilesSelected_=function(D){a:{try{var C=(new XMLHttpRequest).upload!==void 0;break a}catch(P){}C=!1}if(C){var X;D=Array.from((X=D.target.files)!=null?X:[]);X=[];if(this.selectorType_==="single_directory"&&(_.Ik||AC||_.ak)){X=new tf("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(C=0;C<D.length;C++)for(var c=D[C],W=c.webkitRelativePath.split("/"),p=X,g=0;g<W.length;g++){var a=W[g];if(g==W.length-1){a!="."&&p.files_.push(c);break}var O=p.directoryMap_[a];O==void 0&&(a=
O=new tf(a),p.directoryMap_[a.getName()]=a,p.directories_.push(a));p=O}X=X.directories_}this.dispatchEvent(new W0k(D,X,null))}else D=D.target.value,D.match(/^c:\\fakepath\\/i)&&(D=D.substring(12)),this.dispatchEvent(new W0k([],[],new c7x(D,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=oEc(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var W0k=function(D,C){_.eL.call(this,"j");this.files=D;this.directories=C};
_.h(W0k,_.eL);var p64=function(D){this.uploadUrl_=D};var SL5=function(){_.yg.call(this)};
_.WT(SL5,_.yg);var wY=function(D){_.eL.call(this,D)};
_.WT(wY,_.eL);var Fc=function(D){_.eL.call(this,D)};
_.WT(Fc,_.eL);var U4b=function(D,C,X,c,W){_.yg.call(this);X=document.createElement("form");X.setAttribute("method",C);X.setAttribute("enctype","multipart/form-data");X.setAttribute("encoding","multipart/form-data");C=document.createElement("input");C.setAttribute("type","hidden");C.setAttribute("name","metadata");C.setAttribute("value",W);X.appendChild(C);X.appendChild(c);this.JSC$12375_form_=X;D=new _.H7(D);_.oA(D,"upload_protocol","multipart");this.JSC$12375_url_=D.toString();this.JSC$12375_request_=new B8;this.state_=
"Ready";this.JSC$12375_errorDescription_=null;this.JSC$12375_eventHandler_=new _.bQ(this);_.hR(this,this.JSC$12375_eventHandler_);this.JSC$12375_eventHandler_.listen(this.JSC$12375_request_,"success",this.onTransferSuccess_);this.JSC$12375_eventHandler_.listen(this.JSC$12375_request_,"error",this.onTransferError_)};
_.h(U4b,SL5);_.S=U4b.prototype;_.S.run=function(){this.state_="Transferring";var D=this.JSC$12375_request_,C=this.JSC$12375_form_;if(D.JSC$11643_active_)throw Error("te");var X=new _.H7(this.JSC$12375_url_||C.action);D.JSC$11643_form_=C;C=D.JSC$11643_form_;X=_.qJ(X.toString());X!==void 0&&(C.action=X);vf5(D)};
_.S.getResponseCode=function(){return null};
_.S.getResponseText=function(){return this.JSC$12375_request_&&this.JSC$12375_request_.getResponseText()||null};
_.S.JSC$30207_getErrorDescription=function(){return this.JSC$12375_errorDescription_};
_.S.cancel=function(){this.JSC$12375_request_&&this.JSC$12375_request_.abort();this.state_="Cancelled";this.dispatchEvent(new wY("o"))};
_.S.pause=function(){};
_.S.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new wY("l"))};
_.S.onTransferError_=function(){this.JSC$12375_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new wY("n"))};var Zb=function(){_.HF.call(this)};
_.h(Zb,_.HF);Zb.prototype.createXhr=function(){var D=_.HF.prototype.createXhr.call(this);D.upload&&(D.upload.onprogress=(0,_.wo)(this.onProgress_,this));return D};
Zb.prototype.onProgress_=function(D){this.dispatchEvent(D)};var gEd=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},IFd=function(D,C){var X=D.attempt_+1;
if(D.maxAttempts_>0&&X>D.maxAttempts_)return!1;X==0?C():D.delayCallId_=Gg(function(){D.delayCallId_=null;C()},aFN(D),D);
D.attempt_=X;return!0};
gEd.prototype.reset=function(){this.delayCallId_&&_.co.clearTimeout(this.delayCallId_);this.attempt_=-1};
var aFN=function(D){var C=250*Math.pow(2,D.attempt_);D.maxDelayMs_>=0&&(C=Math.min(C,D.maxDelayMs_));return C};var min=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var GS=function(){_.yg.call(this);this.JSC$12385_request_=this.state_=null;this.JSC$12385_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12385_bytesTransferred_=0;this.retryIterator_=new gEd;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12385_errorDescription_=null;this.JSC$12385_eventHandler_=new _.bQ(this);_.hR(this,this.JSC$12385_eventHandler_);this.JSC$12385_url_=this.blob_=null;this.JSC$12385_method_=void 0;this.chunkSize_=this.JSC$12385_metadata_=
this.JSC$12385_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12385_responseText_=this.JSC$12385_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.WT(GS,SL5);_.S=GS.prototype;_.S.run=function(){Vq(this)};
_.S.getResponseCode=function(){return this.JSC$12385_responseCode_};
_.S.getResponseText=function(){return this.JSC$12385_responseText_};
_.S.JSC$30207_getErrorDescription=function(){return this.JSC$12385_errorDescription_};
_.S.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12385_eventHandler_.removeAll();this.JSC$12385_request_&&this.JSC$12385_request_.abort();this.retryIterator_.reset();var D=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(D==="Upload"||D==="Query")D=new Zb,D.JSC$9961_withCredentials_=this.JSC$12385_withCredentials_,D.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12385_bytesTransferred_=
0;this.dispatchEvent(new wY("o"))}};
_.S.pause=function(){this.pauseRequested_=!0};
var Vq=function(D){var C=D.state_;D.pauseRequested_?(D.pauseRequested_=!1,D.stateAfterUnpausing_=C,D.state_="Paused"):IFd(D.retryIterator_,function(){switch(D.state_){case "Start":D.JSC$12385_request_=new Zb;var X=_.ZI.clone(D.JSC$12385_headers_);D.blob_.size!=null&&(X["Content-Length"]=D.blob_.size);X=eUZ(X);X["X-Goog-Upload-Protocol"]="resumable";X["X-Goog-Upload-Command"]="start";D.JSC$12385_eventHandler_.removeAll();D.JSC$12385_eventHandler_.listen(D.JSC$12385_request_,"complete",D.onStartComplete_);
D.JSC$12385_request_.JSC$9961_withCredentials_=D.JSC$12385_withCredentials_;D.JSC$12385_request_.send(D.JSC$12385_url_,D.JSC$12385_method_,D.JSC$12385_metadata_,X);D.lastCommandResponseCode_=null;D.dispatchEvent(new Fc("q"));break;case "Upload":X=D.transferHandle_.uploadUrl_;var c=D.blob_.size;if(Tlc()){var W=D.chunkSize_;var p=D.offset_+W>=c;c=Vck(D.blob_,D.offset_,p?c:D.offset_+W)}else D.offset_=0,c=D.blob_,p=!0;D.JSC$12385_request_=new Zb;D.JSC$12385_request_.JSC$9961_withCredentials_=D.JSC$12385_withCredentials_;
D.JSC$12385_eventHandler_.removeAll();D.JSC$12385_eventHandler_.listen(D.JSC$12385_request_,"progress",D.onUploadProgress_);W=(0,_.wo)(D.JSC$12387_onUploadComplete_,D,D.offset_+c.size,p);D.JSC$12385_eventHandler_.listen(D.JSC$12385_request_,"complete",W);D.lastCommandResponseCode_=null;D.dispatchEvent(new Fc("q"));p=Object.assign({},D.JSC$12385_headers_||{},{"X-Goog-Upload-Command":"upload"+(p?", finalize":""),"X-Goog-Upload-Offset":D.offset_});D.JSC$12385_request_.send(X,"POST",c,p);break;case "Query":D.JSC$12385_request_=
new Zb;D.JSC$12385_eventHandler_.removeAll();D.JSC$12385_eventHandler_.listen(D.JSC$12385_request_,"complete",D.onQueryComplete_);X=Object.assign({},D.JSC$12385_headers_||{},{"X-Goog-Upload-Command":"query"});D.JSC$12385_request_.send(D.transferHandle_.uploadUrl_,"POST","",X);D.lastCommandResponseCode_=null;D.dispatchEvent(new Fc("q"));break;default:throw Error("lf");}})||TS(D,"Transfer encountered too many consecutive failures.")},TS=function(D,C){D.state_="Error";
D.JSC$12385_errorDescription_=C;D.dispatchEvent(new wY("n"))};
GS.prototype.onStartComplete_=function(D){var C=D.target;this.lastCommandResponseCode_=C.getStatus();this.dispatchEvent(new Fc("r"));if(OXg(C))A7b(this,C);else if(P1b(C)){D=aA(D.target.getAllResponseHeaders());for(var X in D)_.Wo(X.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new wY("m"));X=Qy(D,"X-Goog-Upload-URL");D=(D=Qy(D,"X-Goog-Upload-Chunk-Granularity"))?parseInt(D,10):1;X===void 0||isNaN(D)||D<=0?TS(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
D)*D,this.transferHandle_=new p64(X),this.dispatchEvent(new wY("p")),this.state_="Upload",this.retryIterator_.reset(),Vq(this))}else Vq(this)};
GS.prototype.onUploadProgress_=function(D){this.JSC$12385_bytesTransferred_=this.offset_+D.loaded;this.dispatchEvent(new wY("k"))};
GS.prototype.JSC$12387_onUploadComplete_=function(D,C,X){var c=this,W,p;return _.I(function(g){switch(g.nextAddress){case 1:W=X.target;c.lastCommandResponseCode_=W.getStatus();c.dispatchEvent(new Fc("r"));if($4f(W)||W.getStatus()==404)return c.JSC$12385_bytesTransferred_=D,A7b(c,W),g.return();if(P1b(W)){g.jumpTo(2);break}if(!(p=c.detectCorruptedBlobEnabled_)){g.jumpTo(3);break}return g.yield(vEe(c),4);case 4:p=g.yieldResult;case 3:if(p)return TS(c,"Blob has been modified or corrupted."),g.return();
c.requireUploadRequestModification_=W.getStatus()==400;c.state_="Query";Vq(c);return g.return();case 2:if(C)return TS(c,"Got a non-final success response after issuing a finalize command."),g.return();c.JSC$12385_bytesTransferred_=D;c.offset_=D;c.retryIterator_.reset();Vq(c);return g.return()}})};
GS.prototype.onQueryComplete_=function(D){var C=D.target;this.lastCommandResponseCode_=C.getStatus();this.dispatchEvent(new Fc("r"));OXg(C)?(C.getStatus()===200&&(this.JSC$12385_bytesTransferred_=this.blob_.size),A7b(this,C)):P1b(C)?(D=aA(D.target.getAllResponseHeaders()),D=parseInt(Qy(D,"X-Goog-Upload-Size-Received"),10),isNaN(D)?TS(this,"Server did not respond with current offset."):D<this.offset_?TS(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
D+"."):this.requireUploadRequestModification_&&this.offset_===D?TS(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<D&&this.retryIterator_.reset(),this.offset_=this.JSC$12385_bytesTransferred_=D,this.state_="Upload",Vq(this))):Vq(this)};
var A7b=function(D,C){D.JSC$12385_responseCode_=C.getStatus();var X=aA(C.getAllResponseHeaders());Eyj(X);D.JSC$12385_responseText_=C.getResponseText();D.state_="Response received";D.dispatchEvent(new wY("l"))},P1b=function(D){var C=D.getStatus();
D=aA(D.getAllResponseHeaders());D=Qy(D,"X-Goog-Upload-Status");return C===200&&D==="active"},$4f=function(D){D=aA(D.getAllResponseHeaders());
return Qy(D,"X-Goog-Upload-Status")==="final"},OXg=function(D){if($4f(D))return!0;
D=D.getStatus();return D>=400&&D<500},vEe=function(D){var C;
return _.I(function(X){if(X.nextAddress==1){if(!D.blob_||D.originalBlobSize_<=0)return X.return(!1);if(D.blob_.size!==D.originalBlobSize_)return X.return(!0);_.KK(X,2);if(C=Vck(D.blob_,0,1)){var c=X.yield,W=new c8,p=Llg(W);W.reader_.readAsBinaryString(C);X=c.call(X,p,4)}else X=X.return(!0);return X}if(X.nextAddress!=2)return X.return(D.blob_.size!==D.originalBlobSize_);_.Eu(X);return X.return(!0)})};var iXJ=function(D,C,X,c,W,p){_.yg.call(this);this.payload_=c;this.JSC$12388_url_=D;this.JSC$12388_method_=C;this.JSC$12388_headers_=X;this.JSC$12388_metadata_=W;this.encoding_=p||"binary";D=new _.TI;this.boundary_="uploader-"+Ci()+"-"+D.JSC$11492_toIsoString();this.JSC$12388_responseText_=this.JSC$12388_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12388_errorDescription_=null;this.JSC$12388_eventHandler_=new _.bQ(this);_.hR(this,this.JSC$12388_eventHandler_)};
_.h(iXJ,SL5);_.S=iXJ.prototype;
_.S.run=function(){var D=_.ZI.clone(this.JSC$12388_headers_);this.payload_.length!=null&&(D["Content-Length"]=this.payload_.length);D=eUZ(D);D["X-Goog-Upload-Protocol"]="multipart";D["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Zb;this.JSC$12388_eventHandler_.removeAll();this.JSC$12388_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12388_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12388_url_,this.JSC$12388_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12388_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",D)};
_.S.getResponseCode=function(){return this.JSC$12388_responseCode_};
_.S.getResponseText=function(){return this.JSC$12388_responseText_};
_.S.JSC$30207_getErrorDescription=function(){return this.JSC$12388_errorDescription_};
_.S.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12388_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new wY("o")))};
_.S.pause=function(){};
_.S.onTransferProgress_=function(){this.dispatchEvent(new wY("k"))};
_.S.onTransferComplete_=function(D){var C=D.target.getStatus();C===void 0||C===-1?(this.JSC$12388_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new wY("n"))):(this.JSC$12388_responseCode_=C,D=D.target,C=aA(D.getAllResponseHeaders()),Eyj(C),this.JSC$12388_responseText_=D.getResponseText(),this.state_="Complete",this.dispatchEvent(new wY("l")))};_.kZ5=function(D,C,X,c){c=c===void 0?!1:c;if(X instanceof c7x)return new U4b(D,"POST",C,X.getInputElement(),"");if(typeof X==="string"||X instanceof String)return new iXJ(D,"POST",C,X,"");var W=new GS(void 0);W.JSC$12385_url_=D;W.JSC$12385_method_="POST";W.JSC$12385_headers_=C;W.blob_=X;W.originalBlobSize_=X.size;W.JSC$12385_metadata_="";c&&(W.JSC$12385_withCredentials_=c);W.state_="Start";return W};var Hx=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Hx,_.aH);_.S=Hx.prototype;_.S.getEnableSsEngine=function(){return _.sG(this,2)};
_.S.getEnableAwr=function(){return _.sG(this,3)};
_.S.getAlohaAutoGaRollout=function(){return _.sG(this,5)};
_.S.getEnableConfigurator=function(){return _.sG(this,6)};
_.S.getEnableMweb=function(){return _.sG(this,7)};
var QNq=function(){var D=uMM();return _.rl(D,7,!0)};
Hx.prototype.getEnableCtlConsentCheckbox=function(){return _.sG(this,8)};
Hx.prototype.getEnableIframe=function(){return _.sG(this,9)};
var uMM=function(){var D=new Hx;D=_.rl(D,5,!0);D=_.rl(D,2,!0);D=_.rl(D,4,!1);D=_.rl(D,8,!0);return _.rl(D,9,!0)};
Hx.prototype.getEnableScreenshotNudge=function(){return _.sG(this,10)};
var BF5=function(){var D=QNq();return _.rl(D,10,!0)};
Hx.prototype.getEnableWebStartupConfigEndpoint=function(){return _.sG(this,11)};
Hx.prototype.getEnableJunkNudge=function(){return _.sG(this,12)};
var diZ=function(){var D=BF5();return _.rl(D,12,!0)};
_.S=Hx.prototype;_.S.getEnableConfiguratorLocale=function(){return _.sG(this,13)};
_.S.getEnableTinyNoPointer=function(){return _.sG(this,14)};
_.S.getEnableSupportSessionLogging=function(){return _.sG(this,15)};
_.S.getEnableFileUploadForScreenshot=function(){return _.sG(this,16)};
_.S.getEnableDirectDeflectionForSingleCategory=function(){return _.sG(this,17)};
_.S.getEnableImageSanitization=function(){return _.sG(this,18)};
_.S.getEnableAlohaBinarySplit=function(){return _.sG(this,19)};
_.S.getEnableDbFeedbackIntents=function(){return _.sG(this,20)};
_.S.getEnableMarkMandatoryFieldsWithRequired=function(){return _.sG(this,21)};
_.S.getEnableFeedbackCategoryCustomUi=function(){return _.sG(this,22)};
_.S.getEnableRealtimeCtl=function(){return _.sG(this,23)};var fEr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(fEr,_.aH);var tUd=[/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 YyR="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 yxd=_.q8(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),nym=_.q8(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var B7=function(){var D=Error.call(this,"Form is either loading or already opened");this.message=D.message;"stack"in D&&(this.stack=D.stack);this.name="DuplicateFormError"};
_.h(B7,Error);var F8Z,VUr,Zrr,TWj;var Jf,bX5;
Jf=function(D,C,X){D.timeOfStartCall=(new Date).getTime();var c=X||_.co,W=c.document,p=D.nonce||_.oG(c.document);p&&!D.nonce&&(D.nonce=p);if(D.flow=="help"){var g=_.Df("document.location.href",c);!D.helpCenterContext&&g&&(D.helpCenterContext=g.substring(0,1200));g=!0;if(C&&JSON&&JSON.stringify){var a=JSON.stringify(C);(g=a.length<=1200)&&(D.psdJson=a)}g||(C={invalidPsd:!0})}C=[D,C,X];c.GOOGLE_FEEDBACK_START_ARGUMENTS=C;X=D.feedbackServerUri||"//www.google.com/tools/feedback";if(g=c.GOOGLE_FEEDBACK_START)g.apply(c,C);
else{c=X+"/load.js?";for(var O in D)C=D[O],C==null||_.MR(C)||(c+=encodeURIComponent(O)+"="+encodeURIComponent(C)+"&");D=tp(W).createElement("SCRIPT");p&&D.setAttribute("nonce",p);_.gH(D,_.t2(c));W.body.appendChild(D)}};
bX5=function(D,C,X,c){var W,p;return _.I(function(g){W=X||_.co;var a=D.serverEnvironment==="DEV",O=X||_.co;O=D.nonce||_.oG(O.document);a={integrationKeys:{productId:D.productId,feedbackBucket:D.bucket,triggerId:D.triggerId},callbacks:{onClose:D.callback,onLoad:D.onLoadCallback},formContent:{locale:D.locale,disableScreenshot:D.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:D.abuseLink,additionalDataConsent:D.additionalDataConsent},initializationData:{isLocalServer:a,nonce:O,useNightlyRelease:a,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:D.feedbackServerUri,colorScheme:D.colorScheme},extraData:{productVersion:D.productVersion,authUser:D.authuser,configuratorId:D.configuratorId,customZIndex:D.customZIndex,tinyNoPointer:D.tinyNoPointer,
allowNonLoggedInFeedback:D.allowNonLoggedInFeedback,enableAnonymousFeedback:D.enableAnonymousFeedback}};C&&(O=new Map(Object.entries(C)),a.extraData.productSpecificData=O);p=a;return g.yield(jRo(p,c,W),0)})};
_.r7e=function(D,C,X){try{if(D.flow==="help"){var c=D.helpCenterPath.replace(/^\//,"");_.ct(X||window,"https://support.google.com/"+c)}else D.flow==="submit"?Jf(D,C,X):RUW(D.productId,D.feedbackServerUri).then(function(W){W=_.Bz(W,Hx,1);var p=!jme||(W==null?void 0:W.getEnableMweb()),g=!D.tinyNoPointer||(W==null?void 0:W.getEnableTinyNoPointer());!W||W.getAlohaAutoGaRollout()&&p&&g?bX5(D,C,X,W).catch(function(a){!a||a instanceof B7||Jf(D,C,X)}):Jf(D,C,X)},function(W){!W||W instanceof B7||Jf(D,C,X)})}catch(W){bX5(D,
C,X,null).catch(function(p){!p||p instanceof B7||Jf(D,C,X)})}};
_.$h("userfeedback.api.startFeedback",_.r7e);var lEJ=/https?:\/\/\S+\.\S+/,DDo=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],CRW=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var npj=function(D){var C=D.split(""),X=[-263237435,15,C,function(c,W,p){var g=W.length;p.forEach(function(a,O,P){this.push(P[O]=W[(W.indexOf(a)-W.indexOf(this[O])+O+g--)%W.length])},c.split(""))},
function(c,W){c=(c%W.length+W.length)%W.length;W.splice(-c).reverse().forEach(function(p){W.unshift(p)})},
"response",function(){for(var c=64,W=[];++c-W.length-32;){switch(c){case 58:c-=14;case 91:case 92:case 93:continue;case 123:c=47;case 94:case 95:case 96:continue;case 46:c=95}W.push(String.fromCharCode(c))}return W},
null,12,1540023973,65941107,null,C,function(c,W){for(c=(c%W.length+W.length)%W.length;c--;)W.unshift(W.pop())},
695603893,function(c){for(var W=c.length;W;)c.push(c.splice(--W,1)[0])},
"'[;'[(",function(c,W){c.push(W)},
null,function(c,W,p,g,a){return W(p,g,a)},
"continuation",C,function(c,W){if(c.length!=0){W=(W%c.length+c.length)%c.length;var p=c[0];c[0]=c[W];c[W]=p}},
function(){for(var c=64,W=[];++c-W.length-32;){switch(c){case 91:c=44;continue;case 123:c=65;break;case 65:c-=18;continue;case 58:c=96;continue;case 46:c=95}W.push(String.fromCharCode(c))}return W},
'"),/]];'];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(c){return"aTlOUOubTO4AP____8P_"+D}return C.join("")};_.K0x=new _.A7("runAttestationCommand");var h84=new _.A7("verifyCommand");_.by=new _.A7("accessibilityContext");var x45=new _.A7("accessibilityData");var L0c=new _.A7("profileCardCommand");var EVJ=new _.A7("signInEndpoint");var etj=new _.A7("signOutEndpoint");var m4M;_.sNM=new _.A7("accountItemSectionRenderer");m4M=new _.A7("accountItemRenderer");_.e8d=new _.A7("saveCommandToSessionStorageAction");var EEM=new _.A7("crossAccountChannelTransferEndpoint");var Kf3=new _.A7("getAccountMenuEndpoint");_.hCt=new _.A7("getAccountSwitcherEndpoint");var rtZ=new _.A7("getAccountsListEndpoint");var tG5=new _.A7("getAccountsListInnertubeEndpoint");_.NFC=new _.A7("addToToastAction");var YL5=new _.A7("hideEnclosingAction");_.zS=new _.A7("replaceEnclosingAction");var y7c=new _.A7("buttonRefreshAction");var nEd=new _.A7("adsControlFlowOpportunityReceivedCommand");var w65=new _.A7("openAdAllowlistInstructionCommand");var F04=new _.A7("videoMastheadAdPrimaryVideoRenderer");var ZXe=new _.A7("displayAdRenderer");_.GZb=new _.A7("inFeedAdLayoutRenderer");var VGe=new _.A7("sequenceItemInPlayerAdLayoutRenderer");_.TFx=new _.A7("adSlotRenderer");var HXg=new _.A7("adAvatarViewModel");var J7f=new _.A7("adBadgeViewModel");var z8g=new _.A7("adButtonViewModel");var jN5=new _.A7("adImageViewModel");var Mtn=new _.A7("reelsAdCardButtonedViewModel");var MGJ=new _.A7("reelsPlayerOverlayLayoutViewModel");var qLd=new _.A7("formDataDecoratorCommand");var fFf=new _.A7("updateConversationIdCommand");var d4e=new _.A7("showSchedulingPanelCommand");var R8q=new _.A7("backstageCommentsRenderer");var lF5=new _.A7("backstageImageRenderer");var Dib=new _.A7("backstagePostRenderer");var CWc=new _.A7("backstageZeroStateRenderer");var XGC=new _.A7("postRenderer");var cx4=new _.A7("sharedPostRenderer");var oye=new _.A7("createBackstagePostEndpoint");var W8x=new _.A7("getPostVideoPreviewEndpoint");var pGk=new _.A7("updateBackstagePostEndpoint");var Syx=new _.A7("filterChipTransformCommand");var Uid=new _.A7("insertRichSectionCommand");var $Sm=new _.A7("talkToRecsDeselectCommand");var gyk=new _.A7("talkToRecsNextCommand");var Pdo=new _.A7("talkToRecsSelectCommand");var M8m=new _.A7("talkToRecsUpdateTextCommand");_.Pl=new _.A7("browseEndpoint");_.aEd=new _.A7("confirmDialogEndpoint");var IE4=new _.A7("expandOnHoverCardRenderer");var Orb=new _.A7("lumiereShelfDetailsRenderer");var AxC=new _.A7("revealBusinessEmailCommand");var PWk=new _.A7("validateChannelHandleCommand");var $ib=new _.A7("channelCreationFormEndpoint");var vy4=new _.A7("aboutChannelViewModel");var irC=new _.A7("channelThumbnailWithLinkRenderer");var kI5=new _.A7("channelCreationServiceEndpoint");var uke=new _.A7("updateChannelPageSettingsEndpoint");var jT=function(D){this.delegate=D},MU=function(){jT.apply(this,arguments)};
_.h(MU,jT);_.$a.Object.defineProperties(MU.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(D){this.delegate.entityMetadata=D}}});var QR4=function(){MU.apply(this,arguments)};
_.h(QR4,MU);QR4.prototype.getAssociations=function(){return[]};
QR4.prototype.getTypeName=function(){return"channelHandle"};var x9F=new _.A7("webThumbnailDetailsExtensionData");_.Yu=new _.A7("commandContext");var BW5=new _.A7("addVideoLinkAction");var br4=new _.A7("banAuthorAction");var rxg=new _.A7("createCommentAction");var K8d=new _.A7("createCommentReplyAction");var hUf=new _.A7("createPollAction");var xi4=new _.A7("hideIdentityChipAction");var L8g=new _.A7("openUpdateCommentDialogAction");var sRC=new _.A7("pinCommentAction");var mik=new _.A7("removeCommentAction");var eUC=new _.A7("unpinCommentAction");var qU=new _.A7("updateBackstagePollAction");var Eyg=new _.A7("updateCommentVoteAction");var tUe=new _.A7("commentThreadRenderer");var NWe=function(){MU.apply(this,arguments)};
_.h(NWe,MU);NWe.prototype.getAssociations=function(){return[]};
NWe.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var Yyf=function(){MU.apply(this,arguments)};
_.h(Yyf,MU);Yyf.prototype.getAssociations=function(){return[]};
Yyf.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.yxe=new _.A7("commentDialogRenderer");var nyd=new _.A7("reloadCommentsCommand");var wGk=new _.A7("updateCommentsSettingsEndpoint");var F8C=new _.A7("commentViewModel");var ZrJ=new _.A7("triStateButtonViewModel");var GIq=new _.A7("voiceReplyContainerViewModel");_.pt=new _.A7("commandExecutorCommand");var E4=new _.A7("emoji");var VUJ=new _.A7("updateCreatorChannelInnertubeCommand");_.TWg=new _.A7("appendContinuationItemsAction");_.Hr5=new _.A7("changeEngagementPanelVisibilityAction");_.nI=new _.A7("continuationCommand");var JxN=new _.A7("hideReportedCommentAction");var zUe=new _.A7("listMutationCommand");_.fo=new _.A7("openPopupAction");var jRM=new _.A7("persistSubscriptionsDisplayPreferencesCommand");var CRc;_.MUf=new _.A7("playlistRemoveVideosAction");_.qy5=new _.A7("updatePlaylistAction");_.fEJ=new _.A7("addToPlaylistCommand");_.diC=new _.A7("endPlaylistCommand");_.RUc=new _.A7("recoverPlaylistCommand");_.lEN=new _.A7("refreshPlaylistCommand");_.DDM=new _.A7("refreshFormCommand");CRc=new _.A7("openOnePickAddVideoModalCommand");_.EIm=new _.A7("reloadContinuationItemsCommand");_.X8g=new _.A7("scrollToEngagementPanelCommand");var cng=new _.A7("selectCountryCommand");var oY4=new _.A7("showReloadUiCommand");var W_q=new _.A7("undoFeedbackAction");var p8d=new _.A7("updateButtonAction");var SvM=new _.A7("updateSubscribeButtonAction");var UDg=new _.A7("updateToggleAction");var gYM=new _.A7("webNativeShareCommand");_.ge=new _.A7("webCommandMetadata");_.dY=new _.A7("webHandleServiceEndpointExtension");var uhd=new _.A7("webNavigationEndpointData");var aKC=new _.A7("backgroundAudioPlaybackCommand");var IKg=new _.A7("copyLinkCommand");var O0c=new _.A7("playlistVotingRefreshPopupCommand");var An5=new _.A7("selectChipCommand");var PRN=new _.A7("setCookieCommand");var $Dk=new _.A7("setLocalStorageCommand");var vY5=new _.A7("setPrefStorageEntryCommand");var QCf;_.i0N=new _.A7("settingsUpdateCheckboxCommand");_.kEc=new _.A7("settingsUpdateTextCommand");_.ulq=new _.A7("settingsUpdateOptionsCommand");QCf=new _.A7("settingsUpdateSwitchCommand");_.BPJ=new _.A7("settingsUpdateConnectedAppRendererCommand");var b0b=new _.A7("showCreatorChatbotEngagementPanelCommand");var rnd=new _.A7("updateTextInputFormFieldRendererCommand");var K_g=new _.A7("updateToggleButtonStateCommand");var hXd=new _.A7("updateUrlParamCommand");var xDM=new _.A7("webSubmitFormCommand");var L_f=new _.A7("channelSwitcherPageRenderer"),sCe=new _.A7("updateChannelSwitcherPageAction");_.dE=new _.A7("continuationItemRenderer");_.RZ=new _.A7("richItemRenderer");var mDe=new _.A7("richSectionRenderer");_.eXM=new _.A7("richShelfRenderer");_.EYk=new _.A7("metadataBadgeRenderer");_.tBx=new _.A7("multiPageMenuNotificationSectionRenderer");_.NPg=new _.A7("playlistLoopButtonStateRenderer");var Yv5=new _.A7("claimLegacyYoutubeChannelEndpoint");var ynx=new _.A7("getNotificationMenuEndpoint");var nYq=new _.A7("getSearchInVideoCommand");_.w8q=new _.A7("getTranscriptEndpoint");_.Up=new _.A7("signalServiceEndpoint");var F_C=new _.A7("verifyAgeEndpoint");var ZxF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ZxF,_.aH);ZxF.prototype.getPath=function(){return _.EG(this,1)};
ZxF.prototype.getValue=function(){return _.EG(this,2)};var Z0d=[0,_.CL,-1];var GEg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(GEg,_.aH);var FjF=_.Bv(GEg,[0,_.oK,Z0d]);var VB5=new _.A7("dismissalEndpoint");var TPC=new _.A7("elementsCommand");_.N_=new _.A7("innertubeCommand");var H0c=new _.A7("multipleInlinePlaybackCommand");var c4Z=new _.A7("loggingDirectives");var JnJ=new _.A7("acknowledgeChannelTouStrikeCommand");var zXe=function(){MU.apply(this,arguments)};
_.h(zXe,MU);zXe.prototype.getAssociations=function(){return[]};
zXe.prototype.getTypeName=function(){return"booleanEntity"};var jCe=function(){MU.apply(this,arguments)};
_.h(jCe,MU);jCe.prototype.getAssociations=function(){return[]};
jCe.prototype.getTypeName=function(){return"stringEntity"};var Mn=new _.A7("entityBatchUpdate");_.MBd=new _.A7("entityUpdateCommand");var qvq=function(){MU.apply(this,arguments)};
_.h(qvq,MU);qvq.prototype.getAssociations=function(){var D=[];this.delegate.alternateChannel&&D.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&D.push.apply(D,_.VB(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&D.push(this.delegate.oneofChannelEntity);return[].concat(_.VB(new Set(D)))};
qvq.prototype.getTypeName=function(){return"fakeChannel"};var fKf=function(){MU.apply(this,arguments)};
_.h(fKf,MU);fKf.prototype.getAssociations=function(){var D=[];this.delegate.entryCollection&&D.push(this.delegate.entryCollection);return[].concat(_.VB(new Set(D)))};
fKf.prototype.getTypeName=function(){return"fakePlaylist"};
var dDN=function(){MU.apply(this,arguments)};
_.h(dDN,MU);dDN.prototype.getAssociations=function(){var D=[];this.delegate.parentPlaylist&&D.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var C=_.U(this.delegate.entries),X=C.next();!X.done;X=C.next())D.push.apply(D,_.VB((new RXx(X.value)).getAssociations()));return[].concat(_.VB(new Set(D)))};
dDN.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var RXx=function(){jT.apply(this,arguments)};
_.h(RXx,jT);RXx.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);return[].concat(_.VB(new Set(D)))};var lKx=function(){MU.apply(this,arguments)};
_.h(lKx,MU);lKx.prototype.getAssociations=function(){var D=[];this.delegate.descriptionEntity&&D.push(this.delegate.descriptionEntity);this.delegate.creators&&D.push.apply(D,_.VB(this.delegate.creators));this.delegate.theBiggestFan&&D.push(this.delegate.theBiggestFan);return[].concat(_.VB(new Set(D)))};
lKx.prototype.getTypeName=function(){return"fakeVideo"};
var DUc=function(){MU.apply(this,arguments)};
_.h(DUc,MU);DUc.prototype.getAssociations=function(){return[]};
DUc.prototype.getTypeName=function(){return"fakeVideoDescription"};var CJc=new _.A7("fantasyRosterViewModel");var Xx5=new _.A7("addFollowUpSurveyCommand");var cfq=new _.A7("getSurveyCommand");var oOb=new _.A7("ratingSurveyOptionRenderer");_.tT=new _.A7("feedbackEndpoint");var Wad=new _.A7("reportHistoryTableCellRenderer"),pxf=new _.A7("reportHistoryTableTextCellRenderer"),SMJ=new _.A7("reportHistoryTableReasonCellRenderer");_.UUN=new _.A7("flagEndpoint");var gOq=new _.A7("deleteFlowStepsCommand");_.abJ=new _.A7("flowNextStepCommand");_.Ib5=new _.A7("flowPrevStepCommand");var Ooq=new _.A7("getFlowCommand");var AfJ=new _.A7("submitFormWithValidationFlowCommand");_.PJ4=new _.A7("updateFlowCommand");var $U4=function(){MU.apply(this,arguments)};
_.h($U4,MU);$U4.prototype.getAssociations=function(){return[]};
$U4.prototype.getTypeName=function(){return"flowStateEntity"};var vOg=new _.A7("flowFormState");_.lJ=new _.A7("flowStepRenderer");var io4=new _.A7("gameCardRenderer");var kS5=new _.A7("accountLinkingStateChangedCommand");var ucq=function(){MU.apply(this,arguments)};
_.h(ucq,MU);ucq.prototype.getAssociations=function(){return[]};
ucq.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var QZe=new _.A7("changeMiniAppPlayStateCommand");var BYf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(BYf,_.aH);var DC=[1,2,3];var boe=[0,DC,LGk,_.cq,utg];var rfb=_.Bv(BYf,boe),Kag=_.bU(boe);var hz5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(hz5,_.aH);var xU5=[0,_.qy,_.CL];var Lab=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Lab,_.aH);var sZb=[0,_.CL,_.qy,-1];var CU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(CU,_.aH);var mUd=_.bU([0,1,xU5,_.Uf,sZb]);var ezd=new _.A7("miniAppScoreChallengeViewModel");var EOe=new _.A7("miniGameCardViewModel");var tTd=new _.A7("teaserCardViewModel");var NYg=function(){MU.apply(this,arguments)};
_.h(NYg,MU);NYg.prototype.getAssociations=function(){return[]};
NYg.prototype.getTypeName=function(){return"logoEntity"};var YMb=new _.A7("feedbackItemRenderer");var yf5=function(){MU.apply(this,arguments)};
_.h(yf5,MU);yf5.prototype.getAssociations=function(){return[]};
yf5.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.nO4=new _.A7("playerInterstitialRenderer");var wxM=new _.A7("getKidsBlocklistPickerCommand");_.Fa4=new _.A7("updateKidsBlacklistEndpoint");_.XI=new _.A7("likeEndpoint");var Zoe,GSd,VTq;Zoe=new _.A7("addChatItemAction");GSd=new _.A7("removeChatItemAction");VTq=new _.A7("markChatItemAsDeletedAction");_.TYc=new _.A7("setLiveChatCollapsedStateAction");var HoJ=function(){MU.apply(this,arguments)};
_.h(HoJ,MU);HoJ.prototype.getAssociations=function(){return[]};
HoJ.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var JfN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(JfN,_.aH);JfN.prototype.getPayloadCase=function(){return _.KR(this,zzc)};
var zzc=[3,4];var jZ5=[0,_.oK,[0,[1,2],_.cq,_.Wq,[0,_.XD,1,_.XD]]];var MTb=[0,_.CL,-1];var qM4=[0,[1],_.cq];var cj=[0,[1,2],_.cq,_.Wq,[0,_.Uf]];var od=[0,_.CL];var fbd=[0,[0,_.lS,_.Rk,[0,_.XD,_.gd,_.XD]],1,[0,_.lS]];var dUx=[0,fR];var Rzd=[0,fR];var lbJ=[0,Rzd,dUx];var Dgq=[0,_.oK,[0,[1,2],_.cq,-1],_.lS];var Csq=[0,[2],1,_.Wq,[0,_.XD,-1,Dgq]];var Xjb=[0,[1],_.Wq,[0,_.XD,_.CL,_.gd,1,Dgq]];var cFM=[0,_.Rk,-1,kkd,_.Uf];var oLq=[0,[0,zj,-3],-4];var Wj=[0,_.lS,-3,_.CL,_.lS,_.Ib,_.lS,jZ5,_.lS,-2];var pU=[0,_.oK,[0,[1,2],_.cq,-1],_.lS,_.CL];var WQk=[0,[3],cj,[0,[2,3,4],tN5,_.cq,-2],_.Wq,[0,_.CL],_.qy];var pjM=[0,[3,5],_.CL,_.d1,_.Wq,[0,1,_.qy,_.Uf],_.Uf,_.Wq,[0,_.Uf,_.qy]];var Sq4=[0,2,_.d1,_.CL,-1];var Ugg=[0,hoN];var gLM=[0,[3,4],2,B3b,_.cq,_.CL];var aC5=[0,_.Uf,-2,1,_.CL];var ICe=[0,_.CL,-1,_.Uf];var OUe=[0,od,function(){return Sm},
od,_.CL],AFM=[0,_.Uf,od,cj,function(){return Sm},
_.CL],Sm=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],od,_.d1,[0,_.lS,1,_.lS,1,_.lS,1,_.Uf,-1,od],[0,1,_.lS,2,_.lS,_.Uf,_.lS],1,_.d1,-1,_.CL,_.d1,2,zj,[0,zj,_.d1],_.CL,1,fbd,1,cj,_.Ib,1,[0,[0,_.oK,[0,_.CL,_.lS,_.Uf]]],[0,_.lS,[0,_.qy,[0,_.gd]],_.qy,1,[0,rPe,-1]],_.CL,[0,1,_.CL],76,_.Wq,[0,cj,pU,fbd,1,[0,_.oK,pU]],1,_.Wq,[0,cj,_.CL,_.lS],
_.Wq,[0,cj,qM4],_.Wq,[0,cj,qM4,_.d1],_.Wq,[0,cj,qM4],_.Wq,[0,cj,_.oK,od,cj,swf],_.Wq,[0,cj,od,_.CL],_.Wq,[0,cj,_.lS,Wj,-1,_.lS],4,_.Wq,[0,cj,_.lS,_.d1,Wj,_.lS],_.Wq,[0,[4,9],cj,_.Uf,_.d1,_.cq,pU,1,fbd,_.CL,_.cq,aC5],_.Wq,[0,cj,od,cj,_.Uf,_.CL],_.Wq,[0,_.lS,cj,Wj,_.lS,_.CL],_.Wq,[0,cj,od,cj,_.Uf,_.CL],1,_.Wq,[0,cj,_.Uf,_.CL,Wj],_.Wq,[0,cj,_.Uf,[0,_.CL,_.d1],_.CL,_.d1,_.CL,_.S$,-2,3,ICe,_.oK,ICe,ICe,aC5],_.Wq,[0,cj,_.Uf,Xjb,_.oK,[0,Rzd,Csq],od,_.oK,lbJ,_.CL,1,_.Uf,cFM,oLq,i1c,-1],_.Wq,[0,cj,[0,_.gd,
-1,Xjb,_.oK,[0,Rzd,Csq,dUx],[0,_.OC],1,_.XD],od,_.CL],_.Wq,[0,cj,pU,_.CL,[0,_.Rk]],_.Wq,function(){return AFM},
_.Wq,[0,cj,_.d1,_.CL,-1,_.lS],_.Wq,[0,[6,7],cj,_.oK,Sq4,_.Uf,pU,1,_.Wq,gLM,_.Wq,Ugg],_.Wq,[0,_.oK,Sq4,_.Uf,_.lS],_.Wq,[0,_.CL,mXN,-1],_.Wq,[0,od,_.oK,lbJ,_.CL],_.Wq,[0,cj,od,_.CL],_.Wq,[0,_.S$,_.CL],_.Wq,[0,MTb],_.Wq,[0,MTb],_.Wq,[0,pU],_.Wq,[0,od,pU],_.Wq,function(){return OUe},
_.Wq,[0,od,_.CL],_.Wq,[0,od,_.CL],1,_.Wq,[0,_.lS,cj,Wj,_.lS,Wj],_.Wq,[0,_.OC],1,_.Wq,[0],1,_.Wq,[0,od,_.Uf,cj,_.Uf],_.Wq,[0,[1,2],_.Wq,gLM,_.Wq,Ugg,_.d1],_.Wq,[0,_.OC,pU,pjM,_.CL,_.d1],_.Wq,[0,pjM,_.CL,_.d1],_.Wq,[0,cFM,pU,_.lS,oLq],_.Wq,WQk,_.Wq,[0],_.Wq,[0,_.CL,-1,_.qy],_.Wq,[0,od,_.CL],_.Wq,[0,WQk,_.qy,_.CL],_.Wq,[0,cj,Wj,_.lS],_.Wq,[0,cj,Wj,_.lS],_.Wq,[0,cFM,oLq,pU,_.Ib,_.lS,i1c,-1],_.Wq,[0,cj,Wj,_.lS]];var Ps4=[0,_.oK,Sm];var $gq=_.Bv(JfN,[0,zzc,1,_.qy,_.Wq,[0,[18,22,24],Ps4,3,[0,Ps4],1,_.qy,[0,_.oK,[0,_.d1,zj],_.d1],1,Sm,-1,[0,_.DV,-2,_.Ib,_.DV,-1,_.Ib,_.DV,jZ5,_.DV,-2],$Y5,[!0,_.CL,[0,qM4,2,_.CL,_.d1,_.lS,2,_.CL,_.S$]],[0,[1,2,3],[5,6],_.Wq,[0,_.XD],_.Wq,[0,_.XD,-1],_.Wq,[0,_.XD],1,_.Wq,MTb,_.Wq,[0,_.CL]],[0,Sm,-1],_.OC,Sm,_.Wq,Sm,[0,Ps4],_.qy,Sm,_.Wq,Sm,_.CL,_.Wq,Sm],_.Wq,d_4,_.qy]);var vLJ=new _.A7("liveChatEndpoint");var iU5=new _.A7("liveChatItemContextMenuEndpoint");var km5=new _.A7("liveChatReplayEndpoint");_.uIe=new _.A7("emojiPickerRenderer");var QdJ=new _.A7("liveChatAuthorBadgeViewModel");var BX5=new _.A7("deleteLiveChatMessageCommand");var bUC=new _.A7("liveChatActionEndpoint");var rF5=new _.A7("createLiveChatPollEndpoint");var KQg=new _.A7("manageLiveChatUserEndpoint");var hrg=new _.A7("moderateLiveChatEndpoint");_.xgM=new _.A7("sendLiveChatMessageEndpoint");var LQg=new _.A7("sendLiveChatVoteEndpoint");var sdc=new _.A7("clearLocationCommand");var mge=new _.A7("resolveLocationCommand");var erk=new _.A7("interactionLoggingCommandMetadata");var ELe=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(ELe,_.aH);var tm4=function(D,C){return _.kT(D,1,C)};var NXe=[0,_.lS];var Yq5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Yq5,_.aH);var yFM=function(D,C){return NN(D,1,ELe,C)};Yq5.prototype.JSC$12484_serializeBinary=jHW([0,_.oK,NXe]);var K_j={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 nLc={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"},
wj4={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 Cbh={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.Hsd=new _.A7("logFlowLoggingEventCommand");_.k7=new _.A7("loggingContext");var FQN=new _.A7("audioTrackSelectActionCommand");var ZUx=new _.A7("captionLanguageSelectActionCommand");var Gm5=new _.A7("showAudioTrackPickerActionCommand");var Vm5=new _.A7("showCaptionLanguageSelectActionCommand");var TX4=new _.A7("dismissDialogEndpoint");var HUc=new _.A7("dismissPlayerOverlayCommand");var JFM=new _.A7("hideItemSectionVideosByIdCommand");var zre=new _.A7("showMiniplayerCommand");var jdb=function(){MU.apply(this,arguments)};
_.h(jdb,MU);jdb.prototype.getAssociations=function(){return[]};
jdb.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Mmq=function(){MU.apply(this,arguments)};
_.h(Mmq,MU);Mmq.prototype.getAssociations=function(){return[]};
Mmq.prototype.getTypeName=function(){return"downloadStatusEntity"};var qqM=function(){MU.apply(this,arguments)};
_.h(qqM,MU);qqM.prototype.getAssociations=function(){return[]};
qqM.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var fCd=function(){MU.apply(this,arguments)};
_.h(fCd,MU);fCd.prototype.getAssociations=function(){var D=[];this.delegate.downloadsList&&D.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&D.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&D.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.VB(new Set(D)))};
fCd.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var dgd=function(){MU.apply(this,arguments)};
_.h(dgd,MU);dgd.prototype.getAssociations=function(){var D=[];this.delegate.refresh&&D.push(this.delegate.refresh);if(this.delegate.downloads)for(var C=_.U(this.delegate.downloads),X=C.next();!X.done;X=C.next())D.push.apply(D,_.VB((new Rrc(X.value)).getAssociations()));return[].concat(_.VB(new Set(D)))};
dgd.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var Rrc=function(){jT.apply(this,arguments)};
_.h(Rrc,jT);Rrc.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playlist&&D.push(this.delegate.playlist);this.delegate.videoItem&&D.push(this.delegate.videoItem);this.delegate.playlistItem&&D.push(this.delegate.playlistItem);return[].concat(_.VB(new Set(D)))};var lCC=function(){MU.apply(this,arguments)};
_.h(lCC,MU);lCC.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.VB(this.delegate.localImageEntities));return[].concat(_.VB(new Set(D)))};
lCC.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var DkM=function(){MU.apply(this,arguments)};
_.h(DkM,MU);DkM.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.VB(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.VB(new Set(D)))};
DkM.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var CPd=function(){MU.apply(this,arguments)};
_.h(CPd,MU);CPd.prototype.getAssociations=function(){return[]};
CPd.prototype.getTypeName=function(){return"offlineabilityEntity"};var XVk=function(){MU.apply(this,arguments)};
_.h(XVk,MU);XVk.prototype.getAssociations=function(){var D=[];this.delegate.fakeChildren&&D.push.apply(D,_.VB(this.delegate.fakeChildren));return[].concat(_.VB(new Set(D)))};
XVk.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var chc=function(){MU.apply(this,arguments)};
_.h(chc,MU);chc.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);return[].concat(_.VB(new Set(D)))};
chc.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var o3N=function(){MU.apply(this,arguments)};
_.h(o3N,MU);o3N.prototype.getAssociations=function(){return[]};
o3N.prototype.getTypeName=function(){return"continuationTokenEntity"};var WHJ=function(){MU.apply(this,arguments)};
_.h(WHJ,MU);WHJ.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.videos&&D.push.apply(D,_.VB(this.delegate.videos));this.delegate.collaboratorChannels&&D.push.apply(D,_.VB(this.delegate.collaboratorChannels));this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.VB(new Set(D)))};
WHJ.prototype.getTypeName=function(){return"mainPlaylistEntity"};var pV4=function(){MU.apply(this,arguments)};
_.h(pV4,MU);pV4.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.channelContributor&&D.push(this.delegate.channelContributor);return[].concat(_.VB(new Set(D)))};
pV4.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var SSe=function(){jT.apply(this,arguments)};
_.h(SSe,jT);SSe.prototype.getAssociations=function(){var D=[];this.delegate.recommendedVideoMetadata&&D.push.apply(D,_.VB((new Ukx(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.VB(new Set(D)))};
var Ukx=function(){jT.apply(this,arguments)};
_.h(Ukx,jT);Ukx.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.VB(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.VB(new Set(D)))};var g3C=function(){jT.apply(this,arguments)};
_.h(g3C,jT);g3C.prototype.getAssociations=function(){var D=[];this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);return[].concat(_.VB(new Set(D)))};var apb=function(){MU.apply(this,arguments)};
_.h(apb,MU);apb.prototype.getAssociations=function(){var D=[];this.delegate.owner&&D.push(this.delegate.owner);this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.userState&&D.push.apply(D,_.VB((new g3C(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&D.push.apply(D,_.VB((new SSe(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.VB(new Set(D)))};
apb.prototype.getTypeName=function(){return"mainVideoEntity"};var Ipq=function(){MU.apply(this,arguments)};
_.h(Ipq,MU);Ipq.prototype.getAssociations=function(){var D=[];this.delegate.userChannelDetails&&D.push(this.delegate.userChannelDetails);return[].concat(_.VB(new Set(D)))};
Ipq.prototype.getTypeName=function(){return"ytMainChannelEntity"};var O_x=function(){MU.apply(this,arguments)};
_.h(O_x,MU);O_x.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&D.push.apply(D,_.VB(this.delegate.localImageEntities));this.delegate.downloadStatus&&D.push(this.delegate.downloadStatus);return[].concat(_.VB(new Set(D)))};
O_x.prototype.getTypeName=function(){return"ytMainVideoEntity"};var uCr=new _.A7("downloadsPageSmartDownloadsOptInBannerParams");var rym=new _.A7("downloadsPageUpsellBannerParams");var Ah5=function(){MU.apply(this,arguments)};
_.h(Ah5,MU);Ah5.prototype.getAssociations=function(){return[]};
Ah5.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var PPk=function(){MU.apply(this,arguments)};
_.h(PPk,MU);PPk.prototype.getAssociations=function(){return[]};
PPk.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var $kN=function(){MU.apply(this,arguments)};
_.h($kN,MU);$kN.prototype.getAssociations=function(){return[]};
$kN.prototype.getTypeName=function(){return"macroMarkerEntity"};var v3c=function(){MU.apply(this,arguments)};
_.h(v3c,MU);v3c.prototype.getAssociations=function(){return[]};
v3c.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var i_N=function(){MU.apply(this,arguments)};
_.h(i_N,MU);i_N.prototype.getAssociations=function(){return[]};
i_N.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var k05=function(){MU.apply(this,arguments)};
_.h(k05,MU);k05.prototype.getAssociations=function(){return[]};
k05.prototype.getTypeName=function(){return"playerStateEntity"};var ujb=function(){MU.apply(this,arguments)};
_.h(ujb,MU);ujb.prototype.getAssociations=function(){return[]};
ujb.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var QcN=function(){MU.apply(this,arguments)};
_.h(QcN,MU);QcN.prototype.getAssociations=function(){return[]};
QcN.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var BRf=function(){MU.apply(this,arguments)};
_.h(BRf,MU);BRf.prototype.getAssociations=function(){return[]};
BRf.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.Zt=new _.A7("dislikeButtonViewModel");_.Fx=new _.A7("likeButtonViewModel");var b_q=new _.A7("videoSummaryContentViewModel");var rh4=new _.A7("videoSummaryParagraphViewModel");var KHJ=new _.A7("changeTimelyActionVisibilityCommand");var hb5=new _.A7("hideEngagementPanelEndpoint");var xk5=new _.A7("refreshPanelEndpoint");var LHx=new _.A7("scrollToSectionEndpoint");var sc5=new _.A7("seekToVideoTimestampCommand");_.E3=new _.A7("showEngagementPanelEndpoint");var mke=new _.A7("showTransientPlayerScrimOverlayCommand");var ebx=new _.A7("toggleEngagementPanelCommand");_.E35=new _.A7("createBroadcastCommand");var tJJ=new _.A7("metadataUpdateCommand");var NRk=function(){MU.apply(this,arguments)};
_.h(NRk,MU);NRk.prototype.getAssociations=function(){return[]};
NRk.prototype.getTypeName=function(){return"featuredProductsEntity"};var YSN=function(){MU.apply(this,arguments)};
_.h(YSN,MU);YSN.prototype.getAssociations=function(){return[]};
YSN.prototype.getTypeName=function(){return"pinnedProductEntity"};var yhc=function(){MU.apply(this,arguments)};
_.h(yhc,MU);yhc.prototype.getAssociations=function(){return[]};
yhc.prototype.getTypeName=function(){return"trendingOfferEntity"};_.n3g=new _.A7("merchandiseShelfRenderer");var wVM=new _.A7("shoppingContentLineItemViewModel");var FHd=new _.A7("gridMovieRenderer");_.Z_q=new _.A7("movieRenderer");var G05=function(){MU.apply(this,arguments)};
_.h(G05,MU);G05.prototype.getAssociations=function(){return[]};
G05.prototype.getTypeName=function(){return"compositeSourceEntity"};var VJf=function(){MU.apply(this,arguments)};
_.h(VJf,MU);VJf.prototype.getAssociations=function(){var D=[];this.delegate.compositeSourceKeys&&D.push.apply(D,_.VB(this.delegate.compositeSourceKeys));return[].concat(_.VB(new Set(D)))};
VJf.prototype.getTypeName=function(){return"multiviewStagingEntity"};var TR5=function(){MU.apply(this,arguments)};
_.h(TR5,MU);TR5.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.VB(this.delegate.trackDownloadMetadatas));return[].concat(_.VB(new Set(D)))};
TR5.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var H_C=function(){MU.apply(this,arguments)};
_.h(H_C,MU);
H_C.prototype.getAssociations=function(){var D=[];this.delegate.downloadedTracks&&D.push.apply(D,_.VB(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&D.push.apply(D,_.VB(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&D.push.apply(D,_.VB(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&D.push.apply(D,_.VB(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&D.push.apply(D,_.VB(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
D.push.apply(D,_.VB(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&D.push.apply(D,_.VB(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&D.push.apply(D,_.VB(this.delegate.metadataOnlyTracks));return[].concat(_.VB(new Set(D)))};
H_C.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Jhx=function(){MU.apply(this,arguments)};
_.h(Jhx,MU);Jhx.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.VB(this.delegate.trackDownloadMetadatas));return[].concat(_.VB(new Set(D)))};
Jhx.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var zbx=function(){MU.apply(this,arguments)};
_.h(zbx,MU);zbx.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.VB(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.VB(new Set(D)))};
zbx.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var jcc=function(){MU.apply(this,arguments)};
_.h(jcc,MU);
jcc.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&D.push.apply(D,_.VB(this.delegate.primaryArtists));this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.tracks&&D.push.apply(D,_.VB(this.delegate.tracks));this.delegate.share&&D.push(this.delegate.share);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.refresh&&
D.push(this.delegate.refresh);return[].concat(_.VB(new Set(D)))};
jcc.prototype.getTypeName=function(){return"musicAlbumRelease"};
var MJf=function(){MU.apply(this,arguments)};
_.h(MJf,MU);MJf.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.tracks&&D.push.apply(D,_.VB(this.delegate.tracks));return[].concat(_.VB(new Set(D)))};
MJf.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var qSd=function(){MU.apply(this,arguments)};
_.h(qSd,MU);qSd.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);return[].concat(_.VB(new Set(D)))};
qSd.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var fpc=function(){MU.apply(this,arguments)};
_.h(fpc,MU);fpc.prototype.getAssociations=function(){var D=[];this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);return[].concat(_.VB(new Set(D)))};
fpc.prototype.getTypeName=function(){return"musicArtist"};
var dk5=function(){MU.apply(this,arguments)};
_.h(dk5,MU);dk5.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.VB(new Set(D)))};
dk5.prototype.getTypeName=function(){return"musicArtistDetail"};
var Rbb=function(){MU.apply(this,arguments)};
_.h(Rbb,MU);Rbb.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.VB(new Set(D)))};
Rbb.prototype.getTypeName=function(){return"musicArtistUserDetail"};var lpg=function(){MU.apply(this,arguments)};
_.h(lpg,MU);lpg.prototype.getAssociations=function(){return[]};
lpg.prototype.getTypeName=function(){return"musicLibraryEdit"};var DLN=function(){MU.apply(this,arguments)};
_.h(DLN,MU);DLN.prototype.getAssociations=function(){return[]};
DLN.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var CYc=function(){MU.apply(this,arguments)};
_.h(CYc,MU);
CYc.prototype.getAssociations=function(){var D=[];this.delegate.tracks&&D.push.apply(D,_.VB(this.delegate.tracks));this.delegate.refresh&&D.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&D.push(this.delegate.details);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&D.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.entryCollection&&
D.push(this.delegate.entryCollection);this.delegate.share&&D.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&D.push.apply(D,_.VB((new Xm5(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.VB(new Set(D)))};
CYc.prototype.getTypeName=function(){return"musicPlaylist"};
var Xm5=function(){jT.apply(this,arguments)};
_.h(Xm5,jT);Xm5.prototype.getAssociations=function(){var D=[];this.delegate.creatorEntity&&D.push(this.delegate.creatorEntity);return[].concat(_.VB(new Set(D)))};var cyM=function(){MU.apply(this,arguments)};
_.h(cyM,MU);cyM.prototype.getAssociations=function(){return[]};
cyM.prototype.getTypeName=function(){return"musicShare"};var oZe=function(){MU.apply(this,arguments)};
_.h(oZe,MU);
oZe.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&D.push.apply(D,_.VB(this.delegate.artists));this.delegate.audioModeVersion&&D.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&D.push(this.delegate.videoModeVersion);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.details&&D.push(this.delegate.details);this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.share&&
D.push(this.delegate.share);this.delegate.libraryEdit&&D.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.lyrics&&D.push(this.delegate.lyrics);return[].concat(_.VB(new Set(D)))};
oZe.prototype.getTypeName=function(){return"musicTrack"};
var WVx=function(){MU.apply(this,arguments)};
_.h(WVx,MU);WVx.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.VB(new Set(D)))};
WVx.prototype.getTypeName=function(){return"musicTrackDetail"};
var pme=function(){MU.apply(this,arguments)};
_.h(pme,MU);pme.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.VB(new Set(D)))};
pme.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Mo=new _.A7("musicResponsiveListItemRenderer");var Yjo=new _.A7("addToPlaylistEndpoint");var S75=new _.A7("captionPickerEndpoint");var ULg=new _.A7("suggestStats");var gZx=new _.A7("backstageImageUploadEndpoint");var aee=new _.A7("createBackstagePostDialogEndpoint");_.Ied=new _.A7("createCommentReplyDialogEndpoint");_.O4q=new _.A7("updateCommentDialogEndpoint");_.AyM=new _.A7("updateCommentReplyDialogEndpoint");var PYC=new _.A7("menuEndpoint");var vkm=new _.A7("modalEndpoint");var $Lq=new _.A7("playlistEditorEndpoint");var vZ4=new _.A7("copyTextEndpoint");var i4C,klN;i4C=new _.A7("shareEndpoint");klN=new _.A7("shareEntityEndpoint");_.uCJ=new _.A7("shareEntityServiceEndpoint");_.xbF=new _.A7("userFeedbackEndpoint");_.TC=new _.A7("watchEndpoint");var Wb3=new _.A7("watchPlaylistEndpoint");var QsJ=new _.A7("addUpcomingEventReminderEndpoint");_.Uq=new _.A7("getCommentsFromInboxCommand");var Bp5=new _.A7("notificationOptOutEndpoint");var b45=new _.A7("recordNotificationInteractionsEndpoint");var ryq=new _.A7("removeUpcomingEventReminderEndpoint");_.fI=new _.A7("getDownloadActionCommand");_.KV5=new _.A7("offlineOrchestrationActionCommand");var hfq=function(){MU.apply(this,arguments)};
_.h(hfq,MU);hfq.prototype.getAssociations=function(){return[]};
hfq.prototype.getTypeName=function(){return"captionTrack"};var xL5=function(){MU.apply(this,arguments)};
_.h(xL5,MU);xL5.prototype.getAssociations=function(){return[]};
xL5.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var LVe=function(){MU.apply(this,arguments)};
_.h(LVe,MU);LVe.prototype.getAssociations=function(){return[]};
LVe.prototype.getTypeName=function(){return"offlineVideoPolicy"};var ssq=function(){MU.apply(this,arguments)};
_.h(ssq,MU);ssq.prototype.getAssociations=function(){return[]};
ssq.prototype.getTypeName=function(){return"offlineVideoStreams"};var mLg=function(){MU.apply(this,arguments)};
_.h(mLg,MU);mLg.prototype.getAssociations=function(){var D=[];this.delegate.transfer&&D.push(this.delegate.transfer);this.delegate.adsPlaybackData&&D.push.apply(D,_.VB(this.delegate.adsPlaybackData));this.delegate.drmLicense&&D.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.VB(new Set(D)))};
mLg.prototype.getTypeName=function(){return"playbackData"};var efc=function(){MU.apply(this,arguments)};
_.h(efc,MU);efc.prototype.getAssociations=function(){return[]};
efc.prototype.getTypeName=function(){return"refresh"};var EZ5=function(){MU.apply(this,arguments)};
_.h(EZ5,MU);EZ5.prototype.getAssociations=function(){var D=[];this.delegate.offlineVideoStreams&&D.push.apply(D,_.VB(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&D.push.apply(D,_.VB(this.delegate.captionTrack));return[].concat(_.VB(new Set(D)))};
EZ5.prototype.getTypeName=function(){return"transfer"};var tOM=function(){MU.apply(this,arguments)};
_.h(tOM,MU);tOM.prototype.getAssociations=function(){return[]};
tOM.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Np5=new _.A7("showMoreDrawerCommand");var Y7f=new _.A7("updateEngagementPanelContentCommand");var yyb=new _.A7("getPdgBuyFlowCommand");var nZe=new _.A7("liveChatPurchaseMessageEndpoint");var wmx=new _.A7("openSuperStickerBuyFlowCommand");var FVC=new _.A7("updatePdgFeatureEnablementCommand");var Z4b=function(){MU.apply(this,arguments)};
_.h(Z4b,MU);Z4b.prototype.getAssociations=function(){return[]};
Z4b.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Gl5=function(){MU.apply(this,arguments)};
_.h(Gl5,MU);Gl5.prototype.getAssociations=function(){return[]};
Gl5.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.VOx=new _.A7("pdgCommentChipRenderer");_.TpN=new _.A7("permissionRoleBottomBarRenderer");_.H45=new _.A7("updatePermissionRoleCommand");var Jyf=new _.A7("prefetchWatchCommand");var zfc=new _.A7("updatePlayerErrorMessageCommand");var xT5=new _.A7("toggleCaptionsVisibilityCommand");var jsM=new _.A7("playerDisclosureViewModel");_.MOf=new _.A7("quickActionsViewModel");var q7N=new _.A7("playerResponse");var feN=new _.A7("playlistRenderer");_.dLc=new _.A7("playlistVideoListRenderer");_.gX=new _.A7("playlistEditEndpoint");var Rfq=new _.A7("createImagePollCommand");var leJ=new _.A7("createQuizCommand");var DMx=new _.A7("quizRenderer");var C9b=new _.A7("uploadedVideoRenderer");var XkN=new _.A7("decorateMessageEndpoint");var c$5=new _.A7("lpOfferCardOptionViewModel");var oib=new _.A7("sfvAudioItemPlaybackCommand");var WO4=function(){MU.apply(this,arguments)};
_.h(WO4,MU);WO4.prototype.getAssociations=function(){return[]};
WO4.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.ad=new _.A7("reelNonVideoContentEndpoint");_.ko=new _.A7("reelWatchEndpoint");var pke=new _.A7("reelActionBarViewModel");_.Id=new _.A7("reelItemRenderer");var Swe=new _.A7("reelMetapanelViewModel");_.Oq=new _.A7("reelNonVideoContentRenderer");_.UMd=new _.A7("reelPlayerOverlayRenderer");var gi5=new _.A7("shortsLockupViewModel");var aYb=new _.A7("sponsorButtonViewModel");var IYc=new _.A7("reelItemWatchResponse");var Ozc=new _.A7("textBadgeRenderer");_.AF=new _.A7("buttonRenderer");_.Pj=new _.A7("toggleButtonRenderer");var ZSJ=new _.A7("switchButtonViewModel");_.A$f=new _.A7("confirmDialogRenderer");var P9C;P9C=new _.A7("menuRenderer");_.$MN=new _.A7("menuFlexibleItemRenderer");var vix=new _.A7("pollRenderer");_.izJ=new _.A7("backgroundPromoRenderer");var u55;_.kY5=new _.A7("chipCloudRenderer");u55=new _.A7("chipCloudChipRenderer");var Q1d=new _.A7("dropdownRenderer");var Byc=new _.A7("gridVideoRenderer");_.bz5=new _.A7("itemSectionRenderer");_.r$b=new _.A7("messageRenderer");var KOM=new _.A7("sortFilterHeaderRenderer");_.$L=new _.A7("videoRenderer");var hSk=new _.A7("resolveUrlCommandMetadata");var xMC=function(){MU.apply(this,arguments)};
_.h(xMC,MU);xMC.prototype.getAssociations=function(){return[]};
xMC.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.LOC=new _.A7("getAnswerCommand");_.$o=new _.A7("searchEndpoint");var s1x=new _.A7("genAiRichTextViewModel");var tWm=new _.A7("overviewAnswerViewModel");var mMc=new _.A7("videoOverviewViewModel");var eS5=new _.A7("addToPlaylistServiceEndpoint");var EiM=new _.A7("clearSearchHistoryEndpoint");var tuk=new _.A7("clearWatchHistoryEndpoint");var Nyk=new _.A7("webSerializedServiceEndpointExtension");_.Ywf=new _.A7("createCommentEndpoint");var y$5=new _.A7("createCommentReplyEndpoint");var ni5=new _.A7("performCommentActionEndpoint");var wk5=new _.A7("updateCommentEndpoint");var FO5=new _.A7("updateCommentReplyEndpoint");_.vj=new _.A7("createPlaylistServiceEndpoint");var Zzf=new _.A7("deletePlaylistEndpoint");var GYk=new _.A7("deleteVideoEndpoint");var NbJ=new _.A7("getReportFormEndpoint");var VuN=new _.A7("modifyChannelNotificationPreferenceEndpoint");var JJn;_.iK=new _.A7("offlinePlaylistEndpoint");JJn={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 ztt;_.vX=new _.A7("offlineVideoEndpoint");ztt={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 Tyd=new _.A7("pingingEndpoint");_.Hzc=new _.A7("selectActiveIdentityEndpoint");var J$C=new _.A7("setSettingEndpoint");var vDn=new _.A7("undoFeedbackEndpoint");var zSg=new _.A7("unsubscribeEndpoint");_.j1c=new _.A7("updatedMetadataEndpoint");var Muq=function(){MU.apply(this,arguments)};
_.h(Muq,MU);Muq.prototype.getAssociations=function(){return[]};
Muq.prototype.getTypeName=function(){return"settingEntity"};_.qw5=new _.A7("updateLocalAppSettingCommand");var fYe=new _.A7("saveImageToDeviceEndpoint");var dM5=new _.A7("shareImageCommand");var RSq=new _.A7("sharingProviderDataCommand");var lYe=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(lYe,_.aH);var DxJ=[0,_.CL,-1];lYe.prototype.JSC$12691_serializeBinary=jHW(DxJ);var CC4=_.bU(DxJ);var X9C=new _.A7("userMentionSuggestionRenderer");var cbM=new _.A7("liveChatTunnelCommand");var ocC=new _.A7("showSponsorshipsGiftOfferDialogCommand");var Wy5=new _.A7("sponsorshipsScrollableShelfViewModel");var p9b=new _.A7("updateUpcomingEventReminderButtonStateCommand");var SAk=new _.A7("upcomingEventReminderButtonStateRenderer");var Ux5=new _.A7("subscribeEndpoint");var gc5=new _.A7("registerTasksCommand");var aQJ=new _.A7("hideSheetCommand");var IQk=new _.A7("hideSnackbarCommand");var Oux=new _.A7("showDialogCommand");_.rU=new _.A7("showSheetCommand");var AbJ=new _.A7("showSnackbarCommand");var PCg=function(){MU.apply(this,arguments)};
_.h(PCg,MU);PCg.prototype.getAssociations=function(){return[]};
PCg.prototype.getTypeName=function(){return"chipEntity"};var $xe=function(){MU.apply(this,arguments)};
_.h($xe,MU);$xe.prototype.getAssociations=function(){return[]};
$xe.prototype.getTypeName=function(){return"dismissState"};_.yX=new _.A7("avatarViewModel");var vcJ=new _.A7("badgeViewModel");_.is=new _.A7("buttonViewModel");_.kL=new _.A7("chipViewModel");var iuN=new _.A7("contentPreviewImageViewModel");var kce=new _.A7("decoratedAvatarViewModel");_.XsR=new _.A7("engagementBarViewModel");_.uuN=new _.A7("imageBannerViewModel");var QLc=new _.A7("lockupContentMetadataRowExtension");_.Bv5=new _.A7("lockupMetadataViewModel");_.bu5=new _.A7("lockupViewModel");var rbf=new _.A7("avatarStackViewModel");_.Kyx=new _.A7("contentMetadataViewModel");var hN5=function(){MU.apply(this,arguments)};
_.h(hN5,MU);hN5.prototype.getAssociations=function(){return[]};
hN5.prototype.getTypeName=function(){return"pageHeaderEntity"};_.xx5=new _.A7("pageHeaderViewModel");var Lyc=new _.A7("snackbarViewModel");var sLN=new _.A7("thumbnailHoverOverlayToggleActionsViewModel");_.us=new _.A7("toggleButtonViewModel");var mx5=function(){MU.apply(this,arguments)};
_.h(mx5,MU);mx5.prototype.getAssociations=function(){return[]};
mx5.prototype.getTypeName=function(){return"votingEntity"};_.cOm=new _.A7("votingViewModel");var eN5=new _.A7("sectionHeaderViewModel");var Ec4=new _.A7("notifyDropdownOptionSelectedCommand");var A5t=new _.A7("listViewModel");_.KT=new _.A7("listItemViewModel");var tvc=new _.A7("dialogHeaderViewModel");var Nvk=function(){MU.apply(this,arguments)};
_.h(Nvk,MU);Nvk.prototype.getAssociations=function(){return[]};
Nvk.prototype.getTypeName=function(){return"dataFreshnessEntity"};var bOm=new _.A7("suspenseViewModel");var YAk=new _.A7("tooltipViewModel");var ybd=function(){MU.apply(this,arguments)};
_.h(ybd,MU);ybd.prototype.getAssociations=function(){return[]};
ybd.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var nc5=function(){MU.apply(this,arguments)};
_.h(nc5,MU);nc5.prototype.getAssociations=function(){return[]};
nc5.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var w95=function(){MU.apply(this,arguments)};
_.h(w95,MU);w95.prototype.getAssociations=function(){return[]};
w95.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.Fye=new _.A7("transcriptSubmitCaptionCorrectionCommand");var Zu5=function(){MU.apply(this,arguments)};
_.h(Zu5,MU);Zu5.prototype.getAssociations=function(){return[]};
Zu5.prototype.getTypeName=function(){return"buttonEntity"};var okj=new _.A7("unpluggedStringRunImage");var Gcq=new _.A7("tabViewModel");var Vv5=new _.A7("tabbedViewModel");var Tvb=function(){MU.apply(this,arguments)};
_.h(Tvb,MU);Tvb.prototype.getAssociations=function(){return[]};
Tvb.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.HuN=new _.A7("updateDescriptionAction");var Jbb=new _.A7("updateToggleButtonTextAction");var zNN=new _.A7("showFullscreenPlayerControlsCommand");var jL5=new _.A7("updateVideoMetadataCommand");_.MvJ=new _.A7("autoplaySwitchButtonRenderer");var Yw;_.qA5=new _.A7("multiMarkersPlayerBarRenderer");Yw=new _.A7("chapterRenderer");var fQe=new _.A7("heatMarkerRenderer");var sUr=new _.A7("heatmapRenderer");var dxf=new _.A7("smartSkipPlayerScrimOverlayRenderer");var RNN=new _.A7("timedMarkerDecorationRenderer");var HJo=new _.A7("postWebToNativeMessageCommand");var No=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(No,_.aH);No.prototype.getMethodName=function(){return _.EG(this,1)};var XwC=[0,_.CL,-2];No.prototype.JSC$12713_serializeBinary=jHW(XwC);var ceN=_.Bv(No,XwC);var o95=new _.A7("whitelistEditEndpoint");var Wb4=new _.A7("clearUrlParamCommand");var pwq=new _.A7("commerceActionCommand");_.Sgg=new _.A7("getPaymentInstrumentsParamsCommand");var UVq=new _.A7("getPaymentsClientTokenCommand");var g9c=new _.A7("googlePaymentBillingCommand");var aXq=new _.A7("googlePaymentPurchaseManagerCommand");_.IXk=new _.A7("logGtmCommand");var O95=new _.A7("updateCardItemOnClickCommand");_.Ae5=new _.A7("ypcPauseSubscriptionCommand");_.Pe4=new _.A7("ypcResumeSubscriptionCommand");var $V4=function(){MU.apply(this,arguments)};
_.h($V4,MU);$V4.prototype.getAssociations=function(){return[]};
$V4.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var v9g=function(){MU.apply(this,arguments)};
_.h(v9g,MU);v9g.prototype.getAssociations=function(){return[]};
v9g.prototype.getTypeName=function(){return"commerceCartListEntity"};var i9b=function(){MU.apply(this,arguments)};
_.h(i9b,MU);i9b.prototype.getAssociations=function(){return[]};
i9b.prototype.getTypeName=function(){return"iconBadgeEntity"};var kOf=function(){MU.apply(this,arguments)};
_.h(kOf,MU);kOf.prototype.getAssociations=function(){return[]};
kOf.prototype.getTypeName=function(){return"pdpStateEntity"};var uZN=function(){MU.apply(this,arguments)};
_.h(uZN,MU);uZN.prototype.getAssociations=function(){return[]};
uZN.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var B9J=new _.A7("ypcOffersEndpoint");var Qu5=new _.A7("cardItemRenderer"),Bzc=new _.A7("cardItemTextRenderer");var b9g=new _.A7("commerceCartItemQuantityPickerRenderer");var reJ=new _.A7("linkCardRenderer");var nKR=new _.A7("quantityIncrementerButtonViewModel");var Kbd=new _.A7("quantityIncrementerViewModel");var hsd=new _.A7("themedImageViewModel");_.xVc=new _.A7("ypcCancelRecurrenceEndpoint");var Lbd=new _.A7("ypcCompleteTransactionEndpoint");_.suq=new _.A7("ypcGetCartEndpoint");_.MH=new _.A7("ypcGetOffersEndpoint");_.Qc=new _.A7("ypcHandleTransactionEndpoint");var mVJ=new _.A7("ypcLogWalletAnalyticDataEndpoint");_.es5=new _.A7("ypcRedeemCodeEndpoint");var E9N=new _.A7("ypcUpdateFopEndpoint");Lo(xO(1),Ko(4));SBg((new MessageChannel).port2);var tx5=function(){this.register=new Map},xDo=function(D,C,X){D=D+"_"+C;
Bj.register.has(D)?X=Bj.register.get(D):(X=X(),Bj.register.set(D,X));return X},Nzx=function(D){D=_.U(D.register.values());
for(var C=D.next();!C.done;C=D.next())_.AT(C.value,"ABORTED")};
tx5.prototype.clear=function(){Nzx(this);this.register.clear()};
var Bj=new tx5;var W_m=Date.now().toString();var UDj=Svo();var vYF={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 Yg5,h8;Yg5=1;h8=function(D){this.veData=D};
_.bO=function(D){return new h8({trackingParams:D})};
_.Ia=function(D,C,X,c,W,p){var g=Yg5++;return new h8({veType:D,veCounter:g,elementIndex:X,dataElement:C,youtubeData:c,jspbYoutubeData:W,loggingDirectives:p})};
_.S=h8.prototype;
_.S.getAsJson=function(){var D={};this.veData.trackingParams!==void 0?D.trackingParams=this.veData.trackingParams:(D.veType=this.veData.veType,this.veData.veCounter!==void 0&&(D.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(D.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(D.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(D.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(D.isCounterfactual=!0);
return D};
_.S.getAsJspb=function(){var D=new LUx;this.veData.trackingParams!==void 0?D.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.nR(D,2,this.veData.veType),this.veData.veCounter!==void 0&&_.nR(D,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.nR(D,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.kT(D,5,!0));if(this.veData.dataElement!==void 0){var C=this.veData.dataElement.getAsJspb();_.Lf(D,7,C)}this.veData.youtubeData!==void 0&&_.Lf(D,8,this.veData.jspbYoutubeData);
return D};
_.S.toString=function(){return JSON.stringify(this.getAsJson())};
_.S.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.S.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.$h("yt_logging_screen.getRootVeType",AnF);_.$h("yt_logging_screen.getCurrentCsn",_.LN);_.$h("yt_logging_screen.getCttAuthInfo",mP);_.$h("yt_logging_screen.setCurrentScreen",_.ec);var yec=function(){this.events=new Map},n9d=function(D){var C=[];
D=_.U(D.events.values());for(var X=D.next();!X.done;X=D.next())C.push(X.value);return C};
yec.prototype.clear=function(){this.events.clear()};var FbN=function(){this.logTransport=new wwJ;this.loggedEventRegister=new yec;this.unloggedEventRegister=new yec;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12750_flushTimer=new _.BH(this.flushInterval);this.JSC$12750_flushTimer.listen("tick",this.flush,!1,this)};
FbN.prototype.flush=function(){if(this.eventsCount){var D={loggedEvents:n9d(this.loggedEventRegister),unloggedEvents:n9d(this.unloggedEventRegister)};if(_.b("export_player_version_to_ytconfig")){var C;(C=_.q6("PLAYER_CLIENT_VERSION"))?(C=C.split("-")[0].replace(/\./g,""),C=isNaN(Number(C))?"0":C):C="";var X=_.q6("PLAYER_CLIENT_VERSION");if(X){X=X.split("-");var c="";X.length>1&&(c=X[X.length-1]);X=oY3(c.startsWith("canary_experiment")?"canary":c.startsWith("canary_control")?"control":"none")}else X=
"CLIENT_CANARY_STATE_UNKNOWN";D.dimensions={playerClientVersion:C,playerCanaryState:X}}this.logTransport.flush(D);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12750_flushTimer.enabled&&this.JSC$12750_flushTimer.stop()}};
var Z9J=function(D){bs==null&&(bs=new FbN);var C=bs;var X=C.loggedEventRegister;D.dimensions=D.dimensions||{};D.dimensions.csn=_.LN()||"";var c=QCR(D.dimensions).join(";");if(D.records!=null)if(X.events.has(c)){var W;(W=X.events.get(c).records)==null||W.push.apply(W,_.VB(D.records))}else X.events.set(c,D);C.JSC$12750_flushTimer.enabled||C.JSC$12750_flushTimer.start();C.eventsCount++;C.eventsCount>=100&&C.flush()};var wwJ=function(){};
wwJ.prototype.flush=function(D,C){_.b("enable_client_sli_logging")&&_.zu("sliEventBatch",D,{sendIsolatedPayload:!!C})};var bs;var VxN;VxN=function(D){var C=GON;D=D===void 0?{}:D;C=C.name;var X=hXm("SUCCESS");Z9J({dimensions:D,records:[{name:C,state:"SLI_STATE_END",status:X}]})};
_.L_R=function(D,C,X,c){this.name=D;this.sliId=C;this.timeoutMs=X;this.statusOnTimeout=c;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.L_R.prototype.getId=function(){return this.sliId};
_.O3=function(D,C){C=C===void 0?{}:C;D.ongoing||(D.ongoing=!0,D.dimensions=C,D.logSliId=M$o(),Z9J({dimensions:D.dimensions,records:[{name:D.name,state:"SLI_STATE_START",sliId:D.logSliId}]}),D.timeoutMs>0&&(D.timeoutHandle=setTimeout(function(){_.AT(D,D.statusOnTimeout)},D.timeoutMs)))};
_.AT=function(D,C){D.ongoing&&(D.timeoutMs>0&&clearTimeout(D.timeoutHandle),D.ongoing=!1,C={dimensions:D.dimensions,records:[{name:D.name,status:hXm(C),state:"SLI_STATE_END",sliId:D.logSliId}]},Bj.register.delete(D.name+"_"+D.sliId),Z9J(C))};var GON=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Tzx=function(){MU.apply(this,arguments)};
_.h(Tzx,MU);Tzx.prototype.getAssociations=function(){return[]};
Tzx.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var G$F=new _.A7("highlightTextDecoratorColorMapExtension");var FKm=new _.A7("styleRunColorMapExtension");var Yvh=_.q8(["data-"]),w8m={};var Z0m={};var rX=function(D){this.wrappedPromise_=D===void 0?null:D;this.state_=0;this.JSC$12781_value_=null};
rX.prototype.then=function(D,C,X){return this.wrappedPromise_?this.wrappedPromise_.then(D,C,X):this.state_===1&&D?(D=D.call(X,this.JSC$12781_value_))&&typeof D.then==="function"?D:_.KU(D):this.state_===2&&C?(D=C.call(X,this.JSC$12781_value_))&&typeof D.then==="function"?D:_.H9q(D):this};
rX.prototype.getValue=function(){return this.JSC$12781_value_};
rX.prototype.isRejected=function(){return this.state_==2};
Qef(rX);_.H9q=function(D){var C=new rX;D=D===void 0?null:D;C.state_=2;C.JSC$12781_value_=D===void 0?null:D;return C};
_.KU=function(D){var C=new rX;D=D===void 0?null:D;C.state_=1;C.JSC$12781_value_=D===void 0?null:D;return C};var CJW="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Jek=["load","abort","error"],hF=function(D,C,X){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12801_maxAspectRatio_=D;this.disableAnimation_=C===void 0?!1:C;this.disableExifRotation_=X===void 0?!1:X;this.JSC$12801_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12801_reject_=this.resolve_=null};
hF.prototype.transform=function(D){var C=this;this.mime_=D.type;U9(mne(D),this.dataUrlRead_,this.readError_,this);U9(s_g(D.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(X,c){C.resolve_=X;C.JSC$12801_reject_=c})};
hF.prototype.dataUrlRead_=function(D){this.dataUrl_=D;this.angle_!=null&&zsk(this)};
hF.prototype.exifRead_=function(D){if(this.disableExifRotation_)this.angle_=0;else{a:if(D=new DataView(D),D.byteLength<2||D.getUint16(0)!==65496)D=-2;else{for(var C=2,X=D.byteLength;C<X;){var c=D.getUint16(C),W=D.getUint16(C+2);if(c===65505){C+=4;c=D.getUint32(C);W=D.getUint16(C+4);if(c!==1165519206||W!==0)break;C+=6;c=D.getUint16(C)===18761;C+=D.getUint32(C+4,c);W=D.getUint16(C,c);C+=2;for(var p=0;p<W;p++){if(D.getUint16(C,c)===274){C+=8;D=D.getUint16(C,c);break a}C+=12}}else if(c>>8!==255)break;
else C+=W+2}D=-1}switch(D){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&&zsk(this)};
hF.prototype.readError_=function(){this.JSC$12801_reject_()};
var zsk=function(D){QK(D.JSC$12801_image_,Jek,D.completeTransform_,!1,D);D.JSC$12801_image_.src=_.Hv(D.dataUrl_).toString();D.JSC$12801_image_.src!=Td.toString()&&D.JSC$12801_image_.src.substr(0,11)==="data:image/"||D.JSC$12801_reject_()};
hF.prototype.completeTransform_=function(){if(this.JSC$12801_image_.src!=Td.toString()){var D=_.Hv(this.dataUrl_),C=this.JSC$12801_image_.naturalHeight?this.JSC$12801_image_.naturalWidth/this.JSC$12801_image_.naturalHeight:null;this.invalidAspectRatio=C>this.JSC$12801_maxAspectRatio_||C<1/this.JSC$12801_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var X=this.JSC$12801_image_.naturalWidth,c=this.JSC$12801_image_.naturalHeight,W=C=0,p=this.JSC$12801_image_.naturalHeight?this.JSC$12801_image_.naturalWidth/
this.JSC$12801_image_.naturalHeight:null;p>this.JSC$12801_maxAspectRatio_?(X=this.JSC$12801_maxAspectRatio_*c,C=(X-this.JSC$12801_image_.naturalWidth)/2,this.cropped=!0):p<1/this.JSC$12801_maxAspectRatio_?(c=this.JSC$12801_maxAspectRatio_*X,W=(c-this.JSC$12801_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)p=X,X=c,c=p,p=C,C=W,W=p;switch(this.angle_){case 90:W-=X;break;case 180:C-=X;W-=c;break;case 270:C-=
c}this.cropped||this.angle_%360!==0?(D=document.createElement("canvas"),D.width=X||1,D.height=c||1,this.JSC$12801_image_.naturalWidth&&this.JSC$12801_image_.naturalHeight&&(X=D.getContext("2d"),X.rotate(Math.PI/180*this.angle_),X.drawImage(this.JSC$12801_image_,C,W,this.JSC$12801_image_.naturalWidth,this.JSC$12801_image_.naturalHeight)),this.transformedData=_.Hv(D.toDataURL(this.mime_))):this.transformedData=D}else this.transformedData=D;this.resolve_(this)}};var xL=function(D,C){_.eL.call(this,D);this.value=C};
_.h(xL,_.eL);
var LU=function(D,C,X,c,W,p,g){g=g===void 0?!1:g;_.yg.call(this);var a=this;this.JSC$12806_url_=D;this.channelId_=C;this.maxFileSizeMb_=X;this.JSC$12806_maxAspectRatio_=c;this.dropZoneEl_=W;this.rejectInvalidAspectRatio_=g;this.selectButtonEl_=p;this.JSC$12806_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new yq(this.dropZoneEl_);this.selectOverlay_=new no(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12806_image_=this.transfer_=null;this.handler_=new _.bQ(this);_.hR(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(p,"click",function(){a.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.h(LU,_.yg);LU.prototype.disposeInternal=function(){for(var D=this.selectButtonEl_.nextSibling;D&&D.parentNode&&D.tagName=="INPUT";)D.parentNode.removeChild(D),D=this.selectButtonEl_.nextSibling;this.cancel();_.yg.prototype.disposeInternal.call(this)};
LU.prototype.uploadPromise=function(){if(this.JSC$12806_image_==null)return null;this.uploadPromise_||juJ(this);return this.uploadPromise_};
LU.prototype.cancel=function(){MxJ(this);this.JSC$12806_image_=null};
var MxJ=function(D){D.transfer_&&D.transfer_.cancel();D.transfer_=null;D.uploadPromise_=null;D.resolve_=null;D.JSC$12806_reject_=null},juJ=function(D){MxJ(D);
D.transfer_=_.kZ5(D.JSC$12806_url_,{"X-YouTube-ChannelId":D.channelId_},D.JSC$12806_image_);D.handler_.listenOnce(D.transfer_,"l",D.JSC$12808_onUploadComplete_);D.handler_.listenOnce(D.transfer_,"n",D.onUploadError_);D.transfer_.run();D.uploadPromise_=new Promise(function(C,X){D.resolve_=C;D.JSC$12806_reject_=X})};
_.S=LU.prototype;_.S.onChange_=function(D){D.files.length&&(this.JSC$12806_image_=D.files[0],this.JSC$12806_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12806_image_=null,this.dispatchEvent(new xL("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(juJ(this),(new hF(this.JSC$12806_maxAspectRatio_)).transform(this.JSC$12806_image_).then((0,_.wo)(this.onPreview_,this),(0,_.wo)(this.onPreviewError_,this))))};
_.S.onPreview_=function(D){if(D.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12806_image_=null),this.dispatchEvent(new xL("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;D.cropped&&this.dispatchEvent(new xL("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new xL("yt.comments.ImageUploadOverlay.CHANGE_EVENT",D.transformedData))};
_.S.onPreviewError_=function(){this.JSC$12806_image_=null;this.dispatchEvent(new xL("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.S.onHover_=function(D){D.stopPropagation();D.preventDefault();if(D.type==="dragover")D=!0;else if(D.type==="dragleave")D=!1;else return;this.dispatchEvent(new xL("yt.comments.ImageUploadOverlay.HOVER_EVENT",D))};
_.S.JSC$12808_onUploadComplete_=function(){var D=(0,_.JU4)(this.transfer_.getResponseText());this.resolve_(D.encryptedBlobId)};
_.S.onUploadError_=function(){this.JSC$12806_reject_();MxJ(this)};var qgd=function(D){D=D||{};var C={},X={};this.url=D.url||"";this.args=D.args||_.ZI.clone(C);this.assets=D.assets||{};this.attrs=D.attrs||_.ZI.clone(X);this.fallback=D.fallback||null;this.fallbackMessage=D.fallbackMessage||null;this.html5=!!D.html5;this.disable=D.disable||{};this.loaded=!!D.loaded;this.messages=D.messages||{}};
qgd.prototype.clone=function(){var D=new qgd,C;for(C in this)if(this.hasOwnProperty(C)){var X=this[C];_.DG(X)=="object"?D[C]=_.ZI.clone(X):D[C]=X}return D};var fXg,dVJ,Rsb,jb,D0x,CBJ,XYe,cDd,oA5,W1c,pYM,Sk5,U0M,gAf,a$f,I$d,O34,ADq,PBJ,$0N,vA5,i3M,kRJ,uH4,Qvc,BQd,b34,rDM,K1C,RQZ,hpJ,x0q,L1N,svg,m04,epM,EAq,td5,NQc,YkJ,dQo,yD5,nAb,wYM,F1d,Z3c,GRq,Vd5,TQ4,H3q,JDC,zpc,jv4,Md5,qkx,f$x,sq,d0N,RpC,l$C,DWN,C4d,Xnq,c1q,oMe,W3M,pnb,SKq,UWe,gMb,aDC,IDe,Ojc,A1k,P44,$Wk,qcZ,vMJ,ijq,kGe,uaC,Qre,BI5,bjx,r1x,K3C,hHJ,xWf,L3b,srg,mW5,eHe,EM4,tw4,NI5,YK5,y1e,nMd,wng,F3N,Zje,GGb;fXg=["account/accounts_list"];dVJ=["acknowledge_channel_tou_strike"];Rsb=["notification/add_upcoming_event_reminder"];
_.lXx=["att/get"];jb=["browse","music/browse","streaming_browse","unplugged/browse"];D0x=["channel/claim_legacy_youtube_channel"];CBJ=["history/clear_search_history"];XYe=["history/clear_watch_history"];cDd=["comment/perform_comment_action"];oA5=["comment/get_comment_replies"];W1c=["ypc/commerce_action"];pYM=["backstage/create_post"];Sk5=["live/create_broadcast"];U0M=["channel/create_channel"];gAf=["comment/create_comment_reply"];a$f=["comment/create_comment"];I$d=["live_chat/create_poll"];O34=["playlist/create"];
ADq=["decorate_message"];PBJ=["live_chat/delete_message"];$0N=["playlist/delete"];vA5=["video/delete"];i3M=["like/dislike"];kRJ=["dismissal/dismiss"];uH4=["flag/flag"];Qvc=["flow"];BQd=["account/account_menu"];b34=["playlist/get_add_to_playlist"];rDM=["get_answer"];K1C=["channel/get_channel_creation_form"];RQZ=["offline/get_download_action"];hpJ=["kids/get_kids_blocklist_picker"];x0q=["live_chat/get_item_context_menu"];L1N=["live_chat/get_live_chat_message_buy_flow"];svg=["live_chat/get_live_chat_replay"];
m04=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];epM=["live_chat/get_live_chat_super_sticker_buy_flow"];EAq=["notification/get_notification_menu"];td5=["playlist/get_settings_editor"];NQc=["backstage/get_post_video_preview"];YkJ=["account/get_profile_card"];dQo=["share/get_share_panel"];yD5=["share/get_sharing_provider_data"];nAb=["get_survey"];wYM=["notification/get_unseen_count"];F1d=["get_user_mention_suggestions"];Z3c=["get_watch"];GRq=["guide"];
Vd5=["feedback"];TQ4=["kids/update_blacklist"];H3q=["like/like"];JDC=["live_chat/live_chat_action"];zpc=["live_chat/manage_user"];jv4=["video_manager/metadata_update"];Md5=["live_chat/moderate"];qkx=["notification/modify_channel_preference"];f$x=["notification/opt_out"];sq=["get_panel","get_posts_by_host_panel"];d0N=["player"];RpC=["browse/edit_playlist"];l$C=["notification/record_interactions"];DWN=["reel/reel_item_watch"];C4d=["reel/reel_watch_sequence"];Xnq=["like/removelike"];c1q=["notification/remove_upcoming_event_reminder"];
oMe=["flag/get_form"];W3M=["miniapp/report_value"];pnb=["navigation/resolve_url"];SKq=["channel/reveal_business_email"];UWe=["in_video/search"];gMb=["search","sfv/search","unplugged/search"];aDC=["live_chat/send_message"];IDe=["live_chat/send_live_chat_vote"];Ojc=["account/set_setting"];A1k=["submit_caption_correction"];P44=["submit_form"];$Wk=["subscription/subscribe"];qcZ=["get_transcript"];vMJ=["resolve_location","unplugged/resolve_location"];ijq=["subscription/unsubscribe"];kGe=["backstage/update_post"];
uaC=["channel_edit/update_channel_page_settings"];Qre=["comment/update_comment_reply"];BI5=["comment/update_comment"];bjx=["comment/update_comments_settings"];r1x=["creator/update_creator_channel"];K3C=["pdg/update_enablement"];hHJ=["updated_metadata"];xWf=["channel_edit/validate_channel_handle"];L3b=["verify_age"];srg=["next","unplugged/watch_next"];mW5=["whitelist/edit"];eHe=["ypc/cancel_recurrence"];EM4=["ypc/complete_transaction"];tw4=["ypc/get_cart"];NI5=["ypc/get_fix_instrument_params"];
YK5=["ypc/get_offers"];y1e=["ypc/get_payment_instruments_params"];nMd=["ypc/handle_transaction"];wng=["ypc/log_payment_server_analytics"];F3N=["ypc/pause_subscription"];Zje=["ypc/redeem_code"];GGb=["ypc/resume_subscription"];var Vw4=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,
25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,
72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,
282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,
30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,
150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,
147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,
37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,
267581,273232,82039];var a7=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.$h("yt.msgs_",a7);var mQ=new _.P6("ACTION_ROUTER_TOKEN");_.em=function(){this.autonavState_=_.b("kevlar_is_pupi_enabled")?2:Afr()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.em.prototype.getState=function(){return this.autonavState_};
_.em.prototype.pause=function(D){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=D):this.autonavState_==1&&(this.disabledAutonavPauseReason_=D)};
_.em.prototype.setState=function(D,C,X){C&&(this.autoplayChangedByUser=!0);C=this.autonavState_===3||D===3;this.autonavState_!=D&&(this.autonavState_=D,D!=3&&_.PJ3(D==2),D=_.b("kevlar_is_pupi_enabled")?X||C:!0,_.Wf.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,D,X))};
_.em.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.cT(_.em);var Eq=function(){this.xA=!1};var tF={},hzF=(tF.auto_search="LATENCY_ACTION_AUTO_SEARCH",tF.ad_to_ad="LATENCY_ACTION_AD_TO_AD",tF.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",tF.app_startup="LATENCY_ACTION_APP_STARTUP",tF.browse="LATENCY_ACTION_BROWSE",tF.cast_splash="LATENCY_ACTION_CAST_SPLASH",tF.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",tF.channels="LATENCY_ACTION_CHANNELS",tF.chips="LATENCY_ACTION_CHIPS",tF.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",tF.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
tF.editor="LATENCY_ACTION_EDITOR",tF.embed="LATENCY_ACTION_EMBED",tF.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",tF.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",tF.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",tF.explore="LATENCY_ACTION_EXPLORE",tF.favorites="LATENCY_ACTION_FAVORITES",tF.home="LATENCY_ACTION_HOME",tF.inboarding="LATENCY_ACTION_INBOARDING",tF.landing="LATENCY_ACTION_LANDING",tF.learning="LATENCY_ACTION_LEARNING",
tF.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",tF.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",tF.library="LATENCY_ACTION_LIBRARY",tF.live="LATENCY_ACTION_LIVE",tF.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",tF.management="LATENCY_ACTION_MANAGEMENT",tF.mini_app="LATENCY_ACTION_MINI_APP_PLAY",tF.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",tF.onboarding="LATENCY_ACTION_ONBOARDING",tF.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
tF.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",tF.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",tF.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",tF.prebuffer="LATENCY_ACTION_PREBUFFER",tF.prefetch="LATENCY_ACTION_PREFETCH",tF.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",tF.profile_switcher="LATENCY_ACTION_LOGIN",tF.projects="LATENCY_ACTION_PROJECTS",tF.reel_watch="LATENCY_ACTION_REEL_WATCH",tF.results="LATENCY_ACTION_RESULTS",tF.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
tF.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",tF.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",tF.review="LATENCY_ACTION_REVIEW",tF.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",tF.search_ui="LATENCY_ACTION_SEARCH_UI",tF.search_suggest="LATENCY_ACTION_SUGGEST",tF.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",tF.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",tF.seek="LATENCY_ACTION_PLAYER_SEEK",tF.settings="LATENCY_ACTION_SETTINGS",tF.store="LATENCY_ACTION_STORE",
tF.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",tF.tenx="LATENCY_ACTION_TENX",tF.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",tF.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",tF.watch="LATENCY_ACTION_WATCH",tF.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",tF["watch,watch7"]="LATENCY_ACTION_WATCH",tF["watch,watch7_html5"]="LATENCY_ACTION_WATCH",tF["watch,watch7ad"]="LATENCY_ACTION_WATCH",tF["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",tF.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
tF.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",tF.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",tF.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",tF.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",tF.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",tF.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",tF.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",tF),TIe=0;var JfJ=function(D,C){ZF.call(this,1,arguments);this.timer=C};
_.h(JfJ,ZF);var Hor=new ZHJ("aft-recorded",JfJ);var mUm=_.co.ytLoggingGelSequenceIdObj_||{};_.$h("ytLoggingGelSequenceIdObj_",mUm);var Ng=_.co.ytLoggingLatencyUsageStats_||{};_.$h("ytLoggingLatencyUsageStats_",Ng);var YL=function(){this.cleanupJob=0},tTm=function(){YL.instance||(YL.instance=new YL);
return YL.instance};
_.S=YL.prototype;_.S.baseline=function(D,C,X){yc(this,"baseline_"+D)||_.zu("latencyActionBaselined",{clientActionNonce:D},{timestamp:C,cttAuthInfo:X})};
_.S.tick=function(D,C,X,c){yc(this,"tick_"+D+"_"+C)||_.zu("latencyActionTicked",{tickName:D,clientActionNonce:C},{timestamp:X,cttAuthInfo:c})};
_.S.info=function(D,C,X){var c=Object.keys(D).join("");yc(this,"info_"+c+"_"+C)||(D=Object.assign({},D),D.clientActionNonce=C,_.zu("latencyActionInfo",D,{cttAuthInfo:X}))};
_.S.jspbInfo=function(D,C,X){for(var c="",W=0;W<yU(D).length;W++)yU(D)[W]!==void 0&&(c=W===0?c.concat(""+W):c.concat("_"+W));yc(this,"info_"+c+"_"+C)||(_.N3(D,2,C),C={cttAuthInfo:X},X=_.b("jspb_sparse_encoded_pivot")?new F3([{}]):new F3,_.sB(X,7,HeC,D),ezm("latencyActionInfo",X,C))};
_.S.span=function(D,C,X){var c=Object.keys(D).join("");yc(this,"span_"+c+"_"+C)||(D.clientActionNonce=C,_.zu("latencyActionSpan",D,{cttAuthInfo:X}))};
var yc=function(D,C){Ng[C]=Ng[C]||{count:0};var X=Ng[C];X.count++;X.time=(0,_.kh)();D.cleanupJob||(D.cleanupJob=_.Zo(_.qX,function(){var c=(0,_.kh)(),W;for(W in Ng)Ng[W]&&c-Ng[W].time>6E4&&delete Ng[W];D&&(D.cleanupJob=0)},5E3));
return X.count>5?(X.count===6&&Math.random()*1E5<1&&(X=new _.Zf("CSI data exceeded logging limit with key",C.split("_")),C.indexOf("plev")>=0||_.fQ(X)),!0):!1};var Hjc,J1M;Hjc=window;J1M=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.u5=Hjc.performance||Hjc.mozPerformance||Hjc.msPerformance||Hjc.webkitPerformance||new J1M;var TYW=!1,YMt=!1,zzW=(0,_.wo)(_.u5.clearResourceTimings||_.u5.webkitClearResourceTimings||_.u5.mozClearResourceTimings||_.u5.msClearResourceTimings||_.u5.oClearResourceTimings||_.e$,_.u5);var lyj=_.lq(function(D,C,X,c,W,p,g){if(!_.b("web_csi_action_sampling_enabled")||!_.vE(p).actionDisabled){var a=g==null?void 0:g.spanStatus;g=g==null?void 0:g.rootSpanNonce;var O=_.i5(p);if(O.gelSpans)O.gelSpans[D]=!0;else{var P={};O.gelSpans=(P[D]=!0,P)}TIe++;D={spanName:D,spanLengthUsec:String(Math.round(C*1E3)),spanNonce:TIe};g&&(D.rootSpanNonce=g);a&&(D.spanStatus=a);c&&(D.spanInfo=c);W&&(D.parentSpanNonce=W);X&&(D.spanStartTimeUsec=String(Math.round(X*1E3)));_.kC(p||"").span[String(D.spanName)]=
D;X=_.i5(p);X.gelSpans||(X.gelSpans={});_.t8(X.gelSpans,D);X=BYR(p);p=_.vE(p).cttAuthInfo;tTm().span(D,X,p);return D.spanNonce}}),zHc=window;
zHc.ytcsi&&(zHc.ytcsi.infoGel=_.hZ,zHc.ytcsi.tick=_.sp);var cFo=function(D){ZF.call(this,1,arguments);this.csn=D};
_.h(cFo,ZF);var J9J=new ZHJ("screen-created",cFo),uId=[],Xjt=kmF,Qdr=0,yP=new Map,oLm=new Map,WQn=new Map;var MiR=Symbol("Cf"),jy=new WeakMap;var nU=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},uO=function(){nU.instance||(nU.instance=new nU);
return nU.instance};
_.S=nU.prototype;_.S.setClient=function(D){this.client=D};
_.S.JSC$12890_newScreen=function(){this.clear();this.csn=_.LN()};
_.S.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.S.reportShown=function(D,C,X,c){var W=this.JSC$12890_getTrackingParams(D),p=D.visualElement?D.visualElement:W;C=this.shownElements.has(p);var g=this.visibleState.get(p);this.shownElements.add(p);this.visibleState.set(p,!0);D.impressionLog&&!C&&D.impressionLog();if(W||D.visualElement)if(X=jrg(this,D,X))if(p=Mwe(this,D),wX(this,D)||p){W=D.visualElement?D.visualElement:_.bO(W);var a=D.interactionLoggingClientData;p||C?wX(this,D)&4?g||AFo(this.client,X,W,a):wX(this,D)&1&&!C&&aCF(this.client,X,W,a,c):
aCF(this.client,X,W,a,c)}};
_.S.reportHidden=function(D,C,X,c){var W=this.JSC$12890_getTrackingParams(D),p=D.visualElement?D.visualElement:W;C=this.hiddenElements.has(p);var g=this.visibleState.get(p);this.hiddenElements.add(p);this.visibleState.set(p,!1);if(g===!1)return!0;if(!W&&!D.visualElement)return!1;X=jrg(this,D,X);if(!X||!wX(this,D)&&Mwe(this,D))return!1;W=D.visualElement?D.visualElement:_.bO(W);wX(this,D)&8?Ps3(this.client,X,W,void 0,void 0,c):wX(this,D)&2&&!C&&(D=this.client,c=YC({cttAuthInfo:mP(X)||void 0,automatedLogEventSource:c},
X),C={csn:X,ve:W.getAsJson(),eventType:2},X==="UNDEFINED_CSN"?we("visualElementHidden",c,C):D?HL("visualElementHidden",C,D,c):_.zu("visualElementHidden",C,c));return!0};
_.S.JSC$12890_getTrackingParams=function(D){var C=this.getData(D),X,c;if(_.b("il_use_view_model_logging_context")&&(C==null?0:(X=C.context)==null?0:(c=X.loggingContext)==null?0:c.loggingDirectives))return C.context.loggingContext.loggingDirectives.trackingParams||"";var W,p;if(C==null?0:(W=C.rendererContext)==null?0:(p=W.loggingContext)==null?0:p.loggingDirectives)return C.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(C==null?0:C.loggingDirectives)return C.loggingDirectives.trackingParams||
"";var g;return((g=D.veContainer)==null?0:g.trackingParams)?D.veContainer.trackingParams:(C==null?void 0:C.trackingParams)||""};
_.S.JSC$12890_elementShouldLogGesture=function(D,C){D=this.getData(D);return!!((Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.gestures&&D.loggingDirectives.gestures.types||""))||0)&C)};
_.S.JSC$12890_getNearestParentVe=function(D){var C=this.JSC$12890_getTrackingParams(D);return D.visualElement?D.visualElement:C?_.bO(C):D.parentElement?this.JSC$12890_getNearestParentVe(D.parentElement):null};
var jrg=function(D,C,X){var c=_.LN(X);return D.csn===null||c===D.csn||X?c:(D=new _.Zf("VisibilityLogger called before newScreen",{caller:C.tagName,previous_csn:D.csn,current_csn:c}),_.fQ(D),null)};
nU.prototype.getData=function(D){var C,X=D.data||((C=D.props)==null?void 0:C.data);if(!X||D.isWebComponentWrapper){var c;X=(c=jy.get(D))==null?void 0:c[MiR]}return X};
var Mwe=function(D,C){var X;return!((X=D.getData(C))==null||!X.loggingDirectives)},wX=function(D,C){D=D.getData(C);
return Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.visibility&&D.loggingDirectives.visibility.types||""))||1};var FI;FI=function(){};
_.Pc=function(){FI.instance||(FI.instance=new FI);return FI.instance};
FI.prototype.setClient=function(D){_.lq(uO().setClient).bind(uO())(D)};
_.qKd=function(){_.Pc();_.lq(uO().JSC$12890_newScreen).bind(uO())()};
FI.prototype.clear=function(){_.lq(uO().clear).bind(uO())()};
FI.prototype.reportShown=function(D,C,X,c){_.lq(uO().reportShown).bind(uO())(D,C,X,c)};
FI.prototype.reportHidden=function(D,C,X,c){return _.lq(uO().reportHidden).bind(uO())(D,C,X,c)};
var Zs5=function(D,C){return _.lq(uO().JSC$12890_getTrackingParams).bind(uO())(C)},qit=function(D,C){return _.lq(uO().JSC$12890_getNearestParentVe).bind(uO())(C)};var ZC,fDd;ZC=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};
_.iO=function(){ZC.instance||(ZC.instance=new ZC);return ZC.instance};
ZC.prototype.setClient=function(D){this.client=D};
fDd=function(D,C,X){X=X===void 0?{}:X;_.lq(function(){var c,W,p,g=((c=_.r(C==null?void 0:C.commandMetadata,_.ge))==null?void 0:c.rootVe)||((W=_.r(C==null?void 0:C.commandMetadata,erk))==null?void 0:(p=W.screenVisualElement)==null?void 0:p.uiType);if(g){c=_.r(C==null?void 0:C.commandMetadata,hSk);if(c==null?0:c.parentTrackingParams){var a=_.bO(c.parentTrackingParams);if(c.parentCsn)var O=c.parentCsn}else X.clickedVisualElement?a=X.clickedVisualElement:C.clickTrackingParams&&(a=_.bO(C.clickTrackingParams));
a:{c=_.r(C,_.TC);W=_.r(C,Wb3);if(c){if(W=$U3(c,"VIDEO")){c={token:W,videoId:c.videoId};break a}}else if(W&&(c=$U3(W,"PLAYLIST"))){c={token:c,playlistId:W.playlistId};break a}c=void 0}X=Object.assign({},{cttAuthInfo:c,parentCsn:O},X);if(_.b("expectation_logging")){var P;X.loggingExpectations=((P=_.r(C==null?void 0:C.commandMetadata,erk))==null?void 0:P.loggingExpectations)||void 0}_.Gm(D,g,a,X)}else _.fQ(new _.Zf("Error: Trying to create a new screen without a rootVeType",C))})()};
_.Gm=function(D,C,X,c){c=c===void 0?{}:c;_.lq(function(){Vw4.includes(C)||(_.fQ(new _.Zf("createClientScreen() called with a non-page VE",C)),C=83769);c.isHistoryNavigation||(D.forwardHistoryStack=[],D.backHistoryStack.push({rootVe:C,key:c.key||""}));D.graftQueue=[];D.stateChangedQueue=[];c.dataPromises?dW4(D,C,X,c):RHc(D,C,X,c)})()};
_.lDb=function(D,C,X){X=X===void 0?0:X;_.lq(function(){C.then(function(c){D.pendingScreenCreation.has(X)&&D.pendingScreenFn&&D.pendingScreenFn();var W=_.LN(X),p=_.xr(X);if(W&&p){var g={automatedLogEventSource:3},a;(c==null?0:(a=c.response)==null?0:a.trackingParams)&&nt(D.client,W,p,_.bO(c.response.trackingParams),!1,g);var O;(c==null?0:(O=c.playerResponse)==null?0:O.trackingParams)&&nt(D.client,W,p,_.bO(c.playerResponse.trackingParams),!1,g)}})})()};
ZC.prototype.graftServerVe=function(D,C,X){var c=this;return _.lq(function(){var W=_.bO(D);_.Vc(c,W,C,X);return W})()};
_.fvW=function(D,C,X,c){return _.b("enable_client_ve_spec")&&C.clientVeSpec?(C=_.Ia(C.clientVeSpec.uiType,void 0,C.clientVeSpec.elementIndex,C.clientVeSpec.clientYoutubeData,void 0,C),_.Vc(D,C,X,c)?C:null):C.trackingParams?D.graftServerVe(C.trackingParams,X,c):null};
_.vc=function(D,C,X,c){return _.lq(function(){if(!C.veType)return _.qN(new _.Zf("Error: Trying to graft a client VE without a veType.")),null;if(C.visibilityTypes){var W=C.visibilityTypes.reduce(function(p,g){return p|g});
W={visibility:{types:String(W)}}}W=_.Ia(C.veType,C.visualElement,C.elementIndex,C.clientYouTubeData,void 0,W);return _.Vc(D,W,X,c)?W:null})()};
_.Vc=function(D,C,X,c){c=c===void 0?0:c;return _.lq(function(){if(D.pendingScreenCreation.has(c))return D.graftQueue.push([C,X]),!0;var W=_.LN(c),p=X||_.xr(c);if(W&&p){if(_.b("combine_ve_grafts")){var g=D.cachedVisualElements.get(p.toString());g?g.push(C):(D.cachedRootVisualElements.set(p.toString(),p),D.cachedVisualElements.set(p.toString(),[C]));D.attachTimeout||(D.attachTimeout=_.Zo(_.qX,function(){Dck(D,W)},1200))}else nt(D.client,W,p,C);
return!0}return!1})()};
_.Tm=function(D,C,X){X=X===void 0?0:X;var c=D.recurringGrafts.get(X)||new Map;if(_.b("smarter_ve_dedupping"))for(var W=Array.from(c.keys()),p=0;p<W.length;p++){var g=void 0,a=void 0;var O=C;var P=W[p];P.isClientVe()&&O.isClientVe()?(g=O.getAsJson(),a=P.getAsJson(),O=g.veType!==a.veType||g.elementIndex!==a.elementIndex||g.dataElement!==a.dataElement||O.getLoggingDirectives()!==P.getLoggingDirectives()?!1:!0):O=P.veData.trackingParams!==void 0&&O.veData.trackingParams!==void 0?((a=O.veData)==null?void 0:
a.trackingParams)===((g=P.veData)==null?void 0:g.trackingParams):!1;if(O)return}else if(c.has(C))return;c.set(C,void 0);D.recurringGrafts.set(X,c);_.LN(X)==="UNDEFINED_CSN"||D.pendingScreenCreation.has(X)||_.Vc(D,C,void 0,X)};
_.Hj=function(D,C,X,c){c=_.LN(c===void 0?0:c);if(!c)return!1;vLr(D.client,c,C,X);return!0};
_.JF=function(D,C,X,c){if(!C)return!1;c=_.LN(c===void 0?0:c);if(!c)return!1;vLr(D.client,c,_.bO(C),X);return!0};
_.V6=function(D,C){var X=C.getScreenLayer&&C.getScreenLayer();if(C.visualElement)return _.Hj(D,C.visualElement,void 0,X);C=Zs5(_.Pc(),C);return _.JF(D,C,void 0,X)};
ZC.prototype.clickCommand=function(D,C,X){return _.JF(this,D.clickTrackingParams,C,X===void 0?0:X)};
ZC.prototype.stateChanged=function(D,C,X){this.visualElementStateChanged(_.bO(D),C,X===void 0?0:X)};
ZC.prototype.visualElementStateChanged=function(D,C,X){X=X===void 0?0:X;X===0&&this.pendingScreenCreation.has(X)?this.stateChangedQueue.push([D,C]):this.logStateChanged(D,C,X)};
ZC.prototype.logStateChanged=function(D,C,X){X=X===void 0?0:X;var c=_.LN(X);D=D||_.xr(X);return c&&D?(iUh(this.client,c,D,C),!0):!1};
var dW4=function(D,C,X,c){c=c===void 0?{}:c;D.pendingScreenCreation.add(c.layer||0);D.pendingScreenFn=function(){RHc(D,C,X,c);var g=_.xr(c.layer);if(g){for(var a=_.U(D.graftQueue),O=a.next();!O.done;O=a.next())O=O.value,_.Vc(D,O[0],O[1]||g,c.layer);g=_.U(D.stateChangedQueue);for(a=g.next();!a.done;a=g.next())a=a.value,D.logStateChanged(a[0],a[1])}};
X||_.LN(c.layer)||D.pendingScreenFn();if(c.dataPromises)for(var W=_.U(c.dataPromises),p=W.next();!p.done;p=W.next())_.lDb(D,p.value,c.layer);else _.MN(Error("Df"))},RHc=function(D,C,X,c){c=c===void 0?{}:c;
var W=void 0;c.layer||(c.layer=0);W=c.parentLayer!==void 0?c.parentLayer:c.layer;var p=_.LN(W);W=_.xr(W);var g=X||W,a;g&&(c.parentCsn!==void 0?a={clientScreenNonce:c.parentCsn,visualElement:g}:p&&p!=="UNDEFINED_CSN"&&(a={clientScreenNonce:p,visualElement:g}));var O,P=_.q6("EVENT_ID");p==="UNDEFINED_CSN"&&P&&(O={servletData:{serializedServletEventId:P}});_.b("combine_ve_grafts")&&p&&Dck(D,p);_.b("no_client_ve_attach_unless_shown")&&g&&p&&gLo(g,p);try{var k=_.pjo(D.client,C,a,c.csnToClone,c.cttAuthInfo,
O,c.implicitGestureType,void 0,c.loggingExpectations,c.automatedLogEventSource)}catch(B){_.dO(B,{rootVeType:C,rootVe:W,parentVisualElement:X,currentCsn:p,parentEl:a,csnToClone:c.csnToClone});_.MN(B);return}_.ec(k,C,c.layer,c.cttAuthInfo);p&&p!=="UNDEFINED_CSN"&&W&&!i0J(p)&&Ps3(D.client,p,W,!0);D.backHistoryStack[D.backHistoryStack.length-1]&&!D.backHistoryStack[D.backHistoryStack.length-1].csn&&(D.backHistoryStack[D.backHistoryStack.length-1].csn=k||"");_.hZ({clientScreenNonce:k});_.qKd();var u=_.xr(c.layer);
p&&p!=="UNDEFINED_CSN"&&u&&_.b("music_web_mark_root_visible")&&_.Go(k,u);D.pendingScreenCreation.delete(c.layer||0);D.pendingScreenFn=void 0;var Q;(Q=D.recurringGrafts.get(c.layer))==null||Q.forEach(function(B,K){B?_.Vc(D,K,B,c.layer):u&&_.Vc(D,K,u,c.layer)});
Cnf(D)},Cnf=function(D){for(var C=0;C<D.afterNewScreenOneOffJobs.length;C++){var X=D.afterNewScreenOneOffJobs[C];
try{X()}catch(c){_.MN(c)}}for(C=D.afterNewScreenOneOffJobs.length=0;C<D.afterNewScreenRecurringJobs.length;C++){X=D.afterNewScreenRecurringJobs[C];try{X()}catch(c){_.MN(c)}}},Dck=function(D,C){if(C===void 0)for(var X=$Dn(),c=0;c<X.length;c++)X[c]!==void 0&&Dck(D,X[c]);
else D.cachedVisualElements.forEach(function(W,p){(p=D.cachedRootVisualElements.get(p))&&Sq3(D.client,C,p,W)}),D.cachedVisualElements.clear(),D.cachedRootVisualElements.clear(),D.attachTimeout=void 0};var zm=function(D){D=D===void 0?{layer:0}:D;this.xA=!1;this.createScreenConfig=D;D={};this.bvL=(D.response=!1,D.playerResponse=!1,D)};
_.h(zm,Eq);zm.prototype.validate=function(D){return!(!D.data||!D.data.response&&!D.data.playerResponse)};
zm.prototype.handle=function(D){var C=_.iO(),X=this.createScreenConfig.layer;D.data.response&&D.data.response.trackingParams&&!this.bvL.response&&(C.graftServerVe(D.data.response.trackingParams,void 0,X),this.bvL.response=!0);D.data.playerResponse&&D.data.playerResponse.trackingParams&&!this.bvL.playerResponse&&(C.graftServerVe(D.data.playerResponse.trackingParams,void 0,X),this.bvL.playerResponse=!0)};var jm=function(){this.vI=_.zr();this.r7=[];this.vUm=0};
jm.prototype.processChunk=function(D){if(D){for(var C=_.U(this.r7),X=C.next();!X.done;X=C.next())X=X.value,X.validate(D)&&(X.handle(D),X.xA=!0);_.sp("np"+this.vUm);this.vUm++}};var hrj=function(D,C,X){X=X===void 0?{}:X;this.name=D;this.id=MC.nextSpanId++;this.sessionId=MC.sessionId;this.attributes=C;this.status="SPAN_STATUS_UNSET";var c;this.startTime=(c=X.startTime)!=null?c:(0,_.kh)();this.isActiveSpan=X.active;if(D=MC.stack[MC.stack.length-1])this.parentId=D.id,D.children||(D.children=[]),D.children.push(this);D=_.U(MC.processors);for(C=D.next();!C.done;C=D.next()){C=C.value;try{var W=c=void 0;(W=(c=C).onSpanStart)==null||W.call(c,this)}catch(p){_.fQ(p)}}X.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",X.endTime))};
hrj.prototype.end=function(D,C){D=D===void 0?"SPAN_STATUS_OK":D;this.endTime=C=C===void 0?(0,_.kh)():C;this.duration=this.endTime-this.startTime;this.status=D;this.isActiveSpan!==!1&&(MC.stack[MC.stack.length-1]===this?MC.stack.pop():_.fQ(Error("Ef`"+String(this.name))));D=_.U(MC.processors);for(C=D.next();!C.done;C=D.next()){C=C.value;try{var X=void 0,c=void 0;(c=(X=C).onSpanEnd)==null||c.call(X,this)}catch(W){_.fQ(W)}}};
hrj.prototype.addAttributes=function(D){Object.assign(this.attributes,D)};
var xgo={end:function(){},
addAttributes:function(){}},MC={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},KQj={rootSpan:function(){return MC.stack[0]}};var de={};var osW=function(D){this.observers=[];this.value=D};
_.S=osW.prototype;_.S.subscribe=function(D){var C=this;if(D.idx!=null)throw Error("Gf");D.idx=this.observers.length;this.observers.push(D);try{D(this.value)}catch(X){}return function(){var X=C.observers[C.observers.length-1];C.observers[D.idx]=X;X.idx=D.idx;C.observers.pop()}};
_.S.update=function(D){this.value=D(this.value);this.notify()};
_.S.mutate=function(D){D(this.value);this.notify()};
_.S.set=function(D){this.value=D;this.notify()};
_.S.notify=function(){for(var D=_.U(this.observers),C=D.next();!C.done;C=D.next()){C=C.value;try{C(this.value)}catch(X){}}};var iko,XhJ,WSq;_.I3=function(D,C,X,c,W,p,g,a){g=g===void 0?[]:g;a=a===void 0?[]:a;this.buildCommandPayload=D;this.navigate=C;this.handleServiceRequest=X;this.sendAction=c;this.JSC$12939_screenManager=W;this.commandResolverMap=p;this.autoLogResolverAllowlist=g;this.metaCommandClickLoggingDenylist=a;this.pendingCommands=new Set;this.isTracingEnabled=!1;XhJ(this)};
iko=function(D,C,X){var c=[_.MBd,gyk],W=cV5,p=oDJ,g=_.iO(),a=coM;X=X===void 0?[]:X;c=c===void 0?[]:c;_.I3.instance=new _.I3(D,C,W,p,g,a,X,c)};
XhJ=function(D){if(!D.isTracingEnabled&&qC("command")){var C=D.resolveCommand;D.resolveCommand=function(X,c){a:{for(W in X)if(Object.prototype.hasOwnProperty.call(X,W)){var W={commandType:W};break a}W={}}return ft("command",W,C.bind(this,X,c))};
D.isTracingEnabled=!0}};
WSq=function(D,C,X){if(!D.commandResolverMap)return!1;var c=NXd(C,D.commandResolverMap);return c?((D.autoLogResolverAllowlist.some(function(W){return!!_.r(C,W)})||(X==null?0:X.forceClickLogging))&&o6d(D,C,X),c instanceof Promise?c.then(function(W){W.resolve(C,X)}):c.resolve(C,X),!0):!1};
_.I3.prototype.resolveCommand=function(D,C){var X=this,c=ph5(D);if(WSq(this,D,C))return!0;if(c)return S$e(this,D,C);if(!this.buildCommandPayload)return ern(D,"Unhandled command by buildCommandPayload"),!1;var W=this.buildCommandPayload(D,C);if(C==null?0:C.commandController)W.commandController=C.commandController;if(W.type===0){if(!this.navigate)return ELd(D,"navigate"),!1;if(!Ucc(W.command))return ern(D,"Page requests need to specify a url"),!1;_.b("logging_avoid_blocking_during_navigation")&&_.s_j().transition("application_navigating");
D=this.navigate(W)||[];Lxf(D).then(function(){X.pendingCommands.delete(W.command)});
return!0}if(W.type===1){if(!this.handleServiceRequest)return ELd(D,"handleServiceRequest"),!1;(C==null?0:C.forceClickLogging)&&o6d(this,W.command,C);D=this.handleServiceRequest(W);Lxf(D).then(function(){X.pendingCommands.delete(W.command)});
return!0}if(W.type===2){if(!this.sendAction)return ELd(D,"sendAction"),!1;o6d(this,W.command,C);this.sendAction(W);return!0}return!1};
var o6d=function(D,C,X){if((X==null||!X.disableClickTracking)&&D.JSC$12939_screenManager)if(C.clickTrackingParams&&_.b("log_click_with_layer_from_element_in_command_handler")){var c;X=X==null?void 0:(c=X.form)==null?void 0:c.element;D.JSC$12939_screenManager.clickCommand(C,null,X&&X.getScreenLayer&&X.getScreenLayer())}else C.clickTrackingParams?D.JSC$12939_screenManager.clickCommand(C):!_.b("disable_clicked_visual_element_in_command_handler")&&(X==null?0:X.clickedVisualElement)&&_.Hj(D.JSC$12939_screenManager,
X.clickedVisualElement)},ph5=function(D){var C=!!_.r(D,_.pt),X;
D=((X=_.r(D,_.Up))==null?void 0:X.signal)==="CLIENT_SIGNAL";return C||D},S$e=function(D,C,X){var c=_.r(C,_.pt);
if(c)var W=(c==null?void 0:c.commands)||[];else{var p;if(((p=_.r(C,_.Up))==null?void 0:p.signal)==="CLIENT_SIGNAL"){var g;W=((g=_.r(C,_.Up))==null?void 0:g.actions)||[]}}if(W){(c=g6C(D,W))&&o6d(D,C,X);C=_.U(W);for(W=C.next();!W.done;W=C.next()){W=W.value;try{var a=Object.assign({},X);c&&(a.disableClickTracking=!0);D.resolveCommand(W,a)}catch(O){O instanceof Error&&_.MN(O)}}return!0}ern(C,"Could not handle the meta command");return!1},g6C=function(D,C){return C.every(function(X){return D.metaCommandClickLoggingDenylist.some(function(c){return!!_.r(X,
c)})})},Ucc=function(D){var C;
return!((C=_.r(D==null?void 0:D.commandMetadata,_.ge))==null||!C.url)};var Mg=function(){Eq.apply(this,arguments)};
_.h(Mg,Eq);Mg.prototype.validate=function(D){var C,X;return!this.xA&&!!((C=D.data.response)==null?0:(X=C.onResponseReceivedEndpoints)==null?0:X.length)};
Mg.prototype.handle=function(D){var C=_.I3.instance;D=_.U(D.data.response.onResponseReceivedEndpoints);for(var X=D.next();!X.done;X=D.next())C.resolveCommand(X.value)};var a8g,I85,Odk;
a8g=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.WE();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.qg=function(){I85||(I85=new a8g);return I85};
Odk=function(){var D=_.qg();D.miniplayerButtonActivation=!1;D.userActivation=!1;D.playlistWatchPageActivation=!1;D.productDetailsPageActivation=!1;D.miniAppPageActivation=!1;D.playablesDestPageActivation=!1;D.lockupActivation=!1;D.showMiniplayerCommandActivation=!1;D.playlistSuggestionsShelfActivation=!1;D.mediaSessionPipActivation=!1;D.watchPipActivation=!1;D.watchWhileActivation=!1;D.shortsPipActivation=!1;D.companionCanvasActivation=!1};
_.Ao5=function(){var D=_.qg(),C=D.mediaSessionPipActivation,X=D.watchPipActivation,c=D.watchWhileActivation,W=D.playlistWatchPageActivation,p=D.lockupActivation,g=D.showMiniplayerCommandActivation,a=D.navigatingAwayFromWatchDeletedVideo,O=D.shortsPipActivation,P=D.playlistSuggestionsShelfActivation,k=D.productDetailsPageActivation,u=D.miniAppPageActivation,Q=D.playablesDestPageActivation,B=D.companionCanvasActivation;return!D.miniplayerButtonActivation&&!W&&!P&&!k&&!u&&!Q&&!p&&!g&&!C&&!X&&!c&&!O&&
!B||a};var fBZ;_.fU=_.l5("FEwhat_to_watch","/",3854);_.dKJ=_.l5("FEdownloads","/feed/downloads",42352);fBZ=_.l5("FEmusic_offline","browse/FEmusic_offline",42352);var qh=function(D,C){C=C===void 0?[]:C;var X=X===void 0?[]:X;C=qfr.apply(null,[fV3.apply(null,_.VB(C))].concat(_.VB(X)));this.store=D$5(D,void 0,C)};
qh.prototype.getState=function(){return this.store.getState()};
qh.prototype.dispatch=function(D){return this.store.dispatch(D)};
qh.prototype.subscribe=function(D){return this.store.subscribe(D)};
qh.prototype.replaceReducer=function(D){return this.store.replaceReducer(D)};
qh.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.dX=function(D,C,X){var c=C(D.getState());return D.subscribe(function(){var W=C(D.getState());if(W!==c){var p=c;c=W;X(W,p)}})};var KHr;_.bK=function(D,C,X){return _.oI({type:"REPLACE_ENTITY",payload:{entityPayload:X,entityType:D,key:C}})};
KHr=function(D){return _.oI({type:"REPLACE_ENTITIES",payload:D})};
_.EW=function(D,C,X,c){return _.oI({type:"UPDATE_ENTITY",payload:{entityPayload:X,entityType:D,key:C,mergeOption:c}})};var jdt=function(D){var C=this;D=D===void 0?[]:D;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;D.forEach(function(X){C.append(X)})};
_.S=jdt.prototype;_.S.getLength=function(){return this.totalLength};
_.S.append=function(D){var C=this.arrays.length===0?!1:(C=this.arrays[this.arrays.length-1])&&C.buffer===D.buffer&&C.byteOffset+C.length===D.byteOffset;C?(C=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(C.buffer,C.byteOffset,C.length+D.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(D);this.totalLength+=D.length};
_.S.split=function(D){for(var C=new jdt,X=new jdt,c=_.U(this.arrays),W=c.next();!W.done;W=c.next())W=W.value,D>=W.length?(C.append(W),D-=W.length):D?(C.append(new Uint8Array(W.buffer,W.byteOffset,D)),X.append(new Uint8Array(W.buffer,W.byteOffset+D,W.length-D)),D=0):X.append(W);return{headView:C,tailView:X}};
_.S.isFocused=function(D){return D>=this.arrayPos&&D<this.arrayPos+this.arrays[this.arrayIdx].length};
_.S.focus=function(D){if(!this.isFocused(D))for(D<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=D&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Pnk=function(D,C){D.focus(C);return D.arrays[D.arrayIdx][C-D.arrayPos]};(function(){var D=function(c){return new Uint8Array(c)},C=function(c){for(var W=new Uint8Array(c.length),p=0;p<c.length;p++)W[p]=c[p];
return W},X=new Uint8Array([1]);
return X.length===1&&X[0]===1?D:C})();
var GmF=Array(1024),ZU5=window.TextDecoder?new TextDecoder:void 0,TX3=window.TextEncoder?new TextEncoder:void 0;var zrd=function(D){this.arrayView=D;this.pos=0;this.pendingTagAndType=-1},W_=function(D){var C=Pnk(D.arrayView,D.pos);
++D.pos;if(C<128)return C;for(var X=C&127,c=1;C>=128;)C=Pnk(D.arrayView,D.pos),++D.pos,c*=128,X+=(C&127)*c;return X},Mmm=function(D,C){var X=D.pendingTagAndType;
for(D.pendingTagAndType=-1;D.pos+1<=D.arrayView.totalLength;){X<0&&(X=W_(D));var c=X>>3,W=X&7;if(c===C)return!0;if(c>C){D.pendingTagAndType=X;break}X=-1;switch(W){case 0:W_(D);break;case 1:D.pos+=8;break;case 2:c=W_(D);D.pos+=c;break;case 5:D.pos+=4}}return!1};var fCm=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=JFo(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},U1=function(D,C){C=D.pos+C;
if(!(D.buf.length>=C)){for(var X=D.buf.length*2;X<C;)X*=2;D.buf=JFo(X,D.wasm,D.buf.subarray(0,D.pos));D.view=new DataView(D.buf.buffer,D.buf.byteOffset,D.buf.byteLength)}},SV=function(D,C){if(C>268435455){U1(D,4);
for(var X=C&1073741823,c=0;c<4;c++)D.view.setUint8(D.pos,X&127|128),X>>=7,D.pos+=1;C=Math.floor(C/268435456)}for(U1(D,4);C>127;)D.view.setUint8(D.pos,C&127|128),C>>=7,D.pos+=1;D.view.setUint8(D.pos,C);D.pos+=1};for(var dgm={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},qqo={},$cb=_.U(Object.entries(dgm)),v6J=$cb.next();!v6J.done;v6J=$cb.next()){var id5=_.U(v6J.value),kac=id5.next().value,uBc=id5.next().value,Qfk=kac,B4C=uBc;B4C&&(qqo[B4C]=Qfk)};var lCZ=function(D,C){D=D===void 0?{}:D;switch(C.type){case "ENTITY_LOADED":return C.payload.reduce(function(c,W){var p,g=(p=W.options)==null?void 0:p.persistenceOption;if(g&&g!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&g!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return c;if(!W.entityKey)return _.MN(Error("If")),c;if(W.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!W.payload)return W=new _.Zf("REPLACE entity mutation is missing a payload",{entityKey:W.entityKey}),_.MN(W),c;var a=(0,_.ZI.getAnyKey)(W.payload);
return CPm(c,a,W.entityKey,W.payload[a])}if(W.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{W=W.entityKey;try{var O=_.pe(W).entityType;a=CPm(c,O,W);break a}catch(u){if(u instanceof Error){W=new _.Zf("Failed to deserialize entity key",{entityKey:W,originalMessage:u.message});_.MN(W);a=c;break a}throw u;}a=void 0}return a}if(W.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!W.payload)return W=new _.Zf("UPDATE entity mutation is missing a payload",{entityKey:W.entityKey}),_.MN(W),c;a=(0,_.ZI.getAnyKey)(W.payload);
var P,k;return XVn(c,a,W.entityKey,W.payload[a],(P=W.fieldMask)==null?void 0:(k=P.mergeOptions)==null?void 0:k.repeatedFieldsMergeOption)}return c},D);
case "REPLACE_ENTITY":var X=C.payload;return CPm(D,X.entityType,X.key,X.entityPayload);case "REPLACE_ENTITIES":return Object.keys(C.payload).reduce(function(c,W){var p=C.payload[W];return Object.keys(p).reduce(function(g,a){return CPm(g,W,a,p[a])},c)},D);
case "UPDATE_ENTITY":return X=C.payload,XVn(D,X.entityType,X.key,X.entityPayload,X.mergeOption);default:return D}};var chW;var bd5=!1,Rd,ls,Dp,C_,Xj,rox=function(D){_.nF.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!bd5){var C,X=new Uint8Array(256),c=new Uint8Array(256);var W=1;for(C=0;C<256;C++)X[W]=C,c[C]=W,W^=W<<1^(W>>7&&283);Rd=new Uint8Array(256);ls=II(256);Dp=II(256);C_=II(256);Xj=II(256);for(var p=0;p<256;p++){W=p?c[255^X[p]]:0;W^=W<<1^W<<2^W<<3^W<<4;W=W&255^W>>>8^99;Rd[p]=W;C=W<<1^(W>>7&&283);var g=C^W;ls[p]=C<<24|W<<16|W<<8|g;Dp[p]=g<<24|ls[p]>>>8;C_[p]=W<<24|Dp[p]>>>
8;Xj[p]=W<<24|C_[p]>>>8}bd5=!0}W=II(44);for(X=0;X<4;X++)W[X]=D[4*X]<<24|D[4*X+1]<<16|D[4*X+2]<<8|D[4*X+3];for(c=1;X<44;X++)D=W[X-1],X%4||(D=(Rd[D>>16&255]^c)<<24|Rd[D>>8&255]<<16|Rd[D&255]<<8|Rd[D>>>24],c=c<<1^(c>>7&&283)),W[X]=W[X-4]^D;this.key=W};
_.h(rox,_.nF);
rox.prototype.encrypt=function(D){var C=D.length;D=new Uint8Array(D.buffer.slice(D.byteOffset,D.byteOffset+C));for(var X=this.cipherBlock,c=0;c<C&&this.blockOffset<16;)D[c++]^=X[this.blockOffset++];for(var W=C-(C-c)%16;c<W;)KSk(this),D[c++]^=X[0],D[c++]^=X[1],D[c++]^=X[2],D[c++]^=X[3],D[c++]^=X[4],D[c++]^=X[5],D[c++]^=X[6],D[c++]^=X[7],D[c++]^=X[8],D[c++]^=X[9],D[c++]^=X[10],D[c++]^=X[11],D[c++]^=X[12],D[c++]^=X[13],D[c++]^=X[14],D[c++]^=X[15];if(c<C)for(KSk(this),this.blockOffset=0;c<C;)D[c++]^=
X[this.blockOffset++];return D};
var KSk=function(D){for(var C=D.key,X=D.counter[0]^C[0],c=D.counter[1]^C[1],W=D.counter[2]^C[2],p=D.counter[3]^C[3],g=3;g>=0&&!(D.counter[g]=-~D.counter[g]);g--);for(var a,O,P=4;P<40;)g=ls[X>>>24]^Dp[c>>16&255]^C_[W>>8&255]^Xj[p&255]^C[P++],a=ls[c>>>24]^Dp[W>>16&255]^C_[p>>8&255]^Xj[X&255]^C[P++],O=ls[W>>>24]^Dp[p>>16&255]^C_[X>>8&255]^Xj[c&255]^C[P++],p=ls[p>>>24]^Dp[X>>16&255]^C_[c>>8&255]^Xj[W&255]^C[P++],X=g,c=a,W=O;D=D.cipherBlock;g=C[40];D[0]=Rd[X>>>24]^g>>>24;D[1]=Rd[c>>16&255]^g>>16&255;D[2]=
Rd[W>>8&255]^g>>8&255;D[3]=Rd[p&255]^g&255;g=C[41];D[4]=Rd[c>>>24]^g>>>24;D[5]=Rd[W>>16&255]^g>>16&255;D[6]=Rd[p>>8&255]^g>>8&255;D[7]=Rd[X&255]^g&255;g=C[42];D[8]=Rd[W>>>24]^g>>>24;D[9]=Rd[p>>16&255]^g>>16&255;D[10]=Rd[X>>8&255]^g>>8&255;D[11]=Rd[c&255]^g&255;g=C[43];D[12]=Rd[p>>>24]^g>>>24;D[13]=Rd[X>>16&255]^g>>16&255;D[14]=Rd[c>>8&255]^g>>8&255;D[15]=Rd[W&255]^g&255};var hF5=!1;(function(){var D=function(c){return new Uint8Array(c)},C=function(c){for(var W=new Uint8Array(c.length),p=0;p<c.length;p++)W[p]=c[p];
return W},X=new Uint8Array([1]);
return X.length===1&&X[0]===1?D:C})();
var cV;var sfg=function(D){a:{if(!hF5&&!AC){if(cV){var C=cV;break a}cV=(C=window.crypto)==null?void 0:C.subtle;var X,c,W;if(((X=cV)==null?0:X.importKey)&&((c=cV)==null?0:c.sign)&&((W=cV)==null?0:W.encrypt)){C=cV;break a}cV=void 0}C=void 0}C&&(this.nativeEncryptor=new xcN(D,C));this.encryptorPolyfill=new LSk(D)};
sfg.prototype.encrypt=function(D,C){var X=this,c;return _.I(function(W){switch(W.nextAddress){case 1:if(!X.nativeEncryptor){W.jumpTo(2);break}_.KK(W,3);return W.yield(X.nativeEncryptor.encrypt(D,C),5);case 5:return W.return(W.yieldResult);case 3:c=_.Eu(W),_.fQ(c),hF5=!0,X.nativeEncryptor=void 0;case 2:return W.return(X.encryptorPolyfill.encrypt(D,C))}})};
sfg.prototype.decrypt=function(D,C){return this.encrypt(D,C)};
var xcN=function(D,C){this.JSC$13012_aesKey=D;this.subtleCrypto=C};
xcN.prototype.encrypt=function(D,C){var X=this,c;return _.I(function(W){if(W.nextAddress==1)return _.KK(W,2),W.yield(mcx(X,D,C),4);if(W.nextAddress!=2)return W.return(W.yieldResult);c=_.Eu(W);_.fQ(c);hF5=!0;throw c;})};
var mcx=function(D,C,X){var c,W;return _.I(function(p){switch(p.nextAddress){case 1:if(D.cryptoKey){p.jumpTo(2);break}return p.yield(D.subtleCrypto.importKey("raw",D.JSC$13012_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.cryptoKey=p.yieldResult;case 2:return c={name:"AES-CTR",counter:X,length:128},p.yield(D.subtleCrypto.encrypt(c,D.cryptoKey,C),4);case 4:return W=p.yieldResult,p.return(new Uint8Array(W))}})},LSk=function(D){this.JSC$13015_aesKey=D};
LSk.prototype.encrypt=function(D,C){this.encryptor||(this.encryptor=new rox(this.JSC$13015_aesKey));for(var X=this.encryptor,c=0;c<4;c++)X.counter[c]=C[c*4]<<24|C[c*4+1]<<16|C[c*4+2]<<8|C[c*4+3];X.blockOffset=16;return this.encryptor.encrypt(D)};
LSk.prototype.decrypt=function(D,C){return this.encrypt(D,C)};var eFC={},pV3=il("yt-idb-pref-storage",{objectStores:(eFC.prefs={addedAtVersion:1},eFC),shared:!1,upgrade:function(D,C){C(1)&&cL(X3(D,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.oc=function(D){this.token=D};
_.oc.getInstance=function(){return _.I(function(D){return D.return(new Promise(function(C){_.vz().then(function(X){X?(_.oc.instance||(_.oc.instance=new _.oc(X)),C(_.oc.instance)):C(void 0)})}))})};
_.oc.prototype.get=function(D){var C=this,X,c,W;return _.I(function(p){if(p.nextAddress==1)return p.yield(SSd(C.token),2);if(p.nextAddress!=3)return X=p.yieldResult,p.yield(X.get("prefs",D),3);c=p.yieldResult;if(!c)return p.return();W=(0,_.kh)();return c.expirationTimestampMs<=W?p.return():p.return(c.value)})};
_.oc.prototype.set=function(D,C,X){X=X===void 0?31536E3:X;var c=this,W,p,g;return _.I(function(a){if(a.nextAddress==1)return W=(0,_.kh)(),p={key:D,value:C,expirationTimestampMs:W+X*1E3},a.yield(SSd(c.token),2);g=a.yieldResult;return a.yield(g.put("prefs",p),0)})};
_.oc.prototype.remove=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(SSd(C.token),2);X=c.yieldResult;return c.yield(X.delete("prefs",D),0)})};var WV={},E6c=(WV.INVALID_ENCODER_VERSION="Invalid encoder version",WV.KEY_CREATION_FAILED="Failed to create encoder key",WV.UNKNOWN_DECODE_ERROR="Failed to decode PES data",WV.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",WV.WRONG_DATA_TYPE="Encoder cannot process the data type",WV),O1=function(D,C){C=C===void 0?{}:C;_.Zf.call(this,E6c[D],Object.assign({},{name:"PESEncoderError",type:D},C));this.type=D;this.level="WARNING";Object.setPrototypeOf(this,O1.prototype)};
_.h(O1,_.Zf);var p_=function(){};
p_.prototype.encode=function(D,C){try{return this.encodeImpl(D,C)}catch(X){Ipm(X,g3Z)}};
p_.prototype.decode=function(D,C){try{return this.decodeImpl(D,C)}catch(X){Ipm(X,apt)}};
var tlk=function(D,C,X){var c;return _.I(function(W){if(W.nextAddress==1)return _.KK(W,2),W.yield(D.decodeAsyncImpl(C,X),4);if(W.nextAddress!=2)return W.return(W.yieldResult);c=_.Eu(W);Ipm(c,apt);_.t_(W)})};
p_.prototype.decodeAsyncImpl=function(D,C){return Promise.resolve(this.decodeImpl(D,C))};var SJ=function(D,C){this.aesEncryptor=D;this.aesEncryptorAsync=C};
_.h(SJ,p_);SJ.prototype.encodeImpl=function(D,C){C=O_5(C);D=(new TextEncoder).encode(JSON.stringify(D));return this.aesEncryptor.encrypt(D,C)};
SJ.prototype.decodeImpl=function(D,C){if(!(D instanceof Uint8Array))throw Uk5(1);var X=new TextDecoder;C=O_5(C);D=this.aesEncryptor.decrypt(D,C);return JSON.parse(X.decode(D))};
SJ.prototype.decodeAsyncImpl=function(D,C){var X=this,c,W,p;return _.I(function(g){if(g.nextAddress==1){if(!(D instanceof Uint8Array))throw Uk5(1);c=new TextDecoder;W=O_5(C);return g.yield(X.aesEncryptorAsync.decrypt(D,W),2)}p=g.yieldResult;return g.return(JSON.parse(c.decode(p)))})};var AhF={accountLinkStatusEntity:ucq,booleanEntity:zXe,buttonEntity:Zu5,captionTrack:hfq,channelHandle:QR4,chipEntity:PCg,commerceAcquisitionClientPayloadEntity:$V4,commerceCartListEntity:v9g,compositeSourceEntity:G05,multiviewStagingEntity:VJf,contextNoteFeedEntityPayload:NWe,contextNoteUserRatingEntityPayload:Yyf,continuationTokenEntity:o3N,downloadQualityPickerEntity:jdb,downloadsPageRefreshTokenEntity:qqM,downloadsPageViewConfigurationEntity:Ah5,downloadStatusEntity:Mmq,dismissState:$xe,sfvAudioItemCurrentlyPlayingEntity:WO4,
emojiFountainDataEntity:nc5,emojiCustomizationSetEntity:ybd,fakeChannel:qvq,fakePlaylist:fKf,fakePlaylistEntryCollection:dDN,fakeVideo:lKx,fakeVideoDescription:DUc,featuredProductsEntity:NRk,flowStateEntity:$U4,iconBadgeEntity:i9b,interstitialInteractionStateEntity:yf5,likeButtonAnimationEntity:PPk,liveChatPollStateEntity:HoJ,dataFreshnessEntity:Nvk,liveViewerLeaderboardChatEntryPointStateEntity:Z4b,liveViewerLeaderboardPointsEntity:Gl5,liveReactionsDataEntity:w95,logoEntity:NYg,macroMarkerEntity:$kN,
mainDownloadsLibraryEntity:fCd,mainDownloadsListEntity:dgd,mainPlaylistDownloadStateEntity:lCC,mainPlaylistEntity:WHJ,mainPlaylistVideoEntity:pV4,mainVideoDownloadStateEntity:DkM,mainVideoEntity:apb,markersEngagementPanelSyncEntity:v3c,markersVisibilityOverrideEntity:i_N,musicAlbumReleaseDetail:MJf,musicAlbumReleaseDownloadMetadataEntity:TR5,musicAlbumRelease:jcc,musicAlbumReleaseUserDetail:qSd,musicArtistDetail:dk5,musicArtist:fpc,musicArtistUserDetail:Rbb,musicDownloadsLibraryEntity:H_C,musicLibraryEdit:lpg,
musicLibraryStatusEntity:DLN,musicPlaylist:CYc,musicPlaylistDownloadMetadataEntity:Jhx,musicShare:cyM,musicTrackDetail:WVx,musicTrackDownloadMetadataEntity:zbx,musicTrack:oZe,musicTrackUserDetail:pme,offlineOrchestrationActionWrapperEntity:xL5,offlineVideoPolicy:LVe,offlineVideoStreams:ssq,offlineabilityEntity:CPd,orchestrationWebSamplingEntity:XVk,pageHeaderEntity:hN5,pdpStateEntity:kOf,pinnedProductEntity:YSN,playbackData:mLg,playerStateEntity:k05,quantityIncrementerEntity:uZN,refresh:efc,saveToPlaylistListEntity:xMC,
selectedChipIndexEntityPayload:ujb,settingEntity:Muq,stringEntity:jCe,suggestedFeedbackChipStateEntity:QcN,transfer:EZ5,trendingOfferEntity:yhc,videoDownloadContextEntity:tOM,videoOverviewAsyncDataEntity:Tzx,videoPlaybackPositionEntity:Tvb,votingEntity:mx5,ytMainChannelEntity:Ipq,youchatPendingResponseEntity:BRf,ytMainDownloadedVideoEntity:chc,ytMainVideoEntity:O_x};var N4e,yo5,i8,BRR,b_m,FSg,GaC,Zdx,whC;N4e=function(D,C){this.JSC$13034_wrapped=D;this.JSC$13034_encoderRegistry=C;this.changedKeys={}};
yo5=function(D,C){return Y$q(D.JSC$13034_encoderRegistry,C.version).decode(C.data,C.key)};
_.n6e=function(D,C,X){return D.JSC$13034_wrapped.objectStore("EntityStore").get(C).then(function(c){if(c){if(X&&c.entityType!==X)throw Error("Jf");return yo5(D,c)}})};
i8=function(D,C,X){return X?(X=X.map(function(c){return _.n6e(D,c,C)}),Xs.all(X)):D.JSC$13034_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(C)).then(function(c){return c.map(function(W){return yo5(D,W)})})};
_.QcJ=function(D,C,X){var c=RrW(C),W=Y$q(D.JSC$13034_encoderRegistry,1),p=Object.assign({},C);return D.JSC$13034_wrapped.objectStore("EntityStore").get(c).then(function(g){if(g){if(g.entityType!==X)throw Error("Jf");p.entityMetadata||(g=yo5(D,g),p.entityMetadata=g.entityMetadata)}}).then(function(){var g={key:c,
entityType:X,data:W.encode(p,c),version:1};return Xs.all([D.JSC$13034_wrapped.objectStore("EntityStore").put(g),whC(D,p,X)])}).then(function(){FSg(D,c,X);
return c})};
BRR=function(D,C){var X=_.pe(C).entityType;return Xs.all([D.JSC$13034_wrapped.objectStore("EntityStore").delete(C),Zdx(D,C)]).then(function(){FSg(D,C,X)})};
b_m=function(D,C,X,c){var W=Y$q(D.JSC$13034_encoderRegistry,1);return _.n6e(D,C,c).then(function(p){if(p){p=FQJ(p,X);var g={key:C,entityType:c,data:W.encode(p,C),version:1};return Xs.all([D.JSC$13034_wrapped.objectStore("EntityStore").put(g),whC(D,p,c)])}}).then(function(){FSg(D,C,c);
return C})};
FSg=function(D,C,X){var c=D.changedKeys[X];c||(c=new Set,D.changedKeys[X]=c);c.add(C)};
GaC=function(D,C,X){var c=RrW(C);X=PPn(X);if(!X)return Xs.resolve([]);X=new X(C);D=D.JSC$13034_wrapped.objectStore("EntityAssociationStore");C=[];X=_.U(X.getAssociations());for(var W=X.next();!W.done;W=X.next())C.push(D.put({parentEntityKey:c,childEntityKey:W.value}));return Xs.all(C).then(function(p){return p.map(function(g){return g[1]})})};
Zdx=function(D,C){return D.JSC$13034_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(C))};
whC=function(D,C,X){var c=RrW(C);return Zdx(D,c).then(function(){return GaC(D,C,X)})};var VlC=function(){};
_.h(VlC,p_);VlC.prototype.encodeImpl=function(D){return D};
VlC.prototype.decodeImpl=function(D){if(D instanceof Uint8Array)throw Uk5(0);return D};var i_J=function(){this.cacheMap={};this.cacheMap[0]=new VlC;if(!_.b("aes_pes_encoder_killswitch")){var D=this.cacheMap;try{var C=_.wT();var X=O_5(C);var c=new SJ(new LSk(X),new sfg(X))}catch(W){throw D=W instanceof Error?new O1("KEY_CREATION_FAILED",{originalMessage:W.message}):new O1("KEY_CREATION_FAILED"),_.MN(D),D;}D[1]=c}},Y$q=function(D,C){C=C===void 0?0:C;
D=D.cacheMap[C];if(!D)throw C=new O1("INVALID_ENCODER_VERSION",{encoderVersion:C}),_.MN(C),C;return D};var P_=function(D,C){_.nF.call(this);this.token=D;this.JSC$13048_encoderRegistry=C;this.observers=[];D=new _.co.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.wT());D.onmessage=this.JSC$13048_handleMessage.bind(this);this.channel=D};
_.h(P_,_.nF);_.v_=function(D,C,X){var c,W,p,g;return _.I(function(a){if(a.nextAddress==1)return a.yield(WHr(D.token),2);if(a.nextAddress!=3)return c=a.yieldResult,a.yield(_.ap(c,["EntityStore","EntityAssociationStore"],C,function(O){W=new N4e(O,D.JSC$13048_encoderRegistry);return X(W)}),3);
p=a.yieldResult;W&&(g=W.changedKeys,Object.keys(g).length>0&&(D.channel.postMessage(g),T4g(D,g)));return a.return(p)})};
P_.prototype.observe=function(D){var C=this;this.observers.push(D);return function(){var X=C.observers.indexOf(D);X>=0&&C.observers.splice(X,1)}};
var ia5=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(_.v_(D,{mode:"readonly",enableRetries:!0},function(c){return c.JSC$13034_wrapped.objectStore("EntityStore").getAll()}),2);
C=X.yieldResult;return X.return(Promise.all(C.filter(function(c){return!!c}).map(function(c){var W,p;
return _.I(function(g){if(g.nextAddress==1){W=c.key;p=c.entityType;var a=g.yield;var O=tlk(Y$q(D.JSC$13048_encoderRegistry,c.version),c.data,c.key);return a.call(g,O,2)}return g.return({key:W,entityType:p,data:g.yieldResult})})})))})};
P_.prototype.JSC$13048_handleMessage=function(D){T4g(this,D.data)};
var T4g=function(D,C){D=_.U(D.observers);for(var X=D.next();!X.done;X=D.next())X=X.value,X(C)};
P_.prototype.disposeInternal=function(){this.channel.close()};
var $kJ;var US,Jok,VJR;US={};_.Hdb=(US.mainVideoEntity="mainVideoEntityActionMetadata",US.mainPlaylistEntity="mainPlaylistEntityActionMetadata",US.musicTrack="musicTrackEntityActionMetadata",US.musicPlaylist="musicPlaylistEntityActionMetadata",US);Jok=new _.P6("DOWNLOADS_ENTITY_TYPE_MAP");_.hX=_.gJ("","downloadsPageViewConfigurationEntity");VJR=_.gJ("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Bph=_.gJ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.gJ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.gJ("SMART_DOWNLOADS_ENABLED","settingEntity");_.gJ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var LH5=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var YSJ=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var zFc={isLeaderTab:!0};var gZ5={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var gR=window,Z7=gR.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",UMm=gR.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||G1,A$R=gR.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||PC,Uof=gR.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||SWe,Wdc=gR.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||uv4,IcW=gR.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||hdk;var Swd;JX({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 xMZ=P9Z(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(D){return D}}}),t2d=P9Z(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(D){return D}}}),kYF=new Map;var s15=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],r$t;var jfd=function(D){return _.oI({type:"SET_EPHEMERAL_ACTION",payload:D})};var Mle={ephemeralAction:null};var q$g=Ya({ephemeralAction:function(D,C){D=D===void 0?Mle.ephemeralAction:D;switch(C.type){case "SET_EPHEMERAL_ACTION":return C.payload;default:return D}}});var f8q=function(D){return _.oI({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:D})};var dc5={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var RF4={sharedUi:dc5,a11y:Mle,entities:{}},Dxr={sharedUi:function(D,C){D=D===void 0?dc5:D;switch(C.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},D,{animatedThumbnailEnabled:C.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},D,{inlinePreviewEnabled:C.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:C.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},D,{currentPageSubType:C.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},D,{persistentPanelVisible:C.payload});default:return D}},
a11y:q$g,entities:Dko};var YwR={playlistId:"",inviteLinkURL:""};var l85={continuationCommand:{}};var zSj=Ya({continuationCommand:function(D,C){D=D===void 0?l85.continuationCommand:D;switch(C.type){case "SET_CONTINUATION_COMMAND":return C.payload.continuationCommand;default:return D}}});var nih={currentFormId:"",commandsMap:{}};var j1W=Ya({isLeaderTab:function(D,C){D=D===void 0?zFc.isLeaderTab:D;switch(C.type){case "SET_IS_LEADER_TAB":var X,c;return(c=C==null?void 0:(X=C.payload)==null?void 0:X.isLeaderTab)!=null?c:D;default:return D}}});var C$d;_.DBf=function(D){return _.oI({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:D}})};
C$d=function(D){return _.oI({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:D}})};var ac={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var lYd=Ya({isDesktopSmallWidth:function(D,C){D=D===void 0?ac.isDesktopSmallWidth:D;switch(C.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return C.payload.isDesktopSmallWidth;default:return D}},
isShortsActive:function(D,C){D=D===void 0?ac.isShortsActive:D;switch(C.type){case "SET_IS_SHORTS_ACTIVE":return C.payload.isShortsActive;default:return D}},
isWatchWhileMode:function(D,C){D=D===void 0?ac.isWatchWhileMode:D;switch(C.type){case "SET_IS_WATCH_WHILE_MODE":return C.payload.isWatchWhileMode;default:return D}},
playerState:function(D,C){D=D===void 0?ac.playerState:D;switch(C.type){case "SET_PLAYER_STATE":return C.payload.playerState;default:return D}},
isFullscreen:function(D,C){D=D===void 0?ac.isFullscreen:D;switch(C.type){case "SET_IS_FULLSCREEN":return C.payload.isFullscreen;default:return D}},
isSmallScreenSqueezeback:function(D,C){D=D===void 0?ac.isSmallScreenSqueezeback:D;switch(C.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return C.payload.isSmallScreenSqueezeback;default:return D}},
isShortsPipActive:function(D,C){D=D===void 0?ac.isShortsPipActive:D;switch(C.type){case "SET_IS_SHORTS_PIP_ACTIVE":return C.payload.isShortsPipActive;default:return D}},
isPlaybackStarted:function(D,C){D=D===void 0?ac.isPlaybackStarted:D;switch(C.type){case "SET_IS_PLAYBACK_STARTED":return C.payload.isPlaybackStarted;default:return D}}});var FOh={currentMode:"canvas-hidden"};var X9Z=function(){return function(D){return function(C){var X=D(C);_.DS(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[C],!0);return X}}};var X3J,nV5;X3J=new _.gL;_.pT=new _.P6("WATCH_PLAYER_PROMISE_TOKEN");_.cNN=new _.gL;_.oBx=new _.P6("SHORTS_PLAYER_PROMISE_TOKEN");nV5=new _.P6("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var cbo=function(){return function(D){return function(C){C.type==="ENTITY_LOADED"&&_.iX().resolve(_.pT).then(function(X){var c;(c=X.dispatchReduxAction)==null||c.call(X,C)});
return D(C)}}};var WAN={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Mum=Ya({additionalContext:function(D,C){D=D===void 0?WAN.additionalContext:D;switch(C.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var X;return(X=C.payload)!=null?X:"";default:return D}},
impersonatedChannelUrl:function(D,C){D=D===void 0?WAN.impersonatedChannelUrl:D;switch(C.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var X;return(X=C.payload)!=null?X:"";default:return D}},
selectedVideoIds:function(D,C){D=D===void 0?WAN.selectedVideoIds:D;switch(C.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var X={};return Object.assign({},D,(X[C.payload]=!0,X));case "VIDEO_UNSELECTED":return C=C.payload,D=Object.assign({},D),delete D[C],D;default:return D}}});var p34={parentClickTrackingParams:""};var qwh=Ya({parentClickTrackingParams:function(D,C){D=D===void 0?p34.parentClickTrackingParams:D;switch(C.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return C.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return D}}});var Sxf=function(D){return _.oI({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:D})},UBN=function(D){return _.oI({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:D})};var gBx={stepStates:{}};var fYd=Ya({stepStates:function(D,C){D=D===void 0?gBx.stepStates:D;switch(C.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var X=D,c=C.payload,W,p,g;D={};C={selectionStates:Object.assign({},(g=(W=X[c.stepId])==null?void 0:W.selectionStates)!=null?g:{},(D[c.token]={isSelected:c.isSelected},D)),userQuery:(p=X[c.stepId])==null?void 0:p.userQuery};W={};return Object.assign({},X,(W[c.stepId]=C,W));case "TALK_TO_RECS_UPDATE_USER_QUERY":return W=D,p=C.payload,g=
{selectionStates:Object.assign({},(c=(X=W[p.stepId])==null?void 0:X.selectionStates)!=null?c:{}),userQuery:{userQuery:p.userQuery,token:p.userQueryToken}},X={},Object.assign({},W,(X[p.stepId]=g,X));default:return D}}});var aOk,IOd,ANq;aOk=function(D){return _.oI({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:D})};
IOd=function(D){return _.oI({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:D})};
_.mw=function(D){return _.oI({type:"SET_CURRENT_PAGE_TYPE",payload:D})};
_.OEx=function(D){return _.oI({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:D})};
ANq=function(D){return _.oI({type:"SET_CHIP_BAR_IS_STICKY",payload:D})};var GYn={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"};_.P$q=function(D){return _.oI({type:"SET_PLAYER_STATE",payload:{playerState:D}})};var Ic={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:Tym(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var dMh=Ya({isTheaterMode:function(D,C){D=D===void 0?Tym():D;switch(C.type){case "SET_IS_THEATER_MODE":return C.payload.isTheaterMode;default:return D}},
isWatchActive:function(D,C){D=D===void 0?Ic.isWatchActive:D;switch(C.type){case "SET_IS_WATCH_ACTIVE":return C.payload.isWatchActive;default:return D}},
isLearningJourneyActive:function(D,C){D=D===void 0?Ic.isLearningJourneyActive:D;switch(C.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return C.payload.isLearningJourneyActive;default:return D}},
isWatchFullscreen:function(D,C){D=D===void 0?Ic.isWatchFullscreen:D;switch(C.type){case "SET_IS_WATCH_FULLSCREEN":return C.payload.isWatchFullscreen;default:return D}},
isWatchNarrowWidth:function(D,C){D=D===void 0?Ic.isWatchNarrowWidth:D;switch(C.type){case "SET_IS_WATCH_NARROW_WIDTH":return C.payload.isWatchNarrowWidth;default:return D}},
isSwatcherooActive:function(D,C){D=D===void 0?Ic.isSwatcherooActive:D;switch(C.type){case "SET_IS_SWATCHEROO_ACTIVE":return C.payload.isSwatcherooActive;default:return D}},
isWatchRetroMode:function(D,C){D=D===void 0?Ic.isWatchRetroMode:D;switch(C.type){case "SET_IS_WATCH_RETRO_MODE":return C.payload.isWatchRetroMode;default:return D}},
isLiveChatCollapsed:function(D,C){D=D===void 0?Ic.isLiveChatCollapsed:D;switch(C.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return C.payload.isLiveChatCollapsed;default:return D}},
openEngagementPanels:function(D,C){D=D===void 0?Ic.openEngagementPanels:D;var X=[].concat(_.VB(D));switch(C.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return X.push(C.payload.panelToAdd),X;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return X.splice(X.indexOf(C.payload.panelToRemove),1),X;default:return D}},
playerState:function(D,C){D=D===void 0?Ic.playerState:D;switch(C.type){case "SET_PLAYER_STATE":return C.payload.playerState;default:return D}},
watchScrollTop:function(D,C){D=D===void 0?Ic.watchScrollTop:D;switch(C.type){case "SET_WATCH_SCROLL_TOP":return C.payload.watchScrollTop;default:return D}},
watchWindowSize:function(D,C){D=D===void 0?Ic.watchWindowSize:D;switch(C.type){case "SET_WATCH_WINDOW_SIZE":return C.payload.watchWindowSize;default:return D}}});var $Bc={surveyFeedbackData:{feedbackTokens:[]}};var RSm=Ya({surveyFeedbackData:function(D,C){D=D===void 0?$Bc.surveyFeedbackData:D;switch(C.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return C.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},D,C.payload);default:return D}}});var HzW={};var WyF=void 0;_.b("web_enable_redux_store_on_demand")||(WyF=ocZ());var vBg=function(D,C,X){var c=this;this.listId=D;this.JSC$13192_updateCallback=C;this.isOfflineVideoCallback=X;_.fe().subscribe(function(){c.handleUpdate()})};
vBg.prototype.getPlaylistData=function(){var D=_.fe().getState().entities;if(this.listId&&this.listId!=="PPSV"){var C=Rbt(D,this.listId,!0),X=_.gJ(this.listId,"mainPlaylistEntity"),c,W;D=D==null?void 0:(c=D.mainPlaylistEntity)==null?void 0:(W=c[X])==null?void 0:W.title;return p9t(C,D,this.listId)}C=_.yhW(LVd(D));D=_.yhW(_.xP(D));D=C.concat(D);return p9t(D)};
vBg.prototype.getPlaylistId=function(){return this.listId};
vBg.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13192_updateCallback(this.listId,this.getPlaylistData(),{})};var OS=function(D,C,X,c){c=c===void 0?[]:c;this.JSC$13195_playlistNetworkManager=D;this.listId=C;this.JSC$13195_updateCallback=X;this.videoIds=c;this.pendingUpdates=[];this.currentIndex=0};
OS.prototype.JSC$13195_setCurrentIndex=function(D){this.currentIndex=D};
OS.prototype.setListId=function(D){this.listId=D};
var iEq=function(D,C){D.currentCreateRequest&&D.currentCreateRequest.cancel(C);D.currentUpdateRequest&&D.currentUpdateRequest.cancel(C);D.currentRefreshRequest&&D.currentRefreshRequest.cancel(C)};
OS.prototype.delete=function(){iEq(this,"PROXY DELETED")};
OS.prototype.addVideos=function(D,C,X){var c=this;X!==void 0?this.videoIds.splice.apply(this.videoIds,[X,0].concat(_.VB(D))):this.videoIds.push.apply(this.videoIds,_.VB(D));this.listId||this.currentCreateRequest?(D.forEach(function(W,p){W={addedVideoId:W,action:"ACTION_ADD_VIDEO"};X&&(W.addedVideoPosition=X+p);c.pendingUpdates.push(W)}),Ah(this)):kfd(this,C.onCreateListCommand)};
var uRx=function(D,C,X,c,W){Fr3(D.videoIds,C,X);C>D.currentIndex&&X<=D.currentIndex?D.JSC$13195_setCurrentIndex(D.currentIndex+1):C===D.currentIndex?D.JSC$13195_setCurrentIndex(X):C<D.currentIndex&&X>=D.currentIndex&&D.JSC$13195_setCurrentIndex(D.currentIndex-1);D.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:c,movedSetVideoIdPredecessor:W});Ah(D)},kfd=function(D,C){iEq(D,"OBSOLETE");
D.currentCreateRequest=Q6J(D.JSC$13195_playlistNetworkManager,C,D.videoIds);_.ZZ(D.currentCreateRequest,function(){D.currentCreateRequest=void 0}).then(function(X){D.setListId(X.playlistId);
D.pendingUpdates.length>0?Ah(D):BMM(D)})},Ah=function(D){if(D.pendingUpdates.length!==0&&(D.currentRefreshRequest&&D.currentRefreshRequest.cancel("OBSOLETE"),!D.currentUpdateRequest&&!D.currentCreateRequest)){var C=D.pendingUpdates.splice(0,D.pendingUpdates.length);
D.currentUpdateRequest=D.JSC$13195_playlistNetworkManager.updatePlaylist(D.listId,C);_.ZZ(D.currentUpdateRequest,function(){D.currentUpdateRequest=void 0}).then(function(){D.pendingUpdates.length>0?Ah(D):BMM(D)}).thenCatch(function(){D.pendingUpdates.unshift.apply(D.pendingUpdates,_.VB(C))})}},BMM=function(D){D.currentRefreshRequest=_.bEk(D.JSC$13195_playlistNetworkManager,D.listId,D.currentIndex,D.videoIds[D.currentIndex]);
_.ZZ(D.currentRefreshRequest,function(){D.currentRefreshRequest=void 0}).then(function(C){D.JSC$13195_updateCallback(C.playlistId,C.playlistPanelRenderer,C.autoplayRenderer)})};
OS.prototype.size=function(){return this.videoIds.length};var rNb=function(D,C,X,c){c=c===void 0?[]:c;OS.call(this,D,C,X,c);this.JSC$13195_playlistNetworkManager=D;this.listId=C;this.JSC$13195_updateCallback=X;this.videoIds=c};
_.h(rNb,OS);_.PV=function(D,C,X,c,W,p,g){W=W===void 0?[]:W;g=g===void 0?k1:g;OS.call(this,D,C,X,W);this.JSC$13195_playlistNetworkManager=D;this.listId=C;this.JSC$13195_updateCallback=X;this.onAuthChange=c;this.videoIds=W;this.storage=p;this.cookieReader=g;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.pI(_.qX,this.checkLoggedInStatusChange.bind(this),1E3)};
_.h(_.PV,OS);_.S=_.PV.prototype;_.S.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.pI(_.qX,this.checkLoggedInStatusChange.bind(this),1E3)};
_.S.JSC$13195_setCurrentIndex=function(D){OS.prototype.JSC$13195_setCurrentIndex.call(this,D);this.store()};
_.S.delete=function(){_.qX.cancelJob(this.queueSapisIdJob);OS.prototype.delete.call(this)};
_.S.setListId=function(D){OS.prototype.setListId.call(this,D);this.store()};
_.S.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var KAf=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],hwd=["playerResponse","videoDetails"],xBe=["response","currentVideoEndpoint","watchEndpoint","videoId"],LAM=["response","currentVideoEndpoint","watchEndpoint","playlistId"],s6g=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],mBN=["response","contents","twoColumnWatchNextResults","playlist","playlist"],ew5=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
EBq=["response","contents","twoColumnWatchNextResults"];var $3={},IQn=($3.WEB_UNPLUGGED="^unplugged/",$3.WEB_UNPLUGGED_ONBOARDING="^unplugged/",$3.WEB_UNPLUGGED_OPS="^unplugged/",$3.WEB_UNPLUGGED_PUBLIC="^unplugged/",$3.WEB_CREATOR="^creator/",$3.WEB_KIDS="^kids/",$3.WEB_EXPERIMENTS="^experiments/",$3.WEB_MUSIC="^music/",$3.WEB_REMIX="^music/",$3.WEB_MUSIC_EMBEDDED_PLAYER="^music/",$3.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",$3);var aXm,Q6J;aXm=function(D,C){this.networkManager=D;this.innertubeTransportService=C};
Q6J=function(D,C,X){if(!_.r(C,_.vj))return _.x7(Error("Nf"));_.r(C,_.vj).videoIds=X;X={create_playlist_title:_.I7("QUEUE",void 0,"Queue")};return gch(_.Jl(D.innertubeTransportService,C,X),SAn)};
_.bEk=function(D,C,X,c){C={videoId:c,playlistId:C,playlistIndex:X};X=_.dJ(srg);return gch(_.vV(D.innertubeTransportService,C,X),aQr)};
aXm.prototype.updatePlaylist=function(D,C){return gch(_.Jl(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:D,actions:C}}),UxF)};var t3q=function(D){this.storage=D},NMC;
t3q.prototype.store=function(D,C){C=C===void 0?0:C;if(this.storage&&D.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",D),this.storage.set("TLPQindex",String(C)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(X){}};
t3q.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
t3q.prototype.getPlaylistId=function(){if(!this.storage)return null;var D=null;try{D=this.storage.get("TLPQplaylist")}catch(C){}return D};var $xd=["navigationEndpoint","watchEndpoint","videoId"],PCj=["nextButtonVideo","watchEndpoint","videoId"];_.Qt=new _.P6("NETWORK_TOKEN");_.lu=new _.P6("PAGE_TOKEN");_.iP=new _.P6("PLAYLIST_TOKEN");var Yxx;Yxx=new _.P6("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Bl=new _.P6("INNERTUBE_TRANSPORT_TOKEN");var yNC,k3,w3f,FAd,GfC,V35;yNC=new Set(["ci","cr","carml"]);k3=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13242_parkedJobs=new Map;this.parkedProcessors=new Map};
_.uP=function(){k3.instance||(k3.instance=new k3);return k3.instance};
k3.prototype.onAny=function(D){return _.nBq(this,D,2)};
k3.prototype.parkOrScheduleJob=function(D,C,X,c,W){_.Q4(this,X)?_.s3().addJob(D,C,c):(W&&(D=w3f(D),FAd(this,D,C,X,W)),W=this.JSC$13242_parkedJobs.get(X),W||(this.JSC$13242_parkedJobs.set(X,[]),W=this.JSC$13242_parkedJobs.get(X)),W.push({job:D,priority:C,delay:c}))};
k3.prototype.addListener=function(D,C,X){X&&(C=w3f(C),FAd(this,C,0,D,X));X=this.parkedProcessors.get(D);X||(this.parkedProcessors.set(D,[]),X=this.parkedProcessors.get(D));X.push(C)};
k3.prototype.processSignal=function(D){if(!_.Q4(this,D)){this.inProgressSignals.add(D);var C=this.JSC$13242_parkedJobs.get(D);if(C){C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,_.s3().addJob(X.job,X.priority,X.delay);this.JSC$13242_parkedJobs.delete(D)}if(C=this.parkedProcessors.get(D)){C=_.U(C);for(X=C.next();!X.done;X=C.next())X=X.value,X();this.parkedProcessors.delete(D)}this.signals.push(D);this.inProgressSignals.delete(D)}};
_.Q4=function(D,C){return yNC.has(C)||_.dq("IS_HOMEPAGE_COLD")||_.dq("IS_RESULTS_PAGE_COLD")||_.dq("IS_WATCH_PAGE_COLD")?D.signals.indexOf(C)>=0:!0};
w3f=function(D){var C=!1;return function(){C||(C=!0,D())}};
FAd=function(D,C,X,c,W){if(ZEk.has(c))_.s3().addJob(C,X,W);else{var p=D.compoundSignals.get(c);p&&_.s3().addJob(function(){_.Q4(D,c)||(p.isTimeoutConditionSatisfied?_.s3().addJob(C,X):p.timeoutConditionObservers.push(function(){_.s3().addJob(C,X)}))},X,W)}};
_.nBq=function(D,C,X){if(C.length>1){var c=[],W=Object.create(null);C=_.U(C);for(var p=C.next();!p.done;p=C.next())p=p.value,W[p]||(c.push(p),W[p]=!0);C=c}if(C.length===1)return C[0];p=C;c="";W=X===2?"|":"&";p.sort();p=_.U(p);for(var g=p.next();!g.done;g=p.next())c+=g.value+W;if(!D.compoundSignals.get(c)){W=0;p=[];g=_.U(C);for(var a=g.next();!a.done;a=g.next())a=a.value,W++,_.Q4(D,a)||p.push(a);(X=X===2)&&W>p.length||!X&&!p.length?D.signals.push(c):GfC(D,c,X,C,p)}return c};
GfC=function(D,C,X,c,W){var p=W.length,g=function(){X||--p===0?D.processSignal(C):V35(D,C)};
W=_.U(W);for(var a=W.next();!a.done;a=W.next())D.addListener(a.value,g);D.compoundSignals.set(C,{signals:c,isOnAny:X,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});V35(D,C)};
V35=function(D,C){if(!_.Q4(D,C)){var X=D.compoundSignals.get(C);if(X&&!X.isTimeoutConditionSatisfied){for(var c=!1,W=0,p=0,g=_.U(X.signals),a=g.next();!a.done;a=g.next()){var O=a.value;a=!_.Q4(D,O);ZEk.has(O)?c=!0:(O=D.compoundSignals.get(O))?a&&!O.isTimeoutConditionSatisfied&&(p++,X.isInitialized||O.timeoutConditionObservers.push(function(){V35(D,C)})):a&&W++}X.isInitialized=!0;
X.isOnAny?c&&(X.isTimeoutConditionSatisfied=!0):W===0&&p===0&&(X.isTimeoutConditionSatisfied=!0);if(X.isTimeoutConditionSatisfied)for(X=_.U(X.timeoutConditionObservers),c=X.next();!c.done;c=X.next())c=c.value,c()}}};
k3.prototype.processSignal=k3.prototype.processSignal;k3.prototype.parkOrScheduleJob=k3.prototype.parkOrScheduleJob;k3.prototype.onAny=k3.prototype.onAny;_.$h("ytsignals.getInstance",_.uP);k3.prototype.onAny=k3.prototype.onAny;k3.prototype.parkOrScheduleJob=k3.prototype.parkOrScheduleJob;k3.prototype.processSignal=k3.prototype.processSignal;var ZEk=new Set(["eop","eocs","dl","pcl"]);_.wB=new _.P6("MINIPLAYER_SERVICE");var BV,TMq,HE5;BV=function(D,C,X){var c=_.Wf.getInstance();if(!NMC){var W=new zkZ;var p=void 0,g=_.q6("ID_TOKEN");g&&W.isAvailable()&&(p=new HK(W,"yt-queue"+g));NMC=new t3q(p)}W=NMC;p=_.uP();this.JSC$13249_actionRouter=c;this.JSC$13249_pageManager=D;this.playlistManager=C;this.JSC$13249_playlistNetworkManager=X;this.storage=W;this.signals=p;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.bP=function(){if(!TMq){var D=_.iX(),C=D.resolve(_.vK(_.lu)),X=D.resolve(_.vK(_.Qt)),c=D.resolve(_.vK(_.iP));D=D.resolve(_.Bl);TMq=new BV(C,c,new aXm(X,D))}return TMq};
HE5=function(D,C,X){if(X){var c;if(((c=D.responsePlaylistData)==null?void 0:c.playlistId)!==X)return}D.responsePlaylistData&&(X=qAh(C,D.responsePlaylistData),D.responsePlaylistData=(0,_.ZI.unsafeClone)(D.responsePlaylistData),dxR(D.responsePlaylistData,X));X=D.temporaryItems.findIndex(function(W){return W.videoId===C});
X>-1&&D.temporaryItems.splice(X,1);_.rR(D,_.K_(D,D.response?D.response.autoplayRenderer:void 0))};
_.JNb=function(D,C){if(D.responsePlaylistData){var X=fQd(C,D.responsePlaylistData);dxR(D.responsePlaylistData,X);if(D.queueProxy){var c=D.queueProxy;X<0||(c.videoIds.splice(X,1),X<c.currentIndex&&c.JSC$13195_setCurrentIndex(c.currentIndex-1),c.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:C}),Ah(c))}}_.rR(D,_.K_(D,D.response?D.response.autoplayRenderer:void 0))};
BV.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.rR(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
BV.prototype.setPlaylistData=function(D,C,X){this.temporaryItems=[];this.listId=D;this.responsePlaylistData=C;_.rR(this,_.K_(this,X))};
var zw4=function(D){return(D==null?0:D.playlistId)?D.playlistId:"PPSV"},j6b=function(D){return D&&D.playlistId?D.playlistId==="PPSV"?!0:fpW(_.fe().getState().entities,D.playlistId):!1};
BV.prototype.isPlayingOfflineVideo=function(){return this.response?j6b(this.response):!1};
BV.prototype.closeMiniplayer=function(D){var C=this.queueProxy&&this.queueProxy.size()<=1,X=_.iX().resolve(_.wB);if(!this.queueProxy||C)this.queueProxy&&this.clearQueue(),X.close(!0);else{X.pipController.getWindow()&&window.focus();C=this.responsePlaylistData;var c=this.temporaryItems.length+(C&&C.contents?C.contents.length:0);C=_.I7("QUEUE_CLEARED_UNPLURALIZED")||_.Op("QUEUE_CLEARED",c);C=_.l8(C);X=_.I7("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");c=_.I7("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Op("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",c);var W=_.I7("MINIPLAYER_CLOSE",void 0,"Close"),p=_.I7("CANCEL",void 0,"Cancel");_.fX(this.JSC$13249_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.jV(X),dialogMessages:[_.jV(c)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jV(W),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
C]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.jV(p)}}}}}}],D)}};
_.K_=function(D,C){var X={},c=D.response;X.autoplayRenderer=C;if(!D.responsePlaylistData&&!D.temporaryItems.length)return!c||!c.hasRelatedVideoData&&_.b("kevlar_prefetch_data_augments_network_data")||(X.playerData={rvs:c.relatedVideoArgs,endScreenRenderer:c.endScreenRenderer}),X;X.playerData={};if(D.index===void 0)return _.MN(Error("Pf")),X;X.panel=D.responsePlaylistData?(0,_.ZI.unsafeClone)(D.responsePlaylistData):{titleText:_.jV(_.I7("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
C=X.panel;if(C.contents)for(var W=_.U(D.temporaryItems),p=W.next();!p.done;p=W.next())C.contents.push({playlistPanelVideoRenderer:p.value});D.queueProxy&&c&&c.playingVideo&&c.playingVideoId&&!Mvr(c.playingVideoId,X.panel)&&(C=c.playingVideo,W=X.panel,p=D.index,W.contents&&W.contents.splice(p===void 0?0:p,0,{playlistPanelVideoRenderer:C}));c&&c.playingVideoId&&(C=D.index,W=X.panel,C=!W.contents||C>=W.contents.length?void 0:W.contents[C].playlistPanelVideoRenderer,C&&C.videoId===c.playingVideoId||(C=
qAh(c.playingVideoId,X.panel),D.index=C!==-1?C:D.index?D.index-1:0));C=jLF(D.index+1,X.panel);W=void 0;D.index>0&&(W=jLF(D.index-1,X.panel));if(W||C)X.autoplayRenderer=vcr(C,W,X.autoplayRenderer);!C&&(c==null?0:c.relatedVideoArgs)&&(X.playerData.rvs=c.relatedVideoArgs);c=c?c.playlistIndexOffset:0;D.queueProxy?DlZ(X.panel,D.index,c,kcd,!0,!0,!0):DlZ(X.panel,D.index,c);X.playerData.playlistPanelRenderer=X.panel;return X};
BV.prototype.openToast=function(D){_.iX().resolve(_.wB).openToast(D,_.I7("ADDED_TO_QUEUE",void 0,"Added to queue"))};
BV.prototype.isMiniplayerActive=function(){return _.iX().resolve(_.wB).isMiniplayerActive()};
_.rR=function(D,C){D.playlistManager.setAutoplayRenderer(C.autoplayRenderer||null);D.playlistManager.setPlaylistData(C.panel||null);C.playerData&&D.playlistManager.setPlayerPlaybackControlData(C.playerData)};var XOJ="#";var M3b={},qxe={},fOg={},dBe={},Rwf={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:(M3b.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",M3b),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:(qxe.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",qxe),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:(fOg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",fOg),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:(dBe.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",dBe),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 Fmr=[{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:Rwf},{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:Rwf}}];var s4h;_.U2=[[["b3NhNmkxeGxraW5kI3J2c20=","dGVzZDFqdmFsdWUjeDJkaWRh"],"aHU1cGJyQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjYzR5bzFu"]];
s4h=[[["dHFwcmltYXJ5I2tnM3BxcTZ3ZGs=",null,null],[null,["Y29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2loaXdsMmNnOGNoeXRkLXR3by0=","c2NvcGUjOXBzbXRzbG14bWkwc3R5bGUt"],null],["YWQtYWQjY2x0Y2s2aDltY2VpbWFzdGhl",["cTI5dXBzYXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjazhia3I="],null],[null,["cHJreTU1NHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjbmp6Nmc=","c2NvcGUja2VmbHBwNTdvcHM3c3R5bGUt"],null],[null,["c3ViYnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjcWd0eHp0M3M=","c2NvcGUjYTJ4cTY0MTl5M3Nkc3R5bGUt"],null],[null,["emNzY3U1azVxeXRkLWFkLXNsb3QtcmVuZGVyZXIjd3Jr"],
null]],[["ZXItYWRzI2IxdmxtMWpsbGw2bnBsYXk=",null,null]]];_.S_=["cyMyOHc0cmtxNzdjYzhnbG9iYWxDYWxsYmFjaw==","Nm5zdXhya2x4b25BYm5vcm1hbGl0eURldGVjdGVkI3J0","b25BZFNraXAjb3h3NmQ0eHg0ZWxu","OHp0ZXF0Zml0ZXJhd19wbGF5ZXJfcmVzcG9uc2UjOWs=","bDdoYmFkU2xvdHMjZm52eWhnbQ=="];_.hh="cyMyOHc0cmtxNzdjYzhnbG9iYWxDYWxsYmFjaw== Nm5zdXhya2x4b25BYm5vcm1hbGl0eURldGVjdGVkI3J0 b25BZFNraXAjb3h3NmQ0eHg0ZWxu OHp0ZXF0Zml0ZXJhd19wbGF5ZXJfcmVzcG9uc2UjOWs= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3Mjbnl5YzhvN28wM2w1d2ViX3BsYQ== YWJfc2FfZWYjZjVnY3l2M2NtaXBk bDdoYmFkU2xvdHMjZm52eWhnbQ==".split(" ");var x3;x3=function(D,C,X){this.ycE=D;this.fVD=C;this.pYl=X};
_.dlo=[new x3("b.f_",!1,0),new x3("j.s_",!1,2),new x3("r.s_",!1,4),new x3("e.h_",!1,6),new x3("i.s_",!0,8),new x3("s.t_",!1,10),new x3("p.h_",!1,12),new x3("s.i_",!1,14),new x3("f.i_",!1,16),new x3("a.b_",!1,18),new x3("a.o_",!1),new x3("g.o_",!1,22),new x3("p.i_",!1,24),new x3("p.m_",!1),new x3("n.k_",!0,20),new x3("i.f_",!1),new x3("a.s_",!0),new x3("m.c_",!1),new x3("n.h_",!1,26),new x3("o.p_",!1),new x3("m.p_",!0,28),new x3("o.a_",!1),new x3("d.p_",!1),new x3("e.i_",!1)].reduce(function(D,C){D[C.ycE]=
C;return D},{});var lO4=function(){};
lO4.prototype.flush=function(D,C){D=D===void 0?[]:D;C=C===void 0?!1:C;if(_.b("enable_client_streamz_web")){D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=iib(X.value),this.rootSpec&&_.Lf(X,2,this.rootSpec),X={serializedIncrementBatch:_.tP(X.JSC$9772_serializeBinary())},_.zu("streamzIncremented",X,{sendIsolatedPayload:C})}};
var S_o=function(){};
_.h(S_o,lO4);var D2M=function(D){var C=new aHC;var X=new Sz4;X=_.N3(X,1,"botguard");D=_.N3(X,2,D);this.rootSpec=_.sB(C,1,IHc,D)};
_.h(D2M,lO4);var oE,CMb=new Map;var t0r,gdh,kpR,O6t,$lF,xl3,Y_5,Kmn;t0r=2;gdh=2;kpR=2;O6t=2;$lF=2;xl3=2;Y_5=2;Kmn=new ACC;var czb,oe5;czb=function(){this.ongoingFlowNonces=new Map};
_.IE=function(){oe5||(oe5=new czb);return oe5};
_.aE=function(D,C,X){return{eventType:{flowEventNamespace:D,flowEventType:C},metadata:X,statusCode:void 0,csn:void 0,can:void 0}};
_.ldJ=function(D,C){var X=_.IE(),c=Wtx(X,C,!0);X.logFlowEvent(D,C,c,void 0)};
czb.prototype.logFlowEvent=function(D,C,X,c){C={flowNonce:X||Wtx(this,C),flowType:C,flowEventType:D.eventType};D.metadata&&(C.flowMetadata=D.metadata);D.statusCode!==void 0&&(C.flowEventStatus=D.statusCode);D.csn&&(C.csn=D.csn);D.can&&(C.can=D.can);_.zu("flowEvent",C,c)};
var Wtx=function(D,C,X){X=X===void 0?!1:X;var c=D.ongoingFlowNonces.get(C);if(!c||X)c=KN(16),D.ongoingFlowNonces.set(C,c);return c};_.pb4=new Oqb;var o9F={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var L_=function(D,C,X,c,W,p,g){X=X===void 0?!1:X;c=c===void 0?!1:c;p=p===void 0?_.bP():p;this.xA=!1;this.u6e=D;this.xUe=C;this.icB=X;this.fromHistory=c;this.previousVideoId=W;this.ySr=p;this.tempData=g;this.oIm=new _.PlN};
_.h(L_,Eq);L_.prototype.validate=function(D){return!(!D.data.playerResponse||D.data.page!=="watch"&&D.data.page!=="learning_journey_watch"&&D.data.page!=="shorts"||this.xA)};
L_.prototype.handle=function(D){var C=this,X=_.r(D.endpoint,_.TC),c=_.r(D.endpoint,_.ko);if(_.b("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.u6e.resolve();else{var W={};X?W.watch_endpoint=X:c&&(W.watch_endpoint=c,c.endTimeSeconds&&(W.end=c.endTimeSeconds));D.data.page==="watch"?(D.data.filler||this.icB||(_.mU("cfg"),_.Wf.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(W,SVk(this,D.endpoint)),_.b("enable_masthead_quartile_ping_fix")&&Object.assign(W,U2f(this)),Object.assign(W,void 0),D.data.forceExternalPlaylist&&(W.external_list=!0)):D.data.page==="shorts"?_.Wf.getInstance().triggerAction("yt-start-loading-shorts"):D.data.page==="learning_journey_watch"&&_.Wf.getInstance().triggerAction("yt-start-loading-learning-journey");if(X=this.xUe()){try{X.loadVideoWithPlayerResponse(D.data.playerResponse,W),X.getPlayerPromise().then(this.u6e.resolve)}catch(p){_.MN(p),
this.u6e.resolve()}this.xA=!0;X.getPlayerPromise().then(function(p){p.addEventListener("onAbnormalityDetected",function(){var g=D.data.playerResponse,a=p.getVideoData().cpn;Y_5=0;_.Xbe=a;if(a=fdJ(g))C.oIm.increment("IN_PLAYER"),_.O2(5),_.b("ab_st_vid_ks")?p.pauseVideo(!0):p.stopVideo(),g.playabilityStatus=Object.assign({},g.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:a}}),g.videoDetails=void 0,_.Wf.getInstance().triggerOptionalAction("yt-updated-playability-status",
g.playabilityStatus)})})}else _.fQ(Error("Sf"))}};
var SVk=function(D,C){var X=_.r(C,_.TC);if(C&&X&&X.playlistId&&X.videoId&&(D=D.ySr,D.queueProxy?(D=D.queueProxy,X=D.listId===X.playlistId?D.attributionData.get(X.videoId):void 0):X=void 0,X))return{queue_info:X}},U2f=function(D){var C;
if((C=D.tempData)==null?0:C.adpings)return{adpings:D.tempData.adpings}};var sS=function(D,C,X){this.xA=!1;this.eFw=D;this.eka=C;this.pVD=X};
_.h(sS,Eq);sS.prototype.validate=function(D){return!!_.ZI.getValueByKeys.apply(null,[D.data].concat(_.VB(EBq)))};
sS.prototype.handle=function(D){var C=this;this.eFw.promise.then(function(){var X=D.data;var c=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(KAf))),W=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(mBN))),p=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(xBe)));var g=(g=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(hwd))))?{videoId:g.videoId,thumbnail:g.thumbnail,title:g.title?_.jV(g.title):void 0,shortBylineText:g.author?_.jV(g.author):void 0}:void 0;var a=void 0;_.b("web_get_playlist_id_from_current_endpoint_ks")||
(a=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(LAM))));var O=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(ew5))),P=_.ZI.getValueByKeys.apply(null,[X].concat(_.VB(s6g))),k=!!O||!!P&&!!P.results&&P.results.length>0,u=0;W&&W.currentIndex&&W.localCurrentIndex&&(u=W.currentIndex-W.localCurrentIndex);W&&W.playlistId&&(a=W.playlistId);X={rawResponse:X,autoplayRenderer:c,hasRelatedVideoData:k,playingVideo:g,playingVideoId:p,playlistPanelRenderer:W,playlistId:a,playlistIndex:W&&W.currentIndex,relatedVideoArgs:O,
endScreenRenderer:P,playlistIndexOffset:u};a:{c=C.pVD;W=C.eka;c.response=X;if(j6b(X))c.downloadPlaylistProxy&&c.downloadPlaylistProxy.getPlaylistId()===zw4(X)||(c.downloadPlaylistProxy=new vBg(zw4(X),c.setPlaylistData.bind(c),c.isPlayingOfflineVideo.bind(c))),c.responsePlaylistData=c.downloadPlaylistProxy.getPlaylistData(),c.listId=zw4(X),c.index=0;else if(X.playlistPanelRenderer&&X.playlistId&&X.autoplayRenderer)X.playlistId.startsWith("TLPQ")?c.queueProxy?c.listId===X.playlistId?(c.index=X.playlistIndex,
c.responsePlaylistData=X.playlistPanelRenderer,c.queueProxy.JSC$13195_setCurrentIndex(c.index)):X.playingVideoId&&c.index!==void 0&&W.clientParams.autoSaveToQueue&&(c.index+=1,c.queueProxy.JSC$13195_setCurrentIndex(c.index),c.queueProxy.addVideos([X.playingVideoId],{},c.index)):(c.queueProxy=new _.PV(c.JSC$13249_playlistNetworkManager,X.playlistId,c.setPlaylistData.bind(c),c.clearQueue.bind(c),_.RNJ(X.playlistPanelRenderer),c.storage),c.responsePlaylistData=X.playlistPanelRenderer,c.listId=X.playlistId,
c.index=X.playlistIndex):(c.index=X.playlistIndex,c.listId!==X.playlistId&&c.clearQueue(),c.responsePlaylistData=X.playlistPanelRenderer,c.listId=X.playlistId,c.playlistProxy=new rNb(c.JSC$13249_playlistNetworkManager,X.playlistId,c.setPlaylistData.bind(c),_.RNJ(X.playlistPanelRenderer)));else if(!c.queueProxy)c.responsePlaylistData=void 0;else if(X.playingVideoId&&W.clientParams.autoSaveToQueue){if(c.index===void 0){_.MN(Error("Of"));c.clearQueue();break a}c.queueProxy.videoIds.includes(X.playingVideoId)||
(c.index+=1,c.queueProxy.JSC$13195_setCurrentIndex(c.index),c.queueProxy.addVideos([X.playingVideoId],{},c.index))}_.rR(c,_.K_(c,c.response.autoplayRenderer))}})};var gee=function(D,C){C=C===void 0?_.bP():C;jm.call(this);this.r7.push(new sS(this.vI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},C));this.r7.push(new L_(this.vI,D,!1,!1));_.b("web_response_commands_chunk_processor")&&this.r7.push(new Mg)};
_.h(gee,jm);gee.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.vI.resolve();jm.prototype.processChunk.call(this,D)};var ES=function(D,C){D=D===void 0?{layer:0}:D;this.xA=!1;this.createScreenConfig=D;this.npj=C};
_.h(ES,Eq);ES.prototype.validate=function(D){return!(this.xA||!D.endpoint)};
ES.prototype.handle=function(D){var C=_.iO(),X,c,W=(c=_.r((X=D.endpoint)==null?void 0:X.commandMetadata,_.ge))==null?void 0:c.rootVe;this.npj&&W?_.Gm(C,W,this.npj,this.createScreenConfig):fDd(C,D.endpoint,this.createScreenConfig);this.xA=!0};var th=function(D,C){this.xA=!1;this.hFu=D;this.previousVideoId=C};
_.h(th,Eq);th.prototype.validate=function(D){return _.b("kevlar_continue_playback_without_player_response")&&(D=_.r(D.endpoint,_.TC),(D==null?0:D.videoId)&&this.previousVideoId&&(D==null?void 0:D.videoId)===this.previousVideoId&&(D==null?0:D.continuePlayback))?!1:this.hFu.vUm===0};
th.prototype.handle=function(D){_.Wf.getInstance().triggerAction("yt-stop-old-player",D.data,!0)};var aqg=function(D){D=D===void 0?{layer:0}:D;jm.call(this);this.r7.push(new th(this));this.r7.push(new ES(D));this.r7.push(new zm(D))};
_.h(aqg,jm);var Nk=function(){Eq.apply(this,arguments)};
_.h(Nk,Eq);Nk.prototype.validate=function(D){return!!D.data.preconnect};
Nk.prototype.handle=function(D){_.sp("bc");D=_.U(D.data.preconnect);for(var C=D.next();!C.done;C=D.next())C=C.value,(new Image).src=C};var Iq5=function(D,C,X,c,W,p,g){X=X===void 0?{layer:0}:X;p=p===void 0?_.bP():p;jm.call(this);if(c)if(W){W=p;this.r7.push(new sS(this.vI,C,W));this.r7.push(new Nk);var a,O;this.r7.push(new L_(this.vI,D,!1,!((a=C.clientParams)==null||!a.fromHistory),(O=C.clientParams)==null?void 0:O.previousVideoId,W,C.tempData));var P;this.r7.push(new th(this,(P=C.clientParams)==null?void 0:P.previousVideoId));var k;(k=C.clientParams)!=null&&k.fromHistory||(X.layer||(X=Object.assign({},X,{layer:0})),this.r7.push(new ES(X,
g)),this.r7.push(new zm(X)))}else this.r7.push(new sS(this.vI,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},p)),this.r7.push(new L_(this.vI,D,!1,!1));else this.r7.push(new th(this)),this.r7.push(new ES(X)),this.r7.push(new zm(X));_.b("web_response_commands_chunk_processor")&&c&&this.r7.push(new Mg)};
_.h(Iq5,jm);Iq5.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.vI.resolve();jm.prototype.processChunk.call(this,D)};var OZ5=function(){this.xA=this.xA=!1};
_.h(OZ5,Eq);OZ5.prototype.validate=function(D){return!this.xA&&!(!D.data.csn||!D.data.rootVe)};
OZ5.prototype.handle=function(D){this.xA=!0;_.ec(D.data.csn,D.data.rootVe,3)};var AzJ=function(D,C,X){X=X===void 0?{layer:0}:X;jm.call(this);this.r7.push(new L_(this.vI,D));this.r7.push(new ES(X));this.r7.push(new zm(X))};
_.h(AzJ,jm);var PM5=function(D,C,X,c,W){X=X===void 0?{layer:0}:X;c=c===void 0?_.bP():c;jm.call(this);var p=!!C&&!!C.clientParams&&!!C.clientParams.miniplayer;p&&this.r7.push(new OZ5);this.r7.push(new sS(this.vI,C,c));this.r7.push(new Nk);var g,a;this.r7.push(new L_(this.vI,D,p,!((g=C.clientParams)==null||!g.fromHistory),(a=C.clientParams)==null?void 0:a.previousVideoId,c,C.tempData));var O;this.r7.push(new th(this,(O=C.clientParams)==null?void 0:O.previousVideoId));var P;(P=C.clientParams)!=null&&P.fromHistory||
(X.layer||(X=Object.assign({},X,{layer:p?3:0})),this.r7.push(new ES(X,W)),this.r7.push(new zm(X)));_.b("web_response_commands_chunk_processor")&&this.r7.push(new Mg)};
_.h(PM5,jm);var Y3,iZb;Y3={};
_.$2c=(Y3["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Y3["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Y3["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Y3["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Y3["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Y3["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Y3["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Y3);_.y4=new _.Do("yt-edu");_.vef=function(){this.JSC$13347_eduDisplayedThisLoad_={}};
iZb=function(D){var C=_.vef.getInstance();var X=_.BK("kevlar_tooltip_impression_cap");C=X&&parseInt(_.y4.get(D+"-impression")||0,10)>=X||_.y4.get(D+"-dismissed")?!1:(X=_.$2c[D])&&!C.JSC$13347_eduDisplayedThisLoad_[X.setKey||D]&&(X.titleText&&_.I7(X.titleText)||X.bodyText&&_.I7(X.bodyText))?!0:!1;if(!C)return null;C=_.$2c[D];if(!C)return null;X=C.bodyText?_.I7(C.bodyText):void 0;var c=C.titleText?_.I7(C.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:C.position,popup:{bubbleHintRenderer:{text:c?
_.jV(c):void 0,detailsText:X?_.jV(X):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jV(_.I7("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:D}}]}}}}}}}},{eduImpressionAction:{key:D}}]};
_.cT(_.vef);var DVR=!1;for(var ksf="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),uWx=[],n_=6;n_>=1;n_--)uWx.push({columnCount:n_,query:n_==1?0:n_*2*107-4+32,className:"grid-"+n_+"-columns",width:n_*2*107+"px"});_.wR=function(D){this.actionRouter_=D=D===void 0?_.Wf.getInstance():D;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Qzk(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Qzk=function(D){var C=D.documentWidth_-(D.miniGuideVisible_?72:0)-(D.guidePersistentAndVisible_?240:0)-(D.persistentPanelVisible_?400:0);return uWx.find(function(X){return C>X.query})};
_.cT(_.wR);var Bgx=function(){var D=this;this.JSC$13359_keyboardInUse=!1;document.addEventListener("keydown",function(){D.onKeydown()});
document.addEventListener("mousedown",function(){D.JSC$13359_keyboardInUse=!1})},bZd;
Bgx.prototype.isKeyBoardInUse=function(){return this.JSC$13359_keyboardInUse};
Bgx.prototype.onKeydown=function(){this.JSC$13359_keyboardInUse=!0};var rzd,G0;_.Fj=new _.Do("yt-mentions");_.Zp=function(){};
rzd=function(D,C){return G0(C,"drag-to-reorder-edu-displayed")};
G0=function(D,C,X,c,W,p){X=X===void 0?"OPEN_POPUP_POSITION_TOP":X;if(C){if(_.Fj.get(C))return;_.Fj.set(C,!0,c)}if(W&&p!==void 0){C=Number(_.Fj.get(W)||0);if(C>=p)return;_.Fj.set(W,C+1)}return[{openPopupAction:{popupType:"HINT",position:X,popup:{bubbleHintRenderer:{detailsText:D,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.cT(_.Zp);var Ktb,hMf,x2d;Ktb=function(D,C,X,c){this.JSC$13369_taskManager_=D;this.onFulfilled_=typeof C==="function"?C:null;this.onRejected_=typeof X==="function"?X:null;this.JSC$13369_context_=c};
hMf=function(D,C){D.onFulfilled_&&_.hG(D.JSC$13369_taskManager_,function(){D.onFulfilled_.call(D.JSC$13369_context_,C)})};
x2d=function(D,C){D.onRejected_&&_.hG(D.JSC$13369_taskManager_,function(){D.onRejected_.call(D.JSC$13369_context_,C)})};
_.V4=function(D){this.JSC$13372_taskManager_=D;this.callbacks_=[]};
_.V4.prototype.then=function(D,C,X){this.callbacks_.push(new Ktb(this.JSC$13372_taskManager_,D,C,X));return this};
_.V4.prototype.onSuccess=function(D){this.callbacks_.forEach(function(C){hMf(C,D)})};
_.V4.prototype.onFailure=function(D){this.callbacks_.forEach(function(C){x2d(C,D)})};
_.V4.prototype.cancel=function(){this.callbacks_.length=0};
Qef(_.V4);_.pwm=null;_.B0=new _.P6("ACTIVITY_TOKEN");var Ltd;_.hT=new _.P6("PAGE_REQUEST_TOKEN");Ltd=new _.P6("FETCH_PBJ_TOKEN");_.szJ=function(D){if(D.validatedFragments_.length==0)return null;if(!D.mergedPrefetchedData_){for(var C=[],X=_.U(D.validatedFragments_),c=X.next();!c.done;c=X.next()){c=_.U(D.fragmentConfiguration_[c.value].graftedKeys);for(var W=c.next();!W.done;W=c.next())(W=D.prefetchedData_[W.value].trackingParams)&&C.push(W)}D.mergedPrefetchedData_={};Object.assign(D.mergedPrefetchedData_,D.prefetchedData_,{clientSideGrafts:C})}return D.mergedPrefetchedData_};var m2f;_.T0=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
m2f=function(D,C,X){if(_.Sgj(C))return D.prefetchCache_.get(_.UVm(C,X))};_.HV=new _.P6("NAVIGATION_TOKEN");var eMx=function(D){var C=this;var X=X===void 0?IXn():X;var c=c===void 0?_.iX().resolve(_.HV):c;this.onePickCommand=D;this.JSC$13444_playlistNetworkManager=X;this.navigationManager=c;this.videoPickerBuilder=_.g9W("yt-addtoplaylist");_.T0C(y8d(nrq(Yn4(this.videoPickerBuilder.setTitle(D.modalTitle).setSize(1E3).addView(FRf()).addView(wfg())).addView("youtube"),D.selectButtonLabel)),function(W){C.handleAction(W)})};
eMx.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
eMx.prototype.handleAction=function(D){var C=this;if(D&&this.onePickCommand.listId&&D.action==="picked"&&D.docs){var X=[];D.docs.forEach(function(c){X.push({addedVideoId:c.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13444_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,X).then(function(){_.b("playlist_add_video_hard_reload_killswitch")?C.navigationManager.reload():Eec(C.navigationManager)})}};var t9e=function(){if(this.constructor===t9e)throw new TypeError("Uf");};
_.S=t9e.prototype;_.S.dispose=function(){};
_.S.disconnect=function(){};
_.S.reconnect=function(){};
_.S.observe=function(D,C,X){return{element:D,option:X}};
_.S.unobserveByKey=function(){};var O9F=function(D,C){C=C===void 0?0:C;t9e.call(this);this.viewroot=D;this.defaultPrescanHeight=C;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),D?{root:D,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.h(O9F,t9e);_.S=O9F.prototype;_.S.dispose=function(){this.disconnect();this.handlers.clear()};
_.S.disconnect=function(D){this.isConnected=!1;this.pauseObservingUntilReconnect=D===void 0?!1:D;this.observer.disconnect();D=_.U(this.prescanObservers.values());for(var C=D.next();!C.done;C=D.next())C.value.disconnect()};
_.S.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var D=_.U(this.handlers),C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;var c=X.next().value;X=!1;c=_.U(c.keys());for(var W=c.next();!W.done;W=c.next())if((W=W.value)&&W.state==="prescan"){X=!0;break}X&&Ngd(this,C).observe(C);this.observer.observe(C)}}};
_.S.handleObserveEvent=function(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;var X=this.handlers.get(C.target);if(X){var c=C.isIntersecting;X=_.U(X);for(var W=X.next();!W.done;W=X.next()){var p=_.U(W.value);W=p.next().value;p=p.next().value;W&&(W.state==="visible"&&c||W.state==="hidden"&&!c)&&(p(C.target,W.state),W.calledOnce&&this.unobserveByKey({element:C.target,option:W}))}}}};
_.S.handlePrescanEvent=function(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;var X=this.handlers.get(C.target);if(X&&C.isIntersecting){X=_.U(X);for(var c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;c&&c.state==="prescan"&&(W(C.target,c.state),c.calledOnce&&this.unobserveByKey({element:C.target,option:c}))}}}};
_.S.observe=function(D,C,X){var c=(c=this.handlers.get(D))&&c.has(X)?{element:D,option:X}:void 0;if(c)return c;c={element:D,option:X};this.handlers.has(D)||this.handlers.set(D,new Map);var W=this.handlers.get(D);W&&!W.has(X)&&W.set(X,C);this.pauseObservingUntilReconnect||(X.state==="prescan"&&Ngd(this,D).observe(D),this.observer.observe(D));return c};
_.S.unobserveByKey=function(D){var C=this.handlers.get(D.element);if(C&&C.has(D.option)){C.delete(D.option);if(D&&D.option.state==="prescan")for(var X=_.U(this.prescanObservers.values()),c=X.next();!c.done;c=X.next())c.value.unobserve(D.element);C.size===0&&(this.handlers.delete(D.element),this.observer.unobserve(D.element))}};
var Ngd=function(D,C){var X=D.defaultPrescanHeight;C.hasAttribute("prescan-height")&&(C=Number(C.getAttribute("prescan-height")),isNaN(C)||(X=C));if(D.prescanObservers.has(X))return D.prescanObservers.get(X);C="-0.1px -0.1px "+X+"px -0.1px";C=new IntersectionObserver(D.handlePrescanEvent.bind(D),D.viewroot?{root:D.viewroot,rootMargin:C}:{rootMargin:C});D.prescanObservers.set(X,C);return C};var YVJ=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],yzN=function(){var D,C=this;this.JSC$13461_actionRouter=D=D===void 0?_.Wf.getInstance():D;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return C.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return C.visibilityObservedElementHandlerKeys}}},neJ,Jh,ZZx;
yzN.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.b("kevlar_use_vimio_behavior")&&_.q6("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Aeh())};
yzN.prototype.dispose=function(){this.visibilityMonitor&&_.Y1(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
yzN.prototype.handleVisibilityRefreshed=function(){for(var D=_.U(this.targetMap.entries()),C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;_.wbJ(this,C,X)}};
_.z0=function(D,C,X){Jh(D,X);var c=_.Fte(D,C);c.element=X;D.targetedElements.set(X,C);_.wbJ(D,C,c)};
Jh=function(D,C){var X=D.targetedElements.get(C);if(X){var c=D.targetMap.get(X);c&&(delete c.element,D.targetMap.set(X,c));D.targetedElements.delete(C);D.visibilityObserver&&D.visibilityObservedElementHandlerKeys&&(X=D.visibilityObservedElementHandlerKeys.get(C))&&(D.visibilityObserver.unobserveByKey(X),D.visibilityObservedElementHandlerKeys.delete(C))}};
_.wbJ=function(D,C,X){var c=X.action,W=X.element;W&&c&&(YVJ.includes(C)||_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||D.visibilityMonitor&&D.visibilityMonitor.isNodeVisible(W)?ZZx(D,C,X):D.visibilityObserver&&(D.visibilityObservedElementHandlerKeys||(D.visibilityObservedElementHandlerKeys=new WeakMap),c=D.visibilityObserver.observe(W,function(){ZZx(D,C,X);D.visibilityObservedElementHandlerKeys.delete(W)},{calledOnce:!0,
state:"visible"}),D.visibilityObservedElementHandlerKeys.set(W,c)))};
ZZx=function(D,C,X){var c=X.action;(X=X.element)&&c&&(_.fX(D.JSC$13461_actionRouter,[c],X),D.targetMap.delete(C),D.targetedElements.delete(X),D.triggeredTargets.add(C))};
_.Fte=function(D,C){var X=D.targetMap.get(C);X||(X={},D.targetMap.set(C,X));return X};
_.jJ=function(){neJ||(neJ=new yzN);return neJ};var GsC=document.createElement("div");GsC.style.touchAction="pan-down";var Pe3=GsC.style.touchAction==="pan-down";var V9c,Tgc;V9c=function(){this.hammerFn=Hnx();this.JSC$13469_screenManager=_.iO();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Ia(83615);_.Tm(this.JSC$13469_screenManager,this.ve);$V3()};
_.Mk=function(){Tgc||(Tgc=new V9c);return Tgc};
V9c.prototype.registerTouchEvents=function(D,C,X){var c=_.MJ.apply(3,arguments),W=this.hammerFn(D,{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&&W.set({touchAction:X});this.nodeManagerMapping.set(D,W);var p=
v9j(C);c=_.U(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;if(g.includes("swipe")||g.includes("pinch")||g.includes("pan"))g.includes("swipe")?W.get("swipe").set({enable:!0,direction:p,velocity:.2}):g.includes("pinch")?W.get("pinch").set({enable:!0}):g.includes("pan")&&(W.get("pan").set({enable:!0,direction:p}),W.get("swipe").set({enable:!0,direction:p,velocity:.2}),W.get("swipe").recognizeWith("pan"));HZe(this,D,W,g)}};
var HZe=function(D,C,X,c){X.on(c,function(W){if(c.includes("pinch"))D.lastPinchTime=Date.now();else if(c.includes("swipe")&&Date.now()-D.lastPinchTime<400)return;W.pointerType!=="mouse"&&(W=c==="doubletap"?{coordinates:W.center}:c.includes("pan")?W:c.includes("swipe")?{target:W.target}:{},C.dispatchEvent(new CustomEvent(c,{bubbles:!0,composed:!0,detail:W})))})};
V9c.prototype.unregisterTouchEvents=function(D){var C=_.MJ.apply(1,arguments),X=this.nodeManagerMapping.get(D);if(X){C=_.U(C);for(var c=C.next();!c.done;c=C.next())X.off(c.value);this.nodeManagerMapping.delete(D);D.style.touchAction="unset"}};var Jzq=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var i9t=null;_.bj={getLocalStorage:_.Ef(function(){try{var D=new JZ5;var C=D.isAvailable()?D:null}catch(X){return null}return C?new _.Kl(C):null}),
getSessionStorage:_.Ef(function(){var D=new zkZ;return D.isAvailable()?new _.Kl(D):null})};var zMg=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},yeW=function(){zMg.instance||(zMg.instance=new zMg);
return zMg.instance},n9m=function(D){var C=D.networkEvents;
D.networkEvents=[];return _.b("enable_network_monitoring")?C:[]};var jzM;jzM={};_.M9N=il("yt-serviceworker-metadata",{objectStores:(jzM.auth={addedAtVersion:1},jzM["resource-manifest-assets"]={addedAtVersion:2},jzM),shared:!0,upgrade:function(D,C){C(1)&&X3(D,"resource-manifest-assets");C(2)&&X3(D,"auth")},
version:2});var rer=self.location.origin+"/";Kbm([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);Kbm([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);Kbm([/\.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\//]);Kbm([/purge_shell=1/]);var qVM=void 0;qVM=qVM===void 0?[]:qVM;
for(var fqd=[],d2e=_.U(BeJ),RMN=d2e.next();!RMN.done;RMN=d2e.next())fqd.push({key:RMN.value});for(var lq5=_.U(qVM),DrM=lq5.next();!DrM.done;DrM=lq5.next())fqd.push(DrM.value);var Cmf,xo=_.co==null?void 0:(Cmf=_.co.performance)==null?void 0:Cmf.memory,Lbm=!1,wwr={},esF={},LH={},s2=navigator;var qk=function(D){this.JSC$13514_expiringStorage=new V3(D)};
qk.prototype.set=function(D,C,X){X=X!==void 0?Date.now()+X:void 0;this.JSC$13514_expiringStorage.set(D,C,X)};
qk.prototype.get=function(D){return this.JSC$13514_expiringStorage.get(D)};
qk.prototype.remove=function(D){this.JSC$13514_expiringStorage.remove(D)};var zsn=_.q8(["https://www.youtube.com/",""]),jur=_.q8(["https://studio.youtube.com/",""]),Rst="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",qgm=null,cDm;var XZb=_.q8(["https://www.youtube.com/iframe_api"]),f_=function(){this.playerResolver_=_.zr();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.e$;this.playbackDurationSeconds_=0},cdb=function(D){var C=function(){return window.YT&&typeof window.YT.ready==="function"};
if(C())return _.WE(window.YT);var X=_.zr(),c=_.mv("SCRIPT");c.onload=c.onreadystatechange=function(){c.readyState&&c.readyState!="loaded"&&c.readyState!="complete"||(c.onload=_.e$,c.onreadystatechange=_.e$,c.onerror=_.e$,C()?X.resolve(window.YT):X.reject(new _.Zf("Failed to load the iframe player library","script.onload",c.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
c.onerror=function(W){c.onload=_.e$;c.onreadystatechange=_.e$;c.onerror=_.e$;X.reject(new _.Zf("Failed to load the iframe player library","script.onerror",W&&W.target&&W.target.src))};
_.gH(c,_.kX(XZb));D.insertBefore(c,D.firstChild);return X.promise},o$C=function(D,C,X){var c,W;
_.I(function(p){switch(p.nextAddress){case 1:return D.playbackEndedCallback_=X,_.KK(p,2),p.yield(cdb(C.parentElement||null),4);case 4:c=p.yieldResult;_.SR(p,3);break;case 2:return W=_.Eu(p),W instanceof _.Zf&&W.args&&W.args[0]=="script.onerror"?_.fQ(W):_.MN(W),p.return();case 3:c.ready(function(){return new c.Player(C,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:D.onPlayerReady_.bind(D),onStateChange:D.onPlayerStateChange_.bind(D),
onCueRangeExit:D.onCueRangeExit_.bind(D)}})}),_.t_(p)}})};
_.S=f_.prototype;_.S.getPlayerPromise=function(){return this.playerPromise_};
_.S.onPlayerReady_=function(D){this.playerResolver_.resolve(D.target)};
_.S.onPlayerStateChange_=function(D){if(D.data==YT.PlayerState.PLAYING){D=D.target;var C=D.getCurrentTime();D.addCueRange("playback",C,C+this.playbackDurationSeconds_)}};
_.S.onCueRangeExit_=function(D){D.data=="playback"&&(D.target.stopVideo(),this.playbackEndedCallback_())};
_.S.stopVideo=function(){this.playerPromise_.then(function(D){D.stopVideo()})};
var WiM=function(D){D.playerVars_&&D.playerPromise_.then(function(C){typeof C.cueVideoByPlayerVars!="function"?_.fQ(new _.Zf("vmh: player API not ready","cueVideoByPlayerVars",typeof C.cueVideoByPlayerVars)):C.cueVideoByPlayerVars(D.playerVars_)})};
f_.prototype.playVideo=function(){var D=this;this.playerVars_&&this.playerPromise_.then(function(C){typeof C.loadVideoByPlayerVars!="function"?(C=new _.Zf("vmh: player API not ready","loadVideoByPlayerVars",typeof C.loadVideoByPlayerVars),_.MN(C)):C.loadVideoByPlayerVars(D.playerVars_)})};
var pZd=function(D,C,X,c,W){C&&(X===void 0&&(X=0),c===void 0&&(c=0),D.playbackDurationSeconds_=c/1E3,D.playerVars_={adformat:"17_8",videoId:C,suggestedQuality:"hd720",startSeconds:X/1E3,player_params:W})};
f_.prototype.mute=function(){this.playerPromise_.then(function(D){D.mute()})};
f_.prototype.unMute=function(){this.playerPromise_.then(function(D){D.unMute()})};var a$R=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var dR;dR=function(){this.tokenJars={};if(this.cookiesEnabled=_.nC()){var D=_.Yz.get("CONSISTENCY",void 0);D&&St4(this,{encryptedTokenJarContents:D})}};
_.O33=function(){dR.instance||(dR.instance=new dR);return dR.instance};
dR.prototype.handleResponse=function(D,C){if(!C)throw Error("Zf");var X,c;C=((X=C.innerTubeRequest.context)==null?void 0:(c=X.request)==null?void 0:c.consistencyTokenJars)||[];var W;(D=(W=D.responseContext)==null?void 0:W.consistencyTokenJar)&&this.replace(C,D)};
dR.prototype.replace=function(D,C){D=_.U(D);for(var X=D.next();!X.done;X=D.next())delete this.tokenJars[X.value.encryptedTokenJarContents];St4(this,C)};
var St4=function(D,C){if(C.encryptedTokenJarContents&&(D.tokenJars[C.encryptedTokenJarContents]=C,typeof C.expirationSeconds==="string")){var X=Number(C.expirationSeconds);setTimeout(function(){delete D.tokenJars[C.encryptedTokenJarContents]},X*1E3);
D.cookiesEnabled&&_.y3("CONSISTENCY",C.encryptedTokenJarContents,X,void 0,!0)}};var Urd,Rc;Urd=window.location.hostname.split(".").slice(-2).join(".");_.Vt=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var D=_.q6("LOCATION_PLAYABILITY_TOKEN");_.q6("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=g$J(this))&&(D=this.localStorage.get("yt-location-playability-token"));D&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0)};
_.Vt.getInstance=function(){Rc=_.Df("yt.clientLocationService.instance");Rc||(Rc=new _.Vt,_.$h("yt.clientLocationService.instance",Rc));return Rc};
_.Vt.prototype.setLocationOnInnerTubeContext=function(D){D.client||(D.client={});if(this.mostRecentPosition)D.client.locationInfo||(D.client.locationInfo={}),D.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),D.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),D.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),D.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)D.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Vt.prototype.handleResponse=function(D){var C;D=(C=D.responseContext)==null?void 0:C.locationPlayabilityToken;D!==void 0&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0,_.q6("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=g$J(this))&&this.localStorage.set("yt-location-playability-token",D,15552E3):_.y3("YT_CL",JSON.stringify({loctok:D}),15552E3,Urd,!0))};
var g$J=function(D){return D.localStorage===void 0?new _.Do("yt-client-location"):D.localStorage};
_.Vt.prototype.clearLocationPlayabilityToken=function(D){D==="TVHTML5"?(this.localStorage=g$J(this))&&this.localStorage.remove("yt-location-playability-token"):_.wE3("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Vt.prototype.getCurrentPositionFromGeolocation=function(){var D=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var C=!1,X=1E4;_.q6("INNERTUBE_CLIENT_NAME")==="MWEB"&&(C=!0,X=15E3);return new Promise(function(c,W){navigator.geolocation.getCurrentPosition(function(p){D.mostRecentPosition=p;c(p)},function(p){W(p)},{enableHighAccuracy:C,
maximumAge:0,timeout:X})})};
_.Vt.prototype.createUnpluggedLocationInfo=function(D){var C={};D=D.coords;if(D==null?0:D.latitude)C.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)C.longitudeE7=Math.floor(D.longitude*1E7);if(D==null?0:D.accuracy)C.locationRadiusMeters=Math.round(D.accuracy);return C};
_.Vt.prototype.createLocationInfo=function(D){var C={};D=D.coords;if(D==null?0:D.latitude)C.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)C.longitudeE7=Math.floor(D.longitude*1E7);return C};var azq=function(D,C){var X=Yr();D||(D="unknown");C||(C="unknown");D="MAIN_APP_WEB_PAGE_TYPE_"+D.toUpperCase();D in nLc||(D="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");C="MAIN_APP_WEB_REQUEST_TYPE_"+C.toUpperCase();C in wj4||(C="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.O3(X,{mainAppWeb:{pageType:D,requestType:C,isShellLoad:_.dq("IS_SHELL_LOAD",!1)}})},IzN={start:function(){_.O3(mDd(),{mainAppWeb:_.Th()})},
success:function(){_.AT(mDd(),"SUCCESS")},
failure:function(){_.AT(mDd(),"FAILURE")},
cancelled:function(){_.AT(mDd(),"CANCELLED")}};var Osc,AdC,i3o;Osc=_.q8(["/sw.js"]);AdC=_.q8(["/sw.js?0"]);_.PmC=_.kX(Osc);i3o=_.kX(AdC);var $r4=function(){var D=Error.apply(this,arguments);this.message=D.message;"stack"in D&&(this.stack=D.stack)};
_.h($r4,Error);_.j_.prototype.load=function(D){this.megabloxUrl_=_.q6("YPC_MB_URL");_.yy(this.megabloxUrl_,(0,_.wo)(function(){D&&D()},this))};
_.GDJ=function(D,C,X,c,W,p,g,a,O,P,k){_.uH3(O);D.load((0,_.wo)(function(){try{var u=p?p:_.q6("HL"),Q=_.q6("SESSION_INDEX");_.UUJ("client",function(){xXq("59",{helpCenterPath:"/youtube",locale:u,window:window}).JSC$10140_loadChatSupport({authuser:String(Q)})})}catch(B){throw Hl(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),W&&W(B),_.MN(B),B;
}v$e(this,C,X,c,W,p,g,a,O,P,k)},D))};
_.j_.prototype.openFixFlowDialog=function(D,C,X,c){this.load((0,_.wo)(function(){try{isM(this,_.Df("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(D).withIntegratorCallback(C).load(X,c)}catch(W){throw _.MN(W),W;}},this))};
var isM=function(D,C,X,c){var W=C.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.b("enable_window_constrained_buy_flow_dialog")&&(W=W.usingPopupStyle(_.Df("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));c&&(W=W.usingCloseCallback(c));C.bootstrap.fromPaymentsUrl(D.megabloxUrl_);D=C.bootstrap.asMashupMode(W);X=X?X:_.q6("HL");D.usingGaiaIndex(_.q6("SESSION_INDEX")).usingLocale(X).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.b("enable_google_payments_buyflow_material2_style_web")?
D.usingStyle(":m2;pc=#444;ac=#065fd4"):D.usingStyle(":md;pc=#444;ac=#065fd4");return D},v$e=function(D,C,X,c,W,p,g,a,O,P,k){try{var u=_.Df("payments.business.integration");
if(!u)throw new $r4("payments.business.integration is undefined");var Q=u.standaloneContextAuthId.forUserId(),B=isM(D,u,p,function(){BQm(!1);a&&a()});
g&&B.usingServerAnalyticsEventHandler(g);var K=B.inStandaloneContext(Q).buyFlow(function(L){if(L&&(!L.integratorData||L.integratorData===""||L.error))if(L.error!=null)if(String(L.error)==="-1")_.QvW(O);else{var t=String(L.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Hl(10,k,t,L.debugCode);_.zh(t,O,L.debugCode);t=new _.Zf("PAYMENT_ERROR_MESSAGE::"+L.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+L.internalErrorDetails);
_.MN(t)}else Hl(10,k,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.zh("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",O,"EMPTY_INTEGRATOR_DATA"),_.MN(Error("bg"));X&&(BQm(!1),X(L))}).withEncryptedParameters(C);
P&&K.withClientParameters(h35(_.wJt(P)));K.load(function(){Hl(24,k);_.ey("ttc",void 0,"commerce_transaction");xC("commerce_transaction");c&&(c(),BQm(!0))},function(L){if(L==null?0:L.debugCode)var t=L==null?void 0:L.debugCode;
else if(!L||(L==null?0:L.debugCode))t="EMPTY_LOAD_FAILURE_ERROR",_.MN(Error(t));else{t="EMPTY_LOAD_FAILURE_DEBUG_CODE";var Y=new _.Zf("LOAD_FAILURE:"+L.message," DEBUG_CODE:"+t);_.MN(Y)}Hl(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t);_.zh("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O,t);_.MN(L);W&&W(L)})}catch(L){throw L instanceof $r4&&(Hl(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),W&&W(L)),_.MN(L),L;
}};var k8f;k8f=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.wsW=function(D,C){C=C===void 0?!1:C;D=k8f.test(D)?_.t2(D):null;!C&&window.payments||!D?(D=_.zr(),C=D.promise,D.resolve()):C=_.A05(D,{attributes:{"data-payments-main":"",id:"payment-lib"}});return C};var ui5;ui5=_.q8(["//www.googletagmanager.com/gtm.js?id=",""]);_.lP=function(D,C){_.cX(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:C}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.q6("GL")}),C=_.mv("SCRIPT"),C.async=!0,_.gH(C,_.kX(ui5,D)),C.id="gtm",D=document.getElementsByTagName("script"),D.length==0?document.head.appendChild(C):(D=D[0],D.parentNode.insertBefore(C,D)))};
_.De=function(D){if(D=JSON.parse(D))window.dataLayer=window.dataLayer||[],window.dataLayer.push(D)};var QFd,Bng;QFd=_.q8(["https://clients2.google.com/gr/gr_sync.js"]);_.yOo=function(){};
_.yOo.prototype.init=function(){if(Bng()){var D=_.zr();D.resolve();return D.promise}return _.A05(_.kX(QFd)).then(function(){if(!Bng())throw Error("cg");},function(){throw Error("dg");
})};
_.nS5=function(){if(!Bng())return"";var D=window.google.gr;D.init({async:{schedule:"sync"},merchantId:"youtube"});D.start();D=D.finish();return D==null?"":D};
Bng=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.w=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.h(_.w,PolymerFakeBaseClassWithoutHtml);_.Qj=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.h(_.Qj,PolymerFakeBaseClassWithoutHtml);var b33=window.ShadyDOM;var pnt,oMd,UWd,gMt,IDd,OjW,C4,oo;pnt=_.b("enable_shadydom_free_scoped_query_methods");oMd=_.b("enable_shadydom_free_scoped_node_methods");UWd=_.b("enable_shadydom_free_scoped_readonly_properties_batch_one");gMt=_.b("enable_shadydom_free_parent_node");IDd=_.b("enable_shadydom_free_children");OjW=_.b("enable_shadydom_free_last_child");C4=window.ShadyDOM;_.Io=C4&&C4.noPatch&&C4.wrap?C4.wrap:C4?function(D){return C4.patch(D)}:function(D){return D};
oo=function(D){if(D instanceof ShadowRoot)this.host=(0,_.Io)(D.host),this.root=D;else if(D.$$){this.host=(0,_.Io)(D);var C;this.root=(C=D.root)!=null?C:this.host}else if(D.polymerController){this.host=(0,_.Io)(D);var X;this.root=(X=this.host.shadowRoot)!=null?X:this.host}else this.root=this.host=(0,_.Io)(D)};
W3o();SKm();A1n();P43();aDZ();var bs5={querySelector:function(D,C){C=yDh(C,RE(D));return _.b("sunnydom_native_scoped_query_selectors")?K1Z(D,C):K1Z(_.lj(D),C)},
querySelectorAll:function(D,C){C=yDh(C,RE(D));return _.b("sunnydom_native_scoped_query_selectors")?Array.from(hpr(D,C)):hpr(_.lj(D),C)}},rdx={appendChild:function(D,C){var X=RE(D),c=_.dL(C);
return _.Xnm(_.lj(D),X?_.Xz(C,X,c):C)},
cloneNode:function(D,C){var X=_.dL(D);D=_.lj(D);C=fH(D).prototype.cloneNode.call(D,C);return X?cr(C,X):C},
contains:function(D,C){var X=RE(D),c=_.dL(C);return X!==c?!1:c1m(D,C)},
insertBefore:function(D,C,X){var c=RE(D),W=_.dL(C);D=_.lj(D);C=c?_.Xz(C,c,W):C;return fH(D).prototype.insertBefore.call(D,C,X)},
removeChild:function(D,C){var X=RE(D);D=_.lj(D);C=X?cr(C,X):C;return fH(D).prototype.removeChild.call(D,C)},
replaceChild:function(D,C,X){var c=RE(D),W=_.dL(C);C=c?_.Xz(C,c,W):W?cr(C,W):C;X=c?cr(X,c):X;D=_.lj(D);return fH(D).prototype.replaceChild.call(D,C,X)},
getRootNode:function(D,C){C=C===void 0?{composed:!0}:C;var X;if(((X=C)!=null?X:{}).composed)D=C4m(D);else{C=D;for(D=L1J(D);D;)C=D,D=wYo(D);D=C}return D}},vMr=UWd?{firstChild:qk5,
nextSibling:zpW,previousSibling:MdF,firstElementChild:f$5,lastElementChild:RpZ,nextElementSibling:JDZ,previousElementSibling:jv3,childNodes:l$Z}:{};gMt&&(vMr.parentNode=H3m);IDd&&(vMr.children=DWJ);OjW&&(vMr.lastChild=d0J);pnt&&$Wn(bs5);oMd&&$Wn(rdx);ijm();var kGd=function(D){this.node=D instanceof ShadowRoot?D.host:D};
uaZ();Qrd();var r15=new WeakMap;var hHr=Symbol("Bd");var eHd=new Set(["tap","track","down","up"]),EM3=_.b("pbcm_fi_query_decorators");var XC=function(){return _.Qj.apply(this,arguments)||this};
_.h(XC,_.Qj);_.S=XC.prototype;_.S.getState=function(){return this.store.getState()};
_.S.dispatch=function(D){this.store.dispatch(D)};
_.S.beforeRegister=function(){if(this&&typeof this==="object"){var D;var C=!!this.useSignals||!((D=this.polymerController)==null||!D.useSignals)}else C=!1;if(!C&&this.properties)for(C=_.U(Object.keys(this.properties)),D=C.next();!D.done;D=C.next()){var X=D.value;D=this.properties[X];if(D.selector){if(D.computed)throw Error("kg");X=["reduxPropertiesRecomputeTrigger",'"'+X+'"'].concat(_.VB(D.selectorArgs||[])).join(",");D.computed="recomputeReduxSelector("+X+")"}}};
_.S.attached=function(){var D=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){D.reduxPropertiesRecomputeTrigger++}));
_.b("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.S.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.S.recomputeReduxSelector=function(D,C){var X=_.MJ.apply(2,arguments),c=this.properties[C].selector;if(!c)throw Error("ig`"+C);return c.apply(null,[this.store.getState()].concat(_.VB(X)))};
_.S.select=function(D){var C=_.MJ.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return D.apply(null,[this.store.getState()].concat(_.VB(C)))};
_.$a.Object.defineProperties(XC.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
XC.prototype.recomputeReduxSelector=XC.prototype.recomputeReduxSelector;_.V([_.n(),_.z("design:type",Number)],XC.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.V([_.Br()],XC);var cm=[],y1d={},Nw=function(){return iQ.apply(this,arguments)||this};
_.h(Nw,iQ);Nw.prototype._addPropertyEffect=function(D,C,X){if(C==="__observeEffects"&&X){var c,W=(c=X.info.method)!=null?c:X.info.methodName;if(W){var p=this[W];this[W]=function(){cm.push(W);try{p==null||p.apply(this,arguments)}finally{cm.pop()}}}}_.Vb._addPropertyEffect.apply(this,[D,
C,X])};
Nw.prototype._setPendingProperty=function(D,C,X){if(cm.length){var c=cm[cm.length-1],W;(W=y1d[this.is])!=null&&W.has(c)||(nMm(this.is,c),_.zu("polymerPropertyChangedInObserver",{componentName:this.is,observerName:c}))}return _.Vb._setPendingProperty.apply(this,[D,C,X])};
_.V([pqh()],Nw);var wnj=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Zjd,KG={};_.b("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=KG);var LG=function(){return _.Qj.apply(this,arguments)||this};
_.h(LG,_.Qj);LG.prototype._setUnmanagedPropertyToNode=function(D,C,X){D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!0);if(X!==D[C]||typeof X==="object")D[C]=X;D.is&&D.polymerController&&D.polymerController!==D&&hA(D.is,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!1)};
_.V([_.Br()],LG);F3J()&&(Cl.prototype._setUnmanagedPropertyToNode=(new LG)._setUnmanagedPropertyToNode);_.Dcn={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(D){},set polymerController(D){}}]};var tA=function(){var D=iQ.apply(this,arguments)||this;D.json=function(){};
return D};
_.h(tA,iQ);tA.prototype.equals=function(D,C){return D===C};
tA.prototype.isEmpty=function(D){var C;(C=!D)||(C=_.JW(D)&&D.length===0);return C};
_.V([pqh()],tA);var Ki5=function(D){D=pGn(D);UM.call(this,D)};
_.h(Ki5,UM);Ki5.prototype.addProvider=function(D){D=D.key?D:pGn([D])[0];var C=this.keyIdToIndex.get(D.key.id);if(C){if(J1o(D,this.providers[C]))throw Error("lg`"+D.key.displayName);}else UM.prototype.addProvider.call(this,D)};
var hBJ=new Ki5([]);var xr5=!1;var dW3={};xr5||(fDm(),xr5=!0);
dW3.InjectBehavior={initializeInjection:function(){var D=this.provide;try{if((D=D!=null?D:[])&&D.length>0)for(var C=pGn(D),X=_.U(C),c=X.next();!c.done;c=X.next())hBJ.addProvider(c.value);var W=new Set;zHW(this.behaviors||[],W);C={};for(var p=_.U(W),g=p.next();!g.done;g=p.next()){var a=g.value;a.inject&&Object.assign(C,a.inject)}this.inject&&Object.assign(C,this.inject);for(var O=_.U(Object.keys(C)),P=O.next();!P.done;P=O.next()){var k=P.value,u=C[k];try{this[k]=hBJ.resolve(u)}catch(Q){throw Q;}}}catch(Q){throw Error(Q.message);
}}};var lDt;var CnR=/\bclass\b/.test(function(){}.toString()),o6m=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var LiC=function(D){this.wasDefined=!0;Array.isArray(D)||D instanceof Array?(this.JSC$13672_getImpl=D[0],this.JSC$13672_setImpl=D[1]):this.JSC$13672_getImpl=D};
_.S=LiC.prototype;_.S.getWithPath=function(D){return S$d(this.JSC$13672_getImpl(),D)};
_.S.setWithPath=function(D,C){var X=this;if(D.length)throw Error("mg");if(!this.JSC$13672_setImpl)throw Error("ng");Nm(function(){X.JSC$13672_setImpl(C)})};
_.S.notifyPath=function(){throw Error("og");};
_.S.notifySplices=function(){throw Error("pg");};
_.S.getChangeRecordSignal=function(D,C){var X=this;if(D.length)throw Error("qg");return function(){var c=X.getWithPath(D);return{path:C!=null?C:"",base:c,value:c}}};
_.S.getSplicesSignal=function(){throw Error("rg");};
_.S.getPathMutationSignal=function(){throw Error("sg");};
_.S.pop=function(){throw Error("tg");};
_.S.push=function(){throw Error("ug");};
_.S.splice=function(){throw Error("vg");};
_.S.unshift=function(){throw Error("wg");};var Wm=function(D){var C=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(D)||D instanceof Array?(this.JSC$13677_getImpl=D[0],this.JSC$13677_setImpl=D[1]):this.JSC$13677_getImpl=D;this.wasDefined=!1;_.hw(function(){C.wasDefined=C.JSC$13677_getImpl()!==void 0})};
Wm.prototype.getWithPath=function(D){return S$d(this.JSC$13677_getImpl(),D)};
Wm.prototype.setWithPath=function(D,C){var X=this;if(D[D.length-1]!=="*"&&D[D.length-1]!=="splices"){var c=_.hw(function(){return X.getWithPath([])});
if(D.length===0){if(!this.JSC$13677_setImpl)throw Error("xg");if(c===C)return;this.wasDefined||(this.wasDefined=C!==void 0);Nm(function(){X.JSC$13677_setImpl(C)})}else{for(var W=0;W<D.length-1;W++){if(!c)return;
c=c[D[W]]}W=D[D.length-1];c&&(c[W]=C);this.wasDefined||(this.wasDefined=D.length>1||C!==void 0)}sF4(this,D,{pathComponents:D,value:C})}};
Wm.prototype.notifyPath=function(D,C){D.length===0?C&&this.setWithPath(D,C.value):sF4(this,D,{pathComponents:D,value:C==null?void 0:C.value,fallbackWhenUndefined:C==null?void 0:C.value})};
var sF4=function(D,C,X,c){if(D.setMutationSignal){var W=++D.mutationIndex,p=[D.observedPath],g=D.observedPath,a;C.length===0&&(a=g);for(var O=0;O<C.length;O++){var P=g.subPaths[C[O]];if(!P)break;p.push(P);g=P;O===C.length-1&&(a=P)}for(C=!1;p.length;)g=p.shift(),g.data={index:W,mutation:X,spliceMutationIndex:c},C||(C=g===a),C&&p.push.apply(p,_.VB(Object.values(g.subPaths)));Nm(function(){D.setMutationSignal(W)})}};
Wm.prototype.notifySplices=function(D,C){var X=this,c=_.hw(function(){return X.getWithPath(D)}),W=[].concat(_.VB(D),["splices"]);
sF4(this,W,{pathComponents:W,value:{indexSplices:C}});if(c==null?0:c.length)C=this.mutationIndex,W=[].concat(_.VB(D),["length"]),sF4(this,W,{pathComponents:W,value:c.length},C)};
var mr5=function(D,C,X,c,W,p){D.notifySplices(X,[{index:c,addedCount:W,removed:p,object:C,type:"splice"}])},eB5=function(D,C){D=D.observedPath;
for(var X=0;X<C.length;X++){var c=C[X],W=D.subPaths[c];W||(W={pathComponents:C.slice(0,X+1),subPaths:{}},D.subPaths[c]=W);D=W}},t1C=function(D,C,X){eB5(D,C);
if(!D.getMutationSignal){var c=_.U(_.Li(D.mutationIndex,void 0,"sNBMCd"));D.getMutationSignal=c.next().value;D.setMutationSignal=c.next().value}var W=D.getMutationSignal;return _.tw(function(){W();return X(E$4(D,C))},void 0,"zvsXEd")};
Wm.prototype.getChangeRecordSignal=function(D,C){var X=this,c=this.mutationIndex,W;return t1C(this,D,function(p){if(p&&p.index>c){var g=p.mutation;c=p.index;W=void 0}p=_.hw(function(){return X.getWithPath(D)});
if(g){var a=g.pathComponents[g.pathComponents.length-1],O=[].concat(_.VB(g.pathComponents));if(a==="splices"||a==="length")return{base:p,path:(C?[C].concat(_.VB(O)):O).join("."),value:g.value};var P=D.length>O.length?D:O,k;return{base:p!=null?p:g.fallbackWhenUndefined,path:(C?[C].concat(_.VB(P)):P).join("."),value:(k=_.hw(function(){return X.getWithPath(P)}))!=null?k:g.fallbackWhenUndefined}}W||(W={base:p,
path:(C?[C].concat(_.VB(D)):D).join("."),value:p});return W})};
Wm.prototype.getSplicesSignal=function(D){var C=this.mutationIndex,X;return t1C(this,D,function(c){if(c&&c.index>C&&c.spliceMutationIndex!==C){var W=c.mutation;C=c.index;X=void 0}return W&&W.pathComponents[W.pathComponents.length-1]==="splices"?X=c=W.value:X})};
Wm.prototype.getPathMutationSignal=function(D){var C=this;eB5(this,D);if(!this.getMutationSignal){var X=_.U(_.Li(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=X.next().value;this.setMutationSignal=X.next().value}var c=this.getMutationSignal,W=this.mutationIndex,p;return _.tw(function(){c();var g=E$4(C,D);if(g&&g.index>W&&g.mutation&&UcW(g.mutation.pathComponents,D)){var a=g.mutation;W=g.index}if(!p||W!==p.index){var O,P;g=(P=_.hw(function(){return C.getWithPath(D)}))!=null?P:(O=a)==null?
void 0:O.fallbackWhenUndefined;
p={index:W,value:g}}return p},void 0,"RXYC9b")};
var E$4=function(D,C){D=D.observedPath;C=_.U(C);for(var X=C.next();!X.done;X=C.next())D=D.subPaths[X.value];return D.data};
Wm.prototype.pop=function(D){var C=this,X=_.hw(function(){return C.getWithPath(D)});
if(!(X instanceof Array))throw Error("yg");var c=X.length>0,W=X.pop();c&&mr5(this,X,D,X.length,0,[W]);return W};
Wm.prototype.push=function(D){var C=_.MJ.apply(1,arguments),X=this,c=_.hw(function(){return X.getWithPath(D)});
if(!(c instanceof Array))throw Error("zg");var W=c.length,p=c.push.apply(c,_.VB(C));C.length&&mr5(this,c,D,W,C.length,[]);return p};
Wm.prototype.splice=function(D,C,X){var c=_.MJ.apply(3,arguments),W=this,p=_.hw(function(){return W.getWithPath(D)});
if(!(p instanceof Array))throw Error("Ag");C<0?C=p.length-Math.floor(-C):C&&(C=Math.floor(C));var g=p.splice.apply(p,[C,X].concat(_.VB(c)));(c.length||g.length)&&mr5(this,p,D,C,c.length,g);return g};
Wm.prototype.unshift=function(D){var C=_.MJ.apply(1,arguments),X=this,c=_.hw(function(){return X.getWithPath(D)});
if(!(c instanceof Array))throw Error("Bg");var W=c.unshift.apply(c,_.VB(C));C.length&&mr5(this,c,D,0,C.length,[]);return W};var p4=function(D,C,X){this.model=D;this.unknownSignalResolver=C;this.options=X;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];C=_.U(idh());D=C.next().value;C=C.next().value;this.owner=D;this.disposeImpl=C};
p4.prototype.dispose=function(){if(!this.isDisposed){for(var D=_.U(this.childSignalProxies),C=D.next();!C.done;C=D.next())C.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Nnc=function(D,C){D=_.Oz(D.owner);try{C()}finally{_.Oz(D)}};
p4.prototype.effect=function(D){Nnc(this,function(){_.He(D,"h")})};
var Ytx=function(D,C){D.options!=null||(D.options={});var X;(X=D.options).immutableProps!=null||(X.immutableProps=new Set);D.options.immutableProps.add(C)},T4j=function(D,C){C=""+C;
ydN(D,C);var X,c;if((X=D.options)==null?0:(c=X.immutableProps)==null?0:c.has(C))return!0;var W;if((W=D.model.__signalCache)==null?0:W.has(C))X=D.model.__signalCache.get(C),Array.isArray(X)&&Ytx(D,C);var p,g,a;return(a=(p=D.options)==null?void 0:(g=p.immutableProps)==null?void 0:g.has(C))!=null?a:!1},n$4=function(D,C){var X;
D.unknownSignalResolver&&(X=D.unknownSignalResolver(C));var c,W;((c=D.options)==null?0:(W=c.immutableProps)==null?0:W.has(C))?X!=null||(X=new LiC(_.Li(D.model[C],void 0,"By5iP"))):X!=null||(X=new Wm(_.Li(D.model[C],void 0,"CXghNc")));var p=D.model.hostElement;Object.defineProperty(D.model,C,{get:function(){Vw3(p,C);return X.getWithPath([])},
set:function(g){xn(p,C);D.setWithPath([C],g)},
configurable:!0});return X},ydN=function(D,C){var X,c,W;
((X=D.model.__signalCache)==null||!X.has(C))&&((c=D.options)==null?0:(W=c.externalSignalProps)==null?0:W.has(C))&&D.model[C]},Fz=function(D,C){C=""+C;
var X=D.signalCache[C];if(X!==void 0)return X;X=!1;ydN(D,C);var c;if((c=D.model.__signalCache)==null?0:c.has(C))if(X=D.model.__signalCache.get(C),Array.isArray(X))X=!0,Ytx(D,C);else return D.signalCache[C]=D.model.__signalCache.get(C).signal,D.signalCache[C];var W,p;c=(p=(W=D.options)==null?void 0:W.reactivityMode)!=null?p:0;var g,a;if(!((g=D.options)==null?0:(a=g.reactiveProps)==null?0:a.has(C))&&!X&&c===1)throw Error("Cg`"+C);W=X?wZq(D,C):n$4(D,C);return D.signalCache[C]=W},wZq=function(D,C){var X=
Object.getOwnPropertyDescriptor(D.model.constructor.prototype,C),c=function(){return D.model[C]};
return new LiC(X&&X.get&&!X.set?c:[c,function(W){D.model[C]=W}])};
p4.prototype.getWithPath=function(D){var C=_.U(D);D=C.next().value;C=g8(C);Vw3(this.model.hostElement,""+D);return Fz(this,D).getWithPath(C)};
p4.prototype.setWithPath=function(D,C){if(D.length){xn(this.model.hostElement,D.join("."));var X=_.U(D);D=X.next().value;X=g8(X);Fz(this,D).setWithPath(X,C)}};
p4.prototype.getPathMutationSignal=function(D){var C=_.U(D);D=C.next().value;C=g8(C);return Fz(this,D).getPathMutationSignal(C)};
p4.prototype.notifyPath=function(D,C){var X=_.U(D);D=X.next().value;X=g8(X);Fz(this,D).notifyPath(X,C)};
var Fi5=function(D,C){if(C.type==="literal")return function(){return{rootWasDefined:!0,value:C.value}};
var X=nG(C.path),c=_.U(X),W=c.next().value;c=g8(c);var p,g;if(C.type==="path"&&(X.length===1||((p=D.options)==null?0:(g=p.immutableProps)==null?0:g.has(W))))return function(){var u=D.getWithPath(X.slice(0,1));u=S$d(u,X.slice(1));return{rootWasDefined:Fz(D,X[0]).wasDefined,value:u}};
var a=Fz(D,W);if(C.type==="path"){var O=a.getPathMutationSignal(c);return function(){var u,Q=(u=O())==null?void 0:u.value;return{rootWasDefined:a.wasDefined,value:Q}}}if(C.type==="splices"){var P=a.getSplicesSignal(c);
return function(){var u=P();return{rootWasDefined:a.wasDefined,value:u}}}var k=a.getChangeRecordSignal(c,""+W);
return function(){var u=k();return{rootWasDefined:a.wasDefined,value:u}}},Pnn=function(D,C,X){var c=X.map(function(a){return Fi5(D,a)}),W=X.length===0,p=[],g=X.length!==1||X[0].type!=="path"?!1:!0;
D.effect(function(){for(var a=c.length,O=[],P=!!p.length,k=0;k<a;k++){var u=c[k](),Q=u.rootWasDefined;u=u.value;W||(W=Q);O[k]=u;g&&(O[k+a]=P?p[k]:O[k],p[k]=u)}W&&qm(D.owner,function(){return void C.apply(null,_.VB(O))})})},g6Z=function(D,C,X,c,W){var p=Fz(D,C);
W!==void 0&&p.setWithPath([],W);Pnn(D,function(){var g=_.MJ.apply(0,arguments);xn(D.model.hostElement,C,!0);p.setWithPath([],X.apply(null,_.VB(g)))},c)};
p4.prototype.arrayPush=function(D){var C=_.MJ.apply(1,arguments),X=_.U(D),c=X.next().value;X=g8(X);c=Fz(this,c);return c.push.apply(c,[X].concat(_.VB(C)))};
p4.prototype.arraySplice=function(D,C,X){var c=_.MJ.apply(3,arguments),W=_.U(D),p=W.next().value;W=g8(W);p=Fz(this,p);return p.splice.apply(p,[W,C,X].concat(_.VB(c)))};
p4.prototype.arrayUnshift=function(D){var C=_.MJ.apply(1,arguments),X=_.U(D),c=X.next().value;X=g8(X);c=Fz(this,c);return c.unshift.apply(c,[X].concat(_.VB(C)))};
p4.prototype.notifySplices=function(D,C){var X=_.U(D);D=X.next().value;X=g8(X);Fz(this,D).notifySplices(X,C)};var Zsx=!0,G8e=!1,HEF=!1,V1C=!1,Tnf=0;V1C=!1;Tnf=0;Zsx=!0;G8e=HEF=!1;var ro5=/([^\s]+?)\(([\s\S]*)\)/,Qfn=/\.([^.]+)$/,hFF=/\\,/g,kaW=/&comma;/g,uBW=/\\(.)/g,KSn=[],B4Z={"*":"wildcard",splices:"splices"};var yoh=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"),E6W=/[A-Z]/,Hse=["class","hidden","id","on-dom-change"],whZ=new Set([].concat(_.VB(Hse),
["if","notify-dom-change","restamp"])),FSj=new Set([].concat(_.VB(Hse),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Zd5=new Set(["restamp"]);var wbr=new Set(["className","id"]);var Jon=Symbol(),RF3=window;var p33=window;var ANm=0,gB5=0,ZJ=[],OE5=0,UBJ=!1,IOm=document.createTextNode("");(new window.MutationObserver(aOn)).observe(IOm,{characterData:!0});var Vj=new Map,GA=0,JdN=function(D){this.mappedHandleId=D},$BW=function(D,C,X,c){this.mappedHandleId=D;
var W=this;this.mappedHandleId=D;this.callback=C;this.waitTime=X;this.schedulerPriority=c;this.handleId=_.qX.addJob(function(){W.callback();Vj.delete(W.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.h($BW,JdN);$BW.prototype.cancel=function(){_.qX.cancelJob(this.handleId);Vj.delete(this.mappedHandleId)};
var vBj=function(D,C){this.mappedHandleId=D;var X=this;this.mappedHandleId=D;this.callback=C;this.handleId=P$m(function(){X.callback();Vj.delete(X.mappedHandleId)})};
_.h(vBj,JdN);vBj.prototype.cancel=function(){var D=this.handleId-gB5;D<0||ZJ.length<=D||(ZJ[D]=null);Vj.delete(this.mappedHandleId)};var Q6r=function(){};
Q6r.prototype.cancel=function(){this.jobHandle!==void 0&&(iEm(this.jobHandle),this.jobHandle=void 0)};
Q6r.prototype.run=function(D,C,X){var c=this;this.cancel();this.callback=D;this.jobHandle=_.TA(function(){D();c.callback=void 0},C,X)};
Q6r.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var kfm=new WeakMap;var zB5=Ax(function(D){for(var C=D,X=0;X<3;X++)C=Object.getPrototypeOf(C);delete C.prototype.connectedCallback;var c=function(){return D.apply(this,arguments)||this};
_.h(c,D);c.prototype._attachDom=function(W){if(!W)return null;var p=(0,_.Io)(this.hostElement);p.attachShadow({mode:"open",shadyUpgradeFragment:W});p.shadowRoot.appendChild(W);return p.shadowRoot};
c.prototype._takeAttributes=function(){for(var W=this.hostElement.attributes,p=0;p<W.length;p++){var g=W[p],a=void 0,O=void 0;(O=(a=this).__attributeReaction)==null||O.call(a,g.name,null,g.value)}};
c.prototype._readyClients=function(){D.prototype._readyClients.call(this);this.root=this};
c.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);D.prototype.connectedCallback.call(this)};
_.$a.Object.defineProperties(c,{template:{configurable:!0,enumerable:!0,get:function(){return c.prototype._template}}});
return c}),jF4=Ax(function(D){var C=function(){return D.apply(this,arguments)||this};
_.h(C,D);C.prototype.created=function(){if(this.__notifyEffects)for(var X=_.U(Object.values(this.__notifyEffects)),c=X.next();!c.done;c=X.next()){c=_.U(c.value);for(var W=c.next();!W.done;W=c.next())W.value.fn=KAR}if(this.__reflectEffects)for(X=_.U(Object.values(this.__reflectEffects)),c=X.next();!c.done;c=X.next())for(c=_.U(c.value),W=c.next();!W.done;W=c.next())W.value.fn=hwm};
C.prototype._addEventListenerToNode=function(X,c,W){X=JA(X);MI(X,c,W)||D.prototype._addEventListenerToNode.call(this,X,c,W)};
C.prototype._removeEventListenerFromNode=function(X,c,W){X=JA(X);qI(X,c,W)||D.prototype._removeEventListenerFromNode.call(this,X,c,W)};
C.prototype._propertiesChanged=function(X,c,W){if(this.__dataToNotify&&this.__notifyEffects)for(var p=_.U(Object.keys(this.__dataToNotify)),g=p.next();!g.done;g=p.next()){g=g.value;var a=rNt(g);this.__notifyEffects[a]||delete this.__dataToNotify[g]}else this.__dataToNotify=null;D.prototype._propertiesChanged.call(this,X,c,W)};
C.prototype.fire=function(X,c,W){c=c===void 0?{}:c;var p;return _.lE(JA((p=W==null?void 0:W.node)!=null?p:this),X,c,W)};
C.prototype._ensureAttribute=function(X,c){var W=JA(this);W.hasAttribute(X)||wi(W,c,X)};
C.prototype.isLightDescendant=function(X){var c=JA(this);return JA(c)!==X&&_.SY(c).contains(X)&&_.SY(c).getRootNode()===_.SY(X).getRootNode()};
return C});
_.Jn.ready=function(){var D;((D=this.hostElement)!=null?D:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var C;((C=this.hostElement)!=null?C:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.lR._subscribeIronResize=function(D){var C;((C=D.hostElement)!=null?C:D).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.lR._unsubscribeIronResize=function(D){var C;((C=D.hostElement)!=null?C:D).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var s6j=[Array,Boolean,Date,Number,Object,String],jY=function(D,C,X,c){this.polySiInfo=D;this.polySiParams=C;this.polySiContext=X;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;c||this instanceof HTMLElement&&(c=this);if(!c)throw Error("Jg");this.allowedProps=C.allowedProps;this.hostElement=c;this.is=D.is;this.upgradeDisabled=!!C.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");D=new Set(C.reactiveSchemas.filter(function(W){return W.type!==
"observe"}).map(function(W){return W.propertyKey}));
this.signalProxy=new p4(this,void 0,{reactiveProps:D,reactivityMode:C.reactivityMode});this.__dataHasAccessor={};C=_.U(C.reactiveSchemas);for(D=C.next();!D.done;D=C.next())D=D.value,D.type==="signal"&&(this.__dataHasAccessor[D.propertyKey]=!0);this.upgradeDisabled||M1N(this)};
jY.prototype.getExtraMethodsToForward=function(){return[]};
var M1N=function(D){D.polySiContext.didRegister||(D.registered(),D.polySiContext.didRegister=!0);D.polySiContext.finalizedTemplate||(D.polySiContext.finalizedTemplate={},D.polySiParams.templateGetter&&(D.polySiContext.finalizedTemplate.processedTemplate=SxR(D.polySiParams.templateGetter,D.polySiParams.is)));qtN(D);var C=D.hostElement;C.loggingStatus!=null||(C.loggingStatus={});C.loggingStatus.isInitializing=!0;_.hw(function(){return void D.created()});
C.loggingStatus.isInitializing=!1;D.isPolySiElementConnected&&fzq(D)},fzq=function(D){D.didCallReady||(_.hw(function(){return void D.ready()}),D.didCallReady=!0);
D.isAttached=!0;D.attached()};
_.S=jY.prototype;_.S.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||fzq(this)};
_.S.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.S.attributeChangedCallback=function(D,C,X){if(this.upgradeDisabled)D==="disable-upgrade"&&X===null&&(this.upgradeDisabled=!1,M1N(this));else if(C!==X){var c=_.aB(D),W=this.polySiContext.typesForSignals[c];if(W&&(!this.reflecting||_.b("polysi_attribute_changed_serializing_killswitch"))){switch(W){case Object:try{var p=JSON.parse(X)}catch(a){p=X}break;case Array:try{p=JSON.parse(X)}catch(a){p=null}break;case Date:p=isNaN(X)?String(X):Number(X);p=new Date(p);break;case Boolean:p=X!==null;break;case Number:p=
Number(X);break;default:p=X}this[c]=p}c=_.U(this.polySiParams.behaviors);for(W=c.next();!W.done;W=c.next())p=void 0,(p=W.value.attributeChanged)==null||p.call(this,D,C,X);var g;(g=this.attributeChanged)==null||g.call(this,D,C,X)}};
_.S.attributeChangedCallbackWrapper=function(D,C,X){this.attributeChangedCallback(D,C,X)};
_.S.setPropertiesFromInitialAttributeValues=function(){for(var D=0;D<this.hostElement.attributes.length;D++){var C=this.hostElement.attributes[D];(C.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(C.name))&&this.attributeChangedCallback(C.name,null,C.value)}};
_.S.created=function(){this.provide=this.polySiParams.provide;var D;(D=this.initializeInjection)==null||D.call(this);D=_.U(this.polySiParams.reactiveSchemas);for(var C=D.next();!C.done;C=D.next())C=C.value,C.type==="signal"&&(this.mutablePropNames.add(C.propertyKey),Fz(this.signalProxy,C.propertyKey));LAo(this,this.polySiInfo,this.polySiParams.behaviors);D=_.U(this.polySiParams.reactiveSchemas);for(C=D.next();!C.done;C=D.next())C=C.value,C.type==="signal"&&C.value!==void 0&&(this.signalProxy.model[C.propertyKey]=
typeof C.value==="function"?C.value.call(this):C.value);if(this.polySiParams.signalProperties)for(D=_.U(this.polySiParams.signalProperties),C=D.next();!C.done;C=D.next()){C=C.value;var X=void 0;((X=this.__signalCache)==null?0:X.has(C))||(this.signalProxy.model[C]=void 0)}V1C||dr4(this);xBd(this);D=_.U(this.polySiParams.behaviors);for(C=D.next();!C.done;C=D.next())X=void 0,(X=C.value.created)==null||X.call(this);var c;(c=this.polySiInfo.created)==null||c.call(this)};
_.S.registered=function(){var D=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var C=Object.getPrototypeOf(this);C.addReactiveSchema=function(a){D.polySiParams.reactiveSchemas.push(a)};
for(var X=_.U(this.polySiParams.behaviors),c=X.next();!c.done;c=X.next()){var W=void 0;(W=c.value.beforeRegister)==null||W.call(C)}var p;(p=this.polySiInfo.beforeRegister)==null||p.call(C);C.addReactiveSchema=ewh;X=_.U(this.polySiParams.behaviors);for(c=X.next();!c.done;c=X.next())W=void 0,(W=c.value.registered)==null||W.call(C);var g;(g=this.polySiInfo.registered)==null||g.call(C)};
_.S.ready=function(){var D;(D=this.beforeReady)==null||D.call(this);V1C&&dr4(this);var C;if(D=(C=this.polySiContext.finalizedTemplate)==null?void 0:C.processedTemplate){D=WAJ(D.template,D.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:D.hasInsertionPoint,thisCtx:this});C=D.nodesById;D=D.root;var X=this.hostElement;var c=c===void 0?!1:c;X=(0,_.Io)(X);if(!X.attachShadow)throw Error("Hd");if(!X.shadowRoot||c)X.attachShadow({mode:"open",shadyUpgradeFragment:D}),X.shadowRoot.appendChild(D);
this.root=X.shadowRoot;this.$=C}RBN(this);c=_.U(this.polySiParams.behaviors);for(C=c.next();!C.done;C=c.next())D=void 0,(D=C.value.ready)==null||D.call(this);var W;(W=this.polySiInfo.ready)==null||W.call(this)};
_.S.attached=function(){for(var D=_.U(this.polySiParams.behaviors),C=D.next();!C.done;C=D.next()){var X=void 0;(X=C.value.attached)==null||X.call(this)}var c;(c=this.polySiInfo.attached)==null||c.call(this)};
_.S.detached=function(){for(var D=_.U(this.polySiParams.behaviors),C=D.next();!C.done;C=D.next()){var X=void 0;(X=C.value.detached)==null||X.call(this)}var c;(c=this.polySiInfo.detached)==null||c.call(this)};
var qtN=function(D){for(var C=_.U(D.polySiParams.behaviors),X=C.next();!X.done;X=C.next())if(X=X.value,X.listeners)for(var c in X.listeners)oB5(D,D.hostElement,c,X.listeners[c]);if(D.polySiInfo.listeners)for(var W in D.polySiInfo.listeners)oB5(D,D.hostElement,W,D.polySiInfo.listeners[W])},oB5=function(D,C,X,c,W){D=phh(D,c,W);
MI(C,X,D)||C.addEventListener(X,D);return D},dr4=function(D){for(var C=_.U(D.polySiParams.reactiveSchemas),X=C.next();!X.done;X=C.next())X=X.value,X.type==="compute"||X.type==="computeWithMethod"?a8j(D.signalProxy,X,D):X.type==="redux"?Aoh(D.signalProxy,X,D.store):X.type==="signal"&&X.readOnly&&Odn(D.signalProxy,X)},RBN=function(D){for(var C=_.U(D.polySiParams.reactiveSchemas),X=C.next(),c={};!X.done;c={schema$jscomp$12:void 0},X=C.next())c.schema$jscomp$12=X.value,c.schema$jscomp$12.type==="notify"?
$ct(D.signalProxy,c.schema$jscomp$12,D.hostElement):c.schema$jscomp$12.type==="observe"?v6r(D.signalProxy,c.schema$jscomp$12,D):c.schema$jscomp$12.type==="reflect"&&D.signalProxy.effect(function(p){return function(){var g=D.signalProxy.getWithPath([p.schema$jscomp$12.propertyKey]);
D.reflecting=!0;LSn(D.hostElement,p.schema$jscomp$12.propertyKey,g,!0);D.reflecting=!1}}(c));
if(D.reflectedAttributes)for(C=_.U(Object.entries(D.reflectedAttributes)),c=C.next(),X={};!c.done;X={key$jscomp$938:void 0,value$jscomp$10225:void 0},c=C.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;X.key$jscomp$938=c;X.value$jscomp$10225=W;D.signalProxy.effect(function(p){return function(){D.reflecting=!0;LSn(D.hostElement,p.key$jscomp$938,(0,p.value$jscomp$10225)(),!0);D.reflecting=!1}}(X))}};
_.S=jY.prototype;_.S._setPendingProperty=function(D,C){this.set(D,C);return!1};
_.S._enableProperties=function(){};
_.S._setPendingPropertyOrPath=function(D,C){this.notifyPath(D,C);return!1};
_.S._addPropertyEffect=function(){};
_.S._stampTemplate=function(){throw Error("Kg");};
_.S.fire=function(D,C,X){C=C===void 0?{}:C;X=X===void 0?{}:X;var c,W,p={bubbles:(c=X.bubbles)!=null?c:!0,cancelable:!!X.cancelable,composed:(W=X.composed)!=null?W:!0},g;return _.lE(EBm((g=X.node)!=null?g:this.hostElement),D,C,p)};
_.S.get=function(D,C){var X=nG(D);return C?S$d(C,X):D==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(X)};
_.S.linkPaths=function(){};
_.S.listen=function(D,C,X){D=EBm(D);this.boundListeners!=null||(this.boundListeners=new WeakMap);var c=this.boundListeners.get(D);c||(c={},this.boundListeners.set(D,c));var W=C+X;c[W]||(c[W]=oB5(this,D,C,X))};
_.S.notifyPath=function(D,C){this.signalProxy.notifyPath(nG(D),arguments.length===2?{value:C}:void 0)};
_.S.canNotifyPath=function(D){return this.mutablePropNames.has(D)&&!T4j(this.signalProxy,D)};
_.S.notifySplices=function(D,C){this.signalProxy.notifySplices(nG(D),C)};
_.S.pop=function(D){var C=this.signalProxy;D=nG(D);var X=_.U(D);D=X.next().value;X=g8(X);return Fz(C,D).pop(X)};
_.S.push=function(D){var C=_.MJ.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[nG(D)].concat(_.VB(C)))};
_.S.set=function(D,C,X){if(X)throw Error("Lg");D==="hidden"?this.hostElement.hidden=!!C:this.signalProxy.setWithPath(nG(D),C)};
_.S.setProperties=function(D){D=_.U(Object.entries(D));for(var C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;this[C]=X}};
_.S.splice=function(D,C,X){var c=_.MJ.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[nG(D),C,X].concat(_.VB(c)))};
_.S.unlinkPaths=function(){};
_.S.unlisten=function(D,C,X){D=EBm(D);if(this.boundListeners){var c=this.boundListeners.get(D);if(c){X=C+X;var W=c[X];W&&(qI(D,C,W)||D.removeEventListener(C,W),delete c[X])}}};
_.S.unshift=function(D){var C=_.MJ.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[nG(D)].concat(_.VB(C)))};
_.$a.Object.defineProperties(jY.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 TMm=[Array,Boolean,Date,Number,Object,String];var zw3=!1;var SO=function(){var D=HTMLElement.apply(this,arguments)||this;D.restamp=!1;D.notifyDomChange=!1;D.JSC$13785_didCallConnected=!1;D.JSC$13785_renderDebouncer=null;D.disableTemplateUpdateSignalImpl=Mw()?void 0:_.Li(!1,void 0,"Ofhkwb");var C;D.getDisableTemplateUpdate=(C=D.disableTemplateUpdateSignalImpl)==null?void 0:C[0];var X;D.setDisableTemplateUpdate=(X=D.disableTemplateUpdateSignalImpl)==null?void 0:X[1];return D};
_.h(SO,HTMLElement);var lzN=function(D){D.conditionSignalImpl!=null||(D.conditionSignalImpl=new Wm(_.Li(!1,void 0,"gE52Fb")));return D.conditionSignalImpl};
_.S=SO.prototype;_.S.showHideChildren=function(D){D7f(this,D,this.if)};
_.S.attributeChangedCallback=function(D,C,X){if(this.JSC$13785_didCallConnected)throw Error("Pg`"+D);D==="notify-dom-change"?this.notifyDomChange=X!==null:D==="restamp"&&(this.restamp=X!==null)};
_.S.debounceRender=function(){this.JSC$13785_renderDebouncer=_.Kr(this.JSC$13785_renderDebouncer,d0,this.JSC$13785_renderImpl.bind(this));_.hx(this.JSC$13785_renderDebouncer)};
_.S.disconnectedCallback=function(){var D=(0,_.Io)(this).parentNode;(!D||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in D&&!D.host)&&C3x(this)};
_.S.connectedCallback=function(){var D=this;this.JSC$13785_didCallConnected=!0;Zsx?j6t():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.b("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){lzN(D).getWithPath([]);D.debounceRender()})};
_.S.render=function(){_.m8()};
_.S.JSC$13785_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var D=this.if,C=!1;if(D){this.hasInstance()||(XQb(this),C=!0);a:{var X=(0,_.Io)(this).parentNode;if(this.hasInstance()){var c=this.instance.children;if((c==null?0:c.length)&&(0,_.Io)(this).previousSibling!==c[c.length-1])for(var W=0;W<c.length;W++)(0,_.Io)(X).insertBefore(c[W],this)}else{if(!X){X=!1;break a}c4C(this,X)}X=!0}if(!X)return}else this.restamp&&C3x(this);D7f(this,!1,D);D&&!C&&XQb(this);G8e&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.S.hasInstance=function(){return!!this.instance};
var c4C=function(D,C){var X=D.parentSignalProxy;if(Mw()){var c=_.U(_.Li(!0,void 0,"dkzufd"));var W=c.next().value;c=c.next().value;X=D.parentSignalProxy}else{var p;var g=new p4((p=okg(D))!=null?p:{},function(O){var P=Fz(D.parentSignalProxy,O).getChangeRecordSignal([]);O=_.Li(void 0,void 0,"iG8Uwe");var k=new Wm(O);g.effect(function(){if(D.getDisableTemplateUpdate&&!D.getDisableTemplateUpdate()){var u=P();k.notifyPath(nG(u.path),{value:u.value})}});
return k});
D.parentSignalProxy.childSignalProxies.push(g);var a=X=g}X=WAJ(D.templateInfo,D.templateInfo.nodeInfoList,X,{eventListenerHost:D.eventListenerHost,hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,enabledSignal:Mw()?W:void 0,getModel:function(){return okg(D)}}).root;
D.instance={root:X,children:[],hidden:!1,signalProxy:a,getTemplateUpdatesEnabled:W,setTemplateUpdatesEnabled:c};a=_.U(X.childNodes);for(W=a.next();!W.done;W=a.next())D.instance.children.push(W.value);(0,_.Io)(C).insertBefore(D.instance.root,D)},okg=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var C={},X;
for(X in D)D.hasOwnProperty(X)&&(C[X]=D[X]);return C}},C3x=function(D){if(D.instance){var C=D.instance.children;
if(C.length){var X=(0,_.Io)(C[0]).parentNode;if(X){X=(0,_.Io)(X);for(var c=0;c<C.length;c++)X.removeChild(C[c])}}Mw()?D.instance.setTemplateUpdatesEnabled(!1):D.instance.signalProxy.dispose();D.instance=void 0}},D7f=function(D,C,X){C=C||!X;
D.instance&&D.instance.hidden!==C&&(D.instance.hidden=C,JNt(C,D.instance.children))},XQb=function(D){if(Mw()){var C=D.instance;
C&&qm(D.parentSignalProxy.owner,function(){return!C.getTemplateUpdatesEnabled()})&&C.setTemplateUpdatesEnabled(!0)}else D.setDisableTemplateUpdate(!1)};
_.$a.Object.defineProperties(SO.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var D=this;return qm(this.parentSignalProxy.owner,function(){return lzN(D).getWithPath([])})},
set:function(D){D||(Mw()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));lzN(this).setWithPath([],!!D)}}});
_.$a.Object.defineProperties(SO,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",SO);var WKd=[],U7=function(){var D=HTMLElement.apply(this,arguments)||this;D.as="item";D.indexAs="index";D.itemsIndexAs="itemsIndex";D.targetFramerate=20;D.notifyDomChange=!1;D.isDetached=!1;D.JSC$13792_renderDebouncer=null;D.instances=[];D.chunkingId=null;D.chunkCount=null;D.shouldMeasureChunk=!1;D.shouldContinueChunking=!1;D.renderStartTime=null;D.JSC$13792_didCallConnected=!1;return D};
_.h(U7,HTMLElement);var pQ5=function(D){D.itemSignalImpl!=null||(D.itemSignalImpl=new Wm(_.Li(WKd,void 0,"YBrqgf")));return D.itemSignalImpl},Sbk=function(D,C){Array.isArray(C)||(C=WKd);
pQ5(D).setWithPath([],C)};
_.S=U7.prototype;_.S.showHideChildren=function(D){for(var C=_.U(this.instances),X=C.next();!X.done;X=C.next())JNt(D,X.value.children)};
_.S.notifyPath=function(D,C){D=nG(D);D[0]==="items"&&(D.length===1?Sbk(this,C):pQ5(this).setWithPath(D.slice(1),C))};
_.S.canNotifyPath=function(D){return D==="items"};
_.S.attributeChangedCallback=function(D,C,X){if(this.JSC$13792_didCallConnected)throw Error("Qg`"+D);D==="as"?this.as=X:D==="index-as"?this.indexAs=X:D==="items-index-as"?this.itemsIndexAs=X:D==="initial-count"?this.initialCount=Number(X):D==="notify-dom-change"?this.notifyDomChange=X!==null:D==="target-framerate"&&(this.targetFramerate=Number(X))};
_.S.disconnectedCallback=function(){this.isDetached=!0;for(var D=0;D<this.instances.length;D++)U7J(this,D);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.S.connectedCallback=function(){var D=this,C=pQ5(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var W=C(),p=nG(W.path);if(p[0]===void 0||p[0]==="splices"||p[0]==="length")D.debounceRender();else{var g=p[0];if(g=D.instances[typeof g==="string"?Math.floor(Number(g)):g])p=[D.as].concat(_.VB(p.slice(1))),g.signalProxy.notifyPath(p,W)}});
this.JSC$13792_didCallConnected=!0;Zsx?j6t():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var X=(0,_.Io)((0,_.Io)(this).parentNode),c=0;c<this.instances.length;c++)X.insertBefore(this.instances[c].root,this);this.chunkingId&&this.render()}};
_.S.debounceRender=function(){this.JSC$13792_renderDebouncer=_.Kr(this.JSC$13792_renderDebouncer,d0,this.JSC$13792_renderImpl.bind(this));_.hx(this.JSC$13792_renderDebouncer)};
_.S.render=function(){this.debounceRender();_.m8()};
_.S.JSC$13792_renderImpl=function(){var D=this;if(!this.parentSignalProxy.isDisposed){var C=this.items,X=gk4(this,C.length);a3d(this,C,X);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){D.chunkingId=null;if(D.shouldMeasureChunk){var c=performance.now()-D.renderStartTime;D.chunkCount=Math.round(Math.ceil(1E3/D.targetFramerate)/c*D.chunkCount)||1}D.shouldContinueChunking&&D.debounceRender()}));
G8e&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var gk4=function(D,C){var X=C,c=D.instances.length;if(D.initialCount){if(D.chunkCount){var W=Math.min(Math.max(C-c,0),D.chunkCount);X=Math.min(c+W,C)}else X=Math.min(C,D.initialCount),W=Math.max(X-c,0),D.chunkCount=W||1;D.shouldMeasureChunk=W===D.chunkCount;D.shouldContinueChunking=X<C;D.renderStartTime=performance.now()}return X},a3d=function(D,C,X){for(var c=0;c<X;c++){var W=D.instances[c],p=C[c];
W?(W.signalProxy.setWithPath([D.as],p),W.signalProxy.setWithPath([D.indexAs],c)):I3x(D,p,c)}for(C=D.instances.length-1;C>=c;C--)X=D,W=C,U7J(X,W),_.U(X.instances.splice(W,1)).next().value.signalProxy.dispose()},U7J=function(D,C){D=D.instances[C];
C=(0,_.Io)(D.root);for(var X=0;X<D.children.length;X++)C.appendChild(D.children[X])},I3x=function(D,C,X){var c={};
C=Object.assign({},ODb(D),(c[D.as]=C,c[D.indexAs]=X,c[D.itemsIndexAs]=X,c));var W=new p4(C,function(g){if(g!==D.as&&g!==D.indexAs){if(g===D.itemsIndexAs)return Fz(W,D.indexAs);var a=Fz(D.parentSignalProxy,g).getChangeRecordSignal([]);g=_.Li(void 0,void 0,"T21Pqc");var O=new Wm(g);W.effect(function(){var P=a();O.notifyPath(nG(P.path),{value:P.value})});
return O}});
D.parentSignalProxy.childSignalProxies.push(W);c=WAJ(D.templateInfo,D.templateInfo.nodeInfoList,W,{eventListenerHost:D.eventListenerHost,getModel:function(){var g={};return Object.assign({},ODb(D),(g[D.as]=W.model[D.as],g[D.indexAs]=W.model[D.indexAs],g[D.itemsIndexAs]=W.model[D.indexAs],g))},
hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,methodInvocationRequirement:Tnf,enabledSignal:D.stampingEnabled}).root;C={root:c,children:[],signalProxy:W};c=_.U(c.childNodes);for(var p=c.next();!p.done;p=c.next())C.children.push(p.value);c=(c=D.instances[X+1])?c.children[0]:D;(0,_.Io)((0,_.Io)(D).parentNode).insertBefore(C.root,c);D.instances[X]=C},ODb=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var C={},X;
for(X in D)D.hasOwnProperty(X)&&(C[X]=D[X]);return C}};
U7.prototype.itemForElement=function(D){var C=this,X=this.instances.find(function(c){return c.children.includes(D)});
if(X)return qm(this.parentSignalProxy.owner,function(){return X.signalProxy.getWithPath([C.as])})};
U7.prototype.indexForElement=function(D){var C=this.instances.findIndex(function(X){return X.children.includes(D)});
return C>=0?C:void 0};
_.$a.Object.defineProperties(U7.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var D=this;return qm(this.parentSignalProxy.owner,function(){return pQ5(D).getWithPath([])})},
set:function(D){Sbk(this,D)}},
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}}});
_.$a.Object.defineProperties(U7,{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",U7);var A4b,P3k;_.gp=new _.P6("STATE_STORE_TOKEN");A4b=new _.P6("SELECT_TOKEN");P3k=new _.P6("DISPATCH_TOKEN");var lO3={getSelectFn:function(){var D;return(D=_.iX().resolve(_.vK(A4b)))!=null?D:M3t},
getDispatchFn:function(){var D;return(D=_.iX().resolve(_.vK(P3k)))!=null?D:_.qw().dispatch.bind(_.qw())},
getAppStore:function(){return _.iX().resolve(_.gp)}},qxd,RwR=!1;var pb3=function(){};var czt=void 0;var $7f=function(){};
$7f.prototype.hasAttribute=function(D){if(D==="dir")return!1;if(D==="disable-upgrade"){var C,X;return(X=(C=this.hostElement)==null?void 0:C.hasAttribute("disable-upgrade"))!=null?X:!1}throw Error("Rg`"+D);};
$7f.prototype.attributeChangedCallbackWrapper=function(D,C,X){if(D==="disable-upgrade"&&this.__isUpgradeDisabled&&X===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var c;((c=this.hostElement)!=null?c:this).isConnected&&this.connectedCallback()}else C===X||this.__isReflecting||this.attributeChangedCallback(D,C,X)};
$7f.prototype.getExtraMethodsToForward=function(){for(var D=this,C=[],X=_.U(vkd),c=X.next(),W={};!c.done;W={tagName$jscomp$67:void 0,name$jscomp$630:void 0},c=X.next())W.name$jscomp$630=c.value,c=void 0,W.name$jscomp$630==="_setPendingProperty"?(W.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),c=function(p){return function(g,a,O){hA(p.tagName$jscomp$67,g,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return D._setPendingProperty(g,a,O)}}(W)):c=function(p){return function(){return D[p.name$jscomp$630].apply(D,
_.VB(_.MJ.apply(0,arguments)))}}(W),C.push([W.name$jscomp$630,
c]);return C};
for(var ged=jF4(zB5((0,_.GI)($7f))),Azr=["disabled","disable-upgrade"],iDJ=(0,_.GI)(function(){}),k$N=new Set(Object.getOwnPropertyNames(iDJ.prototype)),ksR=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.VB(k$N))),$2W=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),vkd=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),uhe=new Set([].concat(_.VB($2W),_.VB(vkd),_.VB(k$N))),Qne=_.U(uhe),BCk=Qne.next();!BCk.done;BCk=Qne.next())wnj.add(BCk.value);var iZt={created:function(){xBd(this);this.initializeInjection()}};var Ltm=!1,XV=window.ShadyDOM,yzJ=["appendChild","insertBefore","removeChild","replaceChild"],YVr=[Node];XV&&YVr.push(XV.Wrapper);var TgW,HZd,jzo={};var cc,RMJ=new WeakMap,qVo=new Set;var cdt=new Set("context didCallReady is info params signalProxy".split(" ")),Wio="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),pZm="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var bDq=Ya({entities:Dko}),r4g=new qh(bDq);var KK5=function(){return _.Qj.apply(this,arguments)||this};
_.h(KK5,_.Qj);_.$a.Object.defineProperties(KK5.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return r4g}}});
_.V([_.Br()],KK5);_.as=[XC.prototype,KK5.prototype];_.Is={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var D=this,C={};setTimeout(function(){var X;return _.lE((X=D.hostElement)!=null?X:D,"yt-live-chat-add-tooltip-target",C)},0);
this.handler_=C.handler},
detached:function(){if(this.handler_){var D;this.handler_.removeElementFromSupportingTooltips((D=this.hostElement)!=null?D:this)}this.handler_=null}}};_.a3=new _.P6("ICON_MANAGER_TOKEN");var h$J=[48,20,18,16,15,13,12],xrh=new Map,bsh=new Set,uiF=new Set,Bnj=new Set,k8R=new Set,QFm=new Set,KiF=new Promise(function(D){var C=!1,X=!1,c=!1,W=[],p=function(g){if("detail"in g)if(g=g.detail,g.name==="yt-icons")rd5(g),C=!0;else if(g.name==="yt-sys-icons")rd5(g),X=!0;else{var a;((a=g.name)==null?0:a.includes("yt-sys-icons"))&&g.size!==24&&(rd5(g,!0),W.push(g.size),W.length===h$J.length&&(c=!0))}C&&X&&c&&(window.removeEventListener("iron-iconset-added",p),D())};
window.addEventListener("iron-iconset-added",p)}),x75=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"]]);_.O7={};_.O7.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Mh,computeHref_:function(D,C){C=C===void 0?!1:C;if(!D||D.commandExecutorCommand)return null;var X=PKj(D,C);return C||X!==null?X?_.b("enable_polymer_resin")?_.Hv(X).toString():X:null:(_.fQ(new _.Zf("computeHref was null",this.is,D)),null)},
computeOptionalHref_:function(D){return this.computeHref_(D,!0)},
computeNofollow_:function(D){return D?WYd(D)?"nofollow":null:null},
computeIcon_:function(D){return D&&D.iconType?_.g2(D.iconType):""},
resolveCommand:function(D,C,X){C=C===void 0?{}:C;return _.O4(D,this.hostElement,C,X===void 0?!1:X)}};var snq,Ay;_.LKC={};snq=null;
Ay={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_=Aeh(this.viewroot));_.TA(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var D=this;this.unobserve_();if(_.b("kevlar_vimio_use_shared_monitor"))E$3(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var C=[];this.visibilityOptionVisible_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=C}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){LiZ(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 D=_.zv(this.parentNode,function(X){var c,W=(c=X.polymerController)!=null?c:X;return!!W.getVisibilityObserverForChild&&W.getVisibilityObserverForChild()},!0);
if(D){var C;this.localVisibilityObserver_=((C=D.polymerController)!=null?C:D).getVisibilityObserverForChild()}else snq||(snq=Aeh()),this.localVisibilityObserver_=snq;return this.localVisibilityObserver_},visibilityCallback:function(D){D?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.b("kevlar_use_vimio_behavior")||(Ay={});Ay&&!_.b("kevlar_use_vimio_behavior")&&(delete Ay.attached,delete Ay.detached);_.LKC.YtVisibilityObserverBehavior=[Ay];var m7q={};m7q.YtVisualElementBehavior=[_.LKC.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.b("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.b("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var D=this.getScreenLayer&&this.getScreenLayer(),C=this.getVisibilityLogger();C&&C.reportShown(this,void 0,D)}},
onHidden:function(){if(_.b("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.b("kevlar_vimio_use_shared_monitor")){var D=this.getScreenLayer&&this.getScreenLayer(),C=this.getVisibilityLogger();C&&C.reportHidden(this,void 0,D)}},
getVisibilityLogger:function(){return _.b("kevlar_use_vimio_behavior")?_.Pc():null},
shouldSkipLogging:function(){if(_.q6("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var D=this.getParentRenderer&&this.getParentRenderer();if(!D)return!1;var C,X=(C=D.polymerController)!=null?C:D;if(!X.data)return!1;D=this.data.trackingParams;D=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:D;var c;C=(c=X.data)==null?void 0:c.trackingParams;var W,p;C=((W=X.data)==null?0:W.loggingDirectives)?(p=X.data)==null?void 0:p.loggingDirectives.trackingParams:C;return D&&C&&D===
C}}];var Yt5=new Map,r2;var j0t=function(D){this.layer=D},PR=function(D){return D.layer!==void 0?D.layer:D.parent?PR(D.parent):D.layer=0};var G8d;_.f={};G8d=0;_.f.YtRendererBehavior=[_.O7.YtComponentBehavior,m7q.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_:_.b("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var D,C;(C=(D=this.monitorScrollElement)!=null?D:this.hostElement)==null||C.removeEventListener("scroll",_.Pr(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();t1Z(this.hostElement);Jh(_.jJ(),this.hostElement);jy.delete(this.hostElement)},
registerRenderer:function(D){var C;((C=D.polymerController)!=null?C:D).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(D),this.markDirty())},
unregisterRenderer_:function(D){this.useVimio_||(this.childCache_.delete(D),this.markDirty())},
attached:function(){var D=this,C=this.getParentRenderer();if(C){var X,c,W;(c=(X=(W=C.polymerController)!=null?W:C).registerRenderer)==null||c.call(X,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var p,g;(g=(p=this.monitorScrollElement)!=null?p:this.hostElement)==null||g.addEventListener("scroll",_.Pr(this,this.onScroll))}_.qX.addJob(function(){ydJ(D.hostElement)},8);
X=new j0t(this.screenLayer||void 0);(C=jy.get(C))&&C.layerNode&&(X.parent=C.layerNode);C={};BXh(this.hostElement,(C.isRenderer=!0,C.layerNode=X,C[MiR]=this.data,C))},
getParentRenderer:function(){for(var D=this.hostElement.parentNode,C,X;D&&((C=jy.get(D))==null||!C.isRenderer)&&!((X=D.polymerController)!=null?X:D).isRenderer_;)D=D.parentNode||D.host;return D},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.b("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.dq("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.b("debug_web_ve_data")&&this.data.trackingParams){var D="";try{D=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(X){_.MN(X)}if(D){var C=Nej(D,1);C!==void 0&&(this.hostElement.dataset.veIndex=String(C));D=Nej(D,2);
D!==void 0&&(this.hostElement.dataset.ve=String(D))}}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,_.b("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.bO(this.data.loggingDirectives.trackingParams)),this.visualElement=_.vc(_.iO(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var D=this.data.targetId;_.z0(_.jJ(),D,this.hostElement)}else Jh(_.jJ(),this.hostElement)},
onScroll:function(){var D=Date.now();D-this.lastHandledScroll_<50||(this.lastHandledScroll_=D,this.markDirty())},
markDirty:function(){_.b("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():V1Z(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var D=this.getParentRenderer();if(D&&(D=jy.get(D))&&D.layerNode)return PR(D.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.VB(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++)this.sendImpression(this.data.impressionEndpoints[D]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(D){D.clickTrackingParams&&delete D.clickTrackingParams;var C,X;(D==null?0:(C=D.commandMetadata)==null?0:(X=C.webCommandMetadata)==null?0:X.sendPost)?_.cE(this.hostElement,[D,{impression:!0}]):_.o7(this.hostElement,[D],this.hostElement)},
logExplicitClick:function(D){var C=_.LN(this.getScreenLayer());if(C){var X,c=(X=D.polymerController)!=null?X:D;D=c.visualElement;c=c.trackingParams||c.clickTrackingParams;!D&&c&&(D=_.bO(c));D&&_.HE(C,D)}}}];var e$b={},Pm=function(){return _.Qj.apply(this,arguments)||this};
_.h(Pm,_.Qj);Pm.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Pm.prototype.onPdgItemBehaviorClick=Pm.prototype.onPdgItemBehaviorClick;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Pm.prototype,"data",void 0);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Pm.prototype,"onPdgItemBehaviorClick",null);_.V([_.Br()],Pm);e$b.YtPdgLiveChatItemBehavior=[Pm.prototype,_.f.YtRendererBehavior];var Ek5;var tQc;_.$Z={};_.$Z.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var iY=function(){var D=iQ.apply(this,arguments)||this;D.switchTemplateAtRegistration=!1;return D};
_.h(iY,iQ);iY.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||zBh(this),_.BMo(this,"doRender"),this.doRender())};
iY.prototype.debounceRender=function(){this.templatingFn&&_.Hr(this,"doRender",this.doRender)};
iY.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.MN(Error("ah"))};
iY.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.V([pqh()],iY);var NC5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,kZ={},fzm=(kZ[1]={filterString:null,isUnwrappable:null,unwrap:null},kZ[2]={filterString:function(D,C,X){return aa(X)},
isUnwrappable:function(D){return D instanceof dj},
unwrap:function(D){return lU(D)}},kZ[3]={filterString:function(D,C,X){return NC5.test(X)?X:Td.toString()},
isUnwrappable:function(D){return Fm(D)},
unwrap:function(D){return _.Z6(D)}},kZ[4]={filterString:function(){return Td.toString()},
isUnwrappable:function(D){return D instanceof EB},
unwrap:function(D){return _.NJ(D).toString()}},kZ[5]={filterString:function(D,C,X){return X},
isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D.toString()}},kZ[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(D){return D instanceof _.Wt},
unwrap:function(D){return Ss(D)}},kZ[8]={filterString:function(D,C,X){X=String(X).toLowerCase();
return N0r(D,C,X)?X:"zClosurez"},
isUnwrappable:null,unwrap:null},kZ[10]={filterString:null,isUnwrappable:null,unwrap:null},kZ);$b[Dh["default"]]=RBJ;var lzJ=[];(function(){var D=OO;OO=function(C){D==null||D(C);Lb(function(){for(var X=0;X<C.length;X++)D7R(C[X])})}})();var Ybg=function(){var D=_.Qj.apply(this,arguments)||this;D.hasUnmounted=!1;return D};
_.h(Ybg,_.Qj);_.S=Ybg.prototype;_.S.beforeRegister=function(){var D=this.doIdomRender;this.templatingFn?_.MN(Error("$g")):(this.templatingFn=D,this.switchTemplateAtRegistration=!0,qtJ(this))};
_.S.attached=function(){};
_.S.detached=function(){D7R(this.hostElement)};
_.S.renderIdom=function(){throw Error("ch");};
_.S.doIdomRender=function(){var D=this;LYj(this.hostElement,function(){D.renderIdom()})};
_.V([_.Br()],Ybg);var y4g=[iY.prototype,Ybg.prototype];var nkx,wQx=function(){return nkx!==void 0?nkx:nkx=document.createElement("template")};
document.head.appendChild(wQx().content);var FKq;var ZD4,G$5=function(){return ZD4!==void 0?ZD4:ZD4=document.createElement("template")};
document.head.appendChild(G$5().content);var VQM;var TCx=document.head,HDe=TCx.appendChild,J4x;if(VQM===void 0){var z$J=document.createElement("template");_.x(z$J,"\x3c!--css-build:shady--\x3e");z$J.content.insertBefore(G$5().content.cloneNode(!0),z$J.content.firstChild);VQM=z$J}J4x=VQM;HDe.call(TCx,J4x.content);var jnx,MQd=function(){return jnx!==void 0?jnx:jnx=document.createElement("template")};
document.head.appendChild(MQd().content);var qbq;var f3d=document.head,d7b=f3d.appendChild,R$q;if(qbq===void 0){var l3g=document.createElement("template");_.x(l3g,"\x3c!--css-build:shady--\x3e");l3g.content.insertBefore(MQd().content.cloneNode(!0),l3g.content.firstChild);qbq=l3g}R$q=qbq;d7b.call(f3d,R$q.content);var D9d=document.head,Cg5=D9d.appendChild,XW5;if(FKq===void 0){var cEx=document.createElement("template");_.x(cEx,"\x3c!--css-build:shady--\x3e");cEx.content.insertBefore(wQx().content.cloneNode(!0),cEx.content.firstChild);FKq=cEx}XW5=FKq;Cg5.call(D9d,XW5.content);var o4J,WuM=function(){return o4J!==void 0?o4J:o4J=document.createElement("template")};
document.head.appendChild(WuM().content);var pW4;_.Hc=new _.P6("DARK_THEME_TOKEN");var TC5=new _.A7("accessibilityProperties");var VQo=new _.A7("layoutProperties");var HDd=new _.A7("imageType");var S5g={};if("ytAttributedStringLinkHoverColor"in S5g)throw Error("fh`ytAttributedStringLinkHoverColor");(function(D,C){S5g[D]="value"in C&&"unit"in C?pQF(D,C):function(X){try{return C(X)}catch(c){throw Error("dh`"+D+"`"+c.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var U9J=function(D){var C=this;this.holdTime=D===void 0?500:D;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(X){var c=new CustomEvent("LONG_PRESS"),W;(W=X.changedTouches[0].target)==null||W.dispatchEvent(c)};
this.ontouchstart=function(X){C.longPressTimeout=_.$w(_.qX,function(){C.onlongpress(X);C.longPressOccurred=!0},C.holdTime)};
this.ontouchmove=function(){_.qX.cancelJob(C.longPressTimeout);C.longPressTimeout=NaN;C.longPressOccurred=!1;C.moveOccurred=!0};
this.ontouchend=function(X){if(C.longPressTimeout&&!C.longPressOccurred&&!C.moveOccurred){var c;(c=X.changedTouches[0].target)==null||c.dispatchEvent(new Event("click"))}_.qX.cancelJob(C.longPressTimeout);C.longPressTimeout=NaN;C.longPressOccurred=!1;C.moveOccurred=!1}};var KKh=function(D,C){U9J.call(this,C);var X=this;this.callback=D;this.onlongpress=function(c){var W;(W=X.callback)==null||W.call(X,c)}};
_.h(KKh,U9J);var h$r=function(D,C){var X=Object.assign({},C);D=_.U(new Map([["ontouchstart",D.ontouchstart],["ontouchend",D.ontouchend],["ontouchmove",D.ontouchmove]]));for(var c=D.next(),W={};!c.done;W={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},c=D.next()){var p=_.U(c.value);c=p.next().value;p=p.next().value;W.eventName$jscomp$103=c;W.eventHandler$jscomp$2=p;C[W.eventName$jscomp$103]=function(g){return function(a){var O;(O=X[g.eventName$jscomp$103])==null||O.call(X,a);(0,g.eventHandler$jscomp$2)(a)}}(W)}};_.uX=new _.P6("COMMAND_HANDLER_TOKEN");var U7r=new _.A7("parallelCommand");var I35=new _.A7("performOnceCommand");var a3m=new _.A7("serialCommand");var ODt=void 0;var g45=function(){this.data=[];this.consumer=null};
g45.prototype.push=function(D){this.consumer?this.consumer(D):this.data.push(D)};var jr={};_.Li(jr,void 0,"sgPmTd");_.Li(null,void 0,"jypsq");_.Li(null,void 0,"mWiOof");var GwZ=new g45;var Qnd=[f6e,dJC,RvM,DAk,l6q,qBc,CGN,XtC];var ZD3=new _.A7("bracketTextDecorator");var VK=new _.A7("highlightTextDecorator");_.z2=new _.P6("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Ybj=function(){},a2g;
(a2g=window.requestIdleCallback)==null||a2g.bind(window);var nk5={calledOnce:!1,state:"visible"},y4j={calledOnce:!1,state:"hidden"};var I2M=new _.P6("ICON_WIZ_COMPONENT_TOKEN");_.$_=_.F(function(D){var C=D.icon;var X=D.active;var c=D.className;var W=D.style;var p=D.dataSelected;var g=D.dataDisabled;var a=D.role;var O=D.animateIcon;var P=D.themeOverride;var k=D.ariaHidden;var u=D.ariaExpanded;var Q=D.ariaLabel;var B=D.tabindex;var K=D.id;var L=D.size;var t=D.iconFilter;var Y=D.gradientColor;var y=D.onKeydown;var J=D.title;return _.A(_.v,{cond:C,then:function(){var T=_.iX().resolve(I2M);return _.A(T,{icon:C,dataSelected:p,dataDisabled:g,animateIcon:O,themeOverride:P,ariaExpanded:u,
tabindex:B,id:K,active:X,size:L,role:a,className:c,ariaHidden:k,ariaLabel:Q,style:function(){return W!=null&&W()||L==null||!L()?W==null?void 0:W():"width: "+(L==null?void 0:L())+"px;height: "+((L==null?void 0:L())+"px;")},
title:J,iconFilter:t,gradientColor:Y,onKeydown:y})}})},"l");
_.$_.idomCompat={callbacks:{onKeydown:!0}};var pW3=new _.A7("borderImageProcessor");var g4F=window.devicePixelRatio||1;var AER=new Map([["yt_outline_bag_black_24","bag"]]);var uY=function(D){var C=this;this.margin=.1;this.whenInViewportWithMargin=D;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){C.requestScan()});
window.addEventListener("touchend",function(){C.requestScan()});
window.addEventListener("updateui",function(){C.requestScan()});
var X=new _.Al((0,_.wo)(this.requestScan,this),100);window.addEventListener("scroll",function(){X.fire()},!0);
window.addEventListener("resize",(0,_.wo)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){C.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.wo)(this.requestScan,this))};
uY.prototype.observe=function(D){this.observationTargets.includes(D)||this.observationTargets.push(D)};
uY.prototype.unobserve=function(D){this.observationTargets=this.observationTargets.filter(function(C){return C!==D})};
uY.prototype.requestScan=function(){var D=this;this.scanRequested||(Lb(function(){OY5(D)}),this.scanRequested=!0)};
var OY5=function(D){var C=(1+D.margin)*(document.documentElement.clientHeight||window.innerHeight);D.observationTargets=D.observationTargets.filter(function(X){var c=X.getBoundingClientRect();(c=C>c.top&&!!c.height)&&D.whenInViewportWithMargin(X);return!c&&X.parentNode});
D.scanRequested=!1};
uY.prototype.disconnect=function(){this.observationTargets=[]};var AEf,$95;AEf=_.U(_.Li(kM3(),void 0,"O3X2wd"));_.Pgb=AEf.next().value;$95=AEf.next().value;window.addEventListener("resize",function(){$95(kM3())});var v4b={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},iYM=void 0,kM4=window.innerWidth,uS5=window.innerHeight;window.addEventListener("resize",function(){iYM=void 0});var QMC;if("IntersectionObserver"in window)QMC=B_m();else{if(iYM===void 0){var B_q;B_q="matchMedia"in window?window.matchMedia(v4b.landscape+","+v4b.portrait).matches:void 0;iYM=B_q!==void 0?B_q:kM4>=930&&uS5>=550||kM4>=550&&uS5>=930}QMC=iYM?{observe:function(D){Lb(function(){var C;(C=D.onViewportEntered)==null||C.call(D)})},
unobserve:function(){}}:new uY(function(D){Lb(function(){var C;
(C=D.onViewportEntered)==null||C.call(D)})})}var uSh=QMC;var bYx=_.F(function(D){var C=!1,X=_.aX("img",function(c){_.z3(function(){C=!0;c.onload=null})});
_.Jw(function(){var c,W=(c=D.data)==null?void 0:c.call(D),p,g=(p=D.getSrc)==null?void 0:p.call(D).cb,a;c=(a=D.config)==null?void 0:a.call(D);if(a=X.value)if(p=function(P,k){if(!C)return g?g(P,k):P},KuF(a,c),_.b("web_image_dont_reload_same_src")&&rEr(a,W,p))_.b("web_image_dont_reload_same_src_simulate_load")&&a.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var O;bY5(a,W||null,p,c,(O=D.lazy)==null?void 0:O.call(D))}},"zS0jKb");
return _.A("img",{el:X})},"n");
bYx.idomCompat=!0;_.M_=_.F(function(D){var C=function(){var X,c=D.data(),W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5,Fd,GJ,jZ,Ac;var ib={contentMode:(W=D.contentMode)==null?void 0:W.call(D),loadedClass:(p=D.loadedClass)==null?void 0:p.call(D),isPreloaded:(g=D.isPreloaded)==null?void 0:g.call(D),notifyOnLoaded:(a=D.notifyOnLoaded)==null?void 0:a.call(D),notifyOnUnloaded:(O=D.notifyOnUnloaded)==null?void 0:O.call(D),preferredThumbnail:(P=D.preferredThumbnail)==null?void 0:P.call(D),preserveHeight:(k=D.preserveHeight)==
null?void 0:k.call(D),preserveWidth:(u=D.preserveWidth)==null?void 0:u.call(D),objectPosition:(Q=D.objectPosition)==null?void 0:Q.call(D),targetWidth:(B=D.targetWidth)==null?void 0:B.call(D),targetHeight:(K=D.targetHeight)==null?void 0:K.call(D),shouldShowPlaceholder:(L=D.shouldShowPlaceholder)==null?void 0:L.call(D),useWidth:(t=D.useWidth)==null?void 0:t.call(D),isToggled:(Y=D.isToggled)==null?void 0:Y.call(D),alt:(y=D.alt)==null?void 0:y.call(D),className:(J=D.className)==null?void 0:J.call(D),
onerror:D.onerror,onload:D.onload,style$:((T=D.style$)==null?void 0:T.call(D))||((H=D.style)==null?void 0:H.call(D)),color:(q=D.color)==null?void 0:q.call(D),width:(R=D.width)==null?void 0:R.call(D),height:(ph=D.height)==null?void 0:ph.call(D),"aria-hidden$":(jZ=(Om=D["aria-hidden$"])==null?void 0:Om.call(D))!=null?jZ:(xj=D.ariaHidden)==null?void 0:xj.call(D),draggable:(Bo=D.draggable)==null?void 0:Bo.call(D),"data-disabled$":(Ac=(r5=D["data-disabled$"])==null?void 0:r5.call(D))!=null?Ac:(Fd=D.dataDisabled)==
null?void 0:Fd.call(D),size:(GJ=D.size)==null?void 0:GJ.call(D)};return Lun(c,ib,(X=D.hideOn404)==null?void 0:X.call(D))};
return _.A(_.G4,null,_.A(_.wq,{when:function(){var X;return((X=C())==null?void 0:X.type)==="image"}},function(){return _.A(bYx,{data:function(){return C().image},
getSrc:{cb:function(X,c){var W=C().image.sources,p=C().config.isPreloaded,g=C().config.useWidth,a=C().config.targetWidth,O=C().config.targetHeight,P=C().config.preferredThumbnail;return _.a2j(c,W,p,g,a,O,P)||""}},
config:function(){var X=C().config,c;for(c in X)X[c]===void 0&&delete X[c];return X},
lazy:D.renderLazy})}),_.A(_.wq,{when:function(){var X;
return((X=C())==null?void 0:X.type)==="icon"}},function(){return _.A(_.$_,{icon:function(){return C().iconName},
role:function(){return C().config.role},
className:function(){return C().config.className},
style:function(){return C().config.style$+";width: "+(C().config.width+"px;height: ")+(C().config.height+"px;color: ")+(C().config.color+";")},
ariaLabel:function(){return C().config["aria-label$"]},
ariaHidden:function(){return C().config["aria-hidden$"]},
dataDisabled:function(){return C().config["data-disabled$"]},
active:function(){return C().config.isToggled},
size:function(){return C().config.size}})}))},"o");
_.M_.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var rEJ=function(D){return function(C){return _.A(JGt,null,function(){var X=C.data(),c=_.Mm(C.config);return _.A(BU5,null,function(){return void D(X,c)})})}}(N_d),E4J=_.F(function(D){var C=function(W){var p,g,a=_.fb(function(B){p=W();
g=jn(function(){for(var K=_.U(u()),L=K.next();!L.done;L=K.next()){L=Y5o(L.value);L=typeof L==="string"?document.createTextNode(L):L;if(!(L instanceof Node)){K=new _.Zf("Part is not a node",L,typeof L);_.MN(K);break}B.appendChild(L)}})}),O=_.di(D.config),P=function(){var B;
return MQm(W(),(B=O())==null?void 0:B.ariaLabel)},k=m9t(O,{isEqual:n4h}),u=function(){var B=J45(W(),k());
qbm(B,k());return W().content?Cgh(W().content,B).parts:[]},Q=!0;
_.Jw(function(){W();k();if(Q){Q=!1;var B=eyF(W(),p);if(!_.b("web_attributed_string_race_fix")||B)return}var K=u();Promise.resolve().then(function(){var L=a.value;if(L){L.innerText="";var t;(t=g)==null||t();g=_.T4(L,function(){return _.A(yEj,{parts:K})},"r")}})},"hIYo9d");
return _.A("span",{el:a,class:function(){return W()&&e$t(W(),O())},
dir:function(){var B;return((B=O())==null?0:B.userInput)?"auto":void 0},
"aria-label":function(){var B;return P()?(B=O())==null?void 0:B.ariaLabel:void 0},
role:function(){return P()?"text":void 0}})},X=m9t(function(){var W,p=(W=D.text)==null?void 0:W.call(D);
if(p)return W=z$r(p),(W==null?0:W.content)?W:void 0},{isEqual:eyF}),c;
return((c=D.config)==null?0:c.contentAsserted)?C(X):_.A(_.v,{cond:X,then:C})},"t");
E4J.idomCompat=!0;_.QG=_.F(function(D){var C=_.di(D.text),X=wWF(D);D.contentAsserted!==void 0&&(X.contentAsserted=!0);return _.b("attr_string_reactive")?_.A(E4J,{text:C,config:X}):_.A(_.v,{cond:function(){var c;return C()&&((c=z$r(C()))==null?void 0:c.content)},
then:function(){return _.A(rEJ,{data:D.text,config:X})},
debugInstance:"Apcuac"})},"u");
_.QG.idomCompat=!0;var Fu3=function(D,C,X){C=C===void 0?"unknown":C;X=X===void 0?{}:X;_.Zf.call(this,D+" ("+C+")",Object.assign({},{name:"YtWcwError",tagName:C},X));Object.setPrototypeOf(this,this.constructor.prototype)};
_.h(Fu3,_.Zf);_.D5=new WeakMap;_.lO=!1;var HYt,JEJ,T_m;_.Bm=Symbol("hh");_.R3=Symbol("ih");HYt=Symbol("jh");JEJ=new Set(Object.getOwnPropertyNames(Element.prototype));T_m=Symbol("kh");var Ku5=_.F(function(D){return _.A("yt-attributed-string",{"aria-label":D.ariaLabel,hidden:D.hidden,id:D.id,class:D.className,"force-default-style":D.forceDefaultStyle},_.A(_.QG,{text:D.data,ariaLabel:D.ariaLabel,ellipsisTruncate:D.ellipsisTruncate,isOverlay:D.isOverlay,linkInheritColor:D.linkInheritColor,noPreWrap:D.noPreWrap,noWrap:D.noWrap,userInput:D.userInput,noEndpoints:D.noEndpoints,headerRuns:D.headerRuns,isHeadline:D.isHeadline}))},"v");
_.b("web_wiz_attributed_string")&&_.CI(Ku5,"yt-attributed-string",{props:{ariaHidden:_.Bm,ariaLabel:_.Bm,className:_.Bm,ellipsisTruncate:_.Bm,isOverlay:_.Bm,linkInheritColor:_.Bm,noEndpoints:_.Bm,noStyleRuns:_.Bm,noLinkColor:_.Bm,noPreWrap:_.Bm,noWrap:_.Bm,skipOnClick:_.Bm,userInput:_.Bm,headerRuns:_.Bm,isHeadline:_.Bm,id:_.Bm,data:_.Bm,hidden:_.Bm,forceDefaultStyle:_.Bm,text:_.R3,disableUpgrade:_.R3,disable:_.R3,slot:_.R3}});var bY=function(){return _.w.apply(this,arguments)||this};
_.h(bY,_.w);bY.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},N_d(this.data,this.config))};
_.V([_.m(y4g),_.z("design:type",Object)],bY.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bY.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bY.prototype,"ariaLabel",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"disable",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"ellipsisTruncate",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"isOverlay",void 0);
_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"linkInheritColor",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"noPreWrap",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"noWrap",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"userInput",void 0);_.V([_.n(),_.z("design:type",Boolean)],bY.prototype,"noEndpoints",void 0);_.V([_.n(),_.z("design:type",Array)],bY.prototype,"headerRuns",void 0);
_.V([_.Yn({is:"yt-attributed-string",disableElementRegistration:!0})],bY);
_.b("web_wiz_attributed_string")||_.G(bY,"yt-attributed-string",function(){if(pW4===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
D.content.insertBefore(WuM().content.cloneNode(!0),D.content.firstChild);pW4=D}D=pW4;return D},{mode:2});var hyc,x95,RyW;hyc=function(){this.firstThumbnailLoaded=!1};
_.Luk=function(){x95||(x95=new hyc);return x95};
RyW=function(D){var C=_.Luk();C.firstThumbnailLoaded||(C.firstThumbnailLoaded=!0,_.sp("ftl",D))};
hyc.prototype.reset=function(){this.firstThumbnailLoaded=!1};var jMd=0,d9h=new WeakMap,q5n=0,o_=new Set;var sMg,m9b=function(){return sMg!==void 0?sMg:sMg=document.createElement("template")};
document.head.appendChild(m9b().content);var ey5;var XSd,o8t,rp;_.S5=_.co.caches;rp=function(){};
rp.prototype.open=function(D){return _.S5.open(E4N(D))};
rp.prototype.has=function(D){return _.S5.has(E4N(D))};
rp.prototype.delete=function(D){return _.S5.delete(E4N(D))};
rp.prototype.match=function(D,C){var X=this,c,W,p,g,a,O;return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(X.keys(),2);case 2:c=P.yieldResult,W=_.U(c),p=W.next();case 3:if(p.done){P.jumpTo(5);break}g=p.value;return P.yield(X.open(g),6);case 6:return a=P.yieldResult,P.yield(a.match(D,C),7);case 7:if(O=P.yieldResult)return P.return(O);p=W.next();P.jumpTo(3);break;case 5:return P.return()}})};
var WBF=function(){};
_.h(WBF,rp);var E4N=function(D){if(D.includes(":"))throw Error("nh`"+D);return D+":"+_.wT("CacheStorage get")};
WBF.prototype.keys=function(){var D,C,X,c,W,p,g,a,O;return _.I(function(P){if(P.nextAddress==1)return D=[],C=_.wT("CacheStorage keys"),P.yield(_.S5.keys(),2);X=P.yieldResult;c=_.U(X);for(W=c.next();!W.done;W=c.next())p=W.value,g=_.CZd(p),a=g.originalName,O=g.datasyncId,O===C&&D.push(a);return P.return(D)})};var K4=function(){var D=_.w.apply(this,arguments)||this;D.objectURL=null;D.loadTime=Infinity;return D};
_.h(K4,_.w);_.S=K4.prototype;_.S.renderIdom=function(){D5Z(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&hyW(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.S.objectFitToContentMode=function(D){switch(D){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.S.logThumbnailFailureVe=function(){var D=_.Ia(197497);_.Vc(_.iO(),D);var C=_.LN();C&&D&&C&&_.VP(C,[D])};
_.S.loadImageFromCacheIfExists=function(D){var C=this,X=D.target;(X==null?0:X.src)&&SDr(X.src).then(function(c){C.objectURL=_.J2(c).toString();C.setSrc(X,C.objectURL)}).catch(function(){})};
_.S.onError=function(D){var C=this;if(_.b("web_use_cache_for_image_fallback")){var X=D.target;X&&SDr(X.src).then(function(c){C.objectURL=_.J2(c).toString();C.setSrc(X,C.objectURL)}).catch(function(){_.b("kevlar_woffle_log_thumbnail_failure_ve")&&C.logThumbnailFailureVe();
_.b("kevlar_woffle_fallback_image")&&C.setSrc(X,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.S.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.S.setConfig=function(){var D=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(C){D.loadImageFromCacheIfExists(C);D.revokeObjectURL();l2F(D.hostElement)},
onerror:function(C){D.onError(C)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.b("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.S.setSrc=function(D,C){C&&(D.src=C)};
_.V([_.m(y4g),_.z("design:type",Object)],K4.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],K4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],K4.prototype,"alt",void 0);_.V([_.n(),_.z("design:type",Boolean)],K4.prototype,"ftlEligible",void 0);_.V([_.n(),_.z("design:type",Number)],K4.prototype,"height",void 0);_.V([_.n(),_.z("design:type",Boolean)],K4.prototype,"notifyOnLoaded",void 0);
_.V([_.n(),_.z("design:type",Boolean)],K4.prototype,"notifyOnUnloaded",void 0);_.V([_.n(),_.z("design:type",String)],K4.prototype,"objectFit",void 0);_.V([_.n(),_.z("design:type",String)],K4.prototype,"objectPosition",void 0);_.V([_.n(),_.z("design:type",String)],K4.prototype,"preferredThumbnail",void 0);_.V([_.n(),_.z("design:type",Boolean)],K4.prototype,"preserveHeight",void 0);_.V([_.n(),_.z("design:type",Boolean)],K4.prototype,"preserveWidth",void 0);
_.V([_.n({value:!0}),_.z("design:type",Boolean)],K4.prototype,"useWidth",void 0);_.V([_.n({value:function(){return!_.dq("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.z("design:type",Boolean)],K4.prototype,"shouldRenderLazy",void 0);_.V([_.n(),_.z("design:type",Number)],K4.prototype,"width",void 0);_.V([_.Yn({is:"yt-image",disableElementRegistration:!0})],K4);
_.G(K4,"yt-image",function(){if(ey5===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);D.content.insertBefore(m9b().content.cloneNode(!0),D.content.firstChild);
ey5=D}D=ey5;return D},{mode:2});var hy=function(){return _.w.apply(this,arguments)||this};
_.h(hy,_.w);hy.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var D=_.Y7(this.data.onVisibleCommand);D&&this.ytComponentBehavior.resolveCommand(D)}};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.$Z.YtVisibilityBehavior),_.z("design:type",Object)],hy.prototype,"ytVisibilityBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hy.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],hy);
_.G(hy,"yt-bumper-user-edu-content-view-model",function(){if(tQc===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Ek5===void 0&&(Ek5=document.createElement("template"));var c=Ek5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);tQc=D}D=tQc;return D},{mode:0});var tSg;var N_e,Y5M=function(){if(N_e!==void 0)return N_e;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;tSg===void 0&&(tSg=document.createElement("template"));var c=tSg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return N_e=D};var yEg;_.xZ={};yEg=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"]);_.xZ.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var D=this.getContext_();return D?D.getTaskManager():_.qX},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var D=_.lE(this.hostElement,"yt-get-context-provider",{});D.detail&&D.detail.contextProvider?this.cachedProviderNode_=D.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return yEg.has(this.hostElement.localName)},
getNetworkManager:function(){var D=this.getContext_();if(D)return D.getNetworkManager()}};var Aj3,n45,Fu4,wW5;_.L4=function(D){var C=n45.get(D);if(C&&(C=C.pop()))return wW5++,C;Fu4++;try{var X=document.createElement(D)}catch(c){throw new _.Zf("ElementPool failed to create element",D,c.message);}return X};
Aj3=function(D){var C=D.is;if(C){var X=n45.get(C);X||(X=[],n45.set(C,X));var c=_.q6("ELEMENT_POOL_CONFIG")||{};X.length>=(c[C]!==void 0?c[C]:_.q6("ELEMENT_POOL_DEFAULT_CAP",0))||X.push(D)}else _.fQ(new _.Zf("Element pool should only handle custom elements:",D.nodeName))};
n45=new Map;Fu4=0;wW5=0;var UI=new WeakMap,OcJ=new WeakMap;var GM5;_.s7=function(D,C,X){X=X===void 0?_.s3():X;this.JSC$14062_defaultPriority=D;this.signal=C;this.scheduler=X;this.nextJobDescriptor=0;this.JSC$14062_parkedJobs=[];this.scheduledJobs=new Map};
_.mV=function(D,C){if(C){var X=_.uP();D.signal&&!_.Q4(X,D.signal)?(X.addListener(D.signal,function(){D.processSignal()}),D.JSC$14062_parkedJobs.push({job:C,
priority:void 0})):ZYq(D,C)}};
GM5=function(D,C){if(C!==D.JSC$14062_defaultPriority){D.JSC$14062_defaultPriority=C;for(var X=_.U(D.scheduledJobs.values()),c=X.next();!c.done;c=X.next())c=c.value,D.scheduler.cancelJob(c.jobId),c.jobId=D.scheduler.addJob(c.jobWrapper,C)}};
_.s7.prototype.flushJobs=function(){GM5(this,10);this.processSignal()};
_.s7.prototype.cancel=function(){for(var D=_.U(this.scheduledJobs),C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;this.scheduler.cancelJob(X.jobId);this.scheduledJobs.delete(C)}this.JSC$14062_parkedJobs=[]};
_.s7.prototype.processSignal=function(){for(var D=_.U(this.JSC$14062_parkedJobs),C=D.next();!C.done;C=D.next())C=C.value,ZYq(this,C.job,C.priority);this.JSC$14062_parkedJobs=[]};
var ZYq=function(D,C,X){X=X||D.JSC$14062_defaultPriority;if(X===10)W0(C);else{var c=D.nextJobDescriptor++,W=function(){C();D.scheduledJobs.delete(c)},p=D.scheduler.addJob(W,X);
D.scheduledJobs.set(c,{jobWrapper:W,jobId:p,priority:X})}};var VSe;_.eO={};VSe={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.eO.YtRendererstamperBehavior=[_.xZ.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 D in this.stampDom){var C=this.stampDom[D];C&&C.id&&this.addReactiveSchema({type:"observe",method:{methodName:g8Z(C.id),args:[{type:"wildcard",path:D}]}})}else{(D=(this.constructor.generatedFrom||this).observers)||(D=[]);for(C in this.stampDom){var X=this.stampDom[C];X&&X.id&&D.push(g8Z(X.id)+"("+C+".*)")}this.constructor.generatedFrom.observers=D}},
addStampDomObserverFns_:function(){for(var D in this.stampDom){var C=this.stampDom[D];C.id?(this[g8Z(C.id)]=this.rendererStamperObserver_.bind(this,D,C.id),this.hasDataPath_[D]=!1):(C=new _.Zf("Bad rendererstamper config",this.is+":"+D),_.MN(C))}},
rendererStamperObserver_:function(D,C,X){if(X.path==D){if(X.value===void 0&&!this.hasDataPath_[D])return;this.hasDataPath_[D]=X.value!==void 0}this.rendererStamperApplyChangeRecord_(D,C,X)},
rendererStamperApplyChangeRecord_:function(D,C,X){var c=this.renderJobsMap_[C],W=null;D==X.path?(X=X.value,_.JW(X)||(X=X===void 0||X===null?[]:[X]),D=this.stampDom[D],D.mapping&&(W=this.stampDomArray_.bind(this,X,C,D.mapping,D.reuseComponents,D.events,D.stamperStableList)),c&&c.cancel(),X=D.usePageScheduler?this.getTaskManager():void 0,c||D.initialRenderPriority==void 0)?D.renderPriority==void 0||c||(c=new _.s7(D.renderPriority,D.waitForSignal,X),this.renderJobsMap_[C]=c):(c=new _.s7(D.initialRenderPriority,
D.waitForSignal,X),this.renderJobsMap_[C]=c,W=function(p,g){p();GM5(g,10)}.bind(this,W,c)):W=D+".splices"==X.path?this.stampDomArraySplices_.bind(this,D,C,X.value):this.forwardRendererStamperChanges_.bind(this,D,C,X);
c?_.mV(c,W):W()},
forwardRendererStamperChanges_:function(D,C,X){var c=X.path.slice(D.length+1),W=this.getStampContainer_(C),p=c.indexOf("."),g=c.substring(0,p),a=!1,O=0,P=parseInt(g,0);if(g[0]=="#"){a=parseInt(g.substring(1),0);P=this.get(D);var k=this.get([D,g]);P[a]==k?O=a:O=P.indexOf(k);a=!0}else isNaN(P)||(O=P,a=!0);a&&(c=c.substring(g.length+1),p=c.indexOf("."));g=this.polymerDom(W).children[O];var u;if(W=(u=g==null?void 0:g.polymerController)!=null?u:g)c="data"+c.slice(p),typeof W.notifyPath!=="function"?_.fQ(new _.Zf("notifyPath missing",
this.is+": "+D+", "+C)):X.value?W.notifyPath(c,X.value):W.notifyPath(c)},
stampDomArraySplices_:function(D,C,X){if(X&&X.indexSplices){var c=this.getStampContainer_(C);if(c){for(var W=this.polymerDom(c),p=Ixj(this.stampDom[D].reuseComponents),g=X.indexSplices.length,a=0;a<g;a++){for(var O=X.indexSplices[a],P=W.children[O.index],k=O.removed.length;k>0;k--)P&&P.parentElement&&(this.polymerDom(P.parentElement).removeChild(P),p&&Aj3(P),P=W.children[O.index]);k=this.stampDom[D].mapping;for(var u=O.index+O.addedCount,Q=document.createDocumentFragment(),B=p,K=O.index;K<u;K++){var L=
O.object[K],t=U5o(k,L);if(t){var Y=k[t];L=L[t];t=this.getComponentName_(Y,L);var y=P?UI.has(P):!1;B&&P&&P.is==t&&y?(t=P,this.telemetry_.reuse++,P=P.nextElementSibling):B&&P&&y?(t=this.createComponent_(Y,L,p),y=this.polymerDom(P).nextElementSibling,W.insertBefore(t,y),$55(this.is,W,P,p),P=y):(B=!1,t=this.createComponent_(Y,L,p),Q.appendChild(t));this.deferRenderStamperBinding_(t,Y,L)}else Y=new _.Zf("Unimplemented type",D,C,c.tagName,Object.keys(L)[0]),_.MN(Y)}W.insertBefore(Q,P)}this.flushRenderStamperComponentBindings_();
this.stampDom[D].events&&_.lE(this.hostElement,"yt-rendererstamper-finished",{container:c})}else D=new _.Zf("Container object not found",C,this.hostElement?this.hostElement.is:""),_.MN(D)}},
stampDomArray_:function(D,C,X,c,W,p){var g=this.getStampContainer_(C);if(g)if(C=this.polymerDom(g),c=Ixj(c),D){var a=0,O=0,P;if(p=p===void 0?_.dq("STAMPER_STABLE_LIST",!1):p||!1)for(P=C.firstElementChild;P&&!UI.has(P)&&D.length>O;){p=D[O];var k=U5o(X,p);if(k){if(this.getComponentName_(X[k],p[k])!=P.is){var u=this.createComponent_(X[k],p[k],c),Q=this.polymerDom(P).nextElementSibling;Q?C.insertBefore(u,Q):C.appendChild(u);$55(this.is,C,P,c);P=u}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(P,
X[k],p[k]);a++;O++;P=this.polymerDom(P).nextElementSibling}else O++}v8o(this.is,C,a,c);a=P;if(D.length>O){p=document.createDocumentFragment();for(k=D.length;O<k;O++)if(u=D[O],Q=U5o(X,u))P=this.createComponent_(X[Q],u[Q],c),this.deferRenderStamperBinding_(P,X[Q],u[Q]),p.appendChild(P);a&&this.polymerDom(a).parentNode&&P&&!UI.has(P)?C.insertBefore(p,a):C.appendChild(p)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();W&&_.lE(this.hostElement,"yt-rendererstamper-finished",
{container:g})}else v8o(this.is,C,0,c);else D=new _.Zf("Container object not found",C,this.hostElement?this.hostElement.is:""),_.MN(D)},
polymerDom:function(D){return this.minimizePipBreakages?D:_.kr(D)},
getStampContainer_:function(D){return this.$&&this.$[D]||_.SY(this.hostElement).querySelector("#"+D)},
getComponentName_:function(D,C){return typeof D==="string"?D:D.matcher?D.matcher.call(this,C):D.component},
createComponent_:function(D,C,X){D=this.getComponentName_(D,C);try{var c=qVo.has(D);if(X&&!c){var W=_.L4(D);try{_.Os(W)}catch(p){X="Failed to clear styles for "+D+".",p.message&&(X+=" Original error: "+p.message),_.fQ(new _.Zf(X))}}else W=document.createElement(D)}catch(p){return W="YtRendererStamperBehavior failed to create "+D+".",p.message&&(W+=" Original description: "+p.message),p.message="YtRendererStamperBehavior failed to create element",_.dO(p,W),VSe.hasOwnProperty(D)?_.fQ(p):_.MN(p),document.createElement("SPAN")}this.telemetry_.create++;
return W},
deferRenderStamperBinding_:function(D,C,X){this.deferredBindingTasks_.push({component:D,typeOrConfig:C,data:X})},
flushRenderStamperComponentBindings_:function(){for(var D=0,C=this.deferredBindingTasks_.length;D<C;D++){var X=this.deferredBindingTasks_[D];if(!X)break;var c=void 0,W=void 0,p=void 0,g=void 0,a=X.component,O=X.typeOrConfig;X=X.data;var P=(g=a.polymerController)!=null?g:a;g=a.loggingStatus;try{g&&(g.isRendererStamper=!0);if(typeof O!=="string"){for(p in O.attributes)O.attributes[p]===!0?a.setAttribute(p,""):O.attributes[p]===!1?a.removeAttribute(p):a.setAttribute(p,O.attributes[p]);for(W in O.params)P[W]=
O.params[W],a!==P&&hA(a.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(c in O.properties){var k=O.properties[c];if(k){var u=axF(k);P[c]=this.get(u);a!==P&&hA(a.localName,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(c==="on-tap"||c==="on-click"){var Q=this.get(u);a.addEventListener("click",Q);OcJ.set(a,{property:c,listener:{type:"element",eventName:"click",handler:Q}})}}else{var B=new _.Zf("Undefined property binding",c);_.MN(B)}}}if(O.classListBinding){var K=axF(O.classListBinding),
L=K?this[K]:null;if(L)for(c=0;c<L.length;c++)_.gi(a,L[c],!0)}P.data=X}finally{g&&(g.isRendererStamper=!1)}if(c=UI.get(a))a.hidden=!1,UI.delete(a),_.qX.cancelJob(c)}this.deferredBindingTasks_.length=0}}];_.CI(_.F(function(D){function C(){X().seconds&&p(oit({seconds:Number(X().seconds)-Date.now()/1E3}))}
var X=D.targetTimestamp;D=D.className;var c=_.U(_.Li("",void 0,"U1Q8Ae")),W=c.next().value,p=c.next().value;_.H2(function(){C();var g=setInterval(function(){C()},1E3);
_.z3(function(){clearInterval(g)})});
return _.A("yt-countdown",{class:_.g$("ytCountDownHost",D)},_.A("div",null,W))},"x"),"yt-countdown",{props:{targetTimestamp:_.Bm,
className:_.R3}});_.E7=new _.P6("KEY_MANAGER_TOKEN");var KB3={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.ty=_.F(function(D){var C=_.aX("a",D.ref),X=D.aTagConfig?D.aTagConfig:_.tw(function(){var c,W,p,g,a;var O=(a=_.Y7((p=D.command)==null?void 0:p.call(D)))!=null?a:(g=D.command)==null?void 0:g.call(D);return _.nb({innertubeCommand:O,skipOnClick:(c=D.skipOnClick)==null?void 0:c.call(D),defaultTarget:(W=D.target)==null?void 0:W.call(D)})||{}},void 0,"TAvz0");
_.Jw(function(){_.b("mweb_get_endpoint_from_atag_command")||(C.value._data=X()._data,C.value.params=X().params)},"dcjvAe");
return _.A("a",{el:C,href:function(){return X().href$},
rel:function(){return X().rel$},
class:function(){var c,W;return(W=X().className)!=null?W:(c=D.className)==null?void 0:c.call(D)},
style:function(){var c;if((c=D.style)==null?0:c.call(D))return D.style();var W;return((W=D.disabled)==null?0:W.call(D))?"pointer-events:none":""},
"aria-haspopup":function(){return!!X()["aria-haspopup$"]},
"force-new-state":OI(function(){return X()["force-new-state$"]}),
title:OI(function(){var c,W;return(W=X().title$)!=null?W:(c=D.title)==null?void 0:c.call(D)}),
role:OI(function(){var c;return((c=D.role)==null?void 0:c.call(D))||X().role$}),
target:OI(function(){return X().target$}),
dir:OI(function(){var c;return((c=D.dir)==null?void 0:c.call(D))||X().dir}),
tabindex:function(){var c;return X().tabindex$?Number(X().tabindex$):(c=D.tabIndex)==null?void 0:c.call(D)},
"aria-hidden":function(){var c,W;return(W=X()["aria-hidden$"])!=null?W:(c=D.ariaHidden)==null?void 0:c.call(D)},
"aria-label":function(){var c,W;return(W=X()["aria-label$"])!=null?W:(c=D.ariaLabel)==null?void 0:c.call(D)},
"aria-current":D.ariaCurrent,"aria-disabled":D.disabled,"aria-labelledby":D.ariaLabelledby,"aria-describedby":D.ariaDescribedby,"aria-selected":D.ariaSelected,"tab-identifier":D.tabIdentifier,"on:pointerdown":_.I_(function(c){var W,p;return void((p=(W=X()).onpointerdown)==null?void 0:p.call(W,c))}),
"on:click":_.I_(function(c){var W,p;(p=(W=X()).onclick)==null||p.call(W,c);var g;(g=D.onClick)==null||g.call(D,c)}),
"on:focusin":_.I_(function(c){var W;(W=D.onFocusin)==null||W.call(D,c)}),
"on:focusout":_.I_(function(c){var W;(W=D.onFocusout)==null||W.call(D,c)})},D.children)},"z");var tIh={duration:1E3,easing:"ease",fill:"forwards"};E8J.componentType=yv;var yjF={duration:1E3,easing:"ease",fill:"forwards"},JEN=_.F(function(D){var C=_.aX("animated-rolling-character"),X=void 0,c=function(){var a,O;return J8((a=D.character)==null?void 0:a.call(D))||J8((O=D.previousCharacter)==null?void 0:O.call(D))},W=_.U(_.Li(0,void 0,"CYT8Ob")),p=W.next().value,g=W.next().value;
_.H2(function(){if(window.ResizeObserver&&_.b("web_fix_rolling_numbers_zoom_safari")){var a=new _.Al(function(){var P,k,u=Math.round(((k=(P=C.value.querySelector("div"))==null?void 0:P.getBoundingClientRect().height)!=null?k:0)*100)/100;u&&g(u)},500),O=new ResizeObserver(function(){a.fire()});
O.observe(C.value);_.z3(function(){O.disconnect();a.dispose()})}});
_.Jw(function(){var a=_.b("web_fix_rolling_numbers_zoom_safari")?p:D.marginMultiplier;if(a()){var O;(O=X)==null||O.cancel();if(c()){var P;O=((P=D.previousCharacter)==null?0:P.call(D))?Number(D.previousCharacter())+10:D.rollUp()?0:30;var k;if((k=D.shouldAnimate)==null||!k.call(D)){var u,Q;O-=YDo((u=D.character)==null?void 0:u.call(D),(Q=D.previousCharacter)==null?void 0:Q.call(D),D.rollUp(),O)}}else{O=D.rollUp()?0:2;var B;(B=D.shouldAnimate)!=null&&B.call(D)||(P=O,k=D.rollUp()?-1:1,O=P-k)}C.value.style.marginTop=
"-"+O*a()+"px";var K;if((K=D.shouldAnimate)==null?0:K.call(D)){var L,t;X=n8j(C.value,(L=D.character)==null?void 0:L.call(D),(t=D.previousCharacter)==null?void 0:t.call(D),D.rollUp(),O,c(),a())}else{var Y;C.value.style.display=((Y=D.character)==null?0:Y.call(D))?"":"none"}}},"CA6Pmf");
return _.A("animated-rolling-character",{el:C,class:"animatedRollingCharacterHost"},_.A(_.v,{cond:c,then:function(){return _.A(T_q,null)},
else:function(){return _.A(HYb,{character:D.character})}}))},"C");
JEN.idomCompat=!0;var wSZ=_.b("web_enable_sink_animated_rolling_character_and_number")?JEN:E8J,zyk=_.b("web_enable_sink_animated_rolling_character_and_number")?JEN:NsJ(E8J),T_q=_.F(function(){for(var D=[],C=1;C<30;C++)D.push(_.A("div",null,C%10));return _.A(_.kQ,null,_.A("div",null,"\u00a0"),D,_.A("div",null,"\u00a0"))},"D"),HYb=_.F(function(D){var C=D.character;
return _.A(_.kQ,null,_.A("div",null,"\u00a0"),_.A(_.v,{cond:function(){return!(C==null?0:C())||_.Um(C==null?void 0:C())},
then:function(){return _.A("div",null,"\u00a0")},
else:function(){return _.A("div",null,C)}}),_.A("div",null,"\u00a0"))},"E");FBZ.componentType=yv;var jMe=_.F(function(D){var C=void 0,X=void 0,c=function(){var p;return((p=D.fontSizeMultiplier)==null?0:p.call(D))?D.heightPx()*D.fontSizeMultiplier():D.heightPx()},W=_.tw(function(){if(!D.numberText())return[];
var p,g,a=((p=D.forceRollUp)==null?void 0:p.call(D))||!X||!((g=D.numberValue)==null?0:g.call(D))||X<D.numberValue(),O,P=D.numberText();p=c();g=!((O=D.shouldAnimate)==null||!O.call(D));O=[];var k=0,u=0,Q=(C?C.replace(/\D/g,"").length:0)-(P?P.replace(/\D/g,"").length:0),B=C?C.split(/(\d)/).filter(Boolean):[];for(P=P.split(/(\d)/).filter(Boolean);Q<0;){var K=P[u];O.push({character:K,rollUp:a,marginMultiplier:p,shouldAnimate:g});u++;J8(K)&&Q++}for(;k<Q;)K=B[k],O.push({previousCharacter:K,rollUp:a,marginMultiplier:p,
shouldAnimate:g}),k++,J8(K)||Q++;for(;u<P.length;)Q=P[u],K=B[k],J8(Q)===J8(K)?(u++,k++):J8(Q)?(k++,Q=void 0):J8(K)&&(u++,K=void 0),O.push({character:Q,previousCharacter:K,rollUp:a,marginMultiplier:p,shouldAnimate:g});C=D.numberText();var L;X=(L=D.numberValue)==null?void 0:L.call(D);return O},void 0,"kWiBv");
return _.A("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return D.numberText()?["height: "+c()+"px;","line-height: "+D.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.A(_.Zh,{each:W,keyBy:"INDEX"},function(p){return _.A(zyk,{character:function(){return p().character},
previousCharacter:function(){return p().previousCharacter},
marginMultiplier:function(){return p().marginMultiplier},
rollUp:function(){return p().rollUp},
shouldAnimate:function(){return p().shouldAnimate}})}))},"F");
jMe.idomCompat=!0;_.MS4=_.b("web_enable_sink_animated_rolling_character_and_number")?jMe:NsJ(FBZ);var q5k=function(D,C){this.fillAnimation=new Animation(Tsh(D),document.timeline);this.strokeAnimation=new Animation(Hch(C),document.timeline)};
q5k.prototype.play=function(){var D,C;(C=(D=this.fillAnimation).play)==null||C.call(D);var X,c;(c=(X=this.strokeAnimation).play)==null||c.call(X)};
q5k.prototype.cancel=function(){var D,C;(C=(D=this.fillAnimation).cancel)==null||C.call(D);var X,c;(c=(X=this.strokeAnimation).cancel)==null||c.call(X)};_.NL=_.F(function(D){var C=D.model;var X=D.pointerDownEvent;var c=D.pointerUpEvent;var W=D.pointerLeaveEvent;var p=D.hovered;D=_.aX("yt-touch-feedback-shape");var g=_.aX("div"),a=_.aX("div"),O=_.U(_.d2(function(){return(c==null?0:c())||(W==null?0:W())?!1:!(X==null||!X())||!1})),P=O.next().value,k=O.next().value,u=void 0,Q=function(){!u&&a.value&&g.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(u=new q5k(a.value,g.value));
var y;(y=u)==null||y.play()},B=function(){var y;
(y=u)==null||y.cancel()},K=function(){var y;
(y=u)==null||y.cancel()};
_.Jw(function(){(c==null?0:c())&&Q()},"bg756c");
_.Jw(function(){(X==null?0:X())&&B()},"QAes8c");
_.Jw(function(){(W==null?0:W())&&K()},"YaFbrc");
O=_.I_(function(){Q();k(!1)});
var L=_.I_(function(){B();k(!0)}),t=_.I_(function(){K();
k(!1)});
_.z3(function(){if(u){var y;(y=u)==null||y.cancel();u=void 0}});
var Y={};P=_.g$("yt-spec-touch-feedback-shape",function(){return Jjj(C().color)},function(){return zEJ(C().thumbnailSize,!!C().isExtended)},(Y["yt-spec-touch-feedback-shape--focused"]=function(){return!!C().focused&&!C().disabled},Y["yt-spec-touch-feedback-shape--circular"]=function(){return!!C().circular},Y["yt-spec-touch-feedback-shape--down"]=P,Y["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!C().triggerEvents},Y["yt-spec-touch-feedback-shape--hovered"]=function(){return p==
null?void 0:p()},Y));
return _.A("yt-touch-feedback-shape",{el:D,class:P,style:_.P0({"margin-top":function(){return C().customTopExtend?"-"+C().customTopExtend+"px":void 0}}),
"on:mousedown":L,"on:mouseup":O,"on:pointerleave":t,"on:touchstart":L,"on:touchend":O,"aria-hidden":!0},_.A(_.v,{cond:function(){return!!C().hoverEffect},
then:function(){return _.A("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.P0({"border-radius":function(){return C().borderRadius},
background:function(){var y;if(y=C().hoverEffect){for(var J=[],T=_.U((y==null?void 0:y.lightingTechniques)||[]),H=T.next();!H.done;H=T.next())switch(H.value){case 2:var q=H=void 0,R=void 0,ph=void 0;J.push("linear-gradient(180deg, "+((H=y)==null?void 0:(q=H.palette)==null?void 0:q.keyLight)+", "+((R=y)==null?void 0:(ph=R.palette)==null?void 0:ph.background)+")")}var Om,xj;J.push((Om=C().hoverEffect)==null?void 0:(xj=Om.palette)==null?void 0:xj.background);y=J.join(", ")}else y=void 0;return y}})})}}),
_.A("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.P0({"border-radius":function(){return C().borderRadius},
"border-color":function(){var y,J;return(y=C().touchEffect)==null?void 0:(J=y.palette)==null?void 0:J.background}}),
el:g}),_.A("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.P0({"border-radius":function(){return C().borderRadius},
"background-color":function(){var y,J;return(y=C().touchEffect)==null?void 0:(J=y.palette)==null?void 0:J.background}}),
el:a}))},"J");
_.NL.idomCompat=!0;var f25={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 YZ=_.kj();YZ=YZ.toLowerCase();if(_.am(YZ,"android")){var d95=YZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);d95&&parseFloat(d95[1])<100||YZ.match("("+Object.keys(f25).join("|")+")")};var Ryc=_.F(function(D){return _.A(_.v,{cond:D.aTagConfig,then:function(C){return _.A(_.ty,{aTagConfig:C,disabled:D.disabled,className:D.className,style:D.style,title:D.title,ariaLabel:D.ariaLabel,ariaCurrent:function(){var X,c;return((X=D.toggleable)==null?void 0:X.call(D))&&((c=D.toggled)==null?void 0:c.call(D))},
ref:D.ref},D.children)},
else:function(){return _.A("button",{el:_.fb(D.ref),"on:click":_.I_(function(C){var X;return(X=D.onClick)==null?void 0:X.call(D,C)}),
class:D.className,title:D.title,style:D.style,disabled:D.disabled,"aria-pressed":function(){var C,X;return((C=D.toggleable)==null?0:C.call(D))?!((X=D.toggled)==null||!X.call(D)):void 0},
"aria-label":D.ariaLabel,"aria-disabled":D.visiblyDisabled,"aria-hidden":D.ariaHidden,tabindex:D.tabIndex},D.children)}})},"K"),D5C=_.F(function(D){var C=D.data;
var X=D.hasIconLeading;var c=D.hasIconLeadingTrailing;var W=D.hasIconTrailing;var p=D.iconButton;var g=D.iconClassName;var a=D.secondaryIconClassName;var O=D.icon;var P=D.secondaryIcon;var k=D.textContentClassName;return _.A(wp,{className:"",style:"display: inherit; justify-content: center"},_.A(_.v,{debugInstance:"V4z1Uc",cond:function(){return O&&(X()||c()||(p==null?void 0:p()))},
then:function(){return _.A(wp,null,_.A("div",{class:g,"aria-hidden":"true"},O==null?void 0:O()))}}),_.A(_.v,{debugInstance:"ok3btb",
cond:function(){return(C().buttonText||C().animatedTextProps||C().formattedButtonText)&&!(p==null?0:p())},
then:function(){return _.A(wp,null,_.A(l25,{className:k,iconPosition:function(){return C().iconPosition},
text:function(){return C().buttonText},
oneOffCustomTextWrap:function(){return C().oneOffCustomTextWrap},
formattedButtonText:function(){return C().formattedButtonText},
animatedTextProps:function(){return C().animatedTextProps}}))}}),_.A(_.v,{debugInstance:"DO5Rz",
cond:W,then:function(){return _.A(wp,null,_.A("div",{class:g},O==null?void 0:O()))}}),_.A(_.v,{debugInstance:"bnojSc",
cond:c,then:function(){return _.A(wp,null,_.A("div",{class:a},P==null?void 0:P()))}}),_.A(_.v,{debugInstance:"HN3kad",
cond:function(){return!C().disabled&&!0},
then:function(){return _.A(_.NL,{model:function(){var u=C();return{color:u.style==="overlay-dark"?4:u.style==="overlay"?u.type==="filled"?4:3:u.type==="filled"||u.style==="call-to-action-inverse"||u.style==="mono-inverse"?2:1}}})}}))},"L"),l25=_.F(function(D){var C=function(){var X,c;
return((X=D.iconPosition)==null?void 0:X.call(D))==="icon-with-label"||((c=D.oneOffCustomTextWrap)==null?void 0:c.call(D))};
return _.A("div",{class:D.className,"aria-hidden":function(){var X,c,W;return((X=D.ariaHidden)==null?void 0:X.call(D))&&(!((c=D.animatedTextProps)==null||!c.call(D))||!((W=D.formattedButtonText)==null||!W.call(D)))}},_.A(_.G4,null,_.A(_.wq,{when:function(){var X;
return(X=D.animatedTextProps)==null?void 0:X.call(D)}},function(){return _.A(_.MS4,{numberText:function(){return D.animatedTextProps().numberText},
numberValue:function(){return D.animatedTextProps().numberValue},
heightPx:function(){return D.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return D.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return D.animatedTextProps().shouldAnimate},
forceRollUp:function(){return D.animatedTextProps().forceRollUp}})}),_.A(_.wq,{when:function(){var X;
return(X=D.formattedButtonText)==null?void 0:X.call(D)}},function(){return _.A(_.QG,{text:function(){return Object.assign({},D.formattedButtonText(),{lineBreakMode:C()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":D.formattedButtonText().lineBreakMode,
alignment:C()?"TEXT_ALIGNMENT_CENTER":D.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!C()}})}),_.A(_.wq,{when:function(){var X,c;
return((X=D.iconPosition)==null?void 0:X.call(D))==="icon-with-label"&&((c=D.text)==null?void 0:c.call(D))}},function(){return _.A(_.QG,{text:function(){return{content:D.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.A(_.Fr,null,function(){return D.text})))},"M"),CZe=_.F(function(D){return _.A(_.v,{debugInstance:"kM7Sgc",
cond:D.hasLabel,then:function(){var C;return _.A("label",{class:D.className},D.children,(C=D.textContent)==null?void 0:C.call(D))},
else:function(){return D.children}})},"N"),wp=_.F(function(D){return D.children},"O");var XSe=_.F(function(D){function C(){p(void 0);a(void 0);P(void 0)}
var X=_.fb(),c=_.U(_.Li(void 0,void 0,"Ug77pc")),W=c.next().value,p=c.next().value;c=_.U(_.Li(void 0,void 0,"XGf7Zb"));var g=c.next().value,a=c.next().value,O=_.U(_.Li(void 0,void 0,"w55oqd"));c=O.next().value;var P=O.next().value;O=_.U(_.Li(0,void 0,"rBgpzc"));var k=O.next().value,u=O.next().value;O=_.I_(function(){switch(k()){case 1:u(2);break;case 3:var B,K;(K=(B=X.value).hidePopover)==null||K.call(B);u(0);C()}});
_.Jw(function(){if(D.show()){var B;p((B=D.children)==null?void 0:B.call(D));var K;a((K=D.location)==null?void 0:K.call(D));var L;P((L=D.classNames)==null?void 0:L.call(D));switch(k()){case 0:var t,Y;(Y=(t=X.value).showPopover)==null||Y.call(t);u(1);break;case 3:u(1);var y,J;(J=(y=X.value).hidePopover)==null||J.call(y);var T,H;(H=(T=X.value).showPopover)==null||H.call(T)}}else switch(k()){case 2:u(3);break;case 1:var q,R;(R=(q=X.value).hidePopover)==null||R.call(q);C();u(0)}},"Z8V4Qb");
_.JU(function(){});
var Q={};return _.A("yt-popover",{popover:"manual",el:X,style:_.P0({left:function(){var B;return(B=g())==null?void 0:B.left},
top:function(){var B;return(B=g())==null?void 0:B.top},
bottom:function(){var B;return(B=g())==null?void 0:B.bottom},
right:function(){var B;return(B=g())==null?void 0:B.right}}),
class:_.g$("ytPopoverComponentHost",c,(Q.ytPopoverComponentHostClosing=function(){return k()===3},Q.ytPopoverComponentHostSeeThrough=function(){var B;
return((B=D.seeThrough)==null?void 0:B.call(D))===!0},Q)),
"on:animationend":O},W)},"Q");var cjb={left:"0px",right:"auto",top:"0px",bottom:"auto"},o8b=function(){var D=this;this.registerTooltipElement=function(X){var c;D.tooltipElement=(c=X.querySelector("yt-popover"))!=null?c:void 0};
var C=_.U(_.Li(void 0,void 0,"EIh5sc"));this.state=C.next().value;this.setState=C.next().value;C=_.U(_.Li(void 0,void 0,"PC1M0b"));this.schedulerJobID=C.next().value;this.setSchedulerJobID=C.next().value},CD5=function(D,C){var X=iu,c=_.qX.addJob(function(){var W=WB5(X,D,C);
X.currentConfig=C;X.setState({text:C.text,location:_.b("web_tooltip_location_fix")?void 0:W,anchor:D,offset:C.offset,style:C.style})},4,C.delay);
X.setSchedulerJobID(c)},XuF=function(){var D=iu,C=D.schedulerJobID();
C&&(_.qX.cancelJob(C),D.setSchedulerJobID(void 0));D.setState(void 0);D.currentConfig=void 0};
o8b.prototype.notify=function(D,C){var X;((X=this.state())==null?void 0:X.anchor)===D&&(X=WB5(this,D,C),this.currentConfig=C,this.setState({text:C.text,location:_.b("web_tooltip_location_fix")?void 0:X,anchor:D,offset:C.offset,style:C.style}))};
var WB5=function(D,C,X){var c=C.getBoundingClientRect();C=window.innerWidth;var W=window.innerHeight,p=X.location,g=X.offset;X=X.text;if(D=D.tooltipElement){var a=getComputedStyle(D);D=a.font;var O=v0(a.lineHeight),P=v0(a.paddingLeft),k=v0(a.paddingRight),u=v0(a.paddingTop);a=v0(a.paddingBottom);var Q=document.createElement("canvas").getContext("2d");Q.font=D;X={width:Q.measureText(X).width+P+k,height:O+u+a}}else X=void 0;D=X;if(!D)return cjb;X=D.width;D=D.height;P=g+D;u=g+X;O=c.top>=P;P=W-c.bottom>=
P;k=c.left>=u;u=C-c.right>=u;a=p;switch(p){case "top":!O&&P&&(a="bottom");break;case "bottom":!P&&O&&(a="top");break;case "left":!k&&u&&(a="right");break;case "right":!u&&k&&(a="left")}switch(a){case "top":p=c.left+c.width/2-X/2;c=c.top-D-g;break;case "bottom":p=c.left+c.width/2-X/2;c=c.bottom+g;break;case "left":p=c.left-X-g;c=c.top+c.height/2-D/2;break;case "right":p=c.right+g;c=c.top+c.height/2-D/2;break;default:p=c.left+c.width/2-X/2,c=c.bottom+g}g=Object.assign({},cjb);p+X>C?(g.right="0px",g.left=
"auto"):(g.left=Math.round(Math.max(0,p)+window.scrollX)+"px",g.right="auto");c+D>W?(g.bottom="0px",g.top="auto"):(g.top=Math.round(Math.max(0,c)+window.scrollY)+"px",g.bottom="auto");return g};var iu;iu=new o8b;_.pSJ=_.F(function(){var D=_.tw(function(){var W;return(W=iu.state())==null?void 0:W.anchor},void 0,"tiGUn"),C=_.tw(function(){var W;
return(W=iu.state())==null?void 0:W.text},void 0,"TA2GQe"),X=_.tw(function(){var W;
return(W=iu.state())==null?void 0:W.style},void 0,"ucvFsf"),c=_.b("web_tooltip_location_fix")?_.tw(function(){var W=D();
var p=iu.currentConfig;if(W&&p)return WB5(iu,W,p)},void 0,"EpDz6"):_.tw(function(){var W;
return(W=iu.state())==null?void 0:W.location},void 0,"aRJtfd");
return _.A("yt-tooltip",{class:"ytTooltipContainerHost",el:_.fb(iu.registerTooltipElement),"aria-hidden":"true"},_.A(XSe,{classNames:function(){switch(X()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:c,show:function(){return!!C()&&!!c()},
seeThrough:!0},C))},"R");var ZTZ=Pe("stamper-context");_.FC=_.F(function(D){var C=D.data;var X=D.icon;var c=D.iconName;var W=D.animateIcon;var p=D.secondaryIcon;var g=D.secondaryIconName;var a=D.focusedOverride;var O=D.clientOnlyWizTooltipsEnabled;o0W();var P=jxr(C),k=P.size,u=P.style;D=P.disabled;var Q=P.onTap,B=P.alignByText,K=P.aTagConfig,L=P.customColors,t=P.segmentedPosition,Y=P.toggled,y=P.toggleable,J=P.accessibilityLabel,T=P.onToggle,H=P.iconPosition,q=P.oneOffCustomTextWrap,R=P.disableTextEllipsis,ph=P.disableBackdropFilter,Om=P.tooltipText,
xj=P.ariaHidden,Bo=P.tabIndex,r5=P.buttonText,Fd=P.formattedButtonText,GJ=P.animatedTextProps,jZ=P.onClickRateLimitMs,Ac=d5m(C,X,p,c,g,a,W),ib=Ac.type;X=Ac.shouldFocus;c=Ac.hasIconLeading;W=Ac.hasIconTrailing;var d5=Ac.hasIconLeadingTrailing,ub=Ac.hasIconOnly;p=Ac.hasIconOnly40;var L5=Ac.hasIconWithLabel;g=Ac.iconButton;var Nf=Ac.visiblyDisabled;a=Ac.overrideSmallSizeIcon;var xt=Ac.iconToRender;Ac=Ac.secondaryIconToRender;var u6=_.U(crd(Om,P.tooltipShape)).next().value,g5=function(K5){Q==null||Q(K5);
y()&&(T==null||T(K5))},oq=_.tw(function(){return jZ==null?void 0:jZ()},void 0,"siKywb"),rx=_.tw(function(){return oq()?THk(g5,oq()):g5},void 0,"wDTcN");
P={};var Rq={};return _.A(CZe,{className:_.g$("yt-spec-button-shape-with-label",(P["yt-spec-button-shape-with-label--is-overlay"]=function(){return u()==="overlay"||u()==="overlay-dark"},P)),
hasLabel:L5,textContent:function(){return _.A(l25,{text:r5,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:q,iconPosition:H,formattedButtonText:Fd,animatedTextProps:GJ})}},_.A(Ryc,{aTagConfig:K,
className:_.g$("yt-spec-button-shape-next",function(){return REW(ib())},function(){return Nf()?void 0:lxF(u())},function(){return DbF(k())},(Rq["yt-spec-button-shape-next--disabled"]=Nf,Rq["yt-spec-button-shape-next--focused"]=X,Rq["yt-spec-button-shape-next--icon-trailing"]=W,Rq["yt-spec-button-shape-next--icon-leading"]=c,Rq["yt-spec-button-shape-next--icon-leading-trailing"]=d5,Rq["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return d5()&&!(r5()||Fd())},Rq["yt-spec-button-shape-next--icon-button"]=
function(){return ub()||L5()},Rq["yt-spec-button-shape-next--icon-only-default"]=p,Rq["yt-spec-button-shape-next--align-by-text"]=B,Rq["yt-spec-button-shape-next--segmented-start"]=function(){return t()==="start"},Rq["yt-spec-button-shape-next--segmented-end"]=function(){return t()==="end"},Rq["yt-spec-button-shape-next--override-small-size-icon"]=a,Rq["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=q,Rq["yt-spec-button-shape-next--disable-text-ellipsis"]=R,Rq["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!ph()&&!_.b("web_disable_backdrop_filter")},Rq)),
style:function(){var K5=L();if(K5){var C1=K5.color;var LK=K5.backgroundColor;K5=K5.borderColor;var Mf="";C1&&(Mf+="color: "+C1+";");LK&&(Mf+="background-color: "+LK+";");K5&&(Mf+="border-color: "+K5+";");C1={style:Mf}}else C1={};return C1.style},
onClick:function(K5){rx()(K5)},
disabled:D,ariaLabel:J,toggleable:y,toggled:Y,title:function(){return(O==null?0:O())||!Om()?"":Om()},
visiblyDisabled:Nf,ariaHidden:xj,tabIndex:Bo,ref:function(K5){(O==null?0:O())&&u6(K5)}},_.A(D5C,{data:C,
hasIconLeading:c,hasIconLeadingTrailing:d5,hasIconTrailing:W,iconButton:g,icon:xt,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:Ac})))},"T");
_.FC.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Ze=_.F(function(D){var C=D.data;var X=D.className;var c=D.style;var W=D.useOutlinedIcon;var p=D.buttonOverrides;var g=D.animatedTextProps;var a=D.onClick;var O=D.target;var P=_.aX("button-view-model",function(T){T.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var H=C().targetId;H&&_.z0(_.jJ(),H,T);return function(){Jh(_.jJ(),T)}}),k=function(){return C().iconName},u=_.uu(function(T){a:{var H=C().entityKey,q=C().buttonEntitySelectorType;
if(q&&H)switch(q){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":T=(T=_.a_(T,H))?{isHidden:T.adsState==="ADS_STATE_NONE"||T.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:T={isHidden:!1};break a}T=void 0}return T}),Q,B=(Q=_.iX().resolve(_.vK(_.Hc)))==null?void 0:Q(),K=function(){var T=C();
var H=p==null?void 0:p(),q=g==null?void 0:g(),R=O==null?void 0:O();if(T){var ph=OPj(T.type);var Om=!!T.title||!!T.titleFormatted;var xj=!(!T.iconName&&!T.iconImage);Om=xj&&!Om?"icon-only":xj?T.iconTrailing||T.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Om==="icon-only-40"&&(ph="text");var Bo;xj=(Bo=H==null?void 0:H.state)!=null?Bo:ArJ(T.state);var r5,Fd=(r5=H==null?void 0:H.disabled)!=null?r5:T.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||T.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.b("web_button_vm_refactor_disabled")){var GJ;Fd=(GJ=H==null?void 0:H.disabled)!=null?GJ:xj==="disabled"}q=q&&q.numberText&&!isNaN(Number(q.numberValue))?q:void 0;r5=Object;GJ=r5.assign;Bo=T.title;var jZ=T.titleFormatted,Ac=T.accessibilityText,ib=ImR(T.style),d5=PDR(T.buttonSize);R=am5(T,P,Fd,a,R);Fd=Fd&&!T.onDisabledTap;var ub=Ubr(T,P),L5=T.customFontColor,Nf=T.customBackgroundColor;var xt=T.customBorderColor;var u6=T.customDarkThemeFontColor,g5=T.customDarkThemeBackgroundColor,oq=T.customDarkThemeBorderColor;
L5=B&&u6?u6:L5;Nf=B&&g5?g5:Nf;xt=B&&oq?oq:xt;xt={color:L5?_.e_(L5):void 0,backgroundColor:Nf?_.e_(Nf):void 0,borderColor:xt?_.e_(xt):void 0};if(oq=_.r(T.tooltipData,YAk)){var rx;Nf={text:(rx=oq.tooltipText)!=null?rx:"",location:puF(oq.placement),style:oq.style}}else Nf=void 0;T=GJ.call(r5,{},{buttonText:Bo,formattedButtonText:jZ,animatedTextProps:q,accessibilityLabel:Ac,style:ib,type:ph,state:xj,size:d5,iconPosition:Om,onTap:R,disabled:Fd,aTagConfig:ub,customColors:xt,tooltipText:T.tooltip,tooltipShape:Nf},
H)}else T={style:"mono",type:"text",state:"active",size:"M"};T.focused=Y();return T},L=function(){return qDr(K(),!!C().iconName)};
D=_.U(_.Li(!1,void 0,"yZ8hab"));Q=D.next().value;var t=D.next().value,Y=Q;D=_.I_(function(){var T=_.iX().resolve(_.vK(_.E7));T&&t(T.isKeyBoardInUse());return!1});
Q=_.I_(function(){t(!1);return!1});
_.Jw(function(){var T,H=_.r(C==null?void 0:(T=C())==null?void 0:T.onVisible,_.N_);H&&_.yK(H,{disableClickTracking:!0})},"G9MlKd");
var y=function(){var T;return(C==null?0:(T=C())==null?0:T.iconImage)?{sources:[C().iconImage]}:void 0},J=_.b("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.A("button-view-model",{el:P,class:_.g$("ytSpecButtonViewModelHost",X),"on:focusin":D,"on:focusout":Q},_.A(_.v,{cond:function(){var T,H;return!((H=C().entityKey&&C().buttonEntitySelectorType&&((T=u())==null?void 0:T.isHidden))!=null&&H)},
then:function(){return _.A(_.v,{cond:y,then:function(T){return _.A(_.FC,{data:K,icon:function(){return _.A(_.M_,{data:T,alt:"",targetWidth:L,targetHeight:L,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:J})},
else:function(){return _.A(_.FC,{data:K,icon:function(){return _.A(_.$_,{icon:k,active:function(){return(W==null?0:W())?!1:K().toggled},
animateIcon:function(){var T;return!!(c==null?0:(T=c())==null?0:T.animateIcon)},
size:L})},
clientOnlyWizTooltipsEnabled:J})}})}}))},"V");
_.Ze.idomCompat={callbacks:{onClick:!0}};_.CI(_.F(function(D){return _.A("yt-button-view-model",{id:D.id,class:_.g$(D.scopingClassName,D.classes),icon:function(){var C;return(C=D.icon)==null?void 0:C.call(D)},
"dialog-dismiss":function(){var C;return((C=D.dialogDismiss)==null?0:C.call(D))?"":void 0}},_.A(_.Ze,{data:function(){var C;
return(C=D.data)==null?void 0:C.call(D)},
className:function(){var C;return(C=D.className)==null?void 0:C.call(D)},
style:function(){var C;return(C=D.style)==null?void 0:C.call(D)},
useOutlinedIcon:function(){var C;return(C=D.useOutlinedIcon)==null?void 0:C.call(D)},
buttonOverrides:function(){var C;return(C=D.buttonOverrides)==null?void 0:C.call(D)},
animatedTextProps:function(){var C;return(C=D.animatedTextProps)==null?void 0:C.call(D)},
onClick:function(C){var X;return(X=D.onClick)==null?void 0:X.call(D,C)}}))},"W"),"yt-button-view-model",{props:{data:_.Bm,
className:_.Bm,style:_.Bm,useOutlinedIcon:_.Bm,buttonOverrides:_.Bm,animatedTextProps:_.Bm,onClick:_.R3,scopingClassName:_.Bm,id:_.Bm,icon:_.Bm,dialogDismiss:_.Bm,classes:_.Bm,target:_.R3}});_.CI(_.F(function(D){var C=D.data;var X=D.id;var c=D.className;var W=D.iconName;var p=D.animateIcon;var g=D.secondaryIconName;D=_.U(_.Li(!1,void 0,"TtJl8"));var a=D.next().value,O=D.next().value,P=function(){var u=_.iX().resolve(_.vK(_.E7));u&&O(u.isKeyBoardInUse())},k=function(){O(!1)};
D=_.aX("yt-button-shape",function(u){if(_.iX().resolve(_.vK(_.E7)))return u.addEventListener("focusin",P),u.addEventListener("focusout",k),function(){u.removeEventListener("focusin",P);u.removeEventListener("focusout",k)}});
return _.A("yt-button-shape",{el:D,id:X,class:c},_.A(_.v,{cond:C,then:function(){return _.A(_.FC,{data:C,iconName:W,secondaryIconName:g,focusedOverride:a,animateIcon:p})}}))},"X"),"yt-button-shape",{props:{data:_.Bm,
id:_.Bm,className:_.Bm,iconName:_.Bm,animateIcon:_.Bm,secondaryIconName:_.Bm,clientOnlyWizTooltipsEnabled:_.Bm,disableUpgrade:_.Bm},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Gl=function(){var D=_.w.apply(this,arguments)||this;D.isGoalActive=!0;return D};
_.h(Gl,_.w);Gl.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Gl.prototype.progressBarChanged=function(){var D=_.SY(this.hostElement).querySelector("#progress-bar-progress"),C,X,c,W=(c=Number((C=this.creatorGoalState)==null?void 0:C.currentGoalCount)/Number((X=this.creatorGoalState)==null?void 0:X.totalGoalCount)*100)!=null?c:0,p;D.style.width=((p=Math.min(W,100))!=null?p:0)+"%"};
Gl.prototype.goalStateChanged=function(){var D;this.isGoalActive=((D=this.creatorGoalState)==null?void 0:D.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var C;D={"--yt-progress-bar-color":TnR((C=this.creatorGoalState)==null?void 0:C.progressBarColor)};_.Os(this.hostElement,D)};
Gl.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.$a.Object.defineProperties(Gl.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var D;return this.isGoalActive&&!((D=this.creatorGoalState)==null||!D.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.endTimestampMs){var C;D=Number((C=this.creatorGoalState)==null?void 0:C.endTimestampMs)/1E3;return{seconds:String(D)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.themedTargetImage){var C;D=_.r((C=this.creatorGoalState)==null?void 0:C.themedTargetImage,hsd);return this.isAppDarkTheme()?D==null?void 0:D.imageDark:D==null?void 0:D.imageLight}}}});
_.$a.Object.defineProperties(Gl,{template:{configurable:!0,enumerable:!0,get:function(){return Y5M()}}});
Gl.prototype.goalStateChanged=Gl.prototype.goalStateChanged;Gl.prototype.progressBarChanged=Gl.prototype.progressBarChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],Gl.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);
_.V([_.n({selectorArgs:["data.creatorGoalEntityKey"],selector:function(D,C){return _.aI(D.entities,"creatorGoalEntity",C)}}),
_.z("design:type",Object)],Gl.prototype,"creatorGoalState",void 0);_.V([_.n(),_.z("design:type",Object)],Gl.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Gl.prototype,"isGoalActive",void 0);_.V([_.e("creatorGoalState","isGoalActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Gl.prototype,"shouldShowCountdown",null);_.V([_.e("creatorGoalState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Gl.prototype,"endTimestamp",null);
_.V([_.e("creatorGoalState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Gl.prototype,"targetIconThemedImage",null);_.V([_.vr("creatorGoalState.currentGoalCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gl.prototype,"progressBarChanged",null);_.V([_.vr("creatorGoalState.creatorGoalState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gl.prototype,"goalStateChanged",null);
_.V([_.Yn({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Gl);_.G(Gl,"yt-creator-goal-progress-flow-view-model",function(){return Y5M()},{mode:0});var SDJ;var U5M;var VG=function(){return _.w.apply(this,arguments)||this};
_.h(VG,_.w);VG.prototype.attached=function(){var D,C,X;if(this==null?0:(D=this.data)==null?0:(C=D.pdgPurchasedBumperLoggingDirectives)==null?0:(X=C.loggingDirectives)==null?0:X.trackingParams){var c,W,p;iPr(this==null?void 0:(c=this.data)==null?void 0:(W=c.pdgPurchasedBumperLoggingDirectives)==null?void 0:(p=W.loggingDirectives)==null?void 0:p.trackingParams)}};
VG.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],VG.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],VG.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],VG);
_.G(VG,"yt-live-chat-item-bumper-view-model",function(){if(U5M===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;SDJ===void 0&&(SDJ=document.createElement("template"));var c=SDJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);U5M=D}D=U5M;return D},{mode:0});var g8C;var ax5;_.qn=function(D,C){this.data=D;this.actions=C;this.data=D;this.actions=C};
_.Gr=function(){};_.Tl={};_.Tl.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(D,C){ket(this.hostElement,D,C)},
getNavigationEndpointPopupAction:function(D){return u4J(D,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(D,C){QW3(this.hostElement,D,C,this.openPopupConfig)}};var egn=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Hm={};
_.Hm.YtEndpointBehavior=[_.Tl.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.q6("openPopupConfig");(this.useClickHandler=_.dq("useClickHandler",!1))?this.hostElement.addEventListener("click",AA(this,this.onEndpointClick_)):(MI(this.hostElement,"tap",AA(this,this.onEndpointTap_)),MI(this.hostElement,"touchend",AA(this,this.onEndpointTouchEnd_)));MI(this.hostElement,"touchstart",AA(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
AA(this,this.onEndpointTapStart_))},
onEndpointClick_:function(D){rro(this.hostElement,D,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(D){var C=this.hostElement,X=this.openPopupConfig,c=this.disableCommandHandlerOverride;c=c===void 0?!1:c;var W=BZd(D);if(W){W.href&&Yo(W.href);var p=D.detail;var g=p.sourceEvent;p=p.preventer;g=g.button!==void 0?g.button===0&&!Q6(g):p?!Q6(p):!0;W.data&&g&&bPr(C,W,D,X,c)}},
onEndpointTouchEnd_:function(D){Q6(D)||BZd(D)&&D.preventDefault()},
onEndpointTapStart_:function(D){sWJ(D)}}];_.Jy={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(D){for(var C=_.Wf.getInstance(),X=_.U(Object.keys(D)),c=X.next();!c.done;c=X.next()){var W=c.value;c=D[W];if(this&&this[c]){var p=C.actionRoutingMap.get(W);p||(p=new Map,C.actionRoutingMap.set(W,p));C.registerActionHandler(this,W,this[c].bind(this),p)}else W=Error("ld"),W.params=c,_.Re(W)}},
unregisterActionMap:function(D){_.U6(_.Wf.getInstance(),D,this)}}]};var r$=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_"+(_.b("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.b("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.b("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.b("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.b("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.b("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var bu;var KI=new Map;var n0t=window.matchMedia("(forced-colors: active)").matches;var Ixg;var OcN;var Aj4=new _.P6("LOTTIE_LOADER_TOKEN");_.zl=_.F(function(D){var C=D.data;var X=D.className;var c=D.animationName;var W=D.animationRef;var p=D.elRefForInterop;var g=_.IX("lottie-component"),a;_.z3(function(){var P;return void((P=a)==null?void 0:P.destroy())});
var O;_.Jw(function(){var P=_.Mm(c);if(P!==O){O=P;var k=Object.assign({},{animationName:P,animationRef:_.Mm(W)},_.Mm(C));try{_.iX().resolve(Aj4)().then(function(B){var K;(K=a)==null||K.destroy();var L,t;K=(t=p==null?void 0:(L=p())==null?void 0:L.value)!=null?t:g.value;L=k.animationRef;t=k.listeners;B=B.loadAnimation(Object.assign({},{container:K},k.animationConfig));L&&(L.lottieEl=B);if(t)for(K=_.U(Object.entries(t)),L=K.next();!L.done;L=K.next())t=_.U(L.value),L=t.next().value,(t=t.next().value)&&
B.addEventListener(L,t);a=B})}catch(B){P=B;
var u="LottieComponent error.";P.message&&(u+=" Original description: "+P.message);_.dO(P,u);_.fQ(P);var Q;((Q=k.listeners)==null?0:Q.error)&&k.listeners.error(P)}}},"nrJISd");
return _.A(A8Z,{cond:function(){return!(p==null?0:p())},
then:function(){return _.A("lottie-component",{class:_.g$("ytLottieComponentHost",X),el:g})}})},"Z");_.CI(_.F(function(D){return _.A("ytd-lottie-player",{id:D.id,hidden:D.hidden,class:D.className,"aria-label":D.ariaLabel,style:"display: block;"},_.A(_.zl,{data:D.data,animationName:function(){var C;return((C=D.data().animationConfig)==null?void 0:C.name)||""},
animationRef:function(){return D.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.Bm,
id:_.Bm,hidden:_.Bm,className:_.Bm,ariaLabel:_.Bm}});var jO=function(){var D=_.w.apply(this,arguments)||this;D.animationRef={};D.delhiIconsEnabled=_.b("enable_web_delhi_icons");return D};
_.h(jO,_.w);_.S=jO.prototype;
_.S.handlePropertyChange=function(){var D=this.animatedIcon,C=this.active,X=this.isDarkTheme;if(D){var c=this.previousActive!==C;this.previousActive=C;this.animationRef.lottieEl?c?this.toggleAnimation(C,D.totalFrames):_.b("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(C,D.totalFrames):C?this.initializeAnimationAsToggled(D.lottiePlayerProps,D.totalFrames):this.initializeAnimationAsUntoggled(D.lottiePlayerProps);D.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
D.type;this.lottiePlayerProps=this.computeLottiePlayerProps(D,X)}};
_.S.computeLottiePlayerProps=function(D,C){var X=this.deepCloneLottiePlayerProps(D);C?(C=D.nameDarkTheme,D=D.pathDarkTheme):(C=D.name,D=D.path);X.animationConfig.name=C;(C=KI.get(D))?X.animationConfig.animationData=C:X.animationConfig.path=D;return X};
_.S.initializeAnimationAsToggled=function(D,C){D.animationConfig.initialSegment=[C-1,C]};
_.S.initializeAnimationAsUntoggled=function(D){D.animationConfig.initialSegment=void 0};
_.S.toggleAnimation=function(D,C){if(D){var X;(X=this.animationRef.lottieEl)==null||X.playSegments([0,C],!0)}else{var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,1],!0)}};
_.S.setAnimationState=function(D,C){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(D?C-1:0,!0)};
_.S.deepCloneLottiePlayerProps=function(D){var C=Object.assign({},D.lottiePlayerProps.animationConfig);D=Object.assign({},D.lottiePlayerProps);D.animationConfig=C;return D};
jO.prototype.handlePropertyChange=jO.prototype.handlePropertyChange;_.V([_.n(),_.z("design:type",Object)],jO.prototype,"animatedIcon",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],jO.prototype,"active",void 0);_.V([_.n(),_.z("design:type",Boolean)],jO.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],jO.prototype,"animatedIconType",void 0);_.V([_.n(),_.z("design:type",Boolean)],jO.prototype,"previousActive",void 0);
_.V([_.n(),_.z("design:type",Object)],jO.prototype,"lottiePlayerProps",void 0);_.V([_.n(),_.z("design:type",Object)],jO.prototype,"animationRef",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jO.prototype,"delhiIconsEnabled",void 0);_.V([_.vr("animatedIcon","active","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jO.prototype,"handlePropertyChange",null);_.V([_.Yn({is:"yt-animated-icon",disableElementRegistration:!0})],jO);
_.G(jO,"yt-animated-icon",function(){if(OcN===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Ixg===void 0&&(Ixg=document.createElement("template"));var c=Ixg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);OcN=D}D=OcN;return D},{mode:2});var PZe;var $5x;_.hl=_.F(function(D){var C={value:null,cancelled:!1};_.z3(function(){C.cancelled=!0});
var X=_.tw(D.data,{equals:function(c,W){return c.iconName===W.iconName&&c.iconStyle===W.iconStyle&&c.iconSize===W.iconSize&&c.iconSetName===W.iconSetName&&c.iconSelected===W.iconSelected}},"ck24jb");
return _.A("span",{class:"yt-icon-shape",el:_.fb(function(c){_.Jw(function(){var W,p=(W=D.options)==null?void 0:W.call(D);W=X();Vat(c,C,W,p)},"v878Je")})})},"ba");
_.hl.idomCompat=!0;var ps5=["youtube_fill","youtube_outline"];var v8M=new _.qD({type:"iconset",value:void 0}),ML=function(){var D=_.w.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.iconName="";D.iconsetName="yt-icons";D.iconset=null;D.missingIconSet=!1;D.iconType=null;D.iconShapeDataSignal=_.Li(void 0,void 0,"TaEgXd");D.renderingOptionsSignal=_.Li({iconWidth:"100%",iconHeight:"100%",iconFilter:D.iconFilter,iconColor:D.gradientColor},void 0,"a1vqYe");D.wizHasRendered=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return D};
_.h(ML,_.w);ML.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
ML.prototype.handlePropertyChange=function(){var D=this,C,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y;return _.I(function(y){switch(y.nextAddress){case 1:if(C=!D.icon&&!D.iconName||!D.isAttached)return y.return();X=D;c=X.icon;W=X.size;p=X.defaultToFilled;g=X.active;a=X.targetContainer;D.toggleContainerClass(a);_.b("kevlar_use_wil_icons")&&c&&(O=iso(c),D.iconType=O.length?O[1]:null);if(c){y.jumpTo(2);break}D.iconsetName="";D.iconName="";return y.yield(D.renderIcon(a,c),3);case 3:return y.return();case 2:P=icx(c);
k=iso(P);k.length&&(D.iconsetName=k[0],D.iconName=k[1]);if(!_.b("kevlar_use_wil_icons")){y.jumpTo(4);break}u=ML;Q=kq4;B=D.iconType;K=D.active;L=D.defaultToFilled;t=D.size;Y=D.iconsetName;return y.yield(uq5(),6);case 6:return y.yield(Q.call(u,B,K,L,t,Y,y.yieldResult),5);case 5:D.iconShapeData=y.yieldResult;case 4:if(D.shouldRenderIconShape(a)){y.jumpTo(7);break}return y.yield(D.determineIconSet(P,g,p,W,a),7);case 7:return y.yield(D.renderIcon(a,c),0)}})};
ML.prototype.toggleContainerClass=function(D){D?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var icx=function(D){return!_.b("default_to_innertube_icon")||D.indexOf(":")>0?D:_.g2(D)};
_.S=ML.prototype;_.S.determineIconSet=function(D,C,X,c){var W=this;return _.I(function(p){return p.nextAddress==1?_.b("kevlar_system_icons")||_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.q6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?p.yield(W.switchToYtSysIconset(D,C,X,c),3):p.jumpTo(2):p.nextAddress!=2?p.return():p.yield(W.useYtSysIconsetForMissingIcons(D,C,X,c),0)})};
_.S.switchToYtSysIconset=function(D,C,X,c){var W=this,p,g,a,O,P,k,u;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!D||W.iconsetName!=="yt-icons"&&W.iconsetName!=="yt-sys-icons"){Q.jumpTo(0);break}p=iso(D);g=p[1];var B=g;if(hBr(B))g=B;else{var K=B=B.toLowerCase();(B=x75.get(B))&&(K=B);g=K}_.b("enable_polymer_icons_replace_underscores_dash")&&g.includes("_filled")&&(g=g.replace(/_filled/g,"-filled"));return Q.yield(U4(g,!0),3);case 3:return a=Q.yieldResult,Q.yield(U4(g,!1),4);case 4:if((O=
Q.yieldResult)||C&&a)W.iconsetName="yt-sys-icons";W.iconName=W.getIconName(g,C,X,O,a);if(c===24){Q.jumpTo(0);break}P="yt-sys-icons"+c+":"+W.iconName;return Q.yield(U4(P,!1,!0),6);case 6:return k=Q.yieldResult,Q.yield(U4(P,!0,!0),7);case 7:u=Q.yieldResult;W.iconName=W.getIconName(g,C,X,k,u);if(!C&&k||C&&u)W.iconsetName="yt-sys-icons"+c;_.t_(Q)}})};
_.S.getIconName=function(D,C,X,c,W){D.includes("-filled")&&(D=D.replace("-filled",""));return W&&(C||X)?D+"-filled":D};
_.S.useYtSysIconsetForMissingIcons=function(D,C,X,c){var W=this,p,g;return _.I(function(a){if(a.nextAddress==1)return W.iconsetName!=="yt-icons"?a.jumpTo(0):a.yield(U4(W.iconName,!1,!1,!0),3);if(a.nextAddress!=4)return p=a.yieldResult,a.yield(U4(W.iconName,!1),4);g=a.yieldResult;if(p||!g)return a.jumpTo(0);W.iconsetName="yt-sys-icons";return a.yield(W.switchToYtSysIconset(D,C,X,c),0)})};
_.S.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var uq5=function(){return _.I(function(D){try{return D.return(_.iX().resolve(_.a3))}catch(C){return D.return(new Promise(function(X){_.uP().parkOrScheduleJob(function(){X(_.iX().resolve(_.a3))},2,"ci")}))}})},kq4=function(D,C,X,c,W,p){c=c===void 0?24:c;
if(D){D=D.toLowerCase();var g=D.endsWith("_filled")||D.endsWith("-filled");C={iconName:D,iconStyle:(C===void 0?0:C)||(X===void 0?0:X)||g?"youtube_fill":"youtube_outline",iconSize:c,iconSetName:W===void 0?"yt-icons":W};X=!!p.resolveIcon(C);X||(C.iconSize=void 0,X=!!p.resolveIcon(C));!X&&g&&(C.iconName=D.substring(0,D.length-7),C.iconSize=c,X=!!p.resolveIcon(C),X||(C.iconSize=void 0,X=!!p.resolveIcon(C)));X||(C.iconStyle=void 0,X=!!p.resolveIcon(C));X||_.fQ(new _.Zf("Icon not supported",{iconName:C.iconName,
iconStyle:C.iconStyle,iconSize:C.iconSize,iconType:D}));return X?C:void 0}};
_.S=ML.prototype;_.S.shouldRenderIconShape=function(D){if(!_.b("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;D=this.getContainer(D);return!wut(D,this.icon)};
_.S.renderIcon=function(D,C){var X=this,c,W,p,g,a,O,P,k;return _.I(function(u){switch(u.nextAddress){case 1:if(C&&X.icon!==C)return u.return();c=X.getContainer(D);W=wut(c,X.icon);if(X.shouldRenderIconShape(D)&&X.iconType)return X.applyIconShape(W,c),u.return();X.removeIconShape();if(!c)return u.return();X.iconName===""&&X.iconset&&c&&(X.removeStaticIcon(X.iconset,c),W&&X.removeAnimatedIcon(c));if(X.iconName===""&&X.iconset||!X.iconsetName||!v8M)return u.return();X.iconset=v8M.byKey(X.iconsetName);
if(!X.iconset)return X.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Pr(X,X.onIconsetAdded)),u.return();X.missingIconSet&&(X.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Pr(X,X.onIconsetAdded)));g=(p=W||X.isAnimatedIcon?YP3(X.icon):void 0)&&!p.lazyLoad;O=p&&((a=p)==null?void 0:a.lazyLoad)&&(p.lottiePlayerProps.animationConfig.animationData?!0:KI.get(X.isDarkTheme?p.pathDarkTheme:p.path)?!0:!1);if(g||O)return X.applyAnimatedIcon(c,p,X.iconset),u.return();if(O||
(P=p)==null||!P.lazyLoad){u.jumpTo(2);break}k=ZPF(p,X.isDarkTheme);X.applyStaticIcon(X.iconset,c,X.iconName,D,W);return u.yield(k,3);case 3:return u.yield(X.renderIcon(X.targetContainer,X.icon),4);case 4:return u.return();case 2:X.applyStaticIcon(X.iconset,c,X.iconName,D,W),_.t_(u)}})};
_.S.getContainer=function(D){var C,X=(C=C4m(this.hostElement))==null?void 0:C.host;C=!!X&&!!X.polymerController;if(!D||C)return D?this.getTargetContainer(D,X):this.hostElement};
_.S.getTargetContainer=function(D,C){var X=_.SY(C).querySelector("#"+D);X||(D=new _.Zf("yt-icon container missing",C.is,D),_.MN(D));return X};
_.S.applyStaticIcon=function(D,C,X,c,W){W&&this.removeAnimatedIcon(C);this.removeIconShape();W=W&&!!this.iconType&&!!this.iconShapeData&&_.b("kevlar_use_wil_icons");try{W?this.applyIconShape(!1,C):D.applyIcon(C,X)}catch(p){this.handleError(p,c,C)}};
_.S.applyIconShape=function(D,C){this.iconset&&C&&(this.removeStaticIcon(this.iconset,C),D&&this.removeAnimatedIcon(C));D={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var X=_.U(this.iconShapeDataSignal);C=X.next().value;X=X.next().value;var c=_.U(this.renderingOptionsSignal),W=c.next().value;c=c.next().value;X(this.iconShapeData);c(D);if(!this.wizHasRendered)for(this.wizHasRendered=!0,D=_.U(TZF(C,W)).next().value;D.firstChild;)_.SY(this.hostElement).appendChild(D.firstChild)};
_.S.removeIconShape=function(){if(_.b("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.S.removeStaticIcon=function(D,C){D.removeIcon(C)};
_.S.applyAnimatedIcon=function(D,C,X){this.removeStaticIcon(X,D);this.removeIconShape();var c;X=this.animatedIconElement&&((c=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:c.type)===C.type;if(this.animatedIconElement&&X){this.animatedIconElement.polymerController.animatedIcon=C;var W;((W=this.animatedIconElement)==null?void 0:W.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(D),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=C,this.animatedIconElement.polymerController.active=this.active,_.b("delhi_modern_web_player_icons")?(C=yrd(D,this.icon)&&D.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=C?C.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.b("kevlar_use_wil_icons")?
D.insertBefore(this.animatedIconElement,D.childNodes[0]):(D=_.SY(D),D.insertBefore(this.animatedIconElement,D.childNodes[0]))};
_.S.removeAnimatedIcon=function(D){_.b("kevlar_use_wil_icons")?this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement):(D=_.SY(D),this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.S.handleError=function(D,C,X){_.dO(D,this.iconName,C,X);C=wut(X,this.icon);var c=!1;window.location.href.includes("JpymaW6Lh2w")?c=!0:X._svgIcon&&(X=(X=X._svgIcon.parentNode)?X.tagName:"unknown",_.dO(D,X),X==="YT-ICON"&&D.name==="NotFoundError"?c=!0:D.name==="NotFoundError"&&C&&(c=!0));c?_.fQ(D):_.MN(D)};
_.$a.Object.defineProperties(ML,{template:{configurable:!0,enumerable:!0,get:function(){if($5x===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;
PZe===void 0&&(PZe=document.createElement("template"));var c=PZe;X.call(C,c.content.cloneNode(!0),D.content.firstChild);$5x=D}D=$5x;return D}}});
ML.prototype.handlePropertyChange=ML.prototype.handlePropertyChange;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ML.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",String)],ML.prototype,"icon",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],ML.prototype,"active",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],ML.prototype,"defaultToFilled",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],ML.prototype,"isAnimatedIcon",void 0);
_.V([_.n({value:24}),_.z("design:type",Number)],ML.prototype,"size",void 0);_.V([_.n({value:""}),_.z("design:type",String)],ML.prototype,"targetContainer",void 0);_.V([_.n(),_.z("design:type",Object)],ML.prototype,"animatedIconElement",void 0);_.V([_.n(),_.z("design:type",Object)],ML.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ML.prototype,"ariaHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],ML.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],ML.prototype,"role",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],ML.prototype,"tabindex",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],ML.prototype,"title",void 0);_.V([_.n(),_.z("design:type",String)],ML.prototype,"style",void 0);_.V([_.n(),_.z("design:type",String)],ML.prototype,"iconFilter",void 0);_.V([_.n(),_.z("design:type",String)],ML.prototype,"gradientColor",void 0);
_.V([_.vr("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],ML.prototype,"handlePropertyChange",null);_.V([_.Yn({is:"yt-icon",noInjection:!0})],ML);var HPJ="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),zgj=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Qx4={};Qx4.YtPlaintextBehavior=[_.H8,{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(D){D.preventDefault();D=D.clipboardData.getData("text/plain");document.execCommand("insertText",!1,D)},
preventRichTextFormatting_:function(D){_.PT&&(D=D.detail.keyboardEvent,D.stopImmediatePropagation(),D.preventDefault())}}];var Bs5;var bcJ;var qL=function(){var D=_.w.apply(this,arguments)||this;D.ignoreShadyDom=!1;D.hasChange_=!1;D.hasSetTitle_=!1;D.useIOObserverForVisibilityLogging_=_.b("kevlar_use_vimio_behavior")&&_.q6("INNERTUBE_CLIENT_NAME")==="WEB";D.ytFormattedStringObserverHandlerKeys_=void 0;return D};
_.h(qL,_.w);_.S=qL.prototype;_.S.created=function(){this.useIOObserverForVisibilityLogging_=_.b("kevlar_use_vimio_behavior")&&_.q6("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.S.ready=function(){_.q6("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_()};
_.S.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.S.detached=function(){this.unobserveIOObservers_()};
_.S.clearContents_=function(){for(var D=this.getRoot(),C=D.lastChild;C&&C.tagName!=="STYLE";){try{D.removeChild(C)}catch(X){break}C=D.lastChild}};
_.S.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var D=_.U(this.ytFormattedStringObserverHandlerKeys_),C=D.next();!C.done;C=D.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(C.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.S.resetForAttributedString=function(){var D=this.getRoot();!D.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),D.appendChild(this.ytAttributedStringElementRef))};
_.S.resetForFormattedString=function(){var D=this.getRoot(),C=D.querySelector("yt-attributed-string");C&&(this.ytAttributedStringElementRef=D.removeChild(C))};
_.S.textChanged=function(){this.textChanged_(this.text)};
_.S.textChanged_=function(D){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!D||!D.runs&&!D.simpleText;if(_.b("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var C=this.hostElement.firstChild;C&&C.nodeName==="FONT";){var X=C;C=C.nextSibling;this.hostElement.removeChild(X)}C=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
X=D.simpleText;var c;!X&&((c=D.runs)==null?void 0:c.length)===1&&this.isSimpleString_(D.runs[0])&&(X=D.runs[0].text);X!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.q6("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(X!==void 0){try{C.textContent=X}catch(W){}C.textContent||(this.isEmpty=!0)}else D=D.runs,X!==void 0&&(D=[{text:X}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),D&&this.updateText_(D),
C.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.S.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)};
_.S.computeAriaLabel_=function(D){return D};
_.S.computeEllipsisTruncateStyling=function(D,C){return D&&!C};
_.S.computeUseAttributedString=function(D){return _.b("web_replace_formatted_with_attributed_string")&&WKm(D)&&!this.disableAttributedString&&!this.enableContentEditable};
_.S.setNodeStyle_=function(D,C){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.b("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?C.removeAttribute("dir"):C.setAttribute("dir","auto");C.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");C.style.color="";var X=null;this.noStyles||(D.bold&&(C.classList.add("bold"),X="bold"),D.deemphasize&&(C.classList.add("deemphasize"),X="deemphasize"),D.italics&&C.classList.add("italic"),
D.strikethrough&&C.classList.add("strikethrough"),D.errorUnderline&&(C.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),D.bracket&&C.classList.add("bracket"),D.textColor&&(C.style.color=_.mW(D.textColor)));X!==C.getAttribute("style-target")&&(X?C.setAttribute("style-target",X):C.removeAttribute("style-target"))};
_.S.setUpVisibilityLogging_=function(D,C){var X=this;this.setNodeTrackingParams_(D,C);var c;((c=C.data)==null?0:c.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(D=this.ytRendererBehavior.visibilityObserver.observe(C,function(W){var p=X.ytRendererBehavior.getVisibilityLogger();p&&p.reportShown(W)},this.ytRendererBehavior.visibilityOptionVisible_),C=this.ytRendererBehavior.visibilityObserver.observe(C,function(W){var p=X.ytRendererBehavior.getVisibilityLogger();
p&&p.reportHidden(W)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(D),this.ytFormattedStringObserverHandlerKeys_.push(C))};
_.S.setNodeTrackingParams_=function(D,C){C.data||(C.data={});if((D=D.loggingDirectives?D.loggingDirectives.trackingParams:null)||C.data.trackingParams)C.data.trackingParams=D};
_.S.computeHasLinkOnly_=function(D){return!(!D||D.length!==1||this.noEndpoints||!D[0].navigationEndpoint)};
_.S.getRoot=function(){var D=this.buildScopeDomOptions();return this.enableContentEditable?_.SY(_.SY(this.hostElement,D).querySelector("[contenteditable]")):_.SY(this.hostElement,D)};
_.S.fixContenteditableScope=function(){var D=function(C){C&&(C.nodeType===1&&C.classList&&(C.classList.add("style-scope"),C.classList.add("yt-formatted-string")),C.childNodes&&C.childNodes.forEach(function(X){D(X)}))};
D(this.getRoot())};
_.S.updateText_=function(D){for(var C=D.length,X=this.getRoot(),c=X.firstChild;c&&c.nodeName==="STYLE";)c=c.nextSibling;for(var W=0;W<C&&c;){var p=D[W],g=_.b("remove_cr_char")&&p.text?p.text.replace("\r",""):p.text;if(this.isSimpleString_(p)&&!this.useMixedDirectionFormattedStrings)if(c.nodeName==="#text"){c.textContent!=g&&(c.textContent=g);W++;c=c.nextSibling;continue}else break;if(_.r(p,E4))break;else if(!this.noEndpoints&&p.navigationEndpoint){if(c.nodeName!=="A")break;this.setDataOnAnchor_(c,
p.navigationEndpoint)}else if(c.nodeName!=="SPAN")break;this.setNodeStyle_(p,c);this.setUpVisibilityLogging_(p,c);c.textContent!=g&&(c.textContent=g);W++;c=c.nextSibling}if(c)for(p=X.lastChild,c=W?c.previousSibling:null;p&&p!=c;){try{X.removeChild(p)}catch(a){break}p=X.lastChild}W!==C&&this.addTextNodes_(D,W)};
_.S.addTextNodes_=function(D,C){for(var X=document.createDocumentFragment(),c=D.length;C<c;C++){var W=D[C],p=_.b("remove_cr_char")&&W.text?W.text.replace("\r",""):W.text;if(this.isSimpleString_(W)&&!this.useMixedDirectionFormattedStrings)X.appendChild(document.createTextNode(p));else{var g=_.r(W,E4);if(g){if(g.image){var a=document.createElement("img");g.isCustomEmoji||a.classList.add("small-emoji");a.classList.add("emoji");g.isCustomEmoji&&(a.dataset.emojiId=g.emojiId);a.src=_.XA(g.image.thumbnails,
this.emojiSize);(W=this.get("image.accessibility.accessibilityData.label",g))?a.alt=W:g.shortcuts&&g.shortcuts.length>0?a.alt=g.shortcuts[0]:g.emojiId&&(a.alt=g.emojiId);X.appendChild(a);this.hasEmoji=!0}}else!this.noEndpoints&&W.navigationEndpoint?(a=document.createElement("a"),a.classList.add("yt-simple-endpoint"),a.setAttribute("spellcheck","false"),this.setDataOnAnchor_(a,W.navigationEndpoint)):a=document.createElement("span"),this.setNodeStyle_(W,a),this.setUpVisibilityLogging_(W,a),a.appendChild(document.createTextNode(p)),
X.appendChild(a)}}this.getRoot().appendChild(X)};
_.S.isSimpleString_=function(D){return(this.noEndpoints||!D.navigationEndpoint)&&!_.r(D,E4)&&(this.noStyles||!(D.bold||D.deemphasize||D.italics||D.strikethrough||D.errorUnderline||D.bracket||D.textColor))&&!D.loggingDirectives};
_.S.getRawText=function(){return _.Mh(this.text)};
_.S.getFirstRunText=function(){var D;if(((D=this.text)==null?0:D.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.S.setFirstRunText=function(D){var C;((C=this.text)==null?0:C.runs)&&this.text.runs[0]&&(this.text.runs[0].text=D,this.textChanged_(this.text))};
_.S.setDataOnAnchor_=function(D,C){var X=this;!_.b("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(C)||this.isSignalServiceEndpoint_(C)?(D.onclick=this.serviceEndpointHandler_(C),ff(D,"#")):cG3({text:this.text,command:C},function(){$Hh(D,C,X.target)})};
_.S.isServiceEndpoint_=function(D){var C;return!((C=_.r(D==null?void 0:D.commandMetadata,_.ge))==null||!C.sendPost)};
_.S.isSignalServiceEndpoint_=function(D){return!!_.r(D,_.Up)};
_.S.serviceEndpointHandler_=function(D){var C=this;return function(X){_.cE(C.hostElement,[D]);X.preventDefault()}};
_.S.overrideAriaLabelChanged_=function(){var D=this.getRoot();this.enableContentEditable&&D&&D.setAttribute("aria-label",this.overrideAriaLabel)};
_.S.enableContentEditableChanged_=function(){var D=this,C=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),C=_.SY(this.hostElement,C),!C.lastChild||C.lastChild instanceof HTMLElement&&C.lastChild.id!=="contenteditable-root"){var X=document.createElement("div");X.id="contenteditable-root";X.setAttribute("contenteditable","true");X.setAttribute("dir","auto");X.onfocus=function(){D.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
C.appendChild(X);this.overrideAriaLabel&&X.setAttribute("aria-label",this.overrideAriaLabel)}}else X=_.Us(this.hostElement).firstChild,X instanceof HTMLElement&&X.id==="contenteditable-root"&&_.SY(this.hostElement,C).removeChild(X)};
_.S.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.S.getNodesForVisibilityLogging_=function(){return _.Sz(this.getRoot().childNodes,function(D){var C;return!((C=D.data)==null||!C.trackingParams)})};
_.S.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.S.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(C){D.reportShown(C)})}};
_.S.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(C){D.reportHidden(C)})}};
_.$a.Object.defineProperties(qL.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.b("enable_mixed_direction_formatted_strings")}}});
qL.prototype.enableContentEditableChanged_=qL.prototype.enableContentEditableChanged_;qL.prototype.overrideAriaLabelChanged_=qL.prototype.overrideAriaLabelChanged_;qL.prototype.ellipsisTruncateChanged_=qL.prototype.ellipsisTruncateChanged_;qL.prototype.textChanged=qL.prototype.textChanged;_.V([_.m(Qx4.YtPlaintextBehavior),_.z("design:type",Object)],qL.prototype,"ytPlaintextBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qL.prototype,"text",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"noEndpoints",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"noStyles",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"isDarkTheme",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],qL.prototype,"splitLines",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"forceDefaultStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"ellipsisTruncate",void 0);_.V([_.n(),_.z("design:type",Object)],qL.prototype,"ignoreShadyDom",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.z("design:type",Boolean)],qL.prototype,"ellipsisTruncateStyling",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.z("design:type",String)],qL.prototype,"ariaLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],qL.prototype,"isEmpty",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.z("design:type",Boolean)],qL.prototype,"hasLinkOnly_",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"hasEmoji",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"disableAttributedString",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"isOverlay",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"linkInheritColor",void 0);
_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"noPreWrap",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"userInput",void 0);_.V([_.n({value:16}),_.z("design:type",Number)],qL.prototype,"emojiSize",void 0);_.V([_.n(),_.z("design:type",String)],qL.prototype,"target",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"enableContentEditable",void 0);_.V([_.n(),_.z("design:type",String)],qL.prototype,"overrideAriaLabel",void 0);
_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"respectHtmlDir",void 0);_.V([_.n(),_.z("design:type",Boolean)],qL.prototype,"respectLangDir",void 0);_.V([_.e("plaintextOnly"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qL.prototype,"useMixedDirectionFormattedStrings",null);_.V([_.n({computed:"computeUseAttributedString(text)"}),_.z("design:type",Boolean)],qL.prototype,"useYtAttributedString",void 0);
_.V([_.vr("text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"textChanged",null);_.V([_.vr("ellipsisTruncate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"ellipsisTruncateChanged_",null);_.V([_.vr("overrideAriaLabel"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"overrideAriaLabelChanged_",null);
_.V([_.vr("enableContentEditable"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qL.prototype,"enableContentEditableChanged_",null);_.V([_.Yn({is:"yt-formatted-string",disableElementRegistration:!0})],qL);
_.G(qL,"yt-formatted-string",function(){if(bcJ===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Bs5===void 0&&(Bs5=document.createElement("template"));var c=Bs5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);bcJ=D}D=bcJ;return D});var rj5;var KB4;var hEJ;var x5x;var f4=function(){var D=_.w.apply(this,arguments)||this;D.focused=!1;D.disabled=!1;D.isOverlay=!1;return D};
_.h(f4,_.w);f4.prototype.triggerDown=function(){if(!this.disabled){_.gi(this.hostElement,"down",!0);var D;(D=this.currentAnimation)==null||D.cancel()}};
f4.prototype.triggerUp=function(){if(!this.disabled){_.gi(this.hostElement,"down",!1);var D=this.fillElement;var C=this.strokeElement;typeof GroupEffect==="function"?(D=new GroupEffect([Tsh(D),Hch(C)]),D=new Animation(D,document.timeline)):D=new q5k(D,C);this.currentAnimation=D;var X;(X=this.currentAnimation)==null||X.play()}};
_.V([_.kn(".stroke"),_.z("design:type",HTMLElement)],f4.prototype,"strokeElement",void 0);_.V([_.kn(".fill"),_.z("design:type",HTMLElement)],f4.prototype,"fillElement",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],f4.prototype,"focused",void 0);_.V([_.n(),_.z("design:type",Object)],f4.prototype,"disabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],f4.prototype,"isOverlay",void 0);_.V([_.Yn({is:"yt-interaction",disableElementRegistration:!0})],f4);
_.G(f4,"yt-interaction",function(){if(x5x===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;hEJ===void 0&&(hEJ=document.createElement("template"));var c=hEJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);x5x=D}D=x5x;return D},{mode:2});var dp=function(){return _.w.apply(this,arguments)||this};
_.h(dp,_.w);_.S=dp.prototype;_.S.ready=function(){var D=this,C=_.SY(this.hostElement).querySelector("#button");C.addEventListener("focus",function(){bZd||(bZd=new Bgx);D.keyboardFocused=bZd.isKeyBoardInUse()});
C.addEventListener("blur",function(){D.keyboardFocused=!1;D.rippleUp_()})};
_.S.computeTabIndex_=function(D){return D?-1:0};
_.S.computeButtonAriaPressed_=function(D){if(this.toggleable)return D?"true":"false"};
_.S.rippleDown_=function(){_.SY(this.hostElement).querySelector("#interaction").triggerDown()};
_.S.rippleUp_=function(){_.SY(this.hostElement).querySelector("#interaction").triggerUp()};
_.S.onPressedChanged_=function(){var D=_.Us(_.SY(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Us(_.SY(this.hostElement).querySelector("#button")).children[0];D&&(D.active=this.pressed)};
dp.prototype.onPressedChanged_=dp.prototype.onPressedChanged_;dp.prototype.rippleUp_=dp.prototype.rippleUp_;dp.prototype.rippleDown_=dp.prototype.rippleDown_;_.V([_.n(),_.z("design:type",String)],dp.prototype,"label",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],dp.prototype,"disabled",void 0);_.V([_.n(),_.z("design:type",Boolean)],dp.prototype,"pressed",void 0);_.V([_.n(),_.z("design:type",Object)],dp.prototype,"toggleable",void 0);
_.V([_.n(),_.z("design:type",Boolean)],dp.prototype,"untabbable",void 0);_.V([_.n(),_.z("design:type",Boolean)],dp.prototype,"keyboardFocused",void 0);_.V([_.$n("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dp.prototype,"rippleDown_",null);_.V([_.$n("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dp.prototype,"rippleUp_",null);
_.V([_.vr("pressed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dp.prototype,"onPressedChanged_",null);_.V([_.Yn({is:"yt-icon-button",disableElementRegistration:!0})],dp);
_.G(dp,"yt-icon-button",function(){if(KB4===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;rj5===void 0&&(rj5=document.createElement("template"));var c=rj5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);KB4=D}D=KB4;return D},{mode:2});var LBC;var sxx=function(){var D=document.body,C=D.appendChild;if(LBC===void 0){var X=document.createElement("template");_.x(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>');
LBC=X}X=LBC;C.call(D,X.content)};
document.body?sxx():window.addEventListener("DOMContentLoaded",sxx);var m55=_.q8(["aria-"]),Rs={};Rs.YtRenderButtonBehavior=[_.f.YtRendererBehavior,_.Hm.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!!_.iX().resolve(_.vK(_.E7))&&_.b("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 D=this.computeHref_(this.endpoint,!0);D?ff(this.elements_.endpoint,D):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){D=this.buttonClass.split(" ");D=_.U(D);for(var C=D.next();!C.done;C=D.next())C=C.value,_.gi(this.hostElement,C,!0),this.elements_.button&&_.gi(this.elements_.button,C,!0),this.elements_.text&&_.gi(this.elements_.text,C,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(D=null,this.buttonAccessibility&&(D=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=D:D?_.IG([_.$X(m55)],this.elements_.button,"aria-label",D):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var D=_.iX().resolve(_.vK(_.E7));D&&(this.keyboardFocused=D.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.L4("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,_.kr(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.kr(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(D,C){if(C)for(D=C.split(" "),D=_.U(D),C=D.next();!C.done;C=D.next())C=C.value,_.gi(this.hostElement,C,!1),this.elements_.button&&_.gi(this.elements_.button,C,!1),this.elements_.text&&_.gi(this.elements_.text,C,!1)},
buttonIconChanged_:function(D){this.elements_.icon?D?(this.elements_.icon.icon=D,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.kr(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.ao(this.hostElement,"is-paper-button-with-icon",!1)):D&&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"&&_.kr(this.elements_.button).appendChild(this.elements_.icon):_.kr(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.ao(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(D){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,D){var C=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(D){case "yt_icon_button_with_label":C=!0;_.gi(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();D=_.kr(this.elements_.button).firstElementChild;
this.elements_.icon=D;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.kr(this.elements_.endpoint).appendChild(this.elements_.button);_.kr(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.L4("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;_.kr(this.elements_.button).appendChild(this.elements_.text);_.kr(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":C=!0,this.elements_.button=this.getYtIconButton_(),D=_.kr(this.elements_.button).firstElementChild,this.elements_.icon=D,this.setIconActive_(this.elements_.icon),
_.kr(this.elements_.endpoint).appendChild(this.elements_.button)}_.ao(this.hostElement,"is-icon-button",C);_.ao(this.hostElement,"is-paper-button",!C);_.ao(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;_.SY((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&&_.kr(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(D){if(D!=void 0||this.disabled)this.disabled=D,this.elements_.button&&(this.elements_.button.disabled=D)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(D){_.b("kevlar_system_icons")&&D&&this.data&&(this.data.isSelected!==void 0?D.active=this.data.isSelected:this.data.isToggled!==void 0&&(D.active=this.data.isToggled))},
observeBasicPalette_:function(D){_.x_(this.hostElement,D)},
disabledChanged_:function(D){this.data&&this.set("data.isDisabled",D)},
onYtButtonTap_:function(D){if(this.disabled)D.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.cE(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(D=this.disableCommandHandlerOverride,!this.data||!this.data.command||D||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.b("handle_service_request_actions")||_.cE(this.hostElement,[this.serviceEndpoint]),
_.lE(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.b("handle_service_request_actions")?(D=[],this.serviceEndpoint&&D.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&D.push(this.data.command),D.length&&_.o7(this.hostElement,D,this.hostElement)):this.data&&this.data.command&&(D=this.data.command,D.accountUnlinkCommand||D.accountLinkCommand||D.insertAdCommand||D.insertHighlightMarkerCommand||
D.createLivestreamHighlightClipCommand||D.getVideoUploadFeedbackCommand||D.musicDeletePrivatelyOwnedEntityCommand||D.ypcCancelRecurrenceEndpoint||D.getMultiSelectCommandEndpoint?_.cE(this.hostElement,[D]):_.o7(this.hostElement,[D],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 D,C=_.SY((D=this.container.hostElement)!=null?D:this.container);C.lastChild&&C.lastChild.tagName!="STYLE";)try{C.removeChild(C.lastChild)}catch(X){break}},
getYtIconButton_:function(){var D=this.reuseEnabled_()?_.L4("yt-icon-button"):document.createElement("yt-icon-button"),C=_.kr(D).firstElementChild;if(C&&C.is!="yt-icon"){for(C=_.kr(D);C.lastChild;)C.removeChild(C.lastChild);C=null}C||(C=this.getIcon_(),this.setIconActive_(C),_.kr(D).appendChild(C));return D},
reuseEnabled_:function(){return _.b("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.L4("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.L4("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.eEf={};
_.eEf.YtButtonBehavior=[Rs.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var D=this.data;D&&(this._setEndpoint(this.computeEndpoint_(D)),this._setServiceEndpoint(this.computeServiceEndpoint_(D)),this._setCommand(this.computeCommand_(D)),this._setButtonIcon(this.computeButtonIcon_(D)),this._setButtonText(this.computeButtonText_(D,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(D)),this._setButtonTooltip(this.computeTooltip_(D)),this._setButtonClass(this.computeButtonClass_(D)),this._setIconPositionType(this.computeIconPositionType_(D)),this.updateRenderedElements())},
setPressedState:function(D){var C;if((C=this.elements_)==null?0:C.button)this.elements_.button.pressed=!!D},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeEndpoint_:function(D){var C=D&&D.navigationEndpoint,X=this.get("data.command.commandMetadata.webCommandMetadata.url"),c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:D&&D.command&&D.command.modalEndpoint?D.command:X&&!c&&D.command?D.command:null},
computeServiceEndpoint_:function(D){var C=D&&D.serviceEndpoint,X=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:X&&D.command?D.command:null},
computeCommand_:function(D){return D&&D.command||null},
computeButtonIcon_:function(D){return D&&D.icon&&D.icon.iconType?_.g2(D.icon.iconType):null},
computeButtonText_:function(D,C){return!C&&D&&D.text||null},
computeAccessibility_:function(D){return this.get("accessibilityData.accessibilityData",D)||D&&D.accessibility||(D&&D.text?{label:this.getSimpleString(D.text)}:null)},
computeTooltip_:function(D){return D?D.isDisabled&&D.disabledTooltip||D.tooltip||null:null},
computeButtonClass_:function(D){var C=D&&D.style?D.style.toLowerCase().replace(/_/g,"-")+" ":"";C+=D&&D.size?D.size.toLowerCase().replace(/_/g,"-")+" ":"";D.colorData&&D.colorData.basicColorPaletteData&&D.colorData.basicColorPaletteData.borderColor&&(C+="palette-with-border");return C.trim()}}];var LI={};var E8N;var tI5;var NsN,YDM=function(){return NsN!==void 0?NsN:NsN=document.createElement("template")};
document.head.appendChild(YDM().content);var yj5;var n8g,wSC=function(){return n8g!==void 0?n8g:n8g=document.createElement("template")};
document.head.appendChild(wSC().content);var FBC;var Zcx,Gq4=function(){return Zcx!==void 0?Zcx:Zcx=document.createElement("template")};
document.head.appendChild(Gq4().content);var VI5;var Ts5=document.head,Hc5=Ts5.appendChild,Jjg;if(VI5===void 0){var zEN=document.createElement("template");_.x(zEN,"\x3c!--css-build:shady--\x3e");zEN.content.insertBefore(Gq4().content.cloneNode(!0),zEN.content.firstChild);VI5=zEN}Jjg=VI5;Hc5.call(Ts5,Jjg.content);var jxJ=document.head,MIb=jxJ.appendChild,qDJ;if(FBC===void 0){var fxe=document.createElement("template");_.x(fxe,"\x3c!--css-build:shady--\x3e");fxe.content.insertBefore(wSC().content.cloneNode(!0),fxe.content.firstChild);FBC=fxe}qDJ=FBC;MIb.call(jxJ,qDJ.content);var d5d=document.head,REc=d5d.appendChild,lx5;if(yj5===void 0){var Db5=document.createElement("template");_.x(Db5,"\x3c!--css-build:shady--\x3e");Db5.content.insertBefore(YDM().content.cloneNode(!0),Db5.content.firstChild);yj5=Db5}lx5=yj5;REc.call(d5d,lx5.content);var CDx;_.sI("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");CDx=_.b("web_button_rework")&&_.dq("BUTTON_REWORK")||_.b("web_button_rework_with_live");_.lY=function(){return _.w.apply(this,arguments)||this};
_.h(_.lY,_.w);_.lY.prototype.created=function(){this.openPopupConfig=_.q6("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.lY.prototype.onYtNavigate_=function(D){var C=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);C&&(this.ytOpenPopupBehavior.openPopup(C),D.stopPropagation(),D.preventDefault())};
_.$a.Object.defineProperties(_.lY,{template:{configurable:!0,enumerable:!0,get:function(){if(tI5===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;E8N===void 0&&(E8N=document.createElement("template"));var c=E8N;X.call(C,c.content.cloneNode(!0),D.content.firstChild);tI5=D}D=tI5;return D}}});
_.lY.prototype.onYtNavigate_=_.lY.prototype.onYtNavigate_;_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],_.lY.prototype,"ytOpenPopupBehavior",void 0);_.V([_.m(_.eEf.YtButtonBehavior),_.z("design:type",Object)],_.lY.prototype,"ytButtonBehavior",void 0);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],_.lY.prototype,"onYtNavigate_",null);
_.V([_.Yn({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:CDx})],_.lY);var Xu5;var cre=_.b("web_button_rework")&&_.dq("BUTTON_REWORK")||_.b("web_button_rework_with_live"),DY=function(){var D=_.w.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.skipCommandHandling=!1;D.alignByText=!1;D.fitToVisibleBounds=!0;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};D.onTap=function(C){_.lE(D.hostElement,"yt-service-request-sent-button-renderer",C)};
return D};
_.h(DY,_.w);_.S=DY.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.S.onClick=function(D){var C,X=this.disabled||((C=this.data)==null?void 0:C.isDisabled);C=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");X&&C&&D.stopPropagation()};
_.S.computeIcon=function(){var D,C,X=(D=this.data)==null?void 0:(C=D.icon)==null?void 0:C.iconType;if(X)return _.g2(X)};
_.S.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.S.handleUpdateButtonAction=function(D){D=_.r(D,p8d);var C=_.r(D==null?void 0:D.updatedButton,_.AF);if(this.data&&D&&C){var X=this.data;X.targetId&&D.targetId&&X.targetId===D.targetId&&(this.data=C)}};
_.$a.Object.defineProperties(DY.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var D=this;if(this.data){var C=RgZ({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.lE(D.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.lE(D.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});C.alignByText=this.alignByText;return C}}}});
_.$a.Object.defineProperties(DY,{template:{configurable:!0,enumerable:!0,get:function(){if(Xu5===void 0){var D=document.createElement("template");_.x(D,'\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>');Xu5=D}D=Xu5;return D}}});
DY.prototype.onClick=DY.prototype.onClick;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],DY.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],DY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"isPressed",void 0);
_.V([_.n(),_.z("design:type",Object)],DY.prototype,"forceIconButton",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"forceIconOnly",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"forceModernIconButton",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"skipCommandHandling",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"alignByText",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"buttonTooltipPosition",void 0);
_.V([_.n(),_.z("design:type",Object)],DY.prototype,"fitToVisibleBounds",void 0);_.V([_.n({computed:"computeTooltip(data)"}),_.z("design:type",Object)],DY.prototype,"tooltip",void 0);_.V([_.n(),_.z("design:type",Object)],DY.prototype,"overrides",void 0);_.V([_.n(),_.z("design:type",Boolean)],DY.prototype,"disabled",void 0);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],DY.prototype,"onClick",null);
_.V([_.e("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.z("design:type",Object),_.z("design:paramtypes",[])],DY.prototype,"computedButtonShape",null);_.V([_.Yn({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!cre,cssBuildOptOut:!0}),_.Yn({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!cre,cssBuildOptOut:!0})],DY);var o0c;var Wqb;var Cz=function(){var D=_.w.apply(this,arguments)||this;D.empty_=!0;D.loadTime=Infinity;D.pendingPaint=!1;D.hasChange_=!1;D.oldThumbnail_=null;D.oldDelayedSrc_="";D.objectURL_=null;return D};
_.h(Cz,_.w);_.S=Cz.prototype;_.S.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.S.ready=function(){var D=this.shouldShowPlaceholder_();_.gi(this.hostElement,"no-transition",!0);D&&this.hostElement.classList.add("with-placeholder")};
_.S.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.S.isThumbPreloaded_=function(D){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",D)};
_.S.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||pu5};
_.S.computeThumbnailSrc_=function(D){return D&&D.thumbnails?_.XA(D.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.S.computeAlt_=function(){var D=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&D||""};
_.S.thumbnailChanged_=function(){var D=_.U([this.thumbnail,this.oldThumbnail_]),C=D.next().value;D=D.next().value;this.oldThumbnail_=C;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(D=this.computeThumbnailSrc_(D),this.computeThumbnailSrc_(C)===D))return;_.b("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(C)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):C&&_.dq("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.A0(this,this.onReload_):_.A0(this,this.onShow_):this.resetImage_();C&&(this.hostElement.style.opacity=""+C.opacity)}};
_.S.delayedSrcChanged_=function(){var D=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===D||this.resetImage_()};
_.S.setSrc_=function(D){D?(_.SY(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.SY(this.hostElement).querySelector("#img").src=D):(_.SY(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.S.resetImage_=function(){D5Z(this.hostElement);this.empty_=!0;this.setSrc_(pu5);this.ytRendererBehavior.invalidate(!1)};
_.S.observePlaceholderColor_=function(){var D=this.thumbnail&&this.thumbnail.placeholderColor;D?this.hostElement.style.backgroundColor=_.mW(D):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.S.onLoad_=function(){_.SY(this.hostElement).querySelector("#img").src&&_.SY(this.hostElement).querySelector("#img").src!==pu5&&(l2F(this.hostElement),this.notifyOnLoaded&&_.lE(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.S.onError_=function(){var D=this;if(_.b("web_use_cache_for_image_fallback"))SDr(_.SY(this.hostElement).querySelector("#img").src).then(function(C){D.objectURL_=_.J2(C).toString();D.setSrc_(D.objectURL_)}).catch(function(){_.b("kevlar_woffle_fallback_image")&&D.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.S.onPrescanVisible=function(){this.onShow_()};
_.S.onVisible=function(){if(_.b("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.S.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var D=this.computeSrc_();D!==_.SY(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))}};
_.S.onReload_=function(){this.empty_=!1;var D=this.computeSrc_();D!==_.SY(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))};
_.S.shouldShowPlaceholder_=function(){return _.b("kevlar_thumbnail_bg")};
Cz.prototype.observePlaceholderColor_=Cz.prototype.observePlaceholderColor_;Cz.prototype.delayedSrcChanged_=Cz.prototype.delayedSrcChanged_;Cz.prototype.thumbnailChanged_=Cz.prototype.thumbnailChanged_;_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Cz.prototype,"alt",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Cz.prototype,"ariaHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Cz.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Cz.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Cz.prototype,"id",void 0);_.V([_.m(_.$Z.YtVisibilityBehavior),_.z("design:type",Object)],Cz.prototype,"ytVisibilityBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",String)],Cz.prototype,"delayedSrc",void 0);
_.V([_.n(),_.z("design:type",Object)],Cz.prototype,"thumbnail",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Cz.prototype,"loaded",void 0);_.V([_.n(),_.z("design:type",Boolean)],Cz.prototype,"notifyOnLoaded",void 0);_.V([_.n(),_.z("design:type",Number)],Cz.prototype,"height",void 0);_.V([_.n(),_.z("design:type",Number)],Cz.prototype,"width",void 0);_.V([_.n({value:function(){return"width"}}),
_.z("design:type",String)],Cz.prototype,"dimension",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Cz.prototype,"fit",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Cz.prototype,"fitHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Cz.prototype,"fitWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Cz.prototype,"objectFit",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Cz.prototype,"objectPosition",void 0);_.V([_.n(),_.z("design:type",String)],Cz.prototype,"preferredThumbnail",void 0);_.V([_.n({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.z("design:type",String)],Cz.prototype,"alt_",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Cz.prototype,"sharedTooltipText",void 0);
_.V([_.n(),_.z("design:type",Boolean)],Cz.prototype,"ftlEligible",void 0);_.V([_.n({value:void 0}),_.z("design:type",String)],Cz.prototype,"observeHiddenOption",void 0);_.V([_.n({value:"observe_once"}),_.z("design:type",String)],Cz.prototype,"observePrescanOption",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Cz.prototype,"roundedContainer",void 0);
_.V([_.bH("thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cz.prototype,"thumbnailChanged_",null);_.V([_.bH("delayedSrc"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cz.prototype,"delayedSrcChanged_",null);_.V([_.vr("thumbnail.placeholderColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cz.prototype,"observePlaceholderColor_",null);
_.V([_.Yn({is:"yt-img-shadow",disableElementRegistration:!0})],Cz);var pu5=_.dq("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.o3()(Cz,"yt-img-shadow",function(){if(Wqb===void 0){var D=document.createElement("template");_.x(D,'\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">');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;o0c===void 0&&(o0c=document.createElement("template"));var c=o0c;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Wqb=D}D=Wqb;return D},{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 gDt;_.X5=new _.P6("SCREEN_MANAGER_TOKEN");gDt=new _.P6("LOG_INITIAL_SCREEN_TOKEN");var SP4=e5({entities:{}});_.ck=EI(SP4)(SP4.entities,{selectSfvAudioItemPlaybackState:function(D,C){var X,c;D=(c=_.aI(D,"sfvAudioItemCurrentlyPlayingEntity",C))!=null?c:void 0;return(X=D==null?void 0:D.sfvAudioItemPlaybackState)!=null?X:void 0},
playlistLoopStateEntitySelector:CiJ,toggleMenuServiceItemEntitySelector:X$j});_.o1=_.F(function(D){function C(R){return _.r(R,_.is)}
function X(){var R=c().isTogglingDisabled||L()&&c().toggledIsTogglingDisabled,ph=R||Q()?L():!L();t(ph);y(!1);if(!R){var Om;(Om=g)==null||Om(!!ph)}var xj;((xj=p)==null?0:xj())||_.JF(_.iX().resolve(_.X5),c().trackingParams);var Bo;if(!ph||!C(c().defaultButtonViewModel)||(Bo=p)!=null&&Bo()){var r5;!C(c().toggledButtonViewModel)||((r5=p)==null?0:r5())||_.JF(_.iX().resolve(_.X5),C(c().toggledButtonViewModel).trackingParams)}else _.JF(_.iX().resolve(_.X5),C(c().defaultButtonViewModel).trackingParams)}
var c=D.data,W=D.buttonShapeOverrides,p=D.disableExplicitClickLogging,g=D.onToggle,a=D.style,O=D.useOutlinedIcon,P=D.className,k=function(){var R,ph;return L()?(R=D.animatedTextPropsToggled)==null?void 0:R.call(D):(ph=D.animatedTextPropsDefault)==null?void 0:ph.call(D)},u=_.tw(function(){return k()?Object.assign({},k(),{shouldAnimate:Y()}):void 0},void 0,"Zp4uoe"),Q=function(){var R;
return((R=H())==null?void 0:R.isToggled)!==void 0},B=_.U(_.d2(function(){var R,ph,Om;
return Q()?(R=H())==null?void 0:R.isToggled:(Om=W==null?void 0:(ph=W())==null?void 0:ph.toggled)!=null?Om:c().isToggled})),K=B.next().value;
B=B.next().value;var L=K,t=B;B=_.U(_.d2(function(){var R,ph;return(R=D.animatedTextPropsToggled)==null?void 0:(ph=R.call(D))==null?void 0:ph.shouldAnimate}));
K=B.next().value;B=B.next().value;var Y=K,y=B;K=_.U(_.Li(!1,void 0,"mq3Zfe"));var J=K.next().value,T=K.next().value,H=_.uu(function(R){a:{var ph=c().entityKey,Om=c().toggledStateEntitySelectorType;if(Om)switch(Om){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!ph)break;R=_.ck.selectSfvAudioItemPlaybackState(R,ph);if(R==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){R={isToggled:!0};break a}if(R){R={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":R={isToggled:_.p$Z(R).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":R={isToggled:_.p$Z(R).includes("engagement-panel-live-chat-item-section")};break a;default:_.fQ(new _.Zf("Error: entitySelectorType defined but not matched in selector.",R,Om))}R=void 0}return R}),q=function(){return Object.assign({},W==null?void 0:W(),{onToggle:X,
toggleable:!0,toggled:L(),focused:J()})};
return _.A("toggle-button-view-model",{"on:focusin":_.I_(function(){var R=_.iX().resolve(_.vK(_.E7));R&&T(R.isKeyBoardInUse());return!1}),
"on:focusout":_.I_(function(){T(!1);return!1})},_.A(_.v,{cond:function(){return L()?C(c().toggledButtonViewModel):C(c().defaultButtonViewModel)},
then:function(R){return _.A(_.Ze,{data:R,className:P,style:a,useOutlinedIcon:O,buttonOverrides:q,animatedTextProps:u})}}))},"da");
_.o1.idomCompat={callbacks:{onToggle:!0}};_.CI(_.F(function(D){return _.A("yt-toggle-button-view-model",{class:function(){var C;return(C=D.scopingClassName)==null?void 0:C.call(D)}},_.A(_.o1,{data:function(){var C;
return(C=D.data)==null?void 0:C.call(D)},
buttonShapeOverrides:function(){var C;return(C=D.overrides)==null?void 0:C.call(D)},
animatedTextPropsDefault:function(){var C;return(C=D.animatedTextPropsDefault)==null?void 0:C.call(D)},
animatedTextPropsToggled:function(){var C;return(C=D.animatedTextPropsToggled)==null?void 0:C.call(D)},
disableExplicitClickLogging:function(){var C;return(C=D.disableExplicitClickLogging)==null?void 0:C.call(D)},
onToggle:function(C){var X;return(X=D.onToggle)==null?void 0:X.call(D,C)},
style:function(){var C;return(C=D.style)==null?void 0:C.call(D)},
useOutlinedIcon:function(){var C;return(C=D.useOutlinedIcon)==null?void 0:C.call(D)},
className:function(){var C;return(C=D.className)==null?void 0:C.call(D)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.Bm,
buttonShapeOverrides:_.Bm,overrides:_.Bm,animatedTextPropsDefault:_.Bm,animatedTextPropsToggled:_.Bm,disableExplicitClickLogging:_.Bm,onToggle:_.R3,style:_.Bm,useOutlinedIcon:_.Bm,className:_.Bm,scopingClassName:_.Bm}});var Wk=function(){return _.w.apply(this,arguments)||this};
_.h(Wk,_.w);Wk.prototype.onTap=function(D){D.stopPropagation();D=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.EW("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D})):this.ytLiveChatReduxBehavior.dispatch(_.bK("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D}))};
_.$a.Object.defineProperties(Wk.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.r(this.data.toggleButton,_.us),C;if(Number(((C=this.likeCountState)==null?void 0:C.likeCountIfIndifferentNumber)||"0")===0){var X;C=((X=this.data.likeCountPlaceholder)==null?void 0:X.content)||""}else{var c,W,p;C=((c=this.likeCountState)==null?void 0:(W=c.likeCountIfIndifferent)==null?void 0:W.content)||((p=this.data.likeCountPlaceholder)==null?void 0:p.content)||""}var g,a;X=((g=this.likeCountState)==null?void 0:(a=
g.likeCountIfLiked)==null?void 0:a.content)||"1";g=_.r(D.toggledButtonViewModel,_.is);return Object.assign({},D,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.r(D.defaultButtonViewModel,_.is),{title:C})},toggledButtonViewModel:{buttonViewModel:Object.assign({},g,{title:X})}})}}}});
Wk.prototype.onTap=Wk.prototype.onTap;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Wk.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],Wk.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wk.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.likeCountEntityKey"],selector:SjZ}),_.z("design:type",Object)],Wk.prototype,"likeCountState",void 0);_.V([_.n({selectorArgs:["data.engagementStateKey"],selector:$bo}),_.z("design:type",Object)],Wk.prototype,"engagementState",void 0);_.V([_.e("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wk.prototype,"isLiked",null);
_.V([_.e("data","likeCountState","isLiked"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wk.prototype,"toggleButton",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Wk.prototype,"onTap",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Wk);
_.G(Wk,"yt-live-chat-like-button-view-model",function(){if(ax5===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;g8C===void 0&&(g8C=document.createElement("template"));var c=g8C;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ax5=D}D=ax5;return D},{mode:0});var UbJ;var g0e;var pz=function(){return _.w.apply(this,arguments)||this};
_.h(pz,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pz.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],pz);
_.G(pz,"yt-live-chat-paid-message-footer-renderer",function(){if(g0e===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;UbJ===void 0&&(UbJ=document.createElement("template"));var c=UbJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);g0e=D}D=g0e;return D},{mode:0});var amx;var Imf;var OPg;var ArN,PDf=function(){if(ArN!==void 0)return ArN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;OPg===void 0&&(OPg=document.createElement("template"));var c=OPg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return ArN=D};var Su=function(){return _.w.apply(this,arguments)||this};
_.h(Su,_.w);Su.prototype.onTap=function(D){D.stopPropagation()};
_.$a.Object.defineProperties(Su.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.r(this.data.replyButton,_.is),C,X,c,W,p,g,a,O=Number(((C=this.replyCountState)==null?void 0:C.replyCountNumber)||"0")===0?(X=this.data)==null?void 0:(c=X.replyCountPlaceholder)==null?void 0:c.content:((W=this.replyCountState)==null?void 0:(p=W.replyCount)==null?void 0:p.content)||((g=this.data)==null?void 0:(a=g.replyCountPlaceholder)==null?void 0:a.content)||"",P;return Object.assign({},
D,{title:O,accessibilityText:(P=this.replyCountState)==null?void 0:P.replyButtonAccessibilityText})}}}});
_.$a.Object.defineProperties(Su,{template:{configurable:!0,enumerable:!0,get:function(){return PDf()}}});
Su.prototype.onTap=Su.prototype.onTap;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Su.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],Su.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Su.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.replyCountEntityKey"],selector:function(D,C){return _.aI(D.entities,"replyCountEntity",C)}}),
_.z("design:type",Object)],Su.prototype,"replyCountState",void 0);_.V([_.e("data","replyCountState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Su.prototype,"buttonViewModel",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Su.prototype,"onTap",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Su);_.G(Su,"yt-live-chat-reply-button-view-model",function(){return PDf()},{mode:0});var $bM;var v0k;var Uw=function(){var D=_.w.apply(this,arguments)||this;D.ariaLabel="";return D};
_.h(Uw,_.w);
Uw.prototype.dataChanged=function(){for(var D=(0,_.Io)(_.SY(this.hostElement).querySelector("#image"));D.firstChild;)D.removeChild(D.firstChild);if(this.data)if(this.data.icon){var C=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(C.polymerController.icon="yt-sys-icons:shield-filled",C.polymerController.defaultToFilled=!0):C.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();D.appendChild(C)}else if(this.data.customThumbnail){C=document.createElement("img");
var X=_.zyn(this.data.customThumbnail.thumbnails,16);X?(C.src=X,D.appendChild(C),C.setAttribute("alt",this.hostElement.ariaLabel||"")):_.fQ(new _.Zf("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Uw.prototype.identity=function(D){return D};
Uw.prototype.computeType=function(D){return pb(D||void 0)};
Uw.prototype.dataChanged=Uw.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],Uw.prototype,"data",void 0);_.V([_.n({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.z("design:type",Object)],Uw.prototype,"ariaLabel",void 0);_.V([_.n({computed:"computeType(data)",reflectToAttribute:!0}),_.z("design:type",String)],Uw.prototype,"type",void 0);
_.V([_.n({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.z("design:type",String)],Uw.prototype,"sharedTooltipText",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("live_chat_enable_new_moderator_badge")}}),
_.z("design:type",Boolean)],Uw.prototype,"enableNewModeratorBadge",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Uw.prototype,"dataChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Uw);
_.G(Uw,"yt-live-chat-author-badge-renderer",function(){if(v0k===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;$bM===void 0&&($bM=document.createElement("template"));var c=$bM;X.call(C,c.content.cloneNode(!0),D.content.firstChild);v0k=D}D=v0k;return D},{mode:0});var iPJ;var keb;var gy=function(){return _.w.apply(this,arguments)||this};
_.h(gy,_.w);_.S=gy.prototype;_.S.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"}}}}};
_.S.computeBadgesInsideChip=function(D){return D?D.filter(function(C){return pb(C.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.S.computeBadgesOutsideChip=function(D){return this.prependChatBadges||!D?[]:D.filter(function(C){C=pb(C.liveChatAuthorBadgeRenderer);return C!=="verified"&&C!=="owner"})};
_.S.computeBadgesBeforeChip=function(D){return this.prependChatBadges&&D?D.filter(function(C){C=pb(C.liveChatAuthorBadgeRenderer);return C!=="verified"&&C!=="owner"}):[]};
_.S.computeIsHighlighted=function(D,C){var X=!!g$r(D,"owner"),c=!!g$r(D,"verified");D=!!g$r(D,"moderator");return(X||c&&!D)&&!C};
_.S.computeAuthorType=function(D){return Urm(D)};
_.S.computeAuthorClass=function(D,C){return C?(D?D+" ":"")+"single-line":D};
_.S.onSeedColorChanged=function(){_.b("live_chat_author_name_color_usernames")||_.b("live_chat_seed_color_usernames")||_.b("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):_.b("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
gy.prototype.onSeedColorChanged=gy.prototype.onSeedColorChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],gy.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gy.prototype,"authorName",void 0);_.V([_.n(),_.z("design:type",Array)],gy.prototype,"authorBadges",void 0);
_.V([_.n({computed:"computeAuthorType(authorBadges)"}),_.z("design:type",String)],gy.prototype,"authorType",void 0);_.V([_.n({computed:"computeAuthorClass(authorType, singleLine)"}),_.z("design:type",String)],gy.prototype,"authorClass",void 0);_.V([_.n({computed:"computeBadgesInsideChip(authorBadges)"}),_.z("design:type",Array)],gy.prototype,"badgesInsideChip",void 0);_.V([_.n({computed:"computeBadgesOutsideChip(authorBadges)"}),_.z("design:type",Array)],gy.prototype,"badgesOutsideChip",void 0);
_.V([_.n({computed:"computeBadgesBeforeChip(authorBadges)"}),_.z("design:type",Array)],gy.prototype,"badgesBeforeChip",void 0);_.V([_.n({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.z("design:type",Boolean)],gy.prototype,"isHighlighted",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],gy.prototype,"singleLine",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],gy.prototype,"disableHighlighting",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],gy.prototype,"dashboardMoneyFeed",void 0);_.V([_.n({value:_.b("live_chat_prepend_badges"),reflectToAttribute:!0}),_.z("design:type",Boolean)],gy.prototype,"prependChatBadges",void 0);_.V([_.n(),_.z("design:type",String)],gy.prototype,"authorNameColor",void 0);_.V([_.kn("#author-name"),_.z("design:type",HTMLDivElement)],gy.prototype,"username",void 0);
_.V([_.vr("authorNameColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gy.prototype,"onSeedColorChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],gy);
_.G(gy,"yt-live-chat-author-chip",function(){if(keb===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;iPJ===void 0&&(iPJ=document.createElement("template"));var c=iPJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);keb=D}D=keb;return D},{mode:0});var u4N;var QW4;var a1=function(){var D=_.w.apply(this,arguments)||this;D.debounceCommand=_.t6(function(C){D.ytComponentBehavior.resolveCommand(C)},1500);
return D};
_.h(a1,_.w);a1.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var D=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",C,X,c=this.isHearted?(C=this.data)==null?void 0:C.unheartCommand:(X=this.data)==null?void 0:X.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.EW("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:D}));(D=_.Y7(c))&&this.debounceCommand(D)}};
_.$a.Object.defineProperties(a1.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D,C;if(!((D=this.data)==null?0:(C=D.creatorThumbnail)==null?0:C.sources))return{};D={thumbnails:[]};C={};C.url=this.data.creatorThumbnail.sources[0].url;D.thumbnails.push(C);return D}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
a1.prototype.onTap=a1.prototype.onTap;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],a1.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],a1.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],a1.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.engagementStateKey"],selector:$bo}),_.z("design:type",Object)],a1.prototype,"engagementState",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],a1.prototype,"thumbnailDetails",null);_.V([_.e("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],a1.prototype,"isHearted",null);_.V([_.e("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],a1.prototype,"isEditable",null);
_.V([_.e("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],a1.prototype,"showCreatorView",null);_.V([_.e("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],a1.prototype,"showButton",null);_.V([_.e("data","isHearted"),_.z("design:type",String),_.z("design:paramtypes",[])],a1.prototype,"label",null);_.V([_.e("data","isHearted"),_.z("design:type",Object),_.z("design:paramtypes",[])],a1.prototype,"heartHoverText",null);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a1.prototype,"onTap",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],a1);
_.G(a1,"yt-live-chat-creator-heart-view-model",function(){if(QW4===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;u4N===void 0&&(u4N=document.createElement("template"));var c=u4N;X.call(C,c.content.cloneNode(!0),D.content.firstChild);QW4=D}D=QW4;return D},{mode:0});var I1=function(D,C){this.serviceId=new b2c(D,C)};
I1.prototype.toString=function(){return this.serviceId.toString()};var BZe=function(){this.internalMap={}};
_.S=BZe.prototype;_.S.contains=function(D){return Object.prototype.hasOwnProperty.call(this.internalMap,D)};
_.S.get=function(D){if(this.contains(D))return this.internalMap[D]};
_.S.set=function(D,C){this.internalMap[D]=C};
_.S.getKeys=function(){return Object.keys(this.internalMap)};
_.S.remove=function(D){delete this.internalMap[D]};var Ow=function(){this.mappings=new BZe;this.errorCallbacks=new Set};
Ow.prototype.getModuleId=function(D){return D.serviceId.getModuleId()};
Ow.prototype.get=function(D){var C=this.mappings.get(D.toString());return bPJ(this,C,D)};
Ow.prototype.getMultipleAsync=function(){var D=_.MJ.apply(0,arguments),C=this,X=D.map(function(O){return C.getModuleId(O)}),c=D.map(function(O){return C.mappings.get(O.toString())}).filter(function(O){return O});
if(c.length===D.length)return _.WE(c.map(function(O,P){return bPJ(C,O,D[P])}));
var W=HI().loadMultiple(X);c=_.Fn(X.map(function(O){return W[O]}));
var p=document.hidden,g=-1,a=_.BK("get_async_timeout_ms",-1);a>-1&&(g=setTimeout(function(){_.fQ(new _.Zf("Module timeout.",X,p,document.hidden))},a));
return _.ZZ(c.then(function(){return D.map(function(O){return bPJ(C,C.mappings.get(O.toString()),O)})}).thenCatch(function(O){for(var P=_.U(C.errorCallbacks),k=P.next();!k.done;k=P.next())k=k.value,k(O);
throw O;}),function(){clearTimeout(g)})};
Ow.prototype.registerService=function(D,C){this.mappings.set(D.toString(),{type:"mapping",value:C});return D};
var bPJ=function(D,C,X){switch(C.type){case "mapping":return C.value;case "factory":return C=C.value(),D.mappings.set(X.toString(),{type:"mapping",value:C}),C;default:return _.qf(C)}};
Ow.prototype.onLoadError=function(D){var C=this;this.errorCallbacks.add(D);return function(){C.errorCallbacks.delete(D)}};
_.A$=new Ow;var rrM=function(){};
_.S=rrM.prototype;
_.S.JSC$14337_getRequest=function(D,C,X){C=C===void 0?{}:C;X=X===void 0?s7x:X;var c=C;if(this.isNavigationCommand()){var W,p=(W=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:W.url;c=_.ADm(D.clickTrackingParams,!0,!1,p,this.JSC$14337_getClientScreen(c))}else c=_.ADm(D.clickTrackingParams,!1,this.includeCsn);c={context:c};if(W=this.getExtension(D))return this.JSC$14337_buildRequest(c,W,C),W=this.getApiUrl(D),p=Object.assign({},{command:D},this.getRequestConfig(D,C)),c={input:W,requestShell:GC(W),
innerTubeRequest:c,config:p},c.config.authStrategy?c.config.authStrategy.identity=X:c.config.authStrategy={identity:X},(D=this.JSC$14337_getRequestKey(D,C))&&!c.config.requestKey&&(c.config.requestKey=D),c;D=new _.Zf("Error: Failed to create Request from Command.",D);_.MN(D)};
_.S.getApiUrl=function(D){var C=_.dJ(this.getApiPaths(D)),X;(D=(X=_.r(D.commandMetadata,_.ge))==null?void 0:X.apiUrl)&&(C=D);return Jnr(H0W(C))};
_.S.isNavigationCommand=function(){return!1};
_.S.JSC$14337_getClientScreen=function(){};
_.S.JSC$14337_getRequestKey=function(){};
_.S.getRequestConfig=function(){};
_.$a.Object.defineProperties(rrM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Pk=function(){};
_.h(Pk,rrM);Pk.prototype.JSC$14344_getStoreKey=function(){};
Pk.prototype.JSC$14337_getRequestKey=function(D,C){C=C===void 0?{}:C;return this.JSC$14344_getStoreKey(D,C)};var $i=function(){};
_.h($i,Pk);$i.prototype.JSC$14337_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:GC("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
$i.prototype.getApiPaths=function(){return[]};
$i.prototype.getExtension=function(){};
$i.prototype.JSC$14337_buildRequest=function(){};var Kqx={},hgJ=(Kqx.GET_DATASYNC_IDS=w$($i),Kqx);var xb5,Lqq,sWN,YP4,vk,taq,mb4,E0e,egk;xb5="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Lqq=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.Tr=function(D,C,X,c,W,p,g,a,O){this.endpointMap=D;this.networkManager=C;this.authService=X;this.responseProcessorMap=c;this.innertubeResponseStore=W;this.contextProcessors=p;this.asyncContextProcessors=g;this.localInnertubeRouter=a;this.requestSequencer=O;this.inflightRequests=new Map;D.signalEndpointMap||(D.signalEndpointMap={});D.signalEndpointMap=Object.assign({},hgJ,D.signalEndpointMap)};
sWN=function(D,C,X,c,W,p,g,a,O){if(_.Tr.instance!==void 0){if(c=_.Tr.instance,D=[D!==c.endpointMap,C!==c.networkManager,X!==c.authService,W!==c.innertubeResponseStore,p!==c.contextProcessors,g!==c.asyncContextProcessors,a!==c.localInnertubeRouter],D.some(function(P){return P}))throw new _.Zf("InnerTubeTransportService is already initialized",D);
}else _.Tr.instance=new _.Tr(D,C,X,c,W,p,g,a,O)};
_.Jl=function(D,C,X){var c=c===void 0?s7x:c;var W=mb4(D,C);return W?new _.mM(function(p,g){var a,O,P,k,u;return _.I(function(Q){switch(Q.nextAddress){case 1:return Q.yield(W,2);case 2:a=Q.yieldResult;O=a.JSC$14337_getRequest(C,X,c);if(!O){g(new _.Zf("Error: Failed to build request for command.",C));Q.jumpTo(0);break}Yo(O.input);k=((P=O.requestShell)==null?void 0:P.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){u=egk(O.config,k);Q.jumpTo(4);break}return Q.yield(E0e(O.config,k),5);case 5:u=
Q.yieldResult;case 4:p(taq(D,O,u)),_.t_(Q)}})}):_.x7(new _.Zf("Error: No request builder found for command.",C))};
YP4=function(D,C,X,c){var W=W===void 0?s7x:W;var p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q;return _.I(function(R){switch(R.nextAddress){case 1:p=IrJ(C,D.endpointMap);if(!p)throw new _.Zf("Error: No streaming request builder found for command",C);g=p.JSC$14337_getRequest(C,X,W);if(!g)throw new _.Zf("Failed to build YtRequest for streaming Command",C);if((a=D.localInnertubeRouter)==null||!a.shouldPreferLocalResponse(g.input,g.innerTubeRequest)){R.jumpTo(2);break}return R.yield(D.localInnertubeRouter.localInnertubeResponse(g.input,
g.innerTubeRequest),3);case 3:return O=R.yieldResult,P={},O.playerResponse&&(vk(D,O.playerResponse,g),P.player=O.playerResponse,(k=c)==null||k(P,O)),O.watchNextResponse&&(vk(D,O.watchNextResponse,g),P.content=O.watchNextResponse,(u=c)==null||u(P,O)),R.return(P);case 2:B=((Q=g.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){K=egk(g.config,B);R.jumpTo(4);break}return R.yield(E0e(g.config,B),5);case 5:K=R.yieldResult;case 4:return Y=(t=(L=g.requestShell)==null?
void 0:L.headers)!=null?t:{},g.requestShell=Object.assign({},g.requestShell,{headers:Object.assign({},Y,K)}),y=Object.assign({},g.requestShell),J=JSON.stringify(g.innerTubeRequest),g.requestShell.method==="POST"&&(y=Object.assign({},y,{body:J})),T=function(ph,Om){vk(D,Om.playerResponse||Om.watchNextResponse||Om.reelItemWatchResponse||Om.reelWatchSequenceResponse,g);c==null||c(ph,Om);_.b("web_watch_stop_scheduler_on_player_response")&&Om.playerResponse&&Neg()},H={},R.yield(NZc(D.networkManager,g.input,
y,T),6);
case 6:return H=R.yieldResult,((q=g.config)==null?0:q.responseTick)&&_.sp(g.config.responseTick),R.return(H)}})};
_.vV=function(D,C,X,c,W){W=W===void 0?{authStrategy:{identity:s7x}}:W;var p=p===void 0?!0:p;var g=function(){};
g=Csm(lbr(X));C.context||(C.context=_.ADm(c,p));return new _.mM(function(a){var O,P,k,u,Q;return _.I(function(B){if(B.nextAddress==1)return O=H0W(X),P=_.Zu(O),D.authService.syncHeaders?(k=egk(W,P),B.jumpTo(2)):B.yield(E0e(W,P),3);B.nextAddress!=2&&(k=B.yieldResult);u=Jnr(H0W(X));Q={input:u,requestShell:GC(u),innerTubeRequest:C,config:W};a(taq(D,Q,k,g));_.t_(B)})})};
vk=function(D,C,X){var c;if(C&&!(C==null?0:(c=C.sequenceMetaData)==null?0:c.skipProcessing)&&D.responseProcessorMap){c=_.U(xb5);for(var W=c.next();!W.done;W=c.next())W=W.value,D.responseProcessorMap[W]&&D.responseProcessorMap[W].handleResponse(C,X)}};
taq=function(D,C,X,c){c=c===void 0?function(){}:c;
var W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5,Fd,GJ,jZ,Ac,ib,d5,ub,L5,Nf,xt,u6,g5,oq,rx,Rq;return _.I(function(K5){switch(K5.nextAddress){case 1:g=(W=C.config)==null?void 0:(p=W.storeStrategy)==null?void 0:p.storeKey;if(!(g&&D.innertubeResponseStore&&D.innertubeResponseStore.has(g))||((a=C.config)==null?0:(O=a.storeStrategy)==null?0:O.disableCache)){K5.jumpTo(2);break}return K5.yield(D.innertubeResponseStore.get(g),3);case 3:if((P=K5.yieldResult)&&!P.isExpired())return K5.return(Promise.resolve(_.Cn(P)));
case 2:if(!((k=C)==null?0:(u=k.innerTubeRequest)==null?0:u.context)){K5.jumpTo(4);break}Q=C.innerTubeRequest.context;if(!(D.asyncContextProcessors&&D.asyncContextProcessors.length>0)){K5.jumpTo(5);break}B=[];K=_.U(D.asyncContextProcessors);for(L=K.next();!L.done;L=K.next())t=L.value,Y=t.processContext(C),Y.wrappedPromise_&&B.push(Y.wrappedPromise_);if(!(B.length>0)){K5.jumpTo(5);break}return K5.yield(Promise.all(B),5);case 5:y=_.U(D.contextProcessors||[]),J=y.next();case 8:if(J.done){K5.jumpTo(4);
break}T=J.value;return K5.yield(T.processContext(Q),9);case 9:J=y.next();K5.jumpTo(8);break;case 4:if((H=D.localInnertubeRouter)==null||!H.shouldPreferLocalResponse(C.input,C.innerTubeRequest)){K5.jumpTo(12);break}return K5.yield(D.localInnertubeRouter.localInnertubeResponse(C.input,C.innerTubeRequest),13);case 13:return q=K5.yieldResult,vk(D,q,C),K5.return(q);case 12:return(Om=(ph=C.config)==null?void 0:ph.requestKey)&&D.inflightRequests.has(Om)?R=D.inflightRequests.get(Om):(xj=JSON.stringify(C.innerTubeRequest),
Fd=(r5=(Bo=C.requestShell)==null?void 0:Bo.headers)!=null?r5:{},C.requestShell=Object.assign({},C.requestShell,{headers:Object.assign({},Fd,X)}),GJ=Object.assign({},C.requestShell),C.requestShell.method==="POST"&&(GJ=Object.assign({},GJ,{body:xj})),((jZ=C.config)==null?0:jZ.requestTick)&&_.sp(C.config.requestTick),Ac=function(){return D.networkManager.fetch(C.input,GJ,C.config)},R=D.requestSequencer?yre(D.requestSequencer,C,Ac):Ac(),Om&&D.inflightRequests.set(Om,R)),K5.yield(R,14);
case 14:(ib=K5.yieldResult)&&_.b("web_streaming_player")&&Array.isArray(ib)&&(ib=ib[0].playerResponse);if(ib&&"error"in ib&&((d5=ib)==null?0:(ub=d5.error)==null?0:ub.details))for(L5=ib.error.details,Nf=_.U(L5),xt=Nf.next();!xt.done;xt=Nf.next())u6=xt.value,(g5=u6["@type"])&&Lqq.indexOf(g5)>-1&&(delete u6["@type"],ib=u6);Om&&D.inflightRequests.has(Om)&&D.inflightRequests.delete(Om);((oq=C.config)==null?0:oq.responseTick)&&_.sp(C.config.responseTick);if(ib||(rx=D.localInnertubeRouter)==null||!rx.canProvideFallbackResponse(C.input,
C.innerTubeRequest)){K5.jumpTo(15);break}return K5.yield(D.localInnertubeRouter.localFallbackInnertubeResponse(C.input,C.innerTubeRequest),16);case 16:ib=K5.yieldResult;case 15:return vk(D,ib,C),((Rq=C.config)==null?0:Rq.processorTick)&&_.sp(C.config.processorTick),c(),K5.return(ib||void 0)}})};
_.H0=function(D,C){return art(C,D.endpointMap)};
mb4=function(D,C){D=OAF(C,D.endpointMap);if(D!==void 0)return Promise.resolve(D)};
E0e=function(D,C){var X,c,W,p;return _.I(function(g){if(g.nextAddress==1){W=(X=D)==null?void 0:(c=X.authStrategy)==null?void 0:c.sessionIndex;var a=g.yield;var O=_.WE(dho({sessionIndex:W}));return a.call(g,O,2)}p=g.yieldResult;return g.return(Promise.resolve(Object.assign({},At3(C),p)))})};
egk=function(D,C){var X;D=D==null?void 0:(X=D.authStrategy)==null?void 0:X.sessionIndex;X=dho({sessionIndex:D});return Object.assign({},At3(C),X)};var n0b,wub,Fq4,ZP5,Geg,Vab,Jrd,zgg,u9,jWJ,Mad,HPN,qPf;n0b=0;wub=/tone[1-5]/;Fq4=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");ZP5="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Geg=Number.MAX_SAFE_INTEGER;Vab=RegExp("\ufe0f","g");_.i9=function(D){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;D&&_.TZ5(this,D)};
_.TZ5=function(D,C){try{_.eq(C,{context:D,onSuccess:function(c,W){Array.isArray(W)?D.load(W):(c=new _.Zf("Emoji manager JSON response was not an array!",{response:W}),_.MN(c))},
onError:function(c){c=new _.Zf("Failed to retrieve emoji manager initial JSON data!",{url:C,statusCode:_.KC(c).toString()});_.fQ(c)}})}catch(c){var X=new _.Zf("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:C});
_.fQ(X)}};
_.i9.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.i9.prototype.load=function(D,C){if(C)if(D.length)D=D.concat(C.emojis);else{this.emojis=C.emojis;this.emojiMap=C.emojiMap;this.emojiShortcutMap=C.emojiShortcutMap;this.emojiShortcutCharMap=HPN(C);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=C.emojiRegex;return}this.emojis=[].concat(_.VB(new Set(this.emojis.concat(D))));this.hasInitializedShortcutCharMap=!1;D=Array(this.emojis.length);for(C=0;C<this.emojis.length;C++){var X=this.emojis[C];if(X.emojiId){this.emojiMap[X.emojiId]=X;this.emojiMap[X.emojiId].index=
C;for(var c=0;X.shortcuts&&c<X.shortcuts.length;c++)this.emojiShortcutMap[X.shortcuts[c].toLocaleLowerCase()]=X;D[C]=X.isCustomEmoji&&X.shortcuts?X.shortcuts[0]:X.emojiId}}D.sort(function(W,p){return p.length-W.length});
if(D.length)try{this.emojiRegex=new RegExp(D.join("|").replace("*","\\*"),"gi")}catch(W){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Jrd=function(D,C){C=_.U(C);for(var X=C.next();!X.done;X=C.next()){var c=X.value;if(c.emojiId&&D.emojiMap[c.emojiId]){X=Object.assign({},D.emojiMap[c.emojiId],c);D.emojiMap[c.emojiId]=X;var W=void 0;X.index&&((W=D.emojis[X.index])==null?void 0:W.emojiId)===c.emojiId&&(D.emojis[X.index]=X);c=void 0;if((c=X.shortcuts)==null?0:c.length)for(D.hasInitializedShortcutCharMap=!1,c=_.U(X.shortcuts),W=c.next();!W.done;W=c.next())D.emojiShortcutMap[W.value.toLocaleLowerCase()]=X}}};
zgg=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(_.oc.getInstance(),2);if(c.nextAddress!=3)return(C=c.yieldResult)?c.yield(C.get("ytlc-emoji-pref"),3):c.return();(X=c.yieldResult)&&Jrd(D,Object.keys(X).map(function(W){return{emojiId:W,stickyPrefId:X[W]}}).filter(function(W){return!!W.emojiId&&!!W.stickyPrefId}));
_.t_(c)})};
_.ki=function(D,C,X){return(D=D.emojiMap[C])&&(!D.isLocked||X!==void 0&&X)?D:void 0};
u9=function(D,C,X){X=_.ki(D,C,X===void 0?!1:X);var c=C.match("\u200d");X&&D.skinTone!==0&&(D=(c==null?void 0:c.length)===1?_.ki(D,C.replace("\u200d",Fq4[D.skinTone]+"\u200d")):_.ki(D,C+Fq4[D.skinTone]))&&(X=D);return X};
jWJ=function(D,C){var X=D.emojiMap[C];return(X==null?0:X.stickyPrefId)?D.emojiMap[X.stickyPrefId]:u9(D,C)};
_.Sb=function(D,C){D=D.emojiShortcutMap[C.toLocaleLowerCase()];return!D||D.isLocked?null:D};
Mad=function(D,C,X){return HPN(D,X===void 0?!1:X)[C]||{}};
HPN=function(D,C){C=C===void 0?!1:C;if(!D.hasInitializedShortcutCharMap){D.hasInitializedShortcutCharMap=!0;for(var X=0;X<D.emojis.length;X++){var c=D.emojis[X];if(!(c.isLocked||C&&c.isCustomEmoji&&c.emojiId&&!D.pickerCustomEmojiIds.includes(c.emojiId)))for(var W=0;c.shortcuts&&W<c.shortcuts.length;W++){var p=c.shortcuts[W];p.startsWith(":_")&&c.isCustomEmoji&&(D.emojiShortcutCharMap[":_"]==null&&(D.emojiShortcutCharMap[":_"]=Object.create(null)),D.emojiShortcutCharMap[":_"][p]=c);if(!(p.length<3||
!c.isCustomEmoji&&wub.test(p))){var g=p.substr(0,3).toLocaleLowerCase();D.emojiShortcutCharMap[g]==null&&(D.emojiShortcutCharMap[g]=Object.create(null));D.emojiShortcutCharMap[g][p]=c}}}}return D.emojiShortcutCharMap};
_.i9.prototype.createEmoji=function(D,C){C=C===void 0?!0:C;var X=document.createElement("img");D.isCustomEmoji||X.classList.add("small-emoji");X.classList.add("emoji");X.classList.add("yt-formatted-string");X.src=D.image?_.XA(D.image.thumbnails,this.emojiSize)||"":"";var c=void 0;D.image&&D.image.accessibility&&D.image.accessibility.accessibilityData&&(c=D.image.accessibility.accessibilityData.label);X.alt=c?c:(D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId)||"";D.isCustomEmoji&&(X.dataset.emojiId=
D.emojiId);_.g1&&(X.setAttribute("contenteditable","false"),X.setAttribute("unselectable","on"));C&&(D.shortcuts&&D.shortcuts.length&&X.setAttribute("shared-tooltip-text",D.shortcuts[0]),X.id="emoji-"+n0b++);return X};
_.i9.prototype.createDocumentFragment=function(D,C,X,c){C=C===void 0?!1:C;X=X===void 0?!0:X;c=c===void 0?!1:c;D=D.replace(Vab,"");for(var W=document.createDocumentFragment(),p=0,g,a=0;(g=this.emojiRegex.exec(D))!=null;){var O=_.ki(this,g[0])||_.Sb(this,g[0]);!O||O.isCustomEmoji&&!C||(O=this.createEmoji(O,X),p!==g.index&&W.appendChild(document.createTextNode(D.substring(p,g.index))),W.appendChild(O),p=g.index+g[0].length,a++)}if(!c||a)return W.appendChild(document.createTextNode(D.substr(p))),W};
qPf=function(D,C,X){var c,W,p,g,a,O,P,k,u;return _.I(function(Q){if(Q.nextAddress==1){if(!C.emojiId||!D.emojiMap[C.emojiId])return Q.return();c=Object.assign({},D.emojiMap[C.emojiId],{stickyPrefId:X});D.emojiMap[C.emojiId]=c;C.index&&((W=D.emojis[C.index])==null?void 0:W.emojiId)===C.emojiId&&(D.emojis[C.index]=c);if((p=C.shortcuts)==null?0:p.length)for(D.hasInitializedShortcutCharMap=!1,g=_.U(C.shortcuts),a=g.next();!a.done;a=g.next())O=a.value,D.emojiShortcutMap[O.toLocaleLowerCase()]=c;return Q.yield(_.oc.getInstance(),
2)}if(Q.nextAddress!=4)return(P=Q.yieldResult)?Q.yield(P.get("ytlc-emoji-pref"),4):Q.jumpTo(0);u=(k=Q.yieldResult)!=null?k:{};u[C.emojiId]=X;return Q.yield(P.set("ytlc-emoji-pref",u,Geg),0)})};
_.Qd=new _.i9;var RgC;_.Bk={};
RgC={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.b("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:_.b("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 z1(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 D=_.SY(this.hostElement||this).querySelector("#inline-action-button-container");D&&D.setAttribute("aria-hidden","true");this.menuButton=_.SY(this.hostElement).querySelector("#menu-button")},
attached:function(){var D=this.menuButton;D&&(D.addEventListener("focusin",_.Pr(this,this.onMenuButtonFocus_)),D.addEventListener("focusout",_.Pr(this,this.onMenuButtonBlur_)))},
detached:function(){var D=this.menuButton;D&&(D.removeEventListener("focusin",_.Pr(this,this.onMenuButtonFocus_)),D.removeEventListener("focusout",_.Pr(this,this.onMenuButtonBlur_)))},
identity:_.nh,truthy:function(D){return!!D},
computeTimestampString:function(D){return D?D.timestampText?this.getSimpleString(D.timestampText):this.TIME_FORMATTER.format(new Date(D.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(D){return D},
computeMenuVisible_:function(D,C){return D||C},
computeHasInlineActionButtons:function(D){if(!D)return!1;var C,X;return!((C=D.inlineActionButtons)==null||!C.length)||!((X=D.additionalInlineActionButtons)==null||!X.length)},
createDocumentFragmentFromString:function(D){var C=_.Qd.createDocumentFragment.bind(_.Qd),X;if((X=this.participantsManager)==null||!X.viewerRegex)return C(D);X=document.createDocumentFragment();for(var c=0,W;(W=this.participantsManager.viewerRegex.exec(D))!=null;){if(W.index>0){var p=":"+W[0]+":";if((_.ki(_.Qd,p)||_.Sb(_.Qd,p))&&D.indexOf(p)===W.index-1)continue}X.appendChild(C(D.substring(c,W.index)));c=document.createElement("span");c.appendChild(C(W[0]));c.classList.add("mention");X.appendChild(c);
c=W.index+W[0].length}X.appendChild(C(D.substring(c)));return X},
createDocumentFragment:function(D){var C=document.createDocumentFragment();if(D.simpleText)return C.appendChild(this.createDocumentFragmentFromString(D.simpleText)),C;if(!D.runs)return C;for(var X=0;X<D.runs.length;X++){var c=D.runs[X];if(c.emoji)C.appendChild(_.Qd.createEmoji(c.emoji));else if(c.text)if(c.navigationEndpoint){var W=document.createElement("a");W.classList.add("yt-simple-endpoint");$Hh(W,c.navigationEndpoint);_.SY(W).appendChild(this.createDocumentFragmentFromString(c.text));C.appendChild(W)}else C.appendChild(this.createDocumentFragmentFromString(c.text))}return C},
hasModerationOverlayVisible:function(){var D;return((D=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:D.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(D){D.composedPath().some(function(C){return(C=C instanceof Element?C:null)?C.tagName&&(C.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||C.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.b("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(D)},
colorFromDecimal:function(D){return TnR(D)},
markAsDeleted:function(D,C){this.set("data.deletedStateMessage",D);this.set("data.showOriginalContentMessage",C)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(D){if(this.data.contextMenuEndpoint){var C=_.iX().resolve(_.Qt),X=this.data.contextMenuEndpoint,c;(c=_.Tr.instance)&&_.H0(c,X)?(C=fmb(C,X),c=_.vV(c,{},C)):c=_.dbJ(C,X);c.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);D&&D.stopPropagation()}},
handleGetContextMenuResponse_:function(D){var C=_.Tr.instance;C&&_.H0(C,{liveChatEndpoint:{}})||(D=D.response);D.liveChatItemContextMenuSupportedRenderers&&D.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(D.liveChatItemContextMenuSupportedRenderers.menuRenderer);D.actions&&_.DS(this.hostElement,"yt-live-chat-actions",[D.actions])},
handleGetContextMenuError:function(D){if(D instanceof Error||D instanceof Object||D instanceof String)var C=D;_.MN(new _.Zf("Error encountered calling GetLiveChatItemContextMenu",C))},
showContextMenu_:function(D){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:D}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.lE(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.lE(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Bk.YtLiveChatItemBehavior=[RgC,_.O7.YtComponentBehavior,_.Tl.YtOpenPopupBehavior];_.b9=function(){};var lmC;var DTg;var CiN;var X$g;var ry=function(){var D=_.w.apply(this,arguments)||this;D.active=!1;D.identity=_.nh;return D};
_.h(ry,_.w);ry.prototype.dataChanged=function(){this.active=!1};
ry.prototype.onClick=function(){_.lE(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
ry.prototype.dataChanged=ry.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],ry.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ry.prototype,"active",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ry.prototype,"dataChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],ry);
_.G(ry,"yt-live-chat-text-input-field-suggestion",function(){if(X$g===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;CiN===void 0&&(CiN=document.createElement("template"));var c=CiN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);X$g=D}D=X$g;return D},{mode:0});_.Kz=function(D,C,X){return CustomEvent.call(this,D,{detail:{value:C,path:X}})||this};
_.h(_.Kz,CustomEvent);_.h$=function(){var D=_.w.apply(this,arguments)||this;D.viewerName=null;D.actionMap={"yt-live-chat-actions":"onChatMessage_"};D.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];D.PARTICIPANT_TIME_USEC_=3E8;return D};
_.h(_.h$,_.w);_.S=_.h$.prototype;_.S.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.S.addParticipant=function(D){var C=_.njn(this.participants,D,function(c,W){c=c[Object.keys(c)[0]];W=W[Object.keys(W)[0]];c=String(_.Mh(c.authorName)).toLowerCase();W=String(_.Mh(W.authorName)).toLowerCase();return c<W?-1:c==W?0:1}.bind(this));
if(C>=0){var X=this.participants[C];X[Object.keys(X)[0]].timestampUsec&&this.splice("participants",C,1,D)}else this.splice("participants",-C-1,0,D);D=D[Object.keys(D)[0]];C=_.Mh(D.authorName).toLocaleLowerCase();X=C.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(X)||(this.allParticipantsCharMap_[X]={});this.allParticipantsCharMap_[X][C]=D};
_.S.getAuthorsFromPrefix=function(D){return this.allParticipantsCharMap_.hasOwnProperty(D)?this.allParticipantsCharMap_[D]:null};
_.S.computeViewerRegex_=function(D){if(!D)return null;D=D.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var C=D.indexOf("@")===0&&_.b("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(C+D.replace(/ /g,"\\s*")+"|^"+D.replace(/ /g,"\\s*")+"$|^"+D.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+D.replace(/ /g,"\\s*")+"$|(?<=\\s)"+D.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.S.checkForStaleParticipants_=function(){var D=this;this.trimOldParticipants_();this.asyncHandle_&&iEm(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.TA(function(){D.checkForStaleParticipants_()},3E4))};
_.S.onChatMessage_=function(D){var C=this,X=Date.now()*1E3;D.forEach(function(c){if(c=_.r(c,Zoe)){c=c.item;var W=Object.keys(c)[0];C.SUPPORTED_ITEM_TYPES_.indexOf(W)!=-1&&c[W].timestampUsec>=X-C.PARTICIPANT_TIME_USEC_&&C.addParticipant(c)}},this);
this.checkForStaleParticipants_()};
_.S.trimOldParticipants_=function(){for(var D=Date.now()*1E3,C=this.participants.length-1;C>=0;C--){var X=this.participants[C];X=X[Object.keys(X)[0]];X.timestampUsec&&X.timestampUsec<D-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",C,1)}};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],_.h$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],_.h$.prototype,"viewerName",void 0);_.V([_.n({computed:"computeViewerRegex_(viewerName)"}),_.z("design:type",Object)],_.h$.prototype,"viewerRegex",void 0);_.V([_.n({value:function(){return[]},
notify:!0}),_.z("design:type",Array)],_.h$.prototype,"participants",void 0);_.V([_.Yn({is:"yt-live-chat-participants-manager",noInjection:!0})],_.h$);var ctM=/.*([:@#].*?)$/,xi=/\u00a0/g,oIb=String.fromCharCode(160),WfJ={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"},Lz=function(){var D=_.w.apply(this,arguments)||this;D.disabled=!1;D.liveChatRichMessageInput=null;D.messageInput=null;D.isValidWithNoInputText=!1;D.suggestions=[];D.emojiManager=_.Qd;D.inputMethodEditorActive=
!1;D.suggestionIndex=-1;D.JSC$14395_lastSuggestionRange=null;return D};
_.h(Lz,_.w);_.S=Lz.prototype;_.S.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.S.attached=function(){_.ak&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.S.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.S.dataChanged=function(){if(!this.ignoreColorMapping){var D=!1,C={},X;for(X in WfJ)this.data&&this.data.hasOwnProperty(X)&&(C[WfJ[X]]=this.colorFromDecimal(this.data[X]),D=!0);D&&_.Os(this.hostElement,C)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.S.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.S.colorFromDecimal=function(D){D=Math.floor(Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
_.S.preventDrag=function(D){D.dataTransfer&&(D.dataTransfer.dropEffect="none");D.preventDefault()};
_.S.preventResize=function(D){D.returnValue=!1};
_.S.onInputChange=function(){var D=this.characterCount,C=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&C&&C.remove();if(!C&&this.characterCount>this.maxCharacterLimit){var X=window.getSelection();if(X){var c=X.getRangeAt(0);X.removeAllRanges();X.addRange(c)}}if(X=this.getCurrentRange())c=this.calculateTextBeforeRange(X),this.completeEmojisInRange(X,c,!0)||this.updateSuggestions(X,c);c=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(c);
_.lE(this.hostElement,"yt-live-chat-message-input-change",c);C&&this.characterCount===0&&C.remove();X&&X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>D):X&&!X.collapsed&&X.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(D=this.input.childNodes.length-1;D>=0;D--)this.input.childNodes[D].nodeName==="BR"&&this.input.childNodes[D].remove()};
_.S.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.S.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var D=this.getCurrentRange();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.S.mergeOverflowText=function(D){if(D){var C=document.createRange();C.selectNodeContents(D);C=C.extractContents();this.input.insertBefore(C,D)}};
_.S.checkRangeAtEndOfInput=function(){var D=this.getCurrentRange();if(D){var C=_.SY(this.hostElement).querySelector("#overflow-text"),X=document.createRange();C&&C.previousSibling?C.previousSibling instanceof HTMLImageElement?X.selectNode(C.previousSibling):X.selectNodeContents(C.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?X.selectNode(this.input.lastChild):X.selectNodeContents(this.input.lastChild));X.collapse(!1);return X.isPointInRange(D.startContainer,
D.startOffset)}return!1};
_.S.handleOverflowText=function(D){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var C=_.SY(this.hostElement).querySelector("#overflow-text"),X=this.getCurrentRange();this.input.normalize();D=this.checkRangeAtEndOfInput()&&D;this.mergeOverflowText(C);for(var c,W=0,p=0,g,a=this.input.childNodes,O=0;O<a.length;O++){var P=a[O];P instanceof Text?(p+=P.textContent.length,p>this.maxCharacterLimit&&(c=P,W=this.maxCharacterLimit+P.textContent.length-p)):P instanceof HTMLImageElement&&
(c=void 0,p=P.dataset.emojiId&&((c=this.data)==null?0:c.emojiCharacterCount)?p+this.data.emojiCharacterCount:p+P.alt.length,c=this.input,W=O);if(p>this.maxCharacterLimit&&c){g=document.createRange();g.collapse(!1);C?(p=this.input.lastChild.previousSibling,p instanceof Text?g.setEnd(this.input.lastChild.previousSibling,p.textContent.length):p instanceof HTMLImageElement&&g.setEnd(this.input,this.input.childNodes.length-1)):g.selectNodeContents(this.input);g.setStart(c,W);break}}g&&(c=!1,X&&(D=g.isPointInRange(X.startContainer,
X.startOffset-1)),C||(C=document.createElement("span"),C.id="overflow-text",C.textContent="",C.setAttribute("contenteditable","true"),_.SY(_.SY(this.hostElement).querySelector("#input")).appendChild(C),c=!0),C&&(X=g.extractContents(),C.insertBefore(X,C.firstChild),D&&C.firstChild&&(X=document.createRange(),c?X.setStartAfter(C.lastChild):X.setStartAfter(C.firstChild),X.collapse(!0),C=window.getSelection(),C.removeAllRanges(),C.addRange(X))))}};
_.S.checkForDuplicateSpans=function(){for(var D=0;D<this.input.childNodes.length;D++){var C=this.input.childNodes[D];if(C.nodeName==="SPAN"){var X=document.createRange();X.selectNodeContents(C);X=X.extractContents();this.input.insertBefore(X,C);C.remove()}}this.handleOverflowText(!0)};
_.S.getCurrentRange=function(){var D=window.getSelection();return D&&D.rangeCount?D.getRangeAt(0).cloneRange():null};
_.S.getInputRange=function(){var D=this.getCurrentRange();if(D){for(var C=D.commonAncestorContainer,X=!1,c=_.SY(this.hostElement).querySelector("#input");C;){if(C===c){X=!0;break}C=C.parentNode}X||(D=null)}D||(D=this.getRangeAtEnd());return D};
_.S.getRangeAtEnd=function(){var D=document.createRange(),C=_.SY(this.hostElement).querySelector("#input").lastChild;!C||C.nodeName!=="#text"&&C.nodeName!=="SPAN"?(D.selectNodeContents(_.SY(this.hostElement).querySelector("#input")),D.collapse(!1)):C.nodeName==="#text"?D.setStart(C,C.textContent.length):D.setStart(C,C.childNodes.length);return D};
_.S.getChatParticipantSuggestions=function(D,C,X,c){var W=_.b("live_chat_enable_handles_web_text_input_update");if(C)for(var p in C)if(p.indexOf(D)===0||W&&p.indexOf(X+D)===0){var g=C[p],a=_.Mh(g.authorName);c.push({suggestion:{author:!0,authorType:X,image:g.authorPhoto,alt:a,text:a}});if(c.length>=64)break}};
_.S.getSuggestions=function(D){var C=[],X=D.substring(0,3),c=Mad(_.Qd,X,!0);if(c)for(var W in c)if(W.toLocaleLowerCase().indexOf(D)===0){var p=c[W];if(p&&p.emojiId){if(p=jWJ(_.Qd,p.emojiId)){var g=void 0,a=void 0,O=void 0,P=void 0,k=((g=p.image)==null?0:(a=g.accessibility)==null?0:(O=a.accessibilityData)==null?0:O.label)||p.isCustomEmoji?(P=p.shortcuts)==null?void 0:P[0]:p.emojiId;C.push({suggestion:{emoji:!0,image:p.image,alt:k,text:W,textToInsertWhenSelected:p.isCustomEmoji?W:k}})}if(C.length>=
64)break}}if(!this.participantsManager)return null;if(X.indexOf("@")===0||X.indexOf("#")===0)c=X.charAt(0),D=D.substring(1),W=_.b("live_chat_enable_handles_web_text_input_update"),X.indexOf("@")===0&&W&&(W=this.participantsManager.getAuthorsFromPrefix(X.substring(0,2)),this.getChatParticipantSuggestions(D,W,c,C)),X=X.substring(1),X=this.participantsManager.getAuthorsFromPrefix(X),this.getChatParticipantSuggestions(D,X,c,C);return C?C.sort(function(u,Q){return Q.suggestion.text<u.suggestion.text?-1:
Q.suggestion.text===u.suggestion.text?0:1}):null};
_.S.insertSuggestion=function(D){var C=_.b("live_chat_enable_handles_web_text_input_update"),X=D.authorType;C=D.text.indexOf(X)===0&&C?D.text+oIb:X+D.text+oIb;D.emoji?this.insertTextAtRange(this.JSC$14395_lastSuggestionRange,D.textToInsertWhenSelected||""):D.author&&this.insertTextAtRange(this.JSC$14395_lastSuggestionRange,C)};
_.S.updateSuggestionsAtCaret=function(){var D=this.getCurrentRange();D&&this.updateSuggestions(D,this.calculateTextBeforeRange(D))};
_.S.offsetStartOfRangeBy=function(D,C){for(;C>0;)if(D.startOffset-C>=0){D.setStart(D.startContainer,D.startOffset-C);break}else{C=D.startContainer instanceof HTMLImageElement?C-D.startContainer.alt.length:C-D.startOffset;var X=D.startContainer.previousSibling;if(!X){D.setStart(D.startContainer,0);break}if(_.b("live_chat_require_space_for_autocomplete_emoji")){var c=void 0,W=void 0;D.setStart(X,((c=X)==null?void 0:(W=c.textContent)==null?void 0:W.length)||0)}else D.setStart(X,X.childNodes.length||
0)}};
_.S.updateSuggestions=function(D,C){var X=this;this.JSC$14395_lastSuggestionRange&&(this.JSC$14395_lastSuggestionRange.detach(),this.JSC$14395_lastSuggestionRange=null);if((C=ctM.exec(C))&&C.length&&(C=C[C.length-1].toLocaleLowerCase(),C.length>2&&(this.offsetStartOfRangeBy(D,C.length),this.JSC$14395_lastSuggestionRange=D,(D=this.getSuggestions(C))&&D.length))){this.suggestions=D;_.A0(this,function(){_.SY(X.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.S.completeEmojisInRange=function(D,C,X){var c=C.replace(/[\s\xa0]+$/,"");C=C.length-c.length;c=c.split(" ");c=c[c.length-1].trim().toLocaleLowerCase();var W=c.lastIndexOf(":");if(X&&!C&&W!==c.length-1)return!1;W!==-1&&(X=c.lastIndexOf(":",W-1),X!==-1&&(c=c.substring(X)));if((X=_.Sb(_.Qd,c))&&X.emojiId){X=jWJ(_.Qd,X.emojiId)||null;this.offsetStartOfRangeBy(D,c.length+C);var p,g,a,O;c=(((p=X)==null?0:p.isCustomEmoji)?(g=X)==null?void 0:(a=g.shortcuts)==null?void 0:a[0]:(O=X)==null?void 0:O.emojiId)||
"";C&&(c+=oIb);this.insertTextAtRange(D,c);this.dropdown.opened=!1;return!0}return!1};
_.S.onSuggestion=function(D){this.insertSuggestion(D.detail);this.dropdown.opened=!1};
_.S.onKeyPress=function(D){D.keyCode===13&&(D.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.lE(this.hostElement,"yt-live-chat-send-message"))};
_.S.completeEmojis=function(){var D=document.createRange(),C=_.SY(this.hostElement).querySelector("#input").lastChild;C?D.setStart(C,C.childNodes.length):(D.selectNodeContents(_.SY(this.hostElement).querySelector("#input")),D.collapse(!1));this.completeEmojisInRange(D,this.calculateTextBeforeRange(D),_.b("live_chat_require_space_for_autocomplete_emoji"))};
_.S.maybePreventTextFormatting=function(D){!_.PT||!D.ctrlKey&&!D.metaKey||D.keyCode!==66&&D.keyCode!==73||(D.stopImmediatePropagation(),D.preventDefault())};
_.S.onKeyDown=function(D){this.maybePreventTextFormatting(D);if(this.dropdown.opened)switch(D.keyCode){case 27:this.dropdown.opened=!1;D.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;D.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.S.onKeyUp=function(D){switch(D.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.g1)this.onInputChange()};
_.S.changeSuggestionIndex=function(D){if(this.dropdown.opened){var C=_.SY(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<C.children.length&&(C.children[this.suggestionIndex].active=!1);var X=this.suggestions.length;this.suggestionIndex=(D+X)%X;D=C.children[this.suggestionIndex];D.active=!0;C.scrollTop=D.offsetTop}};
_.S.onInputPaste=function(D){D.preventDefault();(D=D.clipboardData)&&D.types&&(D=D.getData("text/plain")||"",D=D.replace(/\n/g,""),this.insertText(D));(D=this.getCurrentRange())&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.S.onFocus=function(){this._setFocused(!0)};
_.S.onBlur=function(){this._setFocused(!1)};
_.S.insertText=function(D){this.insertTextAtRange(this.getInputRange(),D)};
_.S.insertTextAtRange=function(D,C){if(D&&(D.collapsed||D.deleteContents(),C=_.Qd.createDocumentFragment(C,!0,!1))){for(var X=_.U((C==null?void 0:C.childNodes)||[]),c=X.next();!c.done;c=X.next()){c=c.value;var W=void 0,p=void 0,g=void 0,a=void 0,O=void 0;(g=(W=window)==null?void 0:(p=W.ShadyCSS)==null?void 0:p.ScopingShim)==null||(O=(a=g).scopeNode)==null||O.call(a,c,this.hostElement.localName)}X=C.lastChild;D.insertNode(C);this.focused||this.input.focus();if(this.focused){D=D.cloneRange();D.selectNodeContents(X);
D.collapse(!1);if(C=window.getSelection())C.removeAllRanges(),C.addRange(D);D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}D=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(D);_.lE(this.hostElement,"yt-live-chat-message-input-change",D)}};
_.S.setLiveChatRichMessageInput=function(D){_.SY(_.SY(this.hostElement).querySelector("#input")).textContent="";if(D&&D.textSegments){for(var C=0;C<D.textSegments.length;C++){var X=D.textSegments[C];X.text?_.SY(_.SY(this.hostElement).querySelector("#input")).appendChild(_.Qd.createDocumentFragment(X.text,!0,!1)):X.emojiId&&(X=_.ki(_.Qd,X.emojiId))&&_.SY(_.SY(this.hostElement).querySelector("#input")).appendChild(_.Qd.createEmoji(X,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.S.setText=function(D){this.setLiveChatRichMessageInput(D?{textSegments:[{text:D}]}:null)};
_.S.calculateTextBeforeRange=function(D){var C="",X=D.startContainer;if(X&&X instanceof Text){var c;C=((c=X.textContent)==null?void 0:c.substring(0,D.startOffset))||"";X=X.previousSibling}for(;X&&X instanceof Text;)C=X.textContent+C,X=X.previousSibling;return C.replace(xi," ")};
_.S.calculateLiveChatRichMessageInput=function(){for(var D=[],C="",X=_.SY(_.SY(this.hostElement).querySelector("#input")).childNodes,c=0;c<X.length;c++){var W=X[c];W instanceof Text?C+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(C&&(D.push({text:C.replace(xi," ")}),C=""),D.push({emojiId:W.dataset.emojiId})):C+=W.alt)}C&&D.push({text:C.replace(xi," ")});if(X=_.SY(this.hostElement).querySelector("#overflow-text")){C="";X=X.childNodes;for(c=0;c<X.length;c++)W=X[c],W instanceof Text?
C+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(C&&(D.push({text:C.replace(xi," ")}),C=""),D.push({emojiId:W.dataset.emojiId})):C+=W.alt);C&&D.push({text:C.replace(xi," ")})}return{textSegments:D}};
_.S.computeCharacterCount=function(D){if(!D||!D.textSegments)return 0;for(var C=0,X=0;X<D.textSegments.length;X++){var c=D.textSegments[X];if(c.text)C+=c.text.length;else if(c.emojiId){var W=void 0;if((W=this.data)==null?0:W.emojiCharacterCount)C+=this.data.emojiCharacterCount;else{var p=W=void 0,g=void 0;C+=((p=_.ki(_.Qd,(W=c)==null?void 0:W.emojiId))==null?void 0:(g=p.shortcuts)==null?void 0:g[0].length)||0}}}return C};
_.S.characterCountChanged=function(){_.lE(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.S.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Kz("focused-changed",this.focused))};
_.S.focus=function(){this.setFocus(!1)};
_.S.focusAtEnd=function(){this.setFocus(!0)};
_.S.setFocus=function(D){D=D?this.getRangeAtEnd():this.getInputRange();_.SY(this.hostElement).querySelector("#input").focus();var C=window.getSelection();C&&(C.removeAllRanges(),C.addRange(D))};
_.S.insertEmoji=function(D){var C,X=((D==null?0:D.isCustomEmoji)?(C=D.shortcuts)==null?void 0:C[0]:D==null?void 0:D.emojiId)||"";this.insertText(X)};
_.S.computeText=function(D){if(!D||!D.textSegments)return"";for(var C="",X=0;X<D.textSegments.length;X++){var c=D.textSegments[X];if(c.text)C+=c.text;else if(c.emojiId){var W=void 0,p=void 0,g=void 0;C+=((p=_.ki(_.Qd,(W=c)==null?void 0:W.emojiId))==null?void 0:(g=p.shortcuts)==null?void 0:g[0])||""}}return C};
_.S.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.$a.Object.defineProperties(Lz.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
Lz.prototype.focusedChanged=Lz.prototype.focusedChanged;Lz.prototype.characterCountChanged=Lz.prototype.characterCountChanged;Lz.prototype.onSuggestion=Lz.prototype.onSuggestion;Lz.prototype.onMessageSet=Lz.prototype.onMessageSet;Lz.prototype.dataChanged=Lz.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Lz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lz.prototype,"disabled",void 0);_.V([_.e("disabled"),_.z("design:type",Number),_.z("design:paramtypes",[])],Lz.prototype,"inputTabIndex",null);_.V([_.e("data.maxCharacterLimit"),_.n({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],Lz.prototype,"maxCharacterLimit",null);
_.V([_.e("liveChatRichMessageInput"),_.n({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],Lz.prototype,"characterCount",null);_.V([_.e("maxCharacterLimit, characterCount"),_.n({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],Lz.prototype,"remainingCharacterCount",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lz.prototype,"isChatMessageInput",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lz.prototype,"inputExpanded",void 0);_.V([_.n({readOnly:!0,notify:!0}),_.z("design:type",Object)],Lz.prototype,"liveChatRichMessageInput",void 0);_.V([_.n(),_.z("design:type",Object)],Lz.prototype,"messageInput",void 0);_.V([_.n(),_.z("design:type",Boolean)],Lz.prototype,"ignoreColorMapping",void 0);_.V([_.e("characterCount"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lz.prototype,"hasText",null);
_.V([_.n(),_.z("design:type",Object)],Lz.prototype,"isValidWithNoInputText",void 0);_.V([_.e("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.n(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lz.prototype,"isInputValid",null);_.V([_.n({readOnly:!0,value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Lz.prototype,"focused",void 0);_.V([_.n(),_.z("design:type",Array)],Lz.prototype,"suggestions",void 0);
_.V([_.n(),_.z("design:type",_.i9)],Lz.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",_.h$)],Lz.prototype,"participantsManager",void 0);_.V([_.n(),_.z("design:type",Boolean)],Lz.prototype,"noUnderline",void 0);_.V([_.n(),_.z("design:type",Object)],Lz.prototype,"inputMethodEditorActive",void 0);_.V([_.kn("#dropdown"),_.z("design:type",Object)],Lz.prototype,"dropdown",void 0);_.V([_.kn("#input"),_.z("design:type",HTMLElement)],Lz.prototype,"input",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lz.prototype,"dataChanged",null);_.V([_.vr("messageInput"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lz.prototype,"onMessageSet",null);_.V([_.$n("yt-live-chat-select-suggestion"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Lz.prototype,"onSuggestion",null);
_.V([_.vr("characterCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lz.prototype,"characterCountChanged",null);_.V([_.vr("focused"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lz.prototype,"focusedChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Lz);
_.p$C=_.G(Lz,"yt-live-chat-text-input-field-renderer",function(){if(DTg===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;lmC===void 0&&(lmC=document.createElement("template"));var c=lmC;X.call(C,c.content.cloneNode(!0),D.content.firstChild);DTg=D}D=DTg;return D},{mode:0});var sw=function(){var D=_.w.apply(this,arguments)||this;D.buttonOverrides={style:"overlay",type:"filled"};D.allowAnimations=!1;D.modern=_.b("web_button_rework_with_live");D.noPadding=!1;return D};
_.h(sw,_.w);_.S=sw.prototype;_.S.shouldSupportInlineActionButtons=function(){return!0};
_.S.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"}}}}};
_.S.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.S.attached=function(){this.allowAnimations=!1};
_.S.dataChanged=function(){if(this.data){var D={"--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)};_.Os(this.hostElement,D);this.allowAnimations=!0}};
_.S.messageChanged=function(){var D,C=(D=this.data)==null?void 0:D.message;D=_.SY(_.SY(this.hostElement).querySelector("#message"));D.textContent="";C&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(C))};
_.S.computeShowOnlyHeader=function(D,C){return!D||D.pdgLikeButton||D.replyButton||D.buyFlowButton?!1:this.isEmpty(D,C)&&!D.footer};
_.S.computeShowFooterDivider=function(D,C,X){return D?!!D.footer&&!this.isEmpty(D,C)&&!X:!1};
_.S.computeIsUserEditable=function(D){return!!D.inputField};
_.S.computeHasHeartButton=function(D){return(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.S.computeNoveltyImage=function(D){if(D.headerOverlayImage&&D.headerOverlayImage.thumbnails.length){var C=D.headerOverlayImage.thumbnails[0],X,c;if((X=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(c=X.loggingDirectives)==null?0:c.trackingParams){var W,p;iPr((W=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(p=W.loggingDirectives)==null?void 0:p.trackingParams)}return C.width||0}return 0};
_.S.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.S.inputFocus=function(){var D=_.SY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");D&&D.focus()};
_.S.inputInsertEmoji=function(D){var C=_.SY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");C&&C.insertEmoji(D)};
_.S.inputMessage=function(){var D=_.SY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),C;return D&&((C=this.data)==null?0:C.inputField)?(D.completeEmojis(),_.Z5(D.liveChatRichMessageInput)):null};
_.S.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.S.isEmpty=function(D,C){return D?D.empty||!(D.message||D.inputField||C):!0};
_.S.onLowerBuyButtonClick=function(){var D,C=_.r((D=this.data)==null?void 0:D.buyButton,_.AF);C&&C.trackingParams&&!JdJ(C.command)&&(D=_.bO(C.trackingParams))&&(C=_.LN())&&_.HE(C,D)};
_.S.shouldSupportWholeItemClick=function(){return!0};
_.$a.Object.defineProperties(sw.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
sw.prototype.isDeletedChanged=sw.prototype.isDeletedChanged;sw.prototype.messageChanged=sw.prototype.messageChanged;sw.prototype.dataChanged=sw.prototype.dataChanged;_.V([_.m(e$b.YtPdgLiveChatItemBehavior),_.z("design:type",Object)],sw.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],sw.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],sw.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sw.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:$bo}),_.z("design:type",Object)],sw.prototype,"engagementState",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.z("design:type",Boolean)],sw.prototype,"isUserEditable",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.z("design:type",Boolean)],sw.prototype,"hasHeartButton",void 0);_.V([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.z("design:type",Boolean)],sw.prototype,"showOnlyHeader",void 0);
_.V([_.n({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.z("design:type",Boolean)],sw.prototype,"showFooterDivider",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],sw.prototype,"allowAnimations",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],sw.prototype,"dashboardMoneyFeed",void 0);_.V([_.n({computed:"computeNoveltyImage(data)"}),_.z("design:type",Number)],sw.prototype,"noveltyWidth",void 0);
_.V([_.n({computed:"computeAuthorPhotoSize(data)"}),_.z("design:type",Number)],sw.prototype,"authorPhotoSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sw.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sw.prototype,"noPadding",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sw.prototype,"dataChanged",null);
_.V([_.vr("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sw.prototype,"messageChanged",null);_.V([_.e("data","dashboardMoneyFeed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sw.prototype,"hideLowerBumper",null);_.V([_.vr("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sw.prototype,"isDeletedChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],sw);
_.G(sw,"yt-live-chat-paid-message-renderer",function(){if(Imf===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;amx===void 0&&(amx=document.createElement("template"));var c=amx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Imf=D}D=Imf;return D},{mode:0});var SjC;var UTd;var mO=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.h(mO,_.Qj);mO.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.q6("openPopupConfig")};
_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],mO.prototype,"ytOpenPopupBehavior",void 0);_.V([_.Br()],mO);_.eu=[_.Tl.YtOpenPopupBehavior,mO.prototype];var gIg;var j5=[_.Pl,$ib,_.tT,_.LOC,_.fI,_.w8q,_.gX,_.ko,_.$o,_.j1c,_.TC];_.b("web_continuation_response_processing")&&j5.push(_.nI);_.b("web_show_ep_endpoint_response_received")&&j5.push(_.E3);var YhR=new _.P6("RESPONSE_RECEIVED_COMMANDS"),mTm=new _.P6("RESPONSE_RECEIVED_COMMANDS");var bAm="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Bbd=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],QDr=["GET_UNSEEN_NOTIFICATION_COUNT"];var Ew=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;D.serviceEndpointHandlers=[];return D};
_.h(Ew,_.Qj);Ew.prototype.created=function(){var D=this;this.endpointHandlerActionMap={"yt-service-request":function(C,X,c,W){var p;return uOj(D.hostElement,C,X,c,W,D.serviceEndpointHandlers,(p=D.onEntitiesUpdated)==null?void 0:p.bind(D))}}};
Ew.prototype.attached=function(){_.p2(_.Wf.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Ew.prototype.detached=function(){_.U6(_.Wf.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.V([_.Br()],Ew);_.arb=[Ew.prototype];var IrN,OA5=function(){return IrN!==void 0?IrN:IrN=document.createElement("template")};
document.head.appendChild(OA5().content);var At4;var Pik=document.head,$TN=Pik.appendChild,vIN;if(At4===void 0){var iAd=document.createElement("template");_.x(iAd,"\x3c!--css-build:shady--\x3e");iAd.content.insertBefore(OA5().content.cloneNode(!0),iAd.content.firstChild);At4=iAd}vIN=At4;$TN.call(Pik,vIN.content);var kBe,uOg=function(){return kBe!==void 0?kBe:kBe=document.createElement("template")};
document.head.appendChild(uOg().content);var QDJ;var Bbe=document.head,bAq=Bbe.appendChild,rtC;if(QDJ===void 0){var Kf4=document.createElement("template");_.x(Kf4,"\x3c!--css-build:shady--\x3e");Kf4.content.insertBefore(uOg().content.cloneNode(!0),Kf4.content.firstChild);QDJ=Kf4}rtC=QDJ;bAq.call(Bbe,rtC.content);var hCb;_.sI("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.sI("sharingRendererButtons","buttonRenderer","ytd-button-renderer");hCb=_.b("web_button_rework")&&_.dq("BUTTON_REWORK")||_.b("web_button_rework_with_live");_.t$=function(){var D=_.w.apply(this,arguments)||this;D.isPressed=!1;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return D};
_.h(_.t$,_.w);_.S=_.t$.prototype;_.S.created=function(){this.showTooltips=!0};
_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.onHintIdChanged=function(){var D=this,C,X,c=(C=this.ytButtonBehavior.data)==null?void 0:(X=C.hint)==null?void 0:X.hintRenderer;if(c&&c.hintId){C=_.Ct(this.hostElement,"yt-get-opened-popups-action");C=(C&&C.length===1?C[0]:[]).length>0;var W=null;c.hintId!=="sponsor-pre-purchase"||C?c.hintId.startsWith("sponsor-post-purchase")&&!C?W=iZb("membership-manage"):c.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!C&&(W=iZb("membership-freebie-join")):W=iZb("membership-join");W&&_.qX.addLowPriorityJob(function(){for(var p=
_.U(W),g=p.next();!g.done;g=p.next())D.ytComponentBehavior.resolveCommand(g.value)})}};
_.S.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.S.onYtNavigate=function(D){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);C&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(C))};
_.S.onYtServiceRequestSent=function(D,C){this.handleServiceRequestActions(C);_.lE(this.hostElement,"yt-service-request-sent-button-renderer")};
_.S.onServiceRequestCompleted=function(D,C){this.handleServiceRequestActions(C);_.lE(this.hostElement,"yt-service-request-completed-button-renderer")};
_.S.updateButton=function(D){var C;if(D=(C=_.r(D,p8d))==null?void 0:C.updatedButton)this.ytButtonBehavior.data=_.r(D,_.AF)};
_.S.handleUpdateButtonAction=function(D){var C=this.ytButtonBehavior.data;C.targetId&&D.updateButtonAction.targetId&&C.targetId===D.updateButtonAction.targetId&&this.updateButton(D)};
_.S.handleServiceRequestActions=function(D){if(D=D.actions)for(var C=0;C<D.length;C++)this.updateButton(D[C])};
_.$a.Object.defineProperties(_.t$,{template:{configurable:!0,enumerable:!0,get:function(){if(gIg===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);gIg=D}D=gIg;return D}}});
_.t$.prototype.onServiceRequestCompleted=_.t$.prototype.onServiceRequestCompleted;_.t$.prototype.onYtServiceRequestSent=_.t$.prototype.onYtServiceRequestSent;_.t$.prototype.onYtNavigate=_.t$.prototype.onYtNavigate;_.t$.prototype.onPressedStateChanged=_.t$.prototype.onPressedStateChanged;_.t$.prototype.onHintIdChanged=_.t$.prototype.onHintIdChanged;_.V([_.n(),_.z("design:type",Object)],_.t$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],_.t$.prototype,"isPressed",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],_.t$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eEf.YtButtonBehavior),_.z("design:type",Object)],_.t$.prototype,"ytButtonBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],_.t$.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],_.t$.prototype,"ytComponentBehavior",void 0);
_.V([_.m(Rs.YtRenderButtonBehavior),_.z("design:type",Object)],_.t$.prototype,"ytRenderButtonBehavior",void 0);_.V([_.vr("data.hint.hintRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],_.t$.prototype,"onHintIdChanged",null);_.V([_.vr("isPressed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],_.t$.prototype,"onPressedStateChanged",null);
_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],_.t$.prototype,"onYtNavigate",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],_.t$.prototype,"onYtServiceRequestSent",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],_.t$.prototype,"onServiceRequestCompleted",null);_.V([_.yj({is:"ytd-button-renderer",disableElementRegistration:hCb})],_.t$);var NM=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.h(NM,_.w);_.S=NM.prototype;_.S.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"}}}}};
_.S.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.S.dataChanged=function(){if(this.data&&this.data.sticker){var D=_.XA(this.data.sticker.thumbnails,this.stickerWidth);D||_.ytd(D).thenCatch(function(){_.fQ(new _.Zf("Failed to load Super Sticker with url",D))})}};
_.S.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)?32:40};
_.S.computeIsV2Style=function(D){return(D==null?0:D.isV2Style)?!0:!1};
_.S.onStickerLoaded=function(D){var C,X,c;(C=_.qz(D))==null||(X=C.parentNode)==null||(c=X.classList)==null||c.add("sticker-loaded")};
_.S.computeNoveltyImageWidth=function(D){var C,X;if(D==null?0:(C=D.headerOverlayImage)==null?0:(X=C.thumbnails)==null?0:X.length){C=D.headerOverlayImage.thumbnails[0];var c,W;if((c=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(W=c.loggingDirectives)==null?0:W.trackingParams){var p,g;iPr((p=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=p.loggingDirectives)==null?void 0:g.trackingParams)}return C.width||0}return 0};
_.S.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.S.updateStickerStyles=function(){var D=this.data;D&&(D={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.authorNameTextColor)},
_.Os(this.hostElement,D))};
_.S.onBuyButtonClick=function(){var D,C=_.r((D=this.data)==null?void 0:D.buyButton,_.AF);C&&!JdJ(C.command)&&this.ytRendererBehavior.logExplicitClick(C)};
_.S.shouldSupportWholeItemClick=function(){return!0};
_.$a.Object.defineProperties(NM.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 D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
NM.prototype.updateStickerStyles=NM.prototype.updateStickerStyles;NM.prototype.isDeletedChanged=NM.prototype.isDeletedChanged;NM.prototype.onStickerLoaded=NM.prototype.onStickerLoaded;NM.prototype.dataChanged=NM.prototype.dataChanged;_.V([_.m(e$b.YtPdgLiveChatItemBehavior),_.z("design:type",Object)],NM.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],NM.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],NM.prototype,"data",void 0);
_.V([_.n({computed:"computeAuthorPhotoSize(data)"}),_.z("design:type",Number)],NM.prototype,"authorPhotoSize",void 0);_.V([_.n(),_.z("design:type",Boolean)],NM.prototype,"isDeleted",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],NM.prototype,"dashboardMoneyFeed",void 0);_.V([_.n({computed:"computeNoveltyImageWidth(data)"}),_.z("design:type",Number)],NM.prototype,"noveltyWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],NM.prototype,"modern",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.z("design:type",Boolean)],NM.prototype,"isV2Style",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NM.prototype,"dataChanged",null);_.V([_.$n("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],NM.prototype,"onStickerLoaded",null);
_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],NM.prototype,"stickerWidth",null);_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],NM.prototype,"stickerHeight",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],NM.prototype,"hasHeartButton",null);_.V([_.e("data","dashboardMoneyFeed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],NM.prototype,"hideLowerBumper",null);
_.V([_.vr("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NM.prototype,"isDeletedChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NM.prototype,"updateStickerStyles",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],NM);
_.G(NM,"yt-live-chat-paid-sticker-renderer",function(){if(UTd===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;SjC===void 0&&(SjC=document.createElement("template"));var c=SjC;X.call(C,c.content.cloneNode(!0),D.content.firstChild);UTd=D}D=UTd;return D},{mode:0});var xTx;var Lfb;var sDc,mTq=function(){return sDc!==void 0?sDc:sDc=document.createElement("template")};
document.head.appendChild(mTq().content);var eCC,EId=function(){return eCC!==void 0?eCC:eCC=document.createElement("template")};
document.head.appendChild(EId().content);var tWd;var NbN,YjM=function(){return NbN!==void 0?NbN:NbN=document.createElement("template")};
document.head.appendChild(YjM().content);var yte;var nIC=document.head,w$N=nIC.appendChild,Ffq;if(yte===void 0){var ZAe=document.createElement("template");_.x(ZAe,"\x3c!--css-build:shady--\x3e");ZAe.content.insertBefore(YjM().content.cloneNode(!0),ZAe.content.firstChild);yte=ZAe}Ffq=yte;w$N.call(nIC,Ffq.content);var GBN=document.head,VWb=GBN.appendChild,Tbf;if(tWd===void 0){var Yi=document.createElement("template");_.x(Yi,"\x3c!--css-build:shady--\x3e");Yi.content.insertBefore(EId().content.cloneNode(!0),Yi.content.firstChild);Yi.content.insertBefore(mTq().content.cloneNode(!0),Yi.content.firstChild);tWd=Yi}Tbf=tWd;VWb.call(GBN,Tbf.content);var yd=function(){var D=_.Qj.apply(this,arguments)||this;D.focusedIndex=0;D.verticalOffset=0;D.verticalAlign="top";D.dynamicAlign=!0;return D};
_.h(yd,_.Qj);yd.prototype.emojiUrl=function(D){D=_.ki(this.emojiManager,D);if(!D)return"";var C;D=(C=D.image)==null?void 0:C.thumbnails;return _.XA(D,24)||""};
var HA5=function(D){var C;D.emojiVariants&&(C=D.data)!=null&&C.target&&_.A0(D,function(){D.set("verticalOffset",-1*D.hostElement.clientHeight);var X=_.SY(D.hostElement).querySelector("img");X&&X.focus()})};
_.S=yd.prototype;_.S.onKeyboardEnter=function(){};
_.S.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.S.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.S.onKeyDown=function(D){switch(D.keyCode){case 13:this.onKeyboardEnter();D.preventDefault();break;case 40:this.changeFocus(1);D.preventDefault();break;case 38:this.changeFocus(-1);D.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.S.onYtEmojiSelect=function(D){var C=this,X,c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1)return c=(X=C.data)==null?void 0:X.emoji,g=((W=c)==null?void 0:W.stickyPrefId)||((p=c)==null?void 0:p.emojiId),O=(a=D.detail)==null?void 0:a.emojiId,g&&O&&g!==O?k.yield((P=C.emojiManager)==null?void 0:qPf(P,c,O),2):k.return();_.DS(C.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[c,O]);_.t_(k)})};
_.S.changeFocus=function(D){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+D+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(D=_.SY(this.hostElement).querySelector("#variants"))&&D.children[this.focusedIndex].focus())};
_.$a.Object.defineProperties(yd.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
yd.prototype.onYtEmojiSelect=yd.prototype.onYtEmojiSelect;yd.prototype.onKeyDown=yd.prototype.onKeyDown;yd.prototype.onEmojiVariantsChanged=yd.prototype.onEmojiVariantsChanged;yd.prototype.onVerticalOffsetOrPositionTargetChanged=yd.prototype.onVerticalOffsetOrPositionTargetChanged;_.V([_.m(_.$O),_.z("design:type",Object)],yd.prototype,"ironOverlayBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yd.prototype,"data",void 0);_.V([_.n(),_.z("design:type",_.i9)],yd.prototype,"emojiManager",void 0);
_.V([_.n(),_.z("design:type",Object)],yd.prototype,"emojiVariants",void 0);_.V([_.n(),_.z("design:type",Object)],yd.prototype,"focusedIndex",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yd.prototype,"positionTarget",null);_.V([_.n({reflectToAttribute:!0}),_.e("verticalOffset","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yd.prototype,"isPositioned",null);_.V([_.n(),_.z("design:type",Object)],yd.prototype,"verticalOffset",void 0);
_.V([_.n(),_.z("design:type",Object)],yd.prototype,"verticalAlign",void 0);_.V([_.n(),_.z("design:type",Object)],yd.prototype,"dynamicAlign",void 0);_.V([_.vr("verticalOffset","positionTarget"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yd.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.V([_.vr("emojiVariants"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yd.prototype,"onEmojiVariantsChanged",null);
_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],yd.prototype,"onKeyDown",null);_.V([_.$n("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype",Promise)],yd.prototype,"onYtEmojiSelect",null);_.V([_.Br()],yd);var Jt5=[yd.prototype];var zCd;var jDg;var MWd=/medium-light|medium-dark|light|medium|dark/,qje=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,frq=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),nz=function(){var D=_.w.apply(this,arguments)||this;D.userSelection={left:null,right:null};D.scrollAction="lock";D.isEmojiDraftInProgress=!1;return D};
_.h(nz,_.w);_.S=nz.prototype;_.S.onClick=function(D){D=_.qz(D);D instanceof HTMLImageElement&&this.selectOrUpdateEmoji(D)};
_.S.selectOrUpdateEmoji=function(D){var C=D.getAttribute("selection");C&&(C==="default"?_.lE(this.hostElement,"yt-emoji-select",_.ki(this.emojiManager,D.id)):C==="left"?this.userSelection=Object.assign({},this.userSelection,{left:D.src}):C==="right"?this.userSelection=Object.assign({},this.userSelection,{right:D.src}):C==="user"&&this.userSelection.left&&this.userSelection.right&&_.lE(this.hostElement,"yt-emoji-select",_.ki(this.emojiManager,D.id)))};
_.S.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.S.onMultiSelectorThumbnailRowChanged=function(){var D,C,X;((D=this.data)==null?0:(C=D.emoji)==null?0:(X=C.multiSelectorThumbnailRow)==null?0:X.length)&&this.openSelector()};
_.S.getThumbnailFromEmojiRow=function(D){var C,X;return(D==null?void 0:(C=D.thumbnails)==null?void 0:(X=C[0])==null?void 0:X.url)||""};
_.S.getEmojiAltTextForPartialSelector=function(D){var C;return((C=this.getThumbnailFromEmojiRow(D).match(qje))==null?void 0:C[0])||""};
_.S.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.S.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.S.getRowSelection=function(D){return["left","right"][D]};
_.S.getIdFromComposedEmoji=function(D){return(D==null?void 0:D.emojiId)||""};
_.S.getEmojiFromPartialSelections=function(D,C){if(!D&&!C)return null;var X,c,W=(X=this.data)==null?void 0:(c=X.emoji)==null?void 0:c.variantIds;if(!W||!W.length)return null;var p;D=(p=D.match(MWd))==null?void 0:p[0];var g;C=(g=C.match(MWd))==null?void 0:g[0];if(!D||!C)return null;var a=frq.get(D);g=frq.get(C);if(a===g){g=Array.from(frq.values()).filter(function(P){return P!==a}).join("|");
var O=new RegExp("^((?!("+g+")).)*"+a+"$")}else O=new RegExp(a+".*"+g);return(W=W.find(function(P){return O.test(P)}))&&_.ki(this.emojiManager,W)||null};
_.S.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var D,C=this.ytEmojiSelectorBehavior.emojiUrl(((D=this.data.emoji)==null?void 0:D.emojiId)||"");_.SY(this.hostElement).querySelector('[selection="user"]').src.includes(C)||(this.isEmojiDraftInProgress=!0)}};
_.S.onDomChange=function(){HA5(this.ytEmojiSelectorBehavior)};
_.S.getFocusableElements=function(){return _.SY(this.hostElement).querySelectorAll("img").filter(function(D){return D.getAttribute("role")==="option"})};
_.S.changeFocus=function(D){var C=this.getFocusableElements();C!=null&&C.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+D+C.length)%C.length,this.ytEmojiSelectorBehavior.focusedIndex<C.length&&(D=C[this.ytEmojiSelectorBehavior.focusedIndex])&&D.focus())};
_.S.onKeyboardEnter=function(){var D=this.getFocusableElements();D!=null&&D.length&&(D=D[this.ytEmojiSelectorBehavior.focusedIndex])&&D instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(D),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.$a.Object.defineProperties(nz.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,C,X,c;return this.emojiManager&&((C=this.data)==null?0:(X=C.emoji)==null?0:(c=X.variantIds)==null?0:c.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.ki(D.emojiManager,W)}).filter(function(W){return!!W}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D,C=(D=this.userSelection)==null?void 0:D.left,X;D=(X=this.userSelection)==null?void 0:X.right;return C&&D?this.getEmojiFromPartialSelections(C,D):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.composedEmojiSelection)==null?0:D.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var C;D=(C=this.userSelection)==null?void 0:C.left;var X;C=(X=this.userSelection)==null?void 0:X.right;if(!D&&!C){var c;return this.ytEmojiSelectorBehavior.emojiUrl(((c=this.data.emoji)==null?void 0:c.emojiId)||"")}return D&&!C?D:!D&&C?C:""}}});
nz.prototype.onMultiSelectorThumbnailRowChanged=nz.prototype.onMultiSelectorThumbnailRowChanged;nz.prototype.onClick=nz.prototype.onClick;_.V([_.m(_.$O),_.z("design:type",Object)],nz.prototype,"ironOverlayBehavior",void 0);_.V([_.m(Jt5),_.z("design:type",Object)],nz.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nz.prototype,"data",void 0);_.V([_.n(),_.z("design:type",_.i9)],nz.prototype,"emojiManager",void 0);
_.V([_.n(),_.z("design:type",Object)],nz.prototype,"userSelection",void 0);_.V([_.n(),_.z("design:type",Object)],nz.prototype,"scrollAction",void 0);_.V([_.n(),_.z("design:type",Object)],nz.prototype,"isEmojiDraftInProgress",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],nz.prototype,"emojiVariants",null);_.V([_.e("data","userSelection"),_.z("design:type",Object),_.z("design:paramtypes",[])],nz.prototype,"composedEmojiSelection",null);
_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],nz.prototype,"onClick",null);_.V([_.vr("data.emoji.multiSelectorThumbnailRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nz.prototype,"onMultiSelectorThumbnailRowChanged",null);_.V([_.e("data","userSelection","composedEmojiSelection"),_.z("design:type",String),_.z("design:paramtypes",[])],nz.prototype,"draftEmojiUrl",null);
_.V([_.Yn({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],nz);
_.G(nz,"yt-emoji-multi-person-selector",function(){if(jDg===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;zCd===void 0&&(zCd=document.createElement("template"));var c=zCd;X.call(C,c.content.cloneNode(!0),D.content.firstChild);jDg=D}D=jDg;return D},{mode:2});var dTb;var RCC;var wy=function(){var D=_.w.apply(this,arguments)||this;D.tooltip_=null;return D};
_.h(wy,_.w);_.S=wy.prototype;_.S.dataChanged_=function(){var D;if((D=this.data)==null?0:D.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.SY(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Io)(this.tooltip_).textContent=this.data.tooltip};
_.S.computeTargetId=function(){var D;return((D=this.data)==null?void 0:D.targetId)||""};
_.S.computeId_=function(D){return D};
_.S.computeIcon_=function(D){return _.g2(D)};
_.S.onTap_=function(){this.active=!this.active;_.lE(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.S.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("active-changed",this.active))};
_.$a.Object.defineProperties(wy.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var D,C;if((D=this.data)==null?0:(C=D.icon)==null?0:C.iconType)return this.data.icon.iconType==="SUPER_STICKER";var X,c;return((X=this.data)==null?void 0:(c=X.icon)==null?void 0:c.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
wy.prototype.activeChangedForBinding=wy.prototype.activeChangedForBinding;wy.prototype.dataChanged_=wy.prototype.dataChanged_;_.V([_.m(_.Is.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],wy.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wy.prototype,"data",void 0);_.V([_.n({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.z("design:type",String)],wy.prototype,"id",void 0);
_.V([_.n({computed:"computeTargetId(data.targetId)"}),_.z("design:type",String)],wy.prototype,"targetId",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],wy.prototype,"active",void 0);_.V([_.n({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.z("design:type",String)],wy.prototype,"icon",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wy.prototype,"dataChanged_",null);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wy.prototype,"iconFilled",null);_.V([_.vr("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wy.prototype,"activeChangedForBinding",null);_.V([_.Yn({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],wy);
_.G(wy,"yt-emoji-picker-category-button-renderer",function(){if(RCC===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;dTb===void 0&&(dTb=document.createElement("template"));var c=dTb;X.call(C,c.content.cloneNode(!0),D.content.firstChild);RCC=D}D=RCC;return D},{mode:2});var lrg;var Djg;var F5=function(){var D=_.w.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};D.JSC$14460_ignoreNextFocus_=!1;D.longPressTimeoutId=-1;return D};
_.h(F5,_.w);_.S=F5.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.S.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.iO(),C=0;C<this.emoji.length;C++){var X={veType:88013,elementIndex:C},c=this.emoji[C];c.isCustomEmoji&&(c=document.querySelector(("#"+c.emojiId).replace("/","\\/")))&&(X=_.vc(D,X))&&(c.visualElement=X)}};
_.S.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.S.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.S.emojiSkinToneChanged_=function(D){this.skinTone=D};
_.S.dataChanged=function(){this.data&&this.data.emojiData&&Jrd(this.emojiManager,this.data.emojiData)};
_.S.emojiUrl=function(D){D=this.getEmoji(D);if(!D)return"";var C;D=(C=D.image)==null?void 0:C.thumbnails;return _.XA(D,24)||""};
_.S.emojiAlt=function(D){var C=this.get("image.accessibility.accessibilityData.label",D);return C?C:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.S.emojiAriaLabel=function(D){return D.shortcuts?D.shortcuts[0]:""};
_.S.emojiAriaSelected=function(D,C,X){return D&&X==C?"true":"false"};
_.S.getEmoji=function(D){if(this.emojiManager)return this.shouldUseStickyPreferences?jWJ(this.emojiManager,D):u9(this.emojiManager,D)};
_.S.computeId_=function(D){return D.categoryId||""};
_.S.computeEmoji=function(D){var C=this;return this.emojiManager?D.emojiIds?D.emojiIds.map(function(X){return X?_.ki(C.emojiManager,X):null}).filter(nIZ):D.emojiData?D.emojiData.map(function(X){var c=!!X.emojiId&&_.ki(C.emojiManager,X.emojiId);
return c?Object.assign({},c,X):null}).filter(nIZ):[]:[]};
_.S.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.S.computeAriaLabel_=function(D){return _.Mh(D)};
_.S.computeAriaActivedescendant_=function(D,C){return D&&D[C]?D[C].emojiId||"":""};
_.S.handleLongPressEmojiWithVariants=function(D,C){this.changeFocusToEmoji(D.emojiId,!1);this.openVariantSelector(D,C)};
_.S.onMouseDown=function(D){var C=this;this.hostElement!==document.activeElement&&(this.JSC$14460_ignoreNextFocus_=!0);if(D.button===0){var X=_.qz(D);if(X instanceof HTMLImageElement){var c=_.SY(this.hostElement).querySelector("#repeat").itemForElement(X);this.emojiContainsVariants(c)&&(this.longPressTimeoutId=setTimeout(function(){C.handleLongPressEmojiWithVariants(c,X)},500))}}};
_.S.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.S.onFocus=function(){this.JSC$14460_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14460_ignoreNextFocus_=!1};
_.S.onBlur_=function(){this.showFocus=!1};
_.S.emojiContainsVariants=function(D){return!!(D&&D.variantIds&&D.variantIds.length)};
_.S.onClick=function(D){clearTimeout(this.longPressTimeoutId);D=_.qz(D);if(D instanceof HTMLImageElement){var C=D.id;this.changeFocusToEmoji(C,!1);var X=this.getEmoji(C),c;if(c=this.shouldUseStickyPreferences&&this.emojiContainsVariants(X)){var W;c=!((W=this.emojiManager.emojiMap[C])!=null&&W.stickyPrefId)}c?(W=_.SY(this.hostElement).querySelector("#repeat").itemForElement(D),this.openVariantSelector(W,D)):_.lE(this.hostElement,"yt-emoji-select",X)}};
_.S.isActiveEmojiWithVariants=function(D,C){return D&&C?C.stickyPrefId?D===C.stickyPrefId:D===C.emojiId:!1};
_.S.onCloseEmojiVariantSelector=function(D){this.activeEmojiWithVariantsId===D&&(this.activeEmojiWithVariantsId="")};
_.S.onMouseOver_=function(D){D=_.qz(D);D instanceof HTMLImageElement&&_.lE(this.hostElement,"yt-emoji-hover",_.ki(this.emojiManager,D.id))};
_.S.changeFocus_=function(D,C){this.focusedIndex=(this.focusedIndex+D+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(D=this.emoji[this.focusedIndex],C&&(this.showFocus=!0,_.SY(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.lE(this.hostElement,"yt-emoji-hover",D)))};
_.S.changeFocusToEmoji=function(D,C){if(D){var X=this.emoji.findIndex(function(c){return c.emojiId===D});
X!==-1&&this.changeFocus_(X-this.focusedIndex,C)}};
_.S.onKeyDown_=function(D){switch(D.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var C=this.emoji[this.focusedIndex];if(C&&C.emojiId){if(this.emojiContainsVariants(C)){var X=_.SY(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(C,X)}else _.lE(this.hostElement,"yt-emoji-select",u9(this.emojiManager,C.emojiId)),this.hostElement.focus();D.preventDefault()}}break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),
D.preventDefault()}};
_.S.onEmojiStickyPreferenceChanged=function(D,C){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&D.emojiId&&D.variantIds&&D.variantIds.includes(C)&&this.activeEmojiWithVariantsId!==C&&this.setStickyEmojiPreference(D.emojiId,C)};
_.S.openVariantSelector=function(D,C){this.activeEmojiWithVariantsId=D.stickyPrefId||D.emojiId||"";_.lE(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:D,target:C})};
_.S.setStickyEmojiPreference=function(D,C){if(this.data){var X=this.emoji.findIndex(function(W){return W.emojiId===D});
if(X!==-1){var c=this.emoji[X];c.stickyPrefId=C;this.set("emoji."+X,Object.assign({},c));this.activeEmojiWithVariantsId=C}}};
F5.prototype.onKeyDown_=F5.prototype.onKeyDown_;F5.prototype.onMouseOver_=F5.prototype.onMouseOver_;F5.prototype.onClick=F5.prototype.onClick;F5.prototype.onBlur_=F5.prototype.onBlur_;F5.prototype.onFocus=F5.prototype.onFocus;F5.prototype.onMouseUp=F5.prototype.onMouseUp;F5.prototype.onMouseDown=F5.prototype.onMouseDown;F5.prototype.dataChanged=F5.prototype.dataChanged;F5.prototype.disableIncrementalLoadingChanged_=F5.prototype.disableIncrementalLoadingChanged_;F5.prototype.emojiManagerChanged_=F5.prototype.emojiManagerChanged_;
F5.prototype.emojiChanged_=F5.prototype.emojiChanged_;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],F5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],F5.prototype,"data",void 0);_.V([_.n({computed:"computeId_(data)"}),_.z("design:type",String)],F5.prototype,"id",void 0);_.V([_.n({computed:"computeEmoji(data)"}),_.z("design:type",Array)],F5.prototype,"emoji",void 0);_.V([_.n(),_.z("design:type",Number)],F5.prototype,"skinTone",void 0);
_.V([_.n(),_.z("design:type",_.i9)],F5.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",Boolean)],F5.prototype,"disableIncrementalLoading",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],F5.prototype,"focusedIndex",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],F5.prototype,"showFocus",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.z("design:type",Object)],F5.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.z("design:type",Object)],F5.prototype,"ariaActivedescendant",void 0);_.V([_.n({value:60}),_.z("design:type",Number)],F5.prototype,"domRepeatTargetFramerate",void 0);_.V([_.n({value:1}),_.z("design:type",Number)],F5.prototype,"domRepeatInitialCount",void 0);_.V([_.n({value:""}),_.z("design:type",String)],F5.prototype,"activeEmojiWithVariantsId",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],F5.prototype,"shouldUseStickyPreferences",void 0);_.V([_.vr("emoji"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"emojiChanged_",null);_.V([_.vr("emojiManager"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"emojiManagerChanged_",null);
_.V([_.vr("disableIncrementalLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"disableIncrementalLoadingChanged_",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"dataChanged",null);_.V([_.$n("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],F5.prototype,"onMouseDown",null);
_.V([_.$n("mouseup"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"onMouseUp",null);_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"onFocus",null);_.V([_.$n("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F5.prototype,"onBlur_",null);
_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],F5.prototype,"onClick",null);_.V([_.$n("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],F5.prototype,"onMouseOver_",null);_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],F5.prototype,"onKeyDown_",null);
_.V([_.Yn({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],F5);
_.G(F5,"yt-emoji-picker-category-renderer",function(){if(Djg===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;lrg===void 0&&(lrg=document.createElement("template"));var c=lrg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Djg=D}D=Djg;return D},{mode:2});var CrN;var X4M;var cJM;var oVg;var ZY=function(){var D=_.w.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.getFormattedStringRawText=_.Mh;D.JSC$14466_ignoreNextFocus_=!1;return D};
_.h(ZY,_.w);_.S=ZY.prototype;_.S.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")};
_.S.emojiUrl=function(D){var C,X;D=(C=u9(this.emojiManager,D,!0))==null?void 0:(X=C.image)==null?void 0:X.thumbnails;return _.XA(D,24)||""};
_.S.emojiAlt=function(D){var C=this.get("image.accessibility.accessibilityData.label",D);return C?C:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.S.emojiId=function(D){return"emoji"+D};
_.S.computeId_=function(D){return D.categoryId||""};
_.S.computeAriaActivedescendant_=function(D){return this.emoji&&D<this.emoji.length?this.emojiId(D):""};
_.S.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.iO(),C=0;C<this.emoji.length;C++){var X={veType:88013,elementIndex:C},c=this.emoji[C];c.isCustomEmoji&&(c=document.querySelector(("#"+c.emojiId).replace("/","\\/")))&&(X=_.vc(D,X))&&(c.visualElement=X)}};
_.S.computeEmoji_=function(D){var C=this;return this.emojiManager?D.emojiIds.map(function(X){return _.ki(C.emojiManager,X,!0)}).filter(w$J):[]};
_.S.titleOffsetChanged_=function(){var D=this.hostElement.getBoundingClientRect(),C=_.SY(this.hostElement).querySelector("#title").getBoundingClientRect();D=Math.max(0,Math.min(this.titleOffset,D.height-C.height));_.SY(this.hostElement).querySelector("#title").style.top=D+"px"};
_.S.onEmojiMouseOver_=function(D){_.lE(this.hostElement,"yt-emoji-hover",D.model.item)};
_.S.onEmojiTap_=function(D){this.data.command&&(D=hgr(_.iX().resolve(_.vK(cf)),this.data.command,D),_.lE(this.hostElement,"yt-navigate",D))};
_.S.emojiAriaLabel=function(D){return D.shortcuts[0]};
_.S.emojiAriaSelected=function(D,C,X){return D&&X==C?"true":"false"};
_.S.changeFocus_=function(D,C){var X=this.emoji.length;this.focusedIndex=(this.focusedIndex+D+X)%X;D=this.emoji[this.focusedIndex];if(C){var c;(c=_.SY(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||c.scrollIntoView(!1);_.lE(this.hostElement,"yt-emoji-hover",D)}};
_.S.onMouseDown_=function(){this.JSC$14466_ignoreNextFocus_=!0};
_.S.onFocus_=function(){this.JSC$14466_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14466_ignoreNextFocus_=!1};
_.S.onBlur_=function(){this.showFocus=!1};
_.S.onKeyDown_=function(D){switch(D.keyCode){case 13:this.onEmojiTap_(D);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),D.preventDefault()}};
ZY.prototype.onKeyDown_=ZY.prototype.onKeyDown_;ZY.prototype.onBlur_=ZY.prototype.onBlur_;ZY.prototype.onFocus_=ZY.prototype.onFocus_;ZY.prototype.onMouseDown_=ZY.prototype.onMouseDown_;ZY.prototype.onEmojiTap_=ZY.prototype.onEmojiTap_;ZY.prototype.titleOffsetChanged_=ZY.prototype.titleOffsetChanged_;ZY.prototype.emojiChanged_=ZY.prototype.emojiChanged_;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ZY.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],ZY.prototype,"data",void 0);_.V([_.n({computed:"computeId_(data)"}),_.z("design:type",String)],ZY.prototype,"id",void 0);_.V([_.n({computed:"computeEmoji_(data)"}),_.z("design:type",Array)],ZY.prototype,"emoji",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],ZY.prototype,"titleOffset",void 0);_.V([_.n({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.z("design:type",Object)],ZY.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.z("design:type",Object)],ZY.prototype,"ariaActivedescendant",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],ZY.prototype,"showFocus",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],ZY.prototype,"focusedIndex",void 0);_.V([_.n(),_.z("design:type",_.i9)],ZY.prototype,"emojiManager",void 0);
_.V([_.vr("emoji"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZY.prototype,"emojiChanged_",null);_.V([_.vr("titleOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZY.prototype,"titleOffsetChanged_",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZY.prototype,"onEmojiTap_",null);
_.V([_.$n("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZY.prototype,"onMouseDown_",null);_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZY.prototype,"onFocus_",null);_.V([_.$n("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZY.prototype,"onBlur_",null);
_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZY.prototype,"onKeyDown_",null);_.V([_.Yn({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],ZY);
_.G(ZY,"yt-emoji-picker-upsell-category-renderer",function(){if(oVg===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;cJM===void 0&&(cJM=document.createElement("template"));var c=cJM;X.call(C,c.content.cloneNode(!0),D.content.firstChild);oVg=D}D=oVg;return D},{mode:2});var WTe;var p4c;var GY=function(){var D=_.w.apply(this,arguments)||this;D.scrollAction="lock";D.verticalAlign="top";return D};
_.h(GY,_.w);_.S=GY.prototype;_.S.onClick=function(D){D=_.qz(D);D instanceof HTMLImageElement&&_.lE(this.hostElement,"yt-emoji-select",_.ki(this.emojiManager,D.id))};
_.S.openSelector=function(){this.ironOverlayBehavior.open()};
_.S.onDomChange=function(){HA5(this.ytEmojiSelectorBehavior)};
_.S.computeIsFamilySelector=function(D){var C;return(D==null?void 0:(C=D.emoji)==null?void 0:C.emojiId)==="\ud83d\udc6a"};
_.S.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var D=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];D&&D.emojiId&&(_.lE(this.hostElement,"yt-emoji-select",_.ki(this.emojiManager,D.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.$a.Object.defineProperties(GY.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,C,X,c;return this.emojiManager&&((C=this.data)==null?0:(X=C.emoji)==null?0:(c=X.variantIds)==null?0:c.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.ki(D.emojiManager,W)}).filter(function(W){return!!W}):[]}}});
GY.prototype.onClick=GY.prototype.onClick;_.V([_.m(_.$O),_.z("design:type",Object)],GY.prototype,"ironOverlayBehavior",void 0);_.V([_.m(Jt5),_.z("design:type",Object)],GY.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],GY.prototype,"data",void 0);_.V([_.n(),_.z("design:type",_.i9)],GY.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",Object)],GY.prototype,"scrollAction",void 0);_.V([_.n(),_.z("design:type",Object)],GY.prototype,"verticalAlign",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.z("design:type",Boolean)],GY.prototype,"isFamilySelector",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],GY.prototype,"emojiVariants",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],GY.prototype,"onClick",null);_.V([_.Yn({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],GY);
_.G(GY,"yt-emoji-variant-selector",function(){if(p4c===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;WTe===void 0&&(WTe=document.createElement("template"));var c=WTe;X.call(C,c.content.cloneNode(!0),D.content.firstChild);p4c=D}D=p4c;return D},{mode:2});var SR5=/:/g,Ujd=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Vd=function(){var D=_.w.apply(this,arguments)||this;D.emojiVariantSelector=null;D.emojiMultiPersonSelector=null;D.identity=_.nh;D.lastAnimationTime_=0;D.animationStart_=null;D.animationEnd_=null;return D};
_.h(Vd,_.w);_.S=Vd.prototype;
_.S.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}}};
_.S.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Qd)};
_.S.attached=function(){_.g1&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&zgg(this.emojiManager)};
_.S.dataChanged=function(){var D;if((D=this.data)==null?0:D.categories){D=this.emojiManager;var C=this.getCustomEmojiIds();D.pickerCustomEmojiIds=[].concat(_.VB(ZP5),_.VB(C))}};
_.S.getCustomEmojiIds=function(){var D,C=(D=this.data.categories)==null?void 0:D.find(function(p){var g;return((g=p.emojiPickerCategoryRenderer)==null?void 0:g.categoryId)&&Ujd.includes(p.emojiPickerCategoryRenderer.categoryId)}),X;
D=(X=this.data.categories)==null?void 0:X.find(function(p){return p.emojiPickerUpsellCategoryRenderer});
var c,W;return[C==null?void 0:(c=C.emojiPickerCategoryRenderer)==null?void 0:c.emojiIds,D==null?void 0:(W=D.emojiPickerUpsellCategoryRenderer)==null?void 0:W.emojiIds].flat().filter(function(p){return!!p})};
_.S.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.S.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.S.updateCategoriesAndPlaceholderInternal=function(D,C){var X=this;D&&C&&(this.categories=D.categories||[],this.categoryButtons=D.categoryButtons||[],this.resetPlaceholder(),this.search="",_.TA(function(){X.updateButtons_()}))};
_.S.computeId_=function(D){return D.id||""};
_.S.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(D){return D.emojiPickerCategoryRenderer&&D.emojiPickerCategoryRenderer.emojiData}):!1};
_.S.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.S.onShowEmojiVariantSelector=function(D){var C=D.detail.emojiData;C.variantIds&&C.variantIds.length&&(C.multiSelectorThumbnailRow&&C.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:C,target:D.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:C,target:D.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.S.onIronOverlayClosed=function(D){var C=jWJ(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");C&&D.composedPath&&(D.composedPath().includes(_.SY(this.hostElement).querySelector("#emoji-variant-selector"))||D.composedPath().includes(_.SY(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.DS(this.hostElement,"yt-close-emoji-variant-selector",[C.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.S.onEmojiVariantSelectorMouseup=function(D){var C=D.target.firstChild;this.variantSelectorOpened&&C&&_.TA(function(){C.noCancelOnOutsideClick=!1},100)};
_.S.onEmojiVariantSelectorMousedown=function(D){D=D.target.firstChild;this.variantSelectorOpened&&D&&(D.noCancelOnOutsideClick=!1)};
_.S.onSelectCategory_=function(D){var C=this.search!="";this.search="";for(var X=_.SY(this.hostElement).querySelector("#categories").children,c=0;c<X.length;c++){var W=X[c];if(W.id==D.detail.categoryId){C?(_.SY(this.hostElement).querySelector("#categories").scrollTop=W.offsetTop,this.updateButtons_()):(this.animationStart_=_.SY(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=W.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.S.onEmojiHover_=function(D){this.placeholder=D.detail.shortcuts?D.detail.shortcuts[0]:""};
_.S.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.S.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.S.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.S.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.S.computeSearchCategory_=function(D){D=D.replace(SR5,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();D=D.split(" ");for(var C=[],X=this.emojiManager.emojis,c=0;c<X.length;c++){var W=X[c];if(W.searchTerms)for(var p=0;p<W.searchTerms.length;p++){for(var g=W.searchTerms[p].toLocaleLowerCase(),a=!1,O=0;O<D.length;O++)if(g.indexOf(D[O])!=-1){a=!0;break}if(a&&(!W.isCustomEmoji||!W.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(W.emojiId))){C.push(W.emojiId);
break}}}return{categoryId:-1,emojiIds:C}};
_.S.computeSearchEmptyMessage_=function(D,C){return D&&C&&C.emojiIds&&C.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.S.computeSearching_=function(D){return this.emojiManager&&D.replace(SR5,"").length>1};
_.S.computeSkinToneHidden=function(){var D;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((D=this.data)==null||!D.hideSkinTonePicker)};
_.S.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.S.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.S.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.S.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.S.selectSkinTone_=function(D){D=Number(D.target.getAttribute("tone"));this.set("emojiManager.skinTone",D);_.DS(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[D]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.S.skinToneChanged_=function(){_.SY(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var D=_.SY(this.hostElement).querySelector("#dropdown-content").children,C=0;C<D.length;C++)C===this.skinTone?D[C].setAttribute("selected",""):D[C].removeAttribute("selected")};
_.S.animateScroll_=function(D){this.lastAnimationTime_||(this.lastAnimationTime_=D);D-=this.lastAnimationTime_;D<200?(_.SY(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*D/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.SY(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.S.searchChanged_=function(){this.updateButtons_()};
_.S.updateButtons_=function(){var D=null;if(!this.search)for(var C=_.SY(this.hostElement).querySelector("#categories").scrollTop,X=_.SY(this.hostElement).querySelector("#categories").children,c=0;c<X.length;c++){var W=X[c];W.offsetTop<=C&&(D=W.id)}C=_.SY(this.hostElement).querySelector("#category-buttons").children;for(X=0;X<C.length;X++)c=C[X],c.active=c.id===D};
Vd.prototype.searchChanged_=Vd.prototype.searchChanged_;Vd.prototype.skinToneChanged_=Vd.prototype.skinToneChanged_;Vd.prototype.onEmojiHover_=Vd.prototype.onEmojiHover_;Vd.prototype.onSelectCategory_=Vd.prototype.onSelectCategory_;Vd.prototype.onShowEmojiVariantSelector=Vd.prototype.onShowEmojiVariantSelector;Vd.prototype.updateCategoriesAndPlaceholder_=Vd.prototype.updateCategoriesAndPlaceholder_;Vd.prototype.dataChanged=Vd.prototype.dataChanged;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Vd.prototype,"data",void 0);_.V([_.n({value:function(){return[]}}),
_.z("design:type",Array)],Vd.prototype,"categories",void 0);_.V([_.n({value:function(){return[]}}),
_.z("design:type",Array)],Vd.prototype,"categoryButtons",void 0);_.V([_.n({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Vd.prototype,"disableScroll",void 0);_.V([_.n({computed:"computeId_(data)",reflectToAttribute:!0}),_.z("design:type",String)],Vd.prototype,"id",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Vd.prototype,"selected",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Vd.prototype,"disableIncrementalLoading",void 0);_.V([_.n(),_.z("design:type",String)],Vd.prototype,"placeholder",void 0);_.V([_.n({value:""}),_.z("design:type",String)],Vd.prototype,"search",void 0);_.V([_.n({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Vd.prototype,"searching",void 0);_.V([_.n({computed:"computeSearchCategory_(search)"}),_.z("design:type",Object)],Vd.prototype,"searchCategory",void 0);
_.V([_.n({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.z("design:type",Object)],Vd.prototype,"searchEmptyMessage",void 0);_.V([_.n({computed:"identity(emojiManager.skinTone)"}),_.z("design:type",Number)],Vd.prototype,"skinTone",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Vd.prototype,"skinToneOpened",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Vd.prototype,"variantSelectorOpened",void 0);
_.V([_.n({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.z("design:type",Boolean)],Vd.prototype,"skinToneHidden",void 0);_.V([_.n(),_.z("design:type",_.i9)],Vd.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",Object)],Vd.prototype,"emojiVariantSelector",void 0);_.V([_.n(),_.z("design:type",Object)],Vd.prototype,"emojiMultiPersonSelector",void 0);
_.V([_.n({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.z("design:type",Boolean)],Vd.prototype,"shouldUseStickyPreferences",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vd.prototype,"dataChanged",null);_.V([_.vr("data","selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vd.prototype,"updateCategoriesAndPlaceholder_",null);
_.V([_.$n("yt-show-emoji-variant-selector"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Vd.prototype,"onShowEmojiVariantSelector",null);_.V([_.$n("yt-emoji-picker-select-category"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Vd.prototype,"onSelectCategory_",null);_.V([_.$n("yt-emoji-hover"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Vd.prototype,"onEmojiHover_",null);
_.V([_.vr("skinTone"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vd.prototype,"skinToneChanged_",null);_.V([_.vr("search"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vd.prototype,"searchChanged_",null);_.V([_.Yn({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Vd);
_.G(Vd,"yt-emoji-picker-renderer",function(){if(X4M===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;CrN===void 0&&(CrN=document.createElement("template"));var c=CrN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);X4M=D}D=X4M;return D},{mode:2});var TY=function(){var D=_.w.apply(this,arguments)||this;D.emojiManager=_.Qd;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.selectedIndex=1;D.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return D};
_.h(TY,_.w);_.S=TY.prototype;_.S.handleEmojiCustomizationVisible=function(D){this.emojiPickerRenderer.selected=D;this.selectedIndex=1;D?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.S.emojiCustomizationSetChanged=function(){var D;(D=this.data)!=null&&D.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.lt(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.S.updateSaveButtonState=function(D){var C;(C=this.data)!=null&&C.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.bK("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:D}))};
_.S.emojiUrl=function(D){D=_.ki(this.emojiManager,D);if(!D)return"";var C;D=(C=D.image)==null?void 0:C.thumbnails;return _.XA(D,24)||""};
_.S.emojiAlt=function(D){var C=_.ki(this.emojiManager,D);if(!C)return D;var X,c,W,p=(C==null?void 0:(X=C.image)==null?void 0:(c=X.accessibility)==null?void 0:(W=c.accessibilityData)==null?void 0:W.label)||"";return p?p:C.isCustomEmoji?C.shortcuts[0]:C.emojiId||D};
_.S.emojiAriaLabel=function(D){var C,X;return((C=_.ki(this.emojiManager,D))==null?void 0:(X=C.shortcuts)==null?void 0:X[0])||D};
_.S.onEmojiClick=function(D){D.model.index!==0&&(this.selectedIndex=D.model.index)};
_.S.onEmojiSelect=function(D){D=D.detail;var C,X;((C=this.data)==null?0:C.emojiCustomizationSetEntityKey)&&((X=this.emojiCustomizationSet)==null?0:X.emojiId)&&D.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.bK("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)}))};
_.S.canEditEmoji=function(D,C,X){D=D.indexOf(C);return D===X||D===0||X===0?!1:!0};
_.S.getUpdatedEmojiIdList=function(D,C,X){var c=D.indexOf(C);D=[].concat(_.VB(D));c>=0&&(D[c]=D[X]);D[X]=C;return D};
_.$a.Object.defineProperties(TY,{template:{configurable:!0,enumerable:!0,get:function(){if(Lfb===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;xTx===void 0&&(xTx=document.createElement("template"));var c=xTx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Lfb=D}D=Lfb;return D}}});
TY.prototype.onEmojiSelect=TY.prototype.onEmojiSelect;_.V([_.m(_.as),_.z("design:type",Object)],TY.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],TY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.kn("yt-emoji-picker-renderer"),_.z("design:type",Object)],TY.prototype,"emojiPickerRenderer",void 0);
_.V([_.n({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(D,C){return _.aI(D.entities,"emojiCustomizationSetEntity",C)},
observer:"emojiCustomizationSetChanged"}),_.z("design:type",Object)],TY.prototype,"emojiCustomizationSet",void 0);_.V([_.n(),_.z("design:type",Object)],TY.prototype,"originalEmojiSet",void 0);_.V([_.n(),_.z("design:type",_.i9)],TY.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",Object)],TY.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],TY.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",Object)],TY.prototype,"selectedIndex",void 0);
_.V([_.$n("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],TY.prototype,"onEmojiSelect",null);_.V([_.Yn({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],TY);var gVe;var aMC;var IMg;var O$f;var Hk=function(){var D=_.w.apply(this,arguments)||this;D.authorBadges=[];return D};
_.h(Hk,_.w);_.S=Hk.prototype;_.S.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.S.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]]"}}}}}};
_.S.dataChanged=function(){var D=Urm(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",D)};
_.S.updateMessage=function(){var D=this.data.message,C=_.SY(_.SY(this.hostElement).querySelector("#message"));C.textContent="";D&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.S.shouldSupportWholeItemClick=function(){return!0};
_.S.onShowOriginalClick=function(D){D.preventDefault();this.showOriginal=!0};
_.S.computeShowBar=function(D,C,X){return D&&C||X};
_.S.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.S.computeAuthorIsOwner=function(D){return!!g$r(D.authorBadges,"owner")};
_.S.computeAuthorNameColor=function(D){var C;if(_.b("live_chat_author_name_color_usernames")&&(D==null?0:(C=D.authorName)==null?0:C.simpleText))return _.$r3(_.v$d(D.authorName.simpleText));if(_.b("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.$r3(_.S6(D.authorSeedColorArgb));if(_.b("live_chat_colored_usernames"))return"#cc0000";var X;return _.b("live_chat_simple_color_usernames")&&(D==null?0:(X=D.authorName)==null?0:X.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.S6(D.authorUsernameColorDark):_.S6(D.authorUsernameColorLight):""};
Hk.prototype.updateMessage=Hk.prototype.updateMessage;Hk.prototype.dataChanged=Hk.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],Hk.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Hk.prototype,"data",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"showOriginal",void 0);_.V([_.n({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"isDimmed",void 0);_.V([_.n({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"showBar",void 0);
_.V([_.n({computed:"computeAuthorBadges(data)"}),_.z("design:type",Array)],Hk.prototype,"authorBadges",void 0);_.V([_.n({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"authorIsOwner",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"inCollapsedBanner",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"inBanner",void 0);
_.V([_.n({value:_.b("live_chat_hide_avatars"),reflectToAttribute:!0}),_.z("design:type",Boolean)],Hk.prototype,"avatarHidden",void 0);_.V([_.n({computed:"computeAuthorNameColor(data)"}),_.z("design:type",String)],Hk.prototype,"authorNameColor",void 0);_.V([_.n(),_.z("design:type",_.h$)],Hk.prototype,"participantsManager",void 0);_.V([_.n({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.z("design:type",Object)],Hk.prototype,"filledButtonOverrides",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hk.prototype,"dataChanged",null);_.V([_.vr("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hk.prototype,"updateMessage",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Hk);
_.G(Hk,"yt-live-chat-text-message-renderer",function(){if(O$f===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;IMg===void 0&&(IMg=document.createElement("template"));var c=IMg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);O$f=D}D=O$f;return D},{mode:0});var J$=function(){var D=_.w.apply(this,arguments)||this;D.tonalButtonOverrides={type:"tonal",style:"overlay"};return D};
_.h(J$,_.w);
J$.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]]"}}}}}};
J$.prototype.shouldSupportInlineActionButtons=function(){return!0};
J$.prototype.shouldSupportWholeItemClick=function(){return!0};
_.$a.Object.defineProperties(J$.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],J$.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],J$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",_.h$)],J$.prototype,"participantsManager",void 0);
_.V([_.n(),_.z("design:type",Object)],J$.prototype,"tonalButtonOverrides",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.infoDialogButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],J$.prototype,"hasInfoDialogButton",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],J$);
_.G(J$,"yt-live-chat-auto-mod-message-renderer",function(){if(aMC===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;gVe===void 0&&(gVe=document.createElement("template"));var c=gVe;X.call(C,c.content.cloneNode(!0),D.content.firstChild);aMC=D}D=aMC;return D},{mode:0});var AJc;var Prc;var $jM;var vVg=function(){return _.w.apply(this,arguments)||this};
_.h(vVg,_.w);_.V([_.n(),_.z("design:type",Object)],vVg.prototype,"data",void 0);_.V([_.yj({is:"ytd-factoid-renderer",disableElementRegistration:!0})],vVg);
_.G(vVg,"ytd-factoid-renderer",function(){if($jM!==void 0)return $jM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $jM=D},{mode:1});var zY=function(){return _.w.apply(this,arguments)||this};
_.h(zY,_.w);zY.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.V([_.n(),_.z("design:type",Object)],zY.prototype,"data",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],zY);
_.G(zY,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Prc===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;AJc===void 0&&(AJc=document.createElement("template"));var c=AJc;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Prc=D}D=Prc;return D},{mode:0});var i$J;var kFd;var ju=function(){return _.w.apply(this,arguments)||this};
_.h(ju,_.w);ju.prototype.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Boolean)],ju.prototype,"menuFocused",void 0);_.V([_.n(),_.z("design:type",Object)],ju.prototype,"data",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],ju.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],ju);
_.G(ju,"yt-live-chat-donation-announcement-renderer",function(){if(kFd===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;i$J===void 0&&(i$J=document.createElement("template"));var c=i$J;X.call(C,c.content.cloneNode(!0),D.content.firstChild);kFd=D}D=kFd;return D},{mode:0});var uPx;var QyC,BNN=function(){if(QyC!==void 0)return QyC;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;uPx===void 0&&(uPx=document.createElement("template"));var c=uPx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return QyC=D};var MM=function(){return _.w.apply(this,arguments)||this};
_.h(MM,_.w);_.$a.Object.defineProperties(MM,{template:{configurable:!0,enumerable:!0,get:function(){return BNN()}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],MM.prototype,"data",void 0);_.V([_.Yn({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],MM);_.G(MM,"yt-live-chat-empty-feed-view-model",function(){return BNN()},{mode:0});var b$q;var rJN;var qM=function(){return _.w.apply(this,arguments)||this};
_.h(qM,_.w);qM.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"}}}}}};
_.$a.Object.defineProperties(qM.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var D,C;return{runs:[{text:(D=this.data)==null?void 0:(C=D.channelName)==null?void 0:C.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var D=[],C;if((C=this.data)==null||!C.channelBadges)return D;var X;C=_.U((X=this.data)==null?void 0:X.channelBadges);for(X=C.next();!X.done;X=C.next()){X=_.r(X.value,QdJ);var c=void 0,W=void 0;if((c=X)==null?0:(W=c.badgeImage)==null?0:W.sources)c=void 0,W={liveChatAuthorBadgeRenderer:{tooltip:X.tooltip,accessibility:{accessibilityData:{label:(c=_.r(X.rendererContext,_.by))==null?void 0:c.label}}}},X.badgeImage.sources[0].clientResource?W.liveChatAuthorBadgeRenderer.icon=
{iconType:X.badgeImage.sources[0].clientResource.imageName}:W.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:X.badgeImage.sources},D.push(W)}return D}}});
_.V([_.n(),_.z("design:type",Object)],qM.prototype,"data",void 0);_.V([_.e("data.channelName"),_.z("design:type",Object),_.z("design:paramtypes",[])],qM.prototype,"channelName",null);_.V([_.e("data.channelBadges"),_.z("design:type",Array),_.z("design:paramtypes",[])],qM.prototype,"channelBadges",null);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],qM);
_.G(qM,"yt-live-chat-identity-view-model",function(){if(rJN===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;b$q===void 0&&(b$q=document.createElement("template"));var c=b$q;X.call(C,c.content.cloneNode(!0),D.content.firstChild);rJN=D}D=rJN;return D},{mode:0});var KTf;var htc;var xj5;var LTN;var fz=function(){var D=_.w.apply(this,arguments)||this;D.hidden=!1;D.supportsInlineActionButtons=!0;return D};
_.h(fz,_.w);fz.prototype.ready=function(){var D;((D=document.querySelector("yt-live-chat-app"))==null?0:D.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
fz.prototype.dataChanged=function(D){var C=(0,_.Io)(_.SY(this.hostElement).querySelector("#detail-text"));C.textContent="";(D==null?0:D.detailText)&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D.detailText))};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],fz.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({observer:"dataChanged"}),_.z("design:type",Object)],fz.prototype,"data",void 0);
_.V([_.n({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.z("design:type",Object)],fz.prototype,"hidden",void 0);_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],fz);
_.G(fz,"yt-live-chat-legacy-paid-message-renderer",function(){if(LTN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;xj5===void 0&&(xj5=document.createElement("template"));var c=xj5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);LTN=D}D=LTN;return D},{mode:0});var syx;var mj5;var etg={},dy=function(){return _.Qj.apply(this,arguments)||this};
_.h(dy,_.Qj);dy.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
dy.prototype.onLiveChatMembershipItemBehaviorClick=dy.prototype.onLiveChatMembershipItemBehaviorClick;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dy.prototype,"data",void 0);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],dy.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.V([_.Br()],dy);
etg.YtLiveChatMembershipItemBehavior=[dy.prototype,_.f.YtRendererBehavior];var R1=function(){var D=_.w.apply(this,arguments)||this;D.supportsInlineActionButtons=!0;D.hasPrimaryHeaderText=!1;D.showOnlyHeader=!1;D.authorBadges=[];D.modern=_.b("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.h(R1,_.w);_.S=R1.prototype;_.S.shouldSupportInlineActionButtons=function(){return!0};
_.S.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.S.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.S.messageChanged=function(){var D=this.data.message,C=(0,_.Io)(_.SY(this.hostElement).querySelector("#message"));C.textContent="";D&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.S.computeHasPrimaryHeaderText=function(D){return!(!D||!D.headerPrimaryText)};
_.S.computeShowOnlyHeader=function(D,C){return this.isMessageEmpty(D,C)};
_.S.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.S.isMessageEmpty=function(D,C){return!D||D.empty?!0:!D.message&&!D.inputField&&!C};
_.S.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.S.getInputElement=function(){return _.SY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.S.inputFocus=function(){var D=this.getInputElement();D&&D.focus()};
_.S.inputInsertEmoji=function(D){var C=this.getInputElement();C&&C.insertEmoji(D)};
_.S.inputMessage=function(){var D=this.getInputElement();return D&&this.data.inputField?(D.completeEmojis(),_.Z5(D.liveChatRichMessageInput)):null};
_.S.onFooterButtonClick=function(){this.data.footerButton&&_.lE(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.S.shouldSupportWholeItemClick=function(){return!0};
R1.prototype.isDeletedChanged=R1.prototype.isDeletedChanged;R1.prototype.messageChanged=R1.prototype.messageChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],R1.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(etg.YtLiveChatMembershipItemBehavior),_.z("design:type",Object)],R1.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],R1.prototype,"data",void 0);_.V([_.n({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.z("design:type",Object)],R1.prototype,"hasPrimaryHeaderText",void 0);_.V([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.z("design:type",Object)],R1.prototype,"showOnlyHeader",void 0);
_.V([_.n({computed:"computeAuthorBadges(data)"}),_.z("design:type",Array)],R1.prototype,"authorBadges",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],R1.prototype,"modern",void 0);_.V([_.vr("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R1.prototype,"messageChanged",null);_.V([_.vr("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R1.prototype,"isDeletedChanged",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],R1);
_.G(R1,"yt-live-chat-membership-item-renderer",function(){if(mj5===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;syx===void 0&&(syx=document.createElement("template"));var c=syx;X.call(C,c.content.cloneNode(!0),D.content.firstChild);mj5=D}D=mj5;return D},{mode:0});var EVN;var tFb;var l9=function(){return _.w.apply(this,arguments)||this};
_.h(l9,_.w);l9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],l9.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],l9);
_.G(l9,"yt-live-chat-mode-change-message-renderer",function(){if(tFb===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;EVN===void 0&&(EVN=document.createElement("template"));var c=EVN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);tFb=D}D=tFb;return D},{mode:0});var NNd;var YRd;var DQ=function(){return _.w.apply(this,arguments)||this};
_.h(DQ,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],DQ.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DQ.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],DQ);
_.G(DQ,"yt-live-chat-moderation-message-renderer",function(){if(YRd===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;NNd===void 0&&(NNd=document.createElement("template"));var c=NNd;X.call(C,c.content.cloneNode(!0),D.content.firstChild);YRd=D}D=YRd;return D},{mode:0});var yJJ;var nVx;var Cu=function(){return _.w.apply(this,arguments)||this};
_.h(Cu,_.w);Cu.prototype.onClick=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var C;_.I3.instance.resolveCommand((C=this.data)==null?void 0:C.onClickCommand)}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],Cu.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],Cu.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Cu.prototype,"data",void 0);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Cu);
_.G(Cu,"yt-live-chat-offer-click-count-message-renderer",function(){if(nVx===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;yJJ===void 0&&(yJJ=document.createElement("template"));var c=yJJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);nVx=D}D=nVx;return D},{mode:0});var w4x;var FT5=function(){return _.w.apply(this,arguments)||this};
_.h(FT5,_.w);_.V([_.n(),_.z("design:type",Object)],FT5.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],FT5);
_.G(FT5,"yt-live-chat-placeholder-item-renderer",function(){if(w4x===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);w4x=D}D=w4x;return D},{mode:0});var Z$c;var GFq;var VFJ=new z1(7),Xu=function(){var D=_.w.apply(this,arguments)||this;D.data={};return D};
_.h(Xu,_.w);Xu.prototype.dataChanged=function(){var D;((D=this.data)==null?0:D.class)&&_.gi(this.hostElement,this.data.class,!0);var C;((C=this.oldData)==null?0:C.class)&&_.gi(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Xu.prototype.computeTimestampString=function(D){return VFJ.format(new Date(D/1E3))};
Xu.prototype.dataChanged=Xu.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],Xu.prototype,"data",void 0);_.V([_.n({computed:"computeTimestampString(data.timestampUsec)"}),_.z("design:type",String)],Xu.prototype,"timestampString",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xu.prototype,"dataChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Xu);
_.G(Xu,"yt-live-chat-server-error-message",function(){if(GFq===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Z$c===void 0&&(Z$c=document.createElement("template"));var c=Z$c;X.call(C,c.content.cloneNode(!0),D.content.firstChild);GFq=D}D=GFq;return D},{mode:0});var TNq;var H$e;var c9=function(){var D=_.w.apply(this,arguments)||this;D.defaultToFilledIcon=!1;return D};
_.h(c9,_.w);c9.prototype.computeHasPrimaryColorIcon=function(D){return D==="SPARK"||D==="SPONSORSHIP_STAR"};
c9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],c9.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],c9.prototype,"defaultToFilledIcon",void 0);_.V([_.n(),_.z("design:type",Object)],c9.prototype,"data",void 0);
_.V([_.n({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.z("design:type",Boolean)],c9.prototype,"hasPrimaryColorIcon",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],c9);
_.G(c9,"yt-live-chat-viewer-engagement-message-renderer",function(){if(H$e===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;TNq===void 0&&(TNq=document.createElement("template"));var c=TNq;X.call(C,c.content.cloneNode(!0),D.content.firstChild);H$e=D}D=H$e;return D},{mode:0});var JJk;var oL=function(){var D=_.w.apply(this,arguments)||this;D.modernUpdate=!1;D.buttonStyle="overlay";D.buttonType="filled";return D};
_.h(oL,_.w);oL.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
oL.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oL.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oL.prototype,"modernUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],oL.prototype,"buttonStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],oL.prototype,"buttonType",void 0);
_.V([_.yj({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],oL);
_.G(oL,"ytd-ad-hover-text-button-renderer",function(){if(JJk!==void 0)return JJk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JJk=D},{mode:1});var ztb;var W9=function(){var D=_.w.apply(this,arguments)||this;D.buttonOverrides={size:"XS"};return D};
_.h(W9,_.w);W9.prototype.onHelpTap=function(D){this.data&&this.data.informationDialog&&(_.lE(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),D.preventDefault(),D.stopPropagation())};
_.V([_.n(),_.z("design:type",Object)],W9.prototype,"buttonOverrides",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],W9.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],W9);
_.G(W9,"ytd-live-chat-purchased-product-message-renderer",function(){if(ztb!==void 0)return ztb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ztb=D},{mode:1});var jyN;var MFb;var pu=function(){var D=_.w.apply(this,arguments)||this;D.isContainerDeleted=!1;return D};
_.h(pu,_.w);pu.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
pu.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))};
pu.prototype.isContainerDeletedChanged=pu.prototype.isContainerDeletedChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],pu.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pu.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],pu.prototype,"isContainerDeleted",void 0);
_.V([_.n(),_.z("design:type",String)],pu.prototype,"deletedStateMessage",void 0);_.V([_.vr("isContainerDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pu.prototype,"isContainerDeletedChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],pu);
_.G(pu,"ytd-sponsorships-live-chat-header-renderer",function(){if(MFb!==void 0)return MFb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return MFb=D},{mode:1});var Sv=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.h(Sv,_.w);Sv.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]]"}}}}}};
Sv.prototype.onCtaButtonClick=function(){var D,C=_.r((D=this.data)==null?void 0:D.optInPrompt,_.AF);if(D=this.maybeGetButtonCommand(C)){var X;(X=_.iO())==null||X.clickCommand(D)}};
Sv.prototype.maybeGetButtonCommand=function(D){return!D||!D.command||_.r(D.command,ocC)===void 0&&_.r(D.command,cbM)===void 0?null:D.command};
Sv.prototype.shouldHideOptinPrompt=function(D,C){return!D||C};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],Sv.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Sv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Sv.prototype,"modern",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Sv);
_.G(Sv,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(jyN!==void 0)return jyN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return jyN=D},{mode:1});var qRx;var UA=function(){return _.w.apply(this,arguments)||this};
_.h(UA,_.w);UA.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
UA.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))};
UA.prototype.isDeletedChanged=UA.prototype.isDeletedChanged;_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],UA.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UA.prototype,"data",void 0);_.V([_.vr("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UA.prototype,"isDeletedChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],UA);
_.G(UA,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(qRx!==void 0)return qRx;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qRx=D},{mode:1});var gv=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return D};
_.h(gv,_.w);_.S=gv.prototype;
_.S.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"}}}};
_.S.handleLiveChatAction=function(D){_.r(D,VTq)?this.handleMarkChatItemAsDeletedAction(_.r(D,VTq)):_.r(D,GSd)&&this.handleRemoveChatItemAction(_.r(D,GSd))};
_.S.handleLiveChatActions=function(D){D.forEach(this.handleLiveChatAction,this)};
_.S.handleMarkChatItemAsDeletedAction=function(D){var C=this,X;((X=this.data)==null?0:X.items)&&this.data.items.forEach(function(c,W){var p=Object.keys(c)[0];Object.values(c)[0].id===D.targetItemId&&C.markAsDeleted("data.items",W,p,D.deletedStateMessage,D.showOriginalContentMessage)})};
_.S.handleRemoveChatItemAction=function(D){var C=this,X;((X=this.data)==null?0:X.items)&&this.data.items.forEach(function(c,W){Object.values(c)[0].id===D.targetItemId&&C.splice("data.items",W,1)})};
_.S.markAsDeleted=function(D,C,X,c,W){D=[D,C,X].join(".");this.set(D+".deletedStateMessage",c);this.set(D+".showOriginalContentMessage",W)};
_.V([_.n(),_.z("design:type",Object)],gv.prototype,"data",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],gv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],gv);
_.G(gv,"yt-live-chat-item-display-list-renderer",function(){if(htc===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;KTf===void 0&&(KTf=document.createElement("template"));var c=KTf;X.call(C,c.content.cloneNode(!0),D.content.firstChild);htc=D}D=htc;return D},{mode:0});var fMk;var djx,Rte=function(){if(djx!==void 0)return djx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;fMk===void 0&&(fMk=document.createElement("template"));var c=fMk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return djx=D};var aL=function(){var D=_.w.apply(this,arguments)||this;D.isHeader=!1;return D};
_.h(aL,_.w);aL.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.$a.Object.defineProperties(aL,{template:{configurable:!0,enumerable:!0,get:function(){return Rte()}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],aL.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],aL.prototype,"isHeader",void 0);_.V([_.Yn({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],aL);_.G(aL,"yt-live-chat-item-display-renderer",function(){return Rte()},{mode:0});var lMC,DZq,Wcx,oWg;
lMC={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}};DZq={home:"eohps",search:"eosps",watch:"eowps"};_.C74=["watch","search","home"];
_.IL=function(){this.JSC$14577_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14577_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.q6("PRECONSTRUCTION_DELAY",0);this.signals_=_.uP();this.targetPage_=""};
_.IL.prototype.init=function(D,C){D=D===void 0?"":D;C=C===void 0?null:C;if(this.JSC$14577_isInitialized_)this.abort();else if(this.JSC$14577_isInitialized_=!0,D&&_.XUJ(this,D),C){var X=_.Q4(this.signals_,"pcl")?0:10,c=function(){for(var W=0,p;p=_.C74[W++];)p!=D&&p!=C&&this.pendingPages_.push(p);_.cQe(this)}.bind(this);
this.signals_.parkOrScheduleJob(c,X,"pcl")}};
_.IL.prototype.abort=function(){this.fragmentJobId_&&(_.qX.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);oWg(this)};
_.XUJ=function(D,C){D.JSC$14577_isInitialized_&&!D.targetPage_&&(D.targetPage_=C,Wcx(D,C),D.isInitialPass_=!1,Wcx(D,C),D.signals_.processSignal(DZq[D.targetPage_]),oWg(D),_.cQe(D))};
_.cQe=function(D){D.pendingPages_.length&&!D.pagePreparerJobId_&&(D.pagePreparerJobId_=_.Zo(_.qX,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.XUJ(this,this.pendingPages_.shift())}.bind(D),D.DEFAULT_DELAY_))};
Wcx=function(D,C){if(C=lMC[C])for(var X in C){var c=!1,W=X;X.charAt(0)=="~"&&(c=!0,W=X.substring(1));var p=C[X];p=typeof p=="object"?p:{count:p};C[X]=p;p.componentName=W;p.count>0&&(D.isInitialPass_?c||D.isSeenDuringInitialPass_[W]||(D.JSC$14577_queue_.push({componentName:W,count:1,signals:p.signals}),D.isSeenDuringInitialPass_[W]=!0,p.count--):D.JSC$14577_queue_.push(p))}};
oWg=function(D){D.JSC$14577_queue_.length=0;D.targetPage_="";D.isInitialPass_=!0;D.signals_.processSignal("eop")};
_.IL.getInstance=function(){return _.ly(_.IL)};var pU5=function(){this.signals=_.uP();this.init()};
pU5.prototype.startPreconstruction=function(){_.IL.getInstance().init(_.dq("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
pU5.prototype.init=function(){SoJ(this);window.Polymer&&AZM&&CeZ();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var D=_.co.ytcsi;if(D&&D.gt&&(D=D.gt())&&D.tick&&(D.tick.aft>0||D.tick.pbs>0)&&(_.dq("IS_HOMEPAGE_COLD")||_.dq("IS_RESULTS_PAGE_COLD")||_.dq("IS_WATCH_PAGE_COLD"))){UZq(this);break a}TLm(Hor,this.onNotifications,this)}};
var SoJ=function(D){var C=function(){D.signals.processSignal("dl")};
document.readyState==="complete"?(_.CC(Error("th"),"WARNING"),C()):_.k2m(window,"load",C)};
pU5.prototype.onNotifications=function(D){D.timer||(_.dq("IS_HOMEPAGE_COLD")||_.dq("IS_RESULTS_PAGE_COLD")||_.dq("IS_WATCH_PAGE_COLD"))&&UZq(this)};
var UZq=function(D){D.signals.parkOrScheduleJob(function(){D.signals.processSignal("eocs")},10,"eor")};
new pU5;var gW5=function(){return _.Qj.apply(this,arguments)||this};
_.h(gW5,_.Qj);_.$a.Object.defineProperties(gW5.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_entity_store_from_dependency_injection")?_.qw():_.fe()}}});
_.V([_.Br()],gW5);_.OA=[XC.prototype,gW5.prototype];var aj4=["ytd-rich-shelf-renderer"],Ab=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;D.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";D.followUpDialogPromise=null;D.followUpDialogPromiseResolve=null;D.followUpDialogPromiseReject=null;return D};
_.h(Ab,_.Qj);_.S=Ab.prototype;_.S.dismissibleItemIsDismissedChanged_=function(D){_.b("kevlar_fluid_dismiss")&&(D?_.lE(this.hostElement,"yt-dismissible-item-dismissed"):_.lE(this.hostElement,"yt-dismissible-item-undismissed"))};
_.S.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.S.dismissibleItemReset_=function(){var D=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 _.mM(function(C,X){D.followUpDialogPromiseResolve=C;D.followUpDialogPromiseReject=X});
_.lE(this.hostElement,"yt-enable-lockup-interaction")};
_.S.dismissibleItemOnYtServiceRequestSent_=function(D,C){C.actions&&this.dismissibleItemProcessActions(C.actions,D)};
_.S.dismissibleItemOnRequestSent=function(D){for(var C=_.U(D.detail),X=C.next();!X.done;X=C.next()){var c=void 0;(X=(c=_.r(X.value,_.Up))==null?void 0:c.actions)&&this.dismissibleItemProcessActions(X,D)}};
_.S.dismissibleItemOnCommandSent=function(D,C){C&&this.dismissibleItemProcessActions(C,D)};
_.S.setAndGetDismissedContentId=function(D){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+D};
_.S.replayDismissAction=function(D){this.dismissibleItemProcessActions([D])};
_.S.dismissibleItemProcessActions=function(D,C){for(var X=0;X<D.length;X++){var c=D[X],W=void 0;((W=_.r(c,_.pt))==null?0:W.commands)&&this.dismissibleItemProcessActions(_.r(c,_.pt).commands,C);if(_.r(c,_.zS)){if(W=_.r(c,_.zS),!W.replaceParentSection||aj4.includes(this.hostElement.nodeName.toLowerCase()))W.groupDismissal&&Ffm(this,W.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(W),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.bK("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:c})),c=void 0,(c=C)==null||c.stopPropagation()}else if(_.r(c,YL5))this.dismissibleItemHandleHideEnclosingAction_(),c=void 0,(c=C)==null||c.stopPropagation();else if(_.r(c,W_q))c=_.r(c,W_q),W=void 0,((W=c)==null?0:W.targetGroupId)&&Ffm(this,{targetGroupId:c.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.bK("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
c=void 0,(c=C)==null||c.stopPropagation();else if(_.r(c,_.Up))(c=_.r(c,_.Up).actions)&&_.o7(this.hostElement,c,this.hostElement),c=void 0,(c=C)==null||c.stopPropagation();else{var p=W=void 0;((W=_.r(c,_.Xf))==null?void 0:W.signal)!=="TELL_US_WHY"||((p=_.r(c,_.Xf))==null?0:p.targetId)&&_.b("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),c=void 0,(c=C)==null||c.stopPropagation())}}};
_.S.dismissibleItemOnYtServiceRequestCompleted_=function(D,C){var X=this.get("feedbackResponses.0.followUpDialog",C.data);X?this.followUpDialogPromiseResolve(X):C.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(C.actions,D)};
_.S.dismissibleItemHandleReplaceEnclosingAction_=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0;var C=null;(C=_.SY(this.hostElement).querySelector("#dismissed"))&&_.A0(this,function(){_.Ii(C)});
_.lE(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.S.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.S.dismissibleItemHandleUndoFeedbackAction_=function(){_.lE(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.S.dismissibleItemHandleTellUsWhySignalAction_=function(){var D=this;this.followUpDialogPromise.then(function(C){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:C}})})};
Ab.prototype.dismissibleItemOnYtServiceRequestCompleted_=Ab.prototype.dismissibleItemOnYtServiceRequestCompleted_;Ab.prototype.dismissibleItemOnCommandSent=Ab.prototype.dismissibleItemOnCommandSent;Ab.prototype.dismissibleItemOnRequestSent=Ab.prototype.dismissibleItemOnRequestSent;Ab.prototype.dismissibleItemOnYtServiceRequestSent_=Ab.prototype.dismissibleItemOnYtServiceRequestSent_;Ab.prototype.dismissibleItemDataChanged_=Ab.prototype.dismissibleItemDataChanged_;
Ab.prototype.dismissibleItemIsDismissedChanged_=Ab.prototype.dismissibleItemIsDismissedChanged_;_.V([_.m(_.eu),_.z("design:type",Object)],Ab.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Ab.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ab.prototype,"isDismissed",void 0);_.V([_.n(),_.z("design:type",Object)],Ab.prototype,"dismissedRenderer",void 0);
_.V([_.vr("isDismissed"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],Ab.prototype,"dismissibleItemIsDismissedChanged_",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ab.prototype,"dismissibleItemDataChanged_",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Ab.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.V([_.$n("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ab.prototype,"dismissibleItemOnRequestSent",null);
_.V([_.$n("yt-dismissible-item-action"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Array]),_.z("design:returntype")],Ab.prototype,"dismissibleItemOnCommandSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],Ab.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.V([_.Br()],Ab);_.P9=[_.eu,_.OA,Ab.prototype];var $c=function(){var D=_.Qj.apply(this,arguments)||this;D.disableGridStateAware=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};D.currentGridClass="";return D};
_.h($c,_.Qj);$c.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.A0(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var D=this.gridStateAwareGetElement();_.gi(D,"grid",!0)}};
$c.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
$c.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.SY(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
$c.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var D="grid-disabled";else{D=_.wR.getInstance();var C=this.get("pageSubtype");D=C&&ksf.includes(C)?"grid-disabled":D.currentSnapState_?D.currentSnapState_.className:null}(C=this.gridStateAwareGetElement())&&D!==this.currentGridClass&&(D&&_.gi(C,D,!0),this.currentGridClass&&_.gi(C,this.currentGridClass,!1),this.currentGridClass=D)};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],$c.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",String)],$c.prototype,"gridStateAwareSizingElementSelector",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$c.prototype,"disableGridStateAware",void 0);_.V([_.Br()],$c);_.v9=[$c.prototype,_.Jy.YtActionHandlerBehavior];_.iC=new _.P6("GUIDE_TOKEN");var uC;_.kc={};uC=function(){var D=_.Qj.apply(this,arguments)||this;D.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 D};
_.h(uC,_.Qj);_.S=uC.prototype;_.S.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.S.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var D=_.iX().resolve(_.vK(_.iC));D&&(this.guidePersistentAndVisible=D.getGuidePersistentAndVisible(),this.activeEndpoint=D.getActiveEndpoint(),this.guideOpened=D.getGuideOpened(),this.miniGuideVisible=D.getMiniGuideVisible())};
_.S.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.S.handleGuideStateAction=function(D){this.guidePersistentAndVisible=D};
_.S.handleMiniGuideStateAction=function(D){this.miniGuideVisible=D};
_.S.handleGuideOpenedAction=function(D){this.guideOpened=D};
_.S.handleActiveEndpointAction=function(D){this.activeEndpoint=D};
uC.prototype.onActiveEndpointChange=uC.prototype.onActiveEndpointChange;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],uC.prototype,"guidePersistentAndVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],uC.prototype,"miniGuideVisible",void 0);_.V([_.n(),_.z("design:type",Object)],uC.prototype,"activeEndpoint",void 0);
_.V([_.vr("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uC.prototype,"onActiveEndpointChange",null);_.V([_.n(),_.z("design:type",Boolean)],uC.prototype,"guideOpened",void 0);_.V([_.Br()],uC);_.kc.YtdGuideStateAwareBehavior=[];_.kc.YtdGuideStateAwareBehavior.push(uC.prototype,_.Jy.YtActionHandlerBehavior);var Ijc=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],QA=function(){var D=_.Qj.apply(this,arguments)||this;D.hoverJobId=0;D.JSC$14604_touched=!1;return D};
_.h(QA,_.Qj);_.S=QA.prototype;_.S.created=function(){this.useExpandableTooltip=!Ijc.includes(this.is)};
_.S.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.S.detached=function(){this.useExpandableTooltip=!1};
_.S.lockupOnDown=function(D){this.interactionElement&&!_.d$(_.Mz(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.S.lockupOnUp=function(D){this.interactionElement&&!_.d$(_.Mz(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.S.onTouchStart=function(){this.JSC$14604_touched=!0};
_.S.lockupOnMouseEnter=function(){var D=this,C=_.BK("kevlar_lockup_hover_delay",-1);this.JSC$14604_touched&&C>=0?(_.qX.cancelJob(this.hoverJobId),this.hoverJobId=_.qX.addJob(function(){D.lockupIsHovered=!0},8,C),this.JSC$14604_touched=!1):this.lockupIsHovered=!0};
_.S.lockupOnMouseLeave=function(){this.hoverJobId&&(_.qX.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.S.lockupOnPopupClosed=function(D,C){var X;((X=C.popupRenderer)==null?void 0:X.is)==="ytd-menu-popup-renderer"&&(D=C.popupRenderer.veData,C=_.LN(),D&&C&&_.To(C,[D]))};
_.S.lockupOnLockupRequested=function(D){var C=D.detail.videoIds[0],X;D.detail&&C===((X=this.data)==null?void 0:X.videoId)&&(D.detail.returnValue=[this.data])};
_.S.lockupOnYtServiceRequestSent=function(D,C){if(D=C.actions)for(var X=0;X<D.length;X++){var c=D[X];if(c.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&C.ajaxPromise){var W=void 0,p=(W=_.r(C.endpoint,_.gX))==null?void 0:W.playlistId;W=void 0;c=(W=c.removedVideoId)!=null?W:"";HE5(_.bP(),c,p)}else c.action==="ACTION_REMOVE_VIDEO"&&C.ajaxPromise&&(p=void 0,c=(p=c.setVideoId)!=null?p:"",_.JNb(_.bP(),c))}};
_.S.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.S.lockupOnLockupEnabled=function(){if(!this.$){var D=_.iX().resolve(_.lu).getCurrentPage(),C=this.getParentRenderer?this.getParentRenderer():void 0;_.fQ(new _.Zf("component not ready",this.is,this.isAttached,D==null?void 0:D.is,C==null?void 0:C.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
QA.prototype.lockupOnLockupEnabled=QA.prototype.lockupOnLockupEnabled;QA.prototype.lockupOnLockupDisabled=QA.prototype.lockupOnLockupDisabled;QA.prototype.lockupOnYtServiceRequestSent=QA.prototype.lockupOnYtServiceRequestSent;QA.prototype.lockupOnLockupRequested=QA.prototype.lockupOnLockupRequested;QA.prototype.lockupOnPopupClosed=QA.prototype.lockupOnPopupClosed;QA.prototype.lockupOnMouseLeave=QA.prototype.lockupOnMouseLeave;QA.prototype.lockupOnMouseEnter=QA.prototype.lockupOnMouseEnter;
QA.prototype.onTouchStart=QA.prototype.onTouchStart;QA.prototype.lockupOnUp=QA.prototype.lockupOnUp;QA.prototype.lockupOnDown=QA.prototype.lockupOnDown;_.V([_.n(),_.z("design:type",Object)],QA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],QA.prototype,"lockupIsHovered",void 0);_.V([_.n(),_.z("design:type",Boolean)],QA.prototype,"lockupTouchTriggered",void 0);_.V([_.n(),_.z("design:type",Boolean)],QA.prototype,"useExpandableTooltip",void 0);
_.V([_.kn("#interaction"),_.z("design:type",Object)],QA.prototype,"interactionElement",void 0);_.V([_.$n("down"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],QA.prototype,"lockupOnDown",null);_.V([_.$n("up"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],QA.prototype,"lockupOnUp",null);
_.V([_.$n("touchstart"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QA.prototype,"onTouchStart",null);_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QA.prototype,"lockupOnMouseEnter",null);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QA.prototype,"lockupOnMouseLeave",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],QA.prototype,"lockupOnPopupClosed",null);_.V([_.$n("yt-lockup-requested"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],QA.prototype,"lockupOnLockupRequested",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],QA.prototype,"lockupOnYtServiceRequestSent",null);_.V([_.$n("yt-disable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QA.prototype,"lockupOnLockupDisabled",null);
_.V([_.$n("yt-enable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QA.prototype,"lockupOnLockupEnabled",null);_.V([_.Br()],QA);_.B9=[QA.prototype];_.OB4={YtdReduxBehavior:[]};_.OB4.YtdReduxBehavior.push.apply(_.OB4.YtdReduxBehavior,_.OA);var bC=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;D.disableNowPlaying=!1;D.disableTooltips=!1;D.useHoveredProperty=!1;D.hovered=!1;D.isThumbnailHovered_=!1;D.addBackground=_.b("kevlar_thumbnail_bg");D.nowPlaying=!1;D.disableRounding=!1;D.size="small";return D};
_.h(bC,_.Qj);_.S=bC.prototype;_.S.computeThumbnailOverlaySidePanelWidth_=function(D,C){return D-C};
_.S.computeSize=function(D,C){if(!this.disableRounding){if(!D&&!C)return"small";D=Math.max(D||0,C||0);return D>=256?"large":D>=96?"medium":"small"}};
_.S.computeFinalHoveredState_=function(D,C,X){return this.nowPlaying?!1:_.b("kevlar_thumbnail_fluid")&&D?C:X};
_.S.computeHoverOverlays_=function(D,C){return D&&C?C:void 0};
_.S.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.S.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.S.checkMiniplayer_=function(){var D;if(((D=this.data)==null?0:D.playlistSetVideoId)&&_.b("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{D=_.qg();var C=D.currentEndpoint;!this.disableNowPlaying&&C&&_.r(C,_.TC)&&this.data?(C=_.r(C,_.TC),this.nowPlaying=this.data.playlistId?C.playlistId===this.data.playlistId:C.videoId===this.data.videoId,this.isVideoPlaying=D==null?void 0:D.isVideoPlaying):this.nowPlaying=!1}};
bC.prototype.checkMiniplayer_=bC.prototype.checkMiniplayer_;bC.prototype.onMouseLeave_=bC.prototype.onMouseLeave_;bC.prototype.onMouseEnter_=bC.prototype.onMouseEnter_;bC.prototype.computeHoverOverlays_=bC.prototype.computeHoverOverlays_;bC.prototype.computeFinalHoveredState_=bC.prototype.computeFinalHoveredState_;bC.prototype.computeSize=bC.prototype.computeSize;bC.prototype.computeThumbnailOverlaySidePanelWidth_=bC.prototype.computeThumbnailOverlaySidePanelWidth_;
_.V([_.m(_.OA),_.z("design:type",Object)],bC.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],bC.prototype,"height",void 0);_.V([_.n(),_.z("design:type",Boolean)],bC.prototype,"bottomSidePanel",void 0);_.V([_.n(),_.z("design:type",Number)],bC.prototype,"width",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"disableNowPlaying",void 0);
_.V([_.n({selector:_.E1}),_.z("design:type",Boolean)],bC.prototype,"miniplayerIsActive",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"disableTooltips",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"useHoveredProperty",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"hovered",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"isThumbnailHovered_",void 0);
_.V([_.n({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.z("design:type",Boolean)],bC.prototype,"finalHoveredState_",void 0);_.V([_.n({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.z("design:type",Number)],bC.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bC.prototype,"addBackground",void 0);
_.V([_.n({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.z("design:type",Object)],bC.prototype,"hoverOverlays_",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bC.prototype,"nowPlaying",void 0);_.V([_.n(),_.z("design:type",Boolean)],bC.prototype,"isVideoPlaying",void 0);_.V([_.n(),_.z("design:type",Object)],bC.prototype,"disableRounding",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.z("design:type",Object)],bC.prototype,"size",void 0);_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bC.prototype,"onMouseEnter_",null);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bC.prototype,"onMouseLeave_",null);
_.V([_.vr("data","disableNowPlaying","miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bC.prototype,"checkMiniplayer_",null);_.V([_.Br()],bC);var AQc=[bC.prototype];_.rv={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(D,C){return D+":"+_.fh(C)},
getPlayerListener_:function(D,C,X){D=this.getPlayerListenerKey_(D,C);C=this.playerListeners_.get(D);X&&this.playerListeners_.delete(D);return C},
savePlayerListener_:function(D,C){var X=C.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(D,C),X);return X},
listenToPlayerEvent:function(D,C,X){X=this.savePlayerListener_(C,X);D.addEventListener(C,X)},
listenToPlayerEvents:function(D,C){C.forEach(function(X,c){this.listenToPlayerEvent(D,c,X)}.bind(this))},
unlistenFromPlayerEvent:function(D,C,X){X=this.getPlayerListener_(C,X,!0);D.removeEventListener(C,X)},
unlistenFromPlayerEvents:function(D,C){C.forEach(function(X,c){this.unlistenFromPlayerEvent(D,c,X)}.bind(this))}}};
_.Ku=function(){};_.P7d=new _.P6("PLAYER_API_TOKEN");var TbR=!1,jDj,JtF=!1,qjd;var oa=function(D,C,X,c,W){_.nF.call(this);var p=this;this.playerId=C;this.webPlayerContextConfig=c;this.cIu=W;this.lHi=!1;this.api={};this.i7J=this.gWn=null;this.hti=new _.tg;this.jZ={};this.gkG=this.eTe=this.elementId=this.oDi=this.config=null;this.jue=!1;this.uz=this.rop=null;this.wZJ={};this.oTu=["onReady"];this.lastError=null;this.mkr=NaN;this.y9n={};this.l0e=0;this.yf=this.targetElement=D;_.hR(this,this.hti);$Z4(this);X?this.l0e=setTimeout(function(){p.loadNewVideoConfig(X)},0):c&&(vWk(this),
iBJ(this))};
_.h(oa,_.nF);oa.prototype.getId=function(){return this.playerId};
oa.prototype.loadNewVideoConfig=function(D){if(!this.isDisposed()){this.l0e&&(clearTimeout(this.l0e),this.l0e=0);var C=D||{};C instanceof qgd||(C=new qgd(C));this.config=C;this.setConfig(D);iBJ(this);this.isReady()&&k9c(this)}};
var vWk=function(D){var C;D.webPlayerContextConfig?C=D.webPlayerContextConfig.rootElementId:C=D.config.attrs.id;D.elementId=C||D.elementId;D.elementId==="video-player"&&(D.elementId=D.playerId,D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.playerId:D.config.attrs.id=D.playerId);var X;((X=D.yf)==null?void 0:X.id)===D.elementId&&(D.elementId+="-player",D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.elementId:D.config.attrs.id=D.elementId)};
oa.prototype.setConfig=function(D){this.oDi=D;this.config=uFg(D);vWk(this);if(!this.eTe){var C;this.eTe=QTe(this,((C=this.config.args)==null?void 0:C.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var X;if((X=this.config)==null?0:X.attrs)D=this.config.attrs,(C=D.width)&&this.yf&&(this.yf.style.width=qs(Number(C)||C,!0)),(D=D.height)&&this.yf&&(this.yf.style.height=qs(Number(D)||D,!0))};
oa.prototype.getConfig=function(){return this.oDi};
var k9c=function(D){if(D.config&&D.config.loaded!==!0)if(D.config.loaded=!0,!D.config.args||D.config.args.autoplay!=="0"&&D.config.args.autoplay!==0&&D.config.args.autoplay!==!1){var C;D.api.loadVideoByPlayerVars((C=D.config.args)!=null?C:null)}else D.api.cueVideoByPlayerVars(D.config.args)},bBb=function(D){var C=!0,X=D.getPlayerElement();
X&&D.config&&(C=X.dataset.version===BKq(D));return C&&!!_.Df("yt.player.Application.create")},iBJ=function(D){if(!D.isDisposed()&&!D.jue){var C=bBb(D);
if(C&&(D.getPlayerElement()?"html5":null)==="html5")D.gkG="html5",D.isReady()||rQC(D);else if(Kce(D),D.gkG="html5",C&&D.uz&&D.targetElement)D.targetElement.appendChild(D.uz),rQC(D);else{D.config&&(D.config.loaded=!0);var X=!1;D.rop=function(){X=!0;var c=hR5(D,"player_bootstrap_method")?_.Df("yt.player.Application.createAlternate")||_.Df("yt.player.Application.create"):_.Df("yt.player.Application.create");var W=D.config?uFg(D.config):void 0;c&&c(D.targetElement,W,D.webPlayerContextConfig,D.cIu);rQC(D)};
D.jue=!0;C?D.rop():(_.yy(BKq(D),D.rop),(C=xZ5(D))&&Oom(C||""),Lc5(D)&&!X&&_.$h("yt.player.Application.create",null))}}};
oa.prototype.getPlayerElement=function(){var D=_.cX(document,this.elementId);!D&&this.yf&&this.yf.querySelector&&(D=this.yf.querySelector("#"+this.elementId));return D};
var rQC=function(D){if(!D.isDisposed()){var C=D.getPlayerElement(),X=!1;C&&C.getApiInterface&&C.getApiInterface()&&(X=!0);if(X){D.jue=!1;if(!hR5(D,"html5_remove_not_servable_check_killswitch")){var c;if((C==null?0:C.isNotServable)&&D.config&&(C==null?0:C.isNotServable((c=D.config.args)==null?void 0:c.video_id)))return}sTN(D)}else D.mkr=setTimeout(function(){rQC(D)},50)}},sTN=function(D){$Z4(D);
D.lHi=!0;var C=D.getPlayerElement();if(C){D.gWn=mZN(D,C,"addEventListener");D.i7J=mZN(D,C,"removeEventListener");var X=C.getApiInterface();X=X.concat(C.getInternalApiInterface());for(var c=D.api,W=0;W<X.length;W++){var p=X[W];c[p]||(c[p]=mZN(D,C,p))}}for(var g in D.jZ)D.jZ.hasOwnProperty(g)&&D.gWn&&D.gWn(g,D.jZ[g]);k9c(D);D.eTe&&D.eTe(D.api);D.hti.publish("onReady",D.api)},mZN=function(D,C,X){var c=C[X];
return function(){var W=_.MJ.apply(0,arguments);try{return D.lastError=null,c.apply(C,W)}catch(p){if(X!=="sendAbandonmentPing")throw p.params=X,D.lastError=p,W=new _.Zf("PlayerProxy error in method call",{error:p,method:X,playerId:D.playerId}),W.level="WARNING",W;}}},$Z4=function(D){D.lHi=!1;
if(D.i7J)for(var C in D.jZ)D.jZ.hasOwnProperty(C)&&D.i7J(C,D.jZ[C]);for(var X in D.y9n)D.y9n.hasOwnProperty(X)&&clearTimeout(Number(X));D.y9n={};D.gWn=null;D.i7J=null;C=D.api;for(var c in C)C.hasOwnProperty(c)&&(C[c]=null);C.addEventListener=function(W,p){D.addEventListener(W,p)};
C.removeEventListener=function(W,p){D.removeEventListener(W,p)};
C.destroy=function(){D.dispose()};
C.getLastError=function(){return D.getLastError()};
C.getPlayerType=function(){return D.getPlayerType()};
C.getCurrentVideoConfig=function(){return D.getConfig()};
C.loadNewVideoConfig=function(W){D.loadNewVideoConfig(W)};
C.isReady=function(){return D.isReady()}};
oa.prototype.isReady=function(){return this.lHi};
oa.prototype.addEventListener=function(D,C){var X=this;this.isDisposed();var c=QTe(this,C);c&&(_.Zn(this.oTu,D)||this.jZ[D]||(C=eRM(this,D),this.gWn&&this.gWn(D,C)),this.hti.subscribe(D,c),D==="onReady"&&this.isReady()&&setTimeout(function(){c(X.api)},0))};
oa.prototype.removeEventListener=function(D,C){this.isDisposed()||(C=QTe(this,C))&&this.hti.unsubscribe(D,C)};
var QTe=function(D,C){var X=C;if(typeof C==="string"){if(D.wZJ[C])return D.wZJ[C];X=function(){var c=_.MJ.apply(0,arguments),W=_.Df(C);if(W)try{W.apply(_.co,c)}catch(p){throw c=new _.Zf("PlayerProxy error when executing callback",{error:p}),c.level="ERROR",c;}};
D.wZJ[C]=X}return X?X:null},eRM=function(D,C){var X=function(c){var W=function(){D.isDisposed();
if(!D.isDisposed())try{D.hti.publish(C,c!=null?c:void 0)}catch(a){var g=new _.Zf("PlayerProxy error when creating global callback",{error:a.message,event:C,playerId:D.playerId,data:c,originalStack:a.stack,componentStack:a.componentStack});g.level="WARNING";throw g;}};
if(hR5(D,"web_player_publish_events_immediately"))W();else{var p=setTimeout(function(){W();_.ZI.remove(D.y9n,String(p))},0);
_.ZI.add(D.y9n,String(p),!0)}};
return D.jZ[C]=X};
oa.prototype.getPlayerType=function(){return this.gkG||(this.getPlayerElement()?"html5":null)};
oa.prototype.getLastError=function(){return this.lastError};
var Kce=function(D){D.cancel();$Z4(D);D.gkG=null;D.config&&(D.config.loaded=!1);var C=D.getPlayerElement();C&&(bBb(D)||!Lc5(D)?D.uz=C:(C&&C.destroy&&C.destroy(),D.uz=null));D.targetElement&&_.VM(D.targetElement)};
oa.prototype.cancel=function(){this.rop&&_.GEj(BKq(this),this.rop);clearTimeout(this.mkr);this.jue=!1};
oa.prototype.disposeInternal=function(){Kce(this);if(this.uz&&this.config&&this.uz.destroy)try{this.uz.destroy()}catch(C){var D=new _.Zf("PlayerProxy error during disposal",{error:C});D.level="ERROR";throw D;}this.wZJ=null;for(D in this.jZ)this.jZ.hasOwnProperty(D)&&delete this.jZ[D];this.oDi=this.config=this.api=null;delete this.targetElement;delete this.yf;_.nF.prototype.disposeInternal.call(this)};
var Lc5=function(D){var C,X;D=(C=D.config)==null?void 0:(X=C.args)==null?void 0:X.fflags;return!!D&&D.indexOf("player_destroy_old_version=true")!==-1},BKq=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.jsUrl:(D=D.config.assets)?D.js:""},xZ5=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.cssUrl:(D=D.config.assets)?D.css:""},hR5=function(D,C){if(D.webPlayerContextConfig)var X=D.webPlayerContextConfig.serializedExperimentFlags;
else{var c;if((c=D.config)==null?0:c.args)X=D.config.args.fflags}return(X||"").split("&").includes(C+"=true")},uFg=function(D){for(var C={},X=_.U(Object.keys(D)),c=X.next();!c.done;c=X.next()){c=c.value;
var W=D[c];C[c]=typeof W==="object"?_.ZI.clone(W):W}return C};var Djj={},lrj="player_uid_"+(Math.random()*1E9>>>0);var hb=function(D,C,X,c,W,p){C=C===void 0?document.createElement("div"):C;this.webPlayerContextConfig=D;this.container=C;this.commandResolver=X;this.apiResolver=cJo();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.gL;c||p?EWM(this):tHe(this);this.pendingPlayerResponse=c;this.pendingWatchNextResponse=W;this.pendingPlayerVars=p;NKb(this)};
hb.prototype.loadVideoWithPlayerResponse=function(D,C,X){this.loadVideo(D,C,X)};
hb.prototype.loadVideoWithPlayerVars=function(D){return this.loadVideo(void 0,void 0,D)};
hb.prototype.destroy=function(D){if(D=_.cX(document,D))D=lrj+"_"+_.fh(D),(D=Djj[D])&&D.dispose()};
var yQk=function(D,C){var X;_.I(function(c){if(c.nextAddress==1)return D.pendingWatchNextResponse=C,D.synchronousApi?(X=D.synchronousApi,c.jumpTo(2)):c.yield(D.api,3);c.nextAddress!=2&&(X=c.yieldResult);if(!Yoq(D,X))return c.return();D.pendingWatchNextResponse&&(X.updateVideoData({raw_watch_next_response:D.pendingWatchNextResponse}),D.pendingWatchNextResponse=void 0);_.t_(c)})},Yoq=function(D,C){var X;
if(!(C==null?0:(X=C.isReady)==null?0:X.call(C))){var c;_.fQ(new _.Zf("playerApi is falsey",{synchronousApi:D.synchronousApi,apiResolved:D.apiResolver.resolved,playerApiUndefined:C===void 0,playerApiNull:C===null,playerApiReady:(C==null?void 0:(c=C.isReady)==null?void 0:c.call(C))===!0,playerApiMethods:C?Object.keys(C):[]}));return!1}return!0},nWg=function(D,C){if(typeof D[C]==="function")return D[C]()},wU4=function(D){var C=window,X,c=(X=C.ytplayer)==null?void 0:X.bootstrapPlayerContainer;
if((X=c==null?void 0:c.firstElementChild)&&_.cP(X,"html5-video-player")){var W,p,g=(W=C.ytplayer)==null?void 0:(p=W.bootstrapWebPlayerContextConfig)==null?void 0:p.contextId;W=D.webPlayerContextConfig.contextId;if(g&&g===W){c!==D.container&&(c=!1,nWg(X,"getPlayerState")===2&&(c=!0),D.container.appendChild(X),c||nWg(X,"playVideo"));var a;if((a=C.ytplayer)==null?0:a.bootstrapPlayerResponse)D.bootstrapPlayerResponse=C.ytplayer.bootstrapPlayerResponse}}},NKb=function(D){var C,X,c,W,p;
_.I(function(g){if(g.nextAddress==1)return D.pageReadyOrDataAvailable?g.jumpTo(2):g.yield(D.pageReadyOrDataAvailableResolver.promise,2);if(g.nextAddress!=4)return!_.b("kevlar_player_unified_player_loading")||HAh()&&zCm()?g.jumpTo(4):g.yield(dTt(),4);wU4(D);if(D.pendingPlayerResponse||D.pendingPlayerVars)C=RCZ(D.pendingPlayerResponse,D.pendingWatchNextResponse,D.pendingPlayerVars),D.pendingPlayerResponse&&D.pendingPlayerResponse===D.bootstrapPlayerResponse&&(C.loaded=!0),D.bootstrapPlayerResponse=
void 0;X=X4o(D.container,C,D.webPlayerContextConfig);((c=C)==null?0:c.loaded)&&D.pendingWatchNextResponse?(yQk(D,D.pendingWatchNextResponse),D.pendingPlayerResponse=void 0,D.pendingPlayerVars=void 0):FcN(D);W=function(a){X.removeEventListener("onReady",W);D.synchronousApi=a;D.apiResolver.resolve(a)};
X.addEventListener("onReady",W);D.commandResolver!==void 0&&(p=D.commandResolver,X.addEventListener("innertubeCommand",function(a){p(a)}));
_.t_(g)})};
hb.prototype.loadVideo=function(D,C,X){var c=this,W,p,g,a,O,P,k,u,Q;return _.I(function(B){if(B.nextAddress==1)return c.pendingPlayerResponse=D,c.pendingWatchNextResponse=C,c.pendingPlayerVars=X,EWM(c),c.synchronousApi?(W=c.synchronousApi,B.jumpTo(2)):B.yield(c.api,3);B.nextAddress!=2&&(W=B.yieldResult);if(!Yoq(c,W))return B.return(new Promise(function(){}));
g=new Promise(function(K){p=K});
a=function(){var K=W.getPlayerResponse();K&&(W.removeEventListener("onVideoDataChange",a),p(K))};
W.addEventListener("onVideoDataChange",a);if(c.pendingPlayerResponse||c.pendingPlayerVars)c.pendingPlayerResponse&&c.pendingPlayerResponse===c.bootstrapPlayerResponse?(p(c.pendingPlayerResponse),c.pendingWatchNextResponse&&yQk(c,c.pendingWatchNextResponse)):(O=RCZ(c.pendingPlayerResponse,c.pendingWatchNextResponse,c.pendingPlayerVars),(Q=(P=c.pendingPlayerResponse)==null?void 0:(k=P.playerConfig)==null?void 0:(u=k.playbackStartConfig)==null?void 0:u.startPaused)?W.cueVideoByPlayerVars(O.args):W.loadVideoByPlayerVars(O.args)),
FcN(c),c.bootstrapPlayerResponse=void 0;return B.return(g)})};
var tHe=function(D){if(document.readyState==="complete"||document.readyState==="interactive")EWM(D);else{var C=function(){document.removeEventListener("DOMContentLoaded",C);EWM(D)};
document.addEventListener("DOMContentLoaded",C)}},EWM=function(D){D.pageReadyOrDataAvailable=!0;
D.pageReadyOrDataAvailableResolver.resolve()},FcN=function(D){D.pendingPlayerResponse=void 0;
D.pendingWatchNextResponse=void 0;D.pendingPlayerVars=void 0};
_.$a.Object.defineProperties(hb.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var xc=function(D){M4.call(this,D===void 0?"document_active":D);var C=this;this.overridePriority=10;this.JSC$14637_hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(X){C.transition("document_disposed",{event:X})});
window.addEventListener("beforeunload",function(X){C.transition("document_disposed_preventable",{event:X})});
window.addEventListener("unload",function(X){C.transition("document_disposed",{event:X});C.JSC$14637_hasRun=new Map})};
_.h(xc,M4);
xc.prototype.runPreventableDispose=function(D,C){if(!this.JSC$14637_hasRun.get("document_disposed_preventable")){D(C==null?void 0:C.event);var X,c;if((C==null?0:(X=C.event)==null?0:X.defaultPrevented)||(C==null?0:(c=C.event)==null?0:c.returnValue)){C.event.returnValue||(C.event.returnValue=!0);C.event.defaultPrevented||C.event.preventDefault();this.JSC$14637_hasRun=new Map;this.transition("document_active");return}}this.JSC$14637_hasRun.set("document_disposed_preventable",!0);this.JSC$14637_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
xc.prototype.runDispose=function(D,C){this.JSC$14637_hasRun.get("document_disposed")?this.transition("document_active"):(D(C==null?void 0:C.event),this.JSC$14637_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
xc.prototype.runFlush=function(D,C){D(C==null?void 0:C.event);this.transition("document_active")};
xc.prototype.runActive=function(){};var Lu=function(D){M4.call(this,D===void 0?"document_visibility_unknown":D);var C=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(X){document.visibilityState==="visible"?C.transition("document_visible",{event:X}):C.transition("document_hidden",
{event:X})});
_.b("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(X){C.transition("document_backgrounded",{event:X})}),window.addEventListener("focus",function(X){C.transition("document_foregrounded",{event:X})}))};
_.h(Lu,M4);Lu.prototype.runVisible=function(D,C){D(C==null?void 0:C.event);_.b("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Lu.prototype.runHidden=function(D,C){D(C==null?void 0:C.event);_.b("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Lu.prototype.runBackgrounded=function(D,C){D(C==null?void 0:C.event)};
Lu.prototype.runForegrounded=function(D,C){D(C==null?void 0:C.event)};var sA=function(){this.teardownLifecycle=new xc;this.visibilityLifecycle=new Lu};
sA.prototype.install=function(){var D=_.MJ.apply(0,arguments),C=this;D.forEach(function(X){C.teardownLifecycle.install(X)});
D.forEach(function(X){C.visibilityLifecycle.install(X)})};var my=function(){sA.call(this);var D={};this.install((D.document_disposed={callback:this.abortSlisAndFlush},D));_.b("combine_ve_grafts")&&(D={},this.install((D.document_disposed={callback:this.flushInteractionLoggingAttachVes},D)));D={};this.install((D.flush_logs={callback:this.logFinalPayload},D));_.b("web_log_cfg_cee_ks")||_.Zo(_.qX,ZB5)};
_.h(my,sA);var oVj=function(){my.loggingInstance||(my.loggingInstance=new my);return my.loggingInstance};
my.prototype.logFinalPayload=function(){if(_.b("web_fp_via_jspb")){var D=new TJN,C=_.LN();C&&_.N3(D,1,C);C=_.b("jspb_sparse_encoded_pivot")?new F3([{}]):new F3;_.sB(C,380,HeC,D);ezm("finalPayload",C);_.b("web_fp_via_jspb_and_json")&&_.zu("finalPayload",{csn:_.LN()})}else _.zu("finalPayload",{csn:_.LN()})};
my.prototype.abortSlisAndFlush=function(){Nzx(Bj);bs!=null&&bs.flush()};
my.prototype.flushInteractionLoggingAttachVes=function(){Dck(_.iO())};
var ZB5=function(){var D=_.q6("CLIENT_EXPERIMENT_EVENTS");if(D){var C=XMW();D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,C(X)&&_.zu("genericClientExperimentEvent",{eventType:X});delete _.jj.CLIENT_EXPERIMENT_EVENTS}};var G9d={};
G9d.YtPlayerBehavior=[_.rv.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 D=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.gL;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;WTd(function(){D.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.f2(this,"pan-down"),_.b("kevlar_pinch_fullscreen")&&_.Mk().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.b("kevlar_pinch_fullscreen")&&_.Mk().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(D,C,X){var c=this;WX(this.useUnifiedPlayer_());if(this.mainAppPlayer_)WX(!1,"MainAppPlayer already created.");else{var W=_.b("kevlar_player_container_query_killswitch")?this.$.container:_.SY(this.hostElement).querySelector("#container");this.mainAppPlayer_=new hb(this.getWebPlayerContextConfig_(),W,function(p){return _.O4(p,c.hostElement)},D,C,X);
this.mainAppPlayer_.api.then(function(p){c.player_=p;c.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&X3J.resolve(p)})}},
loadVideoWithPlayerResponse:function(D,C){var X=this;if(this.useUnifiedPlayer_()){var c=this.watchNextData,W,p=(W=D.videoDetails)==null?void 0:W.videoId,g,a,O;(W=(g=this.watchNextData)==null?void 0:(a=g.currentVideoEndpoint)==null?void 0:(O=a.watchEndpoint)==null?void 0:O.videoId)&&p!=W&&(c=void 0,_.b("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(D,c,C):this.createMainAppPlayer_(D,c,C);this.mainAppPlayer_.api.then(function(){_.lE(X.hostElement,
"yt-player-updated")})}else this.update(ZAd(D,C))},
loadVideoWithPlayerVars:function(D){var C=this;this.useUnifiedPlayer_()?(_.b("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(D):this.createMainAppPlayer_(void 0,void 0,D),this.mainAppPlayer_.api.then(function(){_.lE(C.hostElement,"yt-player-updated")})):this.update({args:D})},
update:function(D){var C=this;if(this.useUnifiedPlayer_())WX(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(D);var X=fKR(D.args);X&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==X&&Object.assign(D.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(D).then(function(c){_.lE(C.hostElement,"yt-player-updated",_.b("kevlar_player_updated_obsolete_player_killswitch")?
c:void 0)})}_.qN(new _.Zf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.getPlayerPromise(),2);X=c.yieldResult;if(!X)throw Error("vh");D&&C.updatePlayerPlaylist_(D);_.t_(c)})},
acquireApi_:function(D){var C=this;if(this.useUnifiedPlayer_())WX(!1,"Invalid method call in kevlar_unified_player.");else return _.qX.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(WX(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(X){C.shouldAutoplay_(D)?X.loadVideoByPlayerVars(D.args):X.cueVideoByPlayerVars(D.args)})):this.initPlayerPromise_=this.initPlayerContainer_(D),this.initPlayerPromise_},
initPlayerContainer_:function(D){var C=this;if(this.useUnifiedPlayer_())WX(!1,"Invalid method call in kevlar_unified_player.");else return WX(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.fQ(Error("wh")),WX(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.b("kevlar_player_container_query_killswitch")?this.$.container:_.SY(this.hostElement).querySelector("#container"),dTt().then(function(){var X=C.initPlayer_(D);C.playerResolver_.resolve(X);
return X})},
onPlayerReady_:function(D,C){this.useUnifiedPlayer_()?WX(!1,"Invalid method call in kevlar_unified_player."):(D.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&X3J.resolve(D),C(D))},
maybeCallApiMethodOnElement_:function(D,C){if(typeof D[C]==="function")return D[C]()},
maybeAdoptBootstrapPlayer_:function(){var D=window,C,X=(C=D.ytplayer)==null?void 0:C.bootstrapPlayerContainer;if((C=X==null?void 0:X.firstElementChild)&&C.classList.contains("html5-video-player")){var c,W,p=(c=D.ytplayer)==null?void 0:(W=c.bootstrapWebPlayerContextConfig)==null?void 0:W.contextId;c=this.getWebPlayerContextConfig_().contextId;if(p&&p===c){X!==this.playerContainer_&&(X=!1,this.maybeCallApiMethodOnElement_(C,"getPlayerState")===2&&(X=!0),this.playerContainer_.appendChild(C),X||this.maybeCallApiMethodOnElement_(C,
"playVideo"));var g;if((g=D.ytplayer)==null?0:g.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=D.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(D){var C=this;if(this.useUnifiedPlayer_())WX(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(X){C.maybeAdoptBootstrapPlayer_();var c=D?GBJ(D):void 0;c&&c==C.bootstrapPlayerResponse_&&(D.loaded=!0);c=C.playerContainer_;var W=C.getWebPlayerContextConfig_();c=X4o(c,D,W);C.player_=c;C.onPlayerReadyEvent_=C.onPlayerReady_.bind(C,C.player_,X);C.player_.addEventListener("onReady",C.onPlayerReadyEvent_);C.player_.addEventListener("innertubeCommand",
C.onPlayerInnerTubeCommand_.bind(C))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(D){D.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(D){D.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var D=_.iX().resolve(_.lu).getCurrentPage();D&&D.getScrollTop()<=0?_.f2(this,"pan-down"):_.f2(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()||D.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()&&D.toggleFullscreen()})},
updatePlayerPlaylist_:function(D){var C=this,X,c,W;return _.I(function(p){if(p.nextAddress==1)return X=_.iX().resolve(_.vK(_.iP)),c=!!(X&&X.playlistComponent&&X.playlistComponent.loopOn),p.yield(C.getPlayerPromise(),2);var g=W=p.yieldResult,a=g.updatePlaylist,O=[];if(_.b("kevlar_player_playlist_use_local_index")){var P,k;var u=(k=(P=D.localCurrentIndex)!=null?P:D.currentIndex)!=null?k:0}else{var Q;u=(Q=D.currentIndex)!=null?Q:0}if(D.contents)for(P=0;P<D.contents.length;P++)if((k=D.contents[P])&&k.playlistPanelVideoRenderer)if(iuJ(k)){k=
k.playlistPanelVideoRenderer;Q="";k.shortBylineText&&(Q=_.Mh(k.shortBylineText));var B="";k.title?B=_.Mh(k.title):k.unplayableText&&(B=_.Mh(k.unplayableText));O.push({author:Q,title:B,encrypted_id:k.videoId})}else P<u&&--u;a.call(g,{index:u,list:D.playlistId?D.playlistId:"",loop:c,playlist_title:D.title,playlist_length:O.length,video:O,fetch:0,external_list:"1",title:D.title?D.title:"",playlist_author:D.ownerName?_.Mh(D.ownerName):void 0});_.t_(p)})},
focusOnPlayer:function(){_.A0(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var D=this.playerContainer_.querySelector(".html5-video-player");D&&(_.ev(_.iX().resolve(_.B0)),D.focus())}})},
preparePlayer:function(){var D=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(C){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")C();else{var X=function(){document.removeEventListener("DOMContentLoaded",X);C()};
document.addEventListener("DOMContentLoaded",X)}})).then(function(){return dTt()}).then(function(){D.initPlayerPromise_||D.preparePlayerJobId_||(D.preparePlayerJobId_=_.Zo(_.qX,function(){D.initPlayerPromise_||(D.initPlayerPromise_=D.initPlayerContainer_())}))}):_.qN(new _.Zf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(D){this.useUnifiedPlayer_()?WX(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(D)||(D.args.autoplay="0")},
shouldAutoplay_:function(D){if(this.useUnifiedPlayer_())WX(!1,"Invalid method call in kevlar_unified_player.");else{var C=this.get("args.el",D);return C&&C!="detailpage"&&this.isMiniplayerActive_()||C&&(C=="sponsorshipsoffer"||C=="handlesclaiming")&&this.get("args.autoplay",D)=="0"?!1:(D=GBJ(D))&&this.get("playerConfig.playbackStartConfig.startPaused",D)?!1:!0}},
isMiniplayerActive_:function(){return _.iX().resolve(_.wB).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var D=this.getPlayer();if(D){var C=D.getPlayerState();_.b("kevlar_player_check_ad_state_on_stop")&&(C=D.getPlayerState(D.getPresentingPlayerType()));C!=5&&D.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(D,C,X){X=X===void 0?!1:X;var c=this,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return C||(C=c.hostElement),W=c.useUnifiedPlayer_()?!!c.mainAppPlayer_:!!c.initPlayerPromise_,W?O.yield(c.getPlayerPromise(),2):(X?D.insertBefore(C,D.firstChild):D.appendChild(C),O.return());p=O.yieldResult;g=p.getPlayerState(p.getPresentingPlayerType());a=!1;if(g==-1||g==1||g==3)a=!0;X?D.insertBefore(C,D.firstChild):D.appendChild(C);a&&p.playVideo();p.setSize(NaN,NaN);_.t_(O)})},
watchNextDataChanged_:function(D){var C=this;D&&(this.useUnifiedPlayer_()&&_.b("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&yQk(this.mainAppPlayer_,D):this.getPlayerPromise().then(function(X){X.updateVideoData(C.computeWatchNextPlayerVars_(D))}))},
computeWatchNextPlayerVars_:function(D){if(this.useUnifiedPlayer_()&&_.b("kevlar_unified_player_update_watch_next_killswitch"))WX(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:D}},
maybeSendAbandonmentPing_:function(){var D=this.getPlayer();D&&D.getPlayerState()!=5&&D.getPlayerState()!=0&&D.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var D=_.q6("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(D=Object.assign({},D),D.rootElementId=this.playerId);D.serializedExperimentIds&&D.serializedExperimentFlags||_.fQ(Error("xh"));return D},
hasWebPlayerContextConfig_:function(){return!!_.q6("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(D){this.useUnifiedPlayer_()?WX(!1,"Invalid method call in kevlar_unified_player."):_.O4(D,this.hostElement)},
useUnifiedPlayer_:function(){var D=_.b("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.b("kevlar_unified_player")||D}}];var VHb={};VHb.YtPlaylistPanelBehavior=[_.f.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(D){D=D.detail;if(D.actions.loop!=void 0||D.actions["yt-icons:loop"]!=void 0)this.loopOn=D.actions.loop||D.actions["yt-icons:loop"];if(D.actions.shuffle!=void 0||D.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=D.actions.shuffle||D.actions["yt-icons:shuffle"]},
setMenuData_:function(D){if(!D||!D.playlistButtons||D.isInfinite)return null;for(var C=D.playlistButtons.menuRenderer.topLevelButtons,X=C.length,c=0;c<X;c++)if(C[c].toggleButtonRenderer){var W=C[c].toggleButtonRenderer;W.defaultIcon.iconType=="LOOP"&&this.loopOn?W.isToggled=this.loopOn:W.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(W.isToggled=this.shuffleOn)}return D.playlistButtons}}];_.EA={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(D,C,X){var c=this.getClickTarget_(C);if(c&&this.isClickAllowed_(c)){C.preventDefault();D=(0,_.ZI.unsafeClone)(D);var W=this.getContainerBoundingRect();C=this.getRelativeClickXy_(C,W);this.expandEndpointUrlMacros_(D,{NX:C[0],NY:C[1],NB:c.code});X&&this.truncateWebCommendMetadataUrl_(D);_.lE(this.hostElement,"yt-navigate",{endpoint:D})}},
getClickTarget_:function(D){if(!this.clickTargetMap)return null;D=_.Mz(D)||[];D=_.U(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;if(C===_.SY(this.hostElement).querySelector("#menu"))break;if(C=this.clickTargetMap.get(C.id))return C}return null},
getRelativeClickXy_:function(D,C){var X=Math.round(D.detail.x-C.left);D=Math.round(D.detail.y-C.top);return X<0||D<0?[null,null]:[X,D]},
getContainerBoundingRect:function(){return _.SY(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(D,C){for(var X=_.U(D.loggingUrls||[]),c=X.next();!c.done;c=X.next())c=c.value,c.baseUrl&&(c.baseUrl=Oit(c.baseUrl,C));D.urlEndpoint&&D.urlEndpoint.url&&(D.urlEndpoint.url=Oit(D.urlEndpoint.url,C));D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url&&(D.commandMetadata.webCommandMetadata.url=Oit(D.commandMetadata.webCommandMetadata.url,C))},
truncateWebCommendMetadataUrl_:function(D){if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url){var C=D.commandMetadata.webCommandMetadata.url,X=C.indexOf("&pp=");if(X>0){var c=C.indexOf("&",X+1);D.commandMetadata.webCommandMetadata.url=c>X&&c<C.length?C.slice(0,X)+C.slice(c):C.slice(0,X)}}},
configureClickTargets:function(D,C,X){this.containerId=D;this.clickTargetMap=new Map;D=_.U(C);for(C=D.next();!C.done;C=D.next())if(C=C.value,C.location){var c=X.get(C.location);c&&(_.gi(_.SY(this.hostElement).querySelector("#"+c),"yt-simple-endpoint",this.isClickAllowed_(C)),this.clickTargetMap.set(c,C))}},
isClickAllowed_:function(D){return D.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.tb={};
_.tb.YtLazyListBehavior=[_.xZ.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 D=(this.constructor.generatedFrom||this).observers;D||(D=[]);D.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
D}},
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 D=this.renderElementsOutsideVisibleArea_;D&&(GM5(D,4),D.processSignal())},
deepLazyListObserver_:function(D){var C=this;if(D){var X=D.value||[];if(this.itemsPath==D.path){var c=this.nonDeferredItemCount;D=0;c>-1&&X.length>c&&(D=_.q6("REMAINING_DOVA_DEFERRED_CHUNKS",-1));D>0?(c>0&&(c=X.slice(0,c),this.setInitialItemsOnDataChanged(c)),(c=this.renderElementsOutsideVisibleArea_)?c.cancel():(c=this.renderElementsOutsideVisibleArea_=new _.s7(2,"eocs"),_.k2m(window,"scroll",function(){return C.renderDeferredElements()})),_.mV(c,function(){C.setInitialItemsOnDataChanged(X)}),_.M6("REMAINING_DOVA_DEFERRED_CHUNKS",
D-1)):this.setInitialItemsOnDataChanged(X)}else if(this.itemsPath+".splices"==D.path)this.onItemsUpdated_(X);
else c="shownItems"+D.path.substr(this.itemsPath.length),this.useSignals&&c==="shownItems.length"||this.notifyPath(c,D.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(D){D&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(D),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(D){D=D.indexSplices;for(var C=0,X=D.length;C<X;C++){var c=D[C];if(c.index<this.shownCount&&(c.removed&&this.splice("shownItems",c.index,c.removed.length),c.addedCount)){var W=c.object.slice(c.index,c.index+c.addedCount);c=["shownItems",c.index,0];c.push.apply(c,W);this.splice.apply(this,c)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(D){this.cancelPendingTasks_();D||(D=[]);this.items_=D;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&&(_.dq("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.A0(this,this.tryRenderChunk_)))},
fillRange_:function(D,C){this.canShowMore&&this.items_&&(D=this.items_.slice(D,C),D.unshift("shownItems"),this.push.apply(this,D),this.shownCount=C,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var D=this;this.canShowMore&&_.Hr(this,"renderChunk",function(){D.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.dq("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.hG(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var D=this.renderElementsOutsideVisibleArea_;D&&(D.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var D=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(D-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=D;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(D){return Math.ceil(1E3/D)},
onCanShowMoreUpdated_:function(D){this.data&&this.items_!==null&&(D?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(D){!this.shouldUseTaskManager()&&this.data&&(!D&&this.canShowMore?(_.BMo(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):D&&this.partiallyRenderedItems_.has(this.items_)&&(_.b("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var yA;_.Nx={};
yA=function(){var D=_.Qj.apply(this,arguments)||this;D.atStart=!0;D.atEnd=!0;D.startIndex=0;D.endIndex=0;D.scrollCount=0;D.initialStartIndex=0;D.disableScrollEventListener=!1;D.useFloorScrolling=!1;D.isSearch=!1;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.disableWheelScroll=!1;D.centerListItems=!1;D.offset=0;D.minComponentWidth=0;D.marginWidthRight=0;D.marginWidthLeft=0;D.setButtonsStateRequested=!1;D.itemsVisibilityObserver=null;D.fullyVisibleItemsIndices=[];D.JSC$14666_onWheelScroll=function(C){if(D.isSearch&&
!D.disableWheelScroll&&_.b("desktop_enable_dmpanel_wheel_scroll")){var X=C.shiftKey?Math.abs(C.deltaY)>Math.abs(C.deltaX)?C.deltaY:C.deltaX:C.deltaX;X!==0&&(C.preventDefault(),D.ytLazyListBehavior.fillRemainingListItems(),D.offset+=X,Yc(D),D.reposition_())}};
D.onPointerDown=function(C){TKd(D)&&(D.dragMouseStart=C.clientX,D.dragOffsetStart=D.offset,D.dragging=!0)};
D.onPointerMove=function(C){TKd(D)&&D.dragging&&(D.ytLazyListBehavior.fillRemainingListItems(),D.offset=D.dragOffsetStart-(C.clientX-D.dragMouseStart),Yc(D),D.reposition_())};
D.onPointerUp=function(){TKd(D)&&(D.dragging=!1)};
return D};
_.h(yA,_.Qj);var HBd=function(D){var C=_.SY(D.hostElement).querySelector("#items").children;if(!C)return 0;var X=0;D=_.U(D.fullyVisibleItemsIndices);for(var c=D.next();!c.done;c=D.next())X+=C[c.value].clientWidth;return X},TKd=function(D){return D.isSearch&&_.b("desktop_enable_dmpanel_click_drag_scroll")};
yA.prototype.created=function(){this.cachedViewportWidth=_.q6("initialInnerWidth")||window.innerWidth;this.JSC$14666_cachedViewportHeight=_.q6("initialInnerHeight")||window.innerHeight;_.q6("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.M6("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
yA.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.b("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();JQk(this)};
yA.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.b("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var D;(D=this.itemsVisibilityObserver)==null||D.disconnect();this.itemsVisibilityObserver=null;var C;(C=this.itemsObserver)==null||C.disconnect()};
var JQk=function(D){var C=_.SY(D.hostElement).querySelector("#scroll-container");if(C){if(!D.itemsVisibilityObserver){var X=window.getComputedStyle(C).marginRight;D.itemsVisibilityObserver=new IntersectionObserver(function(c){zRg(D,c)},{root:C,
rootMargin:X,threshold:.98})}if(C=_.SY(D.hostElement).querySelector("#items"))D.itemsObserver=new ibC(C,function(c){jTJ(D,c)})}},jTJ=function(D,C){MHM(D)&&(Array.from(C.addedNodes).filter(function(X){return X.nodeType===Node.ELEMENT_NODE}).forEach(function(X){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.observe(X)}),Array.from(C.removedNodes).filter(function(X){return X.nodeType===Node.ELEMENT_NODE}).forEach(function(X){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.unobserve(X)}))},
zRg=function(D,C){var X=new Set(D.fullyVisibleItemsIndices);
C=_.U(C);for(var c=C.next();!c.done;c=C.next()){c=c.value;var W=c.target.parentElement;W?(W=Array.from(W.children).indexOf(c.target),c.isIntersecting?X.add(W):X.has(W)&&X.delete(W)):_.fQ(new _.Zf("Parent element not found",c.target.nodeName))}D.fullyVisibleItemsIndices=Array.from(X).sort(function(p,g){return p-g});
X.size===0?_.fQ(new _.Zf("No visible entries in horizontal list")):(D.startIndex=D.fullyVisibleItemsIndices[0],D.endIndex=D.fullyVisibleItemsIndices[D.fullyVisibleItemsIndices.length-1])},MHM=function(D){D.data?D=(D=D.data)&&D.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===D.itemSizeConstraint:!1:D=!1;
return D};
_.S=yA.prototype;_.S.addScrollEventListeners=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container");D.style.touchAction="pan-y";D.addEventListener("wheel",this.JSC$14666_onWheelScroll);D.addEventListener("pointerdown",this.onPointerDown);D.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.S.removeScrollEventListeners=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.JSC$14666_onWheelScroll);D.removeEventListener("pointerdown",this.onPointerDown);D.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.S.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.A0(this,this.setStartIndex,[this.initialStartIndex])};
_.S.reposition_=function(){var D=_.q6("HTML_DIR")=="rtl"?"":"-",C=_.SY(this.hostElement).querySelector("#items");C&&(C.style.transform="translateX("+D+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.S.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.A0(this,this.setButtonsState_))};
_.S.setButtonsState_=function(){this.setButtonsStateRequested=!1;var D=_.SY(this.hostElement).querySelector("#items").firstElementChild;if(D){this.minComponentWidth||(this.minComponentWidth=qog(this,D));D=_.SY(this.hostElement).querySelector("#scroll-container").clientWidth;var C=_.SY(this.hostElement).querySelector("#items");C=_.b("kevlar_horizontal_list_scroll_width_killswitch")?C.clientWidth:C.scrollWidth;var X=this.get(this.ytLazyListBehavior.itemsPath,this);if(X){var c=Math.round(D/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+c,X.length)-1)}this.ytLazyListBehavior.canShowMore?C+this.minComponentWidth>=this.offset+D&&(this.atEnd=!1):this.atEnd=this.offset+D>=C-20?!0:!1;this.atStart=this.offset<=20}};
_.S.setStartIndex=function(D){if(!this.minComponentWidth){var C=_.SY(this.hostElement).querySelector("#items").firstElementChild;if(!C)return;this.minComponentWidth=qog(this,C)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*D;Yc(this);this.reposition_()};
_.S.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.m8();var D=_.SY(this.hostElement).querySelector("#scroll-container").clientWidth;_.b("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=qog(this,_.SY(this.hostElement).querySelector("#items").firstElementChild));D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&fje(this);this.offset+=MHM(this)?
HBd(this):D*this.minComponentWidth;Yc(this);this.reposition_();this.scrollCount++};
_.S.prevClick_=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container").clientWidth;D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=MHM(this)?HBd(this):this.minComponentWidth*this.scrollCount-1):this.offset-=MHM(this)?HBd(this):D*this.minComponentWidth;this.centerListItems&&fje(this);Yc(this);this.reposition_()};
_.S.onIronResize_=function(){this.resizeSupportEnabled&&_.A0(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.S.onItemsTransitionEnd_=function(D){_.qz(D)===_.SY(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.S.onChildElementFocus_=function(D){D=D.target.closest("#items > *");var C=_.SY(this.hostElement).querySelector("#scroll-container");if(C.contains(D)){if(_.b("web_horizontal_list_behavior_focus_killswitch"))if(D.offsetLeft<this.offset)this.offset=Math.abs(D.offsetLeft)<D.clientWidth?0:D.offsetLeft;else if(D.offsetLeft+D.clientWidth>this.offset+C.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.m8(),this.offset=D.offsetLeft+D.clientWidth-C.clientWidth;else return;else{var X=_.SY(this.hostElement).querySelector("#items"),
c=_.q6("HTML_DIR")==="rtl",W=c?X.clientWidth-D.offsetLeft:D.offsetLeft;X=c?X.clientWidth-(D.offsetLeft+D.clientWidth):D.offsetLeft+D.clientWidth;var p=c?W>this.offset+C.clientWidth:W<this.offset,g=c?X<this.offset:X>this.offset+C.clientWidth,a=c?p:g;if(c?g:p)C=c?X:W,this.offset=Math.abs(C)<D.clientWidth?0:C;else if(a)this.ytLazyListBehavior.fillRemainingListItems(),_.m8(),this.offset=(c?W:X)-C.clientWidth;else return}Yc(this);this.reposition_()}};
_.S.observeShownItems_=function(){this.reset()};
_.S.checkComponentWidthResize=function(){var D=_.SY(this.hostElement).querySelector("#items").firstElementChild;D&&(D=qog(this,D),this.centerListItems||D!==this.minComponentWidth)&&(this.minComponentWidth=D,this.offset=D*this.scrollCount,this.centerListItems&&fje(this),Yc(this),this.reposition_())};
var qog=function(D,C){var X=window.getComputedStyle(C).marginRight;X=Math.floor(Number(X.replace("px","")));var c=window.getComputedStyle(C).marginLeft;c=Math.floor(Number(c.replace("px","")));D.centerListItems&&!D.marginWidthRight&&(D.marginWidthRight=X,D.marginWidthLeft=c);return D.resizeSupportEnabled?C.getBoundingClientRect().width+X:C.offsetWidth+X},Yc=function(D){var C=_.SY(D.hostElement).querySelector("#scroll-container").clientWidth,X=_.SY(D.hostElement).querySelector("#items").clientWidth;
D.offset<0?D.offset=0:D.offset+C>=X&&(D.offset=X-C)},fje=function(D){D.offset-=(_.SY(D.hostElement).querySelector("#scroll-container").clientWidth+D.marginWidthRight-D.minComponentWidth)/2-D.marginWidthLeft};
_.$a.Object.defineProperties(yA.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var D=_.q6("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(D==-1)D=this.JSC$14666_cachedViewportHeight,D=D>1320?5:D>1020?4:D>730?3:D>430?2:1;else if(D==0)return 0;_.M6("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",D-1);D=_.q6("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(D>-1)return D;D=this.cachedViewportWidth;D=D>1600?6:D>1400?5:D>1300?4:D>1090?5:D>870?4:D>660?3:2;_.M6("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
D);return D},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.b("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
yA.prototype.observeShownItems_=yA.prototype.observeShownItems_;yA.prototype.onChildElementFocus_=yA.prototype.onChildElementFocus_;yA.prototype.onItemsTransitionEnd_=yA.prototype.onItemsTransitionEnd_;yA.prototype.onIronResize_=yA.prototype.onIronResize_;yA.prototype.prevClick_=yA.prototype.prevClick_;yA.prototype.nextClick_=yA.prototype.nextClick_;yA.prototype.setButtonsState_=yA.prototype.setButtonsState_;yA.prototype.requestButtonsStateUpdate_=yA.prototype.requestButtonsStateUpdate_;
yA.prototype.reposition_=yA.prototype.reposition_;yA.prototype.reset=yA.prototype.reset;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],yA.prototype,"ytLazyListBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yA.prototype,"atStart",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yA.prototype,"atEnd",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"startIndex",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"endIndex",void 0);_.V([_.n({value:6}),_.z("design:type",Number)],yA.prototype,"initialCount",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"scrollCount",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"initialStartIndex",void 0);
_.V([_.n(),_.z("design:type",Object)],yA.prototype,"disableScrollEventListener",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"supportComponentResize",void 0);_.V([_.n({value:function(){var D=this;return function(){return D.prevClick_()}}}),
_.z("design:type",Function)],yA.prototype,"boundPrevClick",void 0);_.V([_.n({value:function(){var D=this;return function(){return D.nextClick_()}}}),
_.z("design:type",Function)],yA.prototype,"boundNextClick",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"useFloorScrolling",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"isSearch",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"dragging",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"dragMouseStart",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"dragOffsetStart",void 0);
_.V([_.n(),_.z("design:type",Object)],yA.prototype,"disableWheelScroll",void 0);_.V([_.n(),_.z("design:type",Object)],yA.prototype,"centerListItems",void 0);_.V([_.$n("iron-resize"),_.vr("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yA.prototype,"onIronResize_",null);_.V([_.$n("transitionend"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],yA.prototype,"onItemsTransitionEnd_",null);
_.V([_.$n("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],yA.prototype,"onChildElementFocus_",null);_.V([_.vr("shownItems"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yA.prototype,"observeShownItems_",null);_.V([_.Br()],yA);_.Nx.YtdHorizontalListBehavior=[];_.Nx.YtdHorizontalListBehavior.push(_.lR,_.f.YtRendererBehavior,_.tb.YtLazyListBehavior,_.kc.YtdGuideStateAwareBehavior,yA.prototype);var SRh=["APP_STATE","PI"];var nu,wv=function(D){this.hostElement=D},Fu=function(D,C){if(C&&(IMj(C.viewableCommands)||IMj(C.endOfSessionCommands))){var X=AJW(C.viewableCommands);
C=AJW(C.endOfSessionCommands);if(!nu){var c=_.BK("custom_active_view_tos_timeout_ms");nu=c>0&&c!==36E5?new war(O$R(),c):new war(O$R())}ZOn(nu,D.hostElement);GKh(nu,D.hostElement,X,C)}},ZQ=function(D){nu&&ZOn(nu,D.hostElement)};var dZk=_.q8(["about:blank"]),RRx={pushState:window.history.pushState,replaceState:window.history.replaceState};var Gc=function(D){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=D;this.internalPushState=D.pushState.bind(D);this.internalReplaceState=D.replaceState.bind(D)};
Gc.prototype.init=function(){this.initialized=!0};
Gc.prototype.pushState=function(D,C){this.initialized||this.init();this.internalPushState&&this.internalPushState(D,"",C)};
Gc.prototype.replaceState=function(D,C){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(D,"",C)};
Gc.prototype.getState=function(){return this.history&&this.history.state};var lje=function(D){var C=function(){var X=D.apply(this,arguments)||this;X.boundHistoryPushState=!1;X.boundHistoryReplaceState=!1;X.debugInfo={};return X};
_.h(C,D);C.prototype.init=function(){var X=_.mv("IFRAME");_.CK(X,_.kX(dZk));X.sandbox="allow-same-origin";X.style.display="none";this.iframe=X;document.body.appendChild(X);this.bindHistoryStateFunctions();D.prototype.init.call(this)};
C.prototype.bindHistoryStateFunctions=function(){var X=this,c=[],W;this.iframe&&((W=this.iframe.contentWindow)==null?0:W.history)&&(W=this.iframe.contentWindow.history)&&(c.push(W),Object.getPrototypeOf(W)&&c.push(Object.getPrototypeOf(W)));window.history&&c.push(window.history);W=window.history;Object.getPrototypeOf(W)&&c.push(Object.getPrototypeOf(W));c.push(RRx);W=function(g){for(var a=null,O=0;O<c.length;O++){var P=c[O][g];if(typeof P==="function"){a=P.bind(window.history);X.debugInfo[g]=O;break}}return a};
if(!this.boundHistoryReplaceState){var p=W("replaceState");p&&(this.internalReplaceState=p,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(W=W("pushState"))&&(this.internalPushState=W,this.boundHistoryPushState=!0)};
return C}(Gc),Dvc=function(){return lje.call(this,window.history)||this};
_.h(Dvc,lje);Dvc.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var VA=function(D){this.browserHistory=D;this.initialized=!1};
VA.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
VA.prototype.pushState=function(D,C){this.initialized||this.init();this.browserHistory.pushState(D,C)};
VA.prototype.replaceState=function(D,C){this.initialized||this.init();this.browserHistory.replaceState(D,C)};
VA.prototype.handlePopstate=function(D){return D.state};_.CNb=function(D,C,X,c,W){this.endpoint=D;this.forward=C;this.historyEntry=X;this.JSC$30905_savedComponentState=c;this.legacyBorder=W===void 0?!1:W};var XBd=function(D,C){this.rootData=D;this.scrollTop=C};_.Tc=new _.P6("EPHEMERAL_STORE_TOKEN");_.H9=function(D){this.data=Object.assign({},D);var C;(C=this.data.innertubeResponse)==null||delete C.frameworkUpdates};
_.H9.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.kh)()};
_.Cn=function(D){return Object.assign({},D.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var c5M=function(){this.maxSize=100;this.timeToDataCache=new Map};
c5M.prototype.get=function(D){var C=this.timeToDataCache.get(D);C&&(this.timeToDataCache.delete(D),this.timeToDataCache.set(D,C));if(C&&C.rootData&&(_.b("web_use_response_store_for_history_cache")||_.b("mweb_use_new_history_manager"))){var X=_.iX().resolve(_.Tc),c=o25(C),W=!!c;if(c){if(c.content){var p=Jb(X,c.content);W&&p?C.rootData.response=_.Cn(p):W=!1}c.player&&(p=Jb(X,c.player),W&&p?C.rootData.playerResponse=_.Cn(p):W=!1);c.reelSequence&&(X=Jb(X,c.reelSequence),W&&X?C.rootData.reelWatchSequenceResponse=
_.Cn(X):W=!1)}W||(this.timeToDataCache.delete(D),C=void 0)}return C};
c5M.prototype.set=function(D,C){if(C.rootData&&(_.b("web_use_response_store_for_history_cache")||_.b("mweb_use_new_history_manager"))){var X=o25(C),c=Object.assign({},C.rootData);X&&(X.content&&C.rootData.response&&(WsJ(this,X.content,C.rootData.response),c.response=null),X.player&&C.rootData.playerResponse&&(WsJ(this,X.player,C.rootData.playerResponse),c.playerResponse=null),X.reelSequence&&C.rootData.reelWatchSequenceResponse&&(WsJ(this,X.reelSequence,C.rootData.reelWatchSequenceResponse),c.reelWatchSequenceResponse=
null));C=new XBd(c,C.scrollTop)}this.timeToDataCache.has(D)?this.timeToDataCache.delete(D):this.timeToDataCache.size>=this.maxSize&&(X=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(X.value));this.maxSize!==0&&this.timeToDataCache.set(D,C)};
c5M.prototype.clear=function(){this.timeToDataCache.clear()};
var o25=function(D){var C=_.iX().resolve(_.vK(_.hT)),X;if((X=D.rootData)==null?0:X.endpoint)return C==null?void 0:stt(C,D.rootData.endpoint);var c;_.fQ(new _.Zf("History snapshot response data does not contain endpoint",(c=D.rootData)==null?void 0:c.url));return null},WsJ=function(D,C,X){if(D.maxSize>0){var c;
(D=(c=X.responseContext)==null?void 0:c.maxAgeSeconds)&&Number(D)>0&&(c=_.iX().resolve(_.Tc),X=gU(X,D),c.put(C,new _.H9(X)))}};var pBb=function(D,C,X){this.endpoint=C;this.JSC$30911_savedComponentState=X===void 0?null:X;this.entryTime=D};var vVj=1;var zc=function(D){var C=function(){var X=D.apply(this,[].concat(_.VB(_.MJ.apply(0,arguments))))||this;X.historyEntryTime=0;X.historySnapshotCache=X.createHistoryCache();return X};
_.h(C,D);C.prototype.createHistoryCache=function(){return new c5M};
C.prototype.saveAndReplace=function(X,c,W){var p=window.location.href;var g=g===void 0?{}:g;var a=(a=this.browserHistory.getState())&&a.entryTime?a.entryTime:i$r();X=this.createNewHistoryEntry(X,g,a);this.saveSnapshot(a,c,W);this.replaceState(X,p||window.location.href)};
C.prototype.saveAndPush=function(X,c,W,p,g){g=g===void 0?{}:g;this.saveSnapshot(this.historyEntryTime,W,p);W=this.historySnapshotCache;p=this.historyEntryTime;var a=W.timeToDataCache.keys();a=_.U(a);for(var O=a.next();!O.done;O=a.next())O=O.value,O>p&&W.timeToDataCache.delete(O);c=this.createNewHistoryEntry(c,g);this.pushState(c,X)};
C.prototype.saveSnapshot=function(X,c,W){this.historySnapshotCache.set(X,new XBd(c,W))};
C.prototype.createNewHistoryEntry=function(X,c,W){W=W===void 0?i$r():W;return new pBb(W,X,c)};
C.prototype.handlePopstate=function(X){var c=D.prototype.handlePopstate.call(this,X),W=null,p=null,g=!1,a=null;c&&c.entryTime&&(a=this.historySnapshotCache.get(c.entryTime)||null,g=c.entryTime>this.historyEntryTime,this.historyEntryTime=c.entryTime,W=c.endpoint,p=c.JSC$30911_savedComponentState);this.handleHistoryCacheLoad(new _.CNb(W,g,a,p),X);return c};
C.prototype.pushState=function(X,c){Number(X==null?void 0:X.entryTime)>=0&&(this.historyEntryTime=X.entryTime);D.prototype.pushState.call(this,X,c)};
C.prototype.replaceState=function(X,c){Number(X==null?void 0:X.entryTime)>=0&&(this.historyEntryTime=X.entryTime);D.prototype.replaceState.call(this,X,c)};
C.prototype.handleHistoryCacheLoad=function(){};
return C}(VA),S0d=function(){var D=zc.call(this,new Dvc)||this;
D.dispatchElement=null;D.entryIndex=0;return D};
_.h(S0d,zc);_.S=S0d.prototype;_.S.init=function(D){D=D===void 0?!0:D;zc.prototype.init.call(this);this.initialized||(D||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.S.handlePopstate=function(D){var C=null;D.state||(C="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return zc.prototype.handlePopstate.call(this,D);var X=new CustomEvent("yt-history-pop",{cancelable:!0});_.DS(this.dispatchElement,"yt-history-pop",[X,{errorMsg:C}]);_.Ct(this.dispatchElement,"yt-close-all-popups-action");if(!X.defaultPrevented){X=_.iX().resolve(_.lu);C=X.getCurrentData();var c=X.getCurrentPage();X=0;c?(c=_.DS(this.dispatchElement,"yt-get-page-offset",
[c]),c.length>0&&(X=c[0])):_.fQ(new _.Zf("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:C?C.page:"undefined"}));C&&(C.csn=_.LN());this.saveSnapshot(this.historyEntryTime,C,X)}return zc.prototype.handlePopstate.call(this,D)};
_.S.handleHistoryCacheLoad=function(D,C){D.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.U(_.Ct(this.dispatchElement,"yt-history-will-navigate",[C])).next().value||_.DS(this.dispatchElement,"yt-history-load",[C,D]))};
_.S.pushState=function(D,C){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var X=new _.Zf("history.pushState is not a function",this.getDebugString());_.MN(X)}zc.prototype.pushState.call(this,D,C)};
_.S.replaceState=function(D,C){if(!this.browserHistory.boundHistoryReplaceState){var X=new _.Zf("history.replaceState is not a function",this.getDebugString());_.MN(X)}zc.prototype.replaceState.call(this,D,C)};
_.S.saveAndPush=function(D,C,X,c,W){W=W===void 0?{}:W;X&&(X.csn=_.LN());zc.prototype.saveAndPush.call(this,D,C,X,c,W)};
_.S.getDebugString=function(){var D=[];this.initialized&&D.push("i");this.browserHistory.boundHistoryReplaceState&&D.push("bhr");this.browserHistory.boundHistoryPushState&&D.push("bhs");"replaceState"in this.browserHistory.debugInfo&&D.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&D.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&D.push("ei:"+String(this.entryIndex));return D.join(",")};
_.jv=function(D,C){D.init(!0);var X=D.browserHistory.getState();D.replaceState(X,Sr(C))};
S0d.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Mx=new _.P6("DESKTOP_HISTORY_MANAGER_TOKEN");var Uvg=[10,20,30,40,50,60],qx=function(){this.currentPartitionIndex=0},g25=function(D){VxN({mainAppWeb:_.Th(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},aU4=function(D){VxN({mainAppWeb:_.Th(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},IUd=function(D){return D.currentPartitionIndex>=0&&D.currentPartitionIndex<Uvg.length?Uvg[D.currentPartitionIndex]:-1},Owx=function(D){return D.currentPartitionIndex>0&&D.currentPartitionIndex-1<Uvg.length?Uvg[D.currentPartitionIndex-1]:-1};
qx.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var D=Owx(this);D>0&&aU4(D);D=IUd(this);D>0&&g25(D);A5b(this)}};
var A5b=function(D){var C=IUd(D);if(C>0){var X=Owx(D);X<0&&(X=0);D.intervalId=_.qX.addJob(function(){var c=Owx(D);c>0&&aU4(c);c=IUd(D);c>0&&g25(c);A5b(D)},3,(C-X)*6E4);
D.currentPartitionIndex+=1}else D.currentPartitionIndex=-1};var PNC=function(D){rr.call(this,D,132);this.isDocument=D===document.documentElement};
_.h(PNC,rr);PNC.prototype.calculateScrollDelta=function(D,C,X){var c=0;D<C?c=D<C-100?-48:-8:D>C+X&&(c=D>C+X+100?48:8);return c};
PNC.prototype.JSC$11557_onMouseMove=function(D){this.isDocument||(D.clientX=D.event_.pageX,D.clientY=D.event_.pageY);rr.prototype.JSC$11557_onMouseMove.call(this,D)};_.$vk=function(D,C){var X=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14720_dragListGroup=null;this.onDraggerCreated=function(c){var W=c.JSC$11553_dragger;W.scrollTarget_=X.scrollElement;c=c.draggerEl;W&&c.menuOpened&&W.setEnabled(!1)};
this.onDragStart=function(c){var W=c.draggerEl;c=c.currDragItem;var p=Object.assign({},c==null?void 0:c.data);p.trackingParams=void 0;W.data=p;W.style.position="absolute";W.style.width=(c==null?void 0:c.clientWidth)+"px";W.style.zIndex="2030";W.onDrag&&W.onDrag();c=_.Hd(W);(p=c.querySelector("ytd-app"))?_.SY(p).appendChild(W):c.body.appendChild(W);X.dragScrollSupport=new PNC(X.scrollElement);X.dragScrollSupport.horizontalScrolling_=!1;W=X.dragScrollSupport;W.constrainScroll_=!!W.margin_&&!1};
this.onDrop=function(c){X.handleDrop(c);X.dragScrollSupport&&(_.Ue(X.dragScrollSupport),X.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(X.JSC$14720_dragListGroup){var c=X.JSC$14720_dragListGroup;V5e(c,c.currDragItem_)}};
this.handleDrop=C};
_.fu=function(D){D.JSC$14720_dragListGroup&&(_.Y1(D.JSC$14720_dragListGroup,t5f,D.onDragStart),_.Y1(D.JSC$14720_dragListGroup,n_5,D.onDragStart),D.JSC$14720_dragListGroup.dispose(),D.JSC$14720_dragListGroup=null);D.dragScrollSupport&&(_.Ue(D.dragScrollSupport),D.dragScrollSupport=null);D.scrollElement.removeEventListener("scroll",D.onReorderableScroll)};
_.v2q=function(D,C,X,c){c=c===void 0?"":c;_.fu(D);X&&(D.scrollElement=X);D.JSC$14720_dragListGroup=new oC;D.JSC$14720_dragListGroup.hysteresisDistance_=2;Flb(D.JSC$14720_dragListGroup,C);D.JSC$14720_dragListGroup.draggerElClasses_=Po("dragging").split(" ");c&&ZIM(D.JSC$14720_dragListGroup,function(W){var p=W||document,g=null;p.getElementsByClassName?g=p.getElementsByClassName(c)[0]:g=Poe("*",c,W);return g||W});
_.Kb(D.JSC$14720_dragListGroup,e7N,D.onDraggerCreated);_.Kb(D.JSC$14720_dragListGroup,t5f,D.onDragStart);_.Kb(D.JSC$14720_dragListGroup,n_5,D.onDrop);D.JSC$14720_dragListGroup.init();D.scrollElement.addEventListener("scroll",D.onReorderableScroll,{passive:!0})};
_.$a.Object.defineProperties(_.$vk.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var iwJ=function(){this.skipNextNavigation=!1},kXM=function(D,C,X){if(!C)return!1;
if(D.skipNextNavigation)return D.skipNextNavigation=!1;if(_.r(X,_.oX))return!1;var c,W,p;if((c=_.r(X,_.Pl))==null?0:(W=c.browseEndpointContextSupportedConfigs)==null?0:(p=W.browseEndpointContextMainConfig)==null?0:p.skipConfirmation)return!1;var g;return((g=_.r(C.commandMetadata,_.ge))==null?void 0:g.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
iwJ.prototype.showConfirmationDialog=function(D,C){this.navigateParams=C;this.customConfirmationCommand?_.iX().resolve(_.uX).resolveCommand(this.customConfirmationCommand):(C={openPopupAction:{popup:{confirmDialogRenderer:{title:_.jV(_.I7("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.jV(_.I7("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.jV(_.I7("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.jV(_.I7("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Wf.getInstance().triggerAction("yt-open-popup-action",C,D))};
iwJ.prototype.cancelPendingNavigation=function(){var D;((D=this.navigateParams)==null?void 0:D.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var uQe=function(){},Bwq=function(D,C,X,c,W,p,g){X=X===void 0?{}:X;
g=g===void 0?{}:g;var a=_.iX().resolve(_.hT),O,P=(O=_.r(C,_.oX))==null?void 0:O.url;return P?SJo(a,P,X,window.location.href,function(k,u){Qld(D,k,u,!1,!0,X,p,c)},function(){return!1}):T_(a,C,X,window.location.href,vl(C),function(k,u){Qld(D,k,u,!1,!0,X,p,c)},W,g)},Qld=function(D,C,X,c,W,p,g,a){if(!D.JSC$14735_chunkHandler)if(X.page==="learning_journey_watch"&&_.b("web_enable_canvas_on_learning_journey")){var O=!_.r(a,_.Pl);
W=W||c;if(O)if(W){if(_.b("kevlar_continue_playback_without_player_response")){var P;var k=(P=_.r(a,_.TC))==null?void 0:P.videoId}c={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:c,previousVideoId:k},tempData:p}}else c={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else c={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};D.JSC$14735_chunkHandler=new Iq5(_.CT,c,g,O,W)}else if(X.page==="watch"||X.page==="learning_journey_watch")if(W||c){if(_.b("kevlar_continue_playback_without_player_response")){var u;
O=(u=_.r(a,_.TC))==null?void 0:u.videoId}D.JSC$14735_chunkHandler=new PM5(_.CT,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:c,previousVideoId:O},tempData:p},g)}else D.JSC$14735_chunkHandler=new gee(_.CT);else X.page==="shorts"&&W&&!c?D.JSC$14735_chunkHandler=new AzJ(_.CT,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:p},g):D.JSC$14735_chunkHandler=new aqg(g);D.JSC$14735_chunkHandler.processChunk({endpoint:C,data:X});return D.JSC$14735_chunkHandler.vI.promise},
bwq=function(D,C,X,c,W){(X=_.szJ(X))&&Qld(D,C,X,!1,!0,c,void 0,W)};_.r5b=new _.P6("NAVIGATION_SERVICE_TOKEN");var KsN=function(){this.pendingNavigationPromise=null};
_.S=KsN.prototype;_.S.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.S.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.S.addEventListener=function(){throw Error("yh");};
_.S.dispatchEvent=function(){throw Error("yh");};
_.S.removeEventListener=function(){throw Error("yh");};var hhN=new _.P6("APP_ROOT");var uP5=null;var xvC=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],dv=function(){_.yg.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Lse(this)};
_.h(dv,_.yg);dv.prototype.verifyUser=function(){var D=Lse(this),C=D.logout;if(!D.sessionChange)return!0;this.dispatchEvent("ytsessionchange");C&&this.dispatchEvent("ytuserinvalid");return!1};
var Lse=function(D){var C=xvC.map(function(W){var p;return(p=_.Yz.get(W))!=null?p:""}),X=C.some(function(W,p){return D.sessionCookies&&D.sessionCookies[p]!==""&&W===""}),c=C.some(function(W,p){return D.sessionCookies&&D.sessionCookies[p]!==W});
D.sessionCookies=C;return{logout:X,sessionChange:c}};
dv.prototype.clearTimeout=function(){this.scheduledJobId&&(_.qX.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var htW=new _.P6("POSTMESSAGE_TUNNEL_TOKEN");var b$m=["/parent_tools","/file_download","/artist_roster"],sy5=[f6e,dJC,RvM,DAk,l6q,qBc,CGN,XtC];var RL=new _.P6("NAVIGATION_CONFIRMATION_SERVICE");var slg="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),mv5=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],lC=function(D,C){this.pendingNavigationPromise=null;this.JSC$14758_clientRoot=D;this.historyManager=C;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=
new uQe;this.debugString=D.is;D={"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};_.p2(_.Wf.getInstance(),D,this.JSC$14758_clientRoot)},Y0C,y55,n2d,wBb,Nw5;
_.h(lC,KsN);lC.prototype.reload=function(){_.nH(window.location.href)};
var Eec=function(D){D.currentEndpoint&&_.r(D.currentEndpoint,_.ko)?D.reload():D.currentEndpoint&&D.navigate(D.currentEndpoint,!0,void 0,{disableCache:!0})};
lC.prototype.navigate=function(D,C,X,c,W,p,g,a){C=C===void 0?!1:C;X=X===void 0?{}:X;c=c===void 0?{}:c;var O=_.iX().resolve(RL),P;if(!g&&kXM(O,(P=this.currentEndpoint)!=null?P:void 0,D))return O.showConfirmationDialog(this.JSC$14758_clientRoot.parentElement,{endpoint:D,reload:C,params:X,tempData:c,requestType:W,createScreenConfig:p}),!1;var k=_.uP();_.Q4(k,"eocs")||k.parkOrScheduleJob(function(){k.processSignal("eocs")},10,"eor");
QyZ();g=vl(D);O=c.autonav==="1";P=_.LN();dv.instance||(dv.instance=new dv);var u=dv.instance.verifyUser(),Q;if(_.b("enable_dark_theme_only_on_shorts")){var B=document.documentElement.hasAttribute("dark"),K=_.FU(!0)==="USER_INTERFACE_THEME_DARK";if(g==="shorts"){if(!B)if(_.b("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var L;_.nH((L=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:L.url,void 0,void 0,window.top)}}else{var t;_.nH(_.gT((t=_.r(D==
null?void 0:D.commandMetadata,_.ge))==null?void 0:t.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.b("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!B){var Y;_.nH(_.gT((Y=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:Y.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(K!==B){var y;_.nH(_.gT((y=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:y.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(g==="watch"){if(ehf(_.iX().resolve(_.wB),
D)&&(u||_.b("fix_miniplayer_navigation_killswitch")))return!1;_.b("block_all_player_prefetch_requests")||(Q=m2f(_.ly(_.T0),D,O))}else{var J,T=(J=_.r(this.currentEndpoint,_.TC))==null?void 0:J.videoId;T&&_.oc.getInstance().then(function(Fd){Fd&&Fd.set("yt-miniplayer-shown-video-id",T)})}Q&&(X.frags=Q.missingFragments_.join(","));
L=null;var H;t=(H=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:H.ignoreNavigation;if(!t)if(_.b("kevlar_command_url")){var q;L=(q=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?void 0:q.url}else L=_.ouj(D,X);if(L&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&L==this.lastNavigationUrl)return _.hZ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.AT(Yr(),"CANCELLED")}L&&(this.lastNavigationUrl=L);RmF();_.M6("IS_HOMEPAGE_COLD",
!1);_.M6("IS_RESULTS_PAGE_COLD",!1);_.M6("IS_WATCH_PAGE_COLD",!1);D.loggingUrls&&D.loggingUrls.forEach(function(Fd){Fd.baseUrl&&_.WL(Fd.baseUrl)});
_.tFt(D,p?p.layer:0)&&_.b("kevlar_flush_logs_on_away_navigation")&&_.je();if(mjh(D))return!1;azq(g,W);if(!L)return t||_.fQ(new _.Zf("Can't construct url for endpoint",D)),_.AT(Yr(),"FAILURE"),!1;_.BNJ();H=D&&_.r(D,_.Pl)&&_.r(D,_.Pl).browseId.startsWith("UC");X=(q=_.b("enable_dark_theme_only_on_shorts")&&g==="shorts"?!1:_.Zg()&&document.documentElement.hasAttribute("dark")!==_.wL())?{themeRefresh:1}:{};q&&!_.nC()&&_.FU()==="USER_INTERFACE_THEME_DARK"&&(X.theme="dark");H=q||E2C(L)&&!H&&!_.b("kevlar_disable_url_allowlist");
u||(H=!0);if(H||_.q6("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var R;var ph=(R=window.top)==null?void 0:R.location.href}catch(Fd){var Om;ph=(Om=Fd)==null?void 0:Om.message}_.fQ(new _.Zf("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:ph}))}D=_.b("kevlar_redirect_on_window_killswitch")?window.top:window;Yo(L);_.nH(_.gT(L,X),void 0,void 0,D);_.AT(Yr(),"ABORTED");return!1}_.b("kevlar_early_popup_close")&&_.DS(this.JSC$14758_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14735_chunkHandler=void 0;var xj;ph=vl((xj=this.currentEndpoint)!=null?xj:void 0);(xj=g==="shorts"&&ph==="shorts")||_.MTt();_.lq(yfh)("nr",void 0);O&&_.hZ({webInfo:{navigationReason:"an"}});D.clickTrackingParams&&(c.itct=D.clickTrackingParams,c.csn=P);dVr(c);c.endpoint=JSON.stringify(D);_.b("enable_unknown_lact_fix_on_html5")&&(_.iX().resolve(_.B0),c.lact=_.kl());_.ZI.isEmpty(c)||_.jc(L,c);!_.b("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(p=Object.assign({},{layer:0},p,{parentLayer:3}));this.pendingNavigationPromise=p=Bwq(this.pageFetcher,D,c,this.currentEndpoint,this.JSC$14758_isNetworkPromiseStale.bind(this),p,a);p=p.then(this.handleNavigateSuccess.bind(this,p,D,Q,c),this.handleNavigateFail.bind(this,p,D));_.qg().navigationFinishPromise=p;C={endpoint:D,pageType:g,url:Sr(L),reload:!!C,noProgressBar:xj};W&&(C.type=W);var Bo;W=_.A9((Bo=this.currentEndpoint)!=null?Bo:null);Bo=_.A9(D!=null?D:null);this.fireEvent("yt-navigate-start",
C);var r5;(r5=_.iX().resolve(_.vK(_.r5b)))==null||r5.publish("navigation-start",{sourcePageSubtype:W,destinationPageSubtype:Bo});Q&&bwq(this.pageFetcher,D,Q,c,this.currentEndpoint);return!0};
lC.prototype.JSC$14758_isNetworkPromiseStale=function(D){return D!=this.pendingNavigationPromise};
var t2e=function(D,C,X,c,W){var p=vl(C);C={endpoint:C,pageType:p};W&&(C.errorMessage=W);_.fQ(X);C.navigationDoneMs=_.sp("nd");C.navigationErrorReason=c;D.fireEvent("yt-navigate-error",C)};
lC.prototype.handleNavigateFail=function(D,C,X){var c=void 0;X instanceof _.wE&&(c=X,XXd(X));if(this.JSC$14758_isNetworkPromiseStale(D))return _.x7(c);_.AT(Yr(),"FAILURE");t2e(this,C,X,"101");return _.x7(X)};
lC.prototype.handleNavigateSuccess=function(D,C,X,c,W){if(this.JSC$14758_isNetworkPromiseStale(D))return _.WE();this.pendingNavigationPromise=null;if(!W)return C=new _.Zf("Missing data in response for navigation endpoint",C),_.x7(C);if(W.reload)return window.location.reload(!0),_.WE();X&&(D={},_.ZI.extend(D,_.szJ(X),W),W=D);var p,g;X=(p=W)==null?void 0:(g=p.timing)==null?void 0:g.responseStart;X!=null&&_.sp("srt",X);_.sp("pdc");var a,O;p=(a=W)==null?void 0:(O=a.timing)==null?void 0:O.info;p!=null&&
(a=_.lq(_.Zod)(p),_.hZ(a));_.AT(Yr(),"SUCCESS");Nw5(this,C,W,1,c);return _.WE()};
var E2C=function(D){var C=D;_.b("kevlar_no_redirect_to_classic_2_ks")||(C=(new _.H7(D)).getPath());if(C==="/"||C==="/red")return!1;var X=!0;slg.forEach(function(c){D.indexOf(c)===0&&(X=!1)});
mv5.forEach(function(c){var W=c.url;_.b(c.expFlag)&&D.indexOf(W)===0&&(X=!1)});
return X};
lC.prototype.publishPageData=function(D){this.fireEvent("yt-page-data-fetched",{pageData:D})};
Y0C=function(D,C,X,c,W,p){var g=null;C.page!=="watch"&&C.page!=="learning_journey_watch"||c?C.filler||_.DS(D.JSC$14758_clientRoot,"yt-stop-old-player",[C]):g=Qld(D.pageFetcher,W,C,X,!1,p,void 0,D.currentEndpoint);if(g)return g.then(D.publishPageData.bind(D,C));D.publishPageData(C);return _.WE()};
y55=function(D,C,X){var c=null;if(!X)return c=new _.Zf("Empty data",D.debugString,C);var W=X.response;if(!W)return c;var p={endpointType:vl(C)||"unknown"};W.responseContext?(W=W.responseContext.errors)&&(c=new _.Zf("Errors in response context",D.debugString,C,W,p)):c=W.error||W.errorMetadata?new _.Zf("Errors in response",D.debugString,C,W.error,W.errorMetadata,p):new _.Zf("responseContext missing",D.debugString,C,Object.keys(W).sort().join(","),p);var g,a,O,P;if(D=X==null?void 0:(g=X.response)==null?
void 0:(a=g.responseContext)==null?void 0:(O=a.webResponseContextExtensionData)==null?void 0:(P=O.webResponseContextDebugData)==null?void 0:P.debugErrorMessages)for(g=0;g<D.length;g++);return c};
n2d=function(D){var C,X,c,W;return D==null?void 0:(C=D.response)==null?void 0:(X=C.responseContext)==null?void 0:(c=X.errors)==null?void 0:(W=c.error)==null?void 0:W["0"]};
wBb=function(D,C){var X;if(X=C.url&&!C.url.startsWith("/clip"))X=C.url,X=!_.b("webfe_parse_debug_param_in_resolveurl_service")&&D.searchDebugUrlMatcher.test(X)||OtR(X)?!0:!1;if(X)OtR(C.url)&&_.UY(window.location.href).themeRefresh?(C=_.MF(C.url,"themeRefresh"),_.jv(D.historyManager,C)):C.url&&!PrW(C.url)&&_.jv(D.historyManager,C.url);else if(C.endpoint){var c,W,p;(X=(c=C.endpoint)==null?void 0:(W=c.commandMetadata)==null?void 0:(p=W.webCommandMetadata)==null?void 0:p.url)&&!PrW(X)&&_.jv(D.historyManager,
X);X&&C.url&&X!=C.url&&!C.url.match("playnext=1")&&new _.Zf("Response url mismatch in response data",D.debugString,X,C.url)}};
_.Fse=function(D,C,X,c,W,p,g,a){p=p===void 0?!1:p;var O=_.iX().resolve(RL),P;if(!a&&kXM(O,(P=D.currentEndpoint)!=null?P:void 0,C))return O.showConfirmationDialog(D.JSC$14758_clientRoot.parentElement,{endpoint:C,data:X,navigationType:c,tempData:W,isMiniplayer:p,isForwardHistoryNavigation:g==null?void 0:g.forward}),_.WE();D.pageFetcher.JSC$14735_chunkHandler=void 0;return Nw5(D,C,X,c,W,p)};
Nw5=function(D,C,X,c,W,p){p=p===void 0?!1:p;D.isMiniplayerExpansion=p;var g=c===2;D.currentEndpoint=C;D.numNavigations++;D.numNavigations&&(wwr.navigationCount=D.numNavigations);_.M6("NUM_NAV",D.numNavigations);var a=y55(D,C,X);if(a)return t2e(D,C,a,"102",n2d(X)),_.x7(a);var O,P,k,u;a=X.rootVe||(X==null?void 0:(O=X.response)==null?void 0:(P=O.responseContext)==null?void 0:(k=P.webResponseContextExtensionData)==null?void 0:(u=k.ytConfigData)==null?void 0:u.rootVisualElementType);!g&&X&&wBb(D,X);var Q,
B;O=X==null?void 0:(Q=X.response)==null?void 0:(B=Q.responseContext)==null?void 0:B.maxAgeSeconds;if(!g&&!isNaN(O)){var K;_.b("kevlar_use_response_ttl_to_invalidate_cache")?K=(0,_.kh)()+1E3*O:_.b("kevlar_always_invalidate_cache")&&(K=0);isNaN(K)||(X.expirationTime=K)}_.ly(_.T0).prefetchCache_.clear();g||X.page!=="watch"||X.type!=="reduced"&&c!==1?c=Y0C(D,X,g,!!p,C,W):(D.publishPageData(X),c=_.WE());W=c.then(function(){var L=vl(C);L={endpoint:C,pageType:L,fromHistory:g,response:X};L.navigationDoneMs=
_.sp("nd");D.fireEvent("yt-navigate-finish",L);var t;(t=_.iX().resolve(_.vK(_.r5b)))==null||t.publish("navigation-end")});
X.csn&&a&&X.clientSideGrafts&&c.then(D.attachClientSideGrafts.bind(D,X,_.xr()));return W};
_.S=lC.prototype;_.S.attachClientSideGrafts=function(D,C){D.clientSideGrafts&&C&&D.clientSideGrafts.forEach(function(X){if(C&&X){var c=_.bO(X);_.b("combine_ve_grafts")?_.iO().graftServerVe(X,C):_.F_(D.csn,C,c)}})};
_.S.handleSignalActionHistoryBack=function(){window.history.back()};
_.S.handleSignalActionCloseWindow=function(){window.close()};
_.S.handleSignalActionReloadPage=function(){this.reload()};
_.S.handleSignalActionSoftReloadPage=function(){Eec(this)};
_.S.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.S.fireEvent=function(D,C){D=new CustomEvent(D,{bubbles:!0,cancelable:!1,composed:!0,detail:C});this.dispatchEvent(D)};
_.S.addEventListener=function(D,C){this.JSC$14758_clientRoot.addEventListener(D,C)};
_.S.dispatchEvent=function(D){return this.JSC$14758_clientRoot.dispatchEvent(D)};
_.S.removeEventListener=function(D,C){this.JSC$14758_clientRoot.removeEventListener(D,C)};
lC[kz]=[hhN,_.Mx];_.Ai5=new I1("browse","h8y2qb");_.P0h=new I1("search","JzFVk");_.$t3=new I1("shorts","xwEKAe");_.vRm=new I1("watchFixie","nmfa2d");_.ivn=new I1("watchFlexy","CF909");_.kzW=new I1("watchGrid","Tm0L3c");_.uKW=new I1("watchLearningJourney","L3n37");var ZwN;var GXC=function(){return _.w.apply(this,arguments)||this};
_.h(GXC,_.w);_.$a.Object.defineProperties(GXC,{template:{configurable:!0,enumerable:!0,get:function(){if(ZwN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);ZwN=D}D=ZwN;return D}}});
_.V([_.m(G9d.YtPlayerBehavior),_.z("design:type",Object)],GXC.prototype,"ytPlayerBehavior",void 0);_.V([_.yj({is:"ytd-player"})],GXC);var V2b;var Twf;var HwN;var Dd=function(){var D=_.w.apply(this,arguments)||this;D.forceModernIconButton=!1;D.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return D};
_.h(Dd,_.w);Dd.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]]"}}}}}};
Dd.prototype.handleAccountLinkingStateChangedCommand=function(D){if(D=_.r(D,kS5)){var C,X=(C=this.data)==null?void 0:C.providerKey;C=D.providerKey;X&&C&&X.id===C.id&&X.subject===C.subject&&(D=D.linked,D!==void 0&&(this.set("data.linked",D),this.notifyPath("data.linked"),_.b("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(D)))}};
Dd.prototype.setPlayerAccountLinkState=function(D){var C=new Yq5;yFM(C,tm4(new ELe,D));var X=_.CT();X&&X.getPlayerPromise().then(function(c){c.setAccountLinkState(_.tP(C.JSC$12484_serializeBinary(),4));c.updateAccountLinkingConfig(D)})};
Dd.prototype.handleShowAccountLinkDialog=function(){var D=this.get("button.buttonRenderer.command");D&&_.Sy([D],this.hostElement)};
_.$a.Object.defineProperties(Dd.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.V([_.m([_.Jy.YtActionHandlerBehavior]),_.z("design:type",Object)],Dd.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Dd.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Dd.prototype,"overrides",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Dd.prototype,"forceModernIconButton",void 0);_.V([_.n({value:"bottom"}),_.z("design:type",String)],Dd.prototype,"buttonTooltipPosition",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Dd.prototype,"forceIconButton",void 0);_.V([_.n(),_.z("design:type",Boolean)],Dd.prototype,"disableTextTransform",void 0);
_.V([_.e("data","data.linked","data.isWarning"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dd.prototype,"button",null);_.V([_.yj({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Dd);
_.G(Dd,"ytd-account-link-button-renderer",function(){if(HwN!==void 0)return HwN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return HwN=D},{mode:1});var J5N;var zhc=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],C6=function(){return _.w.apply(this,arguments)||this};
_.h(C6,_.w);C6.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
C6.prototype.updateButtonActiveState=function(){var D=this,C=!!zhc.find(function(X){return D.currentState===X});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.b("enable_web_delhi_icons")&&(C=!1);this.button&&(this.button.isPressed=C)};
_.$a.Object.defineProperties(C6.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.playlistLoopStateEntity)==null?void 0:D.state)||((C=this.data)==null?void 0:C.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=void 0,C;if(this.currentState&&((C=this.data)==null?0:C.states)){C=_.U(this.data.states);for(var X=C.next();!X.done;X=C.next()){X=_.r(X.value,_.NPg);var c=void 0;if(((c=X)==null?void 0:c.state)===this.currentState){D=X;break}}}return D}}});
C6.prototype.updateButtonActiveState=C6.prototype.updateButtonActiveState;_.V([_.m(_.OA),_.z("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.ck.playlistLoopStateEntitySelector}),_.z("design:type",Object)],C6.prototype,"playlistLoopStateEntity",void 0);_.V([_.n(),_.z("design:type",Object)],C6.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],C6.prototype,"forceIconOnly",void 0);_.V([_.kn("ytd-button-renderer"),_.z("design:type",_.t$)],C6.prototype,"button",void 0);
_.V([_.e("data","playlistLoopStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],C6.prototype,"currentState",null);_.V([_.vr("currentButtonStateRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C6.prototype,"updateButtonActiveState",null);_.V([_.e("currentState"),_.z("design:type",Object),_.z("design:paramtypes",[])],C6.prototype,"currentButtonStateRenderer",null);
_.V([_.yj({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],C6);
_.G(C6,"ytd-playlist-loop-button-renderer",function(){if(J5N!==void 0)return J5N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return J5N=D},
{mode:1});var jl5;var M2J=_.I7("DOWNLOAD",{},"Download"),q0N=_.I7("DOWNLOADING",{},"Downloading"),fUN=_.I7("DOWNLOADED",{},"Downloaded"),dvf=_.I7("RETRY",{},"Retry"),X0=function(){var D=_.w.apply(this,arguments)||this;D.forceIconButton=!1;D.forceIconOnly=!1;D.overrides=!1;D.buttonTooltipPosition=!1;D.styleActionButton=!1;D.disableTextTransform=!1;D.downloadProgress=0;D.isDownloadComplete=!1;D.isHidden=!0;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return D};
_.h(X0,_.w);_.S=X0.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.dataChanged=function(){var D;(D=this.data)!=null&&D.text||(D=_.YP(_.fe().getState(),this.videoId),this.updateButtonState(D))};
_.S.computeVideoId=function(D){return D};
_.S.computePlayerStateEntityKey=function(D){return D};
_.S.showHideButton=function(){this.updateButtonVisibility()};
_.S.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var D;((D=this.playerStateEntity)==null?void 0:D.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.S.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.S.updateButtonState=function(D){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==q0N||!_.u8(D))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=M2J;var C="OFFLINE_DOWNLOAD";var X="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":D=dvf;C="OFFLINE_DOWNLOAD";X="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":D=fUN;C="OFFLINE_PIN";X="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":D=
q0N;C="OFFLINE_DOWNLOADING_ZERO";X="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":D=dvf;C="OFFLINE_DOWNLOAD";X="ACTION_RETRY";break;default:D=M2J,C="OFFLINE_DOWNLOAD",X="ACTION_ADD"}this.isVideoDeletedByUser&&(D=M2J,C="OFFLINE_DOWNLOAD",X="ACTION_ADD");var c=Object.assign({},this.data);c.text=_.jV(D);c.tooltip=D;c.icon={iconType:C};c.size="SIZE_DEFAULT";c.style="STYLE_DEFAULT";_.r(c.command,_.vX)&&(_.r(c.command,_.vX).action=X);this.set("data",c)}};
_.S.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?D="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var C;D!==((C=this.data.icon)==null?void 0:C.iconType)&&(C=Object.assign({},this.data),C.text=_.jV(q0N),C.tooltip=q0N,C.icon={iconType:D},_.r(C.command,_.vX)&&(_.r(C.command,_.vX).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",C))}};
X0.prototype.updateProgress=X0.prototype.updateProgress;X0.prototype.onTransferStateChanged=X0.prototype.onTransferStateChanged;X0.prototype.showHideButton=X0.prototype.showHideButton;X0.prototype.dataChanged=X0.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],X0.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],X0.prototype,"forceIconButton",void 0);
_.V([_.n(),_.z("design:type",Object)],X0.prototype,"forceIconOnly",void 0);_.V([_.n(),_.z("design:type",Object)],X0.prototype,"overrides",void 0);_.V([_.n(),_.z("design:type",Object)],X0.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.z("design:type",Object)],X0.prototype,"styleActionButton",void 0);_.V([_.n(),_.z("design:type",Object)],X0.prototype,"disableTextTransform",void 0);
_.V([_.n({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.z("design:type",String)],X0.prototype,"videoId",void 0);_.V([_.n({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.z("design:type",String)],X0.prototype,"playerStateEntityKey",void 0);_.V([_.n(),_.z("design:type",Object)],X0.prototype,"data",void 0);_.V([_.n({selector:wJ,selectorArgs:["videoId"]}),_.z("design:type",Object)],X0.prototype,"downloadProgress",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],X0.prototype,"isDownloadComplete",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],X0.prototype,"isHidden",void 0);_.V([_.n({selector:_.YP,selectorArgs:["videoId"]}),_.z("design:type",String)],X0.prototype,"transferState",void 0);_.V([_.n({selector:_.ler,selectorArgs:["videoId"]}),_.z("design:type",Object)],X0.prototype,"isVideoDeletedByUser",void 0);
_.V([_.n({selector:jso,selectorArgs:["videoId"]}),_.z("design:type",Object)],X0.prototype,"offlineabilityState",void 0);_.V([_.n({selector:_.a_,selectorArgs:["playerStateEntityKey"]}),_.z("design:type",Object)],X0.prototype,"playerStateEntity",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],X0.prototype,"showTooltips",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],X0.prototype,"sendCommandWhenDisabled",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],X0.prototype,"disabled",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"dataChanged",null);_.V([_.bH("offlineabilityState","playerStateEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"showHideButton",null);
_.V([_.bH("transferState","isVideoDeletedByUser"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"onTransferStateChanged",null);_.V([_.bH("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X0.prototype,"updateProgress",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],X0);
_.G(X0,"ytd-download-button-renderer",function(){if(jl5!==void 0)return jl5;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return jl5=D},{mode:2});var Rh4;var lUx,Dax=function(){if(lUx!==void 0)return lUx;var D=document.createElement("template");_.x(D,'\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 lUx=D};var CzM=_.b("web_button_rework")&&_.dq("BUTTON_REWORK")||_.b("web_button_rework_with_live"),XDf=_.BK("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,cO=function(){var D=_.w.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.alignByText=!1;D.isShorts=!1;D.animatedText=!1;D.shouldAnimate=!1;D.JSC$14796_browserSupportsAnimation=_.b("web_supports_animations_api");D.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};D.onTap=function(){var C;if((C=D.data)==null||!C.defaultNavigationEndpoint){var X;C=!((X=D.data)==null?0:X.isToggled);var c;if((c=D.data)==null||!c.preventAutoToggle){D.shouldAnimate=!1;D.disableTextUpdateJobId&&_.qX.cancelJob(D.disableTextUpdateJobId);D.disableTextUpdateJobId=_.qX.addLowPriorityJob(function(){D.disableTextUpdateJobId=void 0},XDf);
var W;D.set("data.isToggled",!((W=D.data)==null?0:W.isToggled));X=D.getInnertubeIcon();c={toggled:C,actions:{}};X&&(c.actions[X.toLowerCase()]=C);_.lE(D.hostElement,"yt-toggle-button",c)}}};
return D};
_.h(cO,_.w);_.S=cO.prototype;_.S.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.qX.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.toggle=function(D){var C;this.set("data.isToggled",D!==void 0?D:!((C=this.data)==null?0:C.isToggled))};
_.S.handleUpdateToggleButtonStateCommand=function(D){if(this.data){D=_.r(D,K_g);var C,X,c,W=(C=this.data)==null?void 0:(X=C.toggleButtonSupportedData)==null?void 0:(c=X.toggleButtonIdData)==null?void 0:c.id;W&&D&&W===(D==null?void 0:D.buttonId)&&this.set("data.isToggled",D.toggled)}};
_.S.handleUpdateToggleButtonTextAction=function(D){if(this.data){D=_.r(D,Jbb);var C,X,c,W=(C=this.data)==null?void 0:(X=C.toggleButtonSupportedData)==null?void 0:(c=X.toggleButtonIdData)==null?void 0:c.id;W&&D&&W===(D==null?void 0:D.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=D.defaultNumericalValue,this.set("data.defaultText",D.defaultText),this.set("data.toggledText",D.toggledText),this.shouldAnimate=!1)}};
_.S.getInnertubeIcon=function(){var D=this.data;if(D){var C,X,c=((C=D.defaultIcon)==null?0:C.iconType)?(X=D.defaultIcon)==null?void 0:X.iconType:null,W,p;C=((W=D.toggledIcon)==null?0:W.iconType)?(p=D.toggledIcon)==null?void 0:p.iconType:c;return D.isToggled?C:c}};
_.S.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.$a.Object.defineProperties(cO.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D={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$14796_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var C=D.renderer;var X=D.element;var c=D.toggled;var W=D.onTapCallback;var p=D.commandClientArgs;var g=D.overrides;var a=D.forceIcon;var O=D.forceModernIconButton;var P=D.forceDisabled;var k=D.useAnimatedText;var u=D.animatedTextProps;D=yJr(C,c);a=!C.defaultIcon||!a&&C.defaultText?C.defaultIcon?"leading":void 0:O?"icon-only":"icon-only-40";a==="icon-only-40"&&(D.type="text");var Q;O=Object;var B=O.assign,K;a:switch((K=
C.style)==null?void 0:K.styleType){case "STYLE_COMPACT_GRAY":K={size:"S"};break a;default:K={size:"M"}}var L=!!c;var t=(t=c&&C.toggledText||C.defaultText)?_.e6(t):void 0;k?(k=_.Mh(c&&C.toggledText||C.defaultText))&&u&&!isNaN(Number(u.numberValue))?(u.numberText=k,c&&(u.numberValue+=1),k=u):k=void 0:k=void 0;var Y,y,J,T;var H=(u=((y=c?C.toggledAccessibilityData||((H=C.toggledText)==null?void 0:H.accessibility):C.accessibilityData||((Y=C.defaultText)==null?void 0:Y.accessibility))==null?void 0:(J=y.accessibilityData)==
null?void 0:J.label)||((T=C.accessibility)==null?void 0:T.label))?u:_.Mh(c&&C.toggledText||C.defaultText);P=P===void 0?C.isDisabled:P;X=YRm(C,c,W,X,p);c=NNm(C,c);c!=null&&c.length?(c=_.nb({innertubeCommand:k$J(c),forceNewState:!0}),c=w2(c)?c:void 0):c=void 0;C=B.call(O,{},D,K,{iconPosition:a},g,{focused:!1,toggled:L,toggleable:!0,formattedButtonText:t,animatedTextProps:k,accessibilityLabel:H,disabled:P,onTap:X,aTagConfig:c},jWr((Q=C.colorData)==null?void 0:Q.basicColorPaletteData));C.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(C.type="filled");return C}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.getInnertubeIcon();if(D)return _.g2(D)}}});
cO.prototype.resetAnimation=cO.prototype.resetAnimation;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],cO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],cO.prototype,"isPressed",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"forceIconButton",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"forceIconOnly",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"forceModernIconButton",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"alignByText",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"overrides",void 0);
_.V([_.n(),_.z("design:type",Boolean)],cO.prototype,"disabled",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"isShorts",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.z("design:type",Object)],cO.prototype,"animatedText",void 0);_.V([_.n(),_.z("design:type",String)],cO.prototype,"textNumberValue",void 0);_.V([_.n({computed:"computeTooltip(data, data.isToggled)"}),_.z("design:type",Object)],cO.prototype,"tooltip",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cO.prototype,"resetAnimation",null);_.V([_.e("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.z("design:type",Object),_.z("design:paramtypes",[])],cO.prototype,"computedButtonShape",null);_.V([_.e("data.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],cO.prototype,"computedIcon",null);
_.V([_.yj({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],cO);CzM&&_.G(cO,"ytd-toggle-button-renderer",Dax,{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var cBf=_.F(function(D){function C(P){var k;return _.I(function(u){if(u.nextAddress==1)return(k=!w45(P,a())||!a().enabled)?u.jumpTo(2):u.yield(TNm(),3);u.nextAddress!=2&&(k=u.yieldResult);if(k)return u.return();X();setTimeout(function(){g(!1)},1500);
_.t_(u)})}
function X(){setTimeout(function(){g(!0);var P;(P=c.lottieEl)==null||P.goToAndPlay(0)},150)}
var c=_.PX(),W=_.U(_.Li(!1,void 0,"UfUosc")),p=W.next().value,g=W.next().value,a=_.di(D.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.JU(function(){var P,k;((P=D.settings)==null?void 0:(k=P.call(D))==null?void 0:k.uniqueId)==="this is not intended behavior"&&_.fQ(new _.Zf("Smartimation Settings is undefined"))});
_.Jw(function(){a().experimentEnabled&&(a().enabled?FTh(C):(g(!1),Z$W(C)),_.z3(function(){Z$W(C)}))},"IHhVmc");
_.Jw(function(){a().timings.join("");a().experimentEnabled&&(GFm(a()),_.z3(function(){VFr(a())}))},"fsfhOe");
var O=_.tw(function(){var P=c,k=a().uniqueId+"-border",u,Q;var B="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Q=(u=_.iX().resolve(_.vK(_.Hc)))==null?void 0:u())!=null&&Q?"dark":"light")+"_v2.json";return{animationRef:P,animationConfig:{name:k,autoplay:!1,loop:!1,path:B}}},void 0,"UWvUGe");
W={};return _.A("yt-smartimation",{class:_.g$(D.className,"smartimation",(W["smartimation--experiment-enabled"]=function(){return a().experimentEnabled},W["smartimation--active-border"]=p,W["smartimation--enable-masking"]=H$d(),W))},_.A(_.v,{cond:function(){return a().experimentEnabled},
then:function(){return _.A("div",{class:"smartimation__border"},_.A(_.zl,{className:"smartimation__border-gradient",data:O,animationName:function(){return O().animationConfig.name}}))}}),_.A("div",{class:"smartimation__content"},D.children))},"ha");
cBf.idomCompat=!0;_.CI(cBf,"yt-smartimation",{props:{className:_.Bm,settings:_.Bm}});var o4=function(){var D=_.w.apply(this,arguments)||this;D.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};D.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};D.shouldEnableSmartimation=!1;return D};
_.h(o4,_.w);o4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
o4.prototype.onDataChanged=function(){var D,C;this.shouldEnableSmartimation=(((D=this.data)==null?void 0:(C=D.timedAnimationData)==null?void 0:C.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
o4.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var D=_.r(this.data.likeButton,_.Pj),C=_.r(this.data.dislikeButton,_.Pj);return!!((D==null?0:D.isToggled)||(C==null?0:C.isToggled))};
o4.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]]"}}}}}};
_.$a.Object.defineProperties(o4.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,C,X=((D=this.data)==null?void 0:(C=D.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"like-dislike",timings:X,enabled:this.shouldEnableSmartimation,experimentEnabled:X.length>0}}}});
o4.prototype.onDataChanged=o4.prototype.onDataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],o4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],o4.prototype,"likeButtonOverride",void 0);_.V([_.n(),_.z("design:type",Object)],o4.prototype,"dislikeButtonOverride",void 0);
_.V([_.e("shouldEnableSmartimation"),_.z("design:type",Object),_.z("design:paramtypes",[])],o4.prototype,"smartimationSettings",null);_.V([_.vr("data"),_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o4.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],o4);
_.G(o4,"ytd-segmented-like-dislike-button-renderer",function(){if(Rh4!==void 0)return Rh4;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Rh4=D},{mode:1});var oqk;var Wk5;(Wk5=document.body)==null||Wk5.setAttribute("rounded-container","");var pD5={};pD5.YtToggleButtonBehavior=[_.Jy.YtActionHandlerBehavior,Rs.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 D=this.data.isToggled;if(!this.isModal_(D)){if(!this.data.preventAutoToggle){this.toggle();var C={toggled:this.data.isToggled,actions:{}};C.actions[this.buttonIcon]=this.data.isToggled;_.lE(this.hostElement,"yt-toggle-button",C)}C=this.data.defaultServiceEndpoint||null;var X=this.data.toggledServiceEndpoint||null;if(C&&X||C&&this.data.preventAutoToggle)D=D?X:C,C=this.disableCommandHandlerOverride,_.b("killswitch_toggle_button_behavior_resolve_command")||C?_.cE(this.hostElement,
[D]):_.O4(D,this.hostElement),_.lE(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:D})}},
stateChanged_:function(){var D=this.data;if(D){var C=D.isToggled;this._setEndpoint(this.computeEndpoint_(D));this._setServiceEndpoint(this.computeServiceEndpoint_(D));this._setButtonIcon(this.computeButtonIcon_(D,C));this._setButtonText(this.computeButtonText_(D,C));this._setButtonAccessibility(this.computeAccessibility_(D,C));this._setButtonTooltip(this.computeTooltip_(D,C));this._setButtonClass(this.computeButtonClass_(D,C));this._setIconPositionType(this.computeIconPositionType_(D));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=C):this.elements_.button.setAttribute("aria-pressed",C));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=C)}},
shouldSetIconActiveState_:function(){return _.b("kevlar_system_icons")},
toggle:function(D){this.set("data.isToggled",D!==void 0?D:!this.data.isToggled);_.b("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(D){if(D){var C,X;return!!((C=this.data)==null?0:(X=C.toggledServiceEndpoint)==null?0:X.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(D){return D&&D.defaultNavigationEndpoint||null},
computeButtonIcon_:function(D,C){var X=D&&D.defaultIcon?_.g2(D.defaultIcon.iconType):null;D=D&&D.toggledIcon?_.g2(D.toggledIcon.iconType):X;return C?D:X},
handleUpdateToggleButtonStateCommand_:function(D){D=D.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&this.toggle(D.toggled)},
computeButtonText_:function(D,C){return D?C&&D.toggledText||D.defaultText||null:null},
computeAccessibility_:function(D,C){return D?(C?this.get("toggledAccessibilityData.accessibilityData",D):this.get("accessibilityData.accessibilityData",D))||D.accessibility||null:null},
computeTooltip_:function(D,C){return D?C&&D.toggledTooltip||D.defaultTooltip||null:null},
computeButtonClass_:function(D,C){if(!D)return"";var X="",c=D.toggledStyle||D.style;if(C=C?c:D.style){C.styleType&&(C=C.styleType);try{X+=C.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.dO(W,C,typeof C),_.fQ(W)}}if(D=D.size){D.sizeType&&(D=D.sizeType);try{X+=D.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.dO(W,D,typeof D),_.fQ(W)}}return X.trim()},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeServiceEndpoint_:function(D){var C=D&&D.serviceEndpoint,X=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:X&&D.command?D.command:null},
handleUpdateToggleButtonTextAction_:function(D){D=D.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&(this.set("data.defaultText",D.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",D.toggledText),this.notifyPath("data.toggledText"))}}];_.sI("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Sl4=_.b("web_button_rework")&&_.dq("BUTTON_REWORK")||_.b("web_button_rework_with_live"),WO=function(){var D=_.w.apply(this,arguments)||this;D.systemIcons=_.b("kevlar_system_icons");D.roundedContainer=!0;return D};
_.h(WO,_.w);WO.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
WO.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var D=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var C={toggled:!!this.data.isToggled,actions:{}};C.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var X,c;C.actions.playlistId=(X=this.data.defaultServiceEndpoint)==null?void 0:(c=X.playlistEditEndpoint)==null?void 0:c.playlistId;_.lE(this.hostElement,"yt-toggle-button",C)}(D=D?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(D)}};
WO.prototype.onYtNavigate=function(D){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);C&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(C))};
_.$a.Object.defineProperties(WO,{template:{configurable:!0,enumerable:!0,get:function(){if(oqk===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);oqk=D}D=oqk;return D}}});
WO.prototype.onYtNavigate=WO.prototype.onYtNavigate;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],WO.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],WO.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(pD5.YtToggleButtonBehavior),_.z("design:type",Object)],WO.prototype,"ytToggleButtonBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],WO.prototype,"data",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],WO.prototype,"showTooltips",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],WO.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],WO.prototype,"roundedContainer",void 0);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],WO.prototype,"onYtNavigate",null);
_.V([_.yj({is:"ytd-toggle-button-renderer",disableElementRegistration:Sl4})],WO);var Uae,gqM;_.p6=new _.P6("PANEL_CONTROLLER_TOKEN");_.S0=new _.P6("SHEET_CONTROLLER_TOKEN");_.U_=new _.P6("DIALOG_CONTROLLER_TOKEN");Uae=new _.P6("DIALOG_CONTAINER_TOKEN");gqM=new _.P6("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.gu=new _.P6("PERSISTENT_PANEL_CONTROLLER_TOKEN");var lMZ=_.I7("DOWNLOAD",{},"Download"),DZm=_.I7("DOWNLOADING",{},"Downloading"),C73=_.I7("DOWNLOADED",{},"Downloaded"),XUr=_.I7("RETRY",{},"Retry");var alb=_.F(function(D){var C=Sor,X=function(){return""},c=cQd(D.data),W=oWj(D.data),p=Wc5(D.data),g=pUF(D.data);
C=function(){var a=D.data(),O=dj5(a,c(),W(),p(),g()),P=!!a.videoId,k=O.text;return{title:P?k:void 0,tooltip:P?void 0:k,accessibilityText:k,onTap:O.onTap,iconName:O.iconType,style:a.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:O.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:a.buttonSize}};
X={};X=_.g$("ytDownloadButtonViewModelHost",(X.ytDownloadButtonViewModelIsHidden=function(){var a=D.data(),O=g();return a.playlistId||O()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||O()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},X));
return _.A("download-button-view-model",{class:X},_.A(_.Ze,{data:C}))},"ia");
alb.idomCompat=!0;var vWn=new _.P6("SUBMIT_API_SERVICE_TOKEN");var AQW,P7m,iBr={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var yQn=new _.P6("RENDERER_LOGGER_TOKEN");var EWo=new _.P6("RENDERER_STAMPER_OPTIONS_TOKEN");var uFj;_.QX=new rm4;uFj=new Map;var tHd="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Yom=["notificationTextRenderer","notificationMultiActionRenderer"],
NKt="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),eRo=QTd(function(D){return _.Mm(D==null?void 0:D.targetId)}).useUpdatableData;var mZJ=0,Lch=new Set;_.BX.debugName="EjJbCe";var Il5=_.F(function(D){var C=D.data;D=D.className;_.H2(function(){C().formId||_.MN(Error("Ch"))});
var X=_.OB3(function(){return C().formId},function(){return C().beforeSubmitCommand},function(){return C().afterSubmitCommand}),c=X.submitForm,W=X.isValid,p=X.isSubmitting,g=function(){return{state:C().isDisabled||!W()||p()?"disabled":"active"}};
return _.A("yt-submit-button-view-model",{class:_.g$("ytSubmitButtonViewModelHost",D)},_.A(_.BX,{data:function(){return C().button}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data,
buttonOverrides:g,onClick:c})}}))},"la");var ABN=_.F(function(D){var C=D.backgroundLottieRef;var X=D.foregroundLottieRef;var c=D.children;var W=D.wrapperClass;var p=D.disableAnimation;D=function(){return(_.b("web_animated_actions")||_.b("web_animated_actions_v2"))&&!(p==null?0:p())};
return _.A("yt-animated-action",{class:_.g$("ytAnimatedActionHost",W)},_.A("div",{class:"ytAnimatedActionContentWithBackground"},_.A(_.v,{cond:D,then:function(){return _.A(OM5,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:C==null?void 0:C(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(nWj()?"dark":"light")+"_v5.json"}}}})}}),c),_.A(_.v,{cond:D,
then:function(){return _.A(OM5,{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_"+(nWj()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
ABN.idomCompat=!0;var OM5=_.F(function(D){var C=D.wrapperClass;var X=D.lottieClass;var c=D.lottiePlayerProps;return _.A("div",{class:_.g$("ytAnimatedActionLottie",C),"aria-hidden":"true"},_.A(_.zl,{className:X,data:c,animationName:function(){return c().animationConfig.name}}))},"na");var wU3={isOpen:!1};var ZBF={isAllowed:!1};var VHt={errorMessage:"",title:"",privacy:"",isDisabled:!0};var HBm={isOpen:!1};var zRj={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var PzJ={response:void 0};var MHo=function(D,C){D=D===void 0?PzJ:D;switch(C.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},D,{response:C.payload});default:return D}};var $ax={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var qoj=function(D,C){D=D===void 0?$ax:D;switch(C.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},D,{nextDisabled:C.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},D,{nextCommand:C.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},D,{footerSubmissionData:C.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},D,{isImpersonationValid:C.payload});default:return D}};var vq5={reportFormData:void 0,reportDetailsFormData:void 0};var fjd=function(D,C){D=D===void 0?vq5:D;switch(C.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportFormData:C.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportDetailsFormData:C.payload});default:return D}};var iMb=void 0;_.b("mweb_enable_redux_store_on_demand")||(iMb=new qh(dZn()));var a4=_.b("enable_web_delhi_icons");var kWk=_.F(function(D){D=_.Ro(D,{themeOverride:void 0,animationRef:{}});var C=D.animatedIconType,X=D.active,c=D.themeOverride,W=D.animationRef;D=D.staticIconFn;var p=_.U(_.Li(void 0,void 0,"l48agc")),g=p.next().value,a=p.next().value,O=function(){a:{var t=C();var Y=c==null?void 0:c();var y;Y=(Y==null?void 0:Y.useDarkTheme)||((y=_.iX().resolve(_.vK(_.Hc)))==null?void 0:y());switch(t){case "LIKE":iMb||(iMb=new qh(dZn()));t=(t=rjF(iMb.getState()))&&t.animationLightUrl&&t.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:Y?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:Y?t.animationDarkUrl:t.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(t){Y=t;break a}Y="animated_like_icon_"+(Y?"dark":"light")+"_"+(a4?"v5":"v4");Y={lottiePlayerProps:{animationConfig:{name:Y,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+Y+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(a4?" animated-like-icon-delhi":"")}}},totalFrames:a4?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":Y={lottiePlayerProps:{animationConfig:{name:Y?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(Y?"dark":"light")+(a4?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(a4?" animated-subscribe-icon-delhi":"")}}},totalFrames:a4?120:79,lazyLoad:!1};break a}Y=
void 0}return Y},P=function(){var t,Y;
return(Y=(t=O())==null?void 0:t.lottiePlayerProps.animationConfig.name)!=null?Y:""},k=function(){if(O()){var t=O().lottiePlayerProps.animationConfig.path;
return KI.get(t)||g()}};
p=_.U(_.Li(!1,void 0,"sDrGId"));var u=p.next().value;p=p.next().value;var Q=ljd(p),B=function(){var t=O(),Y,y,J;return(J=t==null?void 0:(Y=t.lottiePlayerProps.animationConfig)==null?void 0:(y=Y.rendererSettings)==null?void 0:y.className)!=null?J:""},K=void 0,L=void 0;
_.Jw(function(){var t=O(),Y=P(),y=k(),J=u(),T=X();if(t&&(L!==Y&&(L=Y,K=T,Y=W(),Q.animationConfig=t.lottiePlayerProps.animationConfig,Q.animationRef=Y,y&&(Q.animationConfig.animationData=y,Q.animationConfig.path=void 0),Y=t.lottiePlayerProps.animationConfig.path,!KI.get(Y)&&t.lazyLoad&&Y&&RR5(Y,a)),!(J||t.lazyLoad&&!y))){if(y=!W().lottieEl)T?(J=t.totalFrames,Q.animationConfig.initialSegment=[J-1,J]):Q.animationConfig.initialSegment=void 0;if(K!==T&&!y)if(y=W(),T){var H;(H=y.lottieEl)==null||H.playSegments([0,
t.totalFrames],!0)}else{var q;(q=y.lottieEl)==null||q.playSegments([0,1],!0)}K=T}},"RQVZ1d");
return _.A("animated-icon",{class:"ytAnimatedIconHost"},_.A(_.v,{cond:function(){var t,Y;return!((t=O())==null||!t.lottiePlayerProps.animationConfig.path||((Y=O())==null?0:Y.lazyLoad)&&!k()||u())},
then:function(){return _.A(_.zl,{data:Q,animationName:P,className:B,animationRef:W})},
else:D}))},"pa");_.I4=_.F(function(D){var C=_.aX("yt-subscribe-button-view-model"),X=_.aX("div"),c=_.aX("div"),W=_.PX(),p=_.PX(),g=_.PX(),a=_.ku(c5o,function(){return D.data().stateEntityStoreKey}),O=_.ku(o2F,function(){var d5,ub;
return(ub=(d5=D.data().notificationStateEntityStoreKeys)==null?void 0:d5.subsNotificationStateKey)!=null?ub:""}),P=function(){return!D.data().enableSubscribeButtonPostClickAnimation},k=_.U(_.Li(0,void 0,"YtsSKb")),u=k.next().value,Q=k.next().value;
k=_.U(_.Li(0,void 0,"V6JxRe"));var B=k.next().value,K=k.next().value;k=_.U(_.Li(!1,void 0,"JUCSZ"));var L=k.next().value,t=k.next().value;k=_.U(_.Li(!1,void 0,"oV6jwf"));var Y=k.next().value,y=k.next().value;k=_.U(_.Li(!1,void 0,"hK1Whe"));var J=k.next().value,T=k.next().value,H;k=_.U(_.Li(!1,void 0,"Asaolf"));var q=k.next().value,R=k.next().value,ph=function(){y(!0);_.hG(_.qX,function(){y(!1)},1500)};
_.Jw(function(){var d5=Y();_.hw(function(){d5&&!P()&&a()&&iwr(W,p,g)})},"Qq6Hsf");
_.Jw(function(){var d5=a();_.hw(function(){if(!P()&&d5){var ub;((ub=D.animateWidth)==null?0:ub.call(D))&&v2m(C.value,!!d5.subscribed,u(),B());var L5,Nf;((L5=H)==null?0:L5.subscribed)||!d5.subscribed||d5.key!==((Nf=H)==null?void 0:Nf.key)||ph();H=d5}})},"hog8te");
k=_.tw(function(){var d5,ub,L5,Nf=D.data(),xt=!((d5=a())==null||!d5.subscribed);d5=!((ub=D.isOverlay)==null||!ub.call(D));ub=L()?C:void 0;var u6=(L5=O())==null?void 0:L5.state;L5=q();$vn(Nf,u6);return XBm({model:Nf,subscribed:xt,isOverlay:d5,element:ub,notificationState:u6,disableTextEllipsis:!0,focused:L5})},void 0,"hc1PRd");
var Om=function(){var d5;if(!P()&&((d5=D.animateWidth)==null?0:d5.call(D))&&(X==null?0:X.value)&&(c==null?0:c.value)&&!J()){d5=a();var ub=_.U((d5==null?0:d5.subscribed)?[X,c]:[c,X]),L5=ub.next().value;ub=ub.next().value;L5=Math.ceil(L5.value.getBoundingClientRect().width);ub=Math.ceil(ub.value.getBoundingClientRect().width);Q(L5);K(ub);v2m(C.value,!(d5==null||!d5.subscribed),L5,ub);T(!0)}},xj=_.I_(function(d5){Om();
var ub=a();ub&&(d5.detail.endpoint.subscribeEndpoint||d5.detail.endpoint.unsubscribeEndpoint)&&Ow5(C.value,!ub.subscribed,ub)}),Bo=function(){var d5=_.iX().resolve(_.vK(_.E7));
d5&&R(d5.isKeyBoardInUse())},r5=function(){R(!1)};
_.g0("yt-player-subscribe",function(d5){var ub=a();ub&&d5===D.data().channelId&&Ow5(C.value,!0,ub)});
_.g0("yt-player-unsubscribe",function(d5){var ub=a();ub&&d5===D.data().channelId&&Ow5(C.value,!1,ub)});
_.g0("yt-update-subscribe-button-action",function(d5){d5=_.r(d5,SvM);var ub=a();ub&&d5&&d5.channelId===D.data().channelId&&Ow5(C.value,!!d5.subscribed,ub)});
_.JU(function(){C.value&&(C.value.addEventListener("focusin",Bo),C.value.addEventListener("focusout",r5));var d5=_.Zo(_.qX,function(){Om()});
t(!0);_.z3(function(){_.qX.cancelJob(d5);C.value&&(C.value.removeEventListener("focusin",Bo),C.value.removeEventListener("focusout",r5))})});
var Fd=function(){var d5,ub,L5;if(L5=!((d5=a())==null||!d5.subscribed))d5=!!D.data().disableNotificationBell,L5=(ub=O())==null?void 0:ub.state,L5=!d5&&!!L5;return L5},GJ=function(){var d5;
return!((d5=a())==null?0:d5.subscribed)},jZ=function(){var d5,ub;
if(ub=GJ()){ub=!!D.data().disableNotificationBell;var L5=(d5=O())==null?void 0:d5.state;ub=!ub&&!!L5}return ub},Ac={},ib={};
return _.A("yt-subscribe-button-view-model",{class:_.g$(D.className,"ytSubscribeButtonViewModelHost",(Ac.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var d5,ub;return!((d5=a())==null||!d5.subscribed)&&((ub=D.animateWidth)==null?void 0:ub.call(D))&&Y()},Ac.ytSubscribeButtonViewModelHostHidden=function(){var d5;
return!((d5=a())==null?0:d5.subscribed)&&D.data().hideWhenUnsubscribed},Ac)),
el:C,"on:yt-service-request-sent":xj},_.A(ABN,{backgroundLottieRef:W,foregroundLottieRef:p,wrapperClass:_.g$("ytSubscribeButtonViewModelAnimatedActionWrapper",(ib.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var d5;return((d5=D.animateWidth)==null?void 0:d5.call(D))&&Y()},ib.ytSubscribeButtonViewModelStaticWidth=function(){var d5;
return!((d5=D.animateWidth)==null?0:d5.call(D))},ib)),
disableAnimation:P},_.A("div",{el:X,class:"ytSubscribeButtonViewModelContainer"},_.A(_.FC,{data:k,icon:function(){return _.A(_.v,{cond:Fd,then:function(){var d5=function(){var ub;return IUm((ub=O())==null?void 0:ub.state)};
return _.A(_.v,{cond:function(){return P()||d5()!=="NOTIFICATIONS_NONE"},
then:function(){return _.A(_.$_,{icon:d5})},
else:function(){return _.A(kWk,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:g})}})}})},
secondaryIconName:function(){return Fd()?"EXPAND":void 0}}))),_.A("div",{el:c,
class:"ytSubscribeButtonViewModelInvisible"},_.A(_.v,{cond:function(){var d5;return((d5=D.animateWidth)==null?void 0:d5.call(D))&&!P()&&!J()},
then:function(){return _.A(_.FC,{data:_.tw(function(){var d5;return XBm({model:D.data(),subscribed:GJ(),isOverlay:!((d5=D.isOverlay)==null||!d5.call(D)),element:C,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var d5;return jZ()?IUm((d5=O())==null?void 0:d5.state):void 0},
secondaryIconName:function(){return jZ()?"EXPAND":void 0}})}})))},"sa");
_.I4.idomCompat=!0;var uXN=_.F(function(D){var C=D.data;var X=_.ku(c5o,function(){return C().subscriptionStateEntityKey});
return _.A(_.v,{cond:function(){var c=C(),W=X();return!c.hideWhenUnsubscribed||(W==null?0:W.subscribed)?_.r(C().button,_.is):void 0},
then:function(c){return _.A("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.A(_.Ze,{data:c,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
uXN.idomCompat=!0;var QPJ,O_;QPJ=_.F(function(D){return _.A(_.BX,{data:function(){return D.actionRow().actions}},{buttonViewModel:function(C){var X=C.data;
return _.A(O_,{isRow:D.isRow,isIconOnlyButton:function(){return kXo(X())},
useIntrinsicWidth:D.useIntrinsicWidth},_.A(_.Ze,{data:X}))},
subscribeButtonViewModel:function(C){return _.A(O_,{isRow:D.isRow},_.A(_.I4,{data:C.data,isOverlay:!1,animateWidth:function(){return!D.isRow()}}))},
downloadButtonViewModel:function(C){var X=C.data;return _.A(O_,{isRow:D.isRow,isIconOnlyButton:function(){return!!X().playlistId}},_.A(alb,{data:X}))},
submitButtonViewModel:function(C){var X=C.data;return _.A(O_,{isRow:D.isRow,isIconOnlyButton:function(){var c=X();return kXo(_.r(c==null?void 0:c.button,_.is))}},_.A(Il5,{data:X}))},
toggleButtonViewModel:function(C){var X=C.data;return _.A(O_,{isRow:D.isRow,isIconOnlyButton:function(){var c=X();return kXo(_.r(c.isToggled?c.toggledButtonViewModel:c.defaultButtonViewModel,_.is))}},_.A(_.o1,{data:X}))},
subscribePlusButtonViewModel:function(C){return _.A(O_,{isRow:D.isRow},_.A(uXN,{data:C.data}))}})},"ua");
O_=_.F(function(D){var C={};return _.A("div",{class:_.g$("ytFlexibleActionsViewModelAction",(C.ytFlexibleActionsViewModelActionRowAction=D.isRow,C.ytFlexibleActionsViewModelActionIntrinsicWidth=D.useIntrinsicWidth,C.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,C.ytFlexibleActionsViewModelActionIconOnlyButton=D.isIconOnlyButton,C))},D.children)},"va");
_.AS=_.F(function(D){var C=function(){var c;return((c=D.layout)==null?void 0:c.call(D))===1},X={};
return _.A("yt-flexible-actions-view-model",{class:_.g$("ytFlexibleActionsViewModelHost",D.className,(X.ytFlexibleActionsViewModelInline=function(){return!C()},X.ytFlexibleActionsViewModelScrollable=function(){return D.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},X))},_.A(_.Zh,{each:function(){return D.data().actionsRows||[]}},function(c){return _.A(_.v,{cond:C,
then:function(){return _.A("div",{class:"ytFlexibleActionsViewModelActionRow"},_.A(QPJ,{actionRow:c,isRow:C,useIntrinsicWidth:function(){return!!D.data().respectActionIntrinsicWidth}}))},
else:function(){return _.A(QPJ,{actionRow:c,isRow:C})}})}))},"wa");_.CI(_.AS,"yt-flexible-actions-view-model",{props:{data:_.Bm,layout:_.Bm,justifyContentOverride:_.Bm,className:_.Bm}});_.PO=_.F(function(D){var C=_.ku(_.y6,function(){var W;return(W=D.data().dislikeEntityKey)!=null?W:""}),X=_.tw(function(){var W=C();
return W?W.likeStatus==="DISLIKE":_.r(D.data().toggleButtonViewModel,_.us).isToggled},void 0,"fNr9he"),c=_.tw(function(){return Object.assign({},_.r(D.data().toggleButtonViewModel,_.us),{isToggled:X()})},void 0,"AezoCc");
return _.A("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.A(_.o1,{data:c,buttonShapeOverrides:D.buttonShapeOverrideables,onToggle:function(W){var p=C();p&&W!==(p.likeStatus==="DISLIKE")&&p.key&&_.fG(_.EW("likeStatusEntity",p.key,{likeStatus:W?"DISLIKE":"INDIFFERENT",hadUserInteraction:W}))}}))},"xa");
_.PO.idomCompat=!0;_.$d=_.F(function(D){var C=_.b("web_supports_animations_api"),X=m9t(function(Q){var B=P();if(!Q){var K,L;return{numberText:(L=B==null?void 0:(K=B.likeCountIfIndifferent)==null?void 0:K.content)!=null?L:"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var t;K=(B==null?void 0:(t=B.likeCountIfIndifferent)==null?void 0:t.content)!==Q.numberText;if(a()||!K)return Q;var Y;return{numberText:(B==null?void 0:(Y=B.likeCountIfIndifferent)==null?void 0:Y.content)||
"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!B}}),c=m9t(function(Q){var B=P();
if(!Q){var K,L;return{numberText:(L=B==null?void 0:(K=B.likeCountIfLiked)==null?void 0:K.content)!=null?L:"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var t;K=(B==null?void 0:(t=B.likeCountIfIndifferent)==null?void 0:t.content)!==Q.numberText;if(a()||!K)return Q;var Y;return{numberText:(B==null?void 0:(Y=B.likeCountIfLiked)==null?void 0:Y.content)||"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!B}}),W=_.U(_.Li(void 0,
void 0,"xYSlUe")),p=W.next().value,g=W.next().value,a=p,O=_.ku(_.y6,function(){var Q,B;
return(B=(Q=D.data())==null?void 0:Q.likeStatusEntityKey)!=null?B:""}),P=_.ku(SjZ,function(){var Q,B;
return((Q=D.likeCountEntity)==null?void 0:(B=Q.call(D))==null?void 0:B.key)||""}),k=_.tw(function(){var Q;
return((Q=O())==null?void 0:Q.likeStatus)==="LIKE"},void 0,"DG5Osd"),u=function(){var Q;
return C&&!((Q=D.likeCountEntity)==null||!Q.call(D))};
return _.A("like-button-view-model",{class:_.g$("ytLikeButtonViewModelHost",D.className)},_.A(_.o1,{data:function(){var Q=Object,B=Q.assign,K;var L=_.r((K=D.data())==null?void 0:K.toggleButtonViewModel,_.us);return B.call(Q,{},L||{},{isToggled:k()})},
buttonShapeOverrides:D.buttonShapeOverrideables,animatedTextPropsDefault:function(){return u()?X():void 0},
animatedTextPropsToggled:function(){return u()?c():void 0},
onToggle:function(Q){uQd(Q,O(),a(),g)},
style:function(){var Q;return((Q=D.disableIconAnimation)==null?0:Q.call(D))?void 0:{animateIcon:"true"}}}))},"ya");
_.$d.idomCompat=!0;var B7N=_.F(function(D){var C=function(){return _.r(D.data().likeButtonViewModel,_.Fx)},X=function(){var W;
return((W=C())==null?void 0:W.likeStatusEntityKey)||""},c=_.tw(function(){var W,p;
var g=(p=_.ku(_.y6,X)())!=null?p:(W=C())==null?void 0:W.likeStatusEntity;W=D.data();var a;W=(W==null?void 0:(a=W.timedAnimationData)==null?void 0:a.animationTiming)||[];return{uniqueId:"like-dislike",timings:W,enabled:(g==null?void 0:g.likeStatus)==="INDIFFERENT"&&W.length>0,experimentEnabled:W.length>0}},void 0,"zZ3GQb");
return _.A("segmented-like-dislike-button-view-model",{class:_.g$("ytSegmentedLikeDislikeButtonViewModelHost",D.className),"button-renderer":!0},_.A(cBf,{settings:c},_.A("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.A(_.v,{cond:C,then:function(W){return _.A(_.$d,{data:W,likeCountEntity:function(){return D.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.b("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.A(_.v,{cond:function(){return _.r(D.data().dislikeButtonViewModel,_.Zt)},
then:function(W){return _.A(_.PO,{data:W,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
B7N.idomCompat=!0;_.CI(B7N,"segmented-like-dislike-button-view-model",{props:{data:_.Bm,className:_.Bm}});var bMx=_.F(function(D){var C=D.data;var X=D.className;var c=D.setMinWidth;var W=D.forceIconOnly;var p=_.aX("account-link-button-view-model"),g=_.ku(_.Qlm,function(){var Q;return(Q=C().accountLinkStatusEntityKey)!=null?Q:""}),a=_.ku(_.Qlm,function(){var Q;
return(Q=C().accountLinkStatusSecondaryEntityKey)!=null?Q:""}),O=function(){if(!_.b("web_account_link_secondary_killswitch")){var Q,B;
return((Q=g())==null?void 0:Q.linked)||((B=a())==null?void 0:B.linked)}var K;return(K=g())==null?void 0:K.linked};
_.Jw(function(){var Q=g();if(Q){var B=yFM(new Yq5,tm4(new ELe,!!Q.linked));_.ON().then(function(K){K&&(K.setAccountLinkState(_.tP(B.JSC$12484_serializeBinary(),4)),K.updateAccountLinkingConfig(!!Q.linked))})}},"IvZF7");
var P=function(){return _.r(C().toggleButtonViewModel,_.us)};
_.g0("yt-signal-action-show-account-link-dialog",function(){if(P()){var Q=O()?P().toggledButtonViewModel:P().defaultButtonViewModel;Q=_.r(Q,_.is);var B;if((B=g())==null?0:B.isWarning){B=_.r(C().warningButtonViewModel,_.is);if(!B){_.CC(Error("Dh"));return}Q=B}var K;(B=_.Y7((K=Q)==null?void 0:K.onTap))&&_.Sy([B],p.value)}else _.CC(Error("Eh"))});
var k=function(){var Q=P();return Object.assign({},Q,{isToggled:O()})},u=function(){return(W==null?0:W())?{iconPosition:"icon-only"}:{}};
return _.A("account-link-button-view-model",{class:_.g$("ytwAccountLinkButtonViewModelHost",X,function(){return(c==null?0:c())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:p,"button-renderer":!0},_.A("div",null,_.A(_.v,{cond:function(){var Q;if((Q=g())==null?0:Q.isWarning)return(Q=_.r(C().warningButtonViewModel,_.is))||_.CC(Error("Dh")),Q},
then:function(Q){return _.A(_.Ze,{data:Q,buttonOverrides:u})},
else:function(){return _.A(_.o1,{data:k,buttonShapeOverrides:u})}})))},"Ba");_.CI(bMx,"account-link-button-view-model",{props:{data:_.Bm,className:_.R3,setMinWidth:_.R3,forceIconOnly:_.R3}});_.sI("menuRenderer","menuRenderer","ytd-menu-renderer");
var rBx={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"}},
Kkc=_.b("web_fix_missing_action_buttons")?100:200,vO=function(){var D=_.w.apply(this,arguments)||this;D.safeArea=!_.b("kevlar_flex_menu_safe_area_killswitch");D.tonalOverride=!1;D.threeDotSize="M";D.isOverlay=!1;D.useOverlayDark=!1;D.topLevelIconsOnly=!1;D.JSC$14929_lastWidth=0;D.maybeUpdateFlexibleMenu=function(){_.b("web_fix_missing_action_buttons")?requestAnimationFrame(D.maybeUpdateFlexibleMenuImpl):D.maybeUpdateFlexibleMenuImpl()};
D.maybeUpdateFlexibleMenuImpl=function(){var C;if((C=D.data)!=null&&C.flexibleItems){D.maybeFlushDebouncer();C=D.hostElement.clientWidth;var X=C>D.JSC$14929_lastWidth,c,W=((c=D.topLevelButtonsContainer)==null?void 0:c.scrollHeight)||0,p;c=((p=D.flexibleItemButtonsContainer)==null?void 0:p.scrollHeight)||0;p=D.hostElement.scrollHeight>Math.max(W,c)+8;X?(D.resetFlexibleItems(),D.JSC$14929_lastWidth=D.hostElement.clientWidth,D.maybeUpdateFlexibleMenu()):p&&(D.shrinkFlexibleMenu(),D.JSC$14929_lastWidth=
C)}};
D.computeThreeDotButtonShape=function(){if(D.tonalOverride)return Object.assign({},{onTap:function(){D.onOverflowTap()},
iconPosition:"icon-only",style:D.isOverlay?D.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:D.threeDotSize,state:"active",accessibilityLabel:D.computeAccessibilityLabel(D.data)},D.threeDotButtonOverride)};
D.onOverflowTap=function(){if(D.data.fetchMenuCommand)_.iX().resolve(_.uX).resolveCommand(D.data.fetchMenuCommand,{form:{element:D.hostElement}});else if(D.data.isDisabled&&D.data.disabledCommand)_.O4(D.data.disabledCommand,D.hostElement);else{var C=D.createMenuRendererVe(),X={items:D.items};D.data.menuPopupAccessibility&&(X.menuPopupAccessibility=D.data.menuPopupAccessibility);D.data.footer&&(X.footer=D.data.footer);C={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:X},veData:C}};
_.iX().resolve(_.S0).openSheet({openPopupActionCommand:C},D.hostElement)}};
return D};
_.h(vO,_.w);_.S=vO.prototype;_.S.updateButtonOverrides=function(){if(!_.b("menu_renderer_label_update_upkillswitch")){var D=_.SY(this.hostElement).querySelector("yt-button-view-model");D&&(D.buttonOverrides=this.buttonOverrides)}};
_.S.computeHasItems=function(){var D;return((D=this.topLevelButtonData)==null?void 0:D.length)||this.hasFlexibleItems};
_.S.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.S.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Os(this.hostElement,{"--ytd-menu-renderer-button-color":_.mW(this.data.iconColor)}))};
_.S.onStamperFinished=function(){this.JSC$14929_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.S.setupFlexibleMenu=function(){var D=this,C;(C=this.data)!=null&&C.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Al(this.maybeUpdateFlexibleMenu,Kkc,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){D.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))};
_.S.maybeFlushDebouncer=function(){if(_.b("web_replace_formatted_with_attributed_string")){var D;(D=this.topLevelButtons)==null||D.forEach(function(X){var c;(X=(c=X.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0])&&bEn(X)});
var C;(C=this.flexibleItemButtons)==null||C.forEach(function(X){var c;(X=(c=X.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0])&&bEn(X)})}};
_.S.resetFlexibleItems=function(){var D;if((D=this.data)!=null&&D.flexibleItems){_.b("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var C;this.flexAsTopLevelButtons=(C=this.data.flexibleItems)==null?void 0:C.map(function(X){return _.r(X,_.$MN).topLevelButton});
_.b("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.S.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.S.shrinkFlexibleMenu=function(){var D;(D=this.flexAsTopLevelButtons)!=null&&D.length&&(this.flexAsTopLevelButtons=[].concat(_.VB(this.flexAsTopLevelButtons.slice(0,-1))))};
_.S.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:rBx,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:rBx,events:!0}}};
_.S.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.S.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.S.detached=function(){this.icon="MORE_VERT"};
_.S.computeTopLevelButtonData=function(D){if(!D)return[];var C;D=(C=D==null?void 0:D.topLevelButtons)!=null?C:[];return _.ZI.unsafeClone([].concat(_.VB(D)))};
_.S.computeItems=function(D,C){if(!D)return[];var X=[];if(C){var c=(D.flexibleItems||[]).map(function(g){return _.r(g,_.$MN)});
c=_.U(c);for(var W=c.next();!W.done;W=c.next())W=W.value,C.includes(W.topLevelButton)||(W=W.menuItem)&&X.push(W)}var p;D=(p=D==null?void 0:D.items)!=null?p:[];return[].concat(_.VB(X),_.VB(D))};
_.S.computeMenuActive=function(D,C){return D||C};
_.S.onPopupOpened=function(){this.overlayOpen=!0;_.lE(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.S.onPopupClosed=function(){this.overlayOpen=!1;_.lE(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.S.onPopupCanceled=function(){this.overlayOpen=!1;_.lE(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.S.computeAccessibilityLabel=function(D){return this.get("accessibility.accessibilityData.label",D)};
_.S.isHidden=function(D,C){return this.tonalOverride||!D?!0:D.fetchMenuCommand||D.isDisabled&&D.disabledCommand?!1:!(C==null?0:C.length)};
_.S.isModernOverflowHidden=function(D,C){return this.tonalOverride&&D?D.fetchMenuCommand?!1:!(C==null?0:C.length):!0};
_.S.createMenuRendererVe=function(){var D=this.data.trackingParams,C=_.LN(),X=_.xr();return D&&C&&X?(D=_.bO(D),X=_.Ia(7591),_.b("combine_ve_grafts")?_.Vc(_.iO(),X,D):_.F_(C,D,X),X):null};
_.$a.Object.defineProperties(vO.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.flexAsTopLevelButtons)==null||!D.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
vO.prototype.onPopupCanceled=vO.prototype.onPopupCanceled;vO.prototype.onPopupClosed=vO.prototype.onPopupClosed;vO.prototype.onPopupOpened=vO.prototype.onPopupOpened;vO.prototype.tonalOverrideChanged=vO.prototype.tonalOverrideChanged;vO.prototype.resetFlexibleItems=vO.prototype.resetFlexibleItems;vO.prototype.setupFlexibleMenu=vO.prototype.setupFlexibleMenu;vO.prototype.iconButtonColorChanged=vO.prototype.iconButtonColorChanged;vO.prototype.updateButtonOverrides=vO.prototype.updateButtonOverrides;
_.V([_.m(_.eu),_.z("design:type",Object)],vO.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#button-shape"),_.z("design:type",HTMLElement)],vO.prototype,"buttonShape",void 0);_.V([_.kn("#button"),_.z("design:type",Object)],vO.prototype,"button",void 0);
_.V([_.n(),_.z("design:type",Object)],vO.prototype,"data",void 0);_.V([_.n({computed:"computeTopLevelButtonData(data)"}),_.z("design:type",Array)],vO.prototype,"topLevelButtonData",void 0);_.V([_.n(),_.z("design:type",Array)],vO.prototype,"flexAsTopLevelButtons",void 0);_.V([_.n({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.z("design:type",Array)],vO.prototype,"items",void 0);_.V([_.n({value:"MORE_VERT"}),_.z("design:type",String)],vO.prototype,"icon",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],vO.prototype,"safeArea",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.z("design:type",Boolean)],vO.prototype,"menuActive",void 0);_.V([_.n(),_.z("design:type",Boolean)],vO.prototype,"menuFocused",void 0);_.V([_.n({value:"bottom"}),_.z("design:type",String)],vO.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.z("design:type",Boolean)],vO.prototype,"overlayOpen",void 0);
_.V([_.n({value:!0}),_.z("design:type",Boolean)],vO.prototype,"forceIconButton",void 0);_.V([_.n(),_.z("design:type",Boolean)],vO.prototype,"styleActionButton",void 0);_.V([_.n(),_.z("design:type",Boolean)],vO.prototype,"disableTextTransformOnButtons",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],vO.prototype,"tonalOverride",void 0);_.V([_.n(),_.z("design:type",Object)],vO.prototype,"threeDotSize",void 0);
_.V([_.n(),_.z("design:type",Object)],vO.prototype,"threeDotButtonOverride",void 0);_.V([_.n(),_.z("design:type",Object)],vO.prototype,"isOverlay",void 0);_.V([_.n(),_.z("design:type",Object)],vO.prototype,"useOverlayDark",void 0);_.V([_.n({computed:"computeButtonOverride(tonalOverride)"}),_.z("design:type",Object)],vO.prototype,"buttonOverride",void 0);_.V([_.n(),_.z("design:type",Boolean)],vO.prototype,"minimizePipBreakages",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],vO.prototype,"hasCustomIconColor",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("flexAsTopLevelButtons"),_.z("design:type",Object),_.z("design:paramtypes",[])],vO.prototype,"hasFlexibleItems",null);_.V([_.n({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.z("design:type",Boolean)],vO.prototype,"hasItems",void 0);_.V([_.n(),_.z("design:type",Object)],vO.prototype,"topLevelIconsOnly",void 0);
_.V([_.vr("topLevelIconsOnly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"updateButtonOverrides",null);_.V([_.e("topLevelIconsOnly"),_.z("design:type",Object),_.z("design:paramtypes",[])],vO.prototype,"buttonOverrides",null);_.V([_.kn("#top-level-buttons-computed"),_.z("design:type",HTMLElement)],vO.prototype,"topLevelButtonsContainer",void 0);_.V([_.uH(".top-level-buttons > *"),_.z("design:type",Array)],vO.prototype,"topLevelButtons",void 0);
_.V([_.kn("#flexible-item-buttons"),_.z("design:type",HTMLElement)],vO.prototype,"flexibleItemButtonsContainer",void 0);_.V([_.uH("#flexible-item-buttons > *"),_.z("design:type",Array)],vO.prototype,"flexibleItemButtons",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"iconButtonColorChanged",null);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"setupFlexibleMenu",null);_.V([_.bH("topLevelIconsOnly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"resetFlexibleItems",null);_.V([_.vr("tonalOverride"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"tonalOverrideChanged",null);
_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"onPopupOpened",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"onPopupClosed",null);_.V([_.$n("yt-popup-canceled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vO.prototype,"onPopupCanceled",null);
_.G(vO,"ytd-menu-renderer",function(){if(Twf===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);Twf=D}D=Twf;return D},{mode:2});var h6b;var xac;_.iI=_.F(function(D){var C=D.data;var X=function(){if(C().icon)a:{var W={iconName:C().icon};for(var p=_.iX().resolve(_.a3),g=_.U([12,24]),a=g.next();!a.done;a=g.next()){var O=a.value;a=Object.assign({},W,{iconStyle:"youtube_fill",iconSize:O});O=Object.assign({},W,{iconStyle:"youtube_outline",iconSize:O});if(p.resolveIcon(a)){W=a;break a}if(p.resolveIcon(O)){W=O;break a}}W=void 0}else W=void 0;return W};
D={};var c={};return _.A("badge-shape",{class:_.g$("yt-badge-shape",function(){return xvZ(C().type)},(D["yt-badge-shape--overlay"]=function(){return C().isOverlay},D["yt-badge-shape--ads-include-dot"]=function(){return C().adsIncludeDot},D["yt-badge-shape--thumbnail-badge"]=function(){a:switch(C().type){case 17:case 18:case 19:var W=!0;
break a;default:W=!1}return W},D["yt-badge-shape--status-badge"]=function(){a:switch(C().type){case 12:case 13:case 14:case 15:case 16:var W=!0;
break a;default:W=!1}return W},D["yt-badge-shape--no-text"]=function(){return!C().text},D["yt-badge-shape--modern"]=function(){return C().modern||_.b("web_modern_badge_shape")},D)),
style:_.P0({"background-color":function(){var W;return(W=C().customColors)==null?void 0:W.backgroundColor}}),
role:function(){return C().accessibilityText?"img":void 0},
"aria-label":function(){return C().accessibilityText}},_.A(_.v,{cond:function(){return C().animation},
then:function(W){return _.A(_.zl,{className:"yt-badge-shape__icon",data:W,animationName:function(){return W().animationConfig.name||""}})}}),_.A(_.v,{cond:function(){var W;
return X()&&!((W=C())==null?0:W.animation)},
then:function(){return _.A("div",{class:"yt-badge-shape__icon"},_.A(_.hl,{data:function(){return X()}}))}}),_.A("div",{class:_.g$("yt-badge-shape__text",(c["yt-badge-shape__text--clip-text-overflow"]=function(){return C().clipTextOverflow},c["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(C().numBadgesInRow||0)>1},c))},function(){var W;
return(W=C())==null?void 0:W.text}))},"Ca");
_.iI.idomCompat=!0;_.CI(_.iI,"badge-shape",{props:{data:_.Bm}});var kd=function(){var D=_.w.apply(this,arguments)||this;D.systemIcons=_.b("kevlar_system_icons");D.animated=_.b("animated_live_badge_icon");D.useBadgeShape=_.b("web_badge_shape_defrag");return D};
_.h(kd,_.w);_.S=kd.prototype;_.S.addTooltips=function(){for(var D=_.SY(this.hostElement).querySelectorAll(".badge"),C=0,X;X=D[C++];){var c=this.repeatElement.itemForElement(X);X=_.SY(X);X.lastChild&&X.lastChild.is==="tp-yt-paper-tooltip"&&X.removeChild(X.lastChild);if(c=c.metadataBadgeRenderer&&c.metadataBadgeRenderer.tooltip){var W=_.L4("tp-yt-paper-tooltip");(0,_.Io)(W).textContent=c;W.setAttribute("position","top");W.setAttribute("aria-hidden","true");X.appendChild(W)}}};
_.S.badgesChanged=function(){var D=this;_.uP().parkOrScheduleJob(function(){D.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.S.standaloneRoundedBadgeChanged=function(){var D=this.useRoundedBadge?this.useRoundedBadge:void 0;D&&(this.useRoundedBadge=D)};
_.S.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.S.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.S.computeStyle=function(D){_.b("kevlar_ytb_live_badges")&&D==="BADGE_STYLE_TYPE_LIVE_NOW"&&(D="badge-style-type-live-now-alternate");return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeRole=function(D){return this.computeAriaLabel(D)?"img":"status"};
_.S.computeAriaLabel=function(D){var C;return(D==null?void 0:(C=D.accessibilityData)==null?void 0:C.label)||(D==null?void 0:D.label)};
_.S.computeBadgeShape=function(D){if(D){var C,X;var c=KsJ(D.style);var W=hhJ(D.style),p=D.label,g=((C=D.accessibilityData)==null?void 0:C.label)||D.label;a:switch(D.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":C=!0;break a;default:C=!1}var a=(X=D.icon)==null?void 0:X.iconType;a:switch(D.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":D=!0;break a;default:D=!1}c={type:c,brNzRatingBadgeType:W,text:p,accessibilityText:g,
isOverlay:C,icon:a!=="PREMIUM"?a:void 0,modern:_.b("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:D}}else c={};return c};
_.S.updateComputedBadges=function(D,C,X){var c=this;(C=C?[C]:X?[X]:void 0)?this.computedBadges=C:this.computedBadges=D==null?void 0:D.filter(function(W){var p;if((p=W.metadataBadgeRenderer)==null?0:p.groups){p=!1;W=_.U(W.metadataBadgeRenderer.groups);for(var g=W.next();!g.done;g=W.next()){g=g.value;var a=void 0;p=p||((a=c.hiddenBadgeGroups)==null?void 0:a.includes(g))}return!p}return!0})};
_.S.useFilledIcons=function(D){return _.b("kevlar_system_icons")&&(D==="AUDIO_BADGE"||D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE"||D==="SPONSORSHIP_STAR"||D==="PERSON_RADAR_FILLED"||D==="PERSON_RADAR")};
_.S.computeBadgeShapeStyle=function(D){return this.useBadgeShape?D==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||D==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":D==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.S.computeIcon=function(D){var C,X;D=D==null?void 0:(C=D.metadataBadgeRenderer)==null?void 0:(X=C.icon)==null?void 0:X.iconType;if(D!=="PREMIUM"&&D)return _.g2(D)};
_.S.computeStandaloneBadge=function(D){var C;D=D==null?void 0:(C=D.icon)==null?void 0:C.iconType;return D==="PREMIUM_STANDALONE"||D==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
kd.prototype.hiddenBadgeGroupsChanged=kd.prototype.hiddenBadgeGroupsChanged;kd.prototype.standaloneBadgeChanged=kd.prototype.standaloneBadgeChanged;kd.prototype.standaloneRoundedBadgeChanged=kd.prototype.standaloneRoundedBadgeChanged;kd.prototype.badgesChanged=kd.prototype.badgesChanged;_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"hidden",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],kd.prototype,"componentBehavior",void 0);
_.V([_.n(),_.z("design:type",Array)],kd.prototype,"badges",void 0);_.V([_.n(),_.z("design:type",Object)],kd.prototype,"topStandaloneBadge",void 0);_.V([_.n(),_.z("design:type",Object)],kd.prototype,"bottomStandaloneBadge",void 0);_.V([_.n(),_.z("design:type",Object)],kd.prototype,"computedBadges",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"mediumFontAdBadge",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"useRoundedBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"largeFontAdBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"overlayAd",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"overlayPremium",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"noDotAdBadge",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"collectionTruncate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"isThumbnailBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kd.prototype,"wrapBadges",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Number)],kd.prototype,"numBadgesInRow",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kd.prototype,"systemIcons",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kd.prototype,"animated",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kd.prototype,"useBadgeShape",void 0);_.V([_.n({value:[]}),_.z("design:type",Array)],kd.prototype,"hiddenBadgeGroups",void 0);_.V([_.kn("#repeat"),_.z("design:type",eY)],kd.prototype,"repeatElement",void 0);_.V([_.bH("badges"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kd.prototype,"badgesChanged",null);
_.V([_.bH("useRoundedBadge"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kd.prototype,"standaloneRoundedBadgeChanged",null);_.V([_.bH("topStandaloneBadge","bottomStandaloneBadge"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kd.prototype,"standaloneBadgeChanged",null);_.V([_.bH("hiddenBadgeGroups"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kd.prototype,"hiddenBadgeGroupsChanged",null);
_.V([_.yj({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],kd);
var Lkq=_.o3()(kd,"ytd-badge-supported-renderer",function(){if(xac===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);xac=D}D=xac;return D},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Wc("kevlar_poly_si_batch_j053")?1:2});var uI=function(){var D=_.w.apply(this,arguments)||this;D.iconType="STAR";D.plaMedium=_.b("enable_pla_resizing_for_desktop_medium");D.plaLarge=_.b("enable_pla_resizing_for_desktop_large");D.plaExtraLarge=_.b("enable_pla_resizing_for_desktop_extra_large");D.standardizeIconSize=_.b("kevlar_system_icons");D.mediaHoverOverlayInitialVisibility=_.b("enable_top_landscape_image_button_command_web");D.noBottomMargin=!1;D.thumbnailObjectFit="CONTAIN";D.thumbnailFitHeight=!0;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return D};
_.h(uI,_.w);_.S=uI.prototype;_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.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"}}}};
_.S.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",uI.JSC$14941_DEFAULT_CLICK_LOCATION_BEHAVIOR,uI.JSC$14941_CLICK_LOCATION_ID_MAP))};
_.S.onTap=function(D){this.onTapOrClick(D)};
_.S.onTapOrClick=function(D){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,D,!1)};
_.S.updateMediaBackgroundImage=function(){var D=this.get("data.image.thumbnail.thumbnails");D&&(D=_.XA(D,0))&&_.Os(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+D+")"})};
_.S.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var D=0;D<this.data.impressionEndpoints.length;D++){var C=this.data.impressionEndpoints[D];C.clickTrackingParams&&delete C.clickTrackingParams;_.iX().resolve(_.uX).resolveCommand(C,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var X;((X=this.data)==null?0:X.activeView)&&Fu(this.activeView,this.data.activeView)}};
_.S.handleMuteAd=function(){};
_.S.attached=function(){var D=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZQ(D.activeView)})};
_.S.detached=function(){_.b("stop_av_measurement_on_detach")&&ZQ(this.activeView)};
_.$a.Object.defineProperties(uI.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.titleText)return"";var C;return _.I7("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((C=this.data)==null?void 0:C.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.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 D;return!((D=this.data)==null||!D.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"}}});
uI.prototype.onTap=uI.prototype.onTap;uI.prototype.dataChanged=uI.prototype.dataChanged;
uI.JSC$14941_CLICK_LOCATION_ID_MAP=_.b("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"]]);
uI.JSC$14941_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.b("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.P9),_.z("design:type",Object)],uI.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],uI.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],uI.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.m([_.Jy.YtActionHandlerBehavior]),_.z("design:type",Object)],uI.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],uI.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],uI.prototype,"clickCommand",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],uI.prototype,"miniMode",void 0);_.V([_.n(),_.z("design:type",String)],uI.prototype,"iconType",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uI.prototype,"plaMedium",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uI.prototype,"plaLarge",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uI.prototype,"plaExtraLarge",void 0);_.V([_.e("data.titleText"),_.z("design:type",String),_.z("design:paramtypes",[])],uI.prototype,"titleAriaLabel",null);_.V([_.e("data.rating"),_.z("design:type",Object),_.z("design:paramtypes",[])],uI.prototype,"getRating",null);_.V([_.e("data.price"),_.z("design:type",Object),_.z("design:paramtypes",[])],uI.prototype,"getPrice",null);
_.V([_.e("data.thirdLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],uI.prototype,"getThirdLine",null);_.V([_.e("data.fourthLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],uI.prototype,"getFourthLine",null);_.V([_.e("data.fifthLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],uI.prototype,"getFifthLine",null);_.V([_.e("getRating"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"computeRatingHidden",null);
_.V([_.e("getPrice"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"computePriceHidden",null);_.V([_.e("getThirdLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"computeThirdLineHidden",null);_.V([_.e("getFourthLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"computeFourthLineHidden",null);_.V([_.e("getFifthLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"computeFifthLineHidden",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.energyIcon"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"hasEnergyIcon",null);_.V([_.e("computePriceHidden","computeRatingHidden"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"computeSecondaryTextHidden",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uI.prototype,"standardizeIconSize",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uI.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uI.prototype,"noBottomMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.layout"),_.z("design:type",String),_.z("design:paramtypes",[])],uI.prototype,"layout",null);_.V([_.e("data.layout"),_.z("design:type",Object),_.z("design:paramtypes",[])],uI.prototype,"mediaThumbnailWidth",null);
_.V([_.e("layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uI.prototype,"useRoundedBadge",null);_.V([_.n(),_.z("design:type",String)],uI.prototype,"thumbnailObjectFit",void 0);_.V([_.n(),_.z("design:type",Object)],uI.prototype,"thumbnailFitHeight",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uI.prototype,"dataChanged",null);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],uI.prototype,"onTap",null);_.V([_.yj({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],uI);
_.G(uI,"ytd-display-ad-renderer",function(){if(h6b!==void 0)return h6b;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return h6b=D},{mode:1});var sPg;var maC;var e6f;var Lsd=new Map;var Eqe=!1;var Ql=function(){var D=_.w.apply(this,arguments)||this;D.DEFAULT_TOOLTIP_OFFSET="10";D.TOOLTIP_OFFSET_NO_BANNER="-8";D.badges=null;D.noEndpoints=!1;D.wrapText=!1;D.forceVerified=!1;D.tooltipPosition="top";D.compactStyle=!1;D.height=0;D.lineHeight=0;return D};
_.h(Ql,_.w);_.S=Ql.prototype;_.S.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.S.attached=function(){var D=this;this.observer=new MutationObserver(function(C,X){D.handleResized();X.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.S.detached=function(){this.observer&&this.observer.disconnect()};
_.S.logTooltipEvent=function(){_.b("kevlar_wiz_tooltip_event_killswitch")||Eqe||(_.slj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Eqe=!0)};
_.S.handleWindowResized=function(){this.handleResized()};
_.S.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")))};
_.S.onHeightChanged=function(){if(this.verified){var D=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.q6("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=D:this.textContainerEl.style.marginRight=D}};
_.S.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.q6("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.S.handleResized=function(){var D=this;this.verified&&_.qX.addLowPriorityJob(function(){D.fitBackgroundToText();var C=getComputedStyle(D.hostElement).lineHeight;C&&(C=C.match(/\d+/))&&C.length&&(D.lineHeight=Number(C[0]));D.height=D.lineHeight&&!D.wrapText?D.lineHeight:D.textEl.offsetHeight})};
_.S.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var D=document.createRange(),C=_.SY(this.textEl).children;C.length>0?D.selectNodeContents(C[0]):D.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(D.getBoundingClientRect().width)+"px"}};
_.S.computeChannelBadgeStyle=function(D){var C;if((D==null?0:(C=D.runs)==null?0:C.length)&&D.runs[0].textColor)return"--ytd-badge-icon-color:"+_.mW(D.runs[0].textColor)+";"};
_.$a.Object.defineProperties(Ql.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"?_.jV(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var D=this.get("badges.0.metadataBadgeRenderer.tooltip");if(D)return D}return _.Mh(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Ql.prototype.onLineHeightChanged=Ql.prototype.onLineHeightChanged;Ql.prototype.onHeightChanged=Ql.prototype.onHeightChanged;Ql.prototype.onChannelNameChanged=Ql.prototype.onChannelNameChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ql.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"badges",void 0);_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"channelName",void 0);
_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"noEndpoints",void 0);_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"wrapText",void 0);_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"forceVerified",void 0);_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"tooltipPosition",void 0);_.V([_.n(),_.z("design:type",String)],Ql.prototype,"tooltip",void 0);_.V([_.n(),_.z("design:type",Boolean)],Ql.prototype,"hasChannelArt",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ql.prototype,"compactStyle",void 0);_.V([_.kn("#text-container"),_.z("design:type",HTMLElement)],Ql.prototype,"textContainerEl",void 0);_.V([_.kn("#text"),_.z("design:type",Object)],Ql.prototype,"textEl",void 0);_.V([_.kn("#verified-tooltip"),_.z("design:type",HTMLElement)],Ql.prototype,"verifiedTooltip",void 0);_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"height",void 0);
_.V([_.n(),_.z("design:type",Object)],Ql.prototype,"lineHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("badges","forceVerified"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ql.prototype,"verified",null);_.V([_.e("badges","verified"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ql.prototype,"hideBadges",null);_.V([_.e("channelName"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ql.prototype,"formattedName",null);
_.V([_.e("badges","verified","formattedName"),_.z("design:type",String),_.z("design:paramtypes",[])],Ql.prototype,"tooltipText",null);_.V([_.e("hasChannelArt"),_.z("design:type",String),_.z("design:paramtypes",[])],Ql.prototype,"tooltipOffset",null);_.V([_.vr("channelName"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ql.prototype,"onChannelNameChanged",null);
_.V([_.vr("height"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ql.prototype,"onHeightChanged",null);_.V([_.vr("lineHeight","height"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ql.prototype,"onLineHeightChanged",null);_.V([_.yj({is:"ytd-channel-name",disableElementRegistration:!0})],Ql);
_.G(Ql,"ytd-channel-name",function(){if(e6f!==void 0)return e6f;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return e6f=D},{mode:_.Wc("kevlar_poly_si_batch_j036")?1:2});var BO=function(){var D=_.w.apply(this,arguments)||this;D.standardizeIconSize=_.b("kevlar_system_icons");return D};
_.h(BO,_.w);BO.prototype.basicPaletteChanged=function(){var D;(D=this.data.color)!=null&&D.basicColorPaletteData&&_.x_(this.hostElement,this.data.color.basicColorPaletteData)};
BO.prototype.useFilledIcons=function(D){return _.b("kevlar_system_icons")&&(D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE")};
_.$a.Object.defineProperties(BO.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return this.data.authorCreator||((D=this.data)==null?void 0:(C=D.color)==null?void 0:(X=C.basicColorPaletteData)==null?void 0:X.backgroundColor)}}});
BO.prototype.basicPaletteChanged=BO.prototype.basicPaletteChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],BO.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],BO.prototype,"standardizeIconSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.authorUnifiedVerified"),_.z("design:type",Object),_.z("design:paramtypes",[])],BO.prototype,"verified",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],BO.prototype,"creator",null);_.V([_.vr("data.color.basicColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BO.prototype,"basicPaletteChanged",null);_.V([_.yj({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],BO);
_.G(BO,"ytd-author-comment-badge-renderer",function(){if(maC!==void 0)return maC;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return maC=D},{mode:1});var t7J;var bI=function(){return _.w.apply(this,arguments)||this};
_.h(bI,_.w);bI.prototype.computeThumbnailWidth=function(D){if(D==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bI.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],bI.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],bI.prototype,"surface",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.b("enable_shrink_image_size_on_web_posts_singleton")}),_.z("design:type",Boolean)],bI.prototype,"searchSxsUx",void 0);_.V([_.n({reflectToAttribute:!0,value:_.b("enable_community_page_on_desktop")}),_.z("design:type",Boolean)],bI.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.yj({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],bI);
_.G(bI,"ytd-backstage-image-renderer",function(){if(t7J!==void 0)return t7J;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return t7J=D},{mode:1});var N7J;var ru=function(){var D=_.w.apply(this,arguments)||this;D.isLoading=!1;D.selectedItemIndex=-1;return D};
_.h(ru,_.w);_.S=ru.prototype;_.S.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.S.computeIsImagePoll=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.S.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.S.thumbnailSrc=function(D){var C,X,c,W;return(D==null?0:(C=D.thumbnails)==null?0:(X=C[0])==null?0:X.url)?_.Hv((c=D.thumbnails)==null?void 0:(W=c[0])==null?void 0:W.url):void 0};
_.S.progressWidth=function(D){return"width:"+(D?D*100:0)+"%;"};
_.S.textAreaWidth=function(D){return this.isImagePoll?null:"width:"+(D?D*100:0)+"%;"};
_.S.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.S.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var D=this.data.choices,C=0;C<D.length;C++)if(D[C].selected){this.selectedItemIndex=C;break}};
_.S.onPopupClosed=function(D,C){D=Number(this.pollVotes.selected);C.confirmed&&(this.selectChoice(D,!1),_.DS(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.S.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.S.onYtCommentPollRevert=function(D,C){C&&(this.selectChoice(C.selectedChoiceIndex,!0),this.set("data.totalVotes",C.totalVotes))};
_.S.onYtServiceRequestSent=function(D,C){if(C.actions)for(D=0;D<C.actions.length;D++){var X=C.actions[D];_.r(X,qU)&&this.set("data.totalVotes",_.r(X,qU).totalVotes)}};
_.S.onYtServiceRequestCompleted=function(D){var C=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(C==="FEEDBACK_DESELECT"||C==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.lE(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.S.getEndpoint=function(D,C){return C===D?this.data.choices[C].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.S.selectChoice=function(D,C){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var X=0;X<this.data.choices.length;X++){var c;if(D===this.selectedItemIndex){var W=!1;var p=c=null}else c=(W=X===D)?this.data.choices[X].voteRatioIfSelected:this.data.choices[X].voteRatioIfNotSelected,p=W?this.data.choices[X].votePercentageIfSelected:this.data.choices[X].votePercentageIfNotSelected;this.set("data.choices."+X+".voteRatio",c);
this.set("data.choices."+X+".votePercentage",p);this.set("data.choices."+X+".selected",W)}C||(this.isLoading=!0,(C=this.getEndpoint(D,this.selectedItemIndex))&&_.iX().resolve(_.uX).resolveCommand(C,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.$a.Object.defineProperties(ru.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
ru.prototype.onYtServiceRequestCompleted=ru.prototype.onYtServiceRequestCompleted;ru.prototype.onYtServiceRequestSent=ru.prototype.onYtServiceRequestSent;ru.prototype.onYtCommentPollRevert=ru.prototype.onYtCommentPollRevert;ru.prototype.onPopupClosed=ru.prototype.onPopupClosed;ru.prototype.dataChanged=ru.prototype.dataChanged;_.V([_.m(_.kO),_.z("design:type",Object)],ru.prototype,"paperItemBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],ru.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ru.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],ru.prototype,"isLoading",void 0);_.V([_.n({computed:"computeIsChannelOwner(data.choices)"}),_.z("design:type",Boolean)],ru.prototype,"isChannelOwner",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.z("design:type",Boolean)],ru.prototype,"isImagePoll",void 0);_.V([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.z("design:type",Boolean)],ru.prototype,"isTotalVotesDisabled",void 0);_.V([_.n(),_.z("design:type",Object)],ru.prototype,"previousPollInfo",void 0);_.V([_.n(),_.z("design:type",Object)],ru.prototype,"selectedItemIndex",void 0);_.V([_.kn("#poll-votes"),_.z("design:type",Object)],ru.prototype,"pollVotes",void 0);
_.V([_.e("isChannelOwner"),_.z("design:type",Object),_.z("design:paramtypes",[])],ru.prototype,"endpointStyle",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ru.prototype,"dataChanged",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],ru.prototype,"onPopupClosed",null);
_.V([_.$n("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],ru.prototype,"onYtCommentPollRevert",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],ru.prototype,"onYtServiceRequestSent",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ru.prototype,"onYtServiceRequestCompleted",null);_.V([_.yj({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],ru);
_.G(ru,"ytd-backstage-poll-renderer",function(){if(N7J!==void 0)return N7J;var D=document.createElement("template");_.x(D,'\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]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" aria-selected$="[[item.selected]]" name="[[index]]" role="option" 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" default-to-filled="true" hidden="[[!item.selected]]" icon="check-circle"></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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return N7J=D},{mode:2});var Yld;var yB5={autoplay:!1,loop:!1},nq4={simpleText:""},K6=function(){var D=_.w.apply(this,arguments)||this;D.isLoading=!1;D.usesPanelLockup=!1;D.selectedItemIndex=-1;D.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},yB5,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});D.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},yB5,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});D.correctnessAnimationProps=[];D.correctnessAnimationRefs=[];return D};
_.h(K6,_.w);_.S=K6.prototype;_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.S.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.S.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.S.computeIsImageQuiz=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.S.onExplanationChanged=function(){this.expander.reset()};
_.S.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var D=this.data.choices;if(D){this.maybeInitializeQuizLotties(D);for(var C=0;C<D.length;C++)if(D[C].isSelected||this.isChannelOwner&&D[C].isCorrect){this.selectedItemIndex=C;return}this.selectedItemIndex=-1}}};
_.S.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var D=this.selectedItemIndex,C=Number(this.quizVotes.selected);this.selectChoice(C);this.sendVoteAction(C,D);this.quizVotes.selected=-1;var X;D=!((X=this.data)==null?0:X.enableAnimation);this.maybePlayAnswerAnimations(D)}};
_.S.onYtCommentPollRevert=function(D,C){C&&(this.selectChoice(C.selectedChoiceIndex),this.set("data.totalVotes",C.totalVotes))};
_.S.onYtServiceRequestSent=function(D,C){if(C.actions)for(D=_.U(C.actions),C=D.next();!C.done;C=D.next())(C=_.r(C.value,qU))&&this.set("data.totalVotes",C.totalVotes)};
_.S.onYtServiceRequestCompleted=function(D){var C=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(C==="FEEDBACK_DESELECT"||C==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.lE(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.S.getAnimationPropsForChoiceIndex=function(D,C){return C[D]};
_.S.maybePlayAnswerAnimations=function(D){D=D===void 0?!1:D;var C;if((C=this.data)!=null&&C.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){C=_.U(this.correctnessAnimationRefs);for(var X=C.next();!X.done;X=C.next()){var c=void 0,W=void 0;(c=X.value)==null||(W=c.lottieEl)==null||W.stop()}if(!(this.selectedItemIndex<0)){C=0;D&&(C=this.isCorrect?37:25);var p,g;(p=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(g=p.lottieEl)==null||g.goToAndPlay(D?C:0,!0);if(!(this.isCorrect||
(p=this.data.choices.findIndex(function(k){return k.isCorrect}),p<0))){var a,O;
(O=(a=this.correctnessAnimationRefs[p])==null?void 0:a.lottieEl)==null||O.goToAndPlay(37,!0);var P;a=(P=this.fadeContainers)==null?void 0:P.item(p);!D&&a&&this.fadeIn(a)}}}};
_.S.thumbnailSrc=function(D){var C,X,c,W;return(D==null?0:(C=D.thumbnails)==null?0:(X=C[0])==null?0:X.url)?_.Hv((c=D.thumbnails)==null?void 0:(W=c[0])==null?void 0:W.url):void 0};
_.S.a11yVotedText=function(D,C){var X,c,W=((X=this.data)==null?void 0:(c=X.correctVotedText)==null?void 0:c.simpleText)||"",p,g;X=((p=this.data)==null?void 0:(g=p.votedText)==null?void 0:g.simpleText)||"";if(!C)return"";var a,O;if((a=this.data)==null?0:(O=a.choices)==null?0:O[D].isCorrect)return W;var P,k;return((P=this.data)==null?0:(k=P.choices)==null?0:k[D].isSelected)?X:""};
_.S.getEndpoint=function(D,C){return C===D?this.data.choices[D].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.S.sendVoteAction=function(D,C){if(D=this.getEndpoint(D,C))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(D)};
_.S.selectChoice=function(D){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var C=0;C<this.data.choices.length;C++)this.set("data.choices."+C+".isSelected",D===this.selectedItemIndex?!1:C===D);this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.S.maybeInitializeQuizLotties=function(D){var C=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=D.map(function(X){return{animationConfig:X.isCorrect?C.baseCorrectLottiePlayerAnimationConfig:C.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){C.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(X){return X.animationRef||{}})};
_.S.fadeIn=function(D){D.classList.add("fade-in");_.pI(_.qX,function(){D.classList.remove("fade-in")},900)};
_.$a.Object.defineProperties(K6.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Mh(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 D,C;return((D=this.data)==null?void 0:(C=D.choices)==null?void 0:C.some(function(X){return X.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?nq4:this.data.choices[this.selectedItemIndex].explanation||nq4}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
K6.prototype.onYtServiceRequestCompleted=K6.prototype.onYtServiceRequestCompleted;K6.prototype.onYtServiceRequestSent=K6.prototype.onYtServiceRequestSent;K6.prototype.onYtCommentPollRevert=K6.prototype.onYtCommentPollRevert;K6.prototype.dataChanged=K6.prototype.dataChanged;K6.prototype.onExplanationChanged=K6.prototype.onExplanationChanged;_.V([_.m(_.kO),_.z("design:type",Object)],K6.prototype,"paperItemBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],K6.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.xZ.YtTaskEmitterBehavior),_.z("design:type",Object)],K6.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],K6.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],K6.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],K6.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Object)],K6.prototype,"usesPanelLockup",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.z("design:type",Boolean)],K6.prototype,"isChannelOwner",void 0);_.V([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.z("design:type",Boolean)],K6.prototype,"isTotalVotesDisabled",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.z("design:type",Boolean)],K6.prototype,"isImageQuiz",void 0);_.V([_.n(),_.z("design:type",Object)],K6.prototype,"previousQuizInfo",void 0);_.V([_.n(),_.z("design:type",Object)],K6.prototype,"selectedItemIndex",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data","usesPanelLockup"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],K6.prototype,"shouldUseModernUi",null);
_.V([_.uH(".fade-container"),_.z("design:type",Object)],K6.prototype,"fadeContainers",void 0);_.V([_.n(),_.z("design:type",Array)],K6.prototype,"correctnessAnimationProps",void 0);_.V([_.e("explanation","showCorrectAnswer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],K6.prototype,"showExplanation",null);_.V([_.e("isChannelOwner","isAttempted"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],K6.prototype,"showCorrectAnswer",null);
_.V([_.e("isChannelOwner","isAttempted","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],K6.prototype,"isQuizAnsweringDisabled",null);_.V([_.e("isQuizAnsweringDisabled"),_.z("design:type",Object),_.z("design:paramtypes",[])],K6.prototype,"endpointStyle",null);_.V([_.e("data","selectedItemIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],K6.prototype,"isAttempted",null);
_.V([_.e("data","selectedItemIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],K6.prototype,"explanation",null);_.V([_.e("data","selectedItemIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],K6.prototype,"isCorrect",null);_.V([_.kn("ytd-expander"),_.z("design:type",Object)],K6.prototype,"expander",void 0);_.V([_.kn("#quiz-votes"),_.z("design:type",Object)],K6.prototype,"quizVotes",void 0);
_.V([_.vr("explanation"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K6.prototype,"onExplanationChanged",null);_.V([_.vr("data","isChannelOwner"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K6.prototype,"dataChanged",null);_.V([_.$n("yt-comment-quiz-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],K6.prototype,"onYtCommentPollRevert",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],K6.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],K6.prototype,"onYtServiceRequestCompleted",null);_.V([_.yj({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],K6);
_.G(K6,"ytd-backstage-quiz-renderer",function(){if(Yld!==void 0)return Yld;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Yld=D},{mode:1});var wDf;var hS=function(){return _.w.apply(this,arguments)||this};
_.h(hS,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hS.prototype,"data",void 0);_.V([_.yj({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],hS);
_.G(hS,"ytd-post-uploaded-video-renderer",function(){if(wDf!==void 0)return wDf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return wDf=D},{mode:1});var Fk5;var xd=function(){return _.w.apply(this,arguments)||this};
_.h(xd,_.w);xd.prototype.useFilledIcons=function(D){return D==="SPONSORSHIP_STAR"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xd.prototype,"data",void 0);_.V([_.yj({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],xd);
var ZM5=_.o3()(xd,"ytd-sponsors-only-badge-renderer",function(){if(Fk5===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);Fk5=D}D=Fk5;return D},{allowedProps:["data"],
mode:1});var GWN;var L6=function(){return _.w.apply(this,arguments)||this};
_.h(L6,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],L6.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],L6.prototype,"data",void 0);_.V([_.yj({is:"ytd-child-video-renderer",disableElementRegistration:!0})],L6);
_.G(L6,"ytd-child-video-renderer",function(){if(GWN!==void 0)return GWN;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return GWN=D},{mode:1});var V7J;var T7N;var s_=function(){var D=_.w.apply(this,arguments)||this;D.size=0;D.fallbackImageSize={height:void 0,width:9999};D.webModernCollections=!1;return D};
_.h(s_,_.w);_.S=s_.prototype;_.S.computeBlurredImageSize=function(D){return D?{height:D*2,width:D*2}:this.fallbackImageSize};
_.S.computeImageSize=function(D){return D?{height:D,width:D}:this.fallbackImageSize};
_.S.computeObjectFit=function(D){return D?"FILL":"CONTAIN"};
_.S.computePreserve=function(D){return D?!0:!1};
_.S.setBackground=function(){var D,C;if((D=this.data)==null?0:(C=D.thumbnail)==null?0:C.sampledThumbnailColor)D=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+D.red+","+D.green+","+D.blue+",1)"};
s_.prototype.setBackground=s_.prototype.setBackground;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],s_.prototype,"watchFeedThumbnail",void 0);_.V([_.n(),_.z("design:type",Object)],s_.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],s_.prototype,"size",void 0);
_.V([_.n({computed:"computeBlurredImageSize(size)"}),_.z("design:type",Object)],s_.prototype,"blurredImageSize",void 0);_.V([_.n({computed:"computeImageSize(size)"}),_.z("design:type",Object)],s_.prototype,"imageSize",void 0);_.V([_.n({computed:"computePreserve(size)"}),_.z("design:type",String)],s_.prototype,"preserve",void 0);_.V([_.n({computed:"computeObjectFit(size)"}),_.z("design:type",String)],s_.prototype,"objectFit",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],s_.prototype,"webModernCollections",void 0);_.V([_.vr("data.thumbnail.sampledThumbnailColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],s_.prototype,"setBackground",null);_.V([_.yj({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],s_);
_.G(s_,"ytd-playlist-custom-thumbnail-renderer",function(){if(T7N!==void 0)return T7N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return T7N=D},{mode:1});var HM5;var mm=function(){return _.w.apply(this,arguments)||this};
_.h(mm,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],mm.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],mm.prototype,"width",void 0);_.V([_.yj({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],mm);
_.G(mm,"ytd-playlist-video-thumbnail-renderer",function(){if(HM5!==void 0)return HM5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return HM5=D},{mode:1});var JB5;var e0=function(){return _.w.apply(this,arguments)||this};
_.h(e0,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],e0.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],e0.prototype,"width",void 0);_.V([_.yj({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],e0);
_.G(e0,"ytd-show-custom-thumbnail-renderer",function(){if(JB5!==void 0)return JB5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JB5=D},{mode:1});var z6d;var E_=function(){return _.w.apply(this,arguments)||this};
_.h(E_,_.w);E_.prototype.useFilledIcons=function(D){return D==="MUSIC"||D==="COURSE"};
E_.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=E2(this.overlayColor,"0.8");else if(this.overlayColor){var D=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+D.red+","+D.green+","+D.blue+",0.8)"}};
_.$a.Object.defineProperties(E_.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)}}});
E_.prototype.overlayColorChanged=E_.prototype.overlayColorChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],E_.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],E_.prototype,"overlayColor",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.icon","data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],E_.prototype,"overlayStyle",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.icon","data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],E_.prototype,"overlayTextStyle",null);_.V([_.vr("overlayColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E_.prototype,"overlayColorChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],E_);
_.G(E_,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(z6d!==void 0)return z6d;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return z6d=D},{mode:1});var jPq;var tS=function(){var D=_.w.apply(this,arguments)||this;D.active=!1;return D};
_.h(tS,_.w);tS.prototype.computeIsSpinnerHidden=function(D){return(D==null?void 0:D.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
tS.prototype.computeOverlayIcon=function(D){return(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],tS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],tS.prototype,"active",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],tS);
_.G(tS,"ytd-thumbnail-overlay-downloading-renderer",function(){if(jPq!==void 0)return jPq;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jPq=D},{mode:1});var M75;var Nl=function(){return _.w.apply(this,arguments)||this};
_.h(Nl,_.w);_.$a.Object.defineProperties(Nl.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Nl.prototype,"data",void 0);_.V([_.e("data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],Nl.prototype,"text",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Nl);
_.G(Nl,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(M75!==void 0)return M75;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return M75=D},{mode:1});var qle,fl5=function(){if(qle!==void 0)return qle;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qle=D};var Yd=function(){return _.w.apply(this,arguments)||this};
_.h(Yd,_.w);_.$a.Object.defineProperties(Yd,{template:{configurable:!0,enumerable:!0,get:function(){return fl5()}}});
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Yd.prototype,"animateEqualizer",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Yd);_.o3()(Yd,"ytd-thumbnail-overlay-equalizer",function(){return fl5()},{allowedProps:["animateEqualizer"],
mode:1});var da5;var yl=function(){var D=_.w.apply(this,arguments)||this;D.nowPlayingBadge=_.b("web_now_playing_badge");D.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return D};
_.h(yl,_.w);yl.prototype.activeChanged=function(){var D=this;_.b("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.A0(this,function(){_.lE(D.hostElement,"yt-playlist-lockup-now-playing-active",D)})};
yl.prototype.onMiniplayerPlayStateChanged=function(D){var C,X=(C=_.r(_.qg().currentEndpoint,_.TC))==null?void 0:C.videoId;this.isVideoPlaying=D&&(_.b("web_limit_now_playing_animation_killswitch")||this.videoId===X)};
yl.prototype.activeChanged=yl.prototype.activeChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],yl.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yl.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],yl.prototype,"isVideoPlaying",void 0);_.V([_.n(),_.z("design:type",String)],yl.prototype,"videoId",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],yl.prototype,"equalizerOnly",void 0);_.V([_.n(),_.z("design:type",Boolean)],yl.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yl.prototype,"nowPlayingBadge",void 0);_.V([_.vr("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yl.prototype,"activeChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],yl);
_.G(yl,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(da5!==void 0)return da5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return da5=D},{mode:1});var R6b;var n6=function(){return _.w.apply(this,arguments)||this};
_.h(n6,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],n6.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],n6);
_.G(n6,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(R6b!==void 0)return R6b;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return R6b=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var llx;var wu=function(){return _.w.apply(this,arguments)||this};
_.h(wu,_.w);wu.prototype.onDurationChanged=function(){var D,C;_.SY(this.hostElement).querySelector("#progress").style.width=((C=(D=this.data)==null?void 0:D.percentDurationWatched)!=null?C:0)+"%"};
wu.prototype.onDurationChanged=wu.prototype.onDurationChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],wu.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wu.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],wu.prototype,"isLive",void 0);_.V([_.vr("data.percentDurationWatched"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wu.prototype,"onDurationChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],wu);
_.G(wu,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(llx!==void 0)return llx;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return llx=D},{mode:1});var Due;var F0=function(){var D=_.w.apply(this,arguments)||this;D.bottomPanel=!1;D.richGridOverlay=!1;D.watchFeedOverlay=!1;D.isCompact=!1;return D};
_.h(F0,_.w);F0.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.$a.Object.defineProperties(F0.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.icon)==null?void 0:C.iconType)==="PLAY_ALL"&&_.b("kevlar_system_icons")}}});
F0.prototype.widthChanged=F0.prototype.widthChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],F0.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],F0.prototype,"width",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],F0.prototype,"bottomPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],F0.prototype,"richGridOverlay",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],F0.prototype,"watchFeedOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],F0.prototype,"isCompact",void 0);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],F0.prototype,"isIconFilled",null);_.V([_.vr("width","watchFeedOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F0.prototype,"widthChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],F0);
_.G(F0,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Due!==void 0)return Due;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Due=D},{mode:1});var C2k;var XaJ=["CLIP","SHORTS"],Zd=function(){var D=_.w.apply(this,arguments)||this;D.animated=_.b("animated_live_badge_icon");D.hasIcon=!1;D.updateTimerIntervalId=0;D.timeSinceLive=0;return D};
_.h(Zd,_.w);_.S=Zd.prototype;_.S.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.S.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.S.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.S.hasIconOrText=function(){var D,C;return!!(((D=this.data)==null?0:D.icon)||((C=this.data)==null?0:C.text))};
_.S.initializeLiveBadgeTimer=function(){var D=this,C,X=(C=this.liveBadgeData)==null?void 0:C.startTimestampSec;if(X&&this.canShowLiveBadgeTimer()){var c;C=Number((c=this.liveBadgeData)==null?void 0:c.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(X);this.updateTimerIntervalId=_.LC(function(){D.canShowLiveBadgeTimer()?D.timeSinceLive++:(D.timeSinceLive=0,window.clearInterval(D.updateTimerIntervalId))},C)}else this.timeSinceLive=0};
_.S.canShowLiveBadgeTimer=function(){var D=Date.now(),C,X;return D<(Number((C=this.liveBadgeData)==null?void 0:C.endTimestampSec)-1)*1E3&&D>Number((X=this.liveBadgeData)==null?void 0:X.startTimestampSec)*1E3};
_.$a.Object.defineProperties(Zd.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.mvF(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.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 XaJ.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Zd.prototype.initializeLiveBadgeTimer=Zd.prototype.initializeLiveBadgeTimer;Zd.prototype.dataChanged=Zd.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Zd.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Zd.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],Zd.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zd.prototype,"animated",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.z("design:type",Boolean)],Zd.prototype,"hideTimeStatus",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Zd.prototype,"hasIcon",void 0);_.V([_.n(),_.z("design:type",Object)],Zd.prototype,"timeSinceLive",void 0);_.V([_.e("data","timeSinceLive"),_.z("design:type",Object),_.z("design:paramtypes",[])],Zd.prototype,"badgeShapeData",null);
_.V([_.e("data","overlayType"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Zd.prototype,"hideBadgeShape",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zd.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],Zd.prototype,"overlayStyle",null);
_.V([_.e("data.liveBadgeData"),_.z("design:type",Object),_.z("design:paramtypes",[])],Zd.prototype,"liveBadgeData",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.type"),_.z("design:type",Object),_.z("design:paramtypes",[])],Zd.prototype,"overlayType",null);_.V([_.e("overlayType","overlayStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Zd.prototype,"useFilledIcon",null);
_.V([_.bH("liveBadgeData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zd.prototype,"initializeLiveBadgeTimer",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Zd);
_.G(Zd,"ytd-thumbnail-overlay-time-status-renderer",function(){if(C2k!==void 0)return C2k;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return C2k=D},{mode:_.Wc("kevlar_poly_si_batch_j035")?1:2});var cLf;var Gp=function(){return _.w.apply(this,arguments)||this};
_.h(Gp,_.w);Gp.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"}}}}};
Gp.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(D){if(this.hasPlaybackProgressBar)return{percentDurationWatched:D.percentDurationWatched}};
Gp.prototype.computeHasPlaybackProgressBar=function(D){return!!D.percentDurationWatched&&D.percentDurationWatched>0};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Gp.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.z("design:type",Boolean)],Gp.prototype,"hasPlaybackProgressBar",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Gp);
_.G(Gp,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(cLf!==void 0)return cLf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return cLf=D},{mode:1});var om4;var W65=_.F(function(D){var C=D.data;var X=D.children;var c=function(){return!!C().doubleStack},W=function(){return!!C().includeStackHeight};
return _.A("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!C().experimentEnabled}},_.A(_.v,{cond:C,
then:function(){var p={};return _.A(_.kQ,null,_.A(_.v,{cond:W,then:function(){var g={};return _.A("div",{class:_.g$("ytCollectionsStackSpacer",(g.ytCollectionsStackSpacerDoubleStack=c,g))})}}),_.A("div",{class:_.g$((p.ytCollectionsStackRelativeStack=W,p))},_.A(_.v,{cond:c,
then:function(){var g={};return _.A("div",{class:_.g$("ytCollectionsStackCollectionStack2",function(){return C().customClassName2ndStack},(g.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return C().enableResponsiveMode},g)),
style:_.P0({"background-color":function(){return E2Z(C())}})})}}),_.A("div",{class:_.g$("ytCollectionsStackCollectionStack1",function(){return C().customClassName1stStack},function(){return ehR(C().thumbnailSize?C().thumbnailSize:"medium")}),
style:_.P0({"background-color":function(){return E2Z(C())}})}),X))}}))},"Da");_.CI(W65,"yt-collections-stack",{props:{data:_.Bm}});var Vl=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};D.webModernCollections=!1;D.isSearch=!1;D.isDoubleStack=!1;D.thumbnailSize="medium";return D};
_.h(Vl,_.w);_.S=Vl.prototype;
_.S.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]]"}}}}}};
_.S.getThumbnailDetails=function(D){if(D!=null&&D.thumbnailRenderer){var C=D.thumbnailRenderer,X;if((X=C.playlistVideoThumbnailRenderer)==null?0:X.thumbnail)return C.playlistVideoThumbnailRenderer.thumbnail;var c;if((c=C.playlistCustomThumbnailRenderer)==null?0:c.thumbnail)return C.playlistCustomThumbnailRenderer.thumbnail;D=D.thumbnailRenderer;var W;if((W=D.showCustomThumbnailRenderer)==null?0:W.thumbnail)return D.showCustomThumbnailRenderer.thumbnail}};
_.S.computeOverlayColor=function(D){var C,X;if((C=this.getThumbnailDetails(D))==null?0:(X=C.darkColorPalette)==null?0:X.section2Color)return this.getThumbnailDetails(D).darkColorPalette.section2Color;var c;return(c=this.getThumbnailDetails(D))==null?void 0:c.sampledThumbnailColor};
_.S.computeWebModernCollections=function(D){if(D==null||!D.thumbnailOverlays)return!1;D=_.U(D.thumbnailOverlays);for(var C=D.next();!C.done;C=D.next()){var X=void 0;if((X=C.value)==null?0:X.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.S.computeNavigationEndpoint=function(D){return nLW(D==null?void 0:D.navigationEndpoint)};
_.$a.Object.defineProperties(Vl.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:D==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:D==null?void 0:D.vibrantColorPalette,darkColorPalette:D==null?void 0:D.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Vl.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(AQc),_.z("design:type",Object)],Vl.prototype,"ytdThumbnailBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Vl.prototype,"componentBehavior",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Vl.prototype,"watchFeedThumbnail",void 0);_.V([_.n(),_.z("design:type",Number)],Vl.prototype,"customThumbnailSize",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],Vl.prototype,"hideAria",void 0);_.V([_.n(),_.z("design:type",Object)],Vl.prototype,"data",void 0);_.V([_.n({computed:"computeOverlayColor(data)"}),_.z("design:type",Object)],Vl.prototype,"overlayColor",void 0);
_.V([_.n({computed:"computeWebModernCollections(data)"}),_.z("design:type",Object)],Vl.prototype,"webModernCollections",void 0);_.V([_.n({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],Vl.prototype,"computedNavigationEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Vl.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Vl.prototype,"isDoubleStack",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Vl.prototype,"thumbnailSize",void 0);_.V([_.e("data","isDoubleStack","thumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vl.prototype,"collectionStack",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Vl);
_.G(Vl,"ytd-playlist-thumbnail",function(){if(om4!==void 0)return om4;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return om4=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var pa4;_.CI(_.F(function(D){return _.A("yt-text-view-model",{class:_.g$("ytTextViewModelHost")},_.A(_.QG,{text:function(){return D.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.Bm}});var Tp=function(){var D=_.w.apply(this,arguments)||this;D.noEndpoints=!1;D.amsterdamPostMvp=_.b("web_amsterdam_post_mvp_playlists");D.badges=[];D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.h(Tp,_.w);_.S=Tp.prototype;_.S.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.S.getMetadata=function(D){if(!D)return[];var C=[],X=D.shortViewCountText||D.viewCountText;X&&C.push(_.Mh(X));D.publishedTimeText&&C.push(_.Mh(D.publishedTimeText));D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&C.push(_.xu(_.Mh(D.upcomingEventData.upcomingEventText),Number(D.upcomingEventData.startTime)));return C};
_.S.observeDataForBylineSeparator=function(){this.data&&_.gi(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.S.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.mW(this.metadataColor)};
_.S.getSimpleString=function(D){return _.Mh(D)};
_.S.isBylineHidden=function(D){return this.noByline||!((D==null?0:D.longBylineText)||(D==null?0:D.shortBylineText))};
_.S.isMetadataHidden=function(D){var C;return((C=this.getMetadata(D))==null?void 0:C.length)===0};
_.S.isBylineMetadataSeparatorHidden=function(D){return this.isMetadataHidden(D)||!this.shouldShowVideoInfo};
_.S.isLongByline=function(D,C){return C&&!(D==null||!D.longBylineText)};
_.$a.Object.defineProperties(Tp.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var D;return this.amsterdamPostMvp&&!((D=this.data)==null||!D.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Tp.prototype.metadataColorChanged=Tp.prototype.metadataColorChanged;Tp.prototype.observeDataForBylineSeparator=Tp.prototype.observeDataForBylineSeparator;_.V([_.m(_.OA),_.z("design:type",Object)],Tp.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Tp.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Tp.prototype,"noEndpoints",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"isSlimShort",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"radioMeta",void 0);_.V([_.n({selector:_.Y_}),_.z("design:type",Object)],Tp.prototype,"isGridViewEnabled",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"richMeta",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Tp.prototype,"amsterdamPostMvp",void 0);
_.V([_.n(),_.z("design:type",Boolean)],Tp.prototype,"noByline",void 0);_.V([_.n({computed:"isLongByline(data, radioMeta)"}),_.z("design:type",Boolean)],Tp.prototype,"longByline",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"truncateMetadataLine",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"miniMode",void 0);_.V([_.n(),_.z("design:type",Number)],Tp.prototype,"metadataColor",void 0);
_.V([_.n(),_.z("design:type",Array)],Tp.prototype,"badges",void 0);_.V([_.n({selector:_.YP,selectorArgs:["data.videoId"]}),_.z("design:type",String)],Tp.prototype,"transferState",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"isDownloading",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Tp.prototype,"typographyBump",void 0);_.V([_.kn("#metadata-line"),_.z("design:type",HTMLElement)],Tp.prototype,"metadataLine",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tp.prototype,"observeDataForBylineSeparator",null);_.V([_.vr("metadataColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tp.prototype,"metadataColorChanged",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Tp.prototype,"shouldShowVideoInfo",null);
_.V([_.e("badges"),_.z("design:type",String),_.z("design:paramtypes",[])],Tp.prototype,"inlineBadgeClass",null);_.V([_.e("longByline"),_.z("design:type",String),_.z("design:paramtypes",[])],Tp.prototype,"longBylineClass",null);_.V([_.e("data","longByline"),_.z("design:type",Object),_.z("design:paramtypes",[])],Tp.prototype,"bylineText",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Tp.prototype,"hasAttributedBylineText",null);
_.V([_.e("isGridViewEnabled","data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Tp.prototype,"watchFeedBigThumbs",null);_.V([_.yj({is:"ytd-video-meta-block",disableElementRegistration:!0})],Tp);
_.G(Tp,"ytd-video-meta-block",function(){if(pa4!==void 0)return pa4;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return pa4=D},{mode:_.Wc("kevlar_poly_si_batch_j080")?1:2});_.sI("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var HO=function(){var D=_.w.apply(this,arguments)||this;D.displayItemCount=2;D.isBackstagePlaylist=!1;D.isPostCompactPlaylist=!1;D.shouldShowChannelThumbnail=!1;return D};
_.h(HO,_.w);_.S=HO.prototype;_.S.computeFirstVideos=function(D,C){return D===void 0||C===void 0?[]:D.slice(0,C)};
_.S.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var D=this.data.thumbnailRenderer;D.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",D.playlistVideoThumbnailRenderer.thumbnail);D.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",D.playlistCustomThumbnailRenderer.thumbnail)}};
_.S.computeThumbnailHeight=function(D,C,X,c,W){return c?W==="BIG"?280:W==="MASSIVE"?337:234:X?240:C?72:D?118:138};
_.S.computeThumbnailWidth=function(D,C,X,c,W){return c?W==="MEDIUM"?450:W==="BIG"?500:W==="MASSIVE"?600:420:X?360:C?128:D?210:246};
_.S.computeUseBiggerThumbs=function(D){return D&&_.b("enable_desktop_search_bigger_thumbs")};
_.S.computeShouldShowChannelThumbnail=function(D,C){return D&&!(C==null||!C.channelThumbnail)};
_.$a.Object.defineProperties(HO.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
HO.prototype.dataChanged=HO.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],HO.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],HO.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],HO.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],HO.prototype,"displayItemCount",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HO.prototype,"isBackstagePlaylist",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HO.prototype,"isPostCompactPlaylist",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],HO.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.z("design:type",Boolean)],HO.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],HO.prototype,"biggerThumbsStyle",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],HO.prototype,"isDownloads",void 0);_.V([_.n({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.z("design:type",Object)],HO.prototype,"shouldShowChannelThumbnail",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HO.prototype,"dataChanged",null);
_.V([_.e("isSearch"),_.z("design:type",String),_.z("design:paramtypes",[])],HO.prototype,"stackThumbnailSize",null);_.V([_.yj({is:"ytd-playlist-renderer",disableElementRegistration:!0})],HO);
_.G(HO,"ytd-playlist-renderer",function(){if(V7J===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);V7J=D}D=V7J;return D},{mode:1});var STx;var Uue;var JS=function(){var D=_.w.apply(this,arguments)||this;D.startX=0;return D};
_.h(JS,_.w);JS.prototype.onEndpointMouseDown=function(D){this.startX=D.clientX};
JS.prototype.onEndpointClick=function(D){this.startX!==D.clientX&&(D.preventDefault(),D.stopPropagation())};
JS.prototype.computeObjectFit=function(D){return D==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
JS.prototype.computeCardStyle=function(D){return D?D.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.$a.Object.defineProperties(JS.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.searchRefinementCardRendererStyle)==null?void 0:C.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],JS.prototype,"data",void 0);_.V([_.n({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.z("design:type",Number)],JS.prototype,"objectFit",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.z("design:type",String)],JS.prototype,"cardStyle",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],JS.prototype,"roundContainer",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],JS.prototype,"isAlbumCard",null);_.V([_.e("data","isAlbumCard"),_.z("design:type",Object),_.z("design:paramtypes",[])],JS.prototype,"collectionStack",null);_.V([_.yj({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],JS);
_.G(JS,"ytd-search-refinement-card-renderer",function(){if(Uue!==void 0)return Uue;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Uue=D},{mode:1});var gmg;var zp=function(){var D=_.w.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.h(zp,_.w);_.V([_.n(),_.z("design:type",Object)],zp.prototype,"data",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],zp.prototype,"componentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],zp.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],zp.prototype,"isRichGrid",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],zp.prototype,"miniMode",void 0);
_.V([_.yj({is:"ytd-game-details-renderer",disableElementRegistration:!0})],zp);
_.G(zp,"ytd-game-details-renderer",function(){if(gmg!==void 0)return gmg;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return gmg=D},{mode:1});var aPc;var IPg;var j0=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return D};
_.h(j0,_.w);_.S=j0.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.currentStateData=function(D){var C=D||this.data;return C&&C.states&&C.currentStateId!=null?C.states.find(function(X){return X.stateId===C.currentStateId})||null:null};
_.S.currentStateRendererData=function(D){return(D=this.currentStateData(D))&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.S.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())};
_.S.computeButtonIcon=function(D){D=this.currentStateRendererData(D);var C;return(D==null?0:(C=D.icon)==null?0:C.iconType)?D.icon.iconType.toLowerCase():null};
_.S.computeAccessibility=function(D){return(D=this.currentStateRendererData(D))&&D.accessibilityData?D.accessibilityData.accessibilityData||null:null};
_.S.computeButtonClass=function(D){var C=this.currentStateRendererData(D);if(!C)return"";D="";var X=C.style;X&&(D+=X.toLowerCase().replace(/_/g,"-")+" ");(C=C.size)&&(D+=C.toLowerCase().replace(/_/g,"-")+" ");return D.trim()};
_.S.computeServiceEndpoint=function(D){if(!D)return null;var C=D&&D.serviceEndpoint,X=this.get("command.commandMetadata.webCommandMetadata.sendPost",D);return C?C:X&&D.command?D.command:null};
_.S.computeBellMenuItemParams=function(D){var C;D=(C=_.r(D==null?void 0:D.command,_.pt))==null?void 0:C.commands;if(!D||D.length===0)return null;C=_.r(D[0],_.fo);var X,c;return(C==null?0:(X=C.popup)==null?0:(c=X.menuPopupRenderer)==null?0:c.items)?C.popup.menuPopupRenderer.items.map(function(W){return W.menuServiceItemRenderer.trackingParams}):null};
_.S.handleBellMenuOpenSelectedAction=function(D){var C=D.trackingParams,X=this.computeBellMenuItemParams(this.data);this.data&&C&&X&&X.includes(C)&&this.ytRenderButtonBehavior._setButtonIcon(D.icon.iconType.toLowerCase())};
_.S.onYtServiceRequestCompleted=function(D,C){(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",C))&&this.set("data",D)};
_.S.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.S.resetState=function(){this.set("data.currentStateId",3)};
_.S.onYtButtonTapHandler=function(){if(this.data){var D=this.currentStateRendererData(this.data);D&&this.ytRendererBehavior.logExplicitClick(D)}};
j0.prototype.onYtServiceRequestError=j0.prototype.onYtServiceRequestError;j0.prototype.onYtServiceRequestCompleted=j0.prototype.onYtServiceRequestCompleted;j0.prototype.stateChanged=j0.prototype.stateChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],j0.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(Rs.YtRenderButtonBehavior),_.z("design:type",Object)],j0.prototype,"ytRenderButtonBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],j0.prototype,"data",void 0);_.V([_.bH("data","data.currentStateId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j0.prototype,"stateChanged",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],j0.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],j0.prototype,"onYtServiceRequestError",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],j0);
_.G(j0,"ytd-subscription-notification-toggle-button-renderer",function(){if(IPg!==void 0)return IPg;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return IPg=D},{mode:1});var OO5;var Ml=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};D.tapHandler=function(){if(D.data){var C=D.currentStateRendererData();C&&D.ytRendererBehavior.logExplicitClick(C)}};
return D};
_.h(Ml,_.w);_.S=Ml.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.currentStateData=function(){var D=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(C){return C.stateId===D.data.currentStateId})||null:null};
_.S.currentStateRendererData=function(){var D=this.currentStateData();return D&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.S.computeAccessibilityLabel=function(){var D,C,X;return(D=this.currentStateRendererData())==null?void 0:(C=D.accessibilityData)==null?void 0:(X=C.accessibilityData)==null?void 0:X.label};
_.S.computeBellMenuItemParams=function(){var D,C,X=(C=_.r((D=this.data)==null?void 0:D.command,_.pt))==null?void 0:C.commands;if(!X||X.length===0)return null;D=_.r(X[0],_.fo);var c,W;return(D==null?0:(c=D.popup)==null?0:(W=c.menuPopupRenderer)==null?0:W.items)?D.popup.menuPopupRenderer.items.map(function(p){return p.menuServiceItemRenderer.trackingParams}):null};
_.S.handleBellMenuOpenSelectedAction=function(D){var C=D.trackingParams,X=this.computeBellMenuItemParams();if(this.data&&C&&X&&X.includes(C)&&(D==null||!D.isDisabled)){var c;((c=_.r(D.serviceEndpoint,_.Up))==null?void 0:c.signal)!=="CLIENT_SIGNAL"&&(this.icon=D.icon.iconType)}};
_.S.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.S.onYtServiceRequestCompleted=function(D,C){if(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",C))this.icon=void 0,this.set("data",D)};
_.S.onYtServiceRequestError=function(){this.icon=void 0};
_.$a.Object.defineProperties(Ml.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data,C=this.textLabel,X=this.hostElement,c=this.computeAccessibilityLabel(),W=this.tapHandler,p=this.isOverlay?"overlay":"mono",g=(D==null?0:D.disableButton)?"disabled":"active";C=C?_.e6(C):void 0;return{style:p,type:"tonal",state:g,size:"M",focused:!1,formattedButtonText:C,iconPosition:"leading-trailing",onTap:NwF(D,W,X),accessibilityLabel:c}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.currentStateRendererData(),C,X,c=(X=this.icon)!=null?X:D==null?void 0:(C=D.icon)==null?void 0:C.iconType;if(c)return _.g2(c)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.data)==null?void 0:(C=D.secondaryIcon)==null?void 0:C.iconType;if(X)return _.g2(X)}}});
Ml.prototype.onYtServiceRequestError=Ml.prototype.onYtServiceRequestError;Ml.prototype.onYtServiceRequestCompleted=Ml.prototype.onYtServiceRequestCompleted;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ml.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ml.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Ml.prototype,"textLabel",void 0);
_.V([_.n(),_.z("design:type",String)],Ml.prototype,"icon",void 0);_.V([_.n(),_.z("design:type",Boolean)],Ml.prototype,"isOverlay",void 0);_.V([_.e("data.*","textLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ml.prototype,"computedButtonShape",null);_.V([_.e("data.*","icon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ml.prototype,"computedIcon",null);_.V([_.e("computedIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ml.prototype,"computedAnimateIcon",null);
_.V([_.e("data.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ml.prototype,"computedSecondaryIcon",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],Ml.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ml.prototype,"onYtServiceRequestError",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Ml);
_.G(Ml,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(OO5!==void 0)return OO5;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return OO5=D},{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var ALq;_.CI(ABN,"yt-animated-action",{props:{backgroundLottieRef:_.Bm,foregroundLottieRef:_.Bm,wrapperClass:_.Bm,disableAnimation:_.Bm},unsafeExternallySettableAttributes:new Set(["key"])});var ql=function(){var D=_.w.apply(this,arguments)||this;D.animatedActionEnabled=_.b("web_animated_actions");D.foregroundLottieRef={};D.backgroundLottieRef={};D.forceIconOnly=!1;D.showTextWhileAnimating=!1;D.keyboardFocused=!1;D.isAnimating=!1;D.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return D};
_.h(ql,_.w);_.S=ql.prototype;_.S.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.S.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]]"}}}}}};
_.S.attached=function(){this.keyboardFocused=!1};
_.S.onYtServiceRequestSent=function(D,C){(this.get("endpoint.subscribeEndpoint",C)||this.get("endpoint.unsubscribeEndpoint",C))&&this.updateSubscriptionState(!this.subscribed)};
_.S.onYtServiceRequestCompleted=function(D,C){(D=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",C.data))&&this.bellButton&&(this.bellButton.data=D)};
_.S.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Os(this.hostElement)};
_.S.onPlayerSubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.S.onPlayerUnsubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||this.updateSubscriptionState(!1)};
_.S.handleUpdateSubscribeButtonAction=function(D){D=_.r(D,SvM);var C;D&&D.channelId===((C=this.data)==null?void 0:C.channelId)&&this.updateSubscriptionState(!!D.subscribed)};
_.S.computeButtonStyle=function(D){return this.get("style.styleType",D)||null};
_.S.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.S.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.S.updateSubscriptionState=function(D){if(D!==this.subscribed){this.set("data.subscribed",D);var C,X=(C=this.data)==null?void 0:C.subscribedEntityKey;X&&this.ytdReduxBehavior.dispatch(_.bK("subscriptionStateEntity",X,{key:X,subscribed:D}));this.isCompactRed()||_.lE(this.hostElement,"yt-subscription-changed",D);D||(_.DS(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!D),D&&this.hasBellButton&&this.startAnimation())}};
_.S.startAnimation=function(){var D=this;if(!this.isAnimating){var C=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var X;(X=this.backgroundLottieRef.lottieEl)==null||X.goToAndPlay(0);var c;(c=this.foregroundLottieRef.lottieEl)==null||c.goToAndPlay(0);_.qX.addJob(function(){D.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.qX.addJob(function(){D.updateContainerToFitContent(!!D.subscribed,!0)},2,1500);
_.qX.addJob(function(){D.isAnimating=!1},2,C)}};
_.S.maybeAnimateBellIcon=function(){var D=_.Us(this.hostElement).querySelector("yt-animated-icon");if(D){var C;(C=D.animationRef.lottieEl)==null||C.goToAndPlay(0)}};
_.S.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.S.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.S.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var D;this.unsubscribedWidth=(D=this.subscribeButtonShape)==null?void 0:D.getBoundingClientRect().width}var C;this.subscribedWidth=(C=this.bellButton)==null?void 0:C.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.S.updateContainerToFitContent=function(D,C){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(D?(D=this.subscribedWidth,C=this.isAnimating&&!C,this.subscribedIconOnlyWidth===void 0||C||(D=this.subscribedIconOnlyWidth),this.hostElement.style.width=D+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.S.clearContainerSize=function(){this.hostElement.style.width=""};
_.S.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.S.maybeSetSubscribedButtonIconOnlyWidth=function(){var D=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var C;D.subscribedIconOnlyWidth=(C=D.bellButton)==null?void 0:C.getBoundingClientRect().width;requestAnimationFrame(function(){if(D.bellButton){var X;D.bellButton.textLabel=
(X=D.data)==null?void 0:X.subscribedButtonText}})})))};
_.$a.Object.defineProperties(ql.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 D;return(D=this.data)==null?void 0:D.subscribedButtonText}var C;return this.forceIconOnly?void 0:(C=this.data)==null?void 0:C.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,C,X=((D=this.data)==null?void 0:(C=D.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"subscribe",timings:X,enabled:X.length>0&&!this.subscribed,experimentEnabled:X.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!this.subscribed&&((D=this.data)==null?void 0:D.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 D={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var C=D.renderer;var X=D.element;var c=D.subscribed;var W=D.commandController;var p=D.isOverlay;D=D.stopPropagation;var g=wBt(C,c);p&&(g.style="overlay");p=Object;var a=p.assign,O;a:switch((O=C.style)==null?void 0:O.styleType){case "COMPACT_GRAY":case "COMPACT_RED":O={size:"S"};break a;default:O={size:"M"}}var P=n2m(C,
c);var k=(k=c?C.subscribedButtonText:C.unsubscribedButtonText)?_.e6(k):void 0;return a.call(p,{},g,O,{focused:!1,toggled:c,accessibilityLabel:P,formattedButtonText:k,onTap:y5h(C,c,X,W,D)})}}}});
ql.prototype.onMouseDown=ql.prototype.onMouseDown;ql.prototype.onDataChanged=ql.prototype.onDataChanged;ql.prototype.observedSubscribed=ql.prototype.observedSubscribed;ql.prototype.onYtServiceRequestCompleted=ql.prototype.onYtServiceRequestCompleted;ql.prototype.onYtServiceRequestSent=ql.prototype.onYtServiceRequestSent;ql.prototype.maybeUpdateBellButtonText=ql.prototype.maybeUpdateBellButtonText;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ql.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ql.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],ql.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ql.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.subscribedEntityKey"],selector:c5o}),_.z("design:type",Object)],ql.prototype,"subscriptionStateEntity",void 0);_.V([_.n({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ql.prototype,"subscribed",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ql.prototype,"branded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ql.prototype,"animatedActionEnabled",void 0);
_.V([_.n(),_.z("design:type",Object)],ql.prototype,"foregroundLottieRef",void 0);_.V([_.n(),_.z("design:type",Object)],ql.prototype,"backgroundLottieRef",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ql.prototype,"overlayButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.z("design:type",Object)],ql.prototype,"buttonStyle",void 0);_.V([_.n(),_.z("design:type",Object)],ql.prototype,"forceIconOnly",void 0);
_.V([_.n(),_.z("design:type",Object)],ql.prototype,"showTextWhileAnimating",void 0);_.V([_.n({value:function(){return!!_.iX().resolve(_.vK(_.E7))&&_.b("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.z("design:type",Boolean)],ql.prototype,"useKeyboardFocused",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ql.prototype,"keyboardFocused",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ql.prototype,"isAnimating",void 0);_.V([_.e("data.notificationPreferenceButton.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"hasBellButton",null);
_.V([_.vr("subscribedButtonText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ql.prototype,"maybeUpdateBellButtonText",null);_.V([_.e("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"subscribedButtonText",null);_.V([_.e("data.timedAnimationData.animationTiming","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"smartimationSettings",null);
_.V([_.n({reflectToAttribute:!0}),_.e("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"subscribeButtonHidden",null);_.V([_.n({reflectToAttribute:!0}),_.e("subscribed","hasBellButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"subscribeButtonInvisible",null);
_.V([_.n({reflectToAttribute:!0}),_.e("subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"unsubscribeButtonHidden",null);_.V([_.kn("ytd-subscription-notification-toggle-button-renderer-next"),_.z("design:type",Object)],ql.prototype,"bellButton",void 0);_.V([_.kn("#subscribe-button-shape"),_.z("design:type",HTMLElement)],ql.prototype,"subscribeButtonShape",void 0);
_.V([_.e("overlayButton","subscribed","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ql.prototype,"buttonShape",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],ql.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],ql.prototype,"onYtServiceRequestCompleted",null);
_.V([_.vr("subscribed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ql.prototype,"observedSubscribed",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ql.prototype,"onDataChanged",null);_.V([_.$n("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ql.prototype,"onMouseDown",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],ql);
_.G(ql,"ytd-subscribe-button-renderer",function(){if(ALq!==void 0)return ALq;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ALq=D},{mode:1});var f6=function(){var D=_.w.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.h(f6,_.w);f6.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],f6.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],f6.prototype,"isRichGrid",void 0);_.V([_.yj({is:"ytd-game-card-renderer",disableElementRegistration:!0})],f6);
_.G(f6,"ytd-game-card-renderer",function(){if(aPc!==void 0)return aPc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return aPc=D},{mode:1});var du={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.b("defer_menus")&&!Jzq?0:void 0,waitForSignal:"eocs"};var P25;var $ue;var R4=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return D};
_.h(R4,_.w);_.S=R4.prototype;_.S.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.S.onSeriesReminderStateEntityChange=function(){var D,C,X;((D=this.eventReminderStateEntity)==null?0:D.key)&&((C=this.seriesReminderStateEntity)==null?void 0:C.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((X=this.eventReminderStateEntity)==null?void 0:X.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.bK("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.S.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.S.onYtServiceRequestError=function(){var D;this.updateReminderStateEntitiesFromButtonState((D=this.data)==null?void 0:D.currentState)};
_.S.handleUpdateUpcomingEventReminderButtonStateCommand=function(D){if(D=_.r(D,p9b)){var C,X=(C=this.data)==null?void 0:C.targetId;X&&D.targetId===X&&_.TA(this.updateReminderStateEntitiesFromButtonState.bind(this,D.state))}};
_.S.getButtonStateFromReminderState=function(){var D;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var C;if(((C=this.eventReminderStateEntity)==null?void 0:C.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var X,c;if(((X=this.seriesReminderStateEntity)==null?void 0:X.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((c=this.eventReminderStateEntity)==
null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var W;return(W=this.data)==null?void 0:W.currentState};
_.S.updateReminderStateEntitiesFromButtonState=function(D){if(D){switch(D){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":D="UPCOMING_EVENT_REMINDER_STATE_NONE";var C="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":D="UPCOMING_EVENT_REMINDER_STATE_SINGLE";C="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":D="UPCOMING_EVENT_REMINDER_STATE_NONE";C="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var X;
((X=this.eventReminderStateEntity)==null?0:X.key)&&this.ytdReduxBehavior.dispatch(_.bK("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:D})));var c;((c=this.seriesReminderStateEntity)==null?0:c.key)&&this.ytdReduxBehavior.dispatch(_.bK("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:C})))}};
_.$a.Object.defineProperties(R4.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.getButtonStateFromReminderState(),C,X;if(D&&((C=this.data)==null?0:(X=C.states)==null?0:X.length))for(C=_.U(this.data.states),X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0;if(((c=_.r(X,SAk))==null?void 0:c.state)===D)return _.r(X,SAk)}}}});
R4.prototype.onYtServiceRequestError=R4.prototype.onYtServiceRequestError;R4.prototype.onYtServiceRequestCompleted=R4.prototype.onYtServiceRequestCompleted;R4.prototype.onSeriesReminderStateEntityChange=R4.prototype.onSeriesReminderStateEntityChange;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],R4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],R4.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],R4.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Wsr}),_.z("design:type",Object)],R4.prototype,"eventReminderStateEntity",void 0);
_.V([_.n({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(D,C){return _.aI(D.entities,"sportsSeriesReminderStateEntity",C)}}),
_.z("design:type",Object)],R4.prototype,"seriesReminderStateEntity",void 0);_.V([_.e("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],R4.prototype,"currentButtonStateRenderer",null);_.V([_.vr("seriesReminderStateEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R4.prototype,"onSeriesReminderStateEntityChange",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R4.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R4.prototype,"onYtServiceRequestError",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],R4);
_.G(R4,"ytd-upcoming-event-reminder-button-renderer",function(){if($ue!==void 0)return $ue;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return $ue=D},{mode:1});var vmc;var lI=function(){return _.w.apply(this,arguments)||this};
_.h(lI,_.w);lI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.$a.Object.defineProperties(lI.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(_.b("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],lI.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],lI.prototype,"shelfDismissal",void 0);_.V([_.e("data.responseText"),_.z("design:type",Object),_.z("design:paramtypes",[])],lI.prototype,"text",null);
_.V([_.e("data.responseText"),_.z("design:type",Object),_.z("design:paramtypes",[])],lI.prototype,"textAriaLabel",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],lI);
_.G(lI,"ytd-notification-multi-action-renderer",function(){if(vmc!==void 0)return vmc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return vmc=D},{mode:1});var iOk;var DX=function(){return _.w.apply(this,arguments)||this};
_.h(DX,_.w);DX.prototype.ready=function(){var D=this;_.SY(this.hostElement).querySelector("#undo").addEventListener("tap",function(){D.onUndoTap()})};
DX.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DX.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],DX);
_.G(DX,"ytd-notification-text-renderer",function(){if(iOk!==void 0)return iOk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return iOk=D},{mode:1});var kKb;var C9=function(){var D=_.w.apply(this,arguments)||this;D.mouseOverDelayJobId=0;D.fadeInImageDelayJobId=0;D.startTimeMs=-1;D.loadingStartTimeMs=-1;D.loadingEndTimeMs=-1;D.hasVideoPreview=!1;return D};
_.h(C9,_.w);_.S=C9.prototype;_.S.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.S.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.S.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.S.showThumbnail=function(){var D=this;this.csn=_.LN();_.mU("fmth");_.qX.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.pI(_.qX,function(){D.loadingStartTimeMs=(0,_.kh)();var C=_.SY(D.hostElement).querySelector("#thumbnail");C.complete?D.displayMouseOverImage():C.addEventListener("load",_.Pr(D,D.displayMouseOverImage))},150):_.gi(_.SY(this.hostElement).querySelector("#play"),"show",!0)};
_.S.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.S.onTap=function(){this.removeVideoPreview()};
_.S.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var D=this.videoId,C=this.csn,X=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,c=this.startTimeMs,W=this.hasVideoPreview,p=_.bO(this.trackingParams),g={isMovingThumbnail:W};W&&c>0&&(X>0&&(g.movingThumbnailLoadingDurationMs=Math.round(X)),g.durationHoveredMs=Math.round((0,_.kh)()-c));D&&(g.videoId=D);_.JZ(C,p,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:g});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.S.removeVideoPreview=function(){_.qX.cancelJob(this.mouseOverDelayJobId);_.qX.cancelJob(this.fadeInImageDelayJobId);var D=_.SY(this.hostElement).querySelector("#thumbnail");_.gi(D,"fade-in",!1);D.removeEventListener("load",_.Pr(this,this.displayMouseOverImage));D=_.SY(this.hostElement).querySelector("#play");_.gi(D,"fade-in",!1);_.gi(D,"show",!1)};
_.S.displayMouseOverImage=function(){var D=_.SY(this.hostElement).querySelector("#thumbnail"),C=_.SY(this.hostElement).querySelector("#play");this.isImageAvailable(D)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.kh)(),this.startTimeMs=(0,_.kh)(),this.fadeInImageDelayJobId=_.pI(_.qX,function(){_.gi(D,"fade-in",!0)},50)):_.gi(C,"fade-in",!0)};
_.S.computeThumbnail=function(D,C){var X;D&&D.movingThumbnailDetails&&D.movingThumbnailDetails.thumbnails&&C?X=_.XA(D.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):X=C?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(X)return _.Hv(X)};
_.S.isImageAvailable=function(D){return!(!D.src||D.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||D.naturalWidth===120)};
C9.prototype.onTap=C9.prototype.onTap;C9.prototype.dataChanged=C9.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],C9.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],C9.prototype,"csn",void 0);_.V([_.n(),_.z("design:type",Object)],C9.prototype,"trackingParams",void 0);
_.V([_.n(),_.z("design:type",String)],C9.prototype,"videoId",void 0);_.V([_.n(),_.z("design:type",Boolean)],C9.prototype,"isAttachedAndDataSet",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C9.prototype,"dataChanged",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C9.prototype,"onTap",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],C9);
_.G(C9,"ytd-moving-thumbnail-renderer",function(){if(kKb!==void 0)return kKb;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return kKb=D},{mode:1});var uYb;_.gB=function(D){this.hostElement=D;this.eventSink=null;this.eventList=[]};
_.gB.prototype.shouldForward=function(){var D,C;return(C=(D=this.eventSink)==null?void 0:D.isConnected)!=null?C:document.body.contains(this.eventSink)};
_.gB.prototype.start=function(D,C){this.eventSink&&this.stop();for(var X=0;X<D.length;X++)this.hostElement.addEventListener(D[X],_.Pr(this,this.forwardEvent));var c;this.eventSink=(c=C.hostElement)!=null?c:C;this.eventList=D};
_.gB.prototype.stop=function(){for(var D=0;D<this.eventList.length;D++)this.hostElement.removeEventListener(this.eventList[D],_.Pr(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.gB.prototype.forwardEvent=function(D,C){this.shouldForward()&&(D.stopPropagation(),this.eventSink instanceof Element?_.lE(this.eventSink,D.type,C):_.fQ(new _.Zf("eventSink is not an element")))};_.XZ={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.gB(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(D,C){this.forwarder_.start(D,C)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var cw=function(){return _.w.apply(this,arguments)||this};
_.h(cw,_.w);_.S=cw.prototype;_.S.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=_.q6("HTML_DIR")==="rtl"?"right":"left"};
_.S.dataChanged=function(){this.popupOpen=!1};
_.S.computeAriaLabel=function(D){return _.r(D,x45).label};
_.S.onTap=function(D){D.stopPropagation();D.preventDefault();this.data.command&&_.iX().resolve(_.uX).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.S.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.S.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
cw.prototype.onPopupClosed=cw.prototype.onPopupClosed;cw.prototype.onPopupOpened=cw.prototype.onPopupOpened;cw.prototype.onTap=cw.prototype.onTap;cw.prototype.dataChanged=cw.prototype.dataChanged;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],cw.prototype,"eventForwardingBehavior",void 0);_.V([_.m(_.Co),_.z("design:type",Object)],cw.prototype,"ironButtonState",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],cw.prototype,"componentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],cw.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:-1}),_.z("design:type",Number)],cw.prototype,"tabindex",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.z("design:type",Object)],cw.prototype,"ariaLabel",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],cw.prototype,"disableTooltips",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],cw.prototype,"popupOpen",void 0);
_.V([_.n(),_.z("design:type",Element)],cw.prototype,"eventSink",void 0);_.V([_.kn("#tooltip"),_.z("design:type",Object)],cw.prototype,"tooltip",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cw.prototype,"dataChanged",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],cw.prototype,"onTap",null);
_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cw.prototype,"onPopupOpened",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cw.prototype,"onPopupClosed",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],cw);
_.G(cw,"ytd-thumbnail-overlay-button-renderer",function(){if(uYb!==void 0)return uYb;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return uYb=D},{mode:1});var QjM;var ou=function(){return _.w.apply(this,arguments)||this};
_.h(ou,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ou.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ou.prototype,"disableAnimation",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ou.prototype,"rounded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ou.prototype,"transparentBackground",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ou.prototype,"noPadding",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],ou);
_.G(ou,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(QjM!==void 0)return QjM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return QjM=D},{mode:1});var B9N;var Ww=function(){return _.w.apply(this,arguments)||this};
_.h(Ww,_.w);Ww.prototype.computeIconPosition=function(D){return this.get("iconPosition",D)||null};
Ww.prototype.computeIconStyle=function(D){return this.get("iconStyle",D)||null};
Ww.prototype.computeIsIconStyleFilled=function(D){if(!D)return!1;var C;return D.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((C=D.icon)==null?void 0:C.iconType)==="ERROR_BLACK"};
_.V([_.n(),_.z("design:type",Object)],Ww.prototype,"data",void 0);_.V([_.n({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.z("design:type",Object)],Ww.prototype,"iconPosition",void 0);_.V([_.n({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.z("design:type",Object)],Ww.prototype,"iconStyle",void 0);_.V([_.n({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Ww.prototype,"iconStyleFilled",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Ww);
_.G(Ww,"ytd-thumbnail-overlay-icon-renderer",function(){if(B9N!==void 0)return B9N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return B9N=D},{mode:1});var bOq;var p9=function(){return _.w.apply(this,arguments)||this};
_.h(p9,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],p9.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],p9);
_.G(p9,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(bOq!==void 0)return bOq;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bOq=D},{mode:1});var rLd;var Sx=function(){var D=_.w.apply(this,arguments)||this;D.isPreviewLoading=!1;return D};
_.h(Sx,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Sx.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Sx.prototype,"isPreviewLoading",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Sx);
_.G(Sx,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(rLd!==void 0)return rLd;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rLd=D},{mode:1});var K6e;var Ug=function(){return _.w.apply(this,arguments)||this};
_.h(Ug,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ug.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Ug);
_.G(Ug,"ytd-thumbnail-overlay-pinking-renderer",function(){if(K6e!==void 0)return K6e;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return K6e=D},{mode:1});var h0M;var gz=function(){var D=_.w.apply(this,arguments)||this;D.disableTooltips=!1;D.isLoading=!1;D.useExpandableTooltip=!1;D.toggled=!1;D.hovered=!1;D.mouseoverDelayJobId=0;D.toggleDelayJobId=0;D.expandAnimationDelayJobId=0;return D};
_.h(gz,_.w);_.S=gz.prototype;_.S.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");_.SY(this.hostElement).querySelector("#tooltip").position=_.q6("HTML_DIR")==="rtl"?"right":"left"};
_.S.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.qX.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.qX.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.qX.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.S.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.qX.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.qX.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.qX.cancelJob(this.expandAnimationDelayJobId)};
_.S.computeIcon=function(D,C,X){return(D=X?C:D)&&D.iconType?_.g2(D.iconType):void 0};
_.S.computeAriaLabel=function(D,C,X){return _.r(X?C:D,x45).label};
_.S.computeTooltip=function(D,C,X){return X?C:D};
_.S.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.S.computeIconOnHover=function(D,C){if((D==null?0:D.iconType)&&!C)return _.g2(D.iconType)};
_.S.onTap=function(D){var C=this;D.stopPropagation();D.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(D),this.useExpandableTooltip&&(this.toggleDelayJobId=_.pI(_.qX,function(){C.hovered=!1;C.data&&!C.data.toggledServiceEndpoint&&(C.expandAnimationDelayJobId=_.pI(_.qX,function(){C.set("data.isToggled",
!1)},200))},2E3))};
_.S.onMouseenter=function(){var D=this;this.mouseoverDelayJobId=_.pI(_.qX,function(){D.hovered=!0},300)};
_.S.onMouseleave=function(){_.qX.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.S.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.S.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.S.onServiceRequestCompleted=function(D,C){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(C)||this.set("data.isToggled",!this.data.isToggled)};
_.S.serviceRequestWasSuccessful=function(D){return _.r(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.gX)?D.data.status==="STATUS_SUCCEEDED":!0};
gz.prototype.onServiceRequestCompleted=gz.prototype.onServiceRequestCompleted;gz.prototype.onPopupClosed=gz.prototype.onPopupClosed;gz.prototype.onPopupOpened=gz.prototype.onPopupOpened;gz.prototype.onMouseleave=gz.prototype.onMouseleave;gz.prototype.dataChanged=gz.prototype.dataChanged;_.V([_.m(_.Co),_.z("design:type",Object)],gz.prototype,"ironButtonState",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],gz.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],gz.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.z("design:type",Object)],gz.prototype,"ariaLabel",void 0);_.V([_.n(),_.z("design:type",Object)],gz.prototype,"disableTooltips",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],gz.prototype,"popupOpen",void 0);_.V([_.n(),_.z("design:type",Object)],gz.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Element)],gz.prototype,"eventSink",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],gz.prototype,"useExpandableTooltip",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.z("design:type",Object)],gz.prototype,"toggled",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],gz.prototype,"hovered",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.z("design:type",Object)],gz.prototype,"iconOnHover",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gz.prototype,"dataChanged",null);
_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gz.prototype,"onMouseleave",null);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gz.prototype,"onPopupOpened",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gz.prototype,"onPopupClosed",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],gz.prototype,"onServiceRequestCompleted",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],gz);
_.G(gz,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(h0M!==void 0)return h0M;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return h0M=D},{mode:_.Wc("kevlar_poly_si_batch_j053")?1:2});var xuf;var L64=_.F(function(D){var C=D.data;var X=D.thumbnailSize;var c=function(){return C().enableSegmentView};
return _.A("yt-thumbnail-overlay-progress-bar-view-model",{class:_.g$("ytThumbnailOverlayProgressBarHost",function(){return Fsd(X==null?void 0:X())})},_.A(_.v,{cond:c,
then:function(){return _.A("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.A("div",{class:_.sN("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+C().startPercent+"%"}}),_.A("div",{class:_.sN("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+C().segmentDurationPercent+"%"}},_.A("div",{class:_.sN("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.A("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.A("div",null," ",function(){return C().segmentLabel})),_.A("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.A("div",{class:_.sN("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.A(_.v,{cond:function(){return!c()&&C().startPercent},
then:function(){var W={};return _.A("div",{class:_.sN("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(W.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.b("web_enable_modern_progress_bar_overlay"),W))},_.A("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+C().startPercent+"%"}}))}}))},"Fa");
L64.idomCompat=!0;_.sjJ=_.F(function(D){var C=_.PX(),X=_.uu(function(W){var p,g,a;a:{var O=(p=D.data())==null?void 0:p.animationActivationTargetId;p=((g=D.data())==null?void 0:g.animationActivationEntityKey)||"";g=(a=D.data())==null?void 0:a.animationActivationEntitySelectorType;if(p&&O)switch(g){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":W=_.a_(W,p);a=_.iX().resolve(_.vK(_.wB));O=!!(W&&W.videoId===O&&(a==null?0:a.isMiniplayerActive()));O={activated:O,playAnimation:O&&W.playerState==="PLAYER_STATE_PLAYING"};
break a}O=void 0}return O});
_.Jw(function(){var W;if((W=X())==null?0:W.activated){var p;if((p=X())==null?0:p.playAnimation){var g;(g=C.lottieEl)==null||g.goToAndPlay(0)}else{var a;(a=C.lottieEl)==null||a.goToAndStop(0)}}},"DbQiXd");
var c=function(){var W,p=!((W=X())==null||!W.activated);if(D.data()){W=D.data();var g=void 0;W.icon&&(g=_.Wuo(W.icon),g=Pgt(g));var a=void 0,O;if((O=W.backgroundColor)==null?0:O.lightTheme){var P;a={backgroundColor:E2((P=W.backgroundColor)==null?void 0:P.lightTheme,"0.8")}}if(W.text||g||p){if(p&&W.lottieData&&C){P=W.lottieData;var k,u,Q;O={animationConfig:{name:P.url,path:P.url,autoplay:(k=P.settings)==null?void 0:k.autoplay,loop:(Q=(u=P.settings)==null?void 0:u.loop)!=null?Q:!0},animationRef:C}}else O=
void 0;if(p)k=17;else b:switch(W.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":k=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":k=19;break b;default:k=17}p={type:k,text:p&&W.animatedText?W.animatedText:W.text,icon:g,customColors:a,animation:O}}else p=void 0}else p=void 0;return p};
return _.A("yt-thumbnail-badge-view-model",{class:_.g$("ytThumbnailBadgeViewModelHost",D.class)},_.A(_.v,{cond:c,then:function(){return _.A(_.iI,{data:function(){return c()}})}}))},"Ha");var muq=_.F(function(D){var C={},X={};return _.A("yt-thumbnail-bottom-overlay-view-model",{class:_.g$("ytThumbnailBottomOverlayViewModelHost",(C.ytThumbnailBottomOverlayViewModelHostBackground=function(){return D.data().enableGradientBackground},C))},_.A(_.BX,{data:function(){return D.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(c){return _.A(L64,{data:c.data,
thumbnailSize:D.thumbnailSize})}}),_.A("div",{class:_.g$("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var c;
return ZwJ((c=D.thumbnailSize)==null?void 0:c.call(D))},(X.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var c;
return(c=D.isClip)==null?void 0:c.call(D)},X.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var c;
return!_.b("web_enable_modern_progress_bar_overlay")&&((c=D.thumbnailSize)==null?void 0:c.call(D))==="small"},X))},_.A(_.BX,{data:function(){return D.data().badge}},{thumbnailBadgeViewModel:function(c){return _.A(_.sjJ,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.A(_.BX,{data:function(){return D.data().badges}},{thumbnailBadgeViewModel:function(c){return _.A(_.sjJ,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
muq.idomCompat=!0;_.CI(muq,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.R3,thumbnailSize:_.R3,isClip:_.R3}});var fUJ={calledOnce:!1,state:"visible"},dvR={calledOnce:!1,state:"hidden"};var au=_.F(function(D){var C=D.data;var X=D.className;D=D.alwaysShow;var c=_.TwR(),W={};return _.A("thumbnail-hover-overlay-view-model",{el:_.fb(_.NH(function(){return C().rendererContext})),
class:_.g$("ytThumbnailHoverOverlayViewModelHost",X,(W.ytThumbnailHoverOverlayViewModelHostForceHover=D,W)),"aria-label":function(){var p;return(p=_.r(C().rendererContext,_.by))==null?void 0:p.label},
role:function(){return _.EN(C().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.EN(C().rendererContext)!==void 0?0:void 0},
"on:keypress":c},_.A("div",{class:_.g$("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(C().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var p="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:p="ytThumbnailHoverOverlayViewModelStyleCover"}return p})},_.A(_.v,{cond:function(){return C().icon},
then:function(p){return _.A(_.M_,{data:p,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.A(_.v,{cond:function(){return C().text},
then:function(p){return _.A(_.QG,{text:p,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
au.idomCompat=!0;var e0q=_.F(function(D){var C=D.data;return _.A(_.BX,{data:function(){return C==null?void 0:C().overlays}},{thumbnailHoverOverlayViewModel:au})},"La");
e0q.idomCompat=!0;var Emb={};var ttd=_.F(function(D){var C=D.data;var X=D.image;var c=D.state;var W=D.iconType;var p=D.overlays;var g=D.isOverlay;var a=_.IX("div");D=_.U(_.Li(!0,void 0,"AA4e7b"));var O=D.next().value,P=D.next().value,k=function(){return!!C().onTap},u=_.di(W,"LIVE");
_.Jw(function(){var B=C();requestAnimationFrame(function(){if(a.value===null)var K=!0;else{var L=a.value;K=B.badgeText;var t=lU5(B.size);K in Emb?L=Emb[K]:(L=L.clientWidth,Emb[K]=L);(K=L>t)?a.value.style.display="none":a.value.style.visibility="visible"}P(K)})},"vNdN8b");
var Q=function(){var B={};return B["yt-spec-avatar-shape__image"]=!0,B["yt-spec-avatar-shape__image--ads-app"]=C().type===1,B["yt-spec-avatar-shape__image--inscribed-square"]=C().type===2,B};
return _.A("yt-avatar-shape",null,_.A("div",{el:_.fb(Czo(k,{keydown:function(B){if(B.key==="Enter"){var K;(K=B.currentTarget)==null||K.click()}},
click:function(B){var K,L;return void((L=(K=C()).onTap)==null?void 0:L.call(K,B))}})),
class:function(){var B={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},K=C();B=(B[K.clusterLayoutConfig?oqn(K.clusterLayoutConfig):Wkh(K.size)]=!0,B["yt-spec-avatar-shape__button--tappable"]=k(),B);(K=C().avatarButtonCustomClassName)&&(B[K]=!0);return _.sN(B)},
"aria-label":function(){return k()?C().accessibilityText:""},
role:function(){return k()?"button":void 0},
tabindex:function(){return k()?0:void 0}},_.A("div",{class:function(){var B,K=C(),L=c==null?void 0:c(),t=g==null?void 0:g(),Y=!((B=K.decorations)==null||!B.includes(2)||K.size!=="medium"&&K.size!=="large"),y=K.size==="tiny"||K.size==="extra-small",J,T,H,q,R={};
B=(R["yt-spec-avatar-shape--live-ring"]=!!(((J=K.decorations)==null?0:J.includes(0))&&Sl3(K.size)),R["yt-spec-avatar-shape--stories-watched"]=Y&&!(L==null||!L.storiesWatched),R["yt-spec-avatar-shape--stories-unwatched"]=Y&&!(L==null?0:L.storiesWatched),R["yt-spec-avatar-shape--background-border"]=Uad(K.decorations)&&!y,R["yt-spec-avatar-shape--background-border-thin"]=Uad(K.decorations)&&y,R["yt-spec-avatar-shape__on-select-border"]=!((T=K.decorations)==null||!T.includes(4)),R["yt-spec-avatar-shape__white-border"]=
!((H=K.decorations)==null||!H.includes(5)),R["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((q=K.decorations)==null?0:q.includes(5))&&y),R["yt-spec-avatar-shape--is-overlay"]=!!t,R);return _.sN(B)},
style:function(){a:{var B=C().clusterLayoutConfig;if(B){b:{var K=B.numAvatarsInCluster;var L=B.avatarIndex;if(L!==K-1){switch(B.clusterSize){case "small":B="32";break;case "medium":B="36";break;case "40":B="40";break;default:K=void 0;break b}K="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+B+"x"+B+"_avatars_"+K+"_index_"+L+".svg"}else K=void 0}if(K){K=_.P0({"-webkit-mask-image":"url("+K+")","mask-image":"url("+K+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}K=void 0}return K}},_.A("div",{class:function(){var B={};
var K=C();B=(B[K.clusterLayoutConfig?XDR(K.clusterLayoutConfig):cBR(K.size)]=!0,B["yt-spec-avatar-shape--no-margin"]=Uad(C().decorations),B["yt-spec-avatar-shape--square"]=C().type===2,B);return _.sN(B)}},_.A(_.M_,{data:X,
alt:function(){return!k()&&C().accessibilityText?C().accessibilityText:""},
targetWidth:function(){return pDF(C().size)},
targetHeight:function(){return pDF(C().size)},
className:function(){return _.sN(Q())}}),_.A(_.v,{cond:function(){var B;
return((B=C().decorations)==null?void 0:B.includes(0))&&Sl3(C().size)},
then:function(){return _.A("div",{class:function(){var B={};B=(B["yt-spec-avatar-shape__live-badge"]=!0,B["yt-spec-avatar-shape__live-badge--badge-small"]=C().size==="small",B["yt-spec-avatar-shape__live-badge--badge-medium"]=C().size==="medium"||C().size==="48",B["yt-spec-avatar-shape__live-badge--badge-large"]=C().size==="large",B["yt-spec-avatar-shape__live-badge--badge-extra-large"]=C().size==="extra-large"||C().size==="extra-extra-large"||C().size==="giant",B);return _.sN(B)}},_.A(_.v,{cond:function(){return C().badgeText},
then:function(B){return _.A("div",{class:"yt-spec-avatar-shape__badge-text",el:a},B)}}),_.A(_.v,{cond:O,
then:function(){return _.A("div",{class:"yt-spec-avatar-shape__badge-icon"},_.A(_.$_,{icon:u,size:function(){a:switch(C().size){case "extra-large":var B=16;break a;default:B=13}return B}}))}}))}}),_.A(_.v,{cond:function(){var B,K;
return((B=C().decorations)==null?void 0:B.includes(1))||((K=C().decorations)==null?void 0:K.includes(0))&&!Sl3(C().size)},
then:function(){return _.A("div",{class:function(){var B=C(),K,L,t={};var Y=(t["yt-spec-avatar-shape__live-dot"]=!((K=B.decorations)==null||!K.includes(0)||Sl3(B.size)),t["yt-spec-avatar-shape__new-content"]=!((L=B.decorations)==null||!L.includes(1)),t);return _.sN(Y)}})}}),_.A(_.v,{cond:function(){return!!p},
then:function(){return _.A("div",{class:function(){var B={};B=Object.assign((B["yt-spec-avatar-shape__image-overlays"]=!0,B),Q());return _.sN(B)}},p==null?void 0:p())}})))))},"Oa");
ttd.idomCompat={callbacks:{overlays:!0}};_.Iu=_.F(function(D){function C(){X().endpoint&&_.FV(X().endpoint)}
var X=D.data;var c=D.decorations;var W=D.avatarButtonCustomClassName;var p=D.isOverlay;var g=D.clusterLayoutConfig;return _.A("avatar-view-model",null,_.A(_.v,{cond:function(){return X().image},
then:function(a){return _.A(ttd,{data:function(){return alt({data:X(),onTap:X().endpoint?C:void 0,decorations:c==null?void 0:c(),badgeText:void 0,accessibilityText:X().accessibilityText,avatarButtonCustomClassName:W==null?void 0:W(),clusterLayoutConfig:g==null?void 0:g()})},
image:a,iconType:"RADAR_LIVE",overlays:function(){return _.A(e0q,{data:X})},
isOverlay:p})}}))},"Pa");
_.Iu.idomCompat=!0;_.Og=_.F(function(D){var C=D.data;D=D.className;var X=_.IX("yt-decorated-avatar-view-model"),c=function(){return _.r(C().avatar,_.yX)},W=_.tw(function(){var p,g=C(),a=c(),O=_.EN(C().rendererContext),P=(p=X.value)!=null?p:void 0,k;
if(a){P={data:g,avatar:a,onTap:O,element:P};p=P.data;g=P.avatar;a=P.onTap;O=P.element;P=P.commandController;a=a?Pzr(a,O,P):void 0;O=[];p.liveData&&O.push(0);var u;P=(u=p.liveData)==null?void 0:u.liveBadgeText;u=(k=_.r(p.rendererContext,_.by))==null?void 0:k.label;k=alt({data:g,onTap:a,decorations:O,badgeText:P,accessibilityText:u?u:p.a11yLabel})}else k={size:"medium"};return k},void 0,"c00kWd");
return _.A("yt-decorated-avatar-view-model",{class:_.g$("ytDecoratedAvatarViewModelHost",D),el:X},_.A(_.v,{cond:function(){var p;return(p=c())==null?void 0:p.image},
then:function(p){return _.A(ttd,{data:W,image:p,iconType:"RADAR_LIVE",overlays:function(){return _.A(e0q,{data:c})}})}}))},"Qa");
_.Og.idomCompat=!0;_.Ae=_.F(function(D){var C=function(){var a;return Object.assign({},D.data(),(a=D.overrides)==null?void 0:a.call(D))},X=function(){return _.tG(C().rendererContext)},c=function(){var a=C().avatars,O,P;
return(P=(O=(a==null?0:a[0])?_.r(a[0],_.yX):void 0)==null?void 0:O.avatarImageSize)!=null?P:"AVATAR_SIZE_UNKNOWN"},W=function(){return ABJ(C())},p=function(){if(C().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var a=void 0;
else if((a=D.decorations)==null?0:a.call(D))a=D.decorations();else{a=C();var O=0;a.avatars&&(O+=a.avatars.length);a.decoratedText&&(O+=1);a=O>1?[3]:[]}return a},g={};
return _.A("yt-avatar-stack-view-model",{el:_.fb(_.NH(function(){return C().rendererContext})),
class:_.g$("yt-avatar-stack-view-model",D.className,(g["yt-avatar-stack-view-model--tappable"]=X,g["yt-avatar-stack-view-model--is-overlay"]=D.isOverlay,g["yt-avatar-stack-view-model--medium-text"]=D.useMediumText,g)),tabindex:function(){return X()?0:void 0},
role:function(){return X()?"link":void 0},
"aria-label":function(){var a,O;return(O=(a=_.r(C().rendererContext,_.by))==null?void 0:a.label)!=null?O:""}},_.A(_.v,{cond:function(){var a;
return C().avatars&&!((a=D.hideAvatar)==null?0:a.call(D))},
then:function(){return _.A("div",{class:"yt-avatar-stack-view-model__avatars"},_.A(_.v,{cond:function(){return C().decoratedText},
then:function(a){var O={};return _.A("div",{class:_.g$("yt-avatar-stack-view-model__text-container",(O["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return c()==="AVATAR_SIZE_XXS"||c()==="AVATAR_SIZE_XS"},O["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var P;
return((P=D.isOverlay)==null?void 0:P.call(D))&&(c()==="AVATAR_SIZE_XXS"||c()==="AVATAR_SIZE_XS")},O)),
style:_.P0({width:function(){return W().avatarSizeInPx+"px"},
height:function(){return W().avatarSizeInPx+"px"}})},_.A(_.QG,{text:a,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.A("div",{style:function(){return _.P0(W().avatarStackStyle)()},
class:function(){return W().avatarStackClass}},_.A(_.BX,{data:function(){return W().avatars.reverse()}},{avatarViewModel:function(a,O){return _.A("div",{style:function(){var P,k;
return _.P0((k=(P=W()).avatarStyle)==null?void 0:k.call(P,O()))()},
class:function(){return W().avatarClass}},_.A(_.Iu,{data:a.data,
decorations:p,avatarButtonCustomClassName:function(){return W().avatarButtonCustomClassName},
isOverlay:D.isOverlay,clusterLayoutConfig:function(){var P,k;return(k=(P=W()).clusterLayoutConfig)==null?void 0:k.call(P,O())}}))},
decoratedAvatarViewModel:function(a,O){return _.A("div",{style:function(){var P,k;return _.P0((k=(P=W()).avatarStyle)==null?void 0:k.call(P,O()))()},
class:function(){return W().avatarClass}},_.A(_.Og,{data:a.data}))}})))}}),_.A(_.v,{cond:function(){return C().text},
then:function(a){return _.A(_.QG,{text:a,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.Ae.idomCompat=!0;_.CI(_.F(function(D){var C=D.data;var X=D.thumbnailSize;return _.A("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.A("div",{class:_.g$("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return $a5(X==null?void 0:X())})},_.A(_.BX,{data:function(){return C().avatarStack}},{avatarStackViewModel:function(c){return _.A(_.Ae,{data:c.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Bm,
thumbnailSize:_.Bm}});var N9q=_.F(function(D){D=_.Ro(D,{hidden:!1});var C=D.data;D=D.hidden;return _.A("yt-thumbnail-overlay-title-view-model",{class:_.g$("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(C().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var X="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:X="ytThumbnailOverlayTitleViewModelPositionTop"}return X}),
hidden:D},_.A(_.v,{cond:function(){return C().leadingContent},
then:function(X){return _.A("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.A(_.BX,{data:X},{decoratedAvatarViewModel:_.Og}))}}),_.A("div",null,_.A(_.QG,{text:function(){return C().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.A(_.v,{cond:function(){return C().subtitle},
then:function(){return _.A(_.QG,{text:function(){return C().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
N9q.idomCompat=!0;_.CI(N9q,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Bm,hidden:_.Bm}});_.YTC=_.F(function(D){D=_.Ro(D,{isClip:!1});var C=D.data,X=D.thumbnailSize,c={};return _.A("yt-thumbnail-overlay-badge-view-model",{class:_.g$("yt-thumbnail-overlay-badge-view-model",function(){a:switch(C().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var W="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:W="yt-thumbnail-overlay-badge-view-model--bottom-end"}return W},function(){return vqh(X==null?void 0:X())},(c["yt-thumbnail-overlay-badge-view-model--clip"]=D.isClip,
c))},_.A(_.BX,{data:function(){return C().thumbnailBadges}},{thumbnailBadgeViewModel:function(W){return _.A(_.sjJ,{data:W.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.YTC.idomCompat=!0;_.CI(_.YTC,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Bm,thumbnailSize:_.Bm,isClip:_.Bm}});var yLk=_.F(function(D){var C=D.data;D=D.hidden;var X=_.tw(function(){return C().indicatorCount||0},void 0,"AbKnMc"),c={};
return _.A("yt-page-indicator-view-model",{class:_.g$("ytPageIndicatorViewModelHost",(c.ytPageIndicatorViewModelIndicatorHidden=function(){return!C().indicatorCount},c)),
hidden:D},_.A(_.Zh,{each:function(){return Array(X())}},function(W,p){var g={};
return _.A("div",{class:_.g$("ytPageIndicatorViewModelIndicator",(g.ytPageIndicatorViewModelIndicatorSelected=function(){return C().selectedIndex===p()},g))})}))},"Va");
yLk.idomCompat=!0;_.CI(yLk,"yt-page-indicator-view-model",{props:{data:_.Bm,hidden:_.Bm}});var Pw=function(){var D=_.w.apply(this,arguments)||this;D.eventSink=function(){return D};
D.disableInteraction=!1;D.noRoundedCorners=!1;D.isPreviewLoading=!1;D.isOriginalAspectRatio=!1;D.computedObjectFit=!1;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return D};
_.h(Pw,_.w);_.S=Pw.prototype;
_.S.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:_.b("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"}}};
_.S.onImageLoaded=function(){this.loaded=!0};
_.S.onImageUnloaded=function(){this.loaded=!1};
_.S.computeRichThumbnail=function(D,C,X,c){if(D&&C&&!c&&!_.b("disable_moving_thumbs_handling")&&!X)return C};
_.S.computeImageWidth=function(D,C){return C||9999};
_.S.computeIsOriginalAspectRatio=function(D){return D};
_.S.computeIsLive=function(D){if(D==null?0:D.badges)for(var C=0;C<D.badges.length;C++){var X=D.badges[C];if(X.metadataBadgeRenderer&&X.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(D==null?0:D.thumbnailOverlays)for(C=0;C<D.thumbnailOverlays.length;C++)if(X=D.thumbnailOverlays[C],X.thumbnailOverlayTimeStatusRenderer&&X.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.S.computeObjectFit=function(D,C){return C||(D?"CONTAIN":"")};
_.S.computeNavigationEndpoint=function(D,C,X){return D?C:X};
_.S.computeHasClip=function(D){D=_.U(D||[]);for(var C=D.next();!C.done;C=D.next())if(C.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.S.computeOverlayColor=function(D){var C;return(D==null?0:(C=D.darkColorPalette)==null?0:C.section2Color)?D.darkColorPalette.section2Color:D==null?void 0:D.sampledThumbnailColor};
_.$a.Object.defineProperties(Pw.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Gq3(this.width)}}});
Pw.prototype.onImageUnloaded=Pw.prototype.onImageUnloaded;Pw.prototype.onImageLoaded=Pw.prototype.onImageLoaded;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Pw.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(AQc),_.z("design:type",Object)],Pw.prototype,"ytdThumbnailBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Pw.prototype,"componentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Pw.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Pw.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Pw.prototype,"circular",void 0);
_.V([_.n({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.z("design:type",Object)],Pw.prototype,"richThumbnail",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.z("design:type",Boolean)],Pw.prototype,"hasClip",void 0);_.V([_.n(),_.z("design:type",Object)],Pw.prototype,"eventSink",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Pw.prototype,"queued",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Pw.prototype,"richGridThumbnail",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Pw.prototype,"useExpandableTooltip",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Pw.prototype,"useUntranslatedNavigationEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Pw.prototype,"disableInteraction",void 0);
_.V([_.n({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.z("design:type",Object)],Pw.prototype,"computedNavigationEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Pw.prototype,"nowPlayingEqualizerOnly",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Pw.prototype,"hidePlaybackStatus",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Pw.prototype,"objectFit",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Pw.prototype,"noRoundedCorners",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Pw.prototype,"watchFeedThumbnail",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Pw.prototype,"isPreviewLoading",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.z("design:type",Object)],Pw.prototype,"isOriginalAspectRatio",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.z("design:type",Object)],Pw.prototype,"computedObjectFit",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.z("design:type",Boolean)],Pw.prototype,"isLiveVideo",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Pw.prototype,"loaded",void 0);_.V([_.n({computed:"computeOverlayColor(data.thumbnail)"}),_.z("design:type",Object)],Pw.prototype,"overlayColor",void 0);_.V([_.n(),_.z("design:type",Boolean)],Pw.prototype,"minimizePipBreakages",void 0);_.V([_.n({selector:_.yyt}),_.z("design:type",Boolean)],Pw.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.n(),_.z("design:type",Number)],Pw.prototype,"width",void 0);
_.V([_.e("inlinePreviewIsEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Pw.prototype,"isPreviewDisabled",null);_.V([_.e("width"),_.z("design:type",String),_.z("design:paramtypes",[])],Pw.prototype,"thumbnailSize",null);_.V([_.$n("image-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pw.prototype,"onImageLoaded",null);
_.V([_.$n("image-unloaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pw.prototype,"onImageUnloaded",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-thumbnail"})],Pw);
var nme=_.o3()(Pw,"ytd-thumbnail",function(){if(xuf===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);xuf=D}D=xuf;return D},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var uXJ=function(D){var C=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15201_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15201_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(X){waJ(C,X)};
this.onLockupMouseLeaveFn=function(X){X=X.relatedTarget;var c,W;((c=document.getElementsByTagName("ytd-video-preview"))==null?0:(W=c.item(0))==null?0:W.contains(X))||(C.terminateVideoPreview(),$9(C))};
this.onThumbnailMouseDownFn=function(){C.terminateVideoPreview();$9(C)};
this.onTouchStart=function(){C.JSC$15201_touched=!0};
this.mediaRenderer=D.mediaRenderer;this.thumbnailElement=D.thumbnailElement;this.lockupElement=D.lockupElement;this.videoPreviewOptsInput=D.videoPreviewOpts;F6e(this);vw(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)):
_.fQ(Error("Fh")):_.fQ(Error("Gh")):ZOk(this)},fm=function(D){ZOk(D);
var C;(C=D.lockupElement)==null||C.removeEventListener("mouseenter",D.onMouseMoveFn);var X;(X=D.lockupElement)==null||X.removeEventListener("mouseleave",D.onLockupMouseLeaveFn);var c;(c=D.lockupElement)==null||c.removeEventListener("touchstart",D.onTouchStart);var W;(W=D.thumbnailElement)==null||W.removeEventListener("mousedown",D.onThumbnailMouseDownFn);$9(D)},F6e=function(D){D.inlinePreviewIsEnabledForUser=_.fe().getState().ui.inlinePreviewIsEnabled;
D.unsubscribeFromInlinePreviewIsEnabled=_.dX(_.fe(),_.yyt,function(C){(D.inlinePreviewIsEnabledForUser=C)||$9(D)});
D.JSC$15201_unsubscribeFromInlinePreviewIsActive=_.dX(_.fe(),_.Y7R,function(C){(D.inlinePreviewIsActive=C)||$9(D)})},ZOk=function(D){D.unsubscribeFromInlinePreviewIsEnabled();
D.unsubscribeFromInlinePreviewIsEnabled=function(){};
D.JSC$15201_unsubscribeFromInlinePreviewIsActive();D.JSC$15201_unsubscribeFromInlinePreviewIsActive=function(){}},waJ=function(D,C){C.buttons>0||(C=_.BK("kevlar_lockup_hover_delay",-1),D.JSC$15201_touched&&C>=0?(_.qX.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.pI(_.qX,function(){GK5(D)},C),D.JSC$15201_touched=!1):GK5(D))},AO3=function(D){D.videoPreviewJobId=_.pI(_.qX,function(){return _.I(function(C){return C.yield(Vtf(D,{isAutoplay:!0}),0)})})},GK5=function(D){!D.previewTriggered&&vw(D)&&
(D.inlinePreviewIsActive&&D.terminateVideoPreview(),D.previewTriggered=!0,D.mediaRenderer.isInlinePreviewTriggered=!0,_.qX.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.pI(_.qX,function(){return _.I(function(C){return C.yield(Vtf(D),0)})}))},Vtf=function(D,C){C=C===void 0?{}:C;
var X=C.isAutoplay===void 0?!1:C.isAutoplay;var c,W,p,g;return _.I(function(a){if(a.nextAddress==1){if(!vw(D))return a.return();c=D.getVideoPreviewOpts();if(!c)return a.return();X&&(c.isAutoplay=!0);return(p=(W=_.Ct(D.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&W[0])?a.yield(W[0],3):a.jumpTo(2)}a.nextAddress!=2&&(p=a.yieldResult===1);if(p){var O=(g=D.mediaRenderer)==null?void 0:g.data;O&&(kWn(O)?delete O.inlinePlayerData:"inlinePlaybackEndpoint"in O&&delete O.inlinePlaybackEndpoint)}_.t_(a)})};
uXJ.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var D,C;if((C=(D=this.videoPreviewOptsInput)==null?void 0:D.videoPreviewData)!=null)D=C;else if(D=this.mediaRenderer.data)if(kWn(D))D={inlinePlaybackEndpoint:_.Y7(D.inlinePlayerData.onVisible),navigationEndpoint:_.Y7(D.onTap),thumbnail:"image"in D?D.image:D.thumbnail,thumbnailOverlays:void 0,accessibilityText:iMt(D)};else if("multipleInlinePlaybackEndpoint"in D){var X=_.r(_.r(D.multipleInlinePlaybackEndpoint,TPC),H0c);if(X!=
null&&X.playerDescriptors){C=[];X=_.U(X.playerDescriptors);for(var c=X.next();!c.done;c=X.next())c=c.value,C.push({inlinePlaybackEndpoint:c.inlinePlaybackEndpoint,navigationEndpoint:c.navigationEndpoint,thumbnail:c.thumbnail,thumbnailOverlays:c.thumbnailOverlays,accessibilityText:iMt(D)});D=C}else D=void 0}else D={inlinePlaybackEndpoint:D.inlinePlaybackEndpoint,navigationEndpoint:D.navigationEndpoint,thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays,accessibilityText:iMt(D)};else D=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:D,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var vw=function(D){var C;if(C=D.inlinePreviewIsEnabledForUser)C=(D=D.mediaRenderer.data)?"inlinePlaybackEndpoint"in D&&D.inlinePlaybackEndpoint||kWn(D)&&D.inlinePlayerData||"multipleInlinePlaybackEndpoint"in D&&D.multipleInlinePlaybackEndpoint?!0:!1:!1;return C};
uXJ.prototype.terminateVideoPreview=function(){_.DS(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var $9=function(D){_.qX.cancelJob(D.videoPreviewJobId);D.inlinePreviewIsActive=!1;D.previewTriggered=!1;D.mediaRenderer.isInlinePreviewTriggered=!1};var T9d=_.q8(["#"]),ie=function(){var D=_.w.apply(this,arguments)||this;D.isDisabled=!1;return D};
_.h(ie,_.w);_.S=ie.prototype;
_.S.configureRendererStamper=function(){return{"data.menu":du,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.getMetadata=function(D){var C=[];if(D.metadataText&&Object.keys(D.metadataText).length>0){var X=this.ytRendererBehavior.getSimpleString(D.metadataText);D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&(X=_.xu(X,Number(D.upcomingEventData.startTime)));C.push(X)}else D.shortViewCountText&&C.push(this.ytRendererBehavior.getSimpleString(D.shortViewCountText)),D.publishedTimeText&&C.push(this.ytRendererBehavior.getSimpleString(D.publishedTimeText)),D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&
(X=this.ytRendererBehavior.getSimpleString(D.upcomingEventData.upcomingEventText),C.push(_.xu(X,Number(D.upcomingEventData.startTime))));return C};
_.S.calculateBylineText=function(D){return D.shortBylineText?D.shortBylineText:D.bylineText?D.bylineText:null};
_.S.calculateIsDisabled=function(D){return!!D.isDisabled};
_.S.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.UAd(T9d)};
_.S.onDetailsTap=function(D){var C=this.data&&this.data.navigationEndpoint;C&&!_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.b("kevlar_grid_video_renderer_killswitch")?_.lE(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C))};
_.S.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15208_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:_.SY(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.SY(this.hostElement).querySelector("ytd-thumbnail")})};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15208_inlinePreviewHoverListener)==null||fm(D)};
_.S.computeThumbnailWidth=function(D,C){return C&&C>0?C:D?360:210};
_.S.computeNumBadgesInRow=function(D){var C;return((C=D.badges)==null?void 0:C.length)||0};
_.S.computeShowChannelThumbnail=function(D,C){var X;return C&&!!(D==null?0:(X=D.channelThumbnailSupportedRenderers)==null?0:X.channelThumbnailWithLinkRenderer)};
_.$a.Object.defineProperties(ie.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15208_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
ie.prototype.dataChanged=ie.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ie.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ie.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],ie.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.B9),_.z("design:type",Object)],ie.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],ie.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ie.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],ie.prototype,"noEndpoints",void 0);_.V([_.n({computed:"calculateBylineText(data)"}),_.z("design:type",Object)],ie.prototype,"bylineText",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ie.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ie.prototype,"isDownloading",void 0);_.V([_.n({reflectToAttribute:!0,value:0}),_.z("design:type",Number)],ie.prototype,"width",void 0);_.V([_.n({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.z("design:type",Object)],ie.prototype,"isDisabled",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ie.prototype,"dataChanged",null);_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ie.prototype,"isHovered",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ie.prototype,"hasAttributedBylineText",null);
_.V([_.e("bylineText","hasAttributedBylineText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ie.prototype,"showBylineText",null);_.V([_.yj({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],ie);
_.G(ie,"ytd-grid-video-renderer",function(){if(P25!==void 0)return P25;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return P25=D},{mode:_.Wc("kevlar_poly_si_batch_j047")?1:2});var HOx;var k9=function(){var D=_.w.apply(this,arguments)||this;D.roundedContainer=!0;D.skipRoundingTop=!1;D.disableTopPadding=!1;D.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");D.extractOverlay=!1;return D};
_.h(k9,_.w);k9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
k9.prototype.onClick=function(D){var C,X=(C=this.data)==null?void 0:C.sourceEndpoint;!_.d$(_.Mz(D),this.hostElement,["A".toString()])&&X&&_.lE(this.hostElement,"yt-navigate",{endpoint:X})};
_.$a.Object.defineProperties(k9.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 D;return!((D=this.data)==null||!D.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.data)==null?void 0:D.paragraphMaxLines)!=null?C:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],k9.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],k9.prototype,"showVerticalDividers",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],k9.prototype,"roundedContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],k9.prototype,"skipRoundingTop",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],k9.prototype,"disableTopPadding",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],k9.prototype,"amsterdamEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],k9.prototype,"extractOverlay",void 0);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],k9.prototype,"showMetadataAtTop",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],k9.prototype,"showMetadataBelowTitle",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],k9.prototype,"hasMenu",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.truncateParagraphs"),_.z("design:type",Object),_.z("design:paramtypes",[])],k9.prototype,"truncateParagraphs",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.paragraphMaxLines"),_.z("design:type",Number),_.z("design:paramtypes",[])],k9.prototype,"paragraphMaxLines",null);
_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.background"),_.z("design:type",Object),_.z("design:paramtypes",[])],k9.prototype,"background",null);_.V([_.yj({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],k9);
_.G(k9,"ytd-info-panel-content-renderer",function(){if(HOx!==void 0)return HOx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return HOx=D},{mode:_.Wc("kevlar_poly_si_batch_j076")?1:2});var JLd;var z0f;var jjb;var Mtk;var ue=function(){return _.w.apply(this,arguments)||this};
_.h(ue,_.w);ue.prototype.computeStyle=function(D){return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ue.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],ue.prototype,"style_",void 0);_.V([_.Yn({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],ue);
_.G(ue,"yt-channel-thumbnail-with-link-renderer",function(){if(Mtk===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;jjb===void 0&&(jjb=document.createElement("template"));var c=jjb;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Mtk=D}D=Mtk;return D},{mode:2});var Qw=function(){return _.w.apply(this,arguments)||this};
_.h(Qw,_.w);Qw.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"}}}};
Qw.prototype.computeTitleStyle=function(D){return D||null};
Qw.prototype.computeAvatarStyle=function(D){return D||null};
Qw.prototype.computeShowNavigationButton=function(D,C){return!(D==null||!D.navigationButton||C)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Qw.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.z("design:type",String)],Qw.prototype,"titleStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.z("design:type",String)],Qw.prototype,"avatarStyle",void 0);_.V([_.n(),_.z("design:type",Boolean)],Qw.prototype,"hideNavigationButton",void 0);_.V([_.yj({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Qw);
_.G(Qw,"ytd-rich-list-header-renderer",function(){if(z0f!==void 0)return z0f;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return z0f=D},{mode:_.Wc("kevlar_poly_si_batch_j058")?1:2});var Bw=function(){return _.w.apply(this,arguments)||this};
_.h(Bw,_.w);Bw.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Bw.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Bw.prototype,"isSearch",void 0);_.V([_.yj({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Bw);
_.G(Bw,"ytd-preview-card-renderer",function(){if(JLd!==void 0)return JLd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JLd=D},{mode:1});var qTJ;var be=function(){return _.w.apply(this,arguments)||this};
_.h(be,_.w);be.prototype.configureRendererStamper=function(){return{"data.menu":du}};
be.prototype.dataChanged=function(){var D=this.get("colorExtractionPalette.section1Color",this.data);D=_.mW(D);_.Os(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":D})};
be.prototype.computeCardStyle=function(D){return this.get("style.value",D)||null};
be.prototype.dataChanged=be.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],be.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],be.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.z("design:type",String)],be.prototype,"cardStyle",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],be.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],be);
_.G(be,"ytd-compact-channel-recommendation-card-renderer",function(){if(qTJ!==void 0)return qTJ;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qTJ=D},{mode:1});var fP4;var dub;var he=function(){var D=_.w.apply(this,arguments)||this;D.alignAuto=!1;D.collapsed=!0;D.isToggled=!1;D.alwaysCollapsed=!1;D.canToggle=!0;D.collapsedHeight=80;D.disableToggle=!1;D.alwaysToggleable=!1;D.reversed=!1;D.shouldUseNumberOfLines=!1;D.recomputeOnResize=!1;D.canToggleJobId=0;D.lastReversed=!1;return D};
_.h(he,_.w);_.S=he.prototype;_.S.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.S.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.S.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var D=_.SY(this.hostElement),C=D.childNodes,X=document.createDocumentFragment(),c=D.childNodes.length-1;c>=0;c--)_.SY(X).appendChild(C[c]);_.b("enable_shadydom_free_scoped_node_methods")?_.Us(this.hostElement).appendChild(X):D.appendChild(X)}};
_.S.ready=function(){var D=this;_.TA(function(){D.initChildrenObserver()},1)};
_.S.attached=function(){var D;(D=this.resizeObserver)==null||D.observe(this.content)};
_.S.detached=function(){this.detachObserver()};
_.S.toggle=function(D,C){this.canToggle&&(this.isToggled=C,_.lE(this.hostElement,"yt-refit"),D&&D.stopPropagation())};
_.S.reset=function(){this.childrenChanged()};
_.S.onIronResize=function(){this.recomputeOnResize&&!_.b("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.S.computeIsMoreVisible=function(D,C){return D&&!C};
_.S.computeShouldUseNumberOfLines=function(D){try{return!!D&&window.CSS.supports("-webkit-line-clamp","1")}catch(C){}return!1};
_.S.computeIsLessVisible=function(D,C){return D&&C};
_.S.observeCollapsedHeightAndMaxLines=function(){var D=this.collapsedHeight,C=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Os(this.hostElement,{"--ytd-expander-max-lines":""+C,"--ytd-expander-collapsed-height":""}):_.Os(this.hostElement,{"--ytd-expander-collapsed-height":D+"px","--ytd-expander-max-lines":""})};
_.S.handleMoreTap=function(D){this.disableToggle||(_.lE(this.hostElement,"yt-expander-more-tapped"),this.toggle(D,!0))};
_.S.handleLessTap=function(D){_.lE(this.hostElement,"yt-expander-less-tapped");this.toggle(D,!1)};
_.S.initChildrenObserver=function(){var D=this;this.observer=new MutationObserver(function(){D.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.b("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Al(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var C;(C=D.resizeThrottle)==null||C.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.S.childrenChanged=function(){var D=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){W0(function(){D.canToggleJobId=0;D.calculateCanCollapse()})}))};
_.S.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};
_.S.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.S.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("collapsed-changed",this.collapsed))};
_.S.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("is-toggled-changed",this.isToggled))};
_.S.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("can-toggle-changed",this.canToggle))};
_.$a.Object.defineProperties(he.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
he.prototype.canToggleChangedForBinding=he.prototype.canToggleChangedForBinding;he.prototype.isToggledChangedForBinding=he.prototype.isToggledChangedForBinding;he.prototype.collapsedChangedForBinding=he.prototype.collapsedChangedForBinding;he.prototype.observeCollapsedHeightAndMaxLines=he.prototype.observeCollapsedHeightAndMaxLines;he.prototype.onIronResize=he.prototype.onIronResize;he.prototype.reversedChanged=he.prototype.reversedChanged;he.prototype.toggledChanged=he.prototype.toggledChanged;
he.prototype.alwaysToggleableChanged=he.prototype.alwaysToggleableChanged;_.V([_.m(_.lR),_.z("design:type",Object)],he.prototype,"ironResizableBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],he.prototype,"alignAuto",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],he.prototype,"collapsed",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"isToggled",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"alwaysCollapsed",void 0);
_.V([_.n(),_.z("design:type",Object)],he.prototype,"canToggle",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"collapsedHeight",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"disableToggle",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"alwaysToggleable",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"reversed",void 0);_.V([_.n(),_.z("design:type",Number)],he.prototype,"maxNumberOfLines",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.z("design:type",Object)],he.prototype,"shouldUseNumberOfLines",void 0);_.V([_.n(),_.z("design:type",Object)],he.prototype,"recomputeOnResize",void 0);_.V([_.kn("#content"),_.z("design:type",HTMLDivElement)],he.prototype,"content",void 0);_.V([_.bH("alwaysToggleable"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"alwaysToggleableChanged",null);
_.V([_.bH("isToggled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"toggledChanged",null);_.V([_.e("canToggleJobId"),_.z("design:type",Object),_.z("design:paramtypes",[])],he.prototype,"isResetting",null);_.V([_.vr("reversed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"reversedChanged",null);
_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"onIronResize",null);_.V([_.vr("maxNumberOfLines","collapsedHeight"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"observeCollapsedHeightAndMaxLines",null);_.V([_.vr("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"collapsedChangedForBinding",null);
_.V([_.vr("isToggled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"isToggledChangedForBinding",null);_.V([_.vr("canToggle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],he.prototype,"canToggleChangedForBinding",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-expander"})],he);
_.G(he,"ytd-expander",function(){if(dub!==void 0)return dub;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return dub=D},{mode:1});var x9=function(){return _.w.apply(this,arguments)||this};
_.h(x9,_.w);x9.prototype.computeIsCarousel=function(D){return!!D.isCarousel};
x9.prototype.observeLightsourcePalette=function(){var D,C=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;C&&_.x_(this.hostElement,C)};
x9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
x9.prototype.observeLightsourcePalette=x9.prototype.observeLightsourcePalette;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],x9.prototype,"data",void 0);_.V([_.n({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],x9.prototype,"isCarousel",void 0);
_.V([_.vr("data.vibrantsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],x9.prototype,"observeLightsourcePalette",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],x9);
_.G(x9,"ytd-media-upsell-renderer",function(){if(fP4!==void 0)return fP4;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fP4=D},{mode:2});var R0f;var L9=function(){var D=_.w.apply(this,arguments)||this;D.JSC$15235_playerEvents=new Map;D.listeningToPlayer=!1;D.startX=0;D.active=!1;D.shouldShowButtons=_.b("web_buttons_hidden_killswitch");D.isHighlighted=!1;D.useHighlightStyling=_.b("web_enable_deeper_metadata_highlight_styling");D.enableProblemWalkthrough=_.b("problem_walkthrough_sd");return D};
_.h(L9,_.w);_.S=L9.prototype;
_.S.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}}}}}};
_.S.created=function(){this.JSC$15235_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.S.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Pr(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Pr(this,this.onActiveUpdate))};
_.S.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Pr(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Pr(this,this.onActiveUpdate))};
_.S.onDataChanged=function(){this.removePlayerListeners()};
_.S.onColorPaletteChange=function(){var D={},C;if(_.FU()==="USER_INTERFACE_THEME_DARK"&&((C=this.data)==null?0:C.darkColorPalette)){var X=this.data.darkColorPalette;D["--ytd-macro-markers-list-item-background-color"]=_.e_(this.get("section2Color",X))}else{var c;_.FU()==="USER_INTERFACE_THEME_LIGHT"&&((c=this.data)==null?0:c.lightColorPalette)&&(X=this.data.lightColorPalette,D["--ytd-macro-markers-list-item-background-color"]=_.e_(this.get("section3Color",X)))}X?(D["--ytd-macro-markers-list-item-title-color"]=
_.e_(this.get("primaryTitleColor",X)),D["--ytd-macro-markers-list-item-secondary-color"]=_.e_(this.get("secondaryTitleColor",X)),D["--ytd-macro-markers-list-item-timestamp-background-color"]=_.e_(this.get("section1Color",X)),this.customButtonProperties={customColors:{color:_.e_(this.get("primaryTitleColor",X))}},this.useColorSampling=!0):(D["--ytd-macro-markers-list-item-background-color"]="initial",D["--ytd-macro-markers-list-item-title-color"]="initial",D["--ytd-macro-markers-list-item-secondary-color"]=
"initial",D["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Os(this.hostElement,D)};
_.S.onEndpointMouseDown=function(D){this.startX=D.clientX};
_.S.onEndpointClick=function(D){var C=this,X,c,W;return _.I(function(p){if(p.nextAddress==1){if(C.startX!==D.clientX)return D.preventDefault(),p.return();C.data&&C.ytRendererBehavior.logExplicitClick(C.data);if(!C.seekWithAnimationOnClick)return p.jumpTo(0);if(D.button!==0||D.shiftKey||D.altKey||D.metaKey||D.ctrlKey||_.d$(_.Mz(D),C.hostElement,["BUTTON".toString()]))return p.return();D.stopPropagation();D.preventDefault();return C.data?p.yield(_.Xv().getPlayerPromise(),3):p.return()}X=p.yieldResult;
W=(c=_.r(C.data.onTap,_.TC))==null?void 0:c.startTimeSeconds;W!==void 0&&X.seekToTimeWithAnimation(W*1E3,_.Mh(C.data.title));_.t_(p)})};
_.S.computeLayout=function(D){return D};
_.S.computeIsHighlighted=function(D){return!!D};
_.S.computeCarouselType=function(D){return D};
_.S.hideCarousel=function(D){return this.hideThumbnail(D)};
_.S.hideThumbnail=function(D){return this.enableProblemWalkthrough&&D!==null&&D==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.S.onRepeatButtonToggle=function(D){var C=this;D.detail.toggled&&_.Xv().getPlayerPromise().then(function(X){C.ytPlayerListenerBehavior.listenToPlayerEvents(X,C.JSC$15235_playerEvents);C.listeningToPlayer=!0})};
_.S.onLoopRangeChange=function(D){var C=_.SY(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(C){var X=C.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",C.polymerController.data);if(X){var c=Number(X.endTimeMs);if(Number(X.startTimeMs)!==(D==null?void 0:D.startTimeMs)||c!==(D==null?void 0:D.endTimeMs))C.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.S.removePlayerListeners=function(){var D=this;this.listeningToPlayer&&_.Xv().getPlayerPromise().then(function(C){D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(C,D.JSC$15235_playerEvents);D.listeningToPlayer=!1})};
_.S.onActiveUpdate=function(D){this.active=D.detail.active};
L9.prototype.onColorPaletteChange=L9.prototype.onColorPaletteChange;L9.prototype.onDataChanged=L9.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],L9.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],L9.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],L9.prototype,"useCustomColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],L9.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],L9.prototype,"shouldShowButtons",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.z("design:type",String)],L9.prototype,"layout",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.z("design:type",Object)],L9.prototype,"isHighlighted",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],L9.prototype,"useHighlightStyling",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],L9.prototype,"enableProblemWalkthrough",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.z("design:type",String)],L9.prototype,"carouselType",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],L9.prototype,"useColorSampling",void 0);_.V([_.n(),_.z("design:type",Boolean)],L9.prototype,"seekWithAnimationOnClick",void 0);_.V([_.n(),_.z("design:type",Object)],L9.prototype,"customButtonProperties",void 0);
_.V([_.kn("#repeat-button"),_.z("design:type",HTMLElement)],L9.prototype,"repeatButton",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L9.prototype,"onDataChanged",null);_.V([_.vr("data.lightColorPalette","data.darkColorPalette"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L9.prototype,"onColorPaletteChange",null);
_.V([_.yj({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],L9);
_.G(L9,"ytd-macro-markers-list-item-renderer",function(){if(R0f!==void 0)return R0f;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return R0f=D},{mode:1});var lPq;var DK5;var sg=function(){return _.w.apply(this,arguments)||this};
_.h(sg,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sg.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],sg);
_.G(sg,"ytd-title-and-button-list-header-renderer",function(){if(DK5!==void 0)return DK5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return DK5=D},{mode:1});var Cfk;var X1f=new _.P6("BUTTON_RENDERER_TOKEN");_.mb=_.F(function(D){var C=_.iX().resolve(X1f);return _.A(C,Object.assign({},D,{overrides:D.buttonOverrides}))},"Wa");var cqb=_.F(function(D){var C=D.data,X=_.di(D.useSquareAspectRatio,!1);return _.A("dismissed-mini-game-card-view-model",null,_.A(_.v,{cond:function(){var c,W;return(c=C().responseText)==null?void 0:(W=c.runs)==null?void 0:W.length},
then:function(){var c={};return _.A("div",{class:_.g$("yt-mini-game-card-view-model__dismissed-card",(c["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!X()},c["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.b("web_game_card_force_2_by_3")},c["yt-mini-game-card-view-model--dismissed-square-card"]=X,c))},_.A("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.A(_.v,{cond:function(){return C().responseText.runs[0].text},
then:function(W){return _.A("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:W},W)}}),_.A(_.BX,{data:function(){return C().buttons}},{buttonRenderer:_.mb,
buttonViewModel:_.Ze})))}}))},"Xa");var oGd=_.F(function(D){var C=D.data;return _.A("br-nz-badge-shape",{class:_.g$(function(){return QPr(C().brNzRatingBadgeType)}),
role:function(){return C().accessibilityText?"img":void 0},
"aria-label":function(){return C().accessibilityText}},function(){var X;
return(X=C())==null?void 0:X.text})},"Ya");_.ex=_.F(function(D){var C=function(){var X=D.data(),c,W,p,g;if(X){var a=!((c=D.workaroundShortsIsThumbnailBadge)==null||!c.call(D));c=(W=D.modern)==null?void 0:W.call(D);W=(p=D.numBadgesInRow)==null?void 0:p.call(D);p=(g=D.clipTextOverflow)==null?void 0:g.call(D);var O;a:switch(X.badgeStyle){case "BADGE_OVERLAY":g=!0;break a;default:g=!1}X={type:a?17:B7J(X.badgeStyle),brNzRatingBadgeType:bM5(X.badgeStyle),text:X.badgeText,icon:X.iconName,isOverlay:g,modern:c||_.b("web_modern_badge_view_model"),accessibilityText:X.accessibilityLabel||
((O=_.r(X.rendererContext,_.by))==null?void 0:O.label),numBadgesInRow:W,clipTextOverflow:p}}else X=void 0;return X};
return _.A("yt-badge-view-model",{class:_.g$("ytBadgeViewModelHost",D.class)},_.A(_.G4,null,_.A(_.wq,{when:function(){var X;return!((X=C())==null||!X.brNzRatingBadgeType)}},function(){return _.A(oGd,{data:function(){return C()}})}),_.A(_.wq,{when:function(){return!!C()&&!C().brNzRatingBadgeType}},function(){return _.A(_.iI,{data:function(){return C()}})})))},"Za");
_.ex.idomCompat=!0;var Ogg=_.F(function(D){D=_.Ro(D,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var C=D.data,X=D.useFullWidth,c=D.isDesktopWeb,W=D.addSearchResultTopMargin,p=function(){return C().layout},g=function(){return C().title},a=function(){return C().metadataText?C().metadataText:C().genre},O=function(){return C().channelName},P=function(){return C().image},k=function(){return C().colorPalette},u=function(){return C().actionButton},Q=function(){return C().overflowButton},
B=function(){return C().avatar},K=function(){return C().ageRating},L=function(){var J={};
J=_.g$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(J["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return c()},J));
return _.A("div",{class:J},_.A(W9M,{imageData:P,colorPalette:k}),_.A(p1f,{onTap:function(){return C().onTap},
imageData:P,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:c}),_.A(_.v,{cond:function(){return!c()},
then:function(){return _.A(_.kQ,null,_.A(SZd,{layout:p,colorPalette:k,isDesktopWeb:c,overflowButton:Q,avatar:B,onTap:function(){return C().onTap},
genre:a,title:g,channelName:O}),_.A(UKb,{actionButton:u}))}}))},t=function(){var J={};
J=_.g$((J["yt-mini-game-card-view-model--search-result-desktop"]=function(){return c()},J["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!c()},J["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return W()},J));
return _.A("div",{class:J},L(),_.A(gGx,{description:function(){return C().description},
isDesktopWeb:c,title:g,genre:a,onTap:function(){return C().onTap},
actionButton:u,overflowButton:Q,avatar:B,channelName:O}))},Y=function(){var J={};
J=_.g$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(J["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return c()},J["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return c()&&C().width===135},J["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return c()},J["yt-mini-game-card-view-model--big-metadata-font"]=function(){return C().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},J["yt-mini-game-card-view-model--use-full-width"]=
function(){return X()},J["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.b("web_game_card_force_2_by_3")},J));
return _.A("div",{class:J},_.A(aBJ,{colorPalette:k,isDesktopWeb:c,onTap:function(){return C().onTap},
accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
actionButton:u,imageData:P}),_.A(SZd,{layout:p,colorPalette:k,isDesktopWeb:c,overflowButton:Q,avatar:B,onTap:function(){return C().onTap},
genre:a,title:g,channelName:O}),_.A(_.v,{cond:K,then:function(T){return _.A(IBf,{ageRating:T})}}))},y=function(){var J={};
J=_.g$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(J["yt-mini-game-card-view-model--square-card-desktop"]=function(){return c()},J["yt-mini-game-card-view-model--use-full-width"]=function(){return X()},J));
return _.A("div",{class:J},_.A(p1f,{onTap:function(){return C().onTap},
imageData:P,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:c}),_.A(SZd,{layout:p,colorPalette:k,isDesktopWeb:c,overflowButton:Q,avatar:B,onTap:function(){return C().onTap},
genre:a,title:g,channelName:O}),_.A(_.v,{cond:K,then:function(T){return _.A(IBf,{ageRating:T})}}))};
return _.A("mini-game-card-view-model",{class:D.className},_.A(_.G4,null,_.A(_.wq,{when:function(){return p()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Y()}),_.A(_.wq,{when:function(){return p()==="MINI_APP_LAYOUT_SQUARE"}},function(){return y()}),_.A(_.wq,{when:function(){return p()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return t()})))},"$a");
Ogg.idomCompat=!0;var UKb=_.F(function(D){var C=_.di(D.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.A(_.BX,{data:D.actionButton},{buttonViewModel:function(X){return _.A("div",{class:C},_.A(_.Ze,{data:X.data}))}})},"ab"),p1f=_.F(function(D){var C=D.onTap;
var X=D.imageData;var c=D.accessibilityText;var W=D.overlayBadgeText;var p=D.iconName;var g=D.unplayableInlinePlaybackIconName;D=D.isDesktopWeb;return _.A(_.ty,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:C},_.A(_.M_,{data:X,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(c==null?void 0:c())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.A(Aqk,{overlayBadgeText:W,iconName:p,unplayableInlinePlaybackIconName:g,isDesktopWeb:D}))},"bb"),Aqk=_.F(function(D){var C=D.overlayBadgeText;
var X=D.iconName;var c=D.unplayableInlinePlaybackIconName;var W=D.isDesktopWeb;return _.A("div",{class:"yt-mini-game-card-view-model__badge-container"},_.A(_.v,{cond:X,then:function(p){return _.A("div",{class:"yt-mini-game-card-view-model__badge"},_.A("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.A(_.$_,{icon:p,className:"yt-mini-game-card-view-model__icon",size:12}),_.A("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},C)))}}),_.A(_.v,{cond:function(){return!X()&&
C()},
then:function(){return _.A("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},C)}}),_.A(_.v,{cond:function(){return c()&&W()},
then:function(){return _.A("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.A(_.$_,{icon:c,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),W9M=_.F(function(D){var C=D.colorPalette;
var X=D.imageData;var c=function(){return C().vibrantColorPalette?C().vibrantColorPalette.section2Color:C().sectionTwoColor};
return _.A(_.kQ,null,_.A("div",{class:"yt-mini-game-card-view-model__background-base",style:_.P0({"background-color":function(){return E2(c(),"1")}})}),_.A("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.P0({"background-image":function(){return"url("+X().sources[0].url+")"}})}),_.A("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.P0({background:function(){return"linear-gradient(180deg,\n    "+E2(c(),".8")+" 0%,\n    "+E2(c(),".4")+" 25%,\n    "+E2(C().vibrantColorPalette?C().vibrantColorPalette.section4Color:C().sectionFourColor,".8")+" 100%)"}})}))},"db"),SZd=_.F(function(D){var C=D.layout;
var X=D.colorPalette;var c=D.overflowButton;var W=D.avatar;var p=D.onTap;var g=D.title;var a=D.channelName;var O=D.genre;var P=function(){var k;return C()!=="MINI_APP_LAYOUT_SQUARE"&&((k=X())==null?0:k.textPrimaryColor)?"color: "+E2(X().textPrimaryColor,".7"):""};
return _.A("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.A(_.v,{cond:W,then:function(){return _.A("div",{class:"yt-mini-game-card-view-model__avatar"},_.A(_.BX,{data:W},{avatarViewModel:_.Iu}))}}),_.A(_.ty,{command:p,
className:"yt-mini-game-card-view-model__metadata-details"},_.A("h3",{class:"yt-mini-game-card-view-model__title",title:g},g),_.A(_.v,{cond:W,then:function(){return _.A("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.A("span",{class:"yt-mini-game-card-view-model__genre",title:a,style:P},a),_.A("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:P},O))},
else:function(){return _.A("span",{class:"yt-mini-game-card-view-model__genre",title:O},O)}})),_.A("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.A(_.BX,{data:c},{buttonViewModel:function(k){var u=k.data;
return _.A(_.Ze,{data:function(){return Object.assign({},u(),{customFontColor:C()==="MINI_APP_LAYOUT_SINGLETON"?u().customFontColor:void 0})}})}})))},"eb"),aBJ=_.F(function(D){var C=D.colorPalette;
var X=D.isDesktopWeb;var c=D.onTap;var W=D.accessibilityText;var p=D.overlayBadgeText;var g=D.iconName;var a=D.unplayableInlinePlaybackIconName;var O=D.actionButton;D=D.imageData;return _.A("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.A(W9M,{imageData:D,colorPalette:C}),_.A(p1f,{onTap:c,imageData:D,accessibilityText:W,overlayBadgeText:p,iconName:g,unplayableInlinePlaybackIconName:a,isDesktopWeb:X}),_.A(_.v,{cond:function(){return O==null?void 0:O()},
then:function(){return _.A(UKb,{actionButton:O})}}))},"fb"),gGx=_.F(function(D){var C=D.description;
var X=D.isDesktopWeb;var c=D.title;var W=D.genre;var p=D.onTap;var g=D.actionButton;var a=D.overflowButton;var O=D.avatar;D=D.channelName;var P={};P=_.g$("yt-mini-game-card-view-model--search-result-metadata-wrapper",(P["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=X,P["yt-mini-game-card-view-model--show-unplayable-on-hover"]=X,P["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!X()},P));
var k={};k=_.g$("yt-mini-game-card-view-model__search-result-info-row",(k["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!X()},k));
return _.A("div",{class:P},_.A("div",{class:k},_.A(_.ty,{command:p,className:"yt-mini-game-card-view-model__metadata-details"},_.A("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.A("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)),_.A(UKb,{actionButton:g,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.A("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.A(_.BX,{data:a},{buttonViewModel:_.Ze}))),_.A("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.A("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.A("div",{class:"yt-mini-game-card-view-model__avatar"},_.A(_.BX,{data:O},{avatarViewModel:function(u){var Q=u.data;return _.A(_.Iu,{data:function(){return Object.assign({},Q(),{avatarImageSize:X()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.A(_.ty,{command:p,
className:"yt-mini-game-card-view-model__description"},_.A("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},D)),_.A(_.ty,{command:p,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.A("div",null)))),_.A(_.v,{cond:X,then:function(){return _.A(_.ty,{command:p,className:"yt-mini-game-card-view-model__description"},C)}}))},"gb"),IBf=_.F(function(D){var C=D.ageRating;
return _.A("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.A(_.M_,{data:function(){return{sources:[{url:C().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.A(_.ex,{data:function(){return{badgeText:C().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.CI(Ogg,"mini-game-card-view-model",{props:{data:_.Bm,className:_.Bm,useFullWidth:_.Bm,isDesktopWeb:_.Bm,addSearchResultTopMargin:_.Bm}});_.CI(cqb,"dismissed-mini-game-card-view-model",{props:{data:_.Bm,useSquareAspectRatio:_.Bm}});var Eg=function(){var D=_.w.apply(this,arguments)||this;D.isSearch=!1;D.isRichGrid=!1;return D};
_.h(Eg,_.w);_.S=Eg.prototype;_.S.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.S.dismissibleItemOnYtServiceRequestSent=function(D,C){C.actions&&this.dismissibleItemProcessActions(D,C.actions)};
_.S.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.S.dataChanged=function(){this.dismissibleItemReset()};
_.S.dismissibleItemProcessActions=function(D,C){for(var X=0;X<C.length;X++){var c=C[X];_.r(c,_.zS)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.r(c,_.zS)),D.stopPropagation())}};
_.S.dismissibleItemHandleReplaceEnclosingAction=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0};
_.$a.Object.defineProperties(Eg.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var D;return!!this.data&&!((D=this.dismissedRenderer)==null?0:D.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.dismissedRenderer)==null||!D.notificationMultiActionRenderer)}}});
Eg.prototype.dataChanged=Eg.prototype.dataChanged;Eg.prototype.dismissibleItemOnRequestSent=Eg.prototype.dismissibleItemOnRequestSent;Eg.prototype.dismissibleItemOnYtServiceRequestSent=Eg.prototype.dismissibleItemOnYtServiceRequestSent;_.V([_.n(),_.z("design:type",Object)],Eg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Eg.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Eg.prototype,"isDismissed",void 0);
_.V([_.n(),_.z("design:type",Object)],Eg.prototype,"dismissedRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Eg.prototype,"isRichGrid",void 0);_.V([_.e("data.layout"),_.z("design:type",Object),_.z("design:paramtypes",[])],Eg.prototype,"useSquareAspectRatio",null);_.V([_.e("data","dismissedRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Eg.prototype,"showCard",null);
_.V([_.e("data","dismissedRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Eg.prototype,"showDismissed",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Eg.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.V([_.$n("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Eg.prototype,"dismissibleItemOnRequestSent",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Eg.prototype,"dataChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Eg);
_.G(Eg,"ytd-mini-game-card-view-model",function(){if(Cfk!==void 0)return Cfk;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Cfk=D},{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var Pfg;var $Kg;var te=function(){return _.vH.apply(this,arguments)||this};
_.h(te,_.vH);te.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
te.prototype.getContinuationUrl=function(D){var C={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(C.itct=this.data.clickTrackingParams);return _.aQ(D,C)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],te.prototype,"data",void 0);_.V([_.Yn({is:"yt-reload-continuation",noInjection:!0})],te);var vGC;var ig5;var NV=function(){var D=_.w.apply(this,arguments)||this;D.notificationData={};return D};
_.h(NV,_.w);_.S=NV.prototype;_.S.isMenuExpanded=function(D){return D&&D.length<=1?"undefined":"false"};
_.S.dataChanged_=function(){this.selected=void 0;var D=this.computeSelectedIndex_(this.data);D>=0&&(this.selected=D);D=this.data&&this.data.length>1;_.gi(this.hostElement,"has-items",D);_.SY(this.hostElement).querySelector("#label").tabIndex=D?0:-1};
_.S.onDropdownOpen=function(){var D=_.LN();if(this.parentTrackingParams&&this.data){var C=_.bO(this.parentTrackingParams);this.data.forEach(function(X){D&&C&&X.trackingParams&&(X=_.bO(X.trackingParams),_.F_(D,C,X),_.VP(D,[X]))})}else this.parentTrackingParams||_.fQ(new _.Zf("No parent tracking params passed in for yt-dropdown-menu."))};
_.S.hasNotification=function(D){var C;if(D.targetId&&((C=this.notificationData)==null?0:C.targetId)){var X;return D.targetId===((X=this.notificationData)==null?void 0:X.targetId)}};
_.S.computeSelectedIndex_=function(D){if(D)for(var C=0,X=D.length;C<X;C++)if(D[C].selected)return C;return-1};
_.S.computeLabel_=function(D){return this.data&&D!=void 0?this.data[D].title:""};
_.S.computeShowIcon_=function(D,C){return!C&&!!D};
_.S.computeVerticalOffset_=function(D){return D?36:0};
_.S.computeEndpoint_=function(D){return D.endpoint||D.navigationEndpoint};
_.S.onLabelClick_=function(D){this.data&&this.data.length<=1?D.stopPropagation():this.menuExpanded="true"};
_.S.onIronActivate_=function(D){D=D.detail.item;var C=_.SY(this.hostElement).querySelector("#repeat").itemForElement(D);if(C&&C.trackingParams){var X=_.LN(),c=_.bO(C.trackingParams);X&&_.HE(X,c)}if(C&&C.serviceEndpoint)_.b("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(C.serviceEndpoint):_.cE(this.hostElement,[C.serviceEndpoint]),_.lE(this.hostElement,"yt-playlist-reloading");else a:{if((C=D.querySelector("yt-supported-renderers"))&&
(C=C.rendererElement)&&C.is=="yt-reload-continuation"){C.trigger();break a}(D=D.querySelector("yt-reload-continuation"))&&D.trigger()}};
_.S.onTap_=function(D){D.preventDefault()};
_.S.onItemTap_=function(D){this.ytEndpointBehavior.onEndpointTap_(D)};
_.S.onLinkFocus_=function(D){try{var C=D.target}catch(c){}if(C){var X=C.querySelector("tp-yt-paper-item");X&&_.Hr(this,"focus",function(){X.focus()})}};
_.S.onMenuClose_=function(){this.menuExpanded="false"};
_.S.isLabelIconActive_=function(D){return D==="true"};
_.S.computeHasSubtitle_=function(D){return!!D};
_.S.computeHrefForItem_=function(D){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(D))};
_.S.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
_.$a.Object.defineProperties(NV.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
NV.prototype.onMenuClose_=NV.prototype.onMenuClose_;NV.prototype.onTap_=NV.prototype.onTap_;NV.prototype.onIronActivate_=NV.prototype.onIronActivate_;NV.prototype.onDropdownOpen=NV.prototype.onDropdownOpen;NV.prototype.dataChanged_=NV.prototype.dataChanged_;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],NV.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],NV.prototype,"ytEndpointBehavior",void 0);
_.V([_.n(),_.z("design:type",Array)],NV.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],NV.prototype,"parentTrackingParams",void 0);_.V([_.n(),_.z("design:type",Object)],NV.prototype,"selected",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],NV.prototype,"useLabel",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],NV.prototype,"useComputedAriaLabel",void 0);_.V([_.n(),_.z("design:type",String)],NV.prototype,"icon",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],NV.prototype,"iconLabel",void 0);_.V([_.n(),_.z("design:type",String)],NV.prototype,"ariaLabel",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],NV.prototype,"disabled",void 0);_.V([_.n({computed:"isMenuExpanded(data)"}),_.z("design:type",String)],NV.prototype,"menuExpanded",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],NV.prototype,"closeOnActivate",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.z("design:type",Boolean)],NV.prototype,"modernButtons",void 0);_.V([_.n(),_.z("design:type",Object)],NV.prototype,"notificationData",void 0);_.V([_.e("ariaLabel, selected"),_.n(),_.z("design:type",String),_.z("design:paramtypes",[])],NV.prototype,"computedAriaLabel",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NV.prototype,"dataChanged_",null);
_.V([_.$n("paper-dropdown-open"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],NV.prototype,"onDropdownOpen",null);_.V([_.$n("iron-activate"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],NV.prototype,"onIronActivate_",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],NV.prototype,"onTap_",null);
_.V([_.$n("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],NV.prototype,"onMenuClose_",null);_.V([_.Yn({is:"yt-dropdown-menu",disableElementRegistration:!0})],NV);
_.G(NV,"yt-dropdown-menu",function(){if(ig5===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;vGC===void 0&&(vGC=document.createElement("template"));var c=vGC;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ig5=D}D=ig5;return D},{mode:2});var Y9=function(){var D=_.w.apply(this,arguments)||this;D.hasNotification=!1;return D};
_.h(Y9,_.w);Y9.prototype.computeId=function(D){return D};
Y9.prototype.computeHorizontalAlign=function(D){return D?"right":"left"};
Y9.prototype.computeAccessibilityLabel=function(D){var C,X;return((C=D.accessibility)==null?void 0:(X=C.accessibilityData)==null?void 0:X.label)||null};
Y9.prototype.notificationDataChanged=function(){var D;this.hasNotification=!!this.notificationData&&!((D=this.data)==null?0:D.icon)};
Y9.prototype.notificationDataChanged=Y9.prototype.notificationDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Is.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],Y9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Y9.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",String)],Y9.prototype,"id",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Y9.prototype,"isRightAligned",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Y9.prototype,"disabled",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Y9.prototype,"closeOnActivate",void 0);_.V([_.n(),_.z("design:type",Object)],Y9.prototype,"notificationData",void 0);_.V([_.n(),_.z("design:type",Object)],Y9.prototype,"hasNotification",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Y9.prototype,"useComputedAriaLabel",void 0);_.V([_.vr("notificationData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Y9.prototype,"notificationDataChanged",null);_.V([_.Yn({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Y9);
_.G(Y9,"yt-sort-filter-sub-menu-renderer",function(){if($Kg===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Pfg===void 0&&(Pfg=document.createElement("template"));var c=Pfg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);$Kg=D}D=$Kg;return D},{mode:2});var k7x=_.F(function(D){var C=D.data;var X=_.I_(function(){var p=C().onTap;(p=_.r(p,_.N_))&&_.iX().resolve(_.uX).resolveCommand(p);return!1}),c=function(){return{sources:[{url:C().thumbnailUrl,
width:120,height:90}]}},W=function(){return C().rating&&C().ratingA11yLabel&&C().reviewsCount&&C().reviewsCountA11yLabel};
return _.A("place-data-view-model",null,_.A(_.v,{cond:function(){return C().placeName&&C().placeCategory},
then:function(){return _.A("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":X},_.A(_.M_,{data:c,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.A(_.ty,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return C().onTap}},_.A("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return C().placeName}},function(){return C().placeName})),_.A("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.A(_.v,{cond:W,
then:function(){return _.A("div",{class:_.g$("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.A("span",{class:"score",title:function(){return C().ratingA11yLabel}},function(){return C().rating}),_.A("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.A(_.$_,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.A("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return C().reviewsCountA11yLabel}},function(){return C().reviewsCount}))},
else:function(){return _.A("div",{class:_.g$("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.A("div",{class:_.g$("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.A("span",{class:"category",
title:function(){return C().placeCategory}},function(){return C().placeCategory}))))}}))},"ib");
k7x.idomCompat=!0;_.CI(k7x,"place-data-view-model",{props:{data:_.Bm}});var uTc=new _.P6("INLINE_PLAYBACK_HOOK_TOKEN");var Q8b=e5({sharedUi:dc5});_.TU=EI(Q8b)(Q8b.sharedUi,{animatedThumbnailEnabledSelector:function(D){return D.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(D){return D.inlinePreviewEnabled},
currentPageTypeSelector:function(D){return D.currentPageType},
currentPageSubTypeSelector:function(D){return D.currentPageSubType},
persistentPanelVisibleSelector:function(D){return D.persistentPanelVisible}});var BAC=function(D){this.setActiveSlideIndex=D;this.jobIds=[];this.isSlideshowPlaying=!1},K9x=function(D,C){D.isSlideshowPlaying||(D.isSlideshowPlaying=!0,bgf(D),rqM(D,C,0))},bgf=function(D){_.pI(_.qX,function(){D.setActiveSlideIndex(0)},1)},rqM=function(D,C,X){D.jobIds.push(_.pI(_.qX,function(){var c=X<C-1?X+1:0;
D.setActiveSlideIndex(c);rqM(D,C,c)},1800))};var h9g,L9b;h9g=new _.P6("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.xKk=new _.P6("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");L9b=new _.P6("COMMON_MARK_VIEW_MODEL_TOKEN");var s8x=new _.P6("IMAGE_ON_LOAD_HANDLER_TOKEN");var mK4=_.F(function(D){return _.A("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.A(_.v,{cond:function(){var C;return(C=D.data())==null?void 0:C.thumbnail},
then:function(C){return _.A(_.M_,{data:C,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.e95=_.F(function(D){var C=D.data;var X=D.lockupExperiments;D={};return _.A("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.A("div",{class:_.g$("ytThumbnailOverlayButtonViewModelButton",(D.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var c;return X&&((c=X())==null?void 0:c.useLegacySizedIconButton)},D))},_.A(_.BX,{data:function(){return C().overlayButton}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
buttonOverrides:function(){var W;return X&&((W=X())==null?0:W.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.e95.idomCompat=!0;var EGq=_.F(function(D){return _.A("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.I_(function(C){C.preventDefault();return!1})},_.A(_.BX,{data:function(){return D.data().buttons}},{toggleButtonViewModel:function(C){return _.A("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.A(_.o1,{data:C.data}))}}))},"lb");
EGq.idomCompat=!0;var t8e=_.F(function(D){var C=function(){var X;return((X=_.r(D.data().rendererContext,_.by))==null?void 0:X.label)||""};
return _.A("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.A(_.v,{cond:function(){return D.data().image},
then:function(){return _.A("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.A(_.M_,{data:function(){return D.data().image},
alt:C}))}}),_.A(_.v,{cond:function(){return D.data().text},
then:function(){return _.A("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return D.data().text})}}))},"mb");var NAg;NAg=_.TU.animatedThumbnailEnabledSelector;_.yw=_.F(function(D){var C=[],X=function(){var Q,B;return _.Gq3((Q=D.width)==null?void 0:Q.call(D),(B=D.height)==null?void 0:B.call(D))},c=_.iX().resolve(_.vK(s8x)),W=_.aX("yt-thumbnail-view-model",function(){C.push("elRef.value set");
var Q;(Q=D.playbackRef)==null||Q.call(D,{thumbnailElRef:W,thumbnail:D.data().image,thumbnailOverlays:D.data().overlays,thumbnailSize:X()})});
_.JU(function(){C.push("onInit");_.z3(function(){C.push("onCleanup")})});
var p=_.uu(NAg),g=function(){var Q,B;return(B=(Q=D.aspectRatio)==null?void 0:Q.call(D))!=null?B:0},a=function(){return(D.data().image?_.o4r(D.data().image):g())<=1&&g()===0},O=function(){return a()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},P=function(){W.value||_.fQ(new _.Zf("Thumbnail elRef.value is null",C.join("\n")));
c&&W.value&&c(W.value)},k=function(){var Q,B;
return((Q=D.hovered)==null?void 0:Q.call(D))&&X()!=="large"&&((B=D.data().overlays)==null?void 0:B.some(function(K){return _.r(K,sLN)}))},u={};
return _.A("yt-thumbnail-view-model",{class:_.g$("ytThumbnailViewModelHost",D.className,function(){return KkW(g())},function(){var Q,B;
a:{var K=X(),L=(Q=D.disableRounding)==null?void 0:Q.call(D);Q=(B=D.isClip)==null?void 0:B.call(D);if(!L&&!Q)switch(K){case "large":B="ytThumbnailViewModelLarge";break a;case "small":B="ytThumbnailViewModelSmall";break a;default:B="ytThumbnailViewModelMedium";break a}B=void 0}return B},(u.ytThumbnailViewModelCinematic=a,u)),
style:_.P0({"background-color":function(){var Q,B=a()?(Q=D.data().backgroundColor)==null?void 0:Q.lightTheme:void 0;return B?E2(B,"1"):void 0}}),
el:W},_.A(_.v,{cond:a,then:function(){return _.A("div",{class:"ytThumbnailViewModelBlurredImage"},_.A(_.M_,{data:function(){return D.data().image},
alt:"",contentMode:O,targetWidth:D.width,onload:P}))}}),_.A("div",{class:"ytThumbnailViewModelImage"},_.A(_.M_,{data:function(){return D.data().image},
alt:"",contentMode:O,targetWidth:D.width,onload:P}),null),_.A(_.BX,{data:function(){return k()?void 0:D.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:N9q,thumbnailOverlayBadgeViewModel:function(Q){return _.A(_.YTC,{data:Q.data,thumbnailSize:X,isClip:D.isClip})},
thumbnailBottomOverlayViewModel:function(Q){return _.A(muq,{data:Q.data,thumbnailSize:X,isClip:D.isClip})},
thumbnailOverlayFullViewModel:t8e,thumbnailOverlayButtonViewModel:function(Q){return _.A(_.e95,{data:Q.data,lockupExperiments:D.lockupExperiments})},
channelDisclosureViewModel:function(Q){Q=Q.data;var B;return _.A("div",null,(B=_.iX().resolve(_.vK(h9g)))==null?void 0:B({data:Q}))}}),_.A(_.BX,{data:function(){var Q;
return((Q=D.hovered)==null?0:Q.call(D))?D.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Q){return _.A(au,{data:Q.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:EGq}),_.A(_.BX,{data:function(){var Q;return((Q=D.hovered)==null?0:Q.call(D))&&p()?D.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:mK4}),_.A(_.v,{cond:D.isClip,then:function(){return _.A("div",{class:"ytPinkingNsHost"},_.A("svg",{class:"ytPinkingNsPinkingLeft"},_.A("defs",null,_.A("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.A("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.A("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.A("svg",{class:"ytPinkingNsPinkingRight"},_.A("defs",null,_.A("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.A("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.A("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.yw.idomCompat={callbacks:{playbackRef:!0}};var YZk=_.F(function(D){var C=_.U(_.Li(-1,void 0,"RW2Ole")),X=C.next().value,c=C.next().value;_.JU(function(){var W=new BAC(c);K9x(W,D.data().thumbnails.length);_.z3(function(){if(W.isSlideshowPlaying){W.isSlideshowPlaying=!1;for(var p=W.jobIds,g=0,a=p.length;g<a;g++)_.qX.cancelJob(p[g]);W.jobIds.length=0}})});
return _.A("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.A(_.BX,{data:function(){return D.data().thumbnails}},{thumbnailViewModel:function(W,p){return _.A("div",{class:function(){var g=!D.data().primaryThumbnail,a=p(),O=X(),P=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
g&&a===0&&P.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");a<=O&&P.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return P.join(" ")}},_.A(_.yw,{data:W.data,
disableRounding:D.disableRounding}))}}))},"ob");
YZk.idomCompat=!0;var h6t=new _.P6("DWELL_DETECTOR_REGISTRY_TOKEN");var nGJ=_.F(function(D){var C=xaW(D.triggeringElement),X=function(){return!!D.data().primaryThumbnail},c=function(){var p,g=(p=D.data())==null?void 0:p.maxHeight,a;
p=(a=D.maxHeight)==null?void 0:a.call(D);return g!=null&&p!=null?Math.min(g,p):p!=null?p:g},W=function(){var p=c();
if(p){var g;if(X()&&(g=D.includeStackHeight)!=null&&g.call(D)){var a;g=((a=D.doubleStack)==null?0:a.call(D))?8:4}else g=0;p=p-g-1;if(!(p<0)){a=Math;g=a.ceil;var O,P;var k=Zc5((P=(O=D.aspectRatio)==null?void 0:O.call(D))!=null?P:0);return g.call(a,p*k)}}};
return _.A("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.P0({height:function(){return c()?c()+"px":void 0},
width:function(){return W()?W()+"px":void 0}})},_.A(yqk,{stackEnabled:X,
thumbnailSize:function(){var p,g;return _.Gq3((p=D.width)==null?void 0:p.call(D),(g=D.height)==null?void 0:g.call(D))},
doubleStack:D.doubleStack,stackColor:function(){return D.data().stackColor},
includeStackHeight:D.includeStackHeight},_.A(_.BX,{data:function(){return D.data().primaryThumbnail}},{thumbnailViewModel:function(p){var g={};
return _.A(_.yw,{data:p.data,width:D.width,height:D.height,aspectRatio:D.aspectRatio,disableRounding:D.disableRounding,className:_.g$((g.ytCollectionThumbnailViewModelHostHasStacks=X,g)),hovered:D.hovered,playbackRef:D.playbackRef})}}),_.A(_.v,{cond:function(){var p;
return C()&&((p=D.data().thumbnails)==null?void 0:p.length)},
then:function(){return _.A("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.A(YZk,{data:D.data,disableRounding:function(){return!X()}}))}})))},"pb");
nGJ.idomCompat={callbacks:{playbackRef:!0}};
var yqk=_.F(function(D){var C=D.children;var X=D.stackEnabled;var c=D.thumbnailSize;var W=D.doubleStack;var p=D.stackColor;var g=D.includeStackHeight;var a,O=(a=_.iX().resolve(_.vK(_.Hc)))==null?void 0:a();return _.A(_.v,{cond:X,then:function(){return _.A(W65,{data:function(){var P,k;return{experimentEnabled:!0,thumbnailSize:c(),doubleStack:W==null?void 0:W(),color:O?p==null?void 0:(P=p())==null?void 0:P.darkTheme:p==null?void 0:(k=p())==null?void 0:k.lightTheme,enableResponsiveMode:!1,includeStackHeight:g==
null?void 0:g()}}},C)},
else:function(){return C}})},"qb");var w1J=new _.P6("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var wz;_.n9={calledOnce:!0,state:"visible"};wz={calledOnce:!0,state:"hidden"};_.FZ=_.F(function(D){var C=D.data;var X=D.customCommandResolver;var c=D.className;var W=D.delayedClassName;var p=D.animationEntityKey;var g=D.isCompactWidth;var a=D.isContentWidth;D=_.U(_.Li(!1,void 0,"pC3tUb"));var O=D.next().value,P=D.next().value,k=_.di(p,""),u=_.ku(Bsh,k),Q=function(){var Bo,r5;return(r5=(Bo=u())==null?void 0:Bo.value)!=null?r5:!1},B=function(){_.fG(_.bK("booleanEntity",k(),{key:k(),
value:!0}));H=void 0};
p=_.U(_.d2(Q));var K=p.next().value,L=p.next().value;p=_.U(_.d2(Q));var t=p.next().value,Y=p.next().value;p=_.U(_.d2(function(){var Bo;return Q()?(Bo=C().styleTransitionConfig)==null?void 0:Bo.destinationStyle:void 0}));
var y=p.next().value,J=p.next().value,T=function(){var Bo=Object.assign({},C(),y()&&{style:y()});var r5,Fd,GJ=Bo.label,jZ=(r5=Bo.interaction)==null?void 0:(Fd=r5.accessibility)==null?void 0:Fd.label;r5=Bo.iconImage?Bo.label&&Bo.label.content?Bo.iconLeading?"leading":"trailing":"icon-only":void 0;Bo={formattedButtonText:GJ,accessibilityLabel:jZ,style:e6R(Bo.style),type:Eqd(Bo.style),state:"active",size:maZ(Bo.size),iconPosition:r5,disabled:!1,aTagConfig:sPj(Bo,X)};_.b("enable_desktop_vdcbg_components")&&
(Bo.focused=O());return Bo},H;
p=_.kb({visibilityCallback:function(Bo){var r5,Fd=(r5=C().interaction)==null?void 0:r5.onFirstVisible;Bo&&Fd&&_.FV(Fd)},
showOption:_.n9});var q=function(){return qDr(T(),!!C().iconImage)};
D={};var R={};c=_.g$(function(){return"ytwAdButtonViewModelHost"},function(){return C().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Bo=!!C().delayedAppearanceConfig,r5=K();
return Bo?r5?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Bo=!!C().delayedAppearanceConfig,r5=t();
return Bo?r5?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!C().delayedAppearanceConfig||K()?W==null?void 0:W():""},(D.ytwAdButtonViewModelHostCompactWidth=function(){return g==null?void 0:g()},D),(R.ytwAdButtonViewModelHostContentWidth=function(){return a==null?void 0:a()},R),c!=null?c:"");
var ph=function(){var Bo,r5=(Bo=C().delayedAppearanceConfig)==null?void 0:Bo.delayedInvisibleSeconds;r5&&(H=_.hG(_.qX,function(){L(!0);Om()},r5*1E3))},Om=function(){var Bo,r5=(Bo=C().delayedAppearanceConfig)==null?void 0:Bo.delayedVisibleSeconds;
r5&&(H=_.hG(_.qX,function(){Y(!0);xj()},r5*1E3))},xj=function(){var Bo,r5=(Bo=C().styleTransitionConfig)==null?void 0:Bo.styleTransitionSeconds,Fd,GJ=(Fd=C().styleTransitionConfig)==null?void 0:Fd.destinationStyle;
r5&&GJ?H=_.hG(_.qX,function(){J(GJ);B()},r5*1E3):B()};
_.JU(function(){ph()});
_.z3(function(){H&&_.qX.cancelJob(H)});
return _.A("ad-button-view-model",{"on:focusin":_.I_(_.b("enable_desktop_vdcbg_components")?function(){var Bo=_.iX().resolve(_.vK(_.E7));Bo&&P(Bo.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.I_(_.b("enable_desktop_vdcbg_components")?function(){P(!1);return!1}:void 0),
class:c,el:_.fb(p),style:_.P0({"transition-duration":"0.3s"})},_.A(_.v,{cond:T,then:function(){return _.A(_.FC,{data:T,icon:function(){return _.A(_.v,{cond:function(){return C().iconImage},
then:function(Bo){return _.A(_.M_,{data:Bo,alt:"",targetWidth:q,targetHeight:q,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var F9C=_.F(function(D){var C=D.data;D=function(){return C().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var X=_.kb({visibilityCallback:function(p){var g,a=(g=C().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.FV(a)},
showOption:_.n9}),c={},W={};return _.A("ad-button-group-view-model",{class:_.g$("ytwAdButtonGroupViewModelHost",(c.ytwAdButtonGroupViewModelHostCompactWidth=D,c)),el:_.fb(X)},_.A("div",{class:_.g$("ytwAdButtonGroupViewModelHostSecondaryButton",(W.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=D,W))},_.A(_.BX,{data:function(){return C().secondaryAdButton}},{adButtonViewModel:function(p){return _.A(_.FZ,{data:p.data})}})),_.A("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.A(_.BX,
{data:function(){return C().primaryAdButton}},{adButtonViewModel:function(p){return _.A(_.FZ,{data:p.data})}})))},"tb");var Zg4=_.F(function(D){var C=function(){var X;return((X=D.data())==null?void 0:X.answers)||[]};
return _.A("yt-survey-icons",{class:"ytSurveyIconsHost"},_.A("div",{class:"ytSurveyIconsHeader"},_.A("div",{class:"ytSurveyIconsTitle"},function(){var X;return(X=D.data())==null?void 0:X.text}),_.A("div",null,_.A(_.FC,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var X;(X=D.onDismiss)==null||X.call(D)}}},
iconName:"DISMISSAL"}))),_.A("div",null,_.A("div",{class:"ytSurveyIconsAnswers"},_.A(_.Zh,{each:function(){return C()},
keyBy:"INDEX"},function(X,c){return _.A("div",null,_.A(_.FC,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var W;(W=D.onSelect)==null||W.call(D,X(),c)}}},
icon:function(){return _.A(_.$_,{icon:function(){var W,p;return(W=X())==null?void 0:(p=W.icon)==null?void 0:p.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.A("div",{class:"ytSurveyIconsAnswersText"},_.A("div",null,function(){return C().length?C()[0].text:""}),_.A("div",null,function(){return C().length?C()[C().length-1].text:""}))))},"ub");var G7C=_.F(function(D){var C=_.fb(_.NH(function(){var O;return(O=D.data())==null?void 0:O.rendererContext},void 0,void 0,void 0,!0)),X=_.U(_.Li(!1,void 0,"GW0yjf")),c=X.next().value,W=X.next().value,p=_.ku(Bwm,function(){var O;
return(O=D.data().keys)==null?void 0:O.surveyEntityKey}),g=_.ku(bwm,function(){var O;
return(O=D.data().keys)==null?void 0:O.surveyStateEntityKey});
_.g0("ytd-slimline-survey-show-action",function(){W(!1)});
var a=function(){var O,P;var k=(O=g())==null?void 0:(P=O.questionStack)==null?void 0:P[0];if(k!==void 0){var u,Q;return(u=p())==null?void 0:(Q=u.questions)==null?void 0:Q[k]}};
X={};return _.A("yt-slimline-survey-view-model",{el:C,class:_.g$("ytSlimlineSurveyViewModelHost",(X.ytSlimlineSurveyViewModelCollapsed=function(){return c()},X))},_.A("div",{class:"ytSlimlineSurveyViewModelContainer"},_.A(_.v,{cond:function(){var O;
return((O=a())==null?void 0:O.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.A(Zg4,{data:function(){return a()},
onSelect:function(O,P){var k,u;return _.I(function(Q){W(!0);if(u=(k=D.data())==null?void 0:k.onSelectRating)_.FV(u),_.fG(aOk(P));_.t_(Q)})},
onDismiss:function(){W(!0);var O;var P=(O=p())==null?void 0:O.dismissalFeedbackToken;O=P?{feedbackEndpoint:{feedbackToken:P}}:void 0;O&&_.yK(O,{form:{element:C.value}})}})}})))},"vb");var V8J=_.F(function(D){return _.A("yt-table-view-model",{class:_.g$("ytTableViewModelHost",D.className)},_.A(_.Zh,{each:function(){return D.data().rows||[]}},function(C){var X={};
return _.A("div",{class:_.g$("ytTableViewModelRow",(X.ytTableViewModelRowBottomBorder=function(){return D.data().showSeparators},X))},_.A(_.Zh,{each:function(){return(C==null?void 0:C.cells)||[]}},function(c,W){var p,g={};
return _.A("span",{class:_.g$((g.ytTableViewModelRowLabel=function(){return W()===0&&D.data().showHorizontalHeaders},g.ytTableViewModelCell=function(){return!D.data().showHorizontalHeaders||W()>0},g))},(p=c.text)==null?void 0:p.content)}))}))},"wb");var TAk=_.F(function(D){return _.A("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.A(_.BX,{data:function(){var C;return(C=D.data())==null?void 0:C.attachments}},{flexibleActionsViewModel:function(C){return _.A("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.A(_.AS,{data:C.data,
layout:function(){var X;return((X=D.lockupStyle())==null?void 0:X.arrangement)===1?0:1},
justifyContentOverride:function(){var X;return((X=D.lockupStyle())==null?void 0:X.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(C){return _.A("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.A(G7C,{data:C.data}))},
expandableMetadataViewModel:function(C){C=C.data;var X;return _.A("div",{class:_.g$("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(X=_.iX().resolve(_.vK(w1J)))==null?void 0:X({data:C}))},
adButtonGroupViewModel:function(C){return _.A("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.A(F9C,{data:C.data}))},
adButtonViewModel:function(C){return _.A("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.A(_.FZ,{data:C.data,isCompactWidth:!0}))},
tableViewModel:function(C){return _.A("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.A(V8J,{data:C.data}))},
aiCompanionAttachmentViewModel:function(C){C=C.data;var X;return _.A("div",{class:"ytLockupAttachmentsViewModelAttachment"},(X=_.iX().resolve(_.vK(_.xKk)))==null?void 0:X({data:C}))}}))},"xb");var wDR=_.BK("rich_grid_min_item_width",310),yBF=_.BK("rich_grid_max_item_width",500);var jPm,z6m;jPm=16/9;z6m=2/3;_.ZX=_.F(function(D){var C=D.data;var X=D.className;var c=D.imageSizeConfig;var W=D.notifyOnLoaded;var p=function(){return C().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},g=function(){var Q;
return _.tG((Q=C())==null?void 0:Q.rendererContext)};
D={};D=(D.ytContentPreviewImageViewModelHost=!0,D.ytContentPreviewImageViewModelCircleImage=function(){return p()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},D.ytContentPreviewImageViewModelTappable=function(){return g()},D);
var a=function(){var Q,B;return(B=(Q=_.r(C().rendererContext,_.by))==null?void 0:Q.label)!=null?B:""},O=function(){return qld(C())},P=function(){var Q=M7h(p(),C().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",c==null?void 0:c(),flF(O()),C().layoutWidth,C().layoutHeight),B=Object.assign({},Q);
Q.width&&(B.width=Math.round(Q.width));Q.height&&(B.height=Math.round(Q.height));Q.maxWidth&&(B.maxWidth=Math.round(Q.maxWidth));Q.maxHeight&&(B.maxHeight=Math.round(Q.maxHeight));return B},k=_.tw(function(){return P().height},void 0,"CxFlJb"),u=_.tw(function(){return P().width},void 0,"lb8Jhd");
return _.A("yt-content-preview-image-view-model",{el:_.fb(_.NH(function(){var Q;return(Q=C())==null?void 0:Q.rendererContext})),
role:function(){return g()?"link":void 0},
tabindex:function(){return g()?0:void 0},
class:_.g$(X,D,function(){var Q=p();var B=c==null?void 0:c();Q=Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(B==null?void 0:B.size)!=null&&B.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(B==null?void 0:B.size)!=null&&B.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return Q}),
style:function(){var Q=P(),B=[];Q.width&&B.push("width: "+Q.width+"px");Q.height&&B.push("height: "+Q.height+"px");Q.maxWidth&&B.push("max-width: "+Q.maxWidth+"px");Q.maxHeight&&B.push("max-height: "+Q.maxHeight+"px");Q.fullWidth&&B.push("width: 100%");return B.join(";")}},_.A(_.v,{cond:O,
then:function(Q){return _.A(_.M_,{data:Q,alt:a,"data-disabled$":function(){return!a()},
notifyOnLoaded:W,targetWidth:u,targetHeight:k,preserveWidth:function(){return!!u()},
preserveHeight:function(){return!!k()}})}}),_.A(_.BX,{data:function(){var Q;
return(Q=C())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:au,
thumbnailOverlayButtonViewModel:_.e95}))},"yb");
_.ZX.idomCompat=!0;var GO=_.F(function(D){var C=D.data;var X=D.className;var c=D.useSmallLayout;var W=D.useMediumText;D=D.useHeavyText;var p={};return _.A("yt-attribution-view-model",{el:_.fb(_.NH(function(){var g;return(g=C())==null?void 0:g.rendererContext})),
class:_.g$(X,(p.ytAttributionViewModelHost=!0,p.ytAttributionViewModelMediumText=W,p.ytAttributionViewModelHeavyText=D,p))},_.A(_.v,{cond:function(){return _.tG(C().rendererContext)},
then:function(){return _.A("button",{class:"ytAttributionViewModelTappable"},_.A(HgM,{data:C,useSmallLayout:c}))},
else:function(){return _.A(HgM,{data:C,useSmallLayout:c})}}))},"zb"),HgM=_.F(function(D){var C=D.data;
var X=D.useSmallLayout;var c=function(){return{size:(X==null?0:X())?16:24}};
return _.A(_.kQ,null,_.A(_.BX,{data:function(){return C().contentPreviewImage}},{contentPreviewImageViewModel:function(W){return _.A(_.ZX,{data:W.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:c})}}),_.A(_.BX,{data:function(){return C().badge}},{badgeViewModel:function(W){return _.A(_.ex,{data:W.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.A(_.v,{cond:function(){return C().text},
then:function(){return _.A(_.QG,{text:function(){return C().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.A(_.v,{cond:function(){return C().suffix},
then:function(){return _.A(_.QG,{text:function(){return C().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
GO.idomCompat=!0;var JqM,z9e,j8g,M8d,qZ5;JqM=_.F(function(D){var C=D.delimiter;var X=D.max;var c=D.index;var W=D.isStandalone;return _.A(_.v,{cond:function(){return X()-1>c()},
then:function(){var p={};return _.A("span",{class:_.g$("yt-content-metadata-view-model__delimiter",(p["yt-content-metadata-view-model__delimiter--standalone"]=W,p)),"aria-hidden":!0},C)}})},"Bb");
z9e=_.F(function(D){var C=D.metadataPart;var X=D.maxLines;return _.A(_.QG,{text:function(){return C().text},
linkInheritColor:!0,className:function(){return dah(X())},
userInput:!0})},"Cb");
j8g=_.F(function(D){var C=D.metadataPart;var X=D.maxLines;return _.A(_.v,{cond:function(){return C().tooltip},
then:function(c){return _.A("span",{title:c,role:"tooltip"},_.A(z9e,{metadataPart:C,maxLines:X}))},
else:function(){return _.A(z9e,{metadataPart:C,maxLines:X})}})},"Db");
M8d=_.F(function(D){var C=D.metadataPart;var X=D.isOverlay;var c=D.useMediumText;var W=D.hideAvatar;var p=function(){return C().maxLines!==void 0?C().maxLines:1};
return _.A(_.kQ,null,_.A(_.BX,{data:function(){return C().avatarStack}},{avatarStackViewModel:function(g){return _.A(_.Ae,{data:g.data,
isOverlay:X,useMediumText:c,hideAvatar:W})},
badgeViewModel:_.ex}),_.A(_.v,{cond:function(){return C().leadingIcon},
then:function(g){return _.A(_.$_,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return g().name},
size:function(){return g().width}})}}),_.A(_.v,{cond:function(){return C().text},
then:function(){return _.A(j8g,{metadataPart:C,maxLines:p})}}),_.A(_.v,{cond:function(){return C().icon},
then:function(g){return _.A(_.$_,{className:"yt-content-metadata-view-model__icon",icon:function(){return g().name},
size:function(){return g().width}})}}))},"Eb");
qZ5=_.F(function(D){var C=D.metadataRow;var X=D.isInline;var c=D.delimiter;var W=D.isOverlay;var p=D.useMediumText;var g=D.extensions;var a=function(){var P,k=g==null?void 0:(P=g())==null?void 0:P.lockupMetadata;P=C();var u,Q;return!!((k==null?0:(u=k.byline)==null?0:u.hideAvatar)&&((Q=_.r(P,QLc))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},O=function(){return C().metadataParts||[]};
D={};return _.A("div",{class:_.g$("yt-content-metadata-view-model__metadata-row",(D["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=X,D["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var P,k=g==null?void 0:(P=g())==null?void 0:P.lockupMetadata;P=C();var u,Q;return!!((k==null?0:(u=k.byline)==null?0:u.addPadding)&&((Q=_.r(P,QLc))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},D["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var P;
return!!(g==null?0:(P=g())==null?0:P.lockupMetadata)&&C().badges&&!C().metadataParts},D))},_.A(_.BX,{data:function(){return C().badges}},{badgeViewModel:function(P){return _.A("div",{class:"yt-content-metadata-view-model__badge"},_.A(_.ex,{data:P.data,
numBadgesInRow:function(){var k,u;return((k=C())==null?void 0:(u=k.badges)==null?void 0:u.length)||0}}))}}),_.A(_.Zh,{each:O},function(P,k){return _.A(_.kQ,null,_.A(M8d,{metadataPart:P,
isOverlay:W,useMediumText:p,hideAvatar:a}),_.A(JqM,{delimiter:c,max:function(){return O().length},
index:k,isStandalone:!1}))}),_.A(_.v,{cond:function(){return C().isSpacerRow&&!X()},
then:function(){return _.A("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.Vw=_.F(function(D){D=_.Ro(D,{layout:0,isOverlay:!1});var C=D.data,X=D.layout,c=D.isOverlay,W=D.useMediumText,p=D.extensions,g=function(){return X()===0},a=function(){var P;
return((P=C().metadataRows)==null?void 0:P.filter(function(k){var u,Q=p==null?void 0:(u=p())==null?void 0:u.lockupMetadata,B,K;u=!!((Q==null?0:(B=Q.description)==null?0:B.hideDescription)&&((K=_.r(k,QLc))==null?void 0:K.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var L,t;return!((Q==null?0:(L=Q.spacer)==null?0:L.hideSpacer)&&((t=_.r(k,QLc))==null?void 0:t.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||u)}))||[]},O={};
return _.A("yt-content-metadata-view-model",{class:_.g$(D.className,"yt-content-metadata-view-model",(O["yt-content-metadata-view-model--inline"]=g,O["yt-content-metadata-view-model--tappable"]=function(){return _.tG(C().rendererContext)},O["yt-content-metadata-view-model--medium-text"]=W,O)),
el:_.fb(_.NH(function(){return C().rendererContext}))},_.A(_.Zh,{each:a},function(P,k){return _.A(_.kQ,null,_.A(qZ5,{metadataRow:P,
isInline:g,delimiter:function(){return C().delimiter},
isOverlay:c,useMediumText:W,extensions:p}),_.A(_.v,{cond:function(){return g()&&!P.isSpacerRow},
then:function(){return _.A(JqM,{delimiter:function(){return C().delimiter},
max:function(){return a().length},
index:k,isStandalone:!0})}}))}))},"Gb");
_.Vw.idomCompat=!0;var fBC=_.F(function(D){var C=_.iX().resolve(_.vK(_.Hc)),X={};return _.A("yt-lockup-metadata-view-model",{class:_.g$("yt-lockup-metadata-view-model",function(){a:{var c=D.lockupStyle();if(c==null?0:c.isOverlay)c="yt-lockup-metadata-view-model--overlay";else switch(c==null?void 0:c.arrangement){case 1:c="yt-lockup-metadata-view-model--horizontal";break a;default:c="yt-lockup-metadata-view-model--vertical"}}return c},function(){a:{var c=D.lockupStyle();
switch(c==null?void 0:c.titleMaxLines){case 1:c="yt-lockup-metadata-view-model--title-max-lines-1";break a}c=void 0}return c},function(){a:{var c=D.lockupStyle();
if(c==null?0:c.isTiny)c="yt-lockup-metadata-view-model--tiny";else switch(c==null?void 0:c.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":c="yt-lockup-metadata-view-model--compact";break a;default:c="yt-lockup-metadata-view-model--standard"}}return c},(X["yt-lockup-metadata-view-model--overlay"]=function(){var c;
return(c=D.lockupStyle())==null?void 0:c.isOverlay},X["yt-lockup-metadata-view-model--card"]=function(){var c;
return(c=D.lockupStyle())==null?void 0:c.isCard},X["yt-lockup-metadata-view-model--centered"]=function(){var c;
return(c=D.lockupStyle())==null?void 0:c.isCentered},X["yt-lockup-metadata-view-model--typography-bump"]=function(){var c;
return(c=D.lockupStyle())==null?void 0:c.typographyBump},X["yt-lockup-metadata-view-model--legacy-typography"]=function(){var c;
return(c=D.lockupStyle())==null?void 0:c.useLegacyTypography},X["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var c;
return(c=D.lockupStyle())==null?void 0:c.useRichGridLegacyTypography},X))},_.A(_.BX,{data:function(){return D.data().image}},{avatarStackViewModel:function(c){return _.A("div",{class:"yt-lockup-metadata-view-model__avatar"},_.A(_.Ae,{data:c.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(c){return _.A("div",{class:"yt-lockup-metadata-view-model__avatar"},_.A(_.Iu,{data:c.data}))},
decoratedAvatarViewModel:function(c){return _.A("div",{class:"yt-lockup-metadata-view-model__avatar"},_.A(_.Og,{data:c.data}))}}),_.A("div",{class:"yt-lockup-metadata-view-model__text-container"},_.A("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var c;return(c=D.data().title)==null?void 0:c.content}},_.A(_.v,{cond:function(){return D.data().title},
then:function(c){return _.A(_.ty,{command:D.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.P0({color:function(){var W;a:{var p=D.lockupStyle();var g=(W=D.hovered)==null?void 0:W.call(D);W=!(C==null||!C());var a;if((p==null?0:(a=p.onFocusEffect)==null?0:a.textPrimaryColor)&&g&&(p=W?p.onFocusEffect.textPrimaryColor.darkTheme:p.onFocusEffect.textPrimaryColor.lightTheme)){p=t9(p);break a}p=void 0}return p}}),
ariaLabel:D.lockupAccessibilityLabel},_.A(_.QG,{text:c,userInput:!0}))}})),_.A("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.P0({color:function(){var c;a:{var W=D.lockupStyle();var p=(c=D.hovered)==null?void 0:c.call(D);c=!(C==null||!C());var g;if((W==null?0:(g=W.onFocusEffect)==null?0:g.textSecondaryColor)&&p&&(W=c?W.onFocusEffect.textSecondaryColor.darkTheme:W.onFocusEffect.textSecondaryColor.lightTheme)){W=t9(W);break a}W=void 0}return W}})},_.A(_.BX,{data:function(){return D.data().metadata}},{contentMetadataViewModel:function(c){return _.A(_.Vw,{data:c.data,
layout:function(){var W,p;return(p=(W=D.layout)==null?void 0:W.call(D))!=null?p:1},
useMediumText:function(){var W,p;return((W=D.lockupStyle())==null?void 0:W.typographyBump)||((p=D.lockupStyle())==null?void 0:p.useRichGridLegacyTypography)},
extensions:function(){var W,p,g,a;return{lockupMetadata:{byline:{hideAvatar:((W=D.lockupStyle())==null?void 0:W.arrangement)===0,addPadding:((p=D.lockupStyle())==null?void 0:p.arrangement)===1},description:{hideDescription:!((g=D.lockupStyle())==null||!g.compactMetadata)},spacer:{hideSpacer:!((a=D.lockupStyle())==null||!a.compactMetadata)}}}}})}})),_.A(_.BX,{data:function(){return D.data().attribution}},{attributionViewModel:function(c){return _.A("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.A(GO,{data:c.data,
useSmallLayout:!0}))}})),_.A("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.A(_.BX,{data:function(){return D.data().menuButton}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
buttonOverrides:function(){var W;return((W=D.lockupStyle())==null?0:W.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
fBC.idomCompat=!0;var dKN=_.F(function(D){var C=_.aX("notification-multi-action-renderer");_.H2(function(){requestAnimationFrame(function(){_.Ii(C.value)})});
var X={},c={},W={};return _.A("notification-multi-action-renderer",{class:_.g$("ytNotificationMultiActionRendererHost",(X.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var p;return(p=D.useLegacyShelfStyle)==null?void 0:p.call(D)},X)),
el:C},_.A("span",{"aria-live":"polite",class:_.g$("ytNotificationMultiActionRendererTextContainer",(c.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var p;return(p=D.useLegacyShelfStyle)==null?void 0:p.call(D)},c))},_.A(_.QG,{text:function(){return D.data().responseText}})),_.A("div",{class:_.g$("ytNotificationMultiActionRendererButtonContainer",(W.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var p;
return(p=D.useLegacyShelfStyle)==null?void 0:p.call(D)},W))},_.A(_.BX,{data:function(){var p;
return(p=D.data().buttons)==null?void 0:p.map(function(g){if(g=g.buttonRenderer){var a,O=Object,P=O.assign,k=(a=g.icon)==null?void 0:a.iconType;a=(a=g.command||g.serviceEndpoint||g.navigationEndpoint)?{innertubeCommand:a}:void 0;g={buttonViewModel:P.call(O,{},{iconName:k,onTap:a,trackingParams:g.trackingParams,titleFormatted:g.text?_.e6(g.text):void 0},ll5(g))}}else g=void 0;return g}).filter(function(g){return!!g})}},{buttonViewModel:function(p,g){return _.A("div",null,_.A(_.Ze,{data:p.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var a;return((a=D.useModernStyles)==null?0:a.call(D))?{type:g()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var R95=_.F(function(D){var C=_.aX("notification-text-renderer");_.H2(function(){requestAnimationFrame(function(){_.Ii(C.value)})});
return _.A("notification-text-renderer",{el:C,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.A(_.QG,{text:function(){return D.data().successResponseText}}))},"Lb");_.TO=_.F(function(D){var C=_.ku(aU3,function(){var c;return Dud((c=D.contentId)==null?void 0:c.call(D))}),X=function(){var c;
return _.r((c=C())==null?void 0:c.command,_.zS)};
return _.A(_.v,{cond:function(){var c;if(!(c=X())){var W;c=_.r((W=C())==null?void 0:W.command,YL5)}return c},
then:function(){return _.A(_.v,{cond:X,then:function(){var c={};return _.A("div",{class:_.g$("ytDismissibleItemReplacedContent",function(){var W;return C2n((W=D.aspectRatio)==null?void 0:W.call(D))})},_.A("div",{class:_.g$((c.ytDismissibleItemAspectRatioContainer=function(){var W;
return((W=D.aspectRatio)==null?void 0:W.call(D))!==void 0},c))},_.A(_.BX,{data:function(){var W;
return(W=X())==null?void 0:W.item}},{notificationMultiActionRenderer:function(W){return _.A(dKN,{data:W.data,
useModernStyles:D.useModernStyle,useLegacyShelfStyle:D.useLegacyShelfStyle})},
notificationTextRenderer:R95})))}})},
else:D.children})},"Mb");_.lBx=_.F(function(D){var C=D.data;var X=D.customCommandResolver;D=_.fb(_.kb({visibilityCallback:function(p){var g,a=(g=C().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.FV(a)},
showOption:_.n9}));var c=function(){var p;return((p=C().interaction)==null?0:p.onTap)?function(g){var a;Lkm(g,(a=C().interaction)==null?void 0:a.onTap,X)}:void 0},W=function(){var p,g=C(),a=c(),O=(p=_.r(C().rendererContext,_.by))==null?void 0:p.label;
a:switch(g.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":p=1;break a;default:p=0}return{size:om3(g.size),type:p,onTap:a,accessibilityText:O}};
return _.A("ad-avatar-view-model",{class:function(){var p;return((p=C().interaction)==null?0:p.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:D},_.A(_.v,{cond:function(){return C().image},
then:function(p){return _.A(ttd,{data:W,image:p})}}))},"Nb");_.Hw=_.F(function(D){var C=_.Ro(D,{hasDot:!1,usedInMasthead:!1}),X=Object.assign({},C),c=C.data,W=C.hasDot;D=C.customCommandResolver;var p=C.usedInMasthead,g=(delete X.data,delete X.hasDot,delete X.customCommandResolver,delete X.usedInMasthead,X);C=function(){return c().style};
C!==void 0&&C!==null||_.CC(Error("Hh"));D=_.Fv(function(){return c().interaction},D);
return _.A("ad-badge-view-model",{class:_.g$(function(){var a;return((a=c().interaction)==null?0:a.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var a=g.adRenderingContextType(),O=p();
c();return a!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||O?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.fb(D)},_.A(_.iI,{data:function(){var a;c();return{type:2,text:(a=c().label)==null?void 0:a.content,adsIncludeDot:W(),isOverlay:c().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var DpN;_.Je=_.F(function(D){var C=D.data;var X=D.customCommandResolver;var c=D.adRenderingContextType;return _.A("ad-details-line-view-model",{class:function(){var W;return((W=C().interaction)==null?0:W.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(W){var p,g=(p=C().interaction)==null?void 0:p.onFirstVisible;W&&g&&_.FV(g)},
showOption:_.n9}),_.Fv(function(){return C().interaction},X))},_.A(_.v,{cond:function(){return C().style},
then:function(W){return _.A(_.Zh,{each:function(){var p;return((p=C())==null?void 0:p.attributes)||[]},
keyBy:"INDEX"},function(p){return _.A(DpN,{attribute:p,style:W,adRenderingContextType:function(){return c()}})})}}))},"Pb");
DpN=_.F(function(D){var C=D.attribute;var X=D.style;var c=D.adRenderingContextType;return _.A(_.v,{cond:function(){return C().text},
then:function(W){return _.A(_.QG,{text:W,className:function(){var p=c();X();return p==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var Cvb=_.F(function(D){var C=D.data;var X=D.typographyBump;var c=function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},W=function(){return{size:"M"}};
D={};return _.A(_.kQ,null,_.A("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.A(_.QG,{text:function(){return C().headline},
className:_.g$("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return c==null?void 0:c()},D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(X==null?void 0:X())&&!(c==null?0:c())},D)),
linkInheritColor:!0}),_.A(_.v,{cond:function(){return C().description},
then:function(p){var g={};return _.A(_.QG,{text:p,className:_.g$("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return c==null?void 0:c()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(X==null?void 0:X())&&!(c==null?0:c())},g)),
linkInheritColor:!0})}}),_.A(_.v,{cond:function(){return C().secondaryDescription},
then:function(p){var g={};return _.A(_.QG,{text:p,className:_.g$("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return X==null?void 0:X()},g)),
linkInheritColor:!0})}}),_.A("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.A(_.v,{cond:function(){return C().adAvatar},
then:function(){return _.A("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.A(_.BX,{data:function(){return C().adAvatar}},{adAvatarViewModel:_.lBx}))}}),_.A(_.BX,{data:function(){return C().adBadge}},{adBadgeViewModel:function(p){return _.A(_.Hw,{data:p.data,
hasDot:function(){return!!C().adDetailsLine},
adRenderingContextType:function(){return C().adRenderingContextType}})}}),_.A(_.BX,{data:function(){return C().adDetailsLine}},{adDetailsLineViewModel:function(p){return _.A(_.Je,{data:p.data,
adRenderingContextType:function(){return C().adRenderingContextType}})}}))),_.A("div",{class:function(){return _.b("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":c()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.A(_.BX,{data:function(){return C().menu}},{buttonViewModel:function(p){return _.A(_.Ze,{data:p.data,
buttonOverrides:_.b("enable_desktop_vdc_components")?W:function(){a:switch(C().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var g="S";break a;default:g="M"}return{size:g}}})}})))},"Rb"),XA4=_.F(function(D){var C=D.data;
var X=D.noBottomMargin;var c=D.useVideoLockupTopPadding;var W=D.typographyBump;D={};D=_.g$("ytwFeedAdMetadataViewModelHostMetadata",(D.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return X==null?void 0:X()},D.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return c==null?void 0:c()},D));
var p=function(){return C().adBadge};
p!==void 0&&p!==null||_.CC(Error("Ih"));p={};var g={};return _.A(_.kQ,null,_.A(_.v,{cond:function(){return C().adAvatar},
then:function(){return _.A("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.A(_.BX,{data:function(){return C().adAvatar}},{adAvatarViewModel:function(a){return _.A(_.lBx,{data:a.data})}}))}}),_.A("div",{class:D},_.A("div",{class:_.g$("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(p.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return W==null?void 0:W()},p.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(W==
null?void 0:W())&&_.b("web_enable_typography_bump_v2")},p))},_.A(_.QG,{text:function(){return C().headline},
linkInheritColor:!0})),_.A(_.v,{cond:function(){return C().description},
then:function(a){return _.A(_.QG,{text:a,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.A("div",{class:function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.b("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.A(_.BX,{data:function(){return C().adBadge}},
{adBadgeViewModel:function(a){return _.A(_.Hw,{data:a.data,
hasDot:function(){return!!C().adDetailsLine},
adRenderingContextType:function(){return C().adRenderingContextType}})}}),_.A(_.BX,{data:function(){return C().adDetailsLine}},{adDetailsLineViewModel:function(a){return _.A(_.Je,{data:a.data,
adRenderingContextType:function(){return C().adRenderingContextType}})}})),_.A(_.v,{cond:function(){return C().secondaryDescription},
then:function(a){return _.A(_.QG,{text:a,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.A("div",{class:_.g$("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(g.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return c==null?void 0:c()},g))},_.A(_.BX,{data:function(){return C().menu}},{buttonViewModel:_.Ze})))},"Sb"),zO=_.F(function(D){var C=D.data;
var X=D.noBottomMargin;var c=D.listenToTapEvent;var W=D.setTouchEndHandler;var p=D.useVideoLockupTopPadding;var g=D.typographyBump;D=_.kb({visibilityCallback:function(u){var Q,B=(Q=C().interaction)==null?void 0:Q.onFirstVisible;u&&B&&_.FV(B)},
showOption:_.n9});var a=_.Fv(function(){return C().interaction},void 0,function(){return c==null?void 0:c()}),O=_.U(_.Li(!1,void 0,"N3Oquc")),P=O.next().value,k=O.next().value;
O=_.I_(function(u){(W==null?0:W())&&!P()&&(u.currentTarget.click(),k(!0),setTimeout(function(){k(!1)},100));
return!1});
return _.A("feed-ad-metadata-view-model",{class:function(){var u;return((u=C().interaction)==null?0:u.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.fb(D,a),"on:touchend":O},_.A(_.G4,null,_.A(_.wq,{when:function(){return C().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.A(Cvb,{data:C,
typographyBump:g})}),_.A(_.wq,{when:function(){return C().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.A(XA4,{data:C,
noBottomMargin:X,useVideoLockupTopPadding:p,typographyBump:g})})))},"Tb");var cK4,oHM;cK4=_.TU.inlinePreviewEnabledSelector;_.jx=_.F(function(D){return _.A("yt-lockup-view-model",{class:_.g$(D.className,"yt-lockup-view-model--wrapper")},_.A(_.TO,{contentId:function(){return D.data().contentId},
useModernStyle:!0,aspectRatio:function(){var C,X;return((C=D.containerType)==null?void 0:C.call(D))!==3?HMh(D.data().contentType,(X=D.force16By9ThumbnailAspectRatio)==null?void 0:X.call(D)):void 0}},function(){return _.A(oHM,Object.assign({},D))}))},"Ub");
oHM=_.F(function(D){D=_.Ro(D,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var C=D.data,X=D.containerLayoutConfig,c=D.containerType,W=D.sizing,p=D.protectBackground,g=D.typographyBump,a=D.force16By9ThumbnailAspectRatio,O=D.thumbnailFixedWidth,P=D.thumbnailTargetWidth,k=D.lockupExperiments,
u=D.elementsPerRow,Q=D.useOverlayStyling,B=_.iX().resolve(_.vK(_.Hc));D=_.fb(_.NH(function(){var jZ;return(jZ=C())==null?void 0:jZ.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var K=_.uu(cK4),L=_.iX().resolve(_.vK(uTc)),t=L?{}:void 0,Y=function(){var jZ,Ac,ib;return(ib=(Ac=_.r((jZ=C())==null?void 0:jZ.rendererContext,_.by))==null?void 0:Ac.label)!=null?ib:void 0},y=function(){var jZ;
return(jZ=_.r(C().metadata,_.Bv5))==null?void 0:jZ.endorsement},J=function(){var jZ=X==null?void 0:X(),Ac;
if(jZ==null?0:jZ.containerType){var ib=(Ac=C())==null?void 0:Ac.contentType;Ac=k();var d5=g(),ub=P(),L5=p();jZ=Object.assign({},JBh(ZMF(jZ),GU(jZ.responsiveSize),d5,ib,jZ.force16By9ThumbnailAspectRatio,ub,L5,void 0,Ac),{thumbnailFixedWidth:jZ.contentPreviewWidth})}else jZ=JBh(c(),W(),g(),(ib=C())==null?void 0:ib.contentType,a(),P(),p(),Q(),k());return jZ};
L&&t&&L({enabled:function(){return K()},
itemPlaybackModel:function(){return C().itemPlayback},
thumbnailElRef:function(){return t.thumbnailElRef},
containerElRef:D,options:function(){var jZ=t.thumbnailOverlays||[],Ac=y(),ib;!Ac||((ib=k())==null?0:ib.onFocusEffect)||jZ.push(Ac);var d5,ub;return{thumbnail:t.thumbnail,thumbnailOverlays:jZ,accessibilityText:Y(),thumbnailSize:t.thumbnailSize,enableRounding:J().isCollection,containPlayerWithinThumbnail:J().isCollection,mouseleaveCallback:function(){q(!1)},
trackingParams:(d5=_.r(C().rendererContext,_.k7))==null?void 0:(ub=d5.loggingDirectives)==null?void 0:ub.trackingParams}}});
var T=0;L=_.U(_.Li(!1,void 0,"v0iGab"));var H=L.next().value,q=L.next().value;L=_.U(_.Li(!1,void 0,"PVKcBd"));var R=L.next().value,ph=L.next().value;L=_.I_(function(){R()?(_.qX.cancelJob(T),T=_.qX.addJob(function(){q(!0)},8,32)):q(!0);
return!0});
var Om=_.I_(function(jZ){jZ=jZ.relatedTarget;var Ac=document.querySelector("ytd-video-preview");jZ&&Ac&&Ac.contains(jZ)||(T&&(_.qX.cancelJob(T),T=0),q(!1))});
_.z3(function(){T&&(_.qX.cancelJob(T),T=0)});
var xj=cLR(function(){ph(!0)}),Bo=xj.touchFeedbackEvents,r5=xj.touchFeedbackOnPointerUp,Fd=xj.touchFeedbackOnPointerDown;
xj=xj.touchFeedbackOnPointerLeave;var GJ={};return _.A(_.kQ,null,_.A("div",{el:D,class:_.g$("yt-lockup-view-model",function(){a:{var jZ=J();if(jZ.metadataOnThumbnail)jZ="yt-lockup-view-model--metadata-on-thumbnail";else switch(jZ.arrangement){case 1:jZ="yt-lockup-view-model--horizontal";break a;default:jZ="yt-lockup-view-model--vertical"}}return jZ},function(){a:{var jZ=J();
if(jZ.metadataOnThumbnail)jZ="yt-lockup-view-model--metadata-on-thumbnail";else{switch(jZ.collectionStackNumber){case 1:jZ="yt-lockup-view-model--collection-stack-1";break a;case 2:jZ="yt-lockup-view-model--collection-stack-2";break a}jZ=void 0}}return jZ},function(){var jZ;
return _.R6t((jZ=C())==null?void 0:jZ.contentId)},(GJ["yt-lockup-view-model--card"]=function(){return J().isCard},GJ["yt-lockup-view-model--compact"]=function(){return J().isTiny||J().sizing!=="STANDARD"},GJ["yt-lockup-view-model--protect-background"]=p,GJ["yt-lockup-view-model--add-margins"]=function(){return J().addMarginForFullbleed},GJ["yt-lockup-view-model--centered"]=function(){return J().isCentered},GJ["yt-lockup-view-model--fullbleed"]=function(){return J().fullbleed},GJ["yt-lockup-view-model--single-column-grid"]=
function(){return u()===1&&c()===2},GJ["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var jZ;
return(jZ=k())==null?void 0:jZ.useRichGridLegacyMargin},GJ["yt-lockup-view-model--flex-none"]=function(){return!_.b("lockup_flex_none_killswitch")},GJ)),
"on:mousedown":Fd,"on:mouseleave":Om,"on:mouseup":r5,"on:mouseover":L,"on:touchstart":Fd,"on:touchend":r5,"on:pointerleave":xj},_.A(_.NL,{model:function(){var jZ,Ac,ib=Object,d5=ib.assign,ub=(t==null?void 0:t.thumbnailSize)||"small";a:{var L5=J();var Nf=!!(y()&&((jZ=k())==null?0:jZ.onFocusEffect));switch((t==null?void 0:t.thumbnailSize)||"small"){case "small":jZ=4;break;case "large":jZ=12;break;default:jZ=8}if(Nf)L5=jZ+12;else{switch(L5.collectionStackNumber){case 1:L5=jZ+8;break a;case 2:L5=jZ+12;
break a}L5=void 0}}ub={thumbnailSize:ub,triggerEvents:!0,customTopExtend:L5};var xt;L5=(Ac=k())==null?void 0:Ac.onFocusEffect;Nf=!(B==null||!B());if(L5){var u6,g5;Ac=Nf?(u6=L5.onFocusColor)==null?void 0:u6.darkTheme:(g5=L5.onFocusColor)==null?void 0:g5.lightTheme;var oq,rx;u6=Nf?(oq=L5.keyLightColor)==null?void 0:oq.darkTheme:(rx=L5.keyLightColor)==null?void 0:rx.lightTheme;var Rq;oq=Nf?(xt=L5.touchResponseColor)==null?void 0:xt.darkTheme:(Rq=L5.touchResponseColor)==null?void 0:Rq.lightTheme;xt={background:Ac!==
void 0?t9(Ac):void 0,keyLight:u6!==void 0?t9(u6):void 0};Rq=[];rx=_.U(L5.lightingTechniques||[]);for(u6=rx.next();!u6.done;u6=rx.next())switch(u6.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Rq.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Rq.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Rq.push(3)}xt={hoverEffect:{palette:xt,lightingTechniques:Rq},touchEffect:{palette:{background:oq!==void 0?t9(oq):void 0}}}}else xt={};return d5.call(ib,{},ub,xt)},
hovered:function(){return H()},
pointerDownEvent:Bo.pointerDownEvent,pointerUpEvent:Bo.pointerUpEvent,pointerLeaveEvent:Bo.pointerLeaveEvent}),_.A(_.v,{cond:function(){var jZ;return y()&&H()&&((jZ=k())==null?void 0:jZ.onFocusEffect)},
then:function(){return _.A("div",{class:"yt-lockup-view-model__endorsement"},_.A(_.BX,{data:function(){return y()}},{attributionViewModel:function(jZ){return _.A(GO,{data:jZ.data,
useHeavyText:!0})}}))}}),_.A(_.ty,{command:function(){var jZ;
return _.EN((jZ=C())==null?void 0:jZ.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(O()||J().thumbnailFixedWidth)&&J().arrangement===1?"width: "+(O()||J().thumbnailFixedWidth):""}},_.A(_.BX,{data:function(){var jZ;
return(jZ=C())==null?void 0:jZ.contentImage}},{thumbnailViewModel:function(jZ){return _.A(_.yw,{data:jZ.data,
aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:P,hovered:function(){return H()&&!(K()&&C().itemPlayback)},
isClip:function(){var Ac;return((Ac=C())==null?void 0:Ac.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:rB5(t),lockupExperiments:function(){return k()}})},
collectionThumbnailViewModel:function(jZ){return _.A(nGJ,{data:jZ.data,aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:P,doubleStack:function(){return J().collectionStackNumber===2},
hovered:function(){return H()&&!(K()&&C().itemPlayback)},
playbackRef:rB5(t)})},
decoratedAvatarViewModel:_.Og})),_.A("div",{class:"yt-lockup-view-model__metadata"},_.A(_.BX,{data:function(){var jZ;return(jZ=C())==null?void 0:jZ.metadata}},{lockupMetadataViewModel:function(jZ){return _.A(fBC,{data:jZ.data,
hovered:H,lockupStyle:J,lockupCommand:function(){var Ac;return _.EN((Ac=C())==null?void 0:Ac.rendererContext)},
lockupAccessibilityLabel:function(){return Y()},
layout:function(){var Ac;return((Ac=k())==null?0:Ac.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(jZ){return _.A(zO,{data:jZ.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:g})}}),_.A(_.BX,{data:function(){var jZ;
return(jZ=C())==null?void 0:jZ.attachmentSlot}},{lockupAttachmentsViewModel:function(jZ){return _.A(TAk,{data:jZ.data,
lockupStyle:J})}}))),_.A(_.BX,{data:function(){var jZ;
return(jZ=C())==null?void 0:jZ.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(jZ){return _.A(TAk,{data:jZ.data,
lockupStyle:J})}}))},"Vb");
_.jx.idomCompat=!0;_.CI(_.jx,"yt-lockup-view-model",{props:{data:_.Bm,containerLayoutConfig:_.Bm,containerType:_.Bm,sizing:_.Bm,protectBackground:_.Bm,typographyBump:_.Bm,thumbnailFixedWidth:_.Bm,thumbnailTargetWidth:_.Bm,force16By9ThumbnailAspectRatio:_.Bm,className:_.Bm,lockupExperiments:_.Bm,elementsPerRow:_.Bm,useOverlayStyling:_.Bm}});var Uud,Wgg=_.F(function(D){var C=_.Ro(D,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),X=C.text,c=C.alwaysShowTruncationText;D=C.truncationText;var W=C.onTextClick,p=C.maxLines,g=C.disableTextMask,a=C.textStyle,O=C.accessibilityLabel,P=C.textSize,k=C.alwaysTruncateAtMaxLines,u=C.expandOnClick;C=_.U(_.Li(!1,void 0,"EzA1q"));var Q=C.next().value,B=C.next().value;C=_.I_(function(){u()&&B(!Q());W==null||W()});
var K=function(){a:switch(P()){case "medium":var R=2;break a;case "large":R=2.2;break a;default:R=1.8}return R},L=IPj(X,function(){return Q()?Infinity:p()},K,g,k,Q),t=L.isTruncated;
X=L.displayText;k=L.contentRef;var Y=L.hiddenRef,y=L.placeholderTruncationTextRef,J=L.hiddenTruncationTextRef;L=L.truncationTextRef;var T={},H={},q={};return _.A("truncated-text",{class:_.g$((T["yt-truncated-text"]=!0,T["yt-truncated-text--overlay"]=function(){return a()==="overlay"},T["yt-truncated-text--medium-text"]=function(){return P()==="medium"},T["yt-truncated-text--large-text"]=function(){return P()==="large"},T["yt-truncated-text--primary-text"]=function(){return a()==="primary-text"},T)),
"on:click":C,style:function(){return"line-height: "+K()+"rem;"}},_.A("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:k,style:function(){return Q()?"":"max-height: "+p()*K()+"rem;"}},_.A(_.QG,{text:X}),_.A("button",{"aria-disabled":!0,
disabled:!0,class:_.g$((H["yt-truncated-text__inline-button"]=!0,H["yt-truncated-text--hidden"]=function(){return!(!Q()&&(c!=null&&c()||t()))},H)),
el:y,style:function(){return"line-height: "+K()+"rem;"}},_.A(_.QG,{text:D}))),_.A("truncated-text-content",{class:_.g$("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:Y,style:function(){return Q()?"":"max-height: "+p()*K()+"rem;"},
"aria-hidden":"true"},_.A(_.QG,{text:X}),_.A("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:J,style:function(){return"line-height: "+K()+"rem;"}},_.A(_.QG,{text:D}))),_.A("button",{"aria-label":O,
class:_.g$((q["yt-truncated-text__absolute-button"]=function(){return!g()},q["yt-truncated-text__bottom-button"]=function(){return g()},q["yt-truncated-text--hidden"]=function(){return!(!Q()&&(c!=null&&c()||t()))},q)),
el:L,style:function(){return"line-height: "+K()+"rem;"}},_.A(_.QG,{text:D})))},"Xb");
Wgg.idomCompat={callbacks:{onTextClick:!0}};var UpM=_.F(function(D){var C=D.data;D=D.className;var X=_.tw(function(){return ALm(C())},void 0,"uDhDke"),c=_.A(_.kQ,null,_.A(_.v,{cond:function(){return C().heroText||C().image},
then:function(){return _.A(pA5,{data:C})}}),_.A(SQ4,{data:C,
sizeSmall:function(){return C().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.A("yt-video-attribute-view-model",{class:D},_.A("div",{class:function(){var W=C();a:switch(W.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var p="yt-video-attribute-view-model--vertical";break a;default:p="yt-video-attribute-view-model--horizontal"}a:switch(W.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var g="yt-video-attribute-view-model--image-small";break a;default:g="yt-video-attribute-view-model--image-large"}a:switch(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var a=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":a="yt-video-attribute-view-model--image-avatar";break a;default:a=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var O="yt-video-attribute-view-model--metadata-header";break a;default:O=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var P="yt-video-attribute-view-model--container-card";break a;default:P=""}return["yt-video-attribute-view-model",p,g,
a,O,P,ALm(W)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.P0({"background-color":function(){var W=C();if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var p="";else{p=W.lightColorPalette;W=W.darkColorPalette;var g,a=((g=_.iX().resolve(_.vK(_.Hc)))==null?0:g())&&W?W:p;p=(p=a==null?void 0:a.section2Color)?_.e_(p):""}return p}})},_.A(_.v,{cond:X,
then:function(){return _.A(_.ty,{className:"yt-video-attribute-view-model__content-container",command:X,role:"group",ariaLabel:function(){return C().title}},c)},
else:function(){return _.A("div",{class:"yt-video-attribute-view-model__content-container"},c)}})))},"Yb");
UpM.idomCompat=!0;var pA5=_.F(function(D){var C=D.data;var X,c=(X=_.iX().resolve(_.vK(_.Hc)))==null?void 0:X(),W=function(){return c&&C().darkThemeImage?C().darkThemeImage:C().image},p=_.tw(function(){return P2h(C())},void 0,"UDqj0b");
return _.A("div",{class:"yt-video-attribute-view-model__hero-section"},_.A(_.G4,null,_.A(_.wq,{when:W},function(){return _.A(_.M_,{data:function(){return W()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.A(_.wq,{when:function(){return C().heroText}},function(){return _.A("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.A("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return C().heroText}))})),_.A(_.v,{cond:function(){return C().overflowMenuOnTap},
then:function(){return _.A("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.A(_.FC,{data:p,iconName:"MORE_VERT"}))}}))},"Zb");
pA5.idomCompat=!0;var SQ4=_.F(function(D){var C=D.data;D=D.sizeSmall;var X=function(){return C().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},c=_.tw(function(){return w2(_.nb({innertubeCommand:ALm(C())}))?"link":ALm(C())?"button":"group"},void 0,"e2MmYe"),W={};
return _.A("div",{class:_.g$("yt-video-attribute-view-model__metadata",(W["yt-video-attribute-view-model--small-font"]=D,W)),role:c},_.A("h1",{class:"yt-video-attribute-view-model__title"},function(){return C().title}),_.A(_.v,{cond:function(){return C().subtitle},
then:function(){return _.A("h4",{class:"yt-video-attribute-view-model__subtitle"},_.A(_.v,{cond:X,then:function(){return _.A(Wgg,{text:function(){return OOh(C().subtitle)},
truncationText:function(){return OOh(C().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.A("span",null,function(){return C().subtitle})}}))}}),_.A(_.v,{cond:function(){return C().secondarySubtitle},
then:function(p){return _.A("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.A(_.QG,{text:function(){var g=p();if(g!=null&&g.attachmentRuns){for(var a=[],O=_.U(g.attachmentRuns),P=O.next();!P.done;P=O.next())P=P.value,P.element&&a.push(Object.assign({},P,{element:Object.assign({},P.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));g=Object.assign({},g,{attachmentRuns:a})}return g}}))}}),_.A(_.BX,
{data:function(){return C().buttonViewModel}},{buttonViewModel:function(p){return _.A(_.Ze,{data:p.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
SQ4.idomCompat=!0;_.CI(UpM,"yt-video-attribute-view-model",{props:{data:_.Bm,className:_.Bm}});var MV=function(){var D=_.w.apply(this,arguments)||this;D.useHighlightStyling=_.b("web_enable_deeper_metadata_highlight_styling");D.isSearch=!1;D.JSC$15451_lastScrollContainerWidth=NaN;D.pageLoadingFromNavigation=!1;D.currentIndex=0;D.supportComponentResize=!1;return D};
_.h(MV,_.w);_.S=MV.prototype;
_.S.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}}}}}};
_.S.attached=function(){document.addEventListener("yt-page-type-changed",_.Pr(this,this.onPageChange))};
_.S.detached=function(){document.removeEventListener("yt-page-type-changed",_.Pr(this,this.onPageChange))};
_.S.getItemsPath=function(){return"data.cards"};
_.S.onIronResize=function(){this.updateListStyles()};
_.S.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var D;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(D=this.data)==null?void 0:D.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.b("problem_walkthrough_sd")&&!!this.centerItems};
_.S.computeCardListStyle=function(D){return D||null};
_.S.computeEmpty=function(D){return!this.get("cards.length",D)};
_.S.computeThumbnailStyle=function(D){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",D)||null};
_.S.computeHasSubtitle=function(D){return!!this.get("header.richListHeaderRenderer.subtitle",D)};
_.S.computeInitialCountNumber=function(D){return this.hasSquareMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.S.computeUseFloorScrolling=function(D){return D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.S.computeHasGameCard=function(D){return(D=this.get("cards",D))?D.some(function(C){return C.gameCardRenderer}):!1};
_.S.computeCenterHeaderTitle=function(D){return!(D==null||!D.centerHeaderTitle)};
_.S.computeHasPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.S.computeHasSquareMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.S.computeHasSkinnyWidthPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.width===135}):!1};
_.S.computeCenterItems=function(D){return!!D};
_.S.computeHasInfoPanel=function(D){var C;return D==null?void 0:(C=D.cards)==null?void 0:C.some(function(X){return X.infoPanelContentRenderer})};
_.S.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.S.getItemByIndex=function(D){var C=this.items.children;return C&&C.length>D?C[D]:void 0};
_.S.onPageChange=function(){var D=this;this.pageLoadingFromNavigation=!0;_.qX.addJob(function(){D.pageLoadingFromNavigation=!1;_.Ct(D.hostElement,"yt-terminate-video-preview-action")},8)};
_.S.updateListStyles=function(){if(_.b("problem_walkthrough_sd")&&this.JSC$15451_scrollContainer!==void 0){var D=this.JSC$15451_scrollContainer.clientWidth;D!==this.JSC$15451_lastScrollContainerWidth&&(this.JSC$15451_lastScrollContainerWidth=D,_.Os(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(D*.8,415)+"px"}),_.lE(this.hostElement,"iron-resize"))}};
_.$a.Object.defineProperties(MV.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.b("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.cards)==null?0:(X=C[0])==null?0:X.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.cards)==null?0:(X=C[0])==null?0:X.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return _.b("enable_desktop_amsterdam_info_panels")&&!!((D=this.data)==null?0:(C=D.cards)==null?0:(X=C[0])==null?0:X.infoPanelContentRenderer)}}});
MV.prototype.dataChanged=MV.prototype.dataChanged;MV.prototype.onIronResize=MV.prototype.onIronResize;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],MV.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.m(_.P9),_.z("design:type",Object)],MV.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],MV.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"useCustomColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],MV.prototype,"useHighlightStyling",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.z("design:type",Object)],MV.prototype,"cardListStyle",void 0);_.V([_.n({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.z("design:type",Boolean)],MV.prototype,"empty",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.z("design:type",Boolean)],MV.prototype,"hasSubtitle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.z("design:type",Boolean)],MV.prototype,"thumbnailStyle",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.z("design:type",Boolean)],MV.prototype,"hasGameCard",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.z("design:type",Boolean)],MV.prototype,"centerHeaderTitle",void 0);
_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.z("design:type",Boolean)],MV.prototype,"hasPortraitMiniApp",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.z("design:type",Boolean)],MV.prototype,"hasSquareMiniApp",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.z("design:type",Boolean)],MV.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.z("design:type",Boolean)],MV.prototype,"hasInfoPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],MV.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],MV.prototype,"inlineStructuredDescription",void 0);_.V([_.kn("#scroll-container"),_.z("design:type",HTMLDivElement)],MV.prototype,"JSC$15451_scrollContainer",void 0);
_.V([_.n({computed:"computeInitialCountNumber(data.style.type)"}),_.z("design:type",Number)],MV.prototype,"initialCount",void 0);_.V([_.n({computed:"computeUseFloorScrolling(data.style.type)"}),_.z("design:type",Boolean)],MV.prototype,"useFloorScrolling",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.z("design:type",Boolean)],MV.prototype,"centerItems",void 0);_.V([_.n(),_.z("design:type",Object)],MV.prototype,"pageLoadingFromNavigation",void 0);
_.V([_.n(),_.z("design:type",Object)],MV.prototype,"currentIndex",void 0);_.V([_.n(),_.z("design:type",Number)],MV.prototype,"scrollCount",void 0);_.V([_.n(),_.z("design:type",Object)],MV.prototype,"supportComponentResize",void 0);_.V([_.kn("#items"),_.z("design:type",HTMLDivElement)],MV.prototype,"items",void 0);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MV.prototype,"onIronResize",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MV.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.e("inlineStructuredDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MV.prototype,"hideNavigationButton",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MV.prototype,"modernChapters",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MV.prototype,"hasVideoAttributeViewModels",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MV.prototype,"modernInfoPanels",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],MV);
_.G(MV,"ytd-horizontal-card-list-renderer",function(){if(lPq!==void 0)return lPq;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return lPq=D},{mode:_.Wc("kevlar_poly_si_batch_j072")?1:2});var gH5=_.F(function(D){var C=D.data;var X={};return _.A("video-summary-content-view-model",{class:_.g$("videoSummaryContentViewModelHost",D.className,(X.videoSummaryContentViewModelHostIsSearch=D.isSearch,X))},_.A(_.Zh,{each:function(){var c=[],W=C().paragraphs;if(W==null||!W.length)return[];for(var p=0;p<W.length;p++){var g=_.r(W[p],rh4),a=void 0;p>0&&(a=_.r(W[p-1],rh4));a&&!!a.marker===!!g.marker?c[c.length-1].paragraphs.push(g):c.push({isList:!!g.marker,paragraphs:[g]})}return c},
keyBy:"INDEX"},function(c){return _.A(_.v,{cond:function(){return c().isList},
then:function(){return _.A("ul",{class:"videoSummaryContentViewModelList"},_.A(_.Zh,{each:function(){return c().paragraphs},
keyBy:"INDEX"},function(W){return _.A("li",{class:"videoSummaryContentViewModelListItem"},_.A(_.QG,{text:function(){return W().text}}))}))},
else:function(){return _.A("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.A(_.Zh,{each:function(){return c().paragraphs},
keyBy:"INDEX"},function(W){return _.A("p",{class:"videoSummaryContentViewModelParagraph"},_.A(_.QG,{text:function(){return W().text}}))}))}})}),_.A(_.v,{cond:function(){return!!_.r(C().likeButtonViewModel,_.Fx)&&!!_.r(C().dislikeButtonViewModel,_.Zt)},
then:function(){return _.A("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.A("div",{class:"videoSummaryContentViewModelLikeButton"},_.A(_.$d,{data:function(){return _.r(C().likeButtonViewModel,_.Fx)},
disableIconAnimation:!0})),_.A(_.PO,{data:function(){return _.r(C().dislikeButtonViewModel,_.Zt)}}))}}))},"ac");
gH5.idomCompat=!0;_.CI(gH5,"video-summary-content-view-model",{props:{data:_.Bm,isSearch:_.Bm,className:_.Bm}});var qV=function(){var D=_.w.apply(this,arguments)||this;var C,X;D.isExpanded=(X=(C=D.data)==null?void 0:C.isExpanded)!=null?X:!1;D.disableExpand=!1;D.showProminentLabel=!1;D.showRightSideLabel=!0;D.toggleExpandableContent=function(c){D.disableExpand||(c.stopPropagation(),_.R_(_.Mz(c),D.hostElement,["info","expanded-subtitle"])||(D.isExpanded=!D.isExpanded,D.ytRendererBehavior.logExplicitClick(D.data),D.JSC$15462_cardList&&!_.b("expandable_metadata_a11y_fix_ks")&&_.A0(D,function(){_.ai(D.hostElement)})))};
D.useSquareThumbnail=!1;D.startX=0;return D};
_.h(qV,_.w);_.S=qV.prototype;_.S.computeUseSquareThumbnail=function(){var D;return(D=this.data)==null?void 0:D.useSquareThumbnail};
_.S.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"}}}}};
_.S.dataChanged=function(){if(this.data){var D,C;this.isExpanded=(C=(D=this.data)==null?void 0:D.isExpanded)!=null?C:!1;var X,c,W,p;if(D=this.isDarkTheme()?(X=this.data)==null?void 0:(c=X.colorData)==null?void 0:c.darkColorPalette:(W=this.data)==null?void 0:(p=W.colorData)==null?void 0:p.lightColorPalette){var g,a;if((g=this.data)==null?0:(a=g.colorData)==null?0:a.vibrantColorPalette)D.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.x_(this.hostElement,D)}}};
_.S.isExpandedChanged=function(){this.isExpanded&&this.JSC$15462_cardList&&_.lE(this.JSC$15462_cardList,"iron-resize")};
_.S.computeIsExpanded=function(D){return!!D.isExpanded};
_.S.computeShowProminentLabel=function(D,C){var X;return!!(D==null?0:(X=D.header)==null?0:X.showLeadingCollapsedLabel)&&!C};
_.S.computeShowRightSideLabel=function(D,C){var X;return!(D==null?0:(X=D.header)==null?0:X.showLeadingCollapsedLabel)&&!C};
_.S.captureContentClick=function(D){if(!this.disableExpand)if(_.b("expandable_metadata_fix_killswitch")){var C=D.target;_.Feb(C,"ytd-macro-markers-list-item-renderer")||D.stopPropagation();(C==null?void 0:C.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.R_(_.Mz(D),this.hostElement,["items"])||_.d$(_.Mz(D),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.S.timestampClick=function(D){D.stopPropagation();var C,X;(D=(C=this.data)==null?void 0:(X=C.header)==null?void 0:X.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(D)};
_.S.onDown=function(D){D.stopPropagation();this.startX=D.detail?D.detail.x:0};
_.S.onUp=function(D){this.skipKeyInteraction(D)&&D.stopPropagation()};
_.S.skipKeyInteraction=function(D){var C=D.target;if((C==null?void 0:C.id)==="scroll-container"||(C==null?void 0:C.id)==="items"||D.detail&&D.detail.x!==this.startX)return!0;D=_.Mz(D);D=_.U(D);for(C=D.next();!C.done;C=D.next()){C=C.value;if(C===this.hostElement)break;if(C.hasAttribute&&C.hasAttribute("skip-key-interaction"))return!0}return!1};
_.S.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.$a.Object.defineProperties(qV.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.r((D=this.data)==null?void 0:D.expandedContent,b_q)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.r((D=this.data)==null?void 0:D.expandedContent,_.bu5)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.useCustomColors)&&!((C=this.data)==null||!C.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!((D=this.data)==null?0:(C=D.header)==null?0:C.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!((D=this.data)==null?0:(C=D.header)==null?0:C.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!((D=this.data)==null?0:(C=D.header)==null?0:C.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
qV.prototype.onUp=qV.prototype.onUp;qV.prototype.onDown=qV.prototype.onDown;qV.prototype.isExpandedChanged=qV.prototype.isExpandedChanged;qV.prototype.dataChanged=qV.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],qV.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qV.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qV.prototype,"isExpanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qV.prototype,"disableExpand",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],qV.prototype,"isSearch",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],qV.prototype,"isWatch",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.z("design:type",Object)],qV.prototype,"showProminentLabel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.z("design:type",Object)],qV.prototype,"showRightSideLabel",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"hasVideoSummary",null);_.V([_.n({value:!1,reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"hasLockupViewModel",null);_.V([_.n({reflectToAttribute:!0}),_.e("data","isWatch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"useCustomColors",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"showInfoButton",null);_.V([_.e("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"showTimestamp",null);_.V([_.e("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"showExpandedSubtitle",null);
_.V([_.e("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qV.prototype,"showThumbnail",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],qV.prototype,"useVppShoppingDestinationStyle",null);_.V([_.n(),_.z("design:type",Object)],qV.prototype,"toggleExpandableContent",void 0);_.V([_.kn("ytd-horizontal-card-list-renderer"),_.z("design:type",Object)],qV.prototype,"JSC$15462_cardList",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.z("design:type",Object)],qV.prototype,"useSquareThumbnail",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qV.prototype,"dataChanged",null);_.V([_.vr("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qV.prototype,"isExpandedChanged",null);
_.V([_.$n("down"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qV.prototype,"onDown",null);_.V([_.$n("up"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qV.prototype,"onUp",null);_.V([_.yj({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],qV);
_.G(qV,"ytd-expandable-metadata-renderer",function(){if(STx!==void 0)return STx;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return STx=D},{mode:1});var a_5,I_d=function(){if(a_5!==void 0)return a_5;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return a_5=D};_.CI(_.Ae,"yt-avatar-stack-view-model",{props:{className:_.Bm,data:_.Bm,overrides:_.Bm,isOverlay:_.Bm,useMediumText:_.Bm,decorations:_.Bm,hideAvatar:_.Bm}});_.sI("itemSectionRenderer","videoRenderer","ytd-video-renderer");var f9=function(){var D=_.w.apply(this,arguments)||this;D.disableExpand=!1;D.shouldShowChannelInfo=!1;D.hasAttributedBylineText=!1;D.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return D};
_.h(f9,_.w);_.S=f9.prototype;_.S.computeUseSearchUi=function(){var D,C;return this.isSearch||((D=this.data)==null?void 0:(C=D.style)==null?void 0:C.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.S.computeUseThreeLineTitle=function(){var D;return((D=this.data)==null?void 0:D.maxTitleLines)===3};
_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.b("polymer_video_renderer_defer_menu")&&!Jzq?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.S.attached=function(){_.gi(this.hostElement,"blue-links",_.b("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.ao(_.SY(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),C;D&&((C=_.r(D.commandMetadata,_.dY))==null?0:C.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D);this.updateInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15467_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.JSC$15467_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15467_inlinePreviewHoverListener)==null||fm(D)};
_.S.onTextWrapperClick=function(D){var C,X,c=this.hideTranslation?(C=this.data)==null?void 0:C.untranslatedNavigationEndpoint:(X=this.data)==null?void 0:X.navigationEndpoint;C=_.R_(_.Mz(D),this.hostElement,["expandable-metadata"]);!c||C&&!_.b("expandable_metadata_fix_killswitch")||_.d$(_.Mz(D),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.lE(this.hostElement,"yt-navigate",{endpoint:c})};
_.S.computeThumbnailWidth=function(D,C,X,c,W){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:c?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:X?360:C?128:D?210:246};
_.S.computeUseBiggerThumbs=function(D){return D&&_.b("enable_desktop_search_bigger_thumbs")};
_.S.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.S.computeHasAttributedBylineText=function(){var D;return!((D=this.data)==null||!D.attributedBylineText)};
_.S.computeVideoStyle=function(){if(_.b("enable_video_style")){var D,C;return(D=this.data)==null?void 0:(C=D.style)==null?void 0:C.value}};
_.S.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.S.handleHideItemSectionVideosByIdCommand=function(D){var C;D=(C=_.r(D,JFM))==null?void 0:C.videoId;this.data&&this.data.videoId===D&&(this.isHidden=!0)};
_.S.getMetadataSnippetContainerClass=function(D){return D?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.S.computeTitleText=function(D,C,X){return D?X:C};
_.S.computeDescriptionSnippet=function(D,C,X){return D?X:C};
_.S.computeSnippetText=function(D,C,X){return D?X:C};
_.S.computeNavigationEndpoint=function(D,C){return D?C==null?void 0:C.untranslatedNavigationEndpoint:C==null?void 0:C.navigationEndpoint};
_.S.hideInlineTitleIcon=function(D,C){return D||!C};
_.$a.Object.defineProperties(f9.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 D;return(D=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?D:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!(this==null?0:(D=this.data)==null?0:(C=D.channelThumbnailSupportedRenderers)==null?0:(X=C.channelThumbnailWithLinkRenderer)==null?0:X.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.r((D=this.data)==null?void 0:D.avatar,rbf)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15467_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.$a.Object.defineProperties(f9,{template:{configurable:!0,enumerable:!0,get:function(){return I_d()}}});
f9.prototype.dataChanged=f9.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],f9.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],f9.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.B9),_.z("design:type",Object)],f9.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],f9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],f9.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],f9.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],f9.prototype,"isBackstageVideo",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],f9.prototype,"isPostCompactVideo",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],f9.prototype,"isHistory",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],f9.prototype,"isRichGridVideoPost",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],f9.prototype,"isHidden",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],f9.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.z("design:type",Boolean)],f9.prototype,"useSearchUi",void 0);_.V([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.z("design:type",Boolean)],f9.prototype,"useThreeLineTitle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.z("design:type",Boolean)],f9.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.z("design:type",Object)],f9.prototype,"videoStyle",void 0);_.V([_.n({computed:"computeDisableExpand(videoStyle)"}),_.z("design:type",Object)],f9.prototype,"disableExpand",void 0);
_.V([_.n({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.z("design:type",Object)],f9.prototype,"shouldShowChannelInfo",void 0);_.V([_.n({computed:"computeHasAttributedBylineText(data)"}),_.z("design:type",Object)],f9.prototype,"hasAttributedBylineText",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],f9.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.z("design:type",String)],f9.prototype,"inlineTitleIcon",void 0);_.V([_.n({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.z("design:type",Object)],f9.prototype,"computedNavigationEndpoint",void 0);_.V([_.n({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(D,C){return _.aI(D.entities,"searchVideoResultEntity",C)}}),
_.z("design:type",Object)],f9.prototype,"searchVideoResultEntity",void 0);_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],f9.prototype,"thumbnail",void 0);_.V([_.kn("#dismissible"),_.z("design:type",HTMLElement)],f9.prototype,"JSC$15467_dismissibleMedia",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f9.prototype,"dataChanged",null);
_.V([_.e("searchVideoResultEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],f9.prototype,"hideTranslation",null);_.V([_.e("searchVideoResultEntity"),_.z("design:type",Array),_.z("design:paramtypes",[])],f9.prototype,"hiddenBadgeGroups",null);_.V([_.e("data","useAvatar"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],f9.prototype,"shouldShowChannelThumbnail",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],f9.prototype,"useAvatar",null);
_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],f9.prototype,"isHovered",null);_.V([_.yj({is:"ytd-video-renderer",disableElementRegistration:!0})],f9);_.G(f9,"ytd-video-renderer",function(){return I_d()},{mode:_.Wc("kevlar_poly_si_batch_j047")?1:2});var dz=function(){var D=_.w.apply(this,arguments)||this;D.editDialog=null;D.roundedContainer=!0;D.isLoading=!1;D.isRichGrid=!1;D.isRichGridRepost=!1;D.reduceSidePaddings=_.b("reduce_side_paddings_in_shelf");D.JSC$15474_spinnerEl=null;return D};
_.h(dz,_.w);_.S=dz.prototype;
_.S.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"}}}};
_.S.contentTextChanged=function(){this.expander.reset()};
_.S.dataChanged=function(){var D=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var C=0,X=this.data.actions&&this.data.actions.length;C<X;C++)this.openEditDialog(_.r(this.data.actions[C],L8g));if((C=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(C=this.get("buttonRenderer.hint.hintRenderer.hintId",C))&&C.startsWith("share-post-hint")){var c=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(c){_.Zp.getInstance();var W=G0(_.jV(_.I7("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.qX.addLowPriorityJob(function(){_.o7(D.hostElement,W,c)})}}}};
_.S.updatePoll=function(D){D>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.S.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15474_spinnerEl||(this.JSC$15474_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.SY(this.hostElement).appendChild(this.JSC$15474_spinnerEl));this.JSC$15474_spinnerEl&&(this.JSC$15474_spinnerEl.active=this.isLoading)};
_.S.onYtNavigate=function(D){var C=this.get("updateCommentDialogEndpoint",D.detail.endpoint);C&&(this.openEditDialog(C),D.stopPropagation())};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null};
_.S.onYtCommentPollRevert=function(D,C){C&&this.updatePoll(C.selectedChoiceIndex)};
_.S.onYtServiceRequestSent=function(D,C){var X;C.endpoint&&(_.r(C.endpoint,wk5)||_.r(C.endpoint,ni5)&&((X=_.r(C.endpoint,ni5))==null||!X.clientActions))&&(this.isLoading=!0);if(C.actions)for(D=0;D<C.actions.length;D++)X=C.actions[D],_.r(X,qU)&&(X=this.get("updateBackstagePollAction.selectedChoiceIndex",X),X==void 0&&(X=-1),this.updatePoll(X))};
_.S.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.S.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.S.computeIsPostHidden=function(D,C){return!!D||C};
_.S.computeSurfaceType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.S.computeShowWithoutToolbar=function(D){return!D.actionButtons&&!D.actionMenu};
_.S.computePostAttachment=function(D){if(D.backstageAttachment){if(_.r(D.backstageAttachment,vix))return"poll";if(_.r(D.backstageAttachment,DMx))return"quiz";if(_.r(D.backstageAttachment,_.$L))return"video";if(_.r(D.backstageAttachment,C9b))return"uploaded-videos";if(_.r(D.backstageAttachment,lF5))return D.contentText?"image":"image-only";if(_.r(D.backstageAttachment,feN))return"playlist"}return"none"};
_.S.computePostTabIndex=function(D){return D?0:-1};
_.S.computeButtonTooltipPosition=function(D){return this.computeUsesCompactLockup(D)?"top":"bottom"};
_.S.computeHasText=function(D){return!(D==null||!D.contentText)};
_.S.onTap=function(D){var C,X;if(((C=this.data)==null?0:C.navigationEndpoint)&&((X=this.data)==null?void 0:X.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var c;((c=this.data)==null?0:c.navigationEndpoint)&&!_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.$a.Object.defineProperties(dz.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.jV("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,vix))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,C9b))}}});
dz.prototype.onYtServiceRequestCompleted=dz.prototype.onYtServiceRequestCompleted;dz.prototype.onYtServiceRequestSent=dz.prototype.onYtServiceRequestSent;dz.prototype.onYtCommentPollRevert=dz.prototype.onYtCommentPollRevert;dz.prototype.onYtCommentboxDismiss=dz.prototype.onYtCommentboxDismiss;dz.prototype.onYtNavigate=dz.prototype.onYtNavigate;dz.prototype.isLoadingChanged=dz.prototype.isLoadingChanged;dz.prototype.dataChanged=dz.prototype.dataChanged;dz.prototype.contentTextChanged=dz.prototype.contentTextChanged;
_.V([_.m(_.P9),_.z("design:type",Object)],dz.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],dz.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dz.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],dz.prototype,"editDialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dz.prototype,"roundedContainer",void 0);_.V([_.n(),_.z("design:type",Object)],dz.prototype,"isLoading",void 0);_.V([_.n({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.z("design:type",String)],dz.prototype,"surface",void 0);
_.V([_.n({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.z("design:type",Boolean)],dz.prototype,"usesCompactLockup",void 0);_.V([_.n({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],dz.prototype,"showWithoutToolbar",void 0);_.V([_.n({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.z("design:type",String)],dz.prototype,"attachment",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dz.prototype,"isRichGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dz.prototype,"isRichGridRepost",void 0);_.V([_.n({reflectToAttribute:!0,value:_.b("use_better_post_dismissals")}),_.z("design:type",Boolean)],dz.prototype,"useBetterPostDismissals",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dz.prototype,"reduceSidePaddings",void 0);
_.V([_.n({computed:"computeHasText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],dz.prototype,"hasText",void 0);_.V([_.kn("#expander"),_.z("design:type",Object)],dz.prototype,"expander",void 0);_.V([_.kn("#action-buttons"),_.z("design:type",Object)],dz.prototype,"actionButtons",void 0);_.V([_.kn("#edit-dialog"),_.z("design:type",HTMLElement)],dz.prototype,"editDialogEl",void 0);
_.V([_.vr("data.contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dz.prototype,"contentTextChanged",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dz.prototype,"dataChanged",null);_.V([_.vr("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dz.prototype,"isLoadingChanged",null);
_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dz.prototype,"onYtNavigate",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dz.prototype,"onYtCommentboxDismiss",null);_.V([_.$n("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],dz.prototype,"onYtCommentPollRevert",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],dz.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],dz.prototype,"onYtServiceRequestCompleted",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],dz.prototype,"voteCount",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],dz.prototype,"commentCount",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dz.prototype,"hasPoll",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dz.prototype,"hasUploadedVideo",null);_.V([_.yj({is:"ytd-post-renderer",disableElementRegistration:!0})],dz);
_.G(dz,"ytd-post-renderer",function(){if(sPg!==void 0)return sPg;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return sPg=D},{mode:1});var OSd;var AKx;var Ru=function(){return _.w.apply(this,arguments)||this};
_.h(Ru,_.w);Ru.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],Ru.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Ru.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ru.prototype,"data",void 0);
_.V([_.n({value:"$.items.children"}),_.z("design:type",String)],Ru.prototype,"itemsPath",void 0);_.V([_.n({value:1}),_.z("design:type",Number)],Ru.prototype,"initialCount",void 0);_.V([_.n({reflectToAttribute:!0,value:_.b("enable_community_page_on_desktop")}),_.z("design:type",Boolean)],Ru.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.n(),_.z("design:type",String)],Ru.prototype,"surface",void 0);_.V([_.yj({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Ru);
_.G(Ru,"ytd-post-multi-image-renderer",function(){if(AKx!==void 0)return AKx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return AKx=D},{mode:_.Wc("kevlar_poly_si_batch_j079")?1:2});var Pv4={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
le=function(){var D=_.w.apply(this,arguments)||this;D.hasInlineCommentSection=!1;D.editDialog=null;D.isLoading=!1;D.shouldHideAuthor=!1;D.shouldShowVideoTime=!1;D.isInEngagementPanel=!1;D.hideBorder=!1;D.usesFullLockup=!1;D.shouldShowMenuInCompactView=!1;D.JSC$15489_spinnerEl=null;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.h(le,_.w);_.S=le.prototype;_.S.configureRendererStamper=function(){return Pv4};
_.S.computeIsPollHeaderEnabled=function(D){return(D==null?void 0:D.pollMetadataIcon)!=null};
_.S.getPublishTimeStampString=function(D,C){C=new Date((Number(C)-60*((new Date).getTimezoneOffset()-(new Date(Number(C)*1E3)).getTimezoneOffset()))*1E3);C=(new z1(10)).format(C);if(D&&D.runs&&D.runs.length)for(var X=0;X<D.runs.length;X++)D.runs[X].text&&(D.runs[X].text=D.runs[X].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",C));return D};
_.S.created=function(){this.JSC$15489_spinnerEl=null};
_.S.contentTextChanged=function(){this.expander.reset()};
_.S.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var D;if((D=this.data)==null?0:D.actions){D=_.U(this.data.actions);for(var C=D.next();!C.done;C=D.next())this.openEditDialog(_.r(C.value,L8g))}};
_.S.handleSignalActionOpenPostCommentDialogAction=function(){_.SY(this.hostElement).querySelector("#action-buttons").reply()};
_.S.updatePoll=function(D,C){C&&this.set("data.pollMetadataVoteCountText",C);this.hasInlineCommentSection&&(D=D>=0,C=_.SY(this.hostElement).querySelector("#action-buttons"),D?C.reply():C.hideReplyDialog())};
_.S.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15489_spinnerEl||(this.JSC$15489_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.SY(this.hostElement).appendChild(this.JSC$15489_spinnerEl));this.JSC$15489_spinnerEl&&(this.JSC$15489_spinnerEl.active=this.isLoading)};
_.S.onYtNavigate=function(D){var C=this.get("updateCommentDialogEndpoint",D.detail.endpoint);C&&(this.openEditDialog(C),D.stopPropagation())};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null};
_.S.onYtCommentPollRevert=function(D,C){C&&this.updatePoll(C.selectedChoiceIndex,C.totalVotes)};
_.S.onYtServiceRequestSent=function(D,C){D.stopPropagation();D=_.r(C.endpoint,ni5);if(_.r(C.endpoint,wk5)||D&&!D.clientActions)this.isLoading=!0;if(C.actions)for(D=0;D<C.actions.length;D++){var X=C.actions[D],c=_.r(X,qU);c&&(X=this.get("updateBackstagePollAction.selectedChoiceIndex",X),X===void 0&&(X=-1),this.updatePoll(X,c.totalVotes))}};
_.S.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.S.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogElement.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.S.computeIsBodyHidden=function(D,C){return!!D||C};
_.$a.Object.defineProperties(le.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D=this.data,C=D.showPostAuthorBackgroundHighlight,X=D.postAuthorBadgeType,c=D.authorEndpoint;if(!C&&X!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&X!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var W,p,g;D=_.jV(((W=D.authorText)==null?void 0:(p=W.runs)==null?void 0:(g=p[0])==null?void 0:g.text)||"");W=void 0;switch(X){case "POST_AUTHOR_BADGE_TYPE_ARTIST":W={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":W={iconType:C?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:D,authorEndpoint:c,authorCreator:C,icon:W}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var D,C;if((D=this.data)==null?0:(C=D.pollMetadataIcon)==null?0:C.iconType)return _.g2(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.jV("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,vix))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,DMx))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,C9b))}}});
le.prototype.onYtServiceRequestCompleted=le.prototype.onYtServiceRequestCompleted;le.prototype.onYtServiceRequestSent=le.prototype.onYtServiceRequestSent;le.prototype.onYtCommentPollRevert=le.prototype.onYtCommentPollRevert;le.prototype.onYtCommentboxDismiss=le.prototype.onYtCommentboxDismiss;le.prototype.onYtNavigate=le.prototype.onYtNavigate;le.prototype.isLoadingChanged=le.prototype.isLoadingChanged;le.prototype.dataChanged=le.prototype.dataChanged;le.prototype.contentTextChanged=le.prototype.contentTextChanged;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],le.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],le.prototype,"rendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],le.prototype,"rendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],le.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.kn("#contentTextExpander"),_.z("design:type",Object)],le.prototype,"expander",void 0);_.V([_.kn("#edit-dialog"),_.z("design:type",Element)],le.prototype,"editDialogElement",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"hasInlineCommentSection",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"editDialog",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"isLoading",void 0);
_.V([_.n({computed:"computeIsPollHeaderEnabled(data)"}),_.z("design:type",Boolean)],le.prototype,"isPollHeaderEnabled",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"shouldHideAuthor",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"shouldShowVideoTime",void 0);_.V([_.n(),_.z("design:type",Object)],le.prototype,"isInEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],le.prototype,"hideBorder",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],le.prototype,"usesFullLockup",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],le.prototype,"shouldShowMenuInCompactView",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],le.prototype,"authorCommentBadge",null);_.V([_.e("isInEngagementPanel"),_.z("design:type",Number),_.z("design:paramtypes",[])],le.prototype,"postTextMaxLines",null);
_.V([_.e("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],le.prototype,"pollIcon",null);_.V([_.vr("data.contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],le.prototype,"contentTextChanged",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],le.prototype,"dataChanged",null);
_.V([_.vr("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],le.prototype,"isLoadingChanged",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],le.prototype,"onYtNavigate",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],le.prototype,"onYtCommentboxDismiss",null);
_.V([_.$n("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],le.prototype,"onYtCommentPollRevert",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],le.prototype,"onYtServiceRequestSent",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],le.prototype,"onYtServiceRequestCompleted",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],le.prototype,"voteCount",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],le.prototype,"commentCount",null);
_.V([_.e("data.backstageAttachment"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],le.prototype,"hasPoll",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],le.prototype,"hasQuiz",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],le.prototype,"hasUploadedVideo",null);_.V([_.yj({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],le);
_.G(le,"ytd-backstage-post-renderer",function(){if(OSd!==void 0)return OSd;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return OSd=D},{mode:1});var $pb;var D$=function(){var D=_.w.apply(this,arguments)||this;D.editDialog=null;D.showExpandButton=!1;D.isRichGrid=!1;D.usesFullLockup=!1;return D};
_.h(D$,_.w);_.S=D$.prototype;_.S.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"}}}};
_.S.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.S.computeShowExpandButton=function(D){return this.usesCompactLockup||D&&D.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.S.computeUsesCompactLockup=function(D){return!!D.condensedContent};
_.S.computeShowFullContentText=function(D){return!D};
_.S.onYtNavigate=function(D){D=this.get("updateCommentDialogEndpoint",D.detail.endpoint);this.openEditDialog(D)};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null};
_.S.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.repostEditDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.S.onTap=function(D){if(this.data){var C=null;this.usesCompactLockup&&!_.d$(_.Mz(D)||[],this.hostElement,["YT-IMG-SHADOW"])?C=this.get("navigationEndpoint",this.data):D.target===this.moreButtonEl&&(C=this.get("navigationEndpoint",D.target.data));C&&_.lE(this.hostElement,"yt-navigate",{endpoint:C})}};
D$.prototype.onYtCommentboxDismiss=D$.prototype.onYtCommentboxDismiss;D$.prototype.onYtNavigate=D$.prototype.onYtNavigate;D$.prototype.dataChanged=D$.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],D$.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],D$.prototype,"editDialog",void 0);_.V([_.n({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],D$.prototype,"usesCompactLockup",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],D$.prototype,"showExpandButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],D$.prototype,"isRichGrid",void 0);
_.V([_.n({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.z("design:type",Boolean)],D$.prototype,"showFullContentText",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],D$.prototype,"usesFullLockup",void 0);_.V([_.kn("#more"),_.z("design:type",Object)],D$.prototype,"moreButtonEl",void 0);_.V([_.kn("#repost-content-text"),_.z("design:type",HTMLElement)],D$.prototype,"repostContentTextEl",void 0);
_.V([_.kn("#repost-edit-dialog"),_.z("design:type",HTMLElement)],D$.prototype,"repostEditDialogEl",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D$.prototype,"dataChanged",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],D$.prototype,"onYtNavigate",null);
_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D$.prototype,"onYtCommentboxDismiss",null);_.V([_.yj({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],D$);
_.G(D$,"ytd-shared-post-renderer",function(){if($pb!==void 0)return $pb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $pb=D},{mode:1});var vHN;var iSc;var C3=function(){return _.w.apply(this,arguments)||this};
_.h(C3,_.w);C3.prototype.attached=function(){var D=this;this.networkStatusManager||(this.networkStatusManager=new _.Se,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){D.onlineHandler()}))};
C3.prototype.detached=function(){var D=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){D.onlineHandler()}),delete this.networkStatusManager)};
C3.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],C3.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],C3);
_.G(C3,"ytd-reload-page-button-renderer",function(){if(iSc!==void 0)return iSc;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return iSc=D},{mode:1});var kHx={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"},XH=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(XH,_.w);_.S=XH.prototype;_.S.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.S.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.S.computeHasBodyText=function(D){return!!D.bodyText};
_.S.computeButtons=function(D){var C=[];D.ctaButton&&C.push(D.ctaButton);D.secondaryButton&&C.push(D.secondaryButton);return C};
_.S.computeRendererStyle=function(D){return D.style?D.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():D.icon?"":"no-icon"};
_.S.getIconName=function(D,C){C=C===void 0?!1:C;if(D===void 0)return"";D=this.get("icon.iconType",D);var X;_.b("enable_hlp_client_icon_pick")?X=this.getThemedIcon(D,C):X=D;(C=kHx[X])||(C="yt-icons");return[C,X].join(":")};
_.S.getThemedIcon=function(D,C){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(D)?C?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(D)?C?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":D};
_.S.isThumbnail=function(D){return!!D.thumbnail};
_.S.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.S.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],XH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],XH.prototype,"data",void 0);
_.V([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],XH.prototype,"rendererStyle",void 0);_.V([_.n({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.z("design:type",String)],XH.prototype,"iconName",void 0);_.V([_.n({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],XH.prototype,"thumbnail",void 0);_.V([_.n({computed:"computeButtons(data)"}),_.z("design:type",Array)],XH.prototype,"buttons",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],XH.prototype,"isDarkTheme",void 0);_.V([_.n({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],XH.prototype,"hasBodyText",void 0);_.V([_.yj({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],XH);
_.o3()(XH,"ytd-background-promo-renderer",function(){if(vHN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);vHN=D}D=vHN;return D},{allowedProps:["data"],
mode:1});var uw4;var cY=function(){return _.w.apply(this,arguments)||this};
_.h(cY,_.w);_.$a.Object.defineProperties(cY.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W,p;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(C=D.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(X=this.data)==null?void 0:(c=X.thumbnail)==null?void 0:c.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(p=W.thumbnail)==null?void 0:p.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],cY.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],cY.prototype,"collectionStack",null);_.V([_.yj({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],cY);
_.G(cY,"ytd-compact-station-renderer",function(){if(uw4!==void 0)return uw4;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return uw4=D},{mode:1});var QY4;var ov=function(){var D=_.w.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.h(ov,_.w);ov.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ov.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ov.prototype,"isRichGrid",void 0);_.V([_.yj({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ov);
_.G(ov,"ytd-grid-channel-renderer",function(){if(QY4!==void 0)return QY4;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return QY4=D},{mode:1});var BSk;var WY=function(){return _.w.apply(this,arguments)||this};
_.h(WY,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],WY.prototype,"data",void 0);_.V([_.yj({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],WY);
_.G(WY,"ytd-grid-movie-playlist-renderer",function(){if(BSk!==void 0)return BSk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return BSk=D},{mode:1});var bSJ;var p3=function(){var D=_.w.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.modernButtons=_.b("web_modern_buttons");return D};
_.h(p3,_.w);p3.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
p3.prototype.configureRendererStamper=function(){return{"data.menu":du}};
p3.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
p3.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.b("woffle_playlist_renderer_killswitch")){var D,C=tun(this.entityInfo,this.transferState,this.downloadProgress,(D=this.data)==null?void 0:D.playlistId,this.isOnline);D=C.viewPlaylistText;var X=C.badges;C=C.thumbnailOverlays;this.isDownloads=!!D||!!X;this.set("data.viewPlaylistText",D);X&&X.length>0&&this.set("data.badges",X);C&&C.length>0&&this.set("data.thumbnailOverlays",
C)}};
_.$a.Object.defineProperties(p3.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 D;return!((D=this.data)==null?0:D.menu)}}});
p3.prototype.transferStateChanged=p3.prototype.transferStateChanged;p3.prototype.dataChanged=p3.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],p3.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],p3.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n({selector:_.H4h,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],p3.prototype,"downloadProgress",void 0);_.V([_.n({selector:_.yZ,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],p3.prototype,"transferState",void 0);_.V([_.n({selector:TpJ,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],p3.prototype,"entityInfo",void 0);_.V([_.n({selector:_.Nh}),_.z("design:type",Boolean)],p3.prototype,"isOnline",void 0);
_.V([_.n(),_.z("design:type",Object)],p3.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],p3.prototype,"downloadRenderData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],p3.prototype,"modernButtons",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],p3.prototype,"isDownloads",void 0);_.V([_.e("transferState"),_.n({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],p3.prototype,"downloadState",null);
_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],p3.prototype,"menuHidden",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],p3.prototype,"dataChanged",null);_.V([_.bH("transferState","downloadProgress","isOnline"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],p3.prototype,"transferStateChanged",null);
_.V([_.yj({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],p3);
_.G(p3,"ytd-grid-playlist-renderer",function(){if(bSJ!==void 0)return bSJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bSJ=D},{mode:1});var rKx;var Sd=function(){return _.w.apply(this,arguments)||this};
_.h(Sd,_.w);Sd.prototype.configureRendererStamper=function(){return{"data.menu":du,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.$a.Object.defineProperties(Sd.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W,p;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(C=D.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(X=this.data)==null?void 0:(c=X.thumbnail)==null?void 0:c.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(p=W.thumbnail)==null?void 0:p.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],Sd.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],Sd.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Sd.prototype,"data",void 0);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sd.prototype,"collectionStack",null);_.V([_.yj({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Sd);
_.G(Sd,"ytd-grid-radio-renderer",function(){if(rKx!==void 0)return rKx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rKx=D},{mode:1});var Kgb;var Uk=function(){return _.w.apply(this,arguments)||this};
_.h(Uk,_.w);Uk.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Uk.prototype.computeNavigationEndpoint=function(D){return nLW(D==null?void 0:D.navigationEndpoint)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],Uk.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Uk.prototype,"data",void 0);_.V([_.n({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],Uk.prototype,"computedNavigationEndpoint",void 0);
_.V([_.yj({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Uk);
_.G(Uk,"ytd-grid-show-renderer",function(){if(Kgb!==void 0)return Kgb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Kgb=D},{mode:1});var hlc;_.gQ=function(D){this.playerClient=D};
_.xpd=function(D,C,X){X=X===void 0?{}:X;return D.playerClient.setOption("ad",C,X)};
_.gQ.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.gQ.prototype.executeCommand=function(D,C){this.getOptions().includes("executeCommand")?_.xpd(this,"executeCommand",{command:D,layoutId:C}):_.HX("Calling executeCommand when adModule is not loaded")};var av=function(){return _.w.apply(this,arguments)||this};
_.h(av,_.w);av.prototype.getLayoutId=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
av.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var D=_.CT(),C=this.getLayoutId(),X=this.data.clickthroughEndpoint;D&&C&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(c){(new _.gQ(c)).executeCommand(X,C)}):_.lE(this.hostElement,"yt-navigate",{endpoint:X})}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],av.prototype,"data",void 0);_.V([_.yj({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],av);
_.G(av,"ytd-shopping-companion-item-renderer",function(){if(hlc!==void 0)return hlc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hlc=D},{mode:1});var Lgd;var Iv=function(){var D=_.w.apply(this,arguments)||this;D.isExpandableContent=!1;return D};
_.h(Iv,_.w);_.$a.Object.defineProperties(Iv.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?void 0:D.price)||((C=this.data)==null?void 0:(X=C.dealsData)==null?void 0:X.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var D,C;if((D=this.data)!=null&&D.dealsData&&((C=this.data)==null||!C.priceReplacementText)){D=this.data.dealsData;var X,c,W;return((X=D.salesData)==null?void 0:X.originalPrice)||((c=D.priceDropData)==null?void 0:c.referencePrice)||((W=D.promotionData)==null?void 0:W.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var D,C;return(D=this.data)==null?void 0:(C=D.dealsData)==null?void 0:C.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Iv.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Iv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Iv.prototype,"isExpandableContent",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"showCta",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"ctaText",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"hasPriceTopPosition",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"hasPriceBottomPosition",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"useNewStyle",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"showPriceReplacementText",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"priceValue",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"showDeal",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"showAffiliateDisclaimer",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"useSaleStyle",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"useFromBrandCtaStyle",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"useFromVendorCtaStyle",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iv.prototype,"useShoppingCollectionCtaStyle",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Iv);
_.G(Iv,"ytd-vertical-product-card-renderer",function(){if(Lgd!==void 0)return Lgd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Lgd=D},{mode:1});var sYC;var Ok=function(){return _.w.apply(this,arguments)||this};
_.h(Ok,_.w);Ok.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],Ok.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ok.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Ok);
_.G(Ok,"ytd-grid-movie-renderer",function(){if(sYC!==void 0)return sYC;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return sYC=D},{mode:1});var mp5;var AD=function(){var D=_.w.apply(this,arguments)||this;D.roundedFix=_.b("web_enable_merch_item_rounding_fix");D.itemStyle="small-item";return D};
_.h(AD,_.w);AD.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,C,X,c,W=(C=_.r((D=this.data)==null?void 0:D.buttonCommand,_.NFC))==null?void 0:(X=C.item)==null?void 0:(c=X.notificationTextRenderer)==null?void 0:c.successResponseText;W&&_.$ud(this.hostElement,W)}};
_.$a.Object.defineProperties(AD.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.isProductPlaceholder)!==void 0&&((C=this.data)==null?void 0:C.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],AD.prototype,"roundedFix",void 0);_.V([_.n(),_.z("design:type",Object)],AD.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],AD.prototype,"itemStyle",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"hasPrice",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"hasPriceReplacementText",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"hasAdditionalFeesText",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"hasAffiliateDisclaimer",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"isProductPlaceholder",null);
_.V([_.n(),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"hideOpenInNewIcon",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AD.prototype,"ariaLabel",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],AD);
_.G(AD,"ytd-merch-shelf-item-renderer",function(){if(mp5!==void 0)return mp5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mp5=D},{mode:1});_.CI(_.F(function(D){return _.A("button-card-view-model",{el:_.fb(_.NH(function(){return D.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return D.data().title},
role:"button"},_.A(_.NL,{model:{}}),_.A("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.A("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.A(_.v,{cond:function(){return D.data().image},
then:function(C){return _.A(_.M_,{data:C,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.A("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return D.data().title})))},"bc"),"button-card-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){D=_.Ro(D,{className:void 0});var C=D.data;D=D.className;var X=_.tw(function(){return C().onTapCommand},void 0,"SXkP9e");
return _.A("ytd-shopping-item-card",{class:_.g$("ytdShoppingItemCardHost",D)},_.A(_.ty,{command:X,className:"ytdShoppingItemCardHostLink"},_.A("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.A(_.BX,{data:function(){return C().thumbnailViewModel}},{thumbnailViewModel:function(c){return _.A(_.yw,{data:c.data,
aspectRatio:3})}})),_.A("div",null,_.A("p",{class:"ytdShoppingItemCardHostItemTitle"},_.A(_.QG,{text:function(){return C().itemTitle}})),_.A("p",{class:"ytdShoppingItemCardHostPrice"},_.A(_.QG,{text:function(){return C().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.Bm,
className:_.Bm}});var el5={isAdsVideo:!0},EHe={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},tK4={showPlayerControls:!1,videoPreviewDurationMs:15E3},NS4={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},YQ5={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var zU=null,vmW={};var uYt="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(" "),PY={},Qjo=(PY.FEwhat_to_watch="home",PY.FEhashtag="hashtag",PY.FEtrending="trending",PY.FEhistory="history",PY.SPunlimited="premium",PY.FEmemberships_and_purchases="paid_memberships",PY.SPredeem_code="redeem",PY.SPverify_location="locate",PY.SPminor_moment="minor_moment",
PY.FEmini_app_container="mini_app",PY.FEnews_destination="news",PY.SPopen_in_app="open_in_app",PY.FEexplore="explore",PY.FEsubscriptions="subscriptions",PY.FEsfv_audio_pivot="sfv_audio_pivot",PY.FEplaylist_aggregation="playlist_aggregation",PY);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");_.WE("init");var yKq=function(){},ZSN=_.F(function(D){var C=D.data;
var X=D.inlineMetadata;var c=D.aspectRatio;var W=D.scrimStyle;var p=D.className;var g=D.useDefaultStyle;var a=D.titleStyle;var O=new yKq,P=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",k=_.tw(function(){return(g==null?0:g())?P==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),u=_.tw(function(){return _.Mm(X)||k()||!1},void 0,"SEL6Qd"),Q=function(){return(W==null?void 0:W())!==void 0?W==null?void 0:W():1},
B=_.tw(function(){return C().belowThumbnailMetadata||!u()},void 0,"KAqk1b");
D=_.kb({visibilityCallback:function(ph){var Om=C().onFirstVisible;ph&&Om&&_.FV(Om)},
showOption:{calledOnce:!0,state:"visible"}});var K=_.fb(),L={},t=_.g$(function(){return k(),"shortsLockupViewModelHostThumbnailContainer"},(L.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Mm(c)===1},L.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Mm(c)===2},L.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.b("web_shorts_2_by_3_lockups_study")&&!_.b("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
L)),Y=_.tw(function(){if(_.Mm(c)===1)return 1;
_.Mm(c);return 2},void 0,"Bg5Es"),y,J=function(){if(O){var ph;
(ph=y)==null||fm(ph);var Om;if(O.hostElement&&((Om=O.data)==null?0:Om.inlinePlayerData)){var xj,Bo;ph=((xj=O.data)==null?0:(Bo=xj.inlinePlayerData)==null?0:Bo.enableAudioControl)?Object.assign({},YQ5):Object.assign({},NS4);var r5,Fd;((r5=O.data)==null?void 0:(Fd=r5.inlinePlayerData)==null?void 0:Fd.maxPlaybackLengthSec)!==void 0&&(ph.videoPreviewDurationMs=O.data.inlinePlayerData.maxPlaybackLengthSec*1E3);y=nT({mediaRenderer:O,lockupElement:O.hostElement,thumbnailElement:K.value,videoPreviewOpts:ph})}}};
_.Jw(function(){O&&(O.data=C(),J())},"wo9C7e");
var T=_.tw(function(){return C().thumbnail},void 0,"haijYd");
L=_.tw(function(){return C().badge},void 0,"RpDeSe");
var H=_.tw(function(){return C().onTap},void 0,"hOfuOb"),q={},R={};
return _.A("ytm-shorts-lockup-view-model",{el:_.fb(function(ph){O&&(O.hostElement=ph)},J,D),
class:_.g$("shortsLockupViewModelHost",p)},_.A(_.kQ,null,_.A(_.ty,{command:H,className:_.g$("shortsLockupViewModelHostEndpoint",(q.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!B()},q),"reel-item-endpoint",""),
ariaHidden:function(){return!u()},
tabIndex:function(){return u()?0:-1}},_.A("div",{el:K,
class:_.g$("shortsLockupViewModelHostThumbnailParentContainer",(R.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!k()},R))},_.A(_.v,{cond:T,
then:function(){return _.A("div",{class:t},_.A(_.M_,{data:function(){var ph;return(ph=T==null?void 0:T())!=null?ph:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.A(_.BX,{data:function(){return C().thumbnailViewModel}},{thumbnailViewModel:function(ph){return _.A(_.yw,{data:ph.data,
aspectRatio:function(){return Y()},
disableRounding:function(){return k()}})}}),null),_.A(_.v,{cond:u,
then:function(){return _.A(nHb,{data:C,scrimStyle:Q,useDefaultStyle:g,titleStyle:a})}}),_.A(_.BX,{data:L},{badgeViewModel:function(ph){return _.A(_.ex,{data:ph.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.A(_.v,{cond:function(){return u()&&C().menuOnTap},
then:function(){return _.A(wAf,{data:C,inlineMetadata:!0})}}),_.A(_.v,{cond:B,
then:function(){return _.A(FgN,{data:C,useDefaultStyle:g,inlineMetadata:u})}})))},"ec"),nHb=_.F(function(D){var C=D.data;
var X=D.scrimStyle;var c=D.useDefaultStyle;var W=D.titleStyle;var p=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=c&&_.b("web_hide_primary_text_for_pivot_panel"),a=_.tw(function(){return(c==null?0:c())?p==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
D={};D=_.g$("shortsLockupViewModelHostInlineMetadata",(D.shortsLockupViewModelHostMetadataRounded=function(){return!a()},D.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(X==null?void 0:X())===3&&!_.b("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(X==null?void 0:X())===3&&_.b("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(X==null?void 0:X())===2||(X==null?void 0:
X())===4},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
var O={};return _.A("div",{class:D},_.A("h3",{class:_.g$("shortsLockupViewModelHostMetadataTitle",(O.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(X==null?void 0:X())===4},O.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return C().belowThumbnailMetadata},O.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(W==null?void 0:W())===1},O.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(W==null?void 0:W())===2},O)),
"aria-label":function(){return C().accessibilityText}},_.A(_.v,{cond:function(){var P;
return!((P=C().overlayMetadata)==null||!P.primaryText)&&!g},
then:function(){return _.A(_.QG,{text:function(){var P;return(P=C().overlayMetadata)==null?void 0:P.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.A(_.v,{cond:function(){var P;
return(P=C().overlayMetadata)==null?void 0:P.secondaryText},
then:function(){return _.A(GH5,{data:C,scrimStyle:X,className:void 0})}}))},"fc"),FgN=_.F(function(D){var C=D.data;
var X=D.useDefaultStyle;var c=D.inlineMetadata;var W=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",p=_.tw(function(){return(X==null?0:X())?W==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),g=_.fb(),a;
D=_.I_(function(B){if(_.er(_.mY(B),g.value,["AVATAR-VIEW-MODEL"]))return!1;var K;(K=a)==null||K.click();return!1});
var O=_.tw(function(){return C().belowThumbnailMetadata||C().overlayMetadata},void 0,"GwezKf"),P=function(){return C().menuOnTap&&!c()},k=function(){var B;
return(B=O())==null?void 0:B.avatar},u={},Q={};
return _.A("div",{class:_.g$(function(){return p()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(u.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!k()},u.shortsLockupViewModelHostOutsideMetadataHasMenu=P,u)),
"on:click":D,el:g,role:"presentation"},_.A(_.BX,{data:k},{avatarViewModel:function(B){return _.A(_.Iu,{data:B.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.A("div",null,_.A("h3",{class:_.g$("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Q.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var B,K;
return!((B=O())==null?0:(K=B.primaryText)==null?0:K.content)},Q.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=c,Q)),
role:"presentation"},_.A(_.ty,{ref:function(B){return void(a=B)},
command:function(){return C().onTap},
className:_.g$("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var B,K;return(B=O())==null?void 0:(K=B.primaryText)==null?void 0:K.content},
"aria-label":function(){return C().accessibilityText}},_.A(_.v,{cond:function(){var B;
return(B=O())==null?void 0:B.primaryText},
then:function(B){return _.A(_.QG,{text:B,noEndpoints:!0,noStyleRuns:!0})}}))),_.A(_.v,{cond:function(){var B;
return(B=O())==null?void 0:B.secondaryText},
then:function(B){return _.A("div",{class:_.g$("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.A(_.QG,{text:B,noStyleRuns:!0}))}})),_.A(_.v,{cond:P,
then:function(){return _.A(wAf,{data:C,inlineMetadata:!1})}}))},"gc"),GH5=_.F(function(D){var C=D.data;
var X=D.scrimStyle;D=D.className;var c={};return _.A("div",{class:_.g$((c.shortsLockupViewModelHostMetadataSubhead=function(){return(X==null?void 0:X())!==4},c.shortsLockupViewModelHostMetadataSubheadNew=_.b("enable_shorts_lockup_new_scrim"),c.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(X==null?void 0:X())===4},c),D),
"aria-hidden":"true"},_.A(_.QG,{text:function(){var W;return(W=C().overlayMetadata)==null?void 0:W.secondaryText},
noStyleRuns:!0}))},"hc"),wAf=_.F(function(D){var C=D.data;
var X=D.inlineMetadata;D={};D=_.g$((D.shortsLockupViewModelHostInlineMetadataMenu=function(){return X()},D.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!X()},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
return _.A("div",{class:D},_.A(_.FC,{data:function(){return{style:X()?"overlay":"mono",accessibilityLabel:C().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(c){c.preventDefault();c.stopPropagation();var W=_.nb({elementsCommand:C().menuOnTap,forceNewState:!0});if(W==null?0:W.onclick)W.onclick(c)}}},
iconName:"MORE_VERT"}))},"ic");var VKx=_.F(function(D){var C=D.data;var X=D.inlineMetadata;var c=D.aspectRatio;var W=D.scrimStyle;var p=D.className;var g=D.useDefaultStyle;D=_.tw(function(){var a=C().entityId;return a?a.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.A("ytm-shorts-lockup-view-model-v2",{class:_.g$("shortsLockupViewModelHost",p)},_.A(_.TO,{contentId:D,aspectRatio:function(){return(c==null?void 0:c())===1?1:(c==null?void 0:c())===2?2:4}},function(){return _.A(ZSN,{data:C,
inlineMetadata:X,aspectRatio:c,scrimStyle:W,className:p,useDefaultStyle:g})}))},"jc");_.CI(VKx,"ytm-shorts-lockup-view-model-v2",{props:{data:_.R3,inlineMetadata:_.R3,aspectRatio:_.R3,scrimStyle:_.R3,className:_.R3,useDefaultStyle:_.R3,titleStyle:_.R3}});var TSd=16/9*210,$A=function(){var D=_.w.apply(this,arguments)||this;D.isExpandableContent=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.buttonClasses=["arrow"];D.isSearch=!1;D.disableScrollEventListener=!1;D.containsLockup=!1;D.overrideArrowPositionForProductCard=!1;D.overrideArrowPositionForShoppingItemCard=!1;D.overrideArrowPositionForReelItems=!1;D.overrideArrowPositionForGridMovie=!1;D.overrideArrowPositionToCenter=!1;D.isSearchPostShelf=!1;D.overrideArrowPositionForMixedShelf=!1;D.overrideArrowPositionForMixedShelfShortsOnly=
!1;D.hasBigThumbsReelItems=!1;D.shouldUseMixedListHeight=!1;D.shouldUseShortsListHeight=!1;D.gridVideoWidth=0;D.isSearchVodShelf=!1;D.disableWheelScroll=!1;D.sizing="COMPACT";D.shortsLockupAspectRatio=0;return D};
_.h($A,_.w);_.S=$A.prototype;
_.S.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]]"}}}}};
_.S.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.b("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.S.computeInitialCountNumber=function(D){if(!D)return 6;var C=D.items.some(function(p){return!!p.topicRecommendationsChipRenderer}),X=D.items.some(function(p){return!!p.displayAdRenderer}),c=this.computeShouldListItemsHaveEqualHeight(D),W=D.items.some(function(p){return!!p.gridPlaylistRenderer});
D=D.items.some(function(p){return!!p.shoppingItemCardViewModel});
return C?9:X?8:W||c?10:D?7:6};
_.S.computeContainsPost=function(D){return!!D&&!!D.items&&D.items.some(function(C){return!!C.postRenderer})};
_.S.computeContainsLockup=function(){if(_.b("web_horizontal_list_lockup_arrow_killswitch"))return!1;var D,C;return(D=this.data)==null?void 0:(C=D.items)==null?void 0:C.some(function(X){return!!X.lockupViewModel})};
_.S.maybeUpdateLockupAspectRatio=function(){var D,C;if(this.computeContainsLockup()&&((D=this.data)==null?0:(C=D.items)==null?0:C.length)){var X;D=HMh((X=this.data.items[0].lockupViewModel)==null?void 0:X.contentType,this.data.force16By9ThumbnailAspectRatio);X=VIF(D);X=this.computeLockupWidth()/X;_.Os(this.hostElement,{"--yt-horizontal-list-content-height":X+"px"})}};
_.S.computeOverrideArrowPositionForProductCard=function(D){if(this.isExpandableContent)return!1;var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){return!!X.verticalProductCardRenderer}))};
_.S.computeOverrideArrowPositionForShoppingItemCard=function(D){var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){return!!X.shoppingItemCardViewModel}))};
_.S.computeOverrideArrowPositionForReelItemRenderer=function(D){return this.containsReelItemRenderer(D)};
_.S.computeHasBigThumbsReelItems=function(D,C){return D&&this.containsReelItemRenderer(C)};
_.S.computeShouldListItemsHaveEqualHeight=function(D){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(D==null?void 0:D.itemSizeConstraint)};
_.S.computeShouldListItemsHaveShortsHeight=function(D){return this.computeShouldListItemsHaveEqualHeight(D)&&!this.containsGridVideoRenderer(D)};
_.S.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.S.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.S.containsReelItemRenderer=function(D){var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){return!(!X.reelItemRenderer&&!X.shortsLockupViewModel)}))};
_.S.containsGridVideoRenderer=function(D){var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){return!!X.gridVideoRenderer||!!X.lockupViewModel}))};
_.S.computeContainsGridMovieRenderer=function(D){var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){return!!X.gridMovieRenderer}))};
_.S.computeOverrideArrowPositionToCenter=function(D){return this.computeIsSearchPostShelf(D)};
_.S.computeIsSearchPostShelf=function(D){var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){var c,W;return((W=(c=X.postRenderer)==null?void 0:c.surface)!=null?W:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.S.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(D){var C;return!!(D==null?0:(C=D.items)==null?0:C.some(function(X){var c,W,p;return((p=(c=X.backgroundPromoRenderer)==null?void 0:(W=c.style)==null?void 0:W.value)!=null?p:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.S.computeIsSearchVodShelf=function(D,C){return D&&this.containsGridVideoRenderer(C)};
_.S.computeDisableWheelScroll=function(D,C){return this.computeIsSearchVodShelf(D,C)};
_.S.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.S.computeShortsLockupAspectRatio=function(){return 1};
_.S.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Os(this.hostElement,{"--ytd-reel-item-thumbnail-height":TSd+"px"})};
$A.prototype.dataChanged=$A.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],$A.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$A.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],$A.prototype,"isExpandableContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"hideShelfHeader",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Array)],$A.prototype,"buttonClasses",void 0);_.V([_.n(),_.z("design:type",Object)],$A.prototype,"isSearch",void 0);
_.V([_.n(),_.z("design:type",Object)],$A.prototype,"disableScrollEventListener",void 0);_.V([_.n({computed:"computeInitialCountNumber(data)"}),_.z("design:type",Number)],$A.prototype,"initialCount",void 0);_.V([_.n({computed:"computeContainsPost(data)"}),_.z("design:type",Boolean)],$A.prototype,"supportComponentResize",void 0);_.V([_.n({computed:"computeContainsPost(data)"}),_.z("design:type",Boolean)],$A.prototype,"containsPost",void 0);
_.V([_.n({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"containsLockup",void 0);_.V([_.n({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],$A.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.V([_.n({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionForProductCard",void 0);_.V([_.n({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.V([_.n({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionForReelItems",void 0);_.V([_.n({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionForGridMovie",void 0);
_.V([_.n({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionToCenter",void 0);_.V([_.n({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"isSearchPostShelf",void 0);_.V([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.V([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.V([_.n({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"hasBigThumbsReelItems",void 0);
_.V([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"shouldUseMixedListHeight",void 0);_.V([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"shouldUseShortsListHeight",void 0);_.V([_.n({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"gridVideoWidth",void 0);
_.V([_.n({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"isSearchVodShelf",void 0);_.V([_.n({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],$A.prototype,"disableWheelScroll",void 0);_.V([_.n({computed:"computeSizing(isSearch)"}),_.z("design:type",Object)],$A.prototype,"sizing",void 0);
_.V([_.n({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.z("design:type",Object)],$A.prototype,"shortsLockupAspectRatio",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$A.prototype,"dataChanged",null);
_.G($A,"yt-horizontal-list-renderer",function(){if(V2b===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);V2b=D}D=V2b;return D},{mode:1});var HSq=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
HSq.prototype.subscribe=function(D,C){var X=this.subscriptions.get(D);if(!X)return function(){};
X.add(C);return function(){X.delete(C)}};
HSq.prototype.unsubscribe=function(D,C){(D=this.subscriptions.get(D))&&D.delete(C)};
HSq.prototype.publish=function(D,C){C=C===void 0?{}:C;(D=this.subscriptions.get(D))&&D.forEach(function(X){X(C)})};var JK5;var zlx=[10,12,14,16,18,20,24,28,32,36],jYk=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],vY=function(){var D=_.w.apply(this,arguments)||this;D.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";D.hideOverflow=!1;D.useRoboto=!1;D.fontClass="";D.overflown=!1;D.actionMap={"yt-window-resized":"resize"};return D};
_.h(vY,_.w);_.S=vY.prototype;
_.S.attached=function(){var D=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();_.A0(this,function(){D.resize()});
if(!_.g1){var C,X,c;(C=document)==null||(X=C.fonts)==null||(c=X.ready)==null||c.then(function(){D.resize()})}};
_.S.dataChanged=function(){this.resize()};
_.S.guideIsExpandedChanged=function(){this.resize()};
_.S.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 D=this.getMaxNumLines(),C=this.getMinFont(),X=this.getMaxFont(),c=this.useRoboto?zlx:jYk;for(c=c.filter(function(p){return p<=X&&p>=C});c.length>1;){var W=Math.floor(c.length/2);
this.updateFontSize(c[W]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=D)c=c.slice(W,c.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>D)c=c.slice(0,W);else break}this.updateFontSize(c[c.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(D)}};
_.S.handleOverflow=function(D){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>D&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",D.toString()))};
_.S.updateFontSize=function(D){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+D;this.textNode.classList.add(this.fontClass)};
_.S.getMaxFont=function(){var D=this.useRoboto?zlx:jYk;D=D[D.length-1];return this.maxFontSize&&this.maxFontSize<=D?this.maxFontSize:D};
_.S.getMinFont=function(){var D=(this.useRoboto?zlx:jYk)[0];return this.minFontSize&&this.minFontSize>=D?this.minFontSize:D};
_.S.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.S.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.S.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Mh(this.text).split("\n").length-1:Infinity};
_.S.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
vY.prototype.guideIsExpandedChanged=vY.prototype.guideIsExpandedChanged;vY.prototype.dataChanged=vY.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],vY.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],vY.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],vY.prototype,"text",void 0);
_.V([_.n(),_.z("design:type",String)],vY.prototype,"fontFamily",void 0);_.V([_.n(),_.z("design:type",Number)],vY.prototype,"maxWidth",void 0);_.V([_.n(),_.z("design:type",Number)],vY.prototype,"maxHeight",void 0);_.V([_.n(),_.z("design:type",Number)],vY.prototype,"maxFontSize",void 0);_.V([_.n(),_.z("design:type",Number)],vY.prototype,"minFontSize",void 0);_.V([_.n(),_.z("design:type",Number)],vY.prototype,"maxLines",void 0);_.V([_.n(),_.z("design:type",Object)],vY.prototype,"hideOverflow",void 0);
_.V([_.n({selector:_.efW}),_.z("design:type",Boolean)],vY.prototype,"guideIsExpanded",void 0);_.V([_.kn("#container"),_.z("design:type",HTMLElement)],vY.prototype,"containerNode",void 0);_.V([_.kn("#text"),_.z("design:type",HTMLElement)],vY.prototype,"textNode",void 0);_.V([_.bH("text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vY.prototype,"dataChanged",null);
_.V([_.bH("guideIsExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vY.prototype,"guideIsExpandedChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],vY);
_.G(vY,"yt-dynamic-sizing-formatted-string",function(){if(JK5!==void 0)return JK5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JK5=D},{mode:1});var MK5;_.qQ5=function(D){_.Dn.call(this,D)};
_.h(_.qQ5,_.Dn);var f_b=function(D){_.Dn.call(this,D)};
_.h(f_b,_.qQ5);var iB=function(){return _.w.apply(this,arguments)||this};
_.h(iB,_.w);iB.prototype.onTapSuspendedChannel=function(){var D;if((D=this.data)!=null&&D.serviceEndpoint){var C,X;(D=(X=_.r((C=this.data)==null?void 0:C.serviceEndpoint,_.oX))==null?void 0:X.url)?_.nH(D,void 0,void 0,window.top):(C=new f_b("Did not handle suspended account tap. No appealUrl."),_.MN(C))}else C=new f_b("Did not handle suspended account tap. No serviceEndpoint."),_.MN(C)};
iB.prototype.onTap=function(){var D=this,C=_.iO(),X,c=(X=_.vc(C,{veType:7116}))!=null?X:void 0;_.V6(C,{visualElement:c});_.Nz();this.saveRoleText();var W;if((W=this.data)==null?0:W.youtubeSuspended)this.onTapSuspendedChannel();else{var p=!1,g,a;(C=(a=_.r((g=this.data)==null?void 0:g.serviceEndpoint,_.Hzc))==null?void 0:a.supportedTokens)&&C.forEach(function(O){if(O.accountSigninToken)if(p=!0,D.onAccountItemTap)D.onAccountItemTap(O.accountSigninToken.signinUrl);else _.nH(O.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!p){if(g=this.get("serviceEndpoint",this.data))p=!0,this.ytComponentBehavior.resolveCommand(g);p||_.qN(new f_b("Did not handle account switch tap. No token."))}}};
iB.prototype.saveRoleText=function(){if(this.data){var D=this.data,C=D.channelDelegationRole;if(C){var X,c=(X=_.r(D==null?void 0:D.serviceEndpoint,_.Hzc))==null?void 0:X.supportedTokens;if(!c){var W,p,g,a;c=(W=_.r(D==null?void 0:D.serviceEndpoint,_.fo))==null?void 0:(p=W.popup)==null?void 0:(g=p.confirmDialogRenderer)==null?void 0:(a=g.confirmButton)==null?void 0:a.buttonRenderer;var O;c=(O=_.r(c==null?void 0:c.command,_.pt))==null?void 0:O.commands;if(!c)return;var P;c=(P=_.r(c[1],_.Hzc))==null?
void 0:P.supportedTokens}if(c){O=void 0;P=_.U(c);for(c=P.next();!c.done;c=P.next())if(c=c.value,c.datasyncIdToken){O=c.datasyncIdToken.datasyncIdToken;break}if(O){var k;a:{if(_.H9m()&&(P=_.Jg(O+"::pom"))){P=new qk(P);break a}P=void 0}(k=P)==null||k.set("role_text",C);if((cDm?cDm:window.location).href.indexOf("studio")!==-1&&(k=Jen())){P=k.src?(new URL(k.src)).origin:"*";var u;(u=k.contentWindow)==null||u.postMessage({action:"save_pom_role",datasyncId:O,roleText:C},P)}}}}}};
_.$a.Object.defineProperties(iB.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.data)==null?void 0:(C=D.accountPhoto)==null?void 0:C.thumbnails;return X&&X.length>0&&(X[0].height===36||X[0].height===48)?X[0].height:40}}});
iB.prototype.onTap=iB.prototype.onTap;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],iB.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],iB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Function)],iB.prototype,"onAccountItemTap",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],iB.prototype,"enableRingForActiveAccount",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],iB.prototype,"thumbnailSize",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iB.prototype,"onTap",null);_.V([_.yj({is:"ytd-account-item-renderer",disableElementRegistration:!0})],iB);
_.G(iB,"ytd-account-item-renderer",function(){if(MK5!==void 0)return MK5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return MK5=D},{mode:1});var dp5;var kA=function(){return _.w.apply(this,arguments)||this};
_.h(kA,_.w);kA.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.iX().resolve(_.uX).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kA.prototype,"data",void 0);_.V([_.yj({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],kA);
_.G(kA,"ytd-identity-chip-renderer",function(){if(dp5!==void 0)return dp5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return dp5=D},{mode:1});var Rlc;var l_M;var DPk;var CAN;var uB=function(){var D=_.w.apply(this,arguments)||this;D.richItemMinWidth=_.BK("wn_grid_min_item_width",310);D.isShorts=!1;D.isWatchNext=!1;D.isExploreHub=!1;return D};
_.h(uB,_.w);_.$a.Object.defineProperties(uB.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var D=[],C=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Os(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var X;if(((X=this.data)==null?0:X.rows)&&C)for(C*=this.data.rows,X=0;X<C;X++)D.push({});return D}}});
_.V([_.m(_.OA),_.z("design:type",Object)],uB.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],uB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.eV,value:3}),_.z("design:type",Number)],uB.prototype,"itemsPerRow",void 0);_.V([_.n({selector:_.mLj,value:6}),_.z("design:type",Number)],uB.prototype,"slimItemsPerRow",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Number)],uB.prototype,"richItemMinWidth",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],uB.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uB.prototype,"isShorts",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uB.prototype,"isWatchNext",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uB.prototype,"isExploreHub",void 0);
_.V([_.e("isExploreHub"),_.n({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],uB.prototype,"shimmerAnimation",null);_.V([_.e("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.z("design:type",Array),_.z("design:paramtypes",[])],uB.prototype,"cardItems",null);_.V([_.yj({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],uB);
_.Xge=_.o3()(uB,"ytd-ghost-grid-renderer",function(){if(CAN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);CAN=D}D=CAN;return D},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.CI(_.F(function(D){var C=_.Ro(D,{numberOfComments:3}).numberOfComments,X=_.Ro(D,{isInitialLoad:!1}).isInitialLoad,c=_.Ro(D,{engagementPanel:!1}).engagementPanel,W=function(){return Math.min(Number(C==null?void 0:C())||20,20)};
return _.A("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.A(_.v,{cond:function(){return!(c==null?0:c())&&(X==null?void 0:X())},
then:function(){return _.A("div",{class:"ytGhostCommentsComments"},_.A("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.A("div",{class:_.g$("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.A("div",{class:_.g$("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.A("div",{class:"ytGhostCommentsGhostCard"},_.A("div",{class:"ytGhostCommentsAvatar"},_.A("div",{class:"ytGhostCommentsCircle"})),_.A("div",{class:"ytGhostCommentsComments"},_.A("div",{class:"ytGhostCommentsMeta"},
_.A("div",{class:_.g$("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.A("div",{class:_.g$("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.A("div",{class:"ytGhostCommentsComments"},_.A(_.Zh,{each:function(){return Array((W==null?void 0:W())||3)}},function(){return _.A("div",{class:"ytGhostCommentsGhostCard"},_.A("div",{class:"ytGhostCommentsAvatar"},_.A("div",{class:"ytGhostCommentsCircle"})),_.A("div",{class:"ytGhostCommentsHost"},_.A("div",{class:"ytGhostCommentsMeta"},
_.A("div",{class:_.g$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.A("div",{class:_.g$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.A("div",{class:_.g$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.A("div",{class:"ytGhostCommentsGhostLikeDislike"},_.A("div",{class:_.g$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.A("div",{class:_.g$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.Bm,
isInitialLoad:_.Bm,engagementPanel:_.Bm},unsafeExternallySettableAttributes:new Set(["hidden"])});_.sI("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Qf=function(){var D=_.w.apply(this,arguments)||this;D.isOverridable=!1;D.spinnerActive=!1;D.showButton=!1;D.isCommentsSection=!1;D.engagementPanel=!0;D.isShortsGrid=!1;D.isShortsPage=!1;D.isWatchPage=!1;D.originalShowButton=!1;D.endOfList=!1;return D};
_.h(Qf,_.w);_.S=Qf.prototype;_.S.resetIntersectionObserver=function(){var D;(D=this.observer)==null||D.disconnect();this.observer=void 0};
_.S.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var D,C;((D=this.data)==null?void 0:D.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((C=this.data)==null?0:C.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.S.initializeIntersectionObserver=function(){var D=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(C){C=_.U(C);for(var X=C.next();!X.done;X=C.next())X.value.isIntersecting&&(D.triggerContinuation(),D.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.S.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.S.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var D;((D=this.data)==null?0:D.continuationEndpoint)&&(D=_.r(this.data.continuationEndpoint,_.nI))&&this.ytdReduxBehavior.dispatch(_.oI({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:D}}))};
_.S.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.S.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.S.onServiceRequestCompleted=function(D,C){if(!_.b("kevlar_hide_spinner_on_empty_continuation_killswitch")){var X;(X=C.actions)!=null&&X.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.S.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.S.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.S.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.S.numberOfGhostCommentsChanged=function(){var D=3;if(this.engagementPanel){var C,X,c;D=Math.floor(((((C=this.hostElement)==null?void 0:(X=C.parentElement)==null?void 0:(c=X.parentElement)==null?void 0:c.scrollHeight)||108)-108)/108);D=this.isInitialLoad?Math.max(D,3):3}C=[].concat(_.VB(this.hostElement.querySelectorAll("yt-ghost-comments")));C=_.U(C);for(X=C.next();!X.done;X=C.next())X=X.value,X.numberOfComments=D,X.isInitialLoad=this.isInitialLoad,X.engagementPanel=this.engagementPanel};
_.S.detached=function(){this.resetIntersectionObserver()};
_.$a.Object.defineProperties(Qf.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Qf.prototype.numberOfGhostCommentsChanged=Qf.prototype.numberOfGhostCommentsChanged;Qf.prototype.continuationTriggerOffsetChanged=Qf.prototype.continuationTriggerOffsetChanged;Qf.prototype.showButtonChanged=Qf.prototype.showButtonChanged;Qf.prototype.onYtServiceRequestCompletedForButtonRenderer=Qf.prototype.onYtServiceRequestCompletedForButtonRenderer;Qf.prototype.onServiceRequestCompleted=Qf.prototype.onServiceRequestCompleted;Qf.prototype.onYtServiceRequestSentForButtonRenderer=Qf.prototype.onYtServiceRequestSentForButtonRenderer;
Qf.prototype.observeData=Qf.prototype.observeData;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.$Z.YtVisibilityBehavior),_.z("design:type",Object)],Qf.prototype,"ytVisibilityBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],Qf.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"isOverridable",void 0);_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"spinnerActive",void 0);_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"showButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Qf.prototype,"isCommentsSection",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Qf.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"isShortsGrid",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.NpF}),_.z("design:type",Object)],Qf.prototype,"isShortsPage",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.tOo}),_.z("design:type",Object)],Qf.prototype,"isWatchPage",void 0);_.V([_.n(),_.z("design:type",Number)],Qf.prototype,"continuationTriggerOffset",void 0);
_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"endOfList",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Qf.prototype,"isInitialLoad",void 0);_.V([_.kn("ytd-button-renderer"),_.z("design:type",_.t$)],Qf.prototype,"buttonRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],Qf.prototype,"buttonOverrides",void 0);
_.V([_.n(),_.e("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qf.prototype,"showGhostCardComments",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qf.prototype,"observeData",null);
_.V([_.$n("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qf.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],Qf.prototype,"onServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-completed-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qf.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.V([_.bH("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qf.prototype,"showButtonChanged",null);
_.V([_.bH("continuationTriggerOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qf.prototype,"continuationTriggerOffsetChanged",null);_.V([_.vr("isInitialLoad","engagementPanel"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qf.prototype,"numberOfGhostCommentsChanged",null);_.V([_.yj({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Qf);
_.G(Qf,"ytd-continuation-item-renderer",function(){if(DPk!==void 0)return DPk;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return DPk=D},{mode:1});var cMk;var BY=function(){var D=_.w.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;D.downloadedVideoPlaybackPosition=0;return D};
_.h(BY,_.w);BY.prototype.dataChanged=function(){var D;this.videoData=_.r((D=this.data)==null?void 0:D.renderer,Byc);this.transferStateChanged()};
BY.prototype.downloadProgressChanged=function(){if(this.entityInfo){var D=Object.assign({},this.videoData),C=Nyn(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),X=C.publishedTimeText,c=C.badges;D.shortViewCountText=C.shortViewCountText;D.publishedTimeText=X;D.badges=c;this.set("videoData",D)}};
BY.prototype.transferStateChanged=function(){if(this.entityInfo){var D=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",C=_.u8(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kP(this.entityInfo.policyEntity),X=Object.assign({},this.videoData),c=Nyn(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),W=c.publishedTimeText,p=c.badges;X.shortViewCountText=
c.shortViewCountText;X.publishedTimeText=W;X.badges=p;X.isDisabled=C;X.isWatched=this.downloadedVideoPlaybackPosition>0;X.navigationEndpoint=C?void 0:YqF(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var g;D&&((g=this.videoData)==null?0:g.videoId)&&!_.b("dl_resume_click_killswitch")&&(X.isDisabled=!1,X.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});X.thumbnailOverlays=Eio(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",X)}};
BY.prototype.transferStateChanged=BY.prototype.transferStateChanged;BY.prototype.downloadProgressChanged=BY.prototype.downloadProgressChanged;BY.prototype.dataChanged=BY.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],BY.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],BY.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],BY.prototype,"videoData",void 0);_.V([_.n({selector:wJ,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"downloadProgress",void 0);_.V([_.n(),_.z("design:type",Number)],BY.prototype,"relativeDateReference",void 0);_.V([_.n({selector:_.YP,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"transferState",void 0);
_.V([_.n({selector:DM5,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"downloadState",void 0);_.V([_.n({selector:FVZ,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"offlinePolicyAction",void 0);_.V([_.n({selector:Z4t,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.V([_.n({selector:F$,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"downloadedVideoPlaybackPosition",void 0);_.V([_.n({selector:VO5,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],BY.prototype,"entityInfo",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],BY.prototype,"isDownloading",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BY.prototype,"dataChanged",null);
_.V([_.bH("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BY.prototype,"downloadProgressChanged",null);_.V([_.bH("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BY.prototype,"transferStateChanged",null);
_.V([_.yj({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],BY);
_.G(BY,"ytd-downloaded-video-grid-video-renderer",function(){if(cMk!==void 0)return cMk;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return cMk=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var oKf;var bB=function(){};
bB.prototype.resolve=function(D,C){var X=this;return _.I(function(c){return c.yield(X.resolveCommand(D,C),0)})};var Woe,rQ;Woe=QTd(function(D){return D.targetId},{shouldPersist:!1});
rQ=Woe.updateData;_.pgq=Woe.useUpdatableData;var SEd,UPM;SEd=QTd(function(D){return D.targetId});
UPM=SEd.updateData;_.gK5=SEd.useUpdatableData;var a9x=rLm.bind(null,rQ),I9g=rLm.bind(null,UPM);(function(D,C,X){var c=_.r(X==null?void 0:X.updatedRenderer,_.dLc);return c?D({targetId:C},function(){return c}):!1}).bind(null,rQ);var K3=function(){};
_.h(K3,bB);K3.prototype.resolveCommand=function(D){var C;return _.I(function(X){C=_.r(D,_.EIm);if(!C)return X.return();a9x(C.targetId,C);_.t_(X)})};var hD=function(){var D=_.Qj.apply(this,arguments)||this;D.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return D};
_.h(hD,_.Qj);_.S=hD.prototype;_.S.configureContinuationPathMap=function(){return{}};
_.S.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.S.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.S.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.S.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.S.handleAppendContinuationItemsAction=function(D){var C=_.r(D,_.TWg);if(this.data&&this.data.targetId&&C&&this.continuationPathMap&&C.targetId===this.data.targetId){var X=UH3(D),c=X&&this.continuationPathMap[X];if(c&&X)if(D=this.get(c,this.data)){a:{for(X=0;X<D.length;X++){var W=D[X],p=void 0,g=!!_.r((p=_.r(W,mDe))==null?void 0:p.content,_.izJ);if(_.r(W,_.dE)||g)break a}X=D.length}c="data."+c;C.continuationItems?X===D.length-1?(this.pop(c),this.push.apply(this,[c].concat(_.VB(C.continuationItems)))):
X===D.length?this.push.apply(this,[c].concat(_.VB(C.continuationItems))):this.splice.apply(this,[c,X,1].concat(_.VB(C.continuationItems))):this.splice(c,X,1);(_.b("web_enable_voting_animation")||_.b("enable_music_web_cairo_voting_animation"))&&_.lE(this.hostElement,"yt-append-continuation-items-action-finished");_.lE(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.fQ(new _.Zf("append continuation items does not exist",X));else _.fQ(new _.Zf("append continuation path does not exist",
X))}};
_.S.handleReloadContinuationItemsCommand=function(D){var C=_.r(D,_.EIm);if(this.data&&C){if(_.b("web_client_explore_hub")||_.b("web_explore_hub_on_hover")||_.b("web_client_explore_hub_on_hover")||!_.b("web_reload_continuation_items_command_resolver_killswitch"))try{_.iX().resolve(K3).resolveCommand(D)}catch(p){}if(this.data.targetId&&this.continuationPathMap&&C.targetId===this.data.targetId&&(!_.b("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||C.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var X,
c=(X=C.slot)==null?void 0:X.replace("RELOAD_CONTINUATION_SLOT_","");X=(D=UH3(D)+"-"+(c==null?void 0:c.toLowerCase()))&&this.continuationPathMap[D];if(!X||!D||!c)_.fQ(new _.Zf("reload continuation path does not exist",D));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(C)){if(C.replaceWithFirstItem){var W;this.set("data."+X,((W=C.continuationItems)==null?0:W.length)?C.continuationItems[0]:{})}else this.set("data."+X,C.continuationItems?C.continuationItems:
[]);this.continuationIsReloading=!1;_.lE(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.S.handleShowReloadUiCommand=function(D){D=_.r(D,oY4);var C;((C=this.data)==null?0:C.targetId)&&(D==null?0:D.targetId)&&D.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
hD.prototype.observeData=hD.prototype.observeData;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],hD.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],hD.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hD.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],hD.prototype,"continuationIsReloading",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hD.prototype,"observeData",null);_.V([_.Br()],hD);_.xA=[_.O7.YtComponentBehavior,_.Jy.YtActionHandlerBehavior,hD.prototype];_.L3={};_.L3.YtNextContinuationBehavior=[_.xZ.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",_.Pr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Pr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(D,C){D.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,C,{}):(D={locationRetrieved:function(X){this.makeNextContinuationRequest_(X,C,{})}.bind(this)},_.lE(this.hostElement,"yt-retrieve-location",D))},
makeNextContinuationRequest_:function(D,C,X){_.mU("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();D=C(D);var c;this.canUseContextualNetworkManager_()&&(c=this.getNetworkManager());c||(c=_.iX().resolve(_.Qt));C=_.Tr.instance;if(_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&C){c=_.dJ([D.startsWith("/")?D.substr(1):D]);var W,p;X=_.vV(C,{},c,X==null?void 0:(W=X.context)==null?void 0:(p=W.clickTracking)==null?void 0:p.clickTrackingParams).then(function(g){return{response:g}})}else X=
this.nextContinuation.usePost?c.postData(D,X):c.fetchData(D);
X.then(this.updateNextContinuationData_.bind(this,D));this.pendingContinuationRequest_=X;this.startListeningForNavigate_()},
updateNextContinuationData_:function(D,C){var X=this;_.mU("ncl");this.pendingContinuationRequest_=void 0;if(C){var c={};this.nextContinuation&&(c=this.nextContinuation);if(C.response&&C.response.continuationContents&&C.response.continuationContents[c.continuationType]){D=C.response.continuationContents[c.continuationType];var W=c.header||"data.header",p=D[c.responseHeaderKey||"header"];p&&this.set(W,p);W=c.contentsArray||"data.contents";p=this.getContents_(D,c.responseContentsKey||"contents")||[];
this.pathExists_(W)?(p.unshift(W),this.push.apply(this,p)):this.set(W,p);p&&(K6d(_.iO(),C.response,this.hostElement,function(g){_.DS(X.hostElement,"yt-store-grafted-ve-action",[g])}),_.lE(this.hostElement,"yt-next-continuation-data-updated",{continuationData:C,
page:this,contentsArray:W}));this.set(c.continuationsArray||"data.continuations",D[c.responseContinuationsKey||"continuations"]||[])}else C.reload?_.fQ(new _.Zf("Reloading from continuation is unsupported")):C.responseContext&&C.responseContext.errors||(delete C.xsrf_token,delete C.timing,delete C.endpoint,delete C.csn,C.responseContext&&delete C.responseContext.serviceTrackingParams,W={request:_.gT(D,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(C).sort()},C.response&&(W.responseContentKeys=
Object.keys(C.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(W.continuationType=this.nextContinuation.continuationType.substr(0,256)),C=new _.Zf("Malformed continuation",W),D.indexOf("/comment_service_ajax")==0?_.fQ(C):_.MN(C)),this.set(c.continuationsArray||"data.continuations",[])}else _.qN(new _.Zf("Missing continuation response",D))},
getContents_:function(D,C){C=C.split(".");return _.ZI.getValueByKeys(D,C)},
pathExists_:function(D){var C=this;D=D.toString().split(".");for(var X=0;X<D.length;X++)if(C=C[D[X]],C===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var OJg;var AMb;var sk=function(){var D=_.w.apply(this,arguments)||this;D.triggered_=!1;return D};
_.h(sk,_.w);_.S=sk.prototype;_.S.attached=function(){this.maybeTriggerAutoload()};
_.S.detached=function(){this.hasBeenTriggered_=!1};
_.S.onPrescanVisible=function(){this.onShow()};
_.S.onShow=function(){this.showButton||this.trigger()};
_.S.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.lE(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.S.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.S.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.S.computeLabel_=function(D,C){return D===void 0?null:D.label||!C?D.label:this.showMoreText_};
_.S.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.S.getContinuationUrl=function(D){var C={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(C.itct=this.data.clickTrackingParams);return _.aQ(D,C)};
_.S.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
sk.prototype.showButtonChanged_=sk.prototype.showButtonChanged_;sk.prototype.observeData_=sk.prototype.observeData_;_.V([_.m(_.$Z.YtVisibilityBehavior),_.z("design:type",Object)],sk.prototype,"ytVisibilityBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sk.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],sk.prototype,"showButton",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],sk.prototype,"showIcon",void 0);_.V([_.n({computed:"computeLabel_(data, showButton)"}),_.z("design:type",Object)],sk.prototype,"label",void 0);_.V([_.n({value:_.jV(_.I7("SHOW_MORE",void 0,"Show More"))}),_.z("design:type",Object)],sk.prototype,"showMoreText_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],sk.prototype,"spinnerActive_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],sk.prototype,"hasBeenTriggered_",void 0);
_.V([_.n({value:void 0}),_.z("design:type",String)],sk.prototype,"observeVisibleOption",void 0);_.V([_.n({value:void 0}),_.z("design:type",String)],sk.prototype,"observeHiddenOption",void 0);_.V([_.n({value:"observe_once"}),_.z("design:type",Object)],sk.prototype,"observePrescanOption",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sk.prototype,"observeData_",null);
_.V([_.vr("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sk.prototype,"showButtonChanged_",null);_.V([_.Yn({is:"yt-next-continuation",disableElementRegistration:!0})],sk);
_.G(sk,"yt-next-continuation",function(){if(AMb===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;OJg===void 0&&(OJg=document.createElement("template"));var c=OJg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);AMb=D}D=AMb;return D},{mode:2});var PA4;var $Px;var m1=function(){return _.w.apply(this,arguments)||this};
_.h(m1,_.w);m1.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],m1.prototype,"data",void 0);_.V([_.Yn({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],m1);
_.G(m1,"yt-music-pass-small-feature-info-renderer",function(){if($Px===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;PA4===void 0&&(PA4=document.createElement("template"));var c=PA4;X.call(C,c.content.cloneNode(!0),D.content.firstChild);$Px=D}D=$Px;return D},{mode:2});_.sI("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var ed=function(){var D=_.w.apply(this,arguments)||this;D.isCollapsible=!1;D.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return D};
_.h(ed,_.w);_.S=ed.prototype;_.S.computeIsCollapsible=function(D){return!!(((D==null?0:D.showMoreText)||(D==null?0:D.visibleRowCount))&&(D==null?0:D.isCollapsible))};
_.S.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"}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.S.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.S.onIronResize=function(){var D=this;_.Hr(this,"updateGridInitItems",function(){D.maybeUpdateInitialItemsDisplayed()})};
_.S.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var D=this.getVisibleWidth();D!==0&&(D=Math.floor(D/214)*(this.data.visibleRowCount||2),D!==this.initialCount&&(this.initialCount=D,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.S.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.S.computeExpandVisible=function(D,C,X,c){return D&&C&&X&&!!c&&!!c.showMoreText};
_.S.computeShowMoreButton=function(D){return{text:D,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.S.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.S.initCollapsed=function(){var D=this;this.ytLazyListBehavior.canShowMore=!1;var C;(this.collapsed=!((C=this.data)==null||!C.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.A0(this,function(){_.Ct(D.hostElement,"yt-refit-popups-action")})};
_.S.fillRestIfNotCollapsible=function(){var D=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!D||this.ytLazyListBehavior.fillRemainingListItems()};
_.S.computeViewAllHidden=function(D,C){return D||!C.viewAllEndpoint};
ed.prototype.fillRestIfNotCollapsible=ed.prototype.fillRestIfNotCollapsible;ed.prototype.initCollapsed=ed.prototype.initCollapsed;ed.prototype.onIronResize=ed.prototype.onIronResize;ed.prototype.persistentGuideChanged=ed.prototype.persistentGuideChanged;_.V([_.m(_.lR),_.z("design:type",Object)],ed.prototype,"ironResizableBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],ed.prototype,"ytLazyListBehavior",void 0);_.V([_.m(_.L3.YtNextContinuationBehavior),_.z("design:type",Object)],ed.prototype,"ytNextContinuationBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],ed.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.m(_.xA),_.z("design:type",Object)],ed.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ed.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],ed.prototype,"collapsed",void 0);_.V([_.n(),_.z("design:type",Number)],ed.prototype,"initialCount",void 0);_.V([_.n({computed:"computeShowMoreButton(data.showMoreText)"}),_.z("design:type",Object)],ed.prototype,"showMoreButton",void 0);
_.V([_.n({computed:"computeIsCollapsible(data)"}),_.z("design:type",Object)],ed.prototype,"isCollapsible",void 0);_.V([_.kn("#items"),_.z("design:type",HTMLElement)],ed.prototype,"items",void 0);_.V([_.bH("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ed.prototype,"persistentGuideChanged",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ed.prototype,"onIronResize",null);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ed.prototype,"initCollapsed",null);_.V([_.bH("canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ed.prototype,"fillRestIfNotCollapsible",null);_.V([_.yj({is:"ytd-grid-renderer",disableElementRegistration:!0})],ed);
_.G(ed,"ytd-grid-renderer",function(){if(oKf!==void 0)return oKf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return oKf=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var Ek=function(){return _.w.apply(this,arguments)||this};
_.h(Ek,_.w);
Ek.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ek.prototype,"data",void 0);_.V([_.yj({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Ek);
_.G(Ek,"ytd-carousel-ad-renderer",function(){if(l_M!==void 0)return l_M;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return l_M=D},{mode:1});var vKN;var tD=function(){return _.w.apply(this,arguments)||this};
_.h(tD,_.w);_.S=tD.prototype;_.S.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"}}}};
_.S.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,tD.JSC$15672_CLICK_LOCATION_ID_MAP))};
_.S.onSitelinkTap=function(D){D.stopPropagation();var C,X,c=D==null?void 0:(C=D.model)==null?void 0:(X=C.item)==null?void 0:X.onTap;c&&this.ytSparklesClickLocationBehavior.handleClick(c,D,!1)};
_.S.onTap=function(D){var C=this.data&&this.data.content&&this.data.content.navigationEndpoint;C&&this.ytSparklesClickLocationBehavior.handleClick(C,D,!1)};
_.S.sendImpression=function(){if(this.data&&this.data.content)for(var D=_.U(this.data.content.impressionEndpoints||[]),C=D.next();!C.done;C=D.next()){C=_.U(C.value.loggingUrls||[]);for(var X=C.next();!X.done;X=C.next())X=X.value,X.baseUrl&&pQ(X.baseUrl,X.attributionSrcMode)}};
tD.prototype.onTap=tD.prototype.onTap;tD.prototype.dataChanged=tD.prototype.dataChanged;tD.JSC$15672_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],tD.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],tD.prototype,"data",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tD.prototype,"dataChanged",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],tD.prototype,"onTap",null);_.V([_.yj({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],tD);
_.G(tD,"ytd-promoted-sparkles-text-search-renderer",function(){if(vKN!==void 0)return vKN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return vKN=D},{mode:1});var iJq;var N0=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.h(N0,_.w);_.S=N0.prototype;_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.configureRendererStamper=function(){return{"data.menu":{id:_.b("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]]"}}}}}};
_.S.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.S.computeHasAdBadge=function(D){return!(D==null||!D.adBadge)};
_.S.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",N0.JSC$15681_DEFAULT_AD_BADGE_RENDERER),_.gi(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&Fu(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,N0.JSC$15681_CLICK_LOCATION_ID_MAP))};
_.S.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var D;(((D=this.data)==null?void 0:D.impressionCommands)||[]).forEach(function(C){C=_.U(C.loggingUrls||[]);for(var X=C.next();!X.done;X=C.next())X=X.value,X.baseUrl&&pQ(X.baseUrl,X.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.S.onTap=function(D){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint,c;(C=(c=this.data)==null?void 0:c.thumbnailNavigationEndpoint)&&_.R_(_.Mz(D),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(C,D,!1):X&&this.ytSparklesClickLocationBehavior.handleClick(X,D,!1)};
_.S.handleMuteAd=function(){this.collapsed=!0};
_.S.attached=function(){var D=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZQ(D.activeView)})};
_.S.detached=function(){_.b("stop_av_measurement_on_detach")&&ZQ(this.activeView)};
_.$a.Object.defineProperties(N0.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
N0.prototype.dataChanged=N0.prototype.dataChanged;
N0.JSC$15681_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"]]);
N0.JSC$15681_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.I7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],N0.prototype,"actionHandlerBehavior",void 0);
_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],N0.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],N0.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],N0.prototype,"collapsed",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],N0.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],N0.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.z("design:type",Boolean)],N0.prototype,"fixAlignmentSmallScreens",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs_square")}}),
_.z("design:type",Boolean)],N0.prototype,"useBiggerThumbsSquare",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.mediaHoverOverlay"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"hideHoverOverlay",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"webSearchLayout",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"webSearchLayoutLandscape",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"webSearchLayoutSquare",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"sparklesCtaNoBackground",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.actionButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"hideActionButton",null);_.V([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.z("design:type",Object)],N0.prototype,"buttonOverride",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.z("design:type",Boolean)],N0.prototype,"hasNewAdBadge",void 0);_.V([_.e("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],N0.prototype,"useRoundedBadge",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N0.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],N0);
_.G(N0,"ytd-promoted-sparkles-web-renderer",function(){if(iJq!==void 0)return iJq;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return iJq=D},{mode:1});var kwd;var YA=function(){var D=_.w.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.enableMonoStyle=_.b("enable_default_mono_cta_migration_web_client");return D};
_.h(YA,_.w);_.S=YA.prototype;_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.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]]"}}}}}};
_.S.computeShowCta=function(D){return!(D==null||!D.ctaRenderer)};
_.S.onCtaClick=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.ctaRenderer)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.command;c&&this.ytComponentBehavior.resolveCommand(c)};
_.S.onWatchButtonClick=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.watchButtonRenderer)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.command;c&&this.ytComponentBehavior.resolveCommand(c)};
_.S.onTap=function(){};
_.S.dataChanged=function(){if(this.data){var D;_.b("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",YA.JSC$15685_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&Fu(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",YA.JSC$15685_DEFAULT_CLICK_LOCATION_BEHAVIOR,YA.JSC$15685_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var C;if(((C=this.data)==null?0:C.forceImpAutoplay)&&_.b("enable_force_imp_autoplay_on_desktop_search")){var X;(X=this.JSC$15686_inlinePreviewHoverListener)==null||AO3(X)}}};
_.S.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var D=_.U(this.data.impressionUrls),C=D.next();!C.done;C=D.next())C=C.value,joW(C,qsZ(C));this.data.impressionsFired=!0}};
_.S.maybeComputeHref=function(){return null};
_.S.computeIsShortDR=function(D){return!(D==null||!D.watchButtonRenderer)&&!(D==null||!D.ctaRenderer)&&!!this.enableShortDR};
_.S.computeIsNewUiOrShortDr=function(D){return!!this.enableUiUpdate||this.computeIsShortDR(D)};
_.S.computeIsNewUiAndNotShortDr=function(D){return!!this.enableUiUpdate&&!this.computeIsShortDR(D)};
_.S.computeHideAvatar=function(D){return!((D==null?0:D.channelThumbnail)&&this.computeIsNewUiOrShortDr(D))};
_.S.onClick=function(D){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint;if(this.enableShortDR&&X&&(_.r(X,_.TC)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(X,D,!!_.r(X,_.TC)),D.stopPropagation();else if(X&&_.r(X,_.TC))this.ytSparklesClickLocationBehavior.handleClick(X,D,!0),D.stopPropagation();else if(X){var c,W;((c=this.data)==null?0:c.navigationEndpoint)&&((W=this.data)==null?0:W.adPlaybackContextParams)&&(C=this.data.navigationEndpoint,D=this.data.adPlaybackContextParams,
C.commandMetadata&&_.r(C.commandMetadata,_.ge)&&_.r(C.commandMetadata,_.ge).url&&(C=_.UY(_.r(C.commandMetadata,_.ge).url).adurl)&&_.fuj(C)&&_.jc(_.wl(C),{encoded_ad_playback_context:D}));this.ytComponentBehavior.resolveCommand(X)}};
_.S.computeButtonOverride=function(D){if(this.computeIsNewUiOrShortDr(D))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.S.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.S.onThumbnailContainerClick=function(D){this.onClick(D)};
_.S.computeThumbnailWidth=function(D,C){return D?C==="MASSIVE"?600:C==="BIG"?500:C==="MEDIUM"?450:420:360};
_.S.attached=function(){var D=this,C;_.b("enable_inline_muted_playback_on_web_search")&&((C=this.data)==null?0:C.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZQ(D.activeView)})};
_.S.detached=function(){var D;_.b("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&ZQ(this.activeView)};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15686_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:el5})};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15686_inlinePreviewHoverListener)==null||fm(D)};
YA.prototype.dataChanged=YA.prototype.dataChanged;YA.prototype.onTap=YA.prototype.onTap;YA.JSC$15685_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.I7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};YA.JSC$15685_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
YA.JSC$15685_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],YA.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],YA.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.kn("#main-container"),_.z("design:type",HTMLElement)],YA.prototype,"mainContainer",void 0);
_.V([_.n(),_.z("design:type",Object)],YA.prototype,"isInlinePreviewTriggered",void 0);_.V([_.n(),_.z("design:type",Object)],YA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],YA.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_video_display_compact_button_group_for_desktop_search")}}),
_.z("design:type",Boolean)],YA.prototype,"enableShortDR",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_vac_ui_update_for_desktop_search")}}),
_.z("design:type",Boolean)],YA.prototype,"enableUiUpdate",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],YA.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.z("design:type",Boolean)],YA.prototype,"showCta",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.z("design:type",Boolean)],YA.prototype,"isShortDr",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.z("design:type",Boolean)],YA.prototype,"isShortDrOrNewUi",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.z("design:type",Boolean)],YA.prototype,"isNewUiAndNotShortDr",void 0);_.V([_.n({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],YA.prototype,"buttonOverride",void 0);_.V([_.n({computed:"computeSecondaryButtonOverride(data)"}),_.z("design:type",Object)],YA.prototype,"secondaryButtonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],YA.prototype,"enableMonoStyle",void 0);
_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],YA.prototype,"thumbnail",void 0);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YA.prototype,"onTap",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YA.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],YA);
_.G(YA,"ytd-promoted-video-renderer",function(){if(kwd!==void 0)return kwd;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return kwd=D},{mode:1});var u6J;var yf=function(){var D=_.w.apply(this,arguments)||this;D.useRoundedBadge=!0;D.sitelinkIds=[];return D};
_.h(yf,_.w);_.S=yf.prototype;
_.S.configureRendererStamper=function(){return{"data.menu":{id:_.b("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]]"}}}}}};
_.S.dataChanged=function(){var D;(D=this.data)!=null&&D.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,yf.JSC$15691_CLICK_LOCATION_ID_MAP)};
_.S.onTap=function(D){var C,X=(C=this.data)==null?void 0:C.navigationCommand;X&&!_.R_(_.Mz(D),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(X,D,!1)};
_.S.onSitelinkTap=function(D){var C,X,c=D==null?void 0:(C=D.model)==null?void 0:(X=C.item)==null?void 0:X.onTap;c&&this.ytSparklesClickLocationBehavior.handleClick(c,D,!1)};
_.S.configureSitelinkClickTargets=function(){var D=this,C,X,c=(C=this.data)==null?void 0:(X=C.clickLocationTargets)==null?void 0:X.find(function(W){return W.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
c&&_.SY(this.hostElement).querySelectorAll(".sitelink").forEach(function(W){_.gi(W,"yt-simple-endpoint",!0);D.sitelinkIds.push(W.id);var p,g;(p=D.ytSparklesClickLocationBehavior)==null||(g=p.clickTargetMap)==null||g.set(W.id,c)})};
_.S.sendImpression=function(){var D,C,X=((D=this.data)==null?void 0:(C=D.impressionCommand)==null?void 0:C.loggingUrls)||[];D=_.U(X);for(C=D.next();!C.done;C=D.next())C=C.value,C.baseUrl&&pQ(C.baseUrl,C.attributionSrcMode)};
_.S.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.$a.Object.defineProperties(yf.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
yf.prototype.onTap=yf.prototype.onTap;yf.prototype.dataChanged=yf.prototype.dataChanged;yf.JSC$15691_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],yf.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yf.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yf.prototype,"showFavicon",null);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],yf.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],yf.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.z("design:type",Boolean)],yf.prototype,"enableThumbnailScalingFix",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yf.prototype,"dataChanged",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yf.prototype,"onTap",null);_.V([_.yj({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],yf);
_.G(yf,"ytd-text-image-no-button-layout-renderer",function(){if(u6J!==void 0)return u6J;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return u6J=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var Q5x;var n3=function(){var D=_.w.apply(this,arguments)||this;D.isInlinePlaybackState=!1;D.uiUpdate=_.b("web_modern_buttons");D.hideCta=_.b("hide_cta_for_home_web_video_ads");D.noBottomMargin=!1;D.animateInTimeStamp=_.BK("hide_cta_for_home_web_video_ads_animate_in_time");D.animateInCta=!1;D.isHovered=!1;D.enableMonoStyle=_.b("enable_default_mono_cta_migration_web_client");D.player=null;D.JSC$15698_playerEvents=new Map;D.JSC$15698_preventProgressSaveTimer=null;D.delayedCtaJobId=null;return D};
_.h(n3,_.w);_.S=n3.prototype;_.S.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]]"}}}}}};
_.S.attached=function(){this.JSC$15698_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15698_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.b("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.S.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15698_playerEvents)};
_.S.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",n3.JSC$15697_DEFAULT_CLICK_LOCATION_BEHAVIOR,n3.JSC$15697_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.S.hoverChanged=function(){var D=this;this.delayedCtaJobId&&(_.qX.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.b("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.hG(_.qX,function(){D.buttonContainer.classList.add("show-delayed-buttons")},_.BK("delayed_cta_on_web_delay_milliseconds")))};
_.S.setPlayer=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return(C=_.Ct(D.hostElement,"yt-get-inline-preview-player-action"))&&C[0]?X.yield(C[0].getPlayerPromise(),3):X.jumpTo(0);D.player=X.yieldResult;D.ytPlayerListenerBehavior.listenToPlayerEvents(D.player,D.JSC$15698_playerEvents);_.t_(X)})};
_.S.onPlaybackStart=function(){var D=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15698_preventProgressSaveTimer=_.pI(_.qX,function(){D.JSC$15698_preventProgressSaveTimer=null},1E4))};
_.S.onVideoProgress=function(D){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&D>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.S.resetPreventProgressSaveTimer=function(){_.qX.cancelJob(this.JSC$15698_preventProgressSaveTimer);this.JSC$15698_preventProgressSaveTimer=null};
_.S.getSimpleString=function(D){return _.Mh(D)};
_.S.onClick=function(D){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint,c;C=(c=this.data)==null?void 0:c.channelEndpoint;var W,p;((p=_.r((W=this.data)==null?void 0:W.adCtaButton,_.AF))==null?0:p.command)&&_.R_(_.Mz(D),this.hostElement,["call-to-action"])||(C&&_.R_(_.Mz(D),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(C,D,!1):!_.R_(_.Mz(D),this.hostElement,
["secondary-button"])&&X&&(_.b("enable_short_dr_for_desktop_launchable")?(c=!!_.r(X,_.TC),this.isInlinePlaybackState&&c&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(X,D,c)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(X,D,!0))))}};
_.S.updateWatchEndpointStartTime=function(){var D,C;this.player&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&((C=this.data)==null?0:C.navigationEndpoint)&&!this.JSC$15698_preventProgressSaveTimer&&(D=Math.floor(this.player.getCurrentTime()),_.r(this.data.navigationEndpoint,_.TC).startTimeSeconds=D,_.r(this.data.inlinePlaybackEndpoint,_.TC).startTimeSeconds=D)};
_.S.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.S.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.$a.Object.defineProperties(n3.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.b("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.watchButton)&&!((C=this.data)==null||!C.adCtaButton)}}});
n3.prototype.hoverChanged=n3.prototype.hoverChanged;n3.prototype.dataChanged=n3.prototype.dataChanged;
n3.JSC$15697_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"]]);
n3.JSC$15697_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],n3.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],n3.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],n3.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],n3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"isInlinePlaybackState",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],n3.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"uiUpdate",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"hideCta",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"noBottomMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"animateInCta",void 0);_.V([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.z("design:type",Object)],n3.prototype,"buttonOverride",void 0);
_.V([_.n({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.z("design:type",Object)],n3.prototype,"secondaryButtonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"isHovered",void 0);_.V([_.kn("#button-container"),_.z("design:type",HTMLElement)],n3.prototype,"buttonContainer",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],n3.prototype,"typographyBump",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("typographyBump"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],n3.prototype,"typographyBumpV2",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"enableMonoStyle",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],n3.prototype,"dataChanged",null);
_.V([_.vr("isHovered"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],n3.prototype,"hoverChanged",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],n3.prototype,"isButtonGroup",null);_.V([_.yj({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],n3);
_.G(n3,"ytd-ad-inline-playback-meta-block",function(){if(Q5x!==void 0)return Q5x;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Q5x=D},{mode:_.Wc("kevlar_poly_si_batch_j065")?1:2});var B6e;var wQ=function(){var D=_.w.apply(this,arguments)||this;D.noBottomMargin=!1;D.isInlinePreviewTriggered=!1;D.JSC$15703_activeViewMeasurementDataResolver=_.zr();return D};
_.h(wQ,_.w);_.S=wQ.prototype;_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15703_activeViewMeasurementDataResolver.promise.then(function(C){Fu(D.activeView,C)});
_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZQ(D.activeView)})};
_.S.detached=function(){this.clearInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&ZQ(this.activeView)};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15703_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.JSC$15703_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:el5})};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15703_inlinePreviewHoverListener)==null||fm(D)};
_.S.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15703_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",wQ.JSC$15702_DEFAULT_CLICK_LOCATION_BEHAVIOR,wQ.JSC$15702_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var C;if((C=this.data)==
null?0:C.forceImpAutoplay){var X;(X=this.JSC$15703_inlinePreviewHoverListener)==null||AO3(X)}};
_.S.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.S.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(X,D,!!_.r(X,_.TC));D.stopPropagation()}};
_.S.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.S.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var C,X,c=(X=_.r((C=this.data)==null?void 0:C.onImpression,_.pt))==null?void 0:X.commands;c&&(c.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;D.ytComponentBehavior.resolveCommand(W)}),this.data.impressionsFired=!0)}};
_.$a.Object.defineProperties(wQ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15703_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wQ.prototype.onTypographyBumpChanged=wQ.prototype.onTypographyBumpChanged;wQ.prototype.onDataChanged=wQ.prototype.onDataChanged;wQ.JSC$15702_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);wQ.JSC$15702_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],wQ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],wQ.prototype,"ytdLockupBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],wQ.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],wQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wQ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],wQ.prototype,"noBottomMargin",void 0);_.V([_.n(),_.z("design:type",Object)],wQ.prototype,"isInlinePreviewTriggered",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],wQ.prototype,"miniMode",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],wQ.prototype,"typographyBump",void 0);_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],wQ.prototype,"thumbnail",void 0);_.V([_.kn("#dismissible"),_.z("design:type",HTMLElement)],wQ.prototype,"JSC$15703_dismissibleMedia",void 0);
_.V([_.kn("ytd-ad-inline-playback-meta-block"),_.z("design:type",HTMLElement)],wQ.prototype,"adInlinePlaybackMetaBlock",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wQ.prototype,"onDataChanged",null);_.V([_.bH("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wQ.prototype,"onTypographyBumpChanged",null);
_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wQ.prototype,"isHovered",null);_.V([_.yj({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],wQ);
_.G(wQ,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(B6e!==void 0)return B6e;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return B6e=D},{mode:1});var bJ5;var FH=function(){var D=_.w.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.JSC$15706_activeViewMeasurementDataResolver=_.zr();return D};
_.h(FH,_.w);_.S=FH.prototype;_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15706_activeViewMeasurementDataResolver.promise.then(function(C){Fu(D.activeView,C)})};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15706_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.JSC$15706_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:el5})};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15706_inlinePreviewHoverListener)==null||fm(D)};
_.S.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15706_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",FH.JSC$15705_DEFAULT_CLICK_LOCATION_BEHAVIOR,FH.JSC$15705_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"))};
_.S.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(X,D,!0);D.stopPropagation()}};
_.S.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.S.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var C,X,c=(X=_.r((C=this.data)==null?void 0:C.onImpression,_.pt))==null?void 0:X.commands;c&&(c.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.iX().resolve(_.uX).resolveCommand(W,{form:{element:D.hostElement}})}),this.data.impressionsFired=!0)}};
_.$a.Object.defineProperties(FH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15706_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
FH.prototype.onDataChanged=FH.prototype.onDataChanged;FH.JSC$15705_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);FH.JSC$15705_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],FH.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],FH.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],FH.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],FH.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],FH.prototype,"isInlinePreviewTriggered",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],FH.prototype,"miniMode",void 0);_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],FH.prototype,"thumbnail",void 0);_.V([_.kn("#dismissible"),_.z("design:type",HTMLElement)],FH.prototype,"JSC$15706_dismissibleMedia",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FH.prototype,"onDataChanged",null);_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],FH.prototype,"isHovered",null);_.V([_.yj({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],FH);
_.G(FH,"ytd-video-display-full-buttoned-renderer",function(){if(bJ5!==void 0)return bJ5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bJ5=D},{mode:1});var DT=function(D,C,X,c){c=c===void 0?!1:c;_.Dn.call(this,D);this.adsClientErrorMessage=X;this.aggressivelySample=c;this.args=[];C&&this.args.push(C)};
_.h(DT,_.Dn);var Ra=function(D,C,X,c){c=c===void 0?!1:c;_.Dn.call(this,D);this.adsClientErrorMessage=X;this.aggressivelySample=c;this.args=[];C&&this.args.push(C)};
_.h(Ra,_.Dn);var rMk=function(D){_.nF.call(this);var C=this;this.initializationFunction=D;this.instance=null;this.addOnDisposeCallback(function(){_.Ue(C.instance);C.instance=null})};
_.h(rMk,_.nF);rMk.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.HX("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var ttm=function(){var D=new Map;[].forEach(function(C){D.set(C.JSC$31218_getType(),C)});
this.getters=D};new Promise(function(){});var L63=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"]]),h0o=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"}]]),KoC=function(D){this.experimentApiProvider=D;D=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=D<.1};var Z$=function(D,C,X,c){_.nF.call(this);this.adsControlFlowEventListeners=C;this.adEventLogger=X;this.experimentApiProvider=c;this.adsControlFlowManagerHelper=D(this,this,this,this,this);_.hR(this,this.adsControlFlowManagerHelper);D=_.U(C);for(C=D.next();!C.done;C=D.next())_.hR(this,C.value)};
_.h(Z$,_.nF);var hAf=function(D,C,X,c){GR(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",C,X,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c);D=_.U(D.adsControlFlowEventListeners);for(c=D.next();!c.done;c=D.next())hAf(c.value,C,X)};
_.S=Z$.prototype;_.S.onOpportunityProcessedExternallyManaged=function(D,C,X,c){GR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",D,X,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c)};
_.S.onSlotReceivedExternallyManaged=function(D,C){Vf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",D,C)};
_.S.onSlotEntered=function(D){if(TR(this.adsControlFlowManagerHelper,D)!=null){Vf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);this.adsControlFlowManagerHelper.onSlotEntered(D);for(var C=_.U(this.adsControlFlowEventListeners),X=C.next();!X.done;X=C.next())X.value.onSlotEntered(D);if(TR(this.adsControlFlowManagerHelper,D)!=null&&TR(this.adsControlFlowManagerHelper,D).isOccupyingSlotType()&&HY(this.adsControlFlowManagerHelper,D)&&!xPg(this.adsControlFlowManagerHelper,D)){var c;JD(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",D,(c=HY(this.adsControlFlowManagerHelper,D))!=null?c:void 0);D=TR(this.adsControlFlowManagerHelper,D);D.slotLifecycleStage!=="entered"&&zR(D.slot,D.slotLifecycleStage,"enterLayoutForSlot");D.slotLifecycleStage="rendering";D.registeredLayoutRenderingAdapter.startRendering(D.layout)}}};
_.S.onSlotExited=function(D){if(TR(this.adsControlFlowManagerHelper,D)!=null){Vf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);this.adsControlFlowManagerHelper.onSlotExited(D);for(var C=_.U(this.adsControlFlowEventListeners),X=C.next();!X.done;X=C.next())X.value.onSlotExited(D);TR(this.adsControlFlowManagerHelper,D)!=null&&TR(this.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests&&LoJ(this,D)}};
_.S.onLayoutReceivedExternallyManaged=function(D,C,X){D.managerLayer!=="core"&&JD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",D,C,X)};
var s5C=function(D,C,X){if(TR(D.adsControlFlowManagerHelper,C)!=null){JD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,X);D=_.U(D.adsControlFlowEventListeners);for(var c=D.next();!c.done;c=D.next())s5C(c.value,C,X)}};
Z$.prototype.onLayoutExited=function(D,C,X){if(TR(this.adsControlFlowManagerHelper,D)!=null){JD(this.adEventLogger,xuR(X),D,C);this.adsControlFlowManagerHelper.onLayoutExited(D,C);for(var c=_.U(this.adsControlFlowEventListeners),W=c.next();!W.done;W=c.next())W.value.onLayoutExited(D,C,X);(X=HY(this.adsControlFlowManagerHelper,D))&&C.layoutId===X.layoutId&&mPg(this,D)}};
Z$.prototype.disposeInternal=function(){var D=eAM(this.adsControlFlowManagerHelper);D=_.U(D);for(var C=D.next();!C.done;C=D.next())LoJ(this,C.value);_.nF.prototype.disposeInternal.call(this)};
var LoJ=function(D,C){if(TR(D.adsControlFlowManagerHelper,C)!=null)if(TR(D.adsControlFlowManagerHelper,C).JSC$31248_isSlotExitRequested()||TR(D.adsControlFlowManagerHelper,C).JSC$31248_isLayoutExitRequested())TR(D.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(TR(D.adsControlFlowManagerHelper,C).isOccupyingSlotType())TR(D.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests=!0,mPg(D,C);else if(TR(D.adsControlFlowManagerHelper,C).JSC$31248_isSlotFillRequested())TR(D.adsControlFlowManagerHelper,
C).markedForUnscheduleAfterOutboundAdapterRequests=!0,TR(D.adsControlFlowManagerHelper,C)!=null&&(Vf(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",C),C=TR(D.adsControlFlowManagerHelper,C),C.fulfillmentLifecycleStage="fill_cancel_requested",C.registeredFulfillmentAdapter.cancelSlotFilling());else{var X=HY(D.adsControlFlowManagerHelper,C),c;D.experimentApiProvider.get();(c=_.b("h5_enable_layout_unscheduling_events"))&&(X?EKq(D,C,X):_.HX(Error("Lh"),C,X,void 0,!1));Vf(D.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",C);var W=TR(D.adsControlFlowManagerHelper,C),p=C.slotEntryTrigger,g=W.registeredSlotEntryTriggerAdapters.get(p.triggerId);g&&(g.unregisterTrigger(p),W.registeredSlotEntryTriggerAdapters.delete(p.triggerId));p=_.U(C.slotFulfillmentTriggers);for(g=p.next();!g.done;g=p.next()){g=g.value;var a=W.registeredFulfillmentTriggerAdapters.get(g.triggerId);a&&(a.unregisterTrigger(g),W.registeredFulfillmentTriggerAdapters.delete(g.triggerId))}p=_.U(C.slotExpirationTriggers);
for(g=p.next();!g.done;g=p.next())if(g=g.value,a=W.registeredExpirationTriggerAdapters.get(g.triggerId))a.unregisterTrigger(g),W.registeredExpirationTriggerAdapters.delete(g.triggerId);W.hasLayout()&&(p=W.layout,jd(W,p.layoutExitNormalTriggers),jd(W,p.layoutExitSkipTriggers),jd(W,p.layoutExitMuteTriggers),jd(W,p.layoutExitUserInputSubmittedTriggers),jd(W,p.layoutExitUserCancelledTriggers));W.registeredFulfillmentAdapter=void 0;W.registeredSlotAdapter!=null&&(W.registeredSlotAdapter.release(),W.registeredSlotAdapter=
void 0);W.registeredLayoutRenderingAdapter!=null&&(W.registeredLayoutRenderingAdapter.release(),W.registeredLayoutRenderingAdapter=void 0);W=D.adsControlFlowManagerHelper;TR(W,C)&&(W=th4(W,C.slotType+"_"+C.slotPhysicalPosition))&&W.delete(C.slotId);Vf(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",C);D=_.U(D.adsControlFlowEventListeners);for(W=D.next();!W.done;W=D.next())W=W.value,W.onSlotUnscheduled(C),X&&!c&&EKq(W,C,X)}},EKq=function(D,C,X){JD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
C,X);
JD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",C,X);D=_.U(D.adsControlFlowEventListeners);for(var c=D.next();!c.done;c=D.next())c=c.value,X&&EKq(c,C,X)},mPg=function(D,C){if(TR(D.adsControlFlowManagerHelper,C)!=null&&TR(D.adsControlFlowManagerHelper,C).isOccupyingSlotType()){var X=HY(D.adsControlFlowManagerHelper,C);
if(X&&xPg(D.adsControlFlowManagerHelper,C)){if(TR(D.adsControlFlowManagerHelper,C)!=null){var c=D.adEventLogger,W;var p=((W=h0o.get("abandoned"))==null?void 0:W.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";JD(c,p,C,X);D=TR(D.adsControlFlowManagerHelper,C);D.slotLifecycleStage!=="rendering"&&zR(D.slot,D.slotLifecycleStage,"exitLayout");D.slotLifecycleStage="rendering_stop_requested";D.registeredLayoutRenderingAdapter.stopRendering(X,"abandoned")}}else{Vf(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
C);try{c=TR(D.adsControlFlowManagerHelper,C);if(!c)throw new Ra("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");c.slotLifecycleStage!=="enter_requested"&&c.slotLifecycleStage!=="entered"&&c.slotLifecycleStage!=="rendering"&&zR(c.slot,c.slotLifecycleStage,"exitSlot");c.slotLifecycleStage="exit_requested";if(c.registeredSlotAdapter===void 0)throw c.slotLifecycleStage="scheduled",new Ra("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
c.registeredSlotAdapter.exit()}catch(g){g instanceof Ra&&g.adsClientErrorMessage?(N6d(D.adEventLogger,g.adsClientErrorMessage,C),_.HX(g,C,void 0,void 0,g.aggressivelySample)):(N6d(D.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",C),_.HX(g,C))}}}};var M0=function(D,C,X,c,W,p){_.nF.call(this);this.registry=D;this.experimentApiProvider=p;this.slotMap=new Map};
_.h(M0,_.nF);var th4=function(D,C){return(D=D.slotMap.get(C))?D:new Map},TR=function(D,C){return th4(D,C.slotType+"_"+C.slotPhysicalPosition).get(C.slotId)},eAM=function(D){var C=[];
D.slotMap.forEach(function(X){X=_.U(X.values());for(var c=X.next();!c.done;c=X.next())C.push(c.value.slot)});
return C};
M0.prototype.onSlotEntered=function(D){D=TR(this,D);D.slotLifecycleStage!=="enter_requested"&&zR(D.slot,D.slotLifecycleStage,"onSlotEntered");D.slotLifecycleStage="entered"};
var xPg=function(D,C){D=TR(D,C);return D.hasLayout()&&D.isRendering()},HY=function(D,C){(D=TR(D,C))?D.hasLayout()&&!D.layout&&_.HX("Unexpected empty layout",C):_.HX("Unexpected undefined slotState",C);
return(D==null?void 0:D.layout)||null};
M0.prototype.onSlotExited=function(D){D=TR(this,D);D.slotLifecycleStage!=="exit_requested"&&zR(D.slot,D.slotLifecycleStage,"onSlotExited");D.slotLifecycleStage="scheduled"};
M0.prototype.onLayoutExited=function(D,C){D=TR(this,D);D.isPrimaryLayout(C)&&(D.slotLifecycleStage!=="rendering_stop_requested"&&zR(D.slot,D.slotLifecycleStage,"onLayoutExited"),D.slotLifecycleStage="entered")};
var jd=function(D,C){C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=D.registeredLayoutExitTriggerAdapters.get(X.triggerId);c&&(c.unregisterTrigger(X),D.registeredLayoutExitTriggerAdapters.delete(X.triggerId))}},zR=function(D,C,X){_.HX("Slot stage was "+C+" when calling method "+X,D)};var yMJ=function(D){_.nF.call(this);this.deps=D;this.JSC$15759_adsControlFlowManager=YE5(this)};
_.h(yMJ,_.nF);var YE5=function(D){var C=new Z$(function(X,c,W,p){return new M0(D.deps.registry,X,c,W,p,D.deps.experimentApiProvider)},new Set(Emt(D.deps.registry).concat(D.deps.listeners)),D.deps.adEventLogger,D.deps.experimentApiProvider);
_.hR(D,C);return C};var C55=function(){};var nKf=function(D,C){_.nF.call(this);this.experimentApiProvider=D;this.eventLoggingSettingsProvider=C;this.eventCount=0;this.premiumAdSeenEventLogger=XEJ()()};
_.h(nKf,_.nF);nKf.prototype.logEvent=function(D){GR(this,D)};
var Vf=function(D,C,X,c){GR(D,C,void 0,void 0,void 0,X,void 0,void 0,void 0,X.adSlotLoggingData,void 0,void 0,c)},JD=function(D,C,X,c,W){GR(D,C,void 0,void 0,void 0,X,c?c:void 0,void 0,void 0,X.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,W);
X=_.iX().resolve(_.vK(Gu))==null?void 0:VC();C=X==null?void 0:X.adsSeenHotConfig;X=X==null?void 0:X.adsHotConfig;(C==null?0:C.logOnAdsSeen)&&(X==null?0:X.webEnablePremiumAdsSeenLogging)&&wg4(D,c?c:void 0,W)},N6d=function(D,C,X){GR(D,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,X,void 0,void 0,void 0,X.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:C})},GR=function(D,C,X,c,W,p,g,a,O,P,k,u,Q){Q=Q===void 0?0:Q;
Fob(D.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+C,"slot:",p,"layout:",g,"ping:",a,"Opportunity:",{opportunityType:X,associatedSlotId:c,slotsFromOpportunity:W,triggerBundle:O,adSlotLoggingData:P,adLayoutLoggingData:k});try{var B=function(){D.experimentApiProvider.get();if(C!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){C||_.HX("Empty PACF event type",p,g);var K=D.eventLoggingSettingsProvider.get();var L;(L=K.alwaysIncludeDebugData)||(K.experimentApiProvider.get(),L=
!1);K=L;L={eventType:C,eventOrder:++D.eventCount};var t={};p&&(t.slotData=mum(K,p));if(g){var Y={type:g.layoutType,controlFlowManagerLayer:L63.get(g.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};K&&(Y.debugData={layoutId:g.layoutId});t.layoutData=Y}a&&(t.pingData={pingDispatchStatus:a.dispatchStatus,serializedAdPingMetadata:a.ping.serializedAdPingMetadata,pingIndex:a.index});O&&(t.triggerData=sjr(O.trigger,O.category));X&&(t.opportunityData=e0m(K,X,c,W));L.adClientData=t;P&&(L.serializedSlotAdServingData=
P.serializedSlotAdServingDataEntry);k&&(L.serializedAdServingData=k.serializedAdServingDataEntry);u&&(L.errorInfo=u);_.zu("adsClientStateChange",{adsClientEvent:L})}};
Q&&Q>0?_.Zo(_.s3(),function(){return B()},Q):B()}catch(K){Fob(D.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Zo(_.s3(),function(){_.HX(K instanceof Error?K:String(K),p,g,{pacf_message:"exception during pacf logging"})})}},wg4=function(D,C,X){if(C){var c=C.adLayoutLoggingData;
_.Zo(_.s3(),function(){D.premiumAdSeenEventLogger!=null&&c&&_.zu("adsSeenClientLogging",{serializedAdServingDataEntry:c.serializedAdServingDataEntry})},X!=null?X:0)}};var ZJf=function(D,C){nKf.call(this,D,C)};
_.h(ZJf,nKf);var GwC=function(){},Fob=function(D,C){return _.b(C)};var T6k=function(){var D=new VhC;this.JSC$15784_adsControlFlowManager=(new yMJ(D)).JSC$15759_adsControlFlowManager},VhC=function(){_.nF.call(this);
var D=this;this.experimentApiProvider=new rMk(function(){return new GwC});
var C=new rMk(function(){return new KoC(D.experimentApiProvider)});
this.adEventLogger=new ZJf(this.experimentApiProvider,C);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.h(VhC,_.nF);var HJM=function(){},JMg,q0=function(){JMg||(JMg=new HJM);
return JMg},DD=function(D){if(!D.JSC$15795_externallyManagedSlotAdapterCallback){var C=(new T6k).JSC$15784_adsControlFlowManager;
D.JSC$15795_externallyManagedSlotAdapterCallback=C}return D.JSC$15795_externallyManagedSlotAdapterCallback},zAg=function(D,C,X){var c=C.opportunityType,W=Error("Mh");
if(c!==void 0){var p=DD(D);hAf(p,c,void 0,X)}else _.HX(W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});p=[];if(C.adSlotAndLayoutMetadata!==void 0){C=_.U(C.adSlotAndLayoutMetadata);for(var g=C.next();!g.done;g=C.next()){var a=g.value;if(g=a.adSlotMetadata)if(p.push(g),D.onSlotReceivedExternallyManaged(g,X),a.adLayoutMetadata){a=_.U(a.adLayoutMetadata);for(var O=a.next();!O.done;O=a.next())D.onLayoutReceivedExternallyManaged(g,O.value,X)}else X>0&&_.HX("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else X>0&&_.HX("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else X>0&&_.HX("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+c,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(c!==void 0)D.onOpportunityProcessedExternallyManaged(c,p,void 0,X);else _.HX(W,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
HJM.prototype.onSlotReceivedExternallyManaged=function(D,C){D=lK(D);if(D instanceof Ra)_.HX(D,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else DD(this).onSlotReceivedExternallyManaged(D,C)};
HJM.prototype.onLayoutReceivedExternallyManaged=function(D,C,X){D=lK(D);C=N9m(C);if(D instanceof Ra)_.HX(D,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(C instanceof DT)_.HX(C,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else DD(this).onLayoutReceivedExternallyManaged(D,C,X)};
HJM.prototype.onOpportunityProcessedExternallyManaged=function(D,C,X,c){var W=[];C=_.U(C);for(var p=C.next();!p.done;p=C.next())p=lK(p.value),p instanceof Ra?_.HX(p,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):W.push(p);DD(this).onOpportunityProcessedExternallyManaged(D,W,X,c)};
var j5f=function(D,C){C=lK(C);if(C instanceof Ra)_.HX(C,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var X=DD(D);Vf(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",C);X=_.U(X.adsControlFlowEventListeners);for(var c=X.next();!c.done;c=X.next())c=TR(c.value,C),c.slotLifecycleStage!=="not_scheduled"&&zR(c.slot,c.slotLifecycleStage,"onSlotScheduled"),c.slotLifecycleStage="scheduled";D=DD(D);Vf(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",C);D=_.U(D.adsControlFlowEventListeners);
for(X=D.next();!X.done;X=D.next())X.value.onSlotEntered(C)}},Mhq=function(D,C){C=lK(C);
if(C instanceof Ra)_.HX(C,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var X=DD(D);Vf(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",C);X=_.U(X.adsControlFlowEventListeners);for(var c=X.next();!c.done;c=X.next())c.value.onSlotExited(C);D=DD(D);Vf(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",C);D=_.U(D.adsControlFlowEventListeners);for(X=D.next();!X.done;X=D.next())X.value.onSlotUnscheduled(C)}},qEb=function(D,C,X){C=lK(C);
X=N9m(X);if(C instanceof Ra)_.HX(C,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(X instanceof DT)_.HX(X,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var c=DD(D);JD(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",C,X);c=_.U(c.adsControlFlowEventListeners);for(var W=c.next();!W.done;W=c.next())W.value.onLayoutScheduled(C,X);D=DD(D);JD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,X);D=_.U(D.adsControlFlowEventListeners);
for(c=D.next();!c.done;c=D.next())s5C(c.value,C,X)}},Cj=function(D,C,X){C=lK(C);
X=N9m(X);if(C instanceof Ra)_.HX(C,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(X instanceof DT)_.HX(X,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var c=DD(D);JD(c.adEventLogger,xuR("normal"),C,X);c=_.U(c.adsControlFlowEventListeners);for(var W=c.next();!W.done;W=c.next())W.value.onLayoutExited(C,X,"normal");D=DD(D);D=_.U(D.adsControlFlowEventListeners);for(c=D.next();!c.done;c=D.next())EKq(c.value,C,X)}};_.Xa=_.F(function(D){var C=_.Ro(D,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});D=Object.assign({},C);var X=C.data;C=C.customCommandResolver;var c=(delete D.data,delete D.customCommandResolver,D);D=_.kb({visibilityCallback:function(a,O){var P,k=(P=X().interaction)==null?void 0:P.onFirstVisible;a&&(k&&_.FV(k),c.setOnErrorHandler()&&YTZ(O))},
showOption:_.n9});C=_.Fv(function(){return X().interaction},C,function(){var a;
return(a=c.listenToTapEvent)==null?void 0:a.call(c)});
var W=_.U(_.Li(!1,void 0,"wAC0Lc")),p=W.next().value,g=W.next().value;W=_.I_(function(a){var O;((O=c.setTouchEndHandler)==null?0:O.call(c))&&!p()&&(a.currentTarget.click(),g(!0),setTimeout(function(){g(!1)},100));
return!1});
return _.A("ad-image-view-model",{class:function(){var a,O=[((a=X().interaction)==null?0:a.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],P;((P=c.isGridViewEnabled)==null?0:P.call(c))&&O.push("ytwAdImageViewModelHostInGridView");return O.join(" ")},
el:_.fb(D,C),"on:touchend":W},_.A("div",{class:"ytwAdImageViewModelHostImageContainer"},_.A(_.M_,{data:function(){var a;return{sources:X().imageSources,contentMode:(a=X().imageProperties)==null?void 0:a.contentMode}},
alt:function(){var a,O;return((a=X().interaction)==null?void 0:(O=a.accessibility)==null?void 0:O.label)||""},
targetHeight:c.targetHeight,targetWidth:c.targetWidth,preserveHeight:c.preserveHeight,preserveWidth:c.preserveWidth,useWidth:c.useWidth,style:function(){var a,O;return"vertical-align: bottom;"+(((a=X().background)==null?0:a.color)?"background-color:"+_.mW((O=X().background)==null?void 0:O.color)+";":"")},
className:function(){return c.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var a,O;return(O=(a=c.setDraggable)==null?void 0:a.call(c))!=null?O:void 0}})))},"lc");var f9c=_.F(function(D){var C=D.data,X=D.listenToTapEvent,c=function(){};
return _.A("ad-button-hover-overlay-view-model",{"on:click":_.I_(function(W){if(_.b("enable_web_home_top_landscape_image_layout_legacy_click_command")){var p,g=(p=C().interaction)==null?void 0:p.onTap;g&&_.lE(W.currentTarget,"yt-navigate",{endpoint:_.Y7(g)})}}),
class:function(){var W;return((W=C().interaction)==null?0:W.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(W){var p,g=(p=C().interaction)==null?void 0:p.onFirstVisible;W&&g&&_.FV(g)},
showOption:_.n9}),_.Fv(function(){return C().interaction},void 0,function(){return!_.b("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(X==null?void 0:X())}))},function(){return _.b("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.A(_.BX,{data:function(){return C().button}},{adButtonViewModel:function(W){return _.A(_.FZ,{data:W.data,
customCommandResolver:c})}}):_.A(_.BX,{data:function(){return C().button}},{adButtonViewModel:_.FZ})}())},"mc");var Cm;_.CI(_.F(function(D){var C=D.data;D=_.kb({visibilityCallback:function(a,O){if(a){var P;(a=(P=C().interaction)==null?void 0:P.onFirstVisible)&&_.FV(a);var k;if(P=(k=C().adLayoutData)==null?void 0:k.activeViewData)X1(O,P),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cC(O)})}else _.b("stop_av_measurement_on_detach")&&cC(O)},
showOption:_.n9,hideOption:wz});var X=_.Fv(function(){return C().interaction},void 0,function(){return!0}),c=_.U(_.Li(!1,void 0,"VNDDT")),W=c.next().value,p=c.next().value;
c=_.I_(function(){p(!0)});
var g=_.I_(function(){p(!1)});
return _.A("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.fb(D,VtR,X),"on:mouseenter":c,"on:mouseleave":g},_.A("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.P0({"max-width":function(){return _.b("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.A("div",{class:function(){var a;
a:{var O;switch((a=_.r(C().thumbnailImage,jN5))==null?void 0:(O=a.imageProperties)==null?void 0:O.renderingAspect){case "RENDERING_ASPECT_SQUARE":a="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":a="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}a=void 0}return a}},_.A(_.BX,{data:function(){return C().thumbnailImage}},{adImageViewModel:function(a){return _.A(_.Xa,
{data:a.data,
listenToTapEvent:!0,setTouchEndHandler:_.b("enable_top_landscape_image_experiment_dom_id_web")})}})),_.A("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.A(_.v,{cond:function(){var a,O,P;
return(a=_.r(C().thumbnailImage,jN5))==null?void 0:(O=a.imageProperties)==null?void 0:(P=O.overlayIcon)==null?void 0:P.iconImage},
then:function(a){return _.A(_.M_,{data:a,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.A("div",{class:function(){return W()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.A(_.BX,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(a){return _.A(f9c,
{data:a.data,
listenToTapEvent:!0})}}))),_.A("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.A(_.BX,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(a){return _.A(zO,{data:a.data,
listenToTapEvent:!0,setTouchEndHandler:_.b("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;D=_.kb({visibilityCallback:function(a,O){if(a){var P;(a=(P=C().interaction)==null?void 0:P.onFirstVisible)&&_.FV(a);var k;if(P=(k=C().adLayoutData)==null?void 0:k.activeViewData)X1(O,P),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cC(O)})}else _.b("stop_av_measurement_on_detach")&&cC(O)},
showOption:_.n9,hideOption:wz});var X=_.uu(_.Y_),c=_.Fv(function(){return C().interaction}),W={},p={},g={};
return _.A("square-image-layout-view-model",{class:_.g$("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=X,W)),el:_.fb(D,T9m,c)},_.A("div",{class:_.g$("ytwSquareImageLayoutViewModelHostImage",(p.ytwSquareImageLayoutViewModelHostColumnImage=X,p))},function(){return _.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(a){return _.A(_.Xa,{data:a.data,
isGridViewEnabled:X,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.A("div",{class:_.g$("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(g.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=X,g))},_.A(_.BX,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:zO}),function(){return _.A(_.BX,{data:function(){return C().adButton}},{adButtonViewModel:function(a){var O={};
return _.A(_.FZ,{data:a.data,className:_.g$((O.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=X,O))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=D.noBottomMargin;var c=D.typographyBump;D=_.kb({visibilityCallback:function(u,Q){if(u){var B;(u=(B=C().interaction)==null?void 0:B.onFirstVisible)&&_.FV(u);var K;if(B=(K=C().adLayoutData)==null?void 0:K.activeViewData)X1(Q,B),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cC(Q)})}else _.b("stop_av_measurement_on_detach")&&cC(Q)},
showOption:_.n9,hideOption:wz});var W=_.Fv(function(){return C().interaction},void 0,function(){return _.b("enable_web_home_top_landscape_image_layout_level_click")}),p=function(){return C().interaction};
p!==void 0&&p!==null||_.CC(Error("Nh"));var g=function(){var u,Q,B;return(u=_.r(C().thumbnailImage,jN5))==null?void 0:(Q=u.background)==null?void 0:(B=Q.backgroundImageSource)==null?void 0:B.imageSources};
p=_.U(_.Li(!1,void 0,"NFjwje"));var a=p.next().value,O=p.next().value;p=_.I_(function(){O(!0)});
var P=_.I_(function(){O(!1)}),k=function(){return a()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.A("top-landscape-image-layout-view-model",{class:function(){var u;return((u=C().interaction)==null?0:u.onTap)&&_.b("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.fb(D,HO5,W),"on:mouseenter":p,"on:mouseleave":P},_.A("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.A(_.v,{cond:function(){return g()&&g().length>0},
then:function(){return _.A("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.P0({top:"0","background-image":function(){return"url("+String(g()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.A(_.v,{cond:function(){return!!C().adButtonHoverOverlay},
then:function(){return _.A("div",{class:k},_.A(_.BX,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:f9c}))}}),_.A("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.A(_.BX,{data:function(){return C().thumbnailImage}},{adImageViewModel:function(u){return _.A(_.Xa,{data:u.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.b("enable_web_home_top_landscape_image_layout_level_click")})}})),_.A("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.A(_.M_,{data:{sources:[{clientResource:{imageName:_.b("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.A("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.A(_.BX,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(u){return _.A(zO,{data:u.data,
noBottomMargin:function(){return X==null?void 0:X()},
listenToTapEvent:function(){return _.b("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return c==null?void 0:c()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.Bm,
noBottomMargin:_.Bm,typographyBump:_.Bm}});var dPb=_.F(function(D){var C=D.data,X=_.kb({visibilityCallback:function(W){var p,g=(p=C().interaction)==null?void 0:p.onFirstVisible;W&&g&&_.FV(g)},
showOption:_.n9});D=_.Fv(function(){return C().interaction},D.customCommandResolver);
var c={};return _.A("ad-text-image-view-model",{class:_.g$("ytwAdTextImageViewModelHost",(c.ytwAdTextImageViewModelHostDarkBackground=function(){return C().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},c)),
el:_.fb(X,D),"aria-label":function(){var W,p;return(W=C().interaction)==null?void 0:(p=W.accessibility)==null?void 0:p.label}},_.A("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.A(_.QG,{text:function(){return C().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.A(_.v,{cond:function(){return C().overlayIcon},
then:function(W){return _.A("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.A(_.M_,{data:W,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var RAJ=_.F(function(D){var C=D.data;return _.A("feed-ad-sitelink-view-model",{class:function(){var X;return((X=C().interaction)==null?0:X.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.fb(_.Fv(function(){return C().interaction},D.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var X,c;return(X=C().interaction)==null?void 0:(c=X.accessibility)==null?void 0:c.label},
role:"link",tabindex:0},_.A(_.QG,{text:function(){return C().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var l9f=_.F(function(D){var C=D.data;D={};return _.A("feed-ad-sitelinks-carousel-view-model",{el:_.fb(_.kb({visibilityCallback:function(X){var c,W=(c=C().interaction)==null?void 0:c.onFirstVisible;X&&W&&_.FV(W)},
showOption:_.n9})),class:_.g$("ytwFeedAdSitelinksCarouselViewModelHost",(D.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return C().style==="FEED_AD_SITELINKS_STYLE_NONE"},D))},_.A(_.BX,{data:function(){return C().sitelinks}},{feedAdSitelinkViewModel:RAJ}))},"sc");_.CI(_.F(function(D){var C=D.data;D=_.kb({visibilityCallback:function(g,a){if(g){var O;(g=(O=C().interaction)==null?void 0:O.onFirstVisible)&&_.FV(g);var P;(O=(P=C().adLayoutData)==null?void 0:P.activeViewData)&&X1(a,O)}},
showOption:_.n9});var X=_.U(_.Li(!1,void 0,"BzPhl")),c=X.next().value,W=X.next().value;X=_.I_(function(){W(!0)});
var p=_.I_(function(){W(!1)});
return _.A("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.fb(D),"on:mouseenter":X,"on:mouseleave":p},_.A("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.A("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.A(_.BX,{data:function(){return C().textImage}},{adTextImageViewModel:dPb})),_.A("div",{class:function(){return c()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.A(_.BX,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(g){return _.A(f9c,{data:g.data,
listenToTapEvent:!0})}}))),_.A("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.A(_.BX,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(g){return _.A(zO,{data:g.data,
listenToTapEvent:!0})}}),_.A(_.BX,{data:function(){return C().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:l9f})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=D.typographyBump;return _.A("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.fb(_.kb({visibilityCallback:function(c,W){if(c){var p;(c=(p=C().interaction)==null?void 0:p.onFirstVisible)&&_.FV(c);var g;(p=(g=C().adLayoutData)==null?void 0:g.activeViewData)&&X1(W,p)}},
showOption:_.n9,hideOption:wz}))},_.A("div",null,_.A(_.BX,{data:function(){return C().videoLockup}},{lockupViewModel:function(c){return _.A(_.jx,{data:c.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:X})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.Bm,
noBottomMargin:_.Bm,typographyBump:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=D.className;var c=D.typographyBump;return _.A("video-display-compact-button-group-layout-view-model",{el:_.fb(_.kb({visibilityCallback:function(W,p){if(W){var g;(W=(g=C().interaction)==null?void 0:g.onFirstVisible)&&_.FV(W);var a;(g=(a=C().adLayoutData)==null?void 0:a.activeViewData)&&X1(p,g)}},
showOption:_.n9})),class:_.g$("videoDisplayCompactButtonGroupLayoutViewModelHost",X)},_.A(_.BX,{data:function(){return C().videoLockup}},{lockupViewModel:function(W){return _.A(_.jx,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:c})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Bm,
className:_.Bm,typographyBump:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=D.className;var c=D.typographyBump;return _.A("video-display-compact-buttoned-layout-view-model",{el:_.fb(_.kb({visibilityCallback:function(W,p){if(W){var g;(W=(g=C().interaction)==null?void 0:g.onFirstVisible)&&_.FV(W);var a;(g=(a=C().adLayoutData)==null?void 0:a.activeViewData)&&X1(p,g)}},
showOption:_.n9})),class:_.g$("videoDisplayCompactButtonedLayoutViewModelHost",X)},_.A(_.BX,{data:function(){return C().videoLockup}},{lockupViewModel:function(W){return _.A(_.jx,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:c})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Bm,
className:_.Bm,typographyBump:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=D.className;var c=D.typographyBump;var W=function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},p=_.uu(_.Y_);
D=_.kb({visibilityCallback:function(P,k){if(P){var u=C();P=u.adLayoutData;var Q;(u=(Q=u.interaction)==null?void 0:Q.onFirstVisible)&&_.FV(u);(Q=P==null?void 0:P.activeViewData)&&X1(k,Q)}},
showOption:_.n9});var g=_.tw(function(){return{containerType:W()&&p()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:W()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),a=_.tw(function(){return W()&&p()?"":W()?"168px":"50%"},void 0,"Om6kNe"),O=_.tw(function(){return W()&&p()?9999:void 0},void 0,"S71lKd");
return _.A("video-display-compact-layout-view-model",{el:_.fb(D),class:_.g$("videoDisplayCompactLayoutViewModelHost",X)},_.A(_.BX,{data:function(){return C().videoLockup}},{lockupViewModel:function(P){return _.A(_.jx,{data:P.data,
containerLayoutConfig:g,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:a,thumbnailTargetWidth:O,typographyBump:c})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.Bm,
className:_.Bm,typographyBump:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=D.typographyBump;return _.A("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.fb(_.kb({visibilityCallback:function(c,W){if(c){var p;(c=(p=C().interaction)==null?void 0:p.onFirstVisible)&&_.FV(c);var g;(p=(g=C().adLayoutData)==null?void 0:g.activeViewData)&&X1(W,p)}},
showOption:_.n9,hideOption:wz}))},_.A("div",null,_.A(_.BX,{data:function(){return C().videoLockup}},{lockupViewModel:function(c){return _.A(_.jx,{data:c.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:X})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.Bm,
noBottomMargin:_.Bm,typographyBump:_.Bm}});_.DQ4=_.F(function(D){var C=D.data;D=_.aX("ad-card-badge-view-model");return _.A("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:D},_.A(_.v,{cond:function(){return C().imageBadge},
then:function(X){return _.A(_.M_,{data:X,alt:""})}}))},"zc");var CLf=_.F(function(D){var C=D.data;var X=D.customCommandResolver;return _.A("carousel-ad-card-image-view-model",{class:function(){var c;return((c=C().interaction)==null?0:c.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9}),_.Fv(function(){return C().interaction},X)),
"aria-label":function(){var c,W;return(c=C().interaction)==null?void 0:(W=c.accessibility)==null?void 0:W.label}},_.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(c){return _.A(_.Xa,{data:c.data,
customCommandResolver:X})}}),_.A("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.A(_.BX,{data:function(){return C().badge}},{adCardBadgeViewModel:_.DQ4})),_.A(_.NL,{model:{color:4}}))},"Ac");var XJc=_.F(function(D){var C=_.U(_.Li(0,void 0,"JJ0QQc")),X=C.next().value;C.next();var c=C.next().value,W=_.U(_.Li(!1,void 0,"f6YICe"));C=W.next().value;var p=W.next().value,g;_.z3(function(){clearTimeout(g)});
W=_.I_(function(){var P;((P=D.animate)==null?0:P.call(D))?(p(!0),g=setTimeout(function(){p(!1);a()},200)):a();
return!1});
var a=function(){c(function(P){return(P+D.numShownItems())%D.data().length})},O={};
return _.A("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.A("div",{class:_.g$("ytwHorizontalCarouselCarouselWrapper")},_.A("div",{class:_.g$("ytwHorizontalCarouselCarouselInnerWrapper",(O.ytwHorizontalCarouselAnimating=C,O))},_.A(_.Zh,{each:D.data,keyBy:"INDEX"},function(P,k){return _.A("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.P0({"flex-basis":function(){return"calc((100% - (8px * "+(D.numShownItems()-1)+")) / "+D.numShownItems()+")"},
order:function(){var u=k-X();u<0&&(u+=D.data().length);return u}})},D.children(P,k))}))),_.A("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":W},D.nextButton()))},"Bc");var ck5=_.F(function(D){var C=D.data;var X=D.customCommandResolver;var c=D.expansive;return _.A("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.fb(_.kb({visibilityCallback:function(W){var p,g=(p=C().interaction)==null?void 0:p.onFirstVisible;W&&g&&_.FV(g)},
showOption:_.n9}))},_.A(XJc,{data:function(){var W;return((W=C())==null?void 0:W.carouselAdCards)||[]},
nextButton:function(){return _.A(_.BX,{data:function(){return C().nextButton}},{buttonViewModel:function(W){var p=W.data;
return _.A(_.Ze,{data:function(){return(c==null?0:c())?Object.assign({},p(),{style:"mono"}):p()},
className:_.b("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(W){return _.A(_.BX,{data:W},{carouselAdCardImageViewModel:function(p){return _.A(CLf,{data:p.data,customCommandResolver:X})}})}))},"Cc");var opC=_.F(function(D){var C=D.data;var X=D.customCommandResolver;var c=D.className;var W=D.buttonClassName;var p=D.animationEntityKey;var g=D.expansive;return _.A("carousel-button-view-model",{class:_.g$("ytwCarouselButtonViewModelHost",c)},_.A(_.BX,{data:function(){return C().carousel}},{carouselAdCardCollectionViewModel:function(a){return _.A(ck5,{data:a.data,
customCommandResolver:X,expansive:g})}}),_.A(_.BX,{data:function(){return C().button}},{adButtonViewModel:function(a){var O=a.data;
return _.A(_.FZ,{data:function(){return(g==null?0:g())?Object.assign({},O(),{style:"AD_BUTTON_STYLE_TONAL"}):O()},
className:W,customCommandResolver:X,animationEntityKey:p})}}))},"Dc");_.WjM=_.F(function(D){var C=D.data;D=D.className;var X=_.aX("pivot-button-view-model");_.JU(function(){var c;((c=C())==null?0:c.backgroundColor)&&X.value.setAttribute("data-background-color",String(C().backgroundColor))});
return _.A("pivot-button-view-model",{el:X,class:_.g$("ytwPivotButtonViewModelHost",D)},_.A(_.ty,{command:function(){var c=C();c=c.onClickCommand?_.Y7(c.onClickCommand):c.contentDescription?_.l8(c.contentDescription):void 0;return c},
ariaLabel:function(){return C().contentDescription}},_.A(_.v,{cond:function(){return C().thumbnail},
then:function(c){return _.A(_.M_,{data:c,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.A(_.v,{cond:function(){return C().icon},
then:function(c){return _.A(_.$_,{icon:function(){return c().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.pJN=_.F(function(D){var C=D.data;var X=D.buttonShapeOverrideables;return _.A("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.A(_.BX,{data:function(){return C().buttonViewModels}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
buttonOverrides:X})},
likeButtonViewModel:function(c){return _.A(_.$d,{data:c.data,buttonShapeOverrideables:X})},
dislikeButtonViewModel:function(c){return _.A(_.PO,{data:c.data,buttonShapeOverrideables:X})},
toggleButtonViewModel:function(c){return _.A(_.o1,{data:c.data,buttonShapeOverrides:X})}}))},"Fc");var Sc5=_.F(function(D){var C=D.avatar;var X=D.headline;var c=D.badge;var W=D.description;var p=D.expansive;D={};return _.A("yt-ad-metadata-shape",{class:_.g$("ytAdMetadataShapeHost",(D.ytAdMetadataShapeHostLarge=p,D))},_.A("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.A(_.v,{cond:C,then:function(g){return _.A(_.lBx,{data:function(){return(p==null?0:p())?Object.assign({},g(),{size:"AD_AVATAR_SIZE_M"}):g()}})}}),_.A("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.A(_.QG,{text:X,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.A(_.v,{cond:c,then:function(g){return _.A(_.Hw,{data:function(){return(p==null?0:p())?Object.assign({},g(),{style:"AD_BADGE_STYLE_STARK"}):g()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.A("h2",{class:"ytAdMetadataShapeHostDescription"},_.A(_.QG,{text:W,
linkInheritColor:!0,isHeadline:function(){return p==null?void 0:p()}})))},"Gc");var UQf=_.F(function(D){var C=D.data;var X=D.onShow;var c=D.expansive;D=_.Fv(function(){return C().interaction});
_.JU(function(){var p,g=(p=C().animatedRenderingConfig)==null?void 0:p.delayedSecondsToVisible;if(g){var a=setTimeout(X,g*1E3);_.z3(function(){clearTimeout(a)})}});
var W={};return _.A("reels-ad-card-buttoned-view-model",{class:_.g$(function(){var p;return((p=C().interaction)==null?0:p.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(W.ytwReelsAdCardButtonedViewModelHostExpansive=c,W)),
el:_.fb(D)},_.A(Sc5,{avatar:function(){return _.r(C().avatar,HXg)},
headline:function(){return C().headline},
badge:function(){return _.r(C().adBadge,J7f)},
description:function(){return C().description},
expansive:c}),_.A(_.BX,{data:function(){return C().ctaButton}},{adButtonViewModel:function(p){var g=p.data;
return _.A(_.FZ,{data:function(){return(c==null?0:c())?Object.assign({},g(),{style:"AD_BUTTON_STYLE_FILLED"}):g()}})}}))},"Hc");var gpd=_.F(function(D){var C=D.data;D=D.expansive;var X=_.b("web_ad_metadata_clickable")?_.Fv(function(){return C().interaction},void 0,function(){return _.b("web_ad_metadata_clickable")}):void 0,c={};
c=_.sN("ytwReelsAdMetadataViewModelHost",(c.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.b("web_ad_metadata_clickable"),c));return _.A("reels-ad-metadata-view-model",{class:c,el:_.fb(X)},_.A(Sc5,{avatar:function(){return _.r(C().avatar,HXg)},
headline:function(){return C().headline},
badge:function(){return _.r(C().adBadge,J7f)},
description:function(){return C().description},
expansive:D}))},"Ic");var acq={iconPosition:"icon-with-label",size:"L"},Icc=_.F(function(D){var C=D.data;var X=D.overlayDensity;var c=D.extractOverlay;var W=D.extractActionBar;D=_.aX("reels-player-overlay-layout-view-model");var p=_.di(X,0),g=function(){var B;return(B=C().reelsAdCardButtonedEntityKey)!=null?B:""},a=function(){return g()+"/ad_button"},O=_.ku(Bsh,g),P=function(){var B,K;
return(K=(B=O())==null?void 0:B.value)!=null?K:!1},k=_.uu(JLm),u=function(){var B;
return Object.assign({},acq,(k()||!((B=W==null?void 0:W())!=null&&B))&&{style:"overlay-dark"})};
X={};var Q={};return _.A("reels-player-overlay-layout-view-model",{class:_.g$("ytwReelsPlayerOverlayLayoutViewModelHost",(X.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!C().extension},X.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},X.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return p()===1&&!(c==null?0:c())},X.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var B;
return(B=c==null?void 0:c())!=null?B:!1},X.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var B;
return(B=W==null?void 0:W())!=null?B:!1},X)),
"overlay-density":function(){return String(p())},
el:D},_.A("div",{class:_.g$("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(Q.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},Q))},_.A("div",{"aria-hidden":function(){return P()},
class:_.g$("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.P0({"transition-duration":function(){return qTr(C())}})},_.A(_.BX,{data:function(){return C().adMetadata}},{reelsAdMetadataViewModel:function(B){return _.A(gpd,{data:B.data,
expansive:function(){return p()===1}})}}),_.A(_.v,{cond:function(){return C().extension},
then:function(B){return _.A("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.A(_.BX,{data:B},{adButtonViewModel:function(K){return _.A(_.FZ,{data:K.data,animationEntityKey:a,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(K){return _.A(opC,{data:K.data,animationEntityKey:a,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return p()===1}})}}))}})),_.A("div",{"aria-hidden":function(){return!P()},
class:_.g$("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.P0({"transition-duration":function(){return qTr(C())}})},_.A(_.BX,{data:function(){return C().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(B){return _.A(UQf,{data:B.data,
onShow:function(){_.fG(_.bK("booleanEntity",g(),{key:g(),value:!0}))},
expansive:function(){var K;return(K=c==null?void 0:c())!=null?K:!1}})}}))),_.A("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.A(_.BX,{data:function(){return C().actions}},{reelActionBarViewModel:function(B){return _.A(_.pJN,{data:B.data,
buttonShapeOverrideables:u})}}),_.A(_.BX,{data:function(){return C().menu}},{buttonViewModel:function(B){return _.A(_.Ze,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},u(),{type:"tonal"})}})}}),_.A(_.BX,{data:function(){return C().pivotButton}},{pivotButtonViewModel:function(B){return _.A(_.WjM,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.CI(Icc,"reels-player-overlay-layout-view-model",{props:{data:_.Bm,overlayDensity:_.Bm,extractOverlay:_.Bm,extractActionBar:_.Bm}});var cn=function(){var D=_.w.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;return D};
_.h(cn,_.w);_.S=cn.prototype;
_.S.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.b("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.S.ready=function(){var D=this;WTd(function(){D.isAttached&&fT(D.JSC$15841_storedAdSlotMetadata,D.JSC$15841_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&Cj(q0(),D.JSC$15841_storedAdSlotMetadata,D.JSC$15841_storedAdLayoutMetadata)})};
_.S.attached=function(){fT(this.JSC$15841_storedAdSlotMetadata,this.JSC$15841_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qEb(q0(),this.JSC$15841_storedAdSlotMetadata,this.JSC$15841_storedAdLayoutMetadata)};
_.S.detached=function(){fT(this.JSC$15841_storedAdSlotMetadata,this.JSC$15841_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Cj(q0(),this.JSC$15841_storedAdSlotMetadata,this.JSC$15841_storedAdLayoutMetadata)};
_.S.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.S.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15841_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15841_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15841_storedAdLayoutMetadata!==void 0&&this.JSC$15841_storedAdSlotMetadata!==void 0&&Cj(q0(),this.JSC$15841_storedAdSlotMetadata,this.JSC$15841_storedAdLayoutMetadata),qEb(q0(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15841_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15841_storedAdSlotMetadata=this.adSlotMetadata)};
_.$a.Object.defineProperties(cn.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
cn.prototype.onAdMetadataChanged=cn.prototype.onAdMetadataChanged;cn.prototype.onTypographyBumpChanged=cn.prototype.onTypographyBumpChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cn.prototype,"rendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],cn.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],cn.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],cn.prototype,"noBottomMargin",void 0);_.V([_.n(),_.z("design:type",Object)],cn.prototype,"overlayDensity",void 0);_.V([_.n(),_.z("design:type",Object)],cn.prototype,"extractOverlay",void 0);_.V([_.n(),_.z("design:type",Object)],cn.prototype,"extractActionBar",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],cn.prototype,"typographyBump",void 0);
_.V([_.e("data.adLayoutMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],cn.prototype,"adLayoutMetadata",null);_.V([_.n(),_.z("design:type",Object)],cn.prototype,"adSlotMetadata",void 0);_.V([_.kn("ytd-video-display-full-buttoned-and-button-group-renderer"),_.z("design:type",HTMLElement)],cn.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.V([_.vr("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cn.prototype,"onTypographyBumpChanged",null);_.V([_.vr("adLayoutMetadata","adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cn.prototype,"onAdMetadataChanged",null);_.V([_.yj({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],cn);
_.G(cn,"ytd-in-feed-ad-layout-renderer",function(){if(Rlc!==void 0)return Rlc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Rlc=D},
{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var OxN;var Ak4;_.CI(_.Hw,"ad-badge-view-model",{props:{data:_.Bm,hasDot:_.Bm,customCommandResolver:_.R3,adRenderingContextType:_.R3,usedInMasthead:_.R3}});_.CI(_.FZ,"ad-button-view-model",{props:{data:_.Bm,customCommandResolver:_.R3,className:_.R3,delayedClassName:_.R3,animationEntityKey:_.R3,isCompactWidth:_.R3,isContentWidth:_.R3}});var or=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return D};
_.h(or,_.w);_.S=or.prototype;_.S.computeHasLiveDescription=function(D){return!(D==null||!D.liveDescription)};
_.S.computeHasByline=function(D){return!(D==null||!D.byline)};
_.S.computeUsesAdButtonViewModel=function(D){return!!_.r(D==null?void 0:D.cta,z8g)};
_.S.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.S.onYtToggleButton=function(D){var C,X=(C=this.data)==null?void 0:C.videoReminderEntityKey;X&&this.ytdReduxBehavior.dispatch(_.bK("upcomingEventReminderStateEntity",X,{key:X,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.S.attached=function(){this.updateChannelBanner()};
_.S.dataChanged=function(){this.updateChannelBanner()};
_.S.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.r((D=this.data)==null?void 0:D.cta,_.Pj)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.S.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var D=_.XA(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);D&&(D.startsWith("//")&&(D="https:"+D),this.hostElement.classList.add("channel-banner"),_.Os(this.hostElement,{"--ytvmh-channel-banner":"url("+D+")"}))}else _.b("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.S.onPlayerReady=function(){this.onIronResize()};
_.S.maybeFlushDebouncer=function(){_.b("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(D){var C;D=(C=D.getElementsByTagName("yt-attributed-string"))==null?void 0:C[0];bEn(D==null?void 0:D.polymerController)})};
_.S.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var D=_.SY(this.hostElement).querySelector("#live-description"),C;D&&((C=this.data)==null?0:C.shortLiveDescription)&&D.clientWidth<D.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
or.prototype.onIronResize=or.prototype.onIronResize;or.prototype.videoReminderStateChanged=or.prototype.videoReminderStateChanged;or.prototype.dataChanged=or.prototype.dataChanged;or.prototype.onYtToggleButton=or.prototype.onYtToggleButton;_.V([_.m(_.lR),_.z("design:type",Object)],or.prototype,"ironResizableBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],or.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:Wsr}),_.z("design:type",Object)],or.prototype,"videoReminderState",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.z("design:type",Boolean)],or.prototype,"rounded",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.z("design:type",Boolean)],or.prototype,"hasLiveDescription",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.z("design:type",Boolean)],or.prototype,"hasByline",void 0);
_.V([_.n({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.z("design:type",String)],or.prototype,"adRenderingContextType",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],or.prototype,"isMasthead",void 0);_.V([_.n({computed:"computeUsesAdButtonViewModel(data)"}),_.z("design:type",Boolean)],or.prototype,"usesAdButtonViewModel",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.b("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.z("design:type",Boolean)],or.prototype,"resizableAdBannerSafariFix",void 0);_.V([_.uH("yt-formatted-string"),_.z("design:type",Array)],or.prototype,"formattedStrings",void 0);_.V([_.kn("#cta-button"),_.z("design:type",HTMLElement)],or.prototype,"ctaButton",void 0);
_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],or.prototype,"onYtToggleButton",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],or.prototype,"dataChanged",null);_.V([_.vr("videoReminderState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],or.prototype,"videoReminderStateChanged",null);
_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],or.prototype,"onIronResize",null);_.V([_.yj({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],or);
_.G(or,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Ak4!==void 0)return Ak4;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ak4=D},{mode:1});var PLx;var Wn=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.isLocked=!1;return D};
_.h(Wn,_.w);_.S=Wn.prototype;_.S.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.S.onExpandedChanged=function(){this.expanded&&_.Ct(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.S.onMouseOver=function(){this.maybeExpand()};
_.S.onTap=function(){this.maybeExpand()};
_.S.onExpandableTileExpanding=function(D){D!==this&&(this.expanded=!1)};
_.S.onExpandableTileLockAndCollapse=function(D){this.isLocked=!0;D!==this&&(this.expanded=!1)};
_.S.onExpandableTileUnlock=function(){this.isLocked=!1};
Wn.prototype.onTap=Wn.prototype.onTap;Wn.prototype.onMouseOver=Wn.prototype.onMouseOver;Wn.prototype.onExpandedChanged=Wn.prototype.onExpandedChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Wn.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wn.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Wn.prototype,"expanded",void 0);_.V([_.bH("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wn.prototype,"onExpandedChanged",null);_.V([_.$n("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wn.prototype,"onMouseOver",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wn.prototype,"onTap",null);
_.V([_.yj({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Wn);
_.G(Wn,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(PLx!==void 0)return PLx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return PLx=D},{mode:1});var $Qb;var pj=function(){var D=_.w.apply(this,arguments)||this;D.buttonOverrides={style:"overlay"};D.useYtdPlayer=_.b("use_ytd_player_for_desktop_masthead");D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.playbackFinished=!1;D.JSC$15855_playerManager=null;D.JSC$15855_mastheadCounter=new ai4;return D};
_.h(pj,_.w);_.S=pj.prototype;_.S.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"}}}};
_.S.created=function(){this.JSC$15855_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15855_playerManager=new f_)};
_.S.ready=function(){var D=this;this.JSC$15855_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var C=_.SY(this.hostElement).querySelector("#player");this.useYtdPlayer?C.style.display="none":(this.ytdPlayer.style.display="none",o$C(this.JSC$15855_playerManager,C,function(){D.onPlaybackEnded()}),_.SY(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var X;
((X=D.data)==null?0:X.navigationEndpoint)&&_.lE(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})}))};
_.S.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15855_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.S.attached=function(){var D=this;_.TA(function(){D.maybePlayVideo()})};
_.S.maybePlayVideo=function(){var D=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$15855_playerManager.playVideo(),this.getPlayerPromise().then(function(){D.JSC$15855_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.S.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15855_playerManager.stopVideo()};
_.S.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var D,C={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((D=this.data.playbackStartMs)!=null?D:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(C);this.setupYtdPlayer()}else pZd(this.JSC$15855_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(WiM(this.JSC$15855_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.S.getPlayerPromise=function(){return this.JSC$15855_playerManager.getPlayerPromise()};
_.S.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15855_playerManager.mute():this.JSC$15855_playerManager.unMute()};
_.S.onYtNavigate=function(D){var C=W1W(D.detail.endpoint),X=pYo(this.data.clickthroughReportingData);C&&X&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=X:_.jc(C,X,30))};
_.S.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.S.onExpandedChanged=function(){this.expanded?(_.Ct(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.S.onMouseOver=function(){this.maybeExpand()};
_.S.onTap=function(){this.maybeExpand()};
_.S.onExpandableTileExpanding=function(D){D!==this&&(this.stopVideo(),this.expanded=!1)};
_.S.onExpandableTileLockAndCollapse=function(D){D!==this&&(this.isLocked=!0,this.expanded=!1)};
_.S.onExpandableTileUnlock=function(){this.isLocked=!1};
_.S.lockAndCollapseExpandableTiles=function(){_.DS(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.S.unlockExpandableTiles=function(){_.DS(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.S.setupYtdPlayer=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D.ytdPlayer.getPlayerPromise(),2);C=X.yieldResult;C.addEventListener("onStateChange",function(c){D.onPlayerStateChange(c)});
C.addEventListener("onCueRangeExit",function(c){D.onCueRangeExit(c)});
_.t_(X)})};
_.S.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var C=D.getCurrentTime(),X,c,W=C+((c=(X=this.data)==null?void 0:X.playbackDurationMs)!=null?c:0)/1E3;D.addCueRange("playback",C,W);this.JSC$15855_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.S.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.S.toggleMute=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.ytdPlayer.getPlayerPromise(),2);X=c.yieldResult;D?X.mute():X.unMute();_.t_(c)})};
pj.prototype.onTap=pj.prototype.onTap;pj.prototype.onMouseOver=pj.prototype.onMouseOver;pj.prototype.onExpandedChanged=pj.prototype.onExpandedChanged;pj.prototype.onYtNavigate=pj.prototype.onYtNavigate;pj.prototype.onYtToggleButton=pj.prototype.onYtToggleButton;pj.prototype.dataChanged=pj.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],pj.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pj.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],pj.prototype,"expanded",void 0);_.V([_.n(),_.z("design:type",Object)],pj.prototype,"buttonOverrides",void 0);
_.V([_.n(),_.z("design:type",Object)],pj.prototype,"useYtdPlayer",void 0);_.V([_.kn("#ytd-player"),_.z("design:type",Object)],pj.prototype,"ytdPlayer",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pj.prototype,"dataChanged",null);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pj.prototype,"onYtToggleButton",null);
_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pj.prototype,"onYtNavigate",null);_.V([_.bH("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pj.prototype,"onExpandedChanged",null);_.V([_.$n("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pj.prototype,"onMouseOver",null);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pj.prototype,"onTap",null);_.V([_.yj({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],pj);
_.G(pj,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if($Qb!==void 0)return $Qb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $Qb=D},{mode:1});var vp5;var Sw=function(){return _.w.apply(this,arguments)||this};
_.h(Sw,_.w);Sw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Sw.prototype.onShow=function(){var D=_.SY(this.hostElement).querySelector("#live-description"),C;D&&((C=this.data)==null?0:C.shortLiveDescription)&&D.clientWidth<D.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Sw.prototype.onYtToggleButton=function(D){var C,X=(C=this.data)==null?void 0:C.videoReminderEntityKey;X&&this.ytdReduxBehavior.dispatch(_.bK("upcomingEventReminderStateEntity",X,{key:X,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Sw.prototype.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.r((D=this.data)==null?void 0:D.cta,_.Pj)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Sw.prototype.videoReminderStateChanged=Sw.prototype.videoReminderStateChanged;Sw.prototype.onYtToggleButton=Sw.prototype.onYtToggleButton;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Sw.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Sw.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:Wsr}),_.z("design:type",Object)],Sw.prototype,"videoReminderState",void 0);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Sw.prototype,"onYtToggleButton",null);_.V([_.vr("videoReminderState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sw.prototype,"videoReminderStateChanged",null);
_.V([_.yj({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Sw);
_.G(Sw,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(vp5!==void 0)return vp5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return vp5=D},{mode:_.Wc("kevlar_poly_si_batch_j065")?1:2});var ixx;var UK=function(){var D=_.w.apply(this,arguments)||this;D.useYtdPlayer=_.b("use_ytd_player_for_desktop_masthead");D.buttonOverrides={style:"overlay"};D.JSC$15863_playerManager=null;D.JSC$15863_mastheadCounter=new ai4;D.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return D};
_.h(UK,_.w);_.S=UK.prototype;_.S.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"}}}};
_.S.created=function(){this.JSC$15863_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15863_playerManager=new f_)};
_.S.ready=function(){var D=this;this.JSC$15863_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var C;(C=this.embeddedPlayer)==null||C.remove()}else{var X;(X=this.ytdPlayer)==null||X.remove();o$C(this.JSC$15863_playerManager,this.embeddedPlayer,function(){D.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){D.data&&D.data.navigationEndpoint&&_.lE(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})})}};
_.S.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15863_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.S.dataChanged=function(){var D=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var C=!this.data.disableAutoPlayback,X,c={autoplay:C,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((X=this.data.playbackStartMs)!=null?X:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(C?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(c);this.setupYtdPlayer()}else pZd(this.JSC$15863_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(WiM(this.JSC$15863_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15863_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.DS(D.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");D.JSC$15863_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.S.getPlayerPromise=function(){return this.JSC$15863_playerManager.getPlayerPromise()};
_.S.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15863_playerManager.mute():this.JSC$15863_playerManager.unMute()};
_.S.onYtNavigate=function(D){var C=W1W(D.detail.endpoint),X=pYo(this.data.clickthroughReportingData);C&&X&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=X:_.jc(C,X,30))};
_.S.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15863_playerManager.stopVideo()};
_.S.setupYtdPlayer=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D.ytdPlayer.getPlayerPromise(),2);C=X.yieldResult;C.addEventListener("onStateChange",function(c){D.onPlayerStateChange(c)});
C.addEventListener("onCueRangeExit",function(c){D.onCueRangeExit(c)});
_.t_(X)})};
_.S.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var C=D.getCurrentTime(),X,c,W=C+((c=(X=this.data)==null?void 0:X.playbackDurationMs)!=null?c:0)/1E3;D.addCueRange("playback",C,W);_.DS(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15863_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.S.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.S.toggleMute=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.ytdPlayer.getPlayerPromise(),2);X=c.yieldResult;D?X.mute():X.unMute();_.t_(c)})};
_.$a.Object.defineProperties(UK.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D,C;if(!((D=this.data)==null?0:(C=D.accessibilityData)==null?0:C.label))return"Ad primary link";var X,c;return _.I7("AD_TITLE",{title:(X=this.data)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label})}}});
UK.prototype.onYtMastheadHidden=UK.prototype.onYtMastheadHidden;UK.prototype.onYtNavigate=UK.prototype.onYtNavigate;UK.prototype.onYtToggleButton=UK.prototype.onYtToggleButton;UK.prototype.dataChanged=UK.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],UK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UK.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],UK.prototype,"useYtdPlayer",void 0);_.V([_.kn("ytd-toggle-button-renderer"),_.z("design:type",Object)],UK.prototype,"muteButton",void 0);_.V([_.n(),_.z("design:type",Object)],UK.prototype,"buttonOverrides",void 0);
_.V([_.e("data.accessibilityData.label"),_.z("design:type",String),_.z("design:paramtypes",[])],UK.prototype,"titleAriaLabel",null);_.V([_.kn("#replay-button"),_.z("design:type",Object)],UK.prototype,"replayButton",void 0);_.V([_.kn("#player-container"),_.z("design:type",Object)],UK.prototype,"playerContainer",void 0);_.V([_.kn("#player"),_.z("design:type",Object)],UK.prototype,"embeddedPlayer",void 0);_.V([_.kn("#ytd-player"),_.z("design:type",Object)],UK.prototype,"ytdPlayer",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UK.prototype,"dataChanged",null);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],UK.prototype,"onYtToggleButton",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],UK.prototype,"onYtNavigate",null);
_.V([_.$n("yt-masthead-hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UK.prototype,"onYtMastheadHidden",null);_.V([_.yj({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],UK);
_.G(UK,"ytd-video-masthead-ad-primary-video-renderer",function(){if(ixx!==void 0)return ixx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ixx=D},{mode:2});var knx;var gI=function(){var D=_.w.apply(this,arguments)||this;D.collapsed=!1;D.impressionResolver=_.zr();D.JSC$15867_activeViewMeasurementDataResolver=_.zr();D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.h(gI,_.w);_.S=gI.prototype;_.S.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"}}}};
_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.ready=function(){var D=this;_.SY(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){D.expandAd()});
this.hostElement.addEventListener("yt-action",function(C){if(C.detail.actionName==="yt-service-request"){var X=C.detail.args[1];X.videoMastheadAdMuteCommand&&(D.collapseAd(X.videoMastheadAdMuteCommand.encryptedMastheadId),C.stopPropagation())}})};
_.S.attached=function(){var D=this;_.TA(function(){D.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(C){if(!D.collapsed){C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,pQ(X.baseUrl,X.attributionSrcMode);D.data.impressionCommand=void 0}});
this.JSC$15867_activeViewMeasurementDataResolver.promise.then(function(C){Fu(D.activeView,C)});
_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZQ(D.activeView)})};
_.S.dataChanged=function(){var D;((D=this.data.impressionCommand)==null?0:D.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var C;((C=this.data)==null?0:C.activeView)&&this.JSC$15867_activeViewMeasurementDataResolver.resolve(this.data.activeView);(D=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(D.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.S.computeWidescreen=function(D){var C;return!!(D&&((C=_.r(D,F04))==null?0:C.isWidescreen))};
_.S.computeExpandable=function(D){return!!(D&&D.length>0)};
_.S.onIronResize=function(){if(this.expandable){var D=_.SY(this.hostElement).querySelector("#expandable-tile-container :first-child");D&&!D.expanded&&(D.expanded=!0)}};
_.S.handleMuteAd=function(){this.collapseAd(null)};
_.S.restoreCollapsedState=function(D){this.collapsed=_.PE().get("HIDDEN_MASTHEAD_ID")===D};
_.S.collapseAd=function(D){if(D){var C=_.PE();C.set("HIDDEN_MASTHEAD_ID",D);C.save()}(D=_.SY(this.hostElement).querySelector("#video"))&&_.lE(D,"yt-masthead-hidden");this.collapsed=!0};
_.S.expandAd=function(){var D=_.PE();D.set("HIDDEN_MASTHEAD_ID",!1);D.save();location.reload()};
_.S.detached=function(){_.b("stop_av_measurement_on_detach")&&ZQ(this.activeView)};
gI.prototype.onIronResize=gI.prototype.onIronResize;gI.prototype.dataChanged=gI.prototype.dataChanged;_.V([_.m(_.lR),_.z("design:type",Object)],gI.prototype,"ironResizableBehavior",void 0);_.V([_.m(_.v9),_.z("design:type",Object)],gI.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],gI.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gI.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.z("design:type",Boolean)],gI.prototype,"widescreen",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.z("design:type",Boolean)],gI.prototype,"expandable",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],gI.prototype,"collapsed",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gI.prototype,"dataChanged",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gI.prototype,"onIronResize",null);_.V([_.yj({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],gI);
_.G(gI,"ytd-video-masthead-ad-v3-renderer",function(){if(knx!==void 0)return knx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return knx=D},{mode:2});var ar=function(){return _.w.apply(this,arguments)||this};
_.h(ar,_.w);_.S=ar.prototype;_.S.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.S.ready=function(){var D=this;WTd(function(){D.isAttached&&fT(D.JSC$15872_storedAdSlotMetadata,D.JSC$15872_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&Cj(q0(),D.JSC$15872_storedAdSlotMetadata,D.JSC$15872_storedAdLayoutMetadata)})};
_.S.attached=function(){fT(this.JSC$15872_storedAdSlotMetadata,this.JSC$15872_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qEb(q0(),this.JSC$15872_storedAdSlotMetadata,this.JSC$15872_storedAdLayoutMetadata)};
_.S.detached=function(){fT(this.JSC$15872_storedAdSlotMetadata,this.JSC$15872_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Cj(q0(),this.JSC$15872_storedAdSlotMetadata,this.JSC$15872_storedAdLayoutMetadata)};
_.S.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15872_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15872_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15872_storedAdLayoutMetadata!==void 0&&this.JSC$15872_storedAdSlotMetadata!==void 0&&Cj(q0(),this.JSC$15872_storedAdSlotMetadata,this.JSC$15872_storedAdLayoutMetadata),qEb(q0(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15872_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15872_storedAdSlotMetadata=this.adSlotMetadata)};
_.$a.Object.defineProperties(ar.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
ar.prototype.onAdMetadataChanged=ar.prototype.onAdMetadataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ar.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ar.prototype,"data",void 0);_.V([_.e("data.adLayoutMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],ar.prototype,"adLayoutMetadata",null);
_.V([_.n(),_.z("design:type",Object)],ar.prototype,"adSlotMetadata",void 0);_.V([_.vr("adLayoutMetadata","adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ar.prototype,"onAdMetadataChanged",null);_.V([_.yj({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],ar);
_.G(ar,"ytd-page-top-ad-layout-renderer",function(){if(OxN!==void 0)return OxN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return OxN=
D},{mode:_.Wc("kevlar_poly_si_batch_j070")?1:2});var u8N;var Ir=function(){var D=_.w.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.typographyBump=!1;D.extractOverlay=!1;D.extractActionBar=!1;return D};
_.h(Ir,_.w);_.S=Ir.prototype;
_.S.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.S.ready=function(){var D=this;WTd(function(){D.isAttached&&D.adSlotMetadata&&Mhq(q0(),D.adSlotMetadata)})};
_.S.attached=function(){if(this.adSlotMetadata){var D;if(this.adSlotMetadata===((D=this.data)==null?void 0:D.adSlotMetadata))j5f(q0(),this.adSlotMetadata);else{var C;_.fQ(Error("Oh`"+this.adSlotMetadata+"`"+((C=this.data)==null?void 0:C.adSlotMetadata)))}}};
_.S.detached=function(){this.adSlotMetadata&&Mhq(q0(),this.adSlotMetadata)};
_.S.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.S.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Mhq(q0(),this.adSlotMetadata),j5f(q0(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.$a.Object.defineProperties(Ir.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var D,C,X=_.r((D=this.data)==null?void 0:(C=D.fulfillmentContent)==null?void 0:C.fulfilledLayout,_.GZb),c;return(D=(c=_.r(X==null?void 0:X.renderingContent,ZXe))==null?void 0:c.layout)?D.toLowerCase().replace(/_/g,"-"):""}}});
Ir.prototype.onAdSlotMetadataChanged=Ir.prototype.onAdSlotMetadataChanged;Ir.prototype.onTypographyBumpChanged=Ir.prototype.onTypographyBumpChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Ir.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ir.prototype,"rendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Ir.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Ir.prototype,"noBottomMargin",void 0);_.V([_.n(),_.z("design:type",Object)],Ir.prototype,"overlayDensity",void 0);_.V([_.n(),_.z("design:type",Object)],Ir.prototype,"typographyBump",void 0);_.V([_.n(),_.z("design:type",Object)],Ir.prototype,"extractOverlay",void 0);_.V([_.n(),_.z("design:type",Object)],Ir.prototype,"extractActionBar",void 0);
_.V([_.kn("ytd-in-feed-ad-layout-renderer"),_.z("design:type",HTMLElement)],Ir.prototype,"inFeedAdLayoutRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],Ir.prototype,"layout",null);_.V([_.vr("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ir.prototype,"onTypographyBumpChanged",null);
_.V([_.vr("data.adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ir.prototype,"onAdSlotMetadataChanged",null);_.V([_.yj({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Ir);
_.G(Ir,"ytd-ad-slot-renderer",function(){if(u8N!==void 0)return u8N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return u8N=D},{mode:_.Wc("kevlar_poly_si_batch_j077")?
1:2});var Qgf;var OK=function(){return _.w.apply(this,arguments)||this};
_.h(OK,_.w);_.S=OK.prototype;_.S.created=function(){this.activeView=new wv(this.hostElement)};
_.S.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"}}}};
_.S.maybeComputeHref=function(){return null};
_.S.onTap=function(){};
_.S.onThumbnailContainerClick=function(D){this.onClick(D)};
_.S.onClick=function(D){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint;X&&_.r(X,_.TC)&&(this.ytSparklesClickLocationBehavior.handleClick(X,D,!1),D.stopPropagation())};
_.S.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var D=_.U(this.data.impressionUrls),C=D.next();!C.done;C=D.next())C=C.value,joW(C,qsZ(C));this.data.activeView&&Fu(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",OK.JSC$15880_DEFAULT_CLICK_LOCATION_BEHAVIOR,OK.JSC$15880_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"))}};
_.S.attached=function(){var D=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ZQ(D.activeView)})};
_.S.detached=function(){_.b("stop_av_measurement_on_detach")&&ZQ(this.activeView)};
_.$a.Object.defineProperties(OK.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
OK.prototype.dataChanged=OK.prototype.dataChanged;OK.prototype.onTap=OK.prototype.onTap;OK.JSC$15880_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
OK.JSC$15880_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],OK.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],OK.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.n({selector:_.Y_}),_.z("design:type",Object)],OK.prototype,"isGridViewEnabled",void 0);_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OK.prototype,"watchFeedBigThumbs",null);_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],OK.prototype,"thumbnailWidth",null);_.V([_.n(),_.z("design:type",Object)],OK.prototype,"data",void 0);
_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],OK.prototype,"thumbnail",void 0);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OK.prototype,"onTap",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OK.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],OK);
_.G(OK,"ytd-compact-promoted-video-renderer",function(){if(Qgf!==void 0)return Qgf;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Qgf=D},{mode:1});var Bm5;_.sI("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var A1=function(){return _.w.apply(this,arguments)||this};
_.h(A1,_.w);A1.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],A1.prototype,"data",void 0);_.V([_.yj({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],A1);
_.G(A1,"ytd-search-pyv-renderer",function(){if(Bm5!==void 0)return Bm5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Bm5=D},{mode:1});var bxJ;_.sI("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Pn=function(){var D=_.w.apply(this,arguments)||this;D.roundedContainer=!0;D.JSC$15888_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.h(Pn,_.w);_.S=Pn.prototype;
_.S.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}}};
_.S.onStampFinished=function(){this.JSC$15888_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.S.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.SY(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");D?D.openDialog():this.JSC$15888_handleOpenPostCommentDialogActionAfterStamp=!0};
_.S.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.S.computeHideBorder=function(){return this.isInEngagementPanel};
_.S.computeIsCompact=function(){return this.isInEngagementPanel};
_.S.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.S.computeUsesFullLockup=function(){var D,C=(D=this.data)==null?void 0:D.post,X;D=(X=_.r(C,Dib))==null?void 0:X.surface;var c;X=(c=_.r(C,cx4))==null?void 0:c.originalPost;var W;if(c=D||((W=_.r(X,Dib))==null?void 0:W.surface))return!this.computeUsesCompactLockup(c)&&this.useUpdatedRepostUi;var p;return((p=_.r(C,cx4))==null?void 0:p.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.$a.Object.defineProperties(Pn.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var D,C;return((C=_.r((D=this.data)==null?void 0:D.post,Dib))==null?void 0:C.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useUpdatedRepostUi}}});
Pn.prototype.onYtCommentModerationPanelEmpty=Pn.prototype.onYtCommentModerationPanelEmpty;Pn.prototype.onStampFinished=Pn.prototype.onStampFinished;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Pn.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Pn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Pn.prototype,"roundedContainer",void 0);_.V([_.n({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Pn.prototype,"hideBorder",void 0);_.V([_.n({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Pn.prototype,"isCompact",void 0);
_.V([_.n({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Pn.prototype,"usesFullLockup",void 0);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pn.prototype,"onStampFinished",null);
_.V([_.$n("ytd-comment-moderation-panel-empty"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Pn.prototype,"onYtCommentModerationPanelEmpty",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Pn.prototype,"isInEngagementPanel",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Pn.prototype,"useUpdatedRepostUi",null);
_.V([_.yj({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Pn);
_.G(Pn,"ytd-backstage-post-thread-renderer",function(){if(bxJ!==void 0)return bxJ;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bxJ=D},{mode:1});var rk5;var $M=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h($M,_.w);$M.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
$M.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var D=this.data.thumbnail.thumbnails;this.isDarkTheme&&(D=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(D=_.XA(D,24,void 0,"height"))?D:void 0}};
$M.prototype.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
$M.prototype.computeHasText=function(){var D;return!((D=this.data)==null||!D.text)};
_.$a.Object.defineProperties($M.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Hv(this.bannerImageUrl))+'");'}}});
$M.prototype.computeHasText=$M.prototype.computeHasText;$M.prototype.computeBannerImageUrl=$M.prototype.computeBannerImageUrl;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],$M.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],$M.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],$M.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",String)],$M.prototype,"bannerImageUrl",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.z("design:type",Boolean)],$M.prototype,"hasText",void 0);_.V([_.vr("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$M.prototype,"computeBannerImageUrl",null);
_.V([_.vr("data.text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$M.prototype,"computeHasText",null);_.V([_.e("bannerImageUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],$M.prototype,"bannerStyle",null);_.V([_.yj({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],$M);
_.G($M,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(rk5!==void 0)return rk5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return rk5=D},{mode:1});var Kjf;var vn=function(){return _.w.apply(this,arguments)||this};
_.h(vn,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],vn.prototype,"data",void 0);_.V([_.yj({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],vn);
_.G(vn,"ytd-backstage-zero-state-renderer",function(){if(Kjf!==void 0)return Kjf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Kjf=D},{mode:1});var hQb;var i4=function(){return _.w.apply(this,arguments)||this};
_.h(i4,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],i4.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],i4.prototype,"icon",void 0);_.V([_.yj({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],i4);
_.G(i4,"ytd-post-filter-zero-state-renderer",function(){if(hQb!==void 0)return hQb;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return hQb=D},{mode:1});var xQd;var LjC={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},kM=function(){return _.w.apply(this,arguments)||this};
_.h(kM,_.w);kM.prototype.configureRendererStamper=function(){return LjC};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kM.prototype,"rendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kM.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],kM.prototype,"icon",void 0);_.V([_.yj({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],kM);
_.G(kM,"ytd-post-scheduling-zero-state-renderer",function(){if(xQd!==void 0)return xQd;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return xQd=D},{mode:1});var sgd;var u4=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return D};
_.h(u4,_.w);u4.prototype.onTabsActivate=function(D){this.data&&this.data.tabs&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[D.detail.selected].navigationEndpoint})};
u4.prototype.shouldShowTotalCount=function(D){return D&&D.totalCount!==void 0};
u4.prototype.handleUpdatePostsTotalCountAction=function(D){var C=this.get(["data.tabs",1,"totalCount"]),X=this.get("updatePostsTotalCountAction.updateType",D);D=this.get("updatePostsTotalCountAction.number",D);C!==void 0&&X!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&D&&(X==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(C)+D):X==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(C)-D))};
_.$a.Object.defineProperties(u4.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var D=0,C=this.data.tabs.length;D<C;D++)if(this.data.tabs[D].selected)return D;return 0}}});
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],u4.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],u4.prototype,"rendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],u4.prototype,"data",void 0);_.V([_.e("data.tabs"),_.z("design:type",Number),_.z("design:paramtypes",[])],u4.prototype,"selected",null);_.V([_.yj({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],u4);
_.G(u4,"ytd-post-stream-filter-renderer",function(){if(sgd!==void 0)return sgd;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return sgd=D},{mode:1});var mQJ;var QE=function(){return _.w.apply(this,arguments)||this};
_.h(QE,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],QE.prototype,"kevlarBehaviors",void 0);_.V([_.n(),_.z("design:type",Object)],QE.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],QE);
_.G(QE,"ytd-channel-age-gate-renderer",function(){if(mQJ!==void 0)return mQJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mQJ=D},{mode:1});var eQ5;_.sI("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Bn=function(){var D=_.w.apply(this,arguments)||this;D.data=null;return D};
_.h(Bn,_.w);Bn.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$a.Object.defineProperties(Bn.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?0:(C=D.title)==null?0:(X=C.runs)==null?0:X.length)?147:160}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Bn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],Bn.prototype,"imageSizePx",null);_.V([_.yj({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Bn);
_.G(Bn,"ytd-channel-owner-empty-state-renderer",function(){if(eQ5!==void 0)return eQ5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return eQ5=D},{mode:1});var Ep4;var tMe;var b4=function(){var D=_.w.apply(this,arguments)||this;D.boundSubmitSearch=function(){D.submitSearch()};
D.boundClearSearch=function(){D.clearSearch()};
return D};
_.h(b4,_.w);_.S=b4.prototype;_.S.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]]"}}}}}};
_.S.toggleClearButton=function(){this.hideClearButton=z35||!this.input.value};
_.S.submitOnEnterKeyUp=function(D){D.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.S.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.S.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.S.submit=function(){_.lE(this.hostElement,"search-query-changed",this.input.value)};
b4.prototype.toggleClearButton=b4.prototype.toggleClearButton;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],b4.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],b4.prototype,"hideClearButton",void 0);_.V([_.n(),_.z("design:type",Object)],b4.prototype,"boundSubmitSearch",void 0);_.V([_.n(),_.z("design:type",Object)],b4.prototype,"boundClearSearch",void 0);_.V([_.kn("#input"),_.z("design:type",Object)],b4.prototype,"input",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b4.prototype,"toggleClearButton",null);
_.V([_.yj({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],b4);
_.G(b4,"ytd-channel-switcher-search-box-renderer",function(){if(tMe!==void 0)return tMe;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tMe=D},{mode:1});var Nm5;var rI=function(){var D=_.w.apply(this,arguments)||this;D.boundSubmit=function(){D.submit()};
return D};
_.h(rI,_.w);_.S=rI.prototype;_.S.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"}}}}};
_.S.ready=function(){var D=this;this.form.addEventListener("submit",function(C){return D.onSubmit(C)})};
_.S.onSubmit=function(D){D.preventDefault();return!1};
_.S.toggleClearButton=function(){this.hideClearButton=z35||!this.input.value};
_.S.submitOnEnterKeyUp=function(D){D.keyCode===13&&this.submit()};
_.S.submit=function(){var D=this.data.endpoint,C=(0,_.ZI.unsafeClone)(D);_.r(C,_.Pl)?_.r(C,_.Pl).query=this.input.value:_.r(C,_.$o)&&(_.r(C,_.$o).query=this.input.value);var X=_.r(C.commandMetadata,_.ge);(X==null?0:X.url)?(X.url=_.D0(X.url,"query",this.input.value),_.lE(this.hostElement,"yt-navigate",{endpoint:C})):_.r(C,tG5)?(_.r(C,tG5).channelSwitcherQuery=this.input.value,_.iX().resolve(_.uX).resolveCommand(C,{form:{element:this.hostElement}})):(D=Error("Ph`"+JSON.stringify(D)),_.MN(D))};
_.S.getUrl=function(D){return this.get("commandMetadata.webCommandMetadata.url",D)};
rI.prototype.toggleClearButton=rI.prototype.toggleClearButton;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rI.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],rI.prototype,"hideClearButton",void 0);
_.V([_.n(),_.z("design:type",Object)],rI.prototype,"boundSubmit",void 0);_.V([_.kn("#form"),_.z("design:type",HTMLFormElement)],rI.prototype,"form",void 0);_.V([_.kn("#input"),_.z("design:type",Object)],rI.prototype,"input",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rI.prototype,"toggleClearButton",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],rI);
_.G(rI,"ytd-search-box-renderer",function(){if(Nm5!==void 0)return Nm5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Nm5=D},{mode:2});var Kj=function(){var D=_.w.apply(this,arguments)||this;D.showSearchBox=!0;return D};
_.h(Kj,_.w);Kj.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Kj.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Kj.prototype,"showSearchBox",void 0);_.V([_.yj({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Kj);
_.G(Kj,"ytd-channel-switcher-header-renderer",function(){if(Ep4!==void 0)return Ep4;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Ep4=D},{mode:1});var Yck;var ykx;var h1=function(){var D=_.w.apply(this,arguments)||this;D.isDisplayed=!0;return D};
_.h(h1,_.w);_.S=h1.prototype;_.S.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.dataChanged=function(){this.isDisplayed=!0};
_.S.computeType=function(D){return D||"UNKNOWN"};
_.S.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isDisplayed=!1};
_.S.onClose=function(){this.isDisplayed=!1};
h1.prototype.onYtServiceRequestCompleted=h1.prototype.onYtServiceRequestCompleted;h1.prototype.dataChanged=h1.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],h1.prototype,"data",void 0);
_.V([_.n({computed:"computeType(data.type)",reflectToAttribute:!0}),_.z("design:type",String)],h1.prototype,"type",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],h1.prototype,"isDisplayed",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h1.prototype,"dataChanged",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],h1.prototype,"onYtServiceRequestCompleted",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],h1);
_.G(h1,"ytd-alert-with-button-renderer",function(){if(ykx!==void 0)return ykx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ykx=D},{mode:1});var xM=function(){var D=_.w.apply(this,arguments)||this;D.noResult=!1;D.enableAlertBanner=!1;D.dismissedAlertBanner=!1;D.hideCreateChannelButton=!1;D.boundDismissAlertBanner=function(){D.dismissAlertBanner()};
D.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return D};
_.h(xM,_.w);_.S=xM.prototype;_.S.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.S.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.S.updateChannelSwitcherAction=function(D){var C;D=(C=_.r(D,sCe))==null?void 0:C.page;_.r(D,L_f)!==void 0&&(this.data=_.r(D,L_f))};
_.S.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]]"}}}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.S.searchQueryChanged=function(D,C){if(this.data&&this.data.contents&&this.data.contents.length){D=[];var X=[];this.hideCreateChannelButton=this.noResult=!1;for(var c=document.querySelectorAll("ytd-account-item-renderer"),W=_.U(c),p=W.next();!p.done;p=W.next())p=p.value,X.push(p),p.style.display="block";this.resetRightBorder(X);if(C){this.hideCreateChannelButton=!0;for(X=1;X<this.data.contents.length;X++)if(p=this.data.contents[X],_.r(p,m4M)){var g=void 0,a=void 0;W=(g=_.r(p,m4M))==null?void 0:(a=
g.accountName)==null?void 0:a.simpleText;a=g=void 0;p=(g=_.r(p,m4M))==null?void 0:(a=g.channelHandle)==null?void 0:a.simpleText;(g=c[X-1])&&W&&_.AW(W,C)?D.push(g):_.b("enable_handle_search_on_channel_switcher")&&g&&p&&_.AW(p.toString(),C.toString())?D.push(g):g.style.display="none"}D.length===0&&(this.noResult=!0);this.resetRightBorder(D)}}};
_.S.resetRightBorder=function(D){for(var C=0;C<D.length;C++)D[C].style.borderRight=!this.hideCreateChannelButton&&(C+2)%3===0||this.hideCreateChannelButton&&(C+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.S.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.S.setShowSearchBox=function(D){if(D&&D.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var C=0;C<D.contents.length;C++)_.r(D.contents[C],_.dE)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.S.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.$a.Object.defineProperties(xM.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.contents)}}});
xM.prototype.onContinuationItemsUpdated=xM.prototype.onContinuationItemsUpdated;xM.prototype.searchQueryChanged=xM.prototype.searchQueryChanged;xM.prototype.onDataChanged=xM.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],xM.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],xM.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xM.prototype,"data",void 0);_.V([_.kn("ytd-channel-switcher-header-renderer"),_.z("design:type",Object)],xM.prototype,"channelSwitcherHeaderRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],xM.prototype,"noResult",void 0);
_.V([_.n(),_.z("design:type",Object)],xM.prototype,"enableAlertBanner",void 0);_.V([_.n(),_.z("design:type",Object)],xM.prototype,"dismissedAlertBanner",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xM.prototype,"hideCreateChannelButton",void 0);_.V([_.e("data.contents"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xM.prototype,"isLoading",null);_.V([_.n(),_.z("design:type",Object)],xM.prototype,"boundDismissAlertBanner",void 0);
_.V([_.n({computed:"computeButtonOverride()"}),_.z("design:type",Object)],xM.prototype,"buttonOverride",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xM.prototype,"onDataChanged",null);_.V([_.$n("search-query-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],xM.prototype,"searchQueryChanged",null);
_.V([_.$n("yt-next-continuation-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],xM.prototype,"onContinuationItemsUpdated",null);_.V([_.yj({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],xM);
_.G(xM,"ytd-channel-switcher-page-renderer",function(){if(Yck!==void 0)return Yck;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Yck=D},{mode:1});var npg;var wJb;var Lj=function(){var D=_.w.apply(this,arguments)||this;D.images=[];D.selectedImageIndex=0;return D};
_.h(Lj,_.w);_.S=Lj.prototype;
_.S.ready=function(){_.Kb(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Kb(this.JSC$15933_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Kb(this.JSC$15933_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Kb(this.JSC$15933_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.S.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.S.updateImageThumbnails=function(D){D=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:D.event_.detail});this.images.splice(this.selectedImageIndex,1,D);this.images=[].concat(_.VB(this.images))};
_.S.cancelImageRepositions=function(){this.selectedImageIndex=0;_.lE(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.S.saveImageRepositions=function(){this.selectedImageIndex=0;_.lE(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.$a.Object.defineProperties(Lj.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var D=this;return(this.images||[]).map(function(C,X){return{image:C,selected:X===D.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("ytd-backstage-image-preview-renderer"),_.z("design:type",Object)],Lj.prototype,"JSC$15933_imagePreviewContainer",void 0);_.V([_.kn(".thumbnail-images-container"),_.z("design:type",HTMLElement)],Lj.prototype,"thumbnailImagesContainer",void 0);_.V([_.n(),_.z("design:type",Array)],Lj.prototype,"images",void 0);
_.V([_.n(),_.z("design:type",Object)],Lj.prototype,"repositionInstructions",void 0);_.V([_.n(),_.z("design:type",Object)],Lj.prototype,"selectedImageIndex",void 0);_.V([_.e("images","selectedImageIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],Lj.prototype,"thumbnailRendererDatas",null);_.V([_.e("images","selectedImageIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lj.prototype,"selectedImageData",null);
_.V([_.yj({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Lj);
_.G(Lj,"ytd-backstage-multi-image-reposition-renderer",function(){if(wJb!==void 0)return wJb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return wJb=D},{mode:1});var sK=function(D,C){_.yg.call(this);this.uploadUrl=D;this.channelId=C;this.imagesUploadData=[]};
_.h(sK,_.yg);sK.prototype.getAllUploadStatuses=function(){var D=this,C,X,c;return _.I(function(W){if(W.nextAddress==1)return W.yield(Fj5(D),2);C=W.yieldResult;X=C.get("succeed");c=C.get("failed");return W.return(X.concat(c))})};
var Gnd=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(Fj5(D),2);C=c.yieldResult;X=C.get("failed");X.length>0&&Zx5(D,X);return c.return(D.getAllUploadStatuses())})},Fj5=function(D){var C,X,c,W,p,g,a;
return _.I(function(O){if(O.nextAddress==1)return C=new Map,O.yield(Promise.allSettled(D.imagesUploadData.map(function(P){return P.uploadPromise})),2);
X=O.yieldResult;c=[];W=_.U(X);for(p=W.next();!p.done;p=W.next())g=p.value,g.status==="fulfilled"&&c.push(g.value);a=D.imagesUploadData.map(function(P){return P.image}).filter(function(P){return c.every(function(k){return k.id!==P.id})});
C.set("succeed",c);C.set("failed",a);return O.return(C)})},Zx5=function(D,C){C=_.U(C);
for(var X=C.next();!X.done;X=C.next()){var c=D;X=X.value;VMb(c,X.id)>=0&&c.cancel(X.id);var W=new Tmx(X),p=_.kZ5(c.uploadUrl,{"X-YouTube-ChannelId":c.channelId},X.imageBlob);W.transfer=p;W.uploadPromise=Hxx(p,X);c.imagesUploadData.push(W);p.run()}};
sK.prototype.cancel=function(D){var C=VMb(this,D);C!==-1&&((C=this.imagesUploadData[C].transfer)&&C.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(X){return X.image.id!==D}))};
var VMb=function(D,C){return D.imagesUploadData.findIndex(function(X){return X.image.id===C})},Hxx=function(D,C){return new Promise(function(X,c){D.listen("l",function(){var W=D.getResponseText();
W?(W=JSON.parse(W).encryptedBlobId,C.encryptedBlobId=W,X(C)):c("upload failed")});
D.listen("n",function(){c("upload failed")})})},Tmx=function(D){this.image=D};var fP3=function(D,C,X,c,W){this.id=D;this.imageBlob=C;this.localImageSrc=X;this.naturalWidth=c;this.naturalHeight=W;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 Jkq=[".jpeg",".jpg",".png"],m3=function(){var D=_.w.apply(this,arguments)||this;D.showImagesPreview=!1;D.pollOptions=[];D.errorMessage="";D.optionPlaceholderText="";D.optionDefaultText="";D.JSC$15944_imageId=0;D.maxFileSizeMb=0;D.maxAspectRatio=0;D.invalidFileSizeError="";D.invalidAspectRatioError="";D.invalidFileTypeError="";D.imageSelector=new no(null,"single_file",Jkq);return D};
_.h(m3,_.w);_.S=m3.prototype;_.S.ready=function(){_.Kb(this.imageSelector,"j",this.onImageSelect,!1,this);_.Kb(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Kb(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.S.dataChanged=function(){var D,C,X=_.r((D=this.data)==null?void 0:(C=D.cellTemplate)==null?void 0:C.onEmptyCellTap,gZx);if(X&&X.uploadUrl&&X.channelId){var c;this.maxFileSizeMb=((c=X.imageValidationInfo)==null?void 0:c.maxFileSizeMb)||0;var W;this.maxAspectRatio=((W=X.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0;var p;this.invalidFileSizeError=this.getSimpleString((p=this.data)==null?void 0:p.invalidFileSizeError);var g;this.invalidAspectRatioError=this.getSimpleString((g=this.data)==
null?void 0:g.invalidAspectRatioError);var a;this.invalidFileTypeError=this.getSimpleString((a=this.data)==null?void 0:a.invalidFileTypeError);this.uploadManager=new sK(X.uploadUrl,X.channelId)}};
_.S.onEditorInfoChange=function(){this.optionPlaceholderText=_.Mh(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Mh(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.S.observeAddImageError=function(){this.errorMessage!==""&&_.lE(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.S.onPollOptionsChange=function(){for(var D=!1,C=[],X=0;X<this.pollOptions.length;X++){var c=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(X+1);this.pollOptions[X].placeholderText!==c?(D=!0,C.push(Object.assign({},this.pollOptions[X],{placeholderText:c}))):C.push(this.pollOptions[X])}D&&(this.pollOptions=C);this.isValid()?_.lE(this.hostElement,"yt-commentbox-post-enable"):_.lE(this.hostElement,"yt-commentbox-post-disable")};
_.S.createPollOptions=function(D){var C=[],X;D=(X=D==null?void 0:D.minPollOptions)!=null?X:0;for(X=0;X<D;X++)C.push(this.createPollOption());return C};
_.S.onImageSelect=function(D){var C=this,X,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1){if(C.selectedImageIndex===void 0)return O.jumpTo(0);X=D.files[0];C.errorMessage="";c=C.validateImage(X);if(c!=="")return C.errorMessage=c,O.return();W=new hF(C.maxAspectRatio,!1,!0);return O.yield(W.transform(X),3)}if(O.nextAddress!=4)return p=O.yieldResult,p.transformedData?p.invalidAspectRatio?(C.errorMessage=C.invalidAspectRatioError,O.return()):O.yield(dut(C.JSC$15944_imageId,D.files[0],p.transformedData),
4):(C.errorMessage=C.invalidFileTypeError,O.return());g=O.yieldResult;C.JSC$15944_imageId++;Zx5(C.uploadManager,[g]);a=Object.assign({},C.pollOptions[C.selectedImageIndex],{image:g});C.pollOptions.splice(C.selectedImageIndex,1,a);C.refreshPollOptions();_.lE(C.hostElement,"yt-backstage-poll-image-select");_.t_(O)})};
_.S.validateImage=function(D){return D.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.S.refreshPollOptions=function(){this.pollOptions=[].concat(_.VB(this.pollOptions))};
_.S.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.VB(this.pollOptions),[this.createPollOption()]))};
_.S.onRemovePollOption=function(D){var C=this.pollOptions[D.model.index];C&&C.image&&this.uploadManager.cancel(C.image.id);this.pollOptions.splice(D.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.lE(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.S.onTextInput=function(){this.refreshPollOptions()};
_.S.onImageButtonClick=function(D){this.selectedImageIndex=D.model.index;this.imageSelector.click()};
_.S.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.S.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.S.saveImageRepositions=function(D){D=D.event_.detail;for(var C=0,X=[],c=_.U(this.pollOptions),W=c.next();!W.done;W=c.next())W=W.value,W.image!==void 0?(W=Object.assign({},W,{image:D[C]}),X.push(W),C++):X.push(W);this.showImagesPreview=!1;this.pollOptions=[].concat(_.VB(X))};
_.S.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 D=0,C=_.U(this.pollOptions),X=C.next();!X.done;X=C.next())if(X=X.value,X.optionText.trim()!==""||X.image!==void 0){if(!X.image||this.hasCustomOptionText&&X.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;D++}return D>=Number(this.editorInfo.minPollOptions)};
_.S.getAllUploadStatuses=function(){var D=this,C,X,c,W;return _.I(function(p){if(p.nextAddress==1)return p.yield(D.uploadManager.getAllUploadStatuses(),2);C=p.yieldResult;X=_.U(C);for(c=X.next();!c.done;c=X.next())if(W=c.value,W.encryptedBlobId===void 0)return p.return(Gnd(D.uploadManager));return p.return(C)})};
_.S.getPostCreateOptions=function(){for(var D=[],C=_.U(this.pollOptions),X=C.next();!X.done;X=C.next())X=X.value,X.image!==void 0&&D.push({text:this.hasCustomOptionText?X.optionText:X.placeholderText,image:X.image});return D};
_.S.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.S.createButtonRenderer=function(D,C){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleString(D)}},isDisabled:C}};
_.S.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.S.computeThumbnailRendererData=function(D){return D?{image:D,selected:!1}:void 0};
_.S.getSimpleString=function(D){return _.Mh(D)};
_.S.updateOptionTextFromBinding=function(D){if(D.target){var C=Array.from(_.SY(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(D.target);if(C>=0){var X;this.pollOptions[C].optionText=(X=D.detail.value)!=null?X:""}}};
_.$a.Object.defineProperties(m3.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,C;return this.pollOptions.length<((C=(D=this.editorInfo)==null?void 0:D.maxPollOptions)!=null?C:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(D){return D.image}).map(function(D){return D.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var D,C=(D=this.data)==null?void 0:D.addOptionButtonText;return C?this.createButtonRenderer(C,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var D,C=(D=this.data)==null?void 0:D.repositionImagesButtonLabel;return C?this.createButtonRenderer(C,!this.hasImages):void 0}}});
m3.prototype.onPollOptionsChange=m3.prototype.onPollOptionsChange;m3.prototype.observeAddImageError=m3.prototype.observeAddImageError;m3.prototype.onEditorInfoChange=m3.prototype.onEditorInfoChange;m3.prototype.dataChanged=m3.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("ytd-backstage-multi-image-reposition-renderer"),_.z("design:type",Object)],m3.prototype,"imageRepositionContainer",void 0);
_.V([_.n(),_.z("design:type",Object)],m3.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],m3.prototype,"editorInfo",void 0);_.V([_.n(),_.z("design:type",sK)],m3.prototype,"uploadManager",void 0);_.V([_.n(),_.z("design:type",Object)],m3.prototype,"showImagesPreview",void 0);_.V([_.n(),_.z("design:type",Array)],m3.prototype,"pollOptions",void 0);_.V([_.n(),_.z("design:type",Object)],m3.prototype,"errorMessage",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m3.prototype,"dataChanged",null);_.V([_.bH("editorInfo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m3.prototype,"onEditorInfoChange",null);_.V([_.vr("errorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m3.prototype,"observeAddImageError",null);
_.V([_.bH("pollOptions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m3.prototype,"onPollOptionsChange",null);_.V([_.e("pollOptions","editorInfo"),_.z("design:type",Object),_.z("design:paramtypes",[])],m3.prototype,"isAllowedToAddOption",null);_.V([_.e("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],m3.prototype,"hasImages",null);
_.V([_.e("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],m3.prototype,"imagesToReposition",null);_.V([_.e("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],m3.prototype,"hasCustomOptionText",null);_.V([_.e("data","isAllowedToAddOption"),_.z("design:type",Object),_.z("design:paramtypes",[])],m3.prototype,"addOptionButton",null);_.V([_.e("data","hasImages"),_.z("design:type",Object),_.z("design:paramtypes",[])],m3.prototype,"repositionImagesButton",null);
_.V([_.yj({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],m3);
_.G(m3,"ytd-backstage-image-poll-editor-renderer",function(){if(npg!==void 0)return npg;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return npg=D},{mode:2});var zQJ={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 jge;var ew=function(){var D=_.w.apply(this,arguments)||this;D.a11yConfig=zQJ;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.showPreviewContainer=!0;D.startPicker=!1;D.repositionOptional=!1;D.editOnlyMode=!1;D.savedImageDisplayOffsetTop=0;D.savedImageDisplayOffsetLeft=0;return D};
_.h(ew,_.w);_.S=ew.prototype;_.S.created=function(){_.aZ.requestAvailability()};
_.S.ready=function(){};
_.S.onArrowKeysDown=function(D){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var C=0,X=0,c="";switch(D.detail.keyboardEvent.key){case "ArrowUp":R0R(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?c=this.a11yConfig.reachBottomOfImage:C=this.imageHeight*.05*-1;break;case "ArrowDown":R0R(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?c=this.a11yConfig.reachTopOfImage:
C=this.imageHeight*.05;break;case "ArrowLeft":R0R(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?c=this.a11yConfig.reachRightOfImage:X=this.imageWidth*.05*-1;break;case "ArrowRight":R0R(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?c=this.a11yConfig.reachLeftOfImage:X=this.imageWidth*.05}c&&_.I7(c)&&_.lE(this.hostElement,"iron-announce",{text:_.I7(c)});if(X||C)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+C)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.I7(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+X)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.I7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.lE(this.hostElement,"iron-announce",{text:D})}};
_.S.getPreviewPosition=function(D,C,X,c){return Math.round(100*(D+C*.5-X)/c)};
_.S.calculateDisplayPosition=function(){var D=this.imageData.naturalWidth,C=this.imageData.naturalHeight;this.displayScale=Math.max(200/D,200/C);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var X=D*this.displayScale*this.imageData.previewCoordinates.left,c=C*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=C>D?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-X;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=D>C?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-c;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=D*this.displayScale;this.imageHeight=C*this.displayScale};
_.S.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.S.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.S.getSignedPosition=function(D,C,X){return C==="X"&&_.q6("HTML_DIR")==="rtl"?X==="-"?D+"px":D*-1+"px":X==="-"?D*-1+"px":D+"px"};
_.S.pickerMove=function(D){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var C=this.pickerOffsetX-D.clientX,X=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
X)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-C))}};
_.S.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.S.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var D=this.generateCropPreview();D&&_.lE(this.hostElement,"ytd-backstage-image-preview-coordinates-update",D)};
_.S.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.lE(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.S.deleteImage=function(){_.lE(this.hostElement,"ytd-backstage-image-preview-delete")};
_.S.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.S.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var D=this.generateCropPreview();D&&_.lE(this.hostElement,"ytd-backstage-image-preview-coordinates-save",D)};
_.S.getPreviewOffset=function(D,C,X){return C&&D?(X==="X"&&_.q6("HTML_DIR")==="rtl"?300/C*D:300/C*D*-1)+"px":"0px"};
_.S.getSimpleText=function(D){return D?_.Mh(D):""};
_.S.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}};
_.$a.Object.defineProperties(ew.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.I7(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.I7(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.I7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.I7(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 D,C,X=(D=this.instruction)==null?void 0:(C=D.previewInstruction)==null?void 0:C.editButtonLabel;return X?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:X,accessibilityData:{accessibilityData:{label:this.getSimpleText(X)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W=this.editOnlyMode?(D=this.instruction)==null?void 0:(C=D.editInstruction)==null?void 0:C.saveImagesButtonLabel:(X=this.instruction)==null?void 0:(c=X.editInstruction)==null?void 0:c.saveButtonLabel;return W?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleText(W)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.instruction)==null?void 0:(C=D.previewInstruction)==null?void 0:C.deleteButtonLabel;return X?{size:"SIZE_SMALL",text:X,accessibilityData:{accessibilityData:{label:this.getSimpleText(X)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.instruction)==null?void 0:(C=D.editInstruction)==null?void 0:C.cancelButtonLabel;D=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return X?{style:D,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"}}});
ew.prototype.onEditOnlyModeUpdate=ew.prototype.onEditOnlyModeUpdate;ew.prototype.onImageChange=ew.prototype.onImageChange;_.V([_.n(),_.z("design:type",fP3)],ew.prototype,"imageData",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"instruction",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"a11yConfig",void 0);_.V([_.n(),_.z("design:type",Number)],ew.prototype,"imageWidth",void 0);_.V([_.n(),_.z("design:type",Number)],ew.prototype,"imageHeight",void 0);
_.V([_.n(),_.z("design:type",Number)],ew.prototype,"displayScale",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"imageDisplayOffsetTop",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"showPreviewContainer",void 0);
_.V([_.n(),_.z("design:type",Object)],ew.prototype,"startPicker",void 0);_.V([_.n(),_.z("design:type",Number)],ew.prototype,"pickerOffsetX",void 0);_.V([_.n(),_.z("design:type",Number)],ew.prototype,"pickerOffsetY",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"repositionOptional",void 0);_.V([_.n(),_.z("design:type",Object)],ew.prototype,"editOnlyMode",void 0);_.V([_.kn("#picker-container"),_.z("design:type",HTMLElement)],ew.prototype,"JSC$15957_pickerContainer",void 0);
_.V([_.kn("#picker"),_.z("design:type",HTMLElement)],ew.prototype,"picker",void 0);_.V([_.kn("#preview-clipper"),_.z("design:type",HTMLElement)],ew.prototype,"previewClipper",void 0);_.V([_.kn("#image-in-picker-background"),_.z("design:type",HTMLImageElement)],ew.prototype,"JSC$15957_imageInBackground",void 0);_.V([_.kn("#image-in-picker"),_.z("design:type",HTMLImageElement)],ew.prototype,"JSC$15957_imageInPicker",void 0);
_.V([_.kn("#image-in-preview-clipper"),_.z("design:type",HTMLImageElement)],ew.prototype,"JSC$15957_imageInPreviewClipper",void 0);_.V([_.e("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],ew.prototype,"altLabelForImage",null);_.V([_.e("imageHeight","imageWidth"),_.z("design:type",Number),_.z("design:paramtypes",[])],ew.prototype,"pickerSize",null);
_.V([_.e("imageHeight","imageWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],ew.prototype,"imageOrientationStyle",null);_.V([_.e("instruction"),_.z("design:type",Object),_.z("design:paramtypes",[])],ew.prototype,"editButton",null);_.V([_.e("instruction","editOnlyMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],ew.prototype,"saveButton",null);_.V([_.e("instruction"),_.z("design:type",Object),_.z("design:paramtypes",[])],ew.prototype,"deleteButton",null);
_.V([_.e("instruction","editOnlyMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],ew.prototype,"cancelButton",null);_.V([_.e("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.z("design:type",Number),_.z("design:paramtypes",[])],ew.prototype,"cropOffsetTop",null);_.V([_.e("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.z("design:type",Number),_.z("design:paramtypes",[])],ew.prototype,"cropOffsetLeft",null);
_.V([_.e("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],ew.prototype,"pickerBackgroundStyle",null);_.V([_.e("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],ew.prototype,"pickerDisplayStyle",null);_.V([_.e("cropOffsetLeft","cropOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],ew.prototype,"imageInPickerStyle",null);
_.V([_.e("cropOffsetLeft","cropOffsetTop","pickerSize"),_.z("design:type",String),_.z("design:paramtypes",[])],ew.prototype,"previewClipperStyle",null);_.V([_.bH("imageData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ew.prototype,"onImageChange",null);_.V([_.bH("editOnlyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ew.prototype,"onEditOnlyModeUpdate",null);
_.V([_.e("showPreviewContainer"),_.z("design:type",String),_.z("design:paramtypes",[])],ew.prototype,"pickerModeStyle",null);_.V([_.yj({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],ew);
_.G(ew,"ytd-backstage-image-preview-renderer",function(){if(jge!==void 0)return jge;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jge=D},{mode:1});var MMx;var qcC={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 fc5;var dQM;var EK=function(){var D=_.w.apply(this,arguments)||this;D.a11yConfig=qcC;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.cropCoordinatesSaved=!1;D.previewSize=0;D.startPicker=!1;D.repositionOptional=!1;return D};
_.h(EK,_.w);_.S=EK.prototype;_.S.created=function(){_.aZ.requestAvailability()};
_.S.ready=function(){};
_.S.onArrowKeysDown=function(D){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var C=0,X=0,c="";switch(D.detail.keyboardEvent.key){case "ArrowUp":lPm(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?c=this.a11yConfig.reachBottomOfImage:C=this.imageHeight*.05*-1;break;case "ArrowDown":lPm(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?c=this.a11yConfig.reachTopOfImage:
C=this.imageHeight*.05;break;case "ArrowLeft":lPm(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?c=this.a11yConfig.reachRightOfImage:X=this.imageWidth*.05*-1;break;case "ArrowRight":lPm(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?c=this.a11yConfig.reachLeftOfImage:X=this.imageWidth*.05}c&&_.I7(c)&&_.lE(this.hostElement,"iron-announce",{text:_.I7(c)});if(X||C)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+C)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.I7(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+X)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.I7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.lE(this.hostElement,"iron-announce",{text:D})}};
_.S.getPreviewPosition=function(D,C,X,c){return Math.round(100*(D+C*.5-X)/c)};
_.S.displayImage=function(){var D=this.JSC$15968_pickerContainer.getBoundingClientRect().width,C=this.JSC$15968_pickerContainer.getBoundingClientRect().height,X=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),c=this.JSC$15968_imageInBackground.naturalWidth,W=this.JSC$15968_imageInBackground.naturalHeight;this.displayScale=Math.max(X/c,X/W);this.imageWidth=c*this.displayScale;this.imageHeight=W*this.displayScale;this.pickerDisplayOffsetLeft=(D-X)/2;this.pickerDisplayOffsetTop=
(C-X)/2;this.imageDisplayOffsetLeft=W>c?this.pickerDisplayOffsetLeft:(D-this.imageWidth)/2;this.imageDisplayOffsetTop=c>W?this.pickerDisplayOffsetTop:(C-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.S.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15968_imageInBackground.src=this.imageData.toString(),this.JSC$15968_imageInPicker.src=this.imageData.toString(),this.JSC$15968_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.S.getSignedPosition=function(D,C,X){return C==="X"&&_.q6("HTML_DIR")==="rtl"?X==="-"?D+"px":D*-1+"px":X==="-"?D*-1+"px":D+"px"};
_.S.pickerMove=function(D){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var C=this.pickerOffsetX-D.clientX,X=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
X)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-C))}};
_.S.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.S.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.S.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.lE(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.S.getPreviewOffset=function(D,C,X,c){return C&&D&&X?(c==="X"&&_.q6("HTML_DIR")==="rtl"?X/C*D:X/C*D*-1)+"px":"0px"};
_.S.getSimpleText=function(D){return D?_.Mh(D):""};
_.S.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var D=this.cropOffsetTop/this.imageHeight,C=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,X=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,c=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.SY(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.lE(this.hostElement,"yt-img-crop-coordinates-update",{top:D,right:C,bottom:X,left:c})}};
_.$a.Object.defineProperties(EK.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.I7(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.I7(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.I7(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.I7(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 D,C=(D=this.learnMore.runs[0])==null?void 0:D.navigationEndpoint,X;return((X=_.r(C,_.oX))==null?void 0:X.url)||void 0}}}});
EK.prototype.onImageDataChange=EK.prototype.onImageDataChange;_.V([_.n(),_.z("design:type",Object)],EK.prototype,"imageData",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"instruction",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"a11yConfig",void 0);_.V([_.n(),_.z("design:type",Number)],EK.prototype,"imageWidth",void 0);_.V([_.n(),_.z("design:type",Number)],EK.prototype,"imageHeight",void 0);_.V([_.n(),_.z("design:type",Number)],EK.prototype,"displayScale",void 0);
_.V([_.n(),_.z("design:type",Object)],EK.prototype,"imageDisplayOffsetTop",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"cropCoordinatesSaved",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"previewSize",void 0);
_.V([_.n(),_.z("design:type",Object)],EK.prototype,"startPicker",void 0);_.V([_.n(),_.z("design:type",Number)],EK.prototype,"pickerOffsetX",void 0);_.V([_.n(),_.z("design:type",Number)],EK.prototype,"pickerOffsetY",void 0);_.V([_.n(),_.z("design:type",Object)],EK.prototype,"repositionOptional",void 0);_.V([_.kn("#picker-container"),_.z("design:type",HTMLElement)],EK.prototype,"JSC$15968_pickerContainer",void 0);_.V([_.kn("#picker"),_.z("design:type",HTMLElement)],EK.prototype,"picker",void 0);
_.V([_.kn("#image-in-picker-background"),_.z("design:type",HTMLImageElement)],EK.prototype,"JSC$15968_imageInBackground",void 0);_.V([_.kn("#image-in-picker"),_.z("design:type",HTMLImageElement)],EK.prototype,"JSC$15968_imageInPicker",void 0);_.V([_.kn("#image-in-preview-clipper"),_.z("design:type",HTMLImageElement)],EK.prototype,"JSC$15968_imageInPreviewClipper",void 0);_.V([_.kn("#full-image-as-preview"),_.z("design:type",HTMLImageElement)],EK.prototype,"imageAsPreview",void 0);
_.V([_.e("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],EK.prototype,"altLabelForImage",null);_.V([_.e("imageHeight","imageWidth"),_.z("design:type",Number),_.z("design:paramtypes",[])],EK.prototype,"pickerSize",null);_.V([_.e("imageHeight","imageWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],EK.prototype,"imageOrientationStyle",null);
_.V([_.e("instruction.previewInstruction.editButtonLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],EK.prototype,"editButton",null);_.V([_.e("instruction.editInstruction.saveButtonLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],EK.prototype,"saveButton",null);_.V([_.e("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.z("design:type",Number),_.z("design:paramtypes",[])],EK.prototype,"cropOffsetTop",null);
_.V([_.e("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.z("design:type",Number),_.z("design:paramtypes",[])],EK.prototype,"cropOffsetLeft",null);_.V([_.e("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],EK.prototype,"pickerBackgroundStyle",null);_.V([_.e("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],EK.prototype,"pickerDisplayStyle",null);
_.V([_.e("cropOffsetLeft","cropOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],EK.prototype,"imageInPickerStyle",null);_.V([_.e("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.z("design:type",String),_.z("design:paramtypes",[])],EK.prototype,"previewClipperStyle",null);_.V([_.vr("imageData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EK.prototype,"onImageDataChange",null);
_.V([_.e("cropCoordinatesSaved"),_.z("design:type",String),_.z("design:paramtypes",[])],EK.prototype,"pickerModeStyle",null);_.V([_.e("instruction.editInstruction.learnMore"),_.z("design:type",Object),_.z("design:paramtypes",[])],EK.prototype,"learnMore",null);_.V([_.e("learnMore"),_.z("design:type",Object),_.z("design:paramtypes",[])],EK.prototype,"learnMoreUrl",null);_.V([_.Yn({is:"yt-img-crop-picker",disableElementRegistration:!0})],EK);
_.G(EK,"yt-img-crop-picker",function(){if(dQM===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;fc5===void 0&&(fc5=document.createElement("template"));var c=fc5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);dQM=D}D=dQM;return D},{mode:2});var t1=function(){var D=_.w.apply(this,arguments)||this;D.errorMessage="";D.hasPreview=!1;D.isBackstagePost=!1;D.dismissButtonOverrides={size:"XS"};return D};
_.h(t1,_.w);_.S=t1.prototype;_.S.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"}}}};
_.S.detached=function(){this.removeOverlay()};
_.S.setPreview=function(D){_.SY(this.hostElement).querySelector("#preview-picker").imageData=D;this.hasPreview=!0;_.lE(this.hostElement,"yt-backstage-image-select-preview")};
_.S.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var D=_.SY(this.hostElement).querySelector("#dropzone");D.classList.remove("dragover");D.classList.remove("error");_.lE(this.hostElement,"yt-backstage-image-select-cancel")};
_.S.setupOverlay=function(){var D=this.imageUploadEndpoint;this.removeOverlay();if(D&&D.imageValidationInfo){var C=_.SY(this.hostElement).querySelector("#dropzone"),X=_.SY(this.hostElement).querySelector("#select");this.overlay=new LU(D.uploadUrl,D.channelId,D.imageValidationInfo.maxFileSizeMb,D.imageValidationInfo.allowedMaxAspectRatio,C,X,!0);_.Kb(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Kb(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Kb(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Kb(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Kb(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.S.removeOverlay=function(){this.overlay&&(_.Y1(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Y1(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Y1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Y1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Y1(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.S.onDragOver=function(D){var C=_.SY(this.hostElement).querySelector("#dropzone");_.gi(C,"dragover",D.value)};
_.S.onPreview=function(D){this.setPreview(D.value)};
_.S.onImageError=function(D){if(D.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var C;D=(C=this.data)==null?void 0:C.fileSizeError}else if(D.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var X;D=(X=this.data)==null?void 0:X.invalidError}else if(D.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var c;D=(c=this.data)==null?void 0:c.invalidAspectRatioError}else return;this.errorMessage=_.Mh(D);_.SY(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.S.onImageAlert=function(D){this.onImageError(D)};
_.S.uploadPromise=function(){var D=this,C=this.overlay&&this.overlay.uploadPromise();if(C)return C.catch(function(){throw Error(D.data?_.Mh(D.data.uploadFailureError):"");})};
_.$a.Object.defineProperties(t1.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var D,C;if((D=this.data)==null?0:(C=D.icon)==null?0:C.iconType)return _.g2(this.data.icon.iconType)}}});
t1.prototype.setupOverlay=t1.prototype.setupOverlay;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],t1.prototype,"rendererStamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],t1.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],t1.prototype,"imageUploadEndpoint",void 0);_.V([_.n(),_.z("design:type",Object)],t1.prototype,"errorMessage",void 0);
_.V([_.n(),_.z("design:type",LU)],t1.prototype,"overlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],t1.prototype,"hasPreview",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],t1.prototype,"isBackstagePost",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],t1.prototype,"selectionCancel",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],t1.prototype,"previewCancel",null);
_.V([_.e("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],t1.prototype,"icon",null);_.V([_.n(),_.z("design:type",Object)],t1.prototype,"dismissButtonOverrides",void 0);_.V([_.vr("imageUploadEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],t1.prototype,"setupOverlay",null);_.V([_.yj({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],t1);
_.G(t1,"ytd-backstage-image-select-renderer",function(){if(MMx!==void 0)return MMx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return MMx=D},{mode:1});var RQC;var lcx;var NW=function(){var D=_.w.apply(this,arguments)||this;D.selected=!1;return D};
_.h(NW,_.w);_.S=NW.prototype;_.S.computeSelected=function(D){return D==null?void 0:D.selected};
_.S.computeTransform=function(D,C,X){var c,W,p=(W=(c=this.imageContainer)==null?void 0:c.getBoundingClientRect())!=null?W:{width:0,height:0};c=Math.max(p.width/C,p.height/X);X=X*c*D.top;return"translateX("+this.getSignedPosition(C*c*D.left,"X","-")+") translateY("+this.getSignedPosition(X,"Y","-")+")"};
_.S.getSignedPosition=function(D,C,X){return C==="X"&&_.q6("HTML_DIR")==="rtl"?X==="-"?D+"px":D*-1+"px":X==="-"?D*-1+"px":D+"px"};
_.S.onClick=function(){var D;_.lE(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(D=this.data)==null?void 0:D.image)};
_.S.onKeyPress=function(D){if(D.keyCode===13)this.onClick()};
_.$a.Object.defineProperties(NW.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.image)==null?void 0:C.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.image){var C;D=(C=this.data)==null?void 0:C.image;return D.previewCoordinates.top!==0||D.previewCoordinates.left!==0?(C=this.computeTransform(D.previewCoordinates,D.naturalWidth,D.naturalHeight),D.naturalHeight>=D.naturalWidth?"width:inherit;transform:"+C+";":"height:inherit;transform:"+C+";"):D.naturalHeight>=D.naturalWidth?"width:inherit;":"height:inherit;"}}}});
NW.prototype.onKeyPress=NW.prototype.onKeyPress;_.V([_.kn(".image-container"),_.z("design:type",HTMLElement)],NW.prototype,"imageContainer",void 0);_.V([_.n(),_.z("design:type",Object)],NW.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.z("design:type",Object)],NW.prototype,"selected",void 0);_.V([_.e("data.image"),_.z("design:type",Object),_.z("design:paramtypes",[])],NW.prototype,"thumbnailUrl",null);
_.V([_.e("data.image","data.image.previewCoordinates"),_.z("design:type",Object),_.z("design:paramtypes",[])],NW.prototype,"thumbnailStyle",null);_.V([_.$n("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],NW.prototype,"onKeyPress",null);_.V([_.yj({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],NW);
_.G(NW,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(lcx!==void 0)return lcx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return lcx=D},{mode:2});var YM=function(D,C,X){X=X===void 0?!1:X;_.yg.call(this);var c=this;this.dropZoneOverlay=new yq(D);this.selectOverlay=X?new no(C,"multiple_file",["image/*"]):new no(C,"single_file",["image/*"]);this.handler=new _.bQ(this);_.hR(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(C,"click",function(){c.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.h(YM,_.yg);YM.prototype.onChange=function(D){var C;(C=D.files)!=null&&C.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:D.files}))};var yE=function(){var D=_.w.apply(this,arguments)||this;D.addImageErrorMessage="";D.errorMessage="";D.images=[];D.selectedImageIndex=0;D.modern=_.b("web_modern_buttons");D.maxNumImagesPerPost=_.BK("max_num_images_per_post_web_ui");D.JSC$15983_imageId=0;return D};
_.h(yE,_.w);_.S=yE.prototype;_.S.created=function(){var D=this;this.JSC$15983_ytReorderableController=new _.$vk(100,function(C){D.handleDrop(C)})};
_.S.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.lE(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.S.observeDragToReorder=function(){var D=this;if(this.showImagesPreview){var C,X=rzd(_.Zp.getInstance(),(C=this.data)==null?void 0:C.dragToReorderTooltip);_.qX.addLowPriorityJob(function(){_.o7(D.hostElement,X,D.thumbnailDragDropArea)})}};
_.S.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}}};
_.S.computeThumbnail=function(D){return(D==null?void 0:D.localImageSrc)||void 0};
_.S.onRendererstamperFinished=function(){_.v2q(this.JSC$15983_ytReorderableController,_.SY(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.SY(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.S.handleDrop=function(D){var C=D.currDragItem;if(C!=null&&C.data){D=this.images[this.selectedImageIndex];var X=C.data.image,c=this.images.indexOf(X)||0;C=_.w5(C.parentNode.children,C);this.images.splice(c,1);this.images.splice(C,0,X);this.images=[].concat(_.VB(this.images));this.selectedImageIndex=this.images.indexOf(D)}};
_.S.setUpImagePicker=function(){var D=this.imageUploadEndpoint;D&&D.imageValidationInfo&&(this.uploadManager=new sK(D.uploadUrl,D.channelId),this.initialPicker||(this.initialPicker=new YM(this.dropzone,this.selectLink,!0),_.Kb(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new YM(this.addImageButtonContainer,this.addImageSelectButton),_.Kb(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Kb(this.JSC$15983_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Kb(this.JSC$15983_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Kb(_.SY(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.S.detached=function(){this.initialPicker&&(_.Y1(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Y1(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.fu(this.JSC$15983_ytReorderableController)};
_.S.onInitialSelectImages=function(D){var C=this;return _.I(function(X){return X.yield(C.onSelectImages(D,!1),0)})};
_.S.onAddImage=function(D){var C=this;return _.I(function(X){return X.yield(C.onSelectImages(D,!0),0)})};
_.S.onSelectImages=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q;return _.I(function(R){switch(R.nextAddress){case 1:C?X.addImageErrorMessage="":(X.images=[],X.errorMessage="");c=D.detail;W=X.validateImages([].concat(_.VB(c)));if(W!=="")return C?X.addImageErrorMessage=W:X.errorMessage=W,R.return();p=[].concat(_.VB(c)).map(function(ph){return(new hF(X.maxAspectRatio,!1,!0)).transform(ph)});
return R.yield(Promise.allSettled(p),2);case 2:g=R.yieldResult,a=_.U(g.entries()),O=a.next();case 3:if(O.done){R.jumpTo(5);break}P=O.value;k=_.U(P);u=k.next().value;Q=k.next().value;B=u;K=Q;if(K.status!=="fulfilled"){Y=t=L=void 0;C?X.addImageErrorMessage=_.Mh((L=X.data)==null?void 0:L.invalidError):X.errorMessage=X.errorMessage===""?_.Mh((t=X.data)==null?void 0:t.invalidError):_.Mh((Y=X.data)==null?void 0:Y.multiFileError);R.jumpTo(4);break}y=K.value;y.cropped&&_.lE(X.hostElement,"yt-backstage-multi-image-cropped");
if(y.invalidAspectRatio){H=T=J=void 0;C?X.addImageErrorMessage=_.Mh((J=X.data)==null?void 0:J.invalidAspectRatioError):X.errorMessage=X.errorMessage===""?_.Mh((T=X.data)==null?void 0:T.invalidAspectRatioError):_.Mh((H=X.data)==null?void 0:H.multiFileError);R.jumpTo(4);break}return R.yield(dut(X.JSC$15983_imageId,D.detail[B],y.transformedData),8);case 8:q=R.yieldResult,X.images.push(q),X.JSC$15983_imageId++;case 4:O=a.next();R.jumpTo(3);break;case 5:if(X.errorMessage!==""||X.addImageErrorMessage!==
"")return R.return();C?Zx5(X.uploadManager,[X.images[X.images.length-1]]):Zx5(X.uploadManager,X.images);X.images=[].concat(_.VB(X.images));X.selectedImageIndex=C?Math.max(X.images.length-1,0):0;_.lE(X.hostElement,"yt-backstage-multi-image-select");_.t_(R)}})};
_.S.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.S.validateImages=function(D){if(D.length>this.maxNumImagesPerPost){var C;return _.Mh((C=this.data)==null?void 0:C.multiImageExceedMaxImageCountError)}var X=1048576*this.maxFileSizeMb;D=D.filter(function(p){return p.size>X}).length;
if(D===0)return"";var c,W;D=D>1?(c=this.data)==null?void 0:c.multiFileError:(W=this.data)==null?void 0:W.fileSizeError;return _.Mh(D)};
_.S.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.VB(this.images));this.selectedImageIndex=0};
_.S.repositionImage=function(D){this.images[this.selectedImageIndex].previewCoordinates=D.event_.detail;this.images=[].concat(_.VB(this.images))};
_.S.getAllUploadStatuses=function(){var D=this,C,X,c,W;return _.I(function(p){if(p.nextAddress==1)return p.yield(D.uploadManager.getAllUploadStatuses(),2);C=p.yieldResult;X=_.U(C);for(c=X.next();!c.done;c=X.next())if(W=c.value,W.encryptedBlobId===void 0)return p.return(Gnd(D.uploadManager));return p.return(C)})};
_.S.hasImages=function(){return this.images.length>0};
_.S.cancel=function(){for(var D=this.uploadManager,C=_.U(D.imagesUploadData),X=C.next();!X.done;X=C.next())D.cancel(X.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.lE(this.hostElement,"yt-backstage-multi-image-cancel")};
_.$a.Object.defineProperties(yE.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.imageUploadEndpoint)==null?void 0:(C=D.imageValidationInfo)==null?void 0:C.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.imageUploadEndpoint)==null?void 0:(C=D.imageValidationInfo)==null?void 0:C.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var D,C;if((D=this.data)==null?0:(C=D.icon)==null?0:C.iconType)return _.g2(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.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 D=this;return(this.images||[]).map(function(C,X){return{renderer:{image:C,selected:X===D.selectedImageIndex}}})}}});
yE.prototype.setUpImagePicker=yE.prototype.setUpImagePicker;yE.prototype.onRendererstamperFinished=yE.prototype.onRendererstamperFinished;yE.prototype.observeDragToReorder=yE.prototype.observeDragToReorder;yE.prototype.observeAddImageError=yE.prototype.observeAddImageError;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],yE.prototype,"rendererStamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);
_.V([_.kn("#dropzone"),_.z("design:type",HTMLElement)],yE.prototype,"dropzone",void 0);_.V([_.kn("#select-link"),_.z("design:type",HTMLElement)],yE.prototype,"selectLink",void 0);_.V([_.kn("#thumbnail-drag-drop-area"),_.z("design:type",HTMLElement)],yE.prototype,"thumbnailDragDropArea",void 0);_.V([_.kn("#add-image-button-container"),_.z("design:type",HTMLElement)],yE.prototype,"addImageButtonContainer",void 0);
_.V([_.kn("#add-image-button"),_.z("design:type",HTMLElement)],yE.prototype,"addImageSelectButton",void 0);_.V([_.kn("#image-preview-container"),_.z("design:type",Object)],yE.prototype,"JSC$15983_imagePreviewContainer",void 0);_.V([_.n(),_.z("design:type",Object)],yE.prototype,"addImageErrorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],yE.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],yE.prototype,"errorMessage",void 0);
_.V([_.n(),_.z("design:type",Object)],yE.prototype,"imageUploadEndpoint",void 0);_.V([_.n(),_.z("design:type",Array)],yE.prototype,"images",void 0);_.V([_.n(),_.z("design:type",YM)],yE.prototype,"initialPicker",void 0);_.V([_.n(),_.z("design:type",YM)],yE.prototype,"addImagePicker",void 0);_.V([_.n(),_.z("design:type",sK)],yE.prototype,"uploadManager",void 0);_.V([_.n(),_.z("design:type",Object)],yE.prototype,"selectedImageIndex",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yE.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yE.prototype,"maxNumImagesPerPost",void 0);_.V([_.e("imageUploadEndpoint"),_.z("design:type",Number),_.z("design:paramtypes",[])],yE.prototype,"maxAspectRatio",null);_.V([_.e("imageUploadEndpoint"),_.z("design:type",Number),_.z("design:paramtypes",[])],yE.prototype,"maxFileSizeMb",null);
_.V([_.e("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],yE.prototype,"dropIcon",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yE.prototype,"selectionCancel",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yE.prototype,"previewCancel",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yE.prototype,"dataForAddImageButton",null);
_.V([_.e("errorMessage"),_.z("design:type",String),_.z("design:paramtypes",[])],yE.prototype,"dropzoneClass",null);_.V([_.e("images"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yE.prototype,"showImagesPreview",null);_.V([_.e("images"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],yE.prototype,"containMaxImages",null);_.V([_.vr("addImageErrorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yE.prototype,"observeAddImageError",null);
_.V([_.vr("showImagesPreview"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yE.prototype,"observeDragToReorder",null);_.V([_.e("images","selectedImageIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],yE.prototype,"selectedImageData",null);_.V([_.e("images","selectedImageIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],yE.prototype,"thumbnailRenderers",null);
_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yE.prototype,"onRendererstamperFinished",null);_.V([_.vr("imageUploadEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yE.prototype,"setUpImagePicker",null);_.V([_.yj({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],yE);
_.G(yE,"ytd-backstage-multi-image-select-renderer",function(){if(RQC!==void 0)return RQC;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return RQC=D},{mode:1});var DeN;var Ckb;var Xsf;var nj=function(){var D=_.w.apply(this,arguments)||this;D.boundCaptureFocus=function(C){D.onCaptureFocus(C)};
return D};
_.h(nj,_.w);_.S=nj.prototype;_.S.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.S.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.S.onCaptureFocus=function(D){_.Mz(D).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.S.getIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.S.onSelect=function(){var D;if((D=this.data)==null?0:D.onSelectCommand)if(_.b("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var C;((C=_.r(this.data.onSelectCommand.commandMetadata,_.ge))==null?0:C.url)?_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.iX().resolve(_.uX).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.$a.Object.defineProperties(nj.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Mh(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nj.prototype,"data",void 0);_.V([_.kn("#item"),_.z("design:type",HTMLElement)],nj.prototype,"item",void 0);_.V([_.e("data.label"),_.z("design:type",String),_.z("design:paramtypes",[])],nj.prototype,"label",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],nj.prototype,"value",null);_.V([_.yj({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],nj);
_.G(nj,"ytd-privacy-dropdown-item-renderer",function(){if(Xsf!==void 0)return Xsf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Xsf=D},{mode:1});var wI=function(){var D=_.w.apply(this,arguments)||this;D.value="";D.label="";D.disabled=!1;return D};
_.h(wI,_.w);_.S=wI.prototype;_.S.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"}}}};
_.S.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.S.dataChanged=function(){this.reset()};
_.S.valueChanged=function(){var D;if(this.value&&(D=this.data)!=null&&D.entries){D=_.U(this.data.entries);for(var C=D.next();!C.done;C=D.next())if((C=this.getRendererForEntry(C.value))&&this.getItemRendererValue(C)===this.value){this.label=this.ytComponentBehavior.getSimpleString(C.label);break}}};
_.S.setInitialLabel=function(){if(this.data&&this.data.entries)for(var D=_.U(this.data.entries),C=D.next();!C.done;C=D.next())if(C=this.getRendererForEntry(C.value)){if(C.isSelected){this.label=this.ytComponentBehavior.getSimpleString(C.label);break}this.data.label&&(this.label=this.data.label)}};
_.S.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var D=_.U(this.data.entries),C=D.next();!C.done;C=D.next()){C=this.getRendererForEntry(C.value);var X=void 0;if((X=C)==null?0:X.isSelected)return this.getItemRendererValue(C)||-1}return-1};
_.S.getItemRendererValue=function(D){return"stringValue"in D||"int32Value"in D?D.stringValue||D.int32Value||null:null};
_.S.getRendererForEntry=function(D){return D.dropdownItemRenderer||D.privacyDropdownItemRenderer||D.navigationDropdownItemRenderer||null};
_.S.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("value-changed",this.value))};
_.S.updateValueFromBinding=function(D){this.value=D.detail.value};
wI.prototype.valueChangedForBinding=wI.prototype.valueChangedForBinding;wI.prototype.valueChanged=wI.prototype.valueChanged;wI.prototype.dataChanged=wI.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],wI.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],wI.prototype,"value",void 0);_.V([_.n(),_.z("design:type",Object)],wI.prototype,"label",void 0);_.V([_.kn("#entries"),_.z("design:type",Object)],wI.prototype,"entries",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],wI.prototype,"disabled",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wI.prototype,"dataChanged",null);
_.V([_.bH("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wI.prototype,"valueChanged",null);_.V([_.vr("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wI.prototype,"valueChangedForBinding",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],wI);
_.G(wI,"ytd-flat-dropdown-renderer",function(){if(Ckb!==void 0)return Ckb;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ckb=D},{mode:1});var cOd;var Fa=function(){var D=_.w.apply(this,arguments)||this;D.quizOptions=[];D.explanationPlaceholderText="";D.optionPlaceholderText="";D.correctAnswerIndex=-1;D.isMarkAnswerTooltipShown=!1;D.timer=0;return D};
_.h(Fa,_.w);_.S=Fa.prototype;_.S.dataChanged=function(){this.optionPlaceholderText=_.Mh(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Mh(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.S.onMarkCorrectAnswer=function(D){var C,X=((C=this.quizOptions[this.correctAnswerIndex])==null?void 0:C.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[D.model.index]=Object.assign({},this.quizOptions[D.model.index],{explanationText:X,isCorrect:!0});this.correctAnswerIndex=D.model.index;this.quizOptions=[].concat(_.VB(this.quizOptions))};
_.S.updatePlaceholderTexts=function(){for(var D=!1,C=[],X=0;X<this.quizOptions.length;X++){var c=this.optionPlaceholderText+" "+(X+1),W=void 0;((W=this.quizOptions[X])==null?void 0:W.placeholderText)!==c?(D=!0,C.push(Object.assign({},this.quizOptions[X],{placeholderText:c}))):C.push(this.quizOptions[X])}D&&(this.quizOptions=C);this.isValid()?_.lE(this.hostElement,"yt-commentbox-post-enable"):_.lE(this.hostElement,"yt-commentbox-post-disable")};
_.S.getSimpleString=function(D){return _.Mh(D)};
_.S.createQuizOptions=function(D){var C=[],X;D=(X=D==null?void 0:D.minQuizOptions)!=null?X:0;for(X=0;X<D;X++)C.push(this.createQuizOption());return C};
_.S.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.VB(this.quizOptions),[this.createQuizOption()]))};
_.S.onInput=function(){this.quizOptions=[].concat(_.VB(this.quizOptions))};
_.S.onExplanationInput=function(){_.lE(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.S.onRemoveQuizOption=function(D){this.quizOptions.splice(D.model.index,1);D.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:D.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.VB(this.quizOptions));this.quizOptions.length===0&&_.lE(this.hostElement,"yt-quiz-attachment-dismiss")};
_.S.updateHintRenderer=function(){var D=this;clearTimeout(this.timer);this.timer=setTimeout(function(){D.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.S.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var D=0,C=0,X=_.U(this.quizOptions),c=X.next();!c.done;c=X.next()){c=c.value;var W=void 0;if(((W=c.optionText)==null?void 0:W.trim())!==""||c.isCorrect){c.isCorrect&&C++;W=void 0;if(this.hasCustomOptionText&&((W=c.optionText)==null?void 0:W.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;D++}}return D>=
Number(this.editorInfo.minQuizOptions)&&C===1};
_.S.getPostCreateOptions=function(){for(var D=[],C=_.U(this.quizOptions),X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0;((c=X.optionText)==null?void 0:c.trim())!==""&&D.push({pollOption:{text:X.optionText,explanation:X.explanationText},isCorrect:X.isCorrect})}return D};
_.S.getExplanationText=function(){var D;return((D=this.quizOptions[this.correctAnswerIndex])==null?void 0:D.explanationText)||""};
_.S.maybeDisplayMarkAnswerEduToolTip=function(){var D,C,X,c,W,p,g;this.shouldShowMarkAnswerTooltip()&&((D=this.editorInfo)==null?0:(C=D.markAnswerButton)==null?0:(X=C.buttonRenderer)==null?0:(c=X.hint)==null?0:(W=c.hintRenderer)==null?0:(p=W.content)==null?0:(g=p.bubbleHintRenderer)==null?0:g.text)&&(_.Zp.getInstance(),D=G0(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,(D==null?void 0:D.length)>0&&this.optionSelectors&&_.O4(D[0],this.optionSelectors[0]))};
_.S.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var D=0,C=_.U(this.quizOptions),X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0;((c=X.optionText)==null?void 0:c.trim())!==""&&D++;if(X.isCorrect)return!1}return D<2?!1:!0};
_.S.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.S.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.S.updateOptionTextFromBinding=function(D){if(D.target){var C=Array.from(_.SY(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(D.target);if(C>=0){var X;this.quizOptions[C].optionText=(X=D.detail.value)!=null?X:""}}};
_.$a.Object.defineProperties(Fa.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.editorInfo)==null?void 0:(C=D.addOptionButton)==null?void 0:C.buttonRenderer;X&&(X.style="STYLE_SUGGESTIVE",X.size="SIZE_SMALL",X.isDisabled=!this.isAllowedToAddOption);return(X==null?0:X.text)?X:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,C;return this.quizOptions.length<((C=(D=this.editorInfo)==null?void 0:D.maxQuizOptions)!=null?C:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(D){var C;return(C=D.optionText)==null?void 0:C.trim()})}}});
Fa.prototype.updatePlaceholderTexts=Fa.prototype.updatePlaceholderTexts;Fa.prototype.dataChanged=Fa.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],Fa.prototype,"editorInfo",void 0);_.V([_.n(),_.z("design:type",Array)],Fa.prototype,"quizOptions",void 0);_.V([_.n(),_.z("design:type",Object)],Fa.prototype,"explanationPlaceholderText",void 0);_.V([_.uH(".option-selector-button"),_.z("design:type",Array)],Fa.prototype,"optionSelectors",void 0);
_.V([_.bH("editorInfo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fa.prototype,"dataChanged",null);_.V([_.e("editorInfo","isAllowedToAddOption","quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fa.prototype,"addAnswerButton",null);_.V([_.e("editorInfo","quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fa.prototype,"isAllowedToAddOption",null);
_.V([_.bH("quizOptions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fa.prototype,"updatePlaceholderTexts",null);_.V([_.e("quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fa.prototype,"hasCustomOptionText",null);_.V([_.yj({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Fa);
_.G(Fa,"ytd-backstage-quiz-editor-renderer",function(){if(cOd!==void 0)return cOd;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return cOd=D},{mode:2});var oSe;var W7C=(PC.FIRSTDAYOFWEEK+1)%7;var psx;var S8f=[],Ue5=0,gSd=0;Ue5=0;gSd=24;if(.25*(gSd-Ue5)<0)psx=[];else{for(var aLJ=Ue5;aLJ<gSd;aLJ+=.25)S8f.push(aLJ);psx=S8f}var ILf=psx.map(function(D){D=D*60*60;return{secondsSinceMidnight:D,text:(new z1(7)).format(new Date(0,0,0,0,0,D))}});var O84;var ZD=function(){var D=_.w.apply(this,arguments)||this;D.skipNextOpenDialog=!1;D.errorMessage="";D.previousMonthLabel=_.I7("PREVIOUS_MONTH_LABEL");D.nextMonthLabel=_.I7("NEXT_MONTH_LABEL");return D};
_.h(ZD,_.w);_.S=ZD.prototype;_.S.attached=function(){var D=this,C=new MutationObserver(function(){D.JSC$16025_calendarMain.scrollHeight>0&&(C.disconnect(),D.calendarConfig&&D.calendarConfig.selectedDate&&D.scrollToDate())});
C.observe(this.JSC$16025_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){C.disconnect()},1E3)};
_.S.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.S.onDateTextChange=function(){if(this.calendarConfig){var D=this.validateDateText();D.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(D.details)):this.textbox.setAttribute("invalid","")}};
_.S.handleDayClick=function(D){D.model.day.date&&(this.commitDate(D.model.day.date),this.dialog.close())};
_.S.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var D=UKt(this.calendarConfig.selectedDate,this.renderData);D!==void 0&&this.JSC$16025_calendarMain.scrollToIndex(D)}};
_.S.scrollToNextMonth=function(){this.JSC$16025_calendarMain.scrollToIndex(this.JSC$16025_calendarMain.firstVisibleIndex+1)};
_.S.scrollToPrevMonth=function(){this.JSC$16025_calendarMain.firstVisibleIndex===0&&this.JSC$16025_calendarMain.scrollTo(0,0);this.JSC$16025_calendarMain.scrollToIndex(this.JSC$16025_calendarMain.firstVisibleIndex-1)};
_.S.onFormSubmit=function(D){D.preventDefault();this.calendarConfig&&(D=this.validateDateText(),D.isValid&&(this.commitDate(D.details),this.dialog.close()))};
_.S.onEscOrClickingOutside=function(D){D=D.detail.path&&!!D.detail.path.length&&D.detail.path[0];if(D.classList.contains("ytd-calendar-date-picker")){D===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var C=0;C<this.dropdownButton.children.length;C++)this.dropdownButton.children[C]===D&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}D=this.textbox.value!==this.dateText;C=this.validateDateText();D&&C.isValid&&this.commitDate(C.details);this.dialog.close();this.textbox.value=
this.dateText};
_.S.commitDate=function(D){this.calendarConfig&&(this.set("calendarConfig.selectedDate",D),_.lE(this.hostElement,"ytd-calendar-date-selected",D))};
_.S.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var D=this.textbox.value;var C=new Date;D=(new L9t(2)).parse(D,C,{validate:!0})===D.length?p1R(C):void 0;if(!D)return this.errorMessage=_.I7("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};C=this.calendarConfig.start;var X=this.calendarConfig.end;if(Cfn(D,C))return this.errorMessage=_.I7("ENTER_DATE_OR_LATER",{allowed_date:W9o(C)}),{isValid:!1,details:void 0};if(Cfn(X,D))return this.errorMessage=
_.I7("ENTER_DATE_OR_EARLIER",{allowed_date:W9o(X)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:D}};
_.$a.Object.defineProperties(ZD.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?W9o(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var D=this.calendarConfig,C=[],X=0;X<7;X++)C.push(PC.NARROWWEEKDAYS[(X+W7C)%7]);X=[];for(var c=new Date(D.start.year,D.start.month);c.getFullYear()<D.end.year||c.getFullYear()===D.end.year&&c.getMonth()<=D.end.month;){var W=X,p=W.push,g=c.getFullYear(),a=c.getMonth(),O=D,P=void 0,k=[],u=Object.freeze({extraCssClass:"invisible",debugClass:""}),Q=new Date(g,a),B=p1R(Q);Q=Q.getDay();for(var K=p1R(new Date);B.month===
a;){Q!==W7C&&P||(P=Array.from({length:7}).fill(u),k.push(P));var L={date:{year:g,month:a,day:B.day},extraCssClass:"",debugClass:""};O.selectedDate&&L.date&&DKF(L.date,O.selectedDate)&&(L.extraCssClass+=" selected");if(Cfn(B,O.start)||Cfn(O.end,B))L.extraCssClass+=" disabled";DKF(B,K)&&(L.extraCssClass+=" today");L.extraCssClass=L.extraCssClass.trim();P[(Q-W7C+7)%7]=L;B=cqt(B);Q=(Q+1)%7}p.call(W,{weeks:k,monthLabel:PC.SHORTMONTHS[a]+" "+g,year:g,month:a,monthLabelExtraCssClass:k[0][2]===u?"shift-down-label":
""});c.setMonth(c.getMonth()+1)}return{months:X,daysOfWeekLabel:C}}}}});
ZD.prototype.onEscOrClickingOutside=ZD.prototype.onEscOrClickingOutside;ZD.prototype.scrollToDate=ZD.prototype.scrollToDate;_.V([_.n(),_.z("design:type",Object)],ZD.prototype,"calendarConfig",void 0);_.V([_.n(),_.z("design:type",Object)],ZD.prototype,"skipNextOpenDialog",void 0);_.V([_.n(),_.z("design:type",Object)],ZD.prototype,"errorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],ZD.prototype,"previousMonthLabel",void 0);
_.V([_.n(),_.z("design:type",Object)],ZD.prototype,"nextMonthLabel",void 0);_.V([_.kn("#textbox"),_.z("design:type",HTMLInputElement)],ZD.prototype,"textbox",void 0);_.V([_.kn("#calendar-dialog"),_.z("design:type",Object)],ZD.prototype,"dialog",void 0);_.V([_.kn("#calendar-main"),_.z("design:type",Object)],ZD.prototype,"JSC$16025_calendarMain",void 0);_.V([_.kn("#date-picker"),_.z("design:type",HTMLElement)],ZD.prototype,"dropdownButton",void 0);
_.V([_.e("calendarConfig.selectedDate"),_.z("design:type",String),_.z("design:paramtypes",[])],ZD.prototype,"dateText",null);_.V([_.e("calendarConfig","calendarConfig.selectedDate"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZD.prototype,"renderData",null);_.V([_.vr("renderData","calendarConfig.selectedDate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZD.prototype,"scrollToDate",null);
_.V([_.$n("iron-overlay-canceled"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ZD.prototype,"onEscOrClickingOutside",null);_.V([_.Yn({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ZD);
_.G(ZD,"ytd-calendar-date-picker",function(){if(O84!==void 0)return O84;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return O84=D},{mode:2});var AO4=_.I7("UTC_OFFSET_FORMAT",{utc_offset:(new z1("Z")).format(new Date)}),Pkq=(new Date).getTimezoneOffset()*-60,$eC=new Date,vS5,i8C=JX($eC.getTimezoneOffset());vS5=l5C(CKC(i8C,$eC));var kDf=_.I7("LOCAL_TIME_GMT_LABEL",{gmt_text:vS5.replace("+0","+").replace("-0","-").replace(":00","")}),GG=function(){var D=_.w.apply(this,arguments)||this;D.selectedTimeIndex=0;D.selectedTimezoneIndex=0;D.timeOfDayOptions=ILf;return D};
_.h(GG,_.w);_.S=GG.prototype;_.S.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var D=oGm();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=D,this.selectedTimeIndex=0;else{var C=SZm(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},D,{selectedDate:C.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(X){return X.secondsSinceMidnight===C.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.S.onDatePicked=function(D){this.selectedDate=D.detail};
_.S.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.lE(this.hostElement,"ytd-date-time-selection-cancelled")};
_.S.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var D=this.selectedDate;D=new Date(D.year,D.month,D.day);_.lE(this.hostElement,"ytd-date-time-selection-update",Math.floor(D.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+D.getTimezoneOffset()*60))}};
_.S.getTimezoneFormat=function(D){return D.localizedDisplayText?D.localizedDisplayText:_.I7("TIMEZONE_FORMAT",{utc_offset_text:""+D.localizedUtcOffset,city_name:""+D.localizedName})};
_.S.updateSelectedTimeIndexFromBinding=function(D){this.selectedTimeIndex=D.detail.value};
_.S.updateSelectedTimezoneIndexFromBinding=function(D){this.selectedTimezoneIndex=D.detail.value};
_.$a.Object.defineProperties(GG.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data.timezoneOptions;var C={name:"Etc/Unknown",localizedName:_.I7("LOCAL_TIME_LABEL"),localizedUtcOffset:AO4,utcOffsetSec:""+Pkq,localizedDisplayText:kDf};D?D.length&&D[0].name!==C.name&&(D[0].localizedDisplayText||(C.localizedDisplayText=""),D.unshift(C)):D=[C];return D}}},
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]}}});
GG.prototype.onDateTimeTimezoneChange=GG.prototype.onDateTimeTimezoneChange;GG.prototype.onDatePicked=GG.prototype.onDatePicked;GG.prototype.updateDefaultSelectedValue=GG.prototype.updateDefaultSelectedValue;_.V([_.n(),_.z("design:type",Object)],GG.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],GG.prototype,"calendarConfig",void 0);_.V([_.n(),_.z("design:type",Object)],GG.prototype,"selectedDate",void 0);_.V([_.n(),_.z("design:type",Object)],GG.prototype,"selectedTimeIndex",void 0);
_.V([_.n(),_.z("design:type",Object)],GG.prototype,"selectedTimezoneIndex",void 0);_.V([_.kn("#time-listbox"),_.z("design:type",Object)],GG.prototype,"timeListBox",void 0);_.V([_.kn("#timezone-listbox"),_.z("design:type",Object)],GG.prototype,"timezoneListBox",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],GG.prototype,"rendererStamperBehavior",void 0);_.V([_.e("data.timezoneOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],GG.prototype,"timeZones",null);
_.V([_.bH("data","timeZones"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GG.prototype,"updateDefaultSelectedValue",null);_.V([_.e("selectedTimezoneIndex","timeZones"),_.z("design:type",Object),_.z("design:paramtypes",[])],GG.prototype,"selectedTimezone",null);_.V([_.e("selectedTimeIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],GG.prototype,"selectedTime",null);
_.V([_.$n("ytd-calendar-date-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],GG.prototype,"onDatePicked",null);_.V([_.vr("selectedTimezone","selectedTime","selectedDate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GG.prototype,"onDateTimeTimezoneChange",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],GG);
_.G(GG,"ytd-date-time-picker-renderer",function(){if(oSe!==void 0)return oSe;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return oSe=D},{mode:1});var uyf;var VE=function(){var D=_.w.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.dismissTapHandler()};
D.dismissButtonOverrides={size:"XS"};return D};
_.h(VE,_.w);VE.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}}}}}};
VE.prototype.dismissTapHandler=function(){_.lE(this.hostElement,"yt-backstage-attachment-dismissed")};
VE.prototype.computeAttachmentType=function(D){return D?D.backstageImageRenderer?"image":D.videoRenderer?"video":"none":"none"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],VE.prototype,"attachmentPreview",void 0);_.V([_.n(),_.z("design:type",Object)],VE.prototype,"dismissButton",void 0);_.V([_.n(),_.z("design:type",Object)],VE.prototype,"boundOnTapDismissButton",void 0);
_.V([_.n(),_.z("design:type",Object)],VE.prototype,"dismissButtonOverrides",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.z("design:type",String)],VE.prototype,"attachmentType",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],VE);
_.G(VE,"ytd-backstage-dismissable-attachment",function(){if(uyf!==void 0)return uyf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return uyf=D},{mode:1});var QOb;var TG=function(){var D=_.w.apply(this,arguments)||this;D.selectedVideoId=void 0;D.picker=void 0;D.dismissButtonOverrides={size:"XS"};D.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return D};
_.h(TG,_.w);_.S=TG.prototype;_.S.onServiceRequestCompleted=function(D){D.stopPropagation()};
_.S.handleAddVideoPreviewAction=function(D){D=this.get("addVideoPreviewAction",D);this.onGetVideoPreviewSuccess(D)};
_.S.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}}}}}};
_.S.onLaunchVideoPicker=function(D){var C=this,X=_.Mh(this.get("addVideoLinkAction.title",D)),c=this.get("addVideoLinkAction.onePickHostId",D);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",D);c&&(this.picker||(X=_.T0C(_.g9W(c).setTitle(X).addView(FRf()).addView(wfg()),function(W){C.onPickVideo(W)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",D)||X.addView("youtube"),this.picker=X.build()),this.picker.setVisible(!0))};
_.S.onPickVideo=function(D){if(D)if(D.action==="cancel")_.lE(this.hostElement,"yt-video-link-button-cancel");else if(D.action==="picked"){D=D.docs;if(!D||D.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(D=(D==null?0:D.length)?D[0]:void 0)?D.id:void 0;this.setVideoPreview()}};
_.S.setVideoPreview=function(){var D=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){D.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.S.onGetVideoPreviewSuccess=function(D){if(D&&D.videoPreview&&D.cancelButton)this.videoPreview=D.videoPreview,this.cancelButton=D.cancelButton,_.lE(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.S.onGetVideoPreviewError=function(){this.cancel()};
_.S.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.lE(this.hostElement,"yt-video-link-cancel")};
_.S.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
TG.prototype.onServiceRequestCompleted=TG.prototype.onServiceRequestCompleted;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],TG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],TG.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TG.prototype,"videoPreview",void 0);_.V([_.n(),_.z("design:type",Object)],TG.prototype,"cancelButton",void 0);_.V([_.n(),_.z("design:type",Object)],TG.prototype,"getVideoPreviewCommand",void 0);_.V([_.n(),_.z("design:type",Object)],TG.prototype,"dismissButtonOverrides",void 0);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],TG.prototype,"onServiceRequestCompleted",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],TG);
_.G(TG,"ytd-backstage-video-link-attachment",function(){if(QOb!==void 0)return QOb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return QOb=D},{mode:1});var Bfg;var b8N;var rOe;var Hn=function(){return _.w.apply(this,arguments)||this};
_.h(Hn,_.w);Hn.prototype.dataChanged=function(){this.active=!1};
Hn.prototype.onTap=function(){_.lE(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Hn.prototype.identity=function(D){return D};
_.$a.Object.defineProperties(Hn.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;if((D=this.data)==null?0:(C=D.image)==null?0:(X=C.thumbnails)==null?0:(c=X[0])==null?0:c.url)return D=this.data.image.thumbnails[0].url,D.startsWith("data:image/svg+xml")?nf(D):_.Hv(D)}}});
Hn.prototype.dataChanged=Hn.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],Hn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Hn.prototype,"active",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hn.prototype,"dataChanged",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Hn.prototype,"imageSrc",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Hn);
_.G(Hn,"ytd-emoji-suggestion",function(){if(rOe!==void 0)return rOe;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rOe=D},{mode:1});var K7f=/.*([:@#].*?)$/,J1=function(){var D=_.w.apply(this,arguments)||this;D.suggestions=[];D.suggestionIndex=-1;D.JSC$16053_lastSuggestionRange=null;return D};
_.h(J1,_.w);_.S=J1.prototype;_.S.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.S.getSuggestions=function(D){var C=[],X=Mad(this.emojiManager,D.substr(0,3));if(X)for(var c in X)if(c.toLocaleLowerCase().indexOf(D)===0){var W=X[c];if(W&&W.emojiId){W=u9(this.emojiManager,W.emojiId);var p=void 0,g=void 0,a=void 0,O=void 0,P=((p=W)==null?0:p.isCustomEmoji)?(g=W)==null?void 0:(a=g.shortcuts)==null?void 0:a[0]:(O=W)==null?void 0:O.emojiId;p=void 0;C.push({suggestion:{image:(p=W)==null?void 0:p.image,alt:P,text:c}});if(C.length>=64)break}}return C?C.sort(function(k,u){return u.suggestion.text<
k.suggestion.text?-1:u.suggestion.text===k.suggestion.text?0:1}):null};
_.S.insertSuggestion=function(D){_.lE(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16053_lastSuggestionRange,text:D.alt});this.dropdown.opened=!1};
_.S.updateSuggestionsAtCaret=function(D){this.updateSuggestions(D,this.retrieveTextBeforeRange(D))};
_.S.offsetStartOfRangeBy=function(D,C){D.startOffset>=C&&D.setStart(D.startContainer,D.startOffset-C)};
_.S.updateSuggestions=function(D,C){var X=this;this.JSC$16053_lastSuggestionRange&&(this.JSC$16053_lastSuggestionRange.detach(),this.JSC$16053_lastSuggestionRange=null);if((C=K7f.exec(C))&&C.length&&(C=C[C.length-1].toLocaleLowerCase(),C.length>2||C===":_")&&(this.offsetStartOfRangeBy(D,C.length),this.JSC$16053_lastSuggestionRange=D,(D=this.getSuggestions(C))&&D.length)){this.suggestions=D;_.A0(this,function(){X.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.S.onKeyDown=function(D){if(this.dropdown.opened)switch(D.key){case "Escape":this.dropdown.opened=!1;D.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);D.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.S.onKeyUp=function(D,C){switch(D.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(C);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(C)}};
_.S.onKeyPress=function(D){D.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),D.preventDefault())};
_.S.changeSuggestionIndex=function(D){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(D+this.suggestions.length)%this.suggestions.length,D=this.dropdownContent.children[this.suggestionIndex],D.active=!0,this.dropdownContent.scrollTop=D.offsetTop)};
_.S.retrieveTextBeforeRange=function(D){var C=D.startContainer;return C&&C.nodeType===Node.TEXT_NODE?C.textContent.substr(0,D.startOffset):""};
J1.prototype.onKeyPress=J1.prototype.onKeyPress;J1.prototype.onKeyUp=J1.prototype.onKeyUp;J1.prototype.onKeyDown=J1.prototype.onKeyDown;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Array)],J1.prototype,"suggestions",void 0);_.V([_.n(),_.z("design:type",_.i9)],J1.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",Number)],J1.prototype,"verticalSuggestionsOffset",void 0);
_.V([_.kn("#dropdown"),_.z("design:type",Object)],J1.prototype,"dropdown",void 0);_.V([_.kn("#dropdown-content"),_.z("design:type",HTMLDivElement)],J1.prototype,"dropdownContent",void 0);_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],J1.prototype,"onKeyDown",null);_.V([_.$n("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent,Range]),_.z("design:returntype")],J1.prototype,"onKeyUp",null);
_.V([_.$n("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],J1.prototype,"onKeyPress",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-emoji-input"})],J1);
_.G(J1,"ytd-emoji-input",function(){if(b8N!==void 0)return b8N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return b8N=D},{mode:2});var hqe;var zG=function(){var D=_.w.apply(this,arguments)||this;D.hasMaxOptions=!1;return D};
_.h(zG,_.w);_.S=zG.prototype;_.S.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.S.setPrefilledChoices=function(D){var C=this;this.set("pollOptions",[]);var X;for(X=0;X<Math.min(D.length,this.data.maxPollOptions);X++)this.push("pollOptions",D[X].substring(0,this.data.maxPollOptionChars));for(;X<this.data.minPollOptions;X++)this.push("pollOptions","");this.hasMaxOptions=X>=this.data.maxPollOptions;_.A0(this,function(){for(var c=C.pollOptions,W=_.SY(C.hostElement).querySelectorAll(".poll-option-input"),p=0;p<W.length;p++)W[p].value=c[p]})};
_.S.focusChanged=function(){_.Os(this.hostElement)};
_.S.onInput=function(){var D=this;_.Hr(this,"onInput",function(){D.isValid()?_.lE(D.hostElement,"yt-commentbox-post-enable"):_.lE(D.hostElement,"yt-commentbox-post-disable")},300)};
_.S.setPollOptions=function(){var D=[],C,X=((C=this.data)==null?0:C.minPollOptions)?this.data.minPollOptions:0;for(C=0;C<X;C++)D.push("");return D};
_.S.addPollOption=function(){var D=this;_.lE(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.qX.addLowPriorityJob(function(){var C;(C=_.SY(D.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||C.focus()})};
_.S.onRemovePollOption=function(D){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.lE(this.hostElement,"yt-poll-attachment-dismiss")):(D=this.repeat.indexForElement(D.target.parentNode),D!==null&&(this.splice("pollOptions",D,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.lE(this.hostElement,"yt-commentbox-post-enable"))))};
_.S.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.S.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var D=0,C=this.pollOptions.length;D<C;D++)if(this.pollOptions[D].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.S.getPollOptions=function(){return this.pollOptions};
_.S.setPollOptionsFromInputs=function(){for(var D=_.SY(this.hostElement).querySelectorAll(".poll-option-input"),C=0;C<D.length;C++)this.pollOptions[C]=D[C].value.trim()};
_.S.clearPollOptions=function(){var D=_.SY(this.hostElement).querySelectorAll(".poll-option-input");D=_.U(D);for(var C=D.next();!C.done;C=D.next())C.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.S.getSimpleString=function(D){return _.Mh(D)};
_.S.updateValueFromBinding=function(D){if(D.target&&this.pollOptions){var C=Array.from(_.SY(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(D.target);if(C>=0){var X;this.pollOptions[C]=(X=D.detail.value)!=null?X:"";this.notifyPath("pollOptions."+C)}}};
zG.prototype.dataChanged=zG.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zG.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Array)],zG.prototype,"pollOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],zG.prototype,"hasMaxOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],zG.prototype,"enableCreationBox",void 0);
_.V([_.kn("#repeat"),_.z("design:type",eY)],zG.prototype,"repeat",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zG.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-poll-attachment"})],zG);
_.G(zG,"ytd-poll-attachment",function(){if(hqe!==void 0)return hqe;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hqe=D},{mode:2});var xex;var L7c;var sO4;var meC;var jw=function(){return _.w.apply(this,arguments)||this};
_.h(jw,_.w);_.$a.Object.defineProperties(jw.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],jw.prototype,"rendererBehaviors",void 0);_.V([_.n(),_.z("design:type",Object)],jw.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],jw.prototype,"focused",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("focused"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"ariaSelected",null);_.V([_.Yn({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],jw);
_.G(jw,"yt-user-mention-suggestion-renderer",function(){if(meC===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;sO4===void 0&&(sO4=document.createElement("template"));var c=sO4;X.call(C,c.content.cloneNode(!0),D.content.firstChild);meC=D}D=meC;return D},{mode:2});var eqk;var ES5;var MW=function(){var D=_.w.apply(this,arguments)||this;D.focusedSuggestionIndex=-1;return D};
_.h(MW,_.w);_.S=MW.prototype;_.S.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.S.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.S.setFocusedSuggestionIndex=function(D){!this.data||!this.data.suggestions||D<0||D>=this.data.suggestions.length||(this.focusedSuggestionIndex=D,D=this.getSuggestionId(D),this._setFocusedSuggestionId(D))};
_.S.advanceSuggestion=function(D){this.focusedSuggestionIndex===-1||D!==-1&&D!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+D),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.S.ensureSuggestionVisible=function(D){D=this.getSuggestionId(D);D=_.SY(this.hostElement).querySelector("[id="+D+"]");D!=null&&(D.offsetTop<this.hostElement.scrollTop?D.scrollIntoView(!0):D.offsetTop+D.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&D.scrollIntoView(!1))};
_.S.getSuggestionId=function(D){return"user-mention-suggestion-"+D};
_.S.onSuggestionTap=function(D){var C=_.r(D.model.item,X9C);this.ytRendererBehavior.logExplicitClick(C);_.lE(this.hostElement,"yt-user-mention-suggestion-selected",{data:C,index:D.model.index})};
_.S.onSuggestionMouseMove=function(D){D.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(D.model.index)};
_.S.isSuggestionFocused=function(D,C){return D===C};
_.S.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.S.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("focused-suggestion-id-changed",this.focusedSuggestionId))};
MW.prototype.focusedSuggestionIdChangedForBinding=MW.prototype.focusedSuggestionIdChangedForBinding;MW.prototype.onDomChange=MW.prototype.onDomChange;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],MW.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],MW.prototype,"focusedSuggestionIndex",void 0);_.V([_.n({readOnly:!0}),_.z("design:type",String)],MW.prototype,"focusedSuggestionId",void 0);
_.V([_.$n("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],MW.prototype,"onDomChange",null);_.V([_.vr("focusedSuggestionId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MW.prototype,"focusedSuggestionIdChangedForBinding",null);_.V([_.Yn({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],MW);
_.G(MW,"yt-user-mention-suggestions-dropdown",function(){if(ES5===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;eqk===void 0&&(eqk=document.createElement("template"));var c=eqk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ES5=D}D=ES5;return D},{mode:2});var qW=function(){var D=_.w.apply(this,arguments)||this;D.suggestionsResponse=null;D.activeMention=null;D.selectionChangeListener=D.onSelectionChange.bind(D);D.handlesEnabled=_.b("enable_handles_in_mention_suggest_posts");D.handlesInMentionSuggestionsEnabled=_.b("handles_in_mention_suggest_posts");D.zeroPrefixMentionSuggestionEnabled=_.b("enable_zero_prefix_mention_suggestion_web");D.pendingQuery=null;D.flowNonce=null;return D};
_.h(qW,_.w);_.S=qW.prototype;_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.S.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.S.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.S.hasSuggestions=function(D){return!!(D&&D.suggestions&&D.suggestions.length>0)};
_.S.onInput=function(){var D=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var C=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),X=this.activeMention.JSC$11509_getText().slice(-1)===" ",c=this.activeMention.JSC$11509_getText().slice(-2,-1)===" ",W="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11509_getText().slice(-2,
-1))>=0;W=this.zeroPrefixMentionSuggestionEnabled&&W;if(this.activeMention.isCollapsed()||(C||c||W)&&X)this.cancelActiveMention();else{var p=this.activeMention.JSC$11509_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Hr(this,"requestSuggestions",function(){D.requestSuggestions(p)},100)}}}};
_.S.onServiceRequestSent=function(D){D.stopPropagation()};
_.S.onServiceRequestCompleted=function(D){D.stopPropagation();D=D.detail.data;D.query&&(!this.pendingQuery||this.pendingQuery!==D.query)||!this.zeroPrefixMentionSuggestionEnabled&&D.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=D,this.hasSuggestions(D)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.S.onServiceRequestError=function(D){D.stopPropagation()};
_.S.onUserMentionSuggestionSelected=function(D){this.selectSuggestion(D.detail.data,D.detail.index)};
_.S.onSelectionChange=function(){if(this.activeMention){var D=_.gE(),C=this.activeMention.JSC$11509_containsRange(D);D=D&&this.containsHelper(this.dropdown,D.getContainer());C||D||this.cancelActiveMention()}};
_.S.containsHelper=function(D,C){var X;if(((X=window.ShadyDOM)==null?void 0:X.noPatch)===!0)return D.contains(C);for(;C;){if(C===D)return!0;C=C instanceof ShadowRoot?C.host:C.parentNode}return!1};
_.S.maybeStartSuggest=function(){var D=_.gE();if(D&&D.isCollapsed()){var C=D.JSC$11509_getStartNode(),X=D.JSC$11509_getStartOffset();if(C instanceof Text&&!(X<1)){var c=C.textContent;!(c=c&&c.charAt(X-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(c)<0||(this.activeMention=_.Xl(C,X-1,D.JSC$11509_getEndNode(),D.JSC$11509_getEndOffset()),this.flowNonce=KN(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.S.updateActiveMention=function(){if(this.activeMention){var D=_.gE();D&&D.isCollapsed()&&(this.activeMention=_.Xl(this.activeMention.JSC$11509_getStartNode(),this.activeMention.JSC$11509_getStartOffset(),D.JSC$11509_getEndNode(),D.JSC$11509_getEndOffset()))}};
_.S.requestSuggestions=function(D){if(this.activeMention){var C={suggestions_query:D};this.pendingQuery=D;_.cE(this.hostElement,[this.suggestionsEndpoint,C])}};
_.S.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()};
_.S.focusPreviousSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),D.preventDefault())};
_.S.focusNextSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),D.preventDefault())};
_.S.selectFocusedSuggestion=function(D){if(this.hasSuggestions(this.suggestionsResponse)){var C=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.r(C,X9C)&&(this.selectSuggestion(_.r(C,X9C),this.dropdown.focusedSuggestionIndex),D.preventDefault())}};
_.S.selectSuggestion=function(D,C){if(D){var X=this.activeMention;if(X){var c=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&D.handle?_.zi(c,"\u00a0\u2068@"+D.handle+"\u2069\u00a0"):this.handlesEnabled?_.zi(c,"\u00a0"+D.displayName+"\u00a0"):_.zi(c,"\u00a0@"+D.displayName+"\u00a0");ff(c,"/channel/"+D.channelId);c.classList.add("yt-formatted-string","yt-simple-endpoint");c.setAttribute("spellcheck","false");X.isCollapsed()||X.JSC$11509_removeContents();X.insertNode(c,!0);D=document.createTextNode(" ");
c.parentNode.insertBefore(D,c.nextSibling);window.getSelection().collapse(D,1);C={suggestionSelected:{suggestionIndex:C}};if(this.zeroPrefixMentionSuggestionEnabled){var W;C.suggestionSelected.isZeroPrefix=((W=this.suggestionsResponse)==null?void 0:W.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",C);this.cancelActiveMention();_.lE(this.hostElement,"yt-mention-inserted")}}};
_.S.getPositionTarget=function(D){return D&&D.getBrowserRangeObject()};
_.S.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.S.onFocusedSuggestionIdChanged=function(D){var C=_.bj5(this.hostElement)[0];C&&(D.detail.value?C.setAttribute("aria-activedescendant",D.detail.value):C.removeAttribute("aria-activedescendant"))};
_.S.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.S.logGELEvent=function(D,C){D={eventType:D,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};C&&(D=Object.assign(D,C));_.zu("userMentionAutoCompleteBoxEvent",D)};
qW.prototype.onDomChange=qW.prototype.onDomChange;qW.prototype.onUserMentionSuggestionSelected=qW.prototype.onUserMentionSuggestionSelected;qW.prototype.onServiceRequestError=qW.prototype.onServiceRequestError;qW.prototype.onServiceRequestCompleted=qW.prototype.onServiceRequestCompleted;qW.prototype.onServiceRequestSent=qW.prototype.onServiceRequestSent;qW.prototype.onInput=qW.prototype.onInput;_.V([_.m(_.H8),_.z("design:type",Object)],qW.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],qW.prototype,"suggestionsEndpoint",void 0);_.V([_.n(),_.z("design:type",Object)],qW.prototype,"suggestionsResponse",void 0);_.V([_.n(),_.z("design:type",Object)],qW.prototype,"activeMention",void 0);_.V([_.kn("#dropdown"),_.z("design:type",Object)],qW.prototype,"dropdown",void 0);_.V([_.kn("#iron-dropdown"),_.z("design:type",Object)],qW.prototype,"ironDropdown",void 0);
_.V([_.$n("input"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],qW.prototype,"onInput",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qW.prototype,"onServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qW.prototype,"onServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qW.prototype,"onServiceRequestError",null);_.V([_.$n("yt-user-mention-suggestion-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qW.prototype,"onUserMentionSuggestionSelected",null);
_.V([_.$n("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qW.prototype,"onDomChange",null);_.V([_.Yn({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],qW);
_.G(qW,"yt-user-mention-autosuggest-input",function(){if(L7c===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;xex===void 0&&(xex=document.createElement("template"));var c=xex;X.call(C,c.content.cloneNode(!0),D.content.firstChild);L7c=D}D=L7c;return D},{mode:2});var fj=null;
_.mZ({is:"ytd-commentbox",_template:function(){if(Bfg!==void 0)return Bfg;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Bfg=D},
behaviors:[_.Dcn.YtHostElementBehavior,_.H8,_.Jy.YtActionHandlerBehavior,_.O7.YtComponentBehavior,_.eO.YtRendererstamperBehavior,_.OB4.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(D,C){return _.aI(D.entities,"aadcGuidelinesStateEntityPayload",C)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(D,C){return _.aI(D.entities,"commentboxStateEntity",C)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.Qd}},
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:_.b("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.b("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",_.Pr(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(D){this.fire(D?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(D){this.set("submitButtonDisabled",void 0);this.clear();D&&this.computeIsEmojiButtonDisplayed_(D)&&(D=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&D.updateEmojiCategories()},
observePrefilledImage_:function(D,C,X){this.isValidPrefilledImage_(D,C,X)&&(this.prefilledAttachment_="image",this.prefilledImageData_=C,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(D,C){this.isValidPrefilledVideo_(D,C)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(D){D&&D.pollData&&D.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(D.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.m8();this.focus()},
detached:function(){document.removeEventListener("tap",_.Pr(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(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var C=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(C,D);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var D=_.gE();if(D){D=D.getBrowserRangeObject();for(var C=D.commonAncestorContainer;C;){if(C===this.getEditableTextArea_())return D;C=C.parentNode}}D=this.getEditableTextArea_();D=_.C0(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,C,X){(C=this.emojiManager.createDocumentFragment(C,!0,!1,X===void 0?!0:X))&&C.childNodes.length!==0&&(D.collapsed||D.deleteContents(),X=C.lastChild,D.insertNode(C),_.Q_k(X).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var D=_.gE();if(D){var C=D.JSC$11509_getStartNode(),X=D.JSC$11509_getEndNode();if(gG5(C)&&gG5(X)){var c=D.JSC$11509_getStartOffset(),W;if(_.Au&&C.nodeType===Node.ELEMENT_NODE&&(W=_.$3b(C)))_.C0(W,0).select();else{W=pm(C)?C:_.zv(C,pm);var p=pm(X)?X:_.zv(X,pm);if(W||p)if(D.isCollapsed()){if(C.nodeType===Node.TEXT_NODE){D=!0;c===C.length&&(D=!1);if(fj==="end"||fj==="right")D=!1;C=C.parentNode;D=[].concat(_.VB(C.parentNode.childNodes)).indexOf(C)+(D?0:1);_.C0(C.parentNode,
D).select()}}else W?W.previousSibling&&W.previousSibling.length>0?_.Xl(X,D.JSC$11509_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(C=document.createTextNode("\u200b"),W.parentNode.insertBefore(C,W),_.Xl(X,D.JSC$11509_getEndOffset(),C,0).select()):p&&(p.nextSibling&&p.nextSibling.length>0?_.Xl(C,D.JSC$11509_getStartOffset(),p.nextSibling,1).select():(X=document.createTextNode("\u200b"),p.parentNode.insertBefore(X,p.nextSibling),_.Xl(C,D.JSC$11509_getStartOffset(),X,X.length).select()));
fj=null}}else fj=null}else fj=null},
leftKeyPressed_:function(){fj="left"},
rightKeyPressed_:function(){fj="right"},
endKeyPressed_:function(){fj="end"},
maybeDeleteChip_:function(){var D=$Kj(!0);if(D){var C=_.gE(),X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();_.fr(X,C,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=$Kj(!1);if(D){var C=_.gE(),X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();_.fr(X,C,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var C=_.gE();if(C.isCollapsed()){var X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();var c=vGZ(X,C,!0);c&&(_.fr(X,C,c,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var C=_.gE();if(C.isCollapsed()){var X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();var c=vGZ(X,C,!1);c&&(_.fr(X,C,c,c.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onTap_:function(D){if(!D.defaultPrevented&&(D.currentTarget.tagName==="YTD-COMMENTBOX"&&pm(D.target)&&D.preventDefault(),this.isEmojiPickerDisplayed)){var C=this.$$("#emojis"),X=this.$$("#emoji-button"),c=this.getEditableTextArea_();if((D=D.path?D.path:D.composedPath&&D.composedPath())&&!D.includes(C)&&!D.includes(c)&&!D.includes(X))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(D,C,X){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&C!==void 0&&C.encryptedBlobId!==null&&C.sourceExternalVideoId!==null&&X!==void 0&&X.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(D,C){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!C&&!!C.videoRenderer&&!!C.videoRenderer.videoId},
isValidPrefilledAttachment_:function(D,C,X){return this.isValidPrefilledImage_(D,C,X)||this.isValidPrefilledVideo_(D,X)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.b("enable_multi_image_post_creation")){var D=this.$$("ytd-backstage-multi-image-select-renderer");D&&D.hasImages()&&D.cancel()}else(D=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&D.cancel();(D=this.$["poll-attachment"])&&this.hasPoll_&&D.clearPollOptions();(D=this.$["image-poll-attachment"])&&this.hasImagePoll_&&D.resetPollOptions();(D=this.$["quiz-attachment"])&&this.hasQuiz_&&D.resetQuizOptions();
(D=this.$["video-link-attachment"])&&this.hasVideo_&&D.cancel();(D=this.$["access-restrictions-selector"].firstElementChild)&&D.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 _.SY(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.SY(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(D,C){D=IBR(D,this.emojiManager,C).cloneNode(!0);for(C=D.firstChild;C;)if(C.nodeType!==1)C=C.nextSibling;else switch(C.tagName){case "BR":var X=_.ZV();_.rp5(X,C);C=X.nextSibling;break;case "DIV":(X=C.lastChild)&&C.nextSibling&&_.Hq(_.ZV(),X);C.previousSibling&&(C.previousSibling.nodeType===1||C.previousSibling.nodeType===3&&!C.previousSibling.textContent.endsWith("\n"))&&_.Ti(_.ZV(),C);X&&X.nodeName==="BR"&&_.ep(X);X=C;C.hasChildNodes()?(C=C.firstChild,
_.Keq(X)):(C=C.nextSibling,_.ep(X));break;default:C=C.nextSibling}return igh(D)},
onAddImageError_:function(D){D.stopPropagation();this.errorMessage_=_.jV(D.detail)},
setTextAreaValue_:function(D){D||(D="");var C=this.getEditableFormattedString_();C.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});C.text=D},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();fj=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.C0(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.q6("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),C=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",C)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var D;return X8j((D=this.$["quiz-attachment"])==null?void 0:D.getExplanationText())||X8j(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var C=this.getInputRange_();C&&(D=this.emojiInput.retrieveTextBeforeRange(C))}this.insertText_(D,!0);this.updateCharCount_();this.setSubmitButton_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
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(D){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(D)},
onPasteEmoji_:function(D){D.preventDefault();D.stopImmediatePropagation();D=D.clipboardData.getData("text/plain");this.insertText_(D,!1,!1)},
insertText_:function(D,C,X){C=C===void 0?!1:C;X=X===void 0?!0:X;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var c=this.getInputRange_().cloneRange();this.emojiManager&&c&&(C&&this.emojiInput.offsetStartOfRangeBy(c,D.length),this.insertTextWithEmojis_(c,D,X),aBr(this.getEditableTextArea_().lastChild)||(c=this.getInputRange_().cloneRange()),c&&(this.emojiInput.updateSuggestions(c,D),this.updateSuggestionOffset_(c)))}},
setSubmitButton_:function(){if(this.data){var D=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",C=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(D||C){var X=this.getTextAreaValue().trim();C=X===this.previousText_;X=!X||this.aboveCharLimit_;D&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(X=this.aboveCharLimit_);this.submitButtonDisabled=
C||X||!this.getTextLength();D&&_.b("enable_post_scheduling")&&(this.submitButtonDisabled=C&&!this.scheduledPublishTimeSec_||X)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Mh,computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computeFooterMessageClass_:function(D,C){return C?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(D,C){return C?C:D},
computeFooterMessageHidden_:function(D,C){return!C&&!D},
computePlaceholderText_:function(D,C,X){return(X==="video"||X==="image")&&(D==null?0:D.prefilledPlaceholderText)?D==null?void 0:D.prefilledPlaceholderText:C==="poll"||C==="image-poll"?D==null?void 0:D.pollPostPlaceholderText:C==="quiz"?D==null?void 0:D.quizPostPlaceholderText:C==="image"?D==null?void 0:D.imagePostPlaceholderText:D==null?void 0:D.placeholderText},
computeHideAttachmentButtons_:function(D,C,X,c){return D===void 0?!1:c&&this.getSimpleString(c)===this.getSimpleString(D.rateLimitErrorMessage)?!0:C!=="none"||X!=="none"||!D.videoLinkButton&&!D.pollButton&&!D.imagePollButton&&!D.quizButton&&!D.imageButton},
computeHideDismissableAttachment_:function(D){return D!=="image"&&D!=="video"},
computeHasVideo_:function(D){return D==="video"},
computeHasImage_:function(D){return D==="image"},
computeHasPoll_:function(D){return D==="poll"},
computeHasImagePoll_:function(D){return D==="image-poll"},
computeHasQuiz_:function(D){return D==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(D){return D&&D.backstageAttachment?D.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!D.backstageAttachment.quizRenderer&&!D.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(D){if(this.isValidPrefilledAttachment_(D.purpose,D.prefilledImageData,D.backstageAttachment))return D.backstageAttachment},
computeEditAttachment_:function(D){if(this.computePrefilledContent_(D)===void 0)return D.backstageAttachment},
computeAuthorThumbnailDimension_:function(D,C){return D&&!C?24:40},
computeImageUploadEndpoint_:function(D){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",D)},
computeRateLimitErrorCommands_:function(D){var C,X;return D==null?void 0:(C=D.advancedTierFeatures)==null?void 0:(X=C.rateLimit)==null?void 0:X.rateLimitCommands},
computeIsBackstageComment_:function(D){return!(!D||D!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)||this.get("replyButton.buttonRenderer.serviceEndpoint",D)||this.get("postButton.buttonRenderer.serviceEndpoint",D)},
computeSubmitButtonOverride:function(){if(_.b("web_modern_buttons")){var D,C;return{segmentedPosition:this.dropdownSchedulePanel_||!((D=this.data)==null?0:(C=D.postOptionsMenu)==null?0:C.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.b("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(D,C){D=this.get("submitButton.buttonRenderer",D)||this.get("replyButton.buttonRenderer",D)||this.get("postButton.buttonRenderer",D);C&&(D=C);D&&(D=Object.assign({},D),D.serviceEndpoint=void 0,D.isDisabled=this.submitButtonDisabled);return D},
computeHasExternalLinksAccess_:function(D){if(_.b("enable_rfa_external_links")){var C,X,c;return(c=D==null?void 0:(C=D.advancedTierFeatures)==null?void 0:(X=C.externalLinks)==null?void 0:X.allowExternalLinks)!=null?c:!0}return!0},
computeIsEmojiButtonDisplayed_:function(D){return D.emojiButton&&D.emojiPicker&&D.emojiPicker.emojiPickerRenderer&&D.emojiPicker.emojiPickerRenderer.categories?D.emojiPicker.emojiPickerRenderer.categories.find(function(C){return C.emojiPickerCategoryRenderer?C.emojiPickerCategoryRenderer.emojiIds&&C.emojiPickerCategoryRenderer.emojiIds.length>0:C.emojiPickerUpsellCategoryRenderer?C.emojiPickerUpsellCategoryRenderer.emojis&&C.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(D){return D.charLimit?D.charLimit:null},
computeDropdownSchedulingPanel_:function(D,C){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&C)return C},
computeInlineSchedulingPanel_:function(D,C){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&C)return C},
computeHideAuthorThumbnail_:function(D,C){return D||this.computeUseIdentityChip_(C)},
computeHideIdentityChipRenderer_:function(D,C){return D||!this.computeUseIdentityChip_(C)},
computeUseIdentityChip_:function(D){return!!D&&!!D.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(D){var C,X,c,W;(D==null?0:(C=D.detail)==null?0:(X=C.endpoint)==null?0:X.ypcGetOffersEndpoint)||(D==null?0:(c=D.detail)==null?0:(W=c.endpoint)==null?0:W.ypcOffersEndpoint)?(D.stopPropagation(),_.cE(this,[D.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(D.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(D){this.addedAttachment="video";this.selectedVideoId_=D.detail.videoId},
commentboxStateEntityChanged_:function(D){var C=this;(D==null?void 0:D.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(D==null?void 0:D.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){C.focus()})},
onYtServiceRequestSent_:function(D,C){if(C.actions)for(D=_.U(C.actions),C=D.next();!C.done;C=D.next())C.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(D){this.isLoading=!1;var C=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",D),X,c,W,p=D==null?void 0:(X=D.detail)==null?void 0:(c=X.data)==null?void 0:(W=c.actionResult)==null?void 0:W.commentboxStateEntityKey;if(C)this.errorMessage_=C;else if(p){var g;this.dismissData_=D==null?void 0:(g=D.detail)==null?void 0:g.data;this.commentboxStateKey_=p}else{this.clear();var a;this.fire("yt-commentbox-dismiss",D==null?void 0:(a=D.detail)==
null?void 0:a.data)}},
onYtServiceRequestError_:function(D){D.stopPropagation();this.isLoading=!1;var C,X;if(((C=this.data)==null?void 0:C.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((X=this.data)==null?void 0:X.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(C=this.get("detail.error.args",D)||[],C.length>1&&C[1].message){this.handlePostsServiceRequestError_(C[1].message);return}(D=this.get("detail.error.message",D))?this.errorMessage_=this.data.errorMessage||_.jV(D):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(D){if(_.b("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var C=_.U(this.rateLimitErrorCommands),X=C.next();!X.done;X=C.next())if(X=X.value,X.errorLabel===D){_.O4(X.command,this.hostElement);return}this.errorMessage_=_.jV(D)},
submitIfNotBackstagePost_:function(D){if(!this.isBackstagePost)this.onSubmit_(D)},
onSubmit_:function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t;return _.I(function(Y){switch(Y.nextAddress){case 1:D.stopPropagation();if(!C.serviceEndpoint||!C.isValidInput_())return Y.return();if(C.shouldShowPostAadcNotice_())return C.showPostAadcNotice_(),Y.return();if(C.shouldShowCommentAadcNotice_())return C.showCommentAadcNotice_(),Y.return();if(!(C.$$("ytd-backstage-multi-image-select-renderer")&&C.hasImage_&&_.b("enable_multi_image_post_creation"))){Y.jumpTo(2);break}X=C.$$("ytd-backstage-multi-image-select-renderer");
return Y.yield(X.getAllUploadStatuses(),3);case 3:c=Y.yieldResult;if(!c)return Y.return();W=_.U(c);for(p=W.next();!p.done;p=W.next())if(g=p.value,g.encryptedBlobId===void 0)return C.isLoading=!1,O=a=void 0,C.errorMessage_=(O=(a=C.imageUploadEndpoint_)==null?void 0:a.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?O:null,Y.return();return Y.return(C.submitForm_(void 0,void 0,void 0,void 0,X.images,C.taggedVideoId_));case 2:if(!C.hasImagePoll_||!C.$["image-poll-attachment"]){Y.jumpTo(4);
break}return Y.yield(C.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:P=Y.yieldResult;if(!P)return Y.return();k=_.U(P);for(u=k.next();!u.done;u=k.next())if(Q=u.value,!Q.encryptedBlobId)return C.isLoading=!1,B=void 0,C.errorMessage_=(B=C.data.errorMessage)!=null?B:null,Y.return();case 4:L=(K=C.$$("ytd-backstage-image-select-renderer"))&&K.uploadPromise(),t=C.getSharedPostId_(),L?L.then(function(){C.submitForm_.apply(C,_.VB(_.MJ.apply(0,arguments)))}).catch(function(y){C.isLoading=!1;
C.errorMessage_=_.jV(y.message)}):C.selectedVideoId_?C.submitForm_(void 0,C.selectedVideoId_):C.prefilledAttachment_==="image"?C.submitForm_(C.prefilledImageData_.encryptedBlobId,void 0,void 0,C.prefilledImageData_.sourceExternalVideoId,void 0,C.taggedVideoId_):C.prefilledAttachment_==="video"?C.submitForm_(void 0,C.data.backstageAttachment.videoRenderer.videoId):t?C.submitForm_(void 0,void 0,t):C.taggedVideoId_!==void 0?C.submitForm_(void 0,void 0,void 0,void 0,void 0,C.taggedVideoId_):C.submitForm_(),
_.t_(Y)}})},
openSchedulingPanel:function(D){D&&D.scheduleButton&&D.scheduleButton.buttonRenderer&&(this.scheduleButton_=D.scheduleButton.buttonRenderer);D&&D.dateTimePicker&&this.set("data.schedulingDateTimePicker",D.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(D){D.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(D){D.stopPropagation();D.detail.alertMessage&&(this.alertMessage_=D.detail.alertMessage)},
onImageSelected_:function(D){D.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(D){D.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(D.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(D){var C=this.$["video-link-attachment"];C&&C.onLaunchVideoPicker(D)},
onAttachmentDismiss_:function(D){D.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"&&_.b("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.b("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 D;if(this.addedAttachment==="image-poll"&&((D=this.$["image-poll-attachment"])==null||!D.isValid()))return!1;var C;if(this.addedAttachment==="quiz"&&((C=this.$["quiz-attachment"])==null||!C.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;D=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")D=!0;return D||!!this.getTextAreaValue().trim()},
submitForm_:function(D,C,X,c,W,p){var g=this.getTextAreaValue().trim(),a={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&g===this.previousText_&&(g=void 0);g!==void 0&&(a.comment_text=g);this.isLoading=!0;p!=void 0&&(a.tagged_video_id=p);D?(a.image_blob_id=D,this.imagePreviewCoordinates_&&(a.image_preview_coordinates=this.imagePreviewCoordinates_)):C?a.attached_video_id=C:X?a.shared_post_id=X:W&&W.length>0&&(a.images_data=W.map(function(O){return{encryptedBlobId:O.encryptedBlobId,
previewCoordinates:O.previewCoordinates}}));
c&&(a.source_video_id=c);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(a.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(a.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(a.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(a.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.b("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(a.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.cE(this,[this.serviceEndpoint,a])},
onIsInputFocusChanged_:function(D,C){D?this.fire("yt-autonav-pause-focus"):C!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var C=this.getEditableTextArea_();[].concat(_.VB(D.dataTransfer.items)).forEach(function(X){X.kind==="string"&&X.type.match("^text/plain")&&X.getAsString(function(c){C.appendChild(document.createTextNode(c))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
computeSubmitButtonClass_:function(D,C){return!C||D?"":"with-options"},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.SY(this.emojiInput).querySelector("#dropdown")){var C=this.getEditableTextArea_().getBoundingClientRect().bottom,X=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(C-X)+5;C=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-C;_.SY(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(D){if(_.b("enable_post_scheduling")&&this.data&&this.data.purpose){D=D.detail;if(Math.floor(Date.now()/1E3)>=D)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var C=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(C)||C!==D?this.scheduledPublishTimeSec_=D:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=D;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var D=["image-button","image-poll-button","poll-button","quiz-button"];_.b("auto_convert_posts_video_tag")||D.push("video-link-button");return D},
getButtonRenderer:function(D,C){if(D)switch(C){case "video-link-button":var X;return((X=D.videoLinkButton)==null?void 0:X.buttonRenderer)||void 0;case "image-button":var c;return((c=D.imageButton)==null?void 0:c.buttonRenderer)||void 0;case "poll-button":var W;return((W=D.pollButton)==null?void 0:W.buttonRenderer)||void 0;case "image-poll-button":var p;return((p=D.imagePollButton)==null?void 0:p.buttonRenderer)||void 0;case "quiz-button":var g;return((g=D.quizButton)==null?void 0:g.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var D;return(D=this.data)==null||!D.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var D,C;return!((D=this.data)==null||!D.openAadcDialog)&&!((C=this.aadcGuidelinesState_)==null||!C.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.q6("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var D;((D=this.data)==null?0:D.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Do("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(D){D.clickTrackingParams&&_.iO().clickCommand(D);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.DS(this,"yt-close-popup-action")},
onHideIdentityChip:function(D){var C;this.set("data.placeholderText",(C=D.hideIdentityChipAction)==null?void 0:C.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var dI=function(){var D=_.w.apply(this,arguments)||this;D.isOpen=!1;D.modern=_.b("web_modern_buttons");D.roundedContainer=!0;D.dropdownButtonOverride=_.b("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;D.inPopupContainer=!1;D.isCommentboxLoading=!1;var C=["image-button","image-poll-button","poll-button"];_.b("enable_quiz_creation")&&C.push("quiz-button");_.b("auto_convert_posts_video_tag")||C.push("video-link-button");D.attachmentButtonIds=C;D.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 D};
_.h(dI,_.w);_.S=dI.prototype;_.S.computeButtonOverride=function(){var D;return((D=this.data)==null?0:D.postOptionsMenu)&&_.b("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.S.configureRendererStamper=function(){var D={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.b("auto_convert_posts_video_tag")||(D["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return D};
_.S.ready=function(){var D=this,C=_.SY(this.hostElement).querySelector("#placeholder-area"),X=function(c){D.onOpen(c)};
C.addEventListener("tap",X);C.addEventListener("keypress",X)};
_.S.showButtonEduTooltip=function(){var D,C,X,c,W,p,g;if(_.b("enable_quiz_creation")&&((D=this.data)==null?0:(C=D.quizButton)==null?0:(X=C.buttonRenderer)==null?0:(c=X.hint)==null?0:(W=c.hintRenderer)==null?0:(p=W.content)==null?0:(g=p.bubbleHintRenderer)==null?0:g.text)&&(_.Zp.getInstance(),D=G0(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(D==null?void 0:
D.length)>0)){this.ytComponentBehavior.resolveCommand(D[0],{form:{element:this.quizButton}});return}var a;if((a=this.data)==null?0:a.imagePollButtonTooltip)if(_.Zp.getInstance(),a=G0(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(a==null?void 0:a.length)>0){this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.imagePollButton}});return}var O;_.b("enable_multi_image_post_creation")&&
((O=this.data)==null?0:O.multiImageButtonTooltip)&&(_.Zp.getInstance(),O=G0(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0&&this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imageButton}}))};
_.S.onCreatePollAction=function(D){_.r(D,hUf)&&(this.JSC$16108_commentbox.addedAttachment="poll",this.openDialog())};
_.S.onAddVideoLinkAction=function(D){if(_.r(D,BW5))this.JSC$16108_commentbox.onAddVideoLink(D)};
_.S.onShowSchedulingPanelCommand=function(D){(D=_.r(D,d4e))&&this.openSchedulingPanel(D)};
_.S.onCreateImagePollCommand=function(D){_.r(D,Rfq)&&(this.JSC$16108_commentbox.openImagePollComponent(),this.openDialog())};
_.S.onCreateQuizCommand=function(D){_.r(D,leJ)&&(this.JSC$16108_commentbox.openQuizComponent(),this.openDialog())};
_.S.openSchedulingPanel=function(D){_.b("enable_post_scheduling")&&(this.openDialog(),this.JSC$16108_commentbox.openSchedulingPanel(D))};
_.S.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.JSC$16108_commentbox.clear(),this.closeDialog())};
_.S.onOpen=function(D){D instanceof KeyboardEvent&&D.type==="keypress"&&D.keyCode!==13&&D.keyCode!==32||(this.data.prepareAccountEndpoint?_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.S.onYtCommentboxDismiss=function(){this.closeDialog()};
_.S.onYtCommentboxLoadingStart=function(D){D.stopPropagation();this.isCommentboxLoading=!0};
_.S.onYtCommentboxLoadingEnd=function(D){D.stopPropagation();this.isCommentboxLoading=!1};
_.S.onYtVideoLinkButtonCancel=function(D){D.stopPropagation();this.onOpen(D)};
_.S.onYtVideoLinkSelected=function(D){D.stopPropagation();this.onOpen(D)};
_.S.onIronSelect=function(D){D.stopPropagation();D.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=D.detail.item.value&&(this.accessRestriction?(this.accessRestriction=D.detail.item.value,this.onOpen(D)):this.accessRestriction=D.detail.item.value)};
_.S.onYtNavigate=function(D){this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(this.JSC$16108_commentbox.addedAttachment="image",this.JSC$16108_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.S.onRequestSent=function(D){for(var C=_.U(D.detail),X=C.next();!X.done;X=C.next())_.r(X.value,gZx)&&(this.JSC$16108_commentbox.addedAttachment="image",this.JSC$16108_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.S.openDialog=function(){var D;(D=this.data)!=null&&D.isIneligibleForCommunityPagePostCreation||(this.JSC$16108_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16108_commentbox.focus())};
_.S.onPopupClosed=function(){_.Zp.getInstance()};
_.S.computeCreationDisabled=function(D){return!!D};
_.S.computeIsCreationDialog=function(D){return!!D&&D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.S.computeDisabledPostButton=function(D){if(!D)return null;D.isDisabled=!0;return D};
_.S.computeIsCreationDialogWithHeader=function(D){return!this.inPopupContainer&&!!D&&!!D.authorText&&D.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.S.computeIsHeaderHidden=function(D,C){return!D||C};
_.S.computeDropdownRendererClasses=function(D){return D?["text-secondary-style"]:[]};
_.S.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var D=_.SY(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;D&&D.reset()};
dI.prototype.onPopupClosed=dI.prototype.onPopupClosed;dI.prototype.onRequestSent=dI.prototype.onRequestSent;dI.prototype.onYtNavigate=dI.prototype.onYtNavigate;dI.prototype.onIronSelect=dI.prototype.onIronSelect;dI.prototype.onYtVideoLinkSelected=dI.prototype.onYtVideoLinkSelected;dI.prototype.onYtVideoLinkButtonCancel=dI.prototype.onYtVideoLinkButtonCancel;dI.prototype.onYtCommentboxLoadingEnd=dI.prototype.onYtCommentboxLoadingEnd;dI.prototype.onYtCommentboxLoadingStart=dI.prototype.onYtCommentboxLoadingStart;
dI.prototype.onYtCommentboxDismiss=dI.prototype.onYtCommentboxDismiss;dI.prototype.showButtonEduTooltip=dI.prototype.showButtonEduTooltip;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],dI.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dI.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dI.prototype,"isOpen",void 0);_.V([_.n({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],dI.prototype,"buttonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dI.prototype,"modern",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dI.prototype,"roundedContainer",void 0);_.V([_.n(),_.z("design:type",Object)],dI.prototype,"dropdownButtonOverride",void 0);_.V([_.n({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.z("design:type",Boolean)],dI.prototype,"creationDisabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],dI.prototype,"enableCreationBox",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.z("design:type",Boolean)],dI.prototype,"isCreationDialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dI.prototype,"inPopupContainer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.z("design:type",Boolean)],dI.prototype,"isCreationDialogWithHeader",void 0);_.V([_.n(),_.z("design:type",Object)],dI.prototype,"accessRestriction",void 0);
_.V([_.n({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.z("design:type",Array)],dI.prototype,"dropdownRendererClasses",void 0);_.V([_.n(),_.z("design:type",Object)],dI.prototype,"isCommentboxLoading",void 0);_.V([_.n(),_.z("design:type",Array)],dI.prototype,"attachmentButtonIds",void 0);_.V([_.kn("#image-button"),_.z("design:type",HTMLElement)],dI.prototype,"imageButton",void 0);
_.V([_.kn("#image-poll-button"),_.z("design:type",HTMLElement)],dI.prototype,"imagePollButton",void 0);_.V([_.kn("#quiz-button"),_.z("design:type",HTMLElement)],dI.prototype,"quizButton",void 0);_.V([_.kn("#commentbox"),_.z("design:type",Object)],dI.prototype,"JSC$16108_commentbox",void 0);_.V([_.vr("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dI.prototype,"showButtonEduTooltip",null);
_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onYtCommentboxDismiss",null);_.V([_.$n("yt-commentbox-loading-start"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onYtCommentboxLoadingStart",null);
_.V([_.$n("yt-commentbox-loading-end"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onYtCommentboxLoadingEnd",null);_.V([_.$n("yt-video-link-button-cancel"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onYtVideoLinkButtonCancel",null);
_.V([_.$n("yt-video-link-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onYtVideoLinkSelected",null);_.V([_.$n("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onIronSelect",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onYtNavigate",null);
_.V([_.$n("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dI.prototype,"onRequestSent",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dI.prototype,"onPopupClosed",null);_.V([_.yj({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],dI);
_.G(dI,"ytd-backstage-post-dialog-renderer",function(){if(DeN!==void 0)return DeN;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return DeN=D},{mode:1});var tAq;var Nfc;var Rr=function(){return _.w.apply(this,arguments)||this};
_.h(Rr,_.w);_.S=Rr.prototype;_.S.computeHeartButtonStyle=function(D){return(D==null?0:D.styleType)?D.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.S.onYtButtonTap=function(){if(this.data.isEnabled){var D=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(D=this.getEndpoint(D))&&_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})}else(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(D)};
_.S.toggle=function(D){this.set("data.isHearted",D!==void 0?D:!this.data.isHearted)};
_.S.getEndpoint=function(D){var C,X=(C=this.data)==null?void 0:C.heartEndpoint,c;C=(c=this.data)==null?void 0:c.unheartEndpoint;if(X&&C)return D?C:X};
_.S.computeButtonAccessibility=function(D,C){var X,c,W=D==null?void 0:(X=D.heartedAccessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label,p,g;D=D==null?void 0:(p=D.unheartedAccessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label;return C?W:D};
_.$a.Object.defineProperties(Rr.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 D;return _.b("kevlar_system_icons")&&!((D=this.data)==null||!D.isHearted)}}});
Rr.prototype.onYtButtonTap=Rr.prototype.onYtButtonTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],Rr.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rr.prototype,"data",void 0);_.V([_.e("data.isHearted"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rr.prototype,"heartTooltip",null);
_.V([_.e("data.isHearted"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rr.prototype,"iconFilled",null);_.V([_.n({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.z("design:type",String)],Rr.prototype,"buttonAccessibility",void 0);_.V([_.n({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],Rr.prototype,"heartButtonStyle",void 0);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rr.prototype,"onYtButtonTap",null);_.V([_.yj({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Rr);
_.G(Rr,"ytd-creator-heart-renderer",function(){if(Nfc!==void 0)return Nfc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Nfc=D},{mode:1});var l4=function(){var D=_.w.apply(this,arguments)||this;D.hasCreatorReply=!1;D.buttonOverrides={size:"S",iconPosition:"icon-only"};D.replyButtonOverrides={size:"S",type:"text"};D.forceIconButton=!_.b("web_modern_buttons");D.modern=_.b("web_modern_buttons");D.buttonTooltipPosition="bottom";D.systemIcons=_.b("kevlar_system_icons");D.replyDialog=null;return D};
_.h(l4,_.w);_.S=l4.prototype;
_.S.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]]"}}}}}};
_.S.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.S.dataChange=function(){this.replyDialog&&_.SY(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var D,C,X;this.isLiked=this.systemIcons&&!!((D=this.data)==null?0:(C=D.likeButton)==null?0:(X=C.toggleButtonRenderer)==null?0:X.isToggled)};
_.S.computeShowVoteCountBeginning=function(D,C){return D===void 0||C===void 0?!0:D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.S.computeShowVoteCountEnd=function(D,C){return D===void 0||C===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.S.computeShowCommentCount=function(D,C){return D===void 0||C===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.S.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.S.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.S.showReplyDialog=function(D){D&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.SY(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=D,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.S.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.S.onRequestSent=function(D){D=_.U(D.detail);for(var C=D.next();!C.done;C=D.next())(C=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",C.value))&&this.showReplyDialog(C)};
_.S.onYtNavigate=function(D){var C,X;(D=(C=_.r(D.detail.endpoint,_.Ied))==null?void 0:(X=C.dialog)==null?void 0:X.commentReplyDialogRenderer)&&this.showReplyDialog(D)};
_.S.onYtServiceRequestSent=function(D,C){D.stopPropagation();if(C.actions)for(D=0;D<C.actions.length;D++){var X=_.r(C.actions[D],Eyg);X&&this.handleUpdateCommentVoteAction(X)}};
_.S.handleUpdateCommentVoteAction=function(D){this.voteCount=D.voteCount||_.jV("0");D.voteStatus==="LIKE"?this.JSC$16120_ytdDislikeToggleButtonRenderer.toggle(!1):D.voteStatus==="DISLIKE"?this.JSC$16120_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16120_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16120_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.S.computeReplyButtonHidden=function(D){return D};
_.S.computeReplyButtonBeginning=function(D){return(D==null?0:D.replyButton)&&D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.S.computeReplyButtonEnd=function(D){return(D==null?0:D.replyButton)&&D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.S.computeActionButtonStyle=function(D){return(D==null?0:D.style)?D.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.S.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.S.onYtToggleButton=function(D){var C,X;this.isLiked=this.systemIcons&&!!((C=D.detail)==null?0:(X=C.actions)==null?0:X.like)};
l4.prototype.onYtToggleButton=l4.prototype.onYtToggleButton;l4.prototype.onButtonTooltipPositionChanged=l4.prototype.onButtonTooltipPositionChanged;l4.prototype.onYtServiceRequestSent=l4.prototype.onYtServiceRequestSent;l4.prototype.onYtNavigate=l4.prototype.onYtNavigate;l4.prototype.onRequestSent=l4.prototype.onRequestSent;l4.prototype.onYtCommentboxDismiss=l4.prototype.onYtCommentboxDismiss;l4.prototype.dataChange=l4.prototype.dataChange;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"voteCount",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"commentCount",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"replyThumbnail",void 0);
_.V([_.n(),_.z("design:type",Object)],l4.prototype,"hasCreatorReply",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],l4.prototype,"enableCreationBox",void 0);_.V([_.n({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],l4.prototype,"actionButtonsStyle",void 0);_.V([_.n({computed:"computeReplyButtonBeginning(data)"}),_.z("design:type",Object)],l4.prototype,"replyButtonBeginning",void 0);
_.V([_.n({computed:"computeReplyButtonEnd(data)"}),_.z("design:type",Object)],l4.prototype,"replyButtonEnd",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"buttonOverrides",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"replyButtonOverrides",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"forceIconButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],l4.prototype,"useCommentIcon",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l4.prototype,"modern",void 0);_.V([_.n(),_.z("design:type",Object)],l4.prototype,"buttonTooltipPosition",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l4.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],l4.prototype,"isLiked",void 0);_.V([_.kn("ytd-button-renderer"),_.z("design:type",Object)],l4.prototype,"ytdReplyButtonRenderer",void 0);
_.V([_.kn("#like-button"),_.z("design:type",Object)],l4.prototype,"JSC$16120_ytdLikeToggleButtonRenderer",void 0);_.V([_.kn("#dislike-button"),_.z("design:type",Object)],l4.prototype,"JSC$16120_ytdDislikeToggleButtonRenderer",void 0);_.V([_.kn("#reply-dialog"),_.z("design:type",HTMLElement)],l4.prototype,"replyDialogElement",void 0);_.V([_.kn("#reply-button"),_.z("design:type",HTMLElement)],l4.prototype,"replyButtonElement",void 0);
_.V([_.kn("#reply-button-end"),_.z("design:type",HTMLElement)],l4.prototype,"replyButtonEndElement",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l4.prototype,"dataChange",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],l4.prototype,"onYtCommentboxDismiss",null);
_.V([_.$n("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],l4.prototype,"onRequestSent",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],l4.prototype,"onYtNavigate",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],l4.prototype,"onYtServiceRequestSent",null);_.V([_.vr("buttonTooltipPosition"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l4.prototype,"onButtonTooltipPositionChanged",null);
_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],l4.prototype,"onYtToggleButton",null);_.V([_.yj({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],l4);
_.G(l4,"ytd-comment-action-buttons-renderer",function(){if(tAq!==void 0)return tAq;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tAq=D},{mode:1});var Y8g;var D8=function(){return _.w.apply(this,arguments)||this};
_.h(D8,_.w);D8.prototype.focus=function(){_.SY(this.hostElement).querySelector("#commentbox").focus()};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],D8.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],D8.prototype,"zeroStepChannelCreationRenderer",void 0);_.V([_.yj({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],D8);
_.G(D8,"ytd-comment-dialog-renderer",function(){if(Y8g!==void 0)return Y8g;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Y8g=D},{mode:1});var yOM;var Cd=function(){var D=_.w.apply(this,arguments)||this;D.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.b("enable_web_delhi_icons")};D.replyButtonOverrides={size:"S",type:"text"};return D};
_.h(Cd,_.w);_.S=Cd.prototype;_.S.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.S.detached=function(){this.replyBox&&this.replyBox.remove()};
_.S.showReplyDialog=function(D){if(D){var C=this.replyBox;C||(C=document.createElement("ytd-comment-reply-dialog-renderer"),C.id="replybox",_.SY(this.replyDialogDiv).appendChild(C));C.data=D;this.replyDialogDiv.hidden=!1;C.openDialog()}};
_.S.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.S.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var D,C=_.r((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand,_.N_);C&&_.lE(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:C})}};
_.S.onYtServiceRequestSent=function(D,C){D.stopPropagation();if(C.actions)for(var X=0;X<C.actions.length;X++){var c=_.r(C.actions[X],Eyg);c?this.handleUpdateCommentVoteAction(c):D.target===this.heartButton&&this.toggleHeartState()}};
_.S.handleUpdateCommentVoteAction=function(D){var C;(C=this.toolbarState)!=null&&C.key&&this.ytdReduxBehavior.dispatch(_.EW("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:D.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":D.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.S.toggleHeartState=function(){var D;(D=this.toolbarState)!=null&&D.key&&this.ytdReduxBehavior.dispatch(_.EW("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.$a.Object.defineProperties(Cd.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return(((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(C=this.toolbarData)==null?void 0:C.likeCountLiked:(X=this.toolbarData)==null?void 0:X.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand)!==void 0&&!_.b("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,C=_.r((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.N_),X,c,W,p,g,a,O,P,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((X=this.toolbarSharedData)==null||!X.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((c=this.toolbarState)==null?void 0:c.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:C!=null?C:_.r((W=this.toolbarSurface)==null?void 0:W.likeCommand,_.N_),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.r((p=this.toolbarSurface)==null?void 0:p.unlikeCommand,_.N_),defaultCommand:this.isVisiblyDisabled?_.r((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.N_):void 0,defaultTooltip:(a=this.toolbarData)==null?void 0:a.likeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:O.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(P=this.toolbarData)==null?void 0:P.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,C=_.r((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.N_),X,c,W,p,g,a,O,P,k,u;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((X=this.toolbarSharedData)==null||!X.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((c=this.toolbarState)==null?void 0:c.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.r((W=this.toolbarSurface)==null?void 0:W.dislikeCommand,_.N_),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.r((p=this.toolbarSurface)==null?void 0:p.undislikeCommand,_.N_),defaultCommand:this.isVisiblyDisabled?_.r((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.N_):void 0,defaultTooltip:(a=this.toolbarData)==null?void 0:a.dislikeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:
O.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(P=this.toolbarSharedData)==null?void 0:P.dislikeReplyButtonA11y:(k=this.toolbarSharedData)==null?void 0:k.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(u=this.toolbarSharedData)==null?void 0:u.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var D,C,X;if(((D=this.toolbarState)==null?void 0:D.heartState)!==void 0&&((C=this.toolbarState)==null?void 0:C.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((X=this.toolbarState)==null?void 0:X.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var c,W,p,g,a,O,P,k,u,Q,B,K,L,t;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(c=this.toolbarData)==null?void 0:c.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.r((O=this.toolbarSurface)==null?void 0:O.heartCommand,
_.N_),unheartEndpoint:this.isVisiblyDisabled?void 0:_.r((P=this.toolbarSurface)==null?void 0:P.unheartCommand,_.N_),disabledEndpoint:this.isVisiblyDisabled?_.r((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.N_):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(u=this.toolbarData)==null?void 0:u.heartActiveTooltip,unheartedTooltip:(Q=this.toolbarData)==null?void 0:Q.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((B=
this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(K=this.toolbarSharedData)==null?void 0:K.unheartButtonA11y:(L=this.toolbarSharedData)==null?void 0:L.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.toolbarSurface)==null||!D.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.commentStrings)!=null&&D.replyButtonText){var C,X,c,W;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(C=this.commentStrings)==null?void 0:C.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.r((X=this.toolbarSurface)==null?void 0:X.replyCommand,_.N_),command:this.isVisiblyDisabled?
_.r((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.N_):this.isSubsOnlyCommentsIneligibleUser?_.r((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand,_.N_):void 0}}}}});
Cd.prototype.onYtServiceRequestSent=Cd.prototype.onYtServiceRequestSent;Cd.prototype.hideReplyDialogDiv=Cd.prototype.hideReplyDialogDiv;_.V([_.n(),_.z("design:type",Object)],Cd.prototype,"commentStrings",void 0);_.V([_.n(),_.z("design:type",Boolean)],Cd.prototype,"isReply",void 0);_.V([_.n(),_.z("design:type",Object)],Cd.prototype,"toolbarData",void 0);_.V([_.n(),_.z("design:type",Object)],Cd.prototype,"toolbarSharedData",void 0);
_.V([_.n(),_.z("design:type",String)],Cd.prototype,"toolbarStateKey",void 0);_.V([_.n(),_.z("design:type",String)],Cd.prototype,"toolbarSurfaceKey",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Cd.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Cd.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.eu),_.z("design:type",Object)],Cd.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.kn("#reply-dialog"),_.z("design:type",HTMLElement)],Cd.prototype,"replyDialogDiv",void 0);_.V([_.kn("#replybox"),_.z("design:type",Object)],Cd.prototype,"replyBox",void 0);_.V([_.kn("ytd-creator-heart-renderer"),_.z("design:type",Object)],Cd.prototype,"heartButton",void 0);_.V([_.n({selector:function(D,C){return _.aI(D.entities,"engagementToolbarStateEntityPayload",C)},
selectorArgs:["toolbarStateKey"]}),_.z("design:type",Object)],Cd.prototype,"toolbarState",void 0);_.V([_.n({selector:S0m,selectorArgs:["toolbarSurfaceKey"]}),_.z("design:type",Object)],Cd.prototype,"toolbarSurface",void 0);_.V([_.n(),_.z("design:type",Object)],Cd.prototype,"buttonOverrides",void 0);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cd.prototype,"hideReplyDialogDiv",null);
_.V([_.e("toolbarData","toolbarState"),_.z("design:type",String),_.z("design:paramtypes",[])],Cd.prototype,"likeCount",null);_.V([_.e("likeCount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cd.prototype,"showLikeCount",null);_.V([_.e("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cd.prototype,"isVisiblyDisabled",null);_.V([_.e("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cd.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.V([_.e("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cd.prototype,"isSubsOnlyCommentsEligibleUser",null);_.V([_.e("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cd.prototype,"hasPrepareAccountCommand",null);_.V([_.e("toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cd.prototype,"likeToggleButtonRenderer",null);
_.V([_.e("isReply","toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cd.prototype,"dislikeToggleButtonRenderer",null);_.V([_.e("toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cd.prototype,"creatorHeartSupportedRenderer",null);_.V([_.e("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cd.prototype,"hasReplyCommand",null);
_.V([_.e("toolbarSurface","commentStrings","isVisiblyDisabled"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cd.prototype,"replyButtonRenderer",null);_.V([_.n(),_.z("design:type",Object)],Cd.prototype,"replyButtonOverrides",void 0);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Cd.prototype,"onYtServiceRequestSent",null);_.V([_.yj({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Cd);
_.G(Cd,"ytd-comment-engagement-bar",function(){if(yOM!==void 0)return yOM;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return yOM=D},{mode:1});var nSx;var XB=function(){return _.w.apply(this,arguments)||this};
_.h(XB,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],XB.prototype,"data",void 0);_.V([_.yj({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],XB);
_.G(XB,"ytd-comment-inline-thumbnail-renderer",function(){if(nSx!==void 0)return nSx;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return nSx=D},{mode:1});var wsc;var ch=function(){return _.w.apply(this,arguments)||this};
_.h(ch,_.w);ch.prototype.onMessageTap=function(){if(this.onTapCommand){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);D&&this.ytdOpenPopupBehavior.openPopup(D)}};
_.$a.Object.defineProperties(ch.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return(D=this.data)==null?void 0:(C=D.button)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.command}}});
_.V([_.m(_.eu),_.z("design:type",Object)],ch.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ch.prototype,"data",void 0);_.V([_.e("data.button.buttonRenderer.command"),_.z("design:type",Object),_.z("design:paramtypes",[])],ch.prototype,"onTapCommand",null);_.V([_.yj({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],ch);
_.G(ch,"ytd-comment-pause-composer-renderer",function(){if(wsc!==void 0)return wsc;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return wsc=D},{mode:1});var F7f;var Z8k;var of=function(){var D=_.w.apply(this,arguments)||this;D.isOpen=!1;return D};
_.h(of,_.w);_.S=of.prototype;_.S.dataChanged=function(){this.isOpen=!1};
_.S.onTap=function(){this.data&&(this.data.navigationEndpoint?_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.S.focus=function(){this.JSC$16149_commentbox.focus()};
_.S.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.S.openDialog=function(){this.isOpen=!0;this.JSC$16149_commentbox.focus();this.JSC$16149_commentbox.maybeHeightChanged()};
of.prototype.onYtCommentboxDismiss=of.prototype.onYtCommentboxDismiss;of.prototype.dataChanged=of.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],of.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],of.prototype,"isOpen",void 0);_.V([_.kn("#commentbox"),_.z("design:type",Object)],of.prototype,"JSC$16149_commentbox",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],of.prototype,"dataChanged",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],of.prototype,"onYtCommentboxDismiss",null);_.V([_.yj({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],of);
_.G(of,"ytd-comment-reply-dialog-renderer",function(){if(Z8k!==void 0)return Z8k;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Z8k=D},{mode:1});var GDN;var Wh=function(){return _.w.apply(this,arguments)||this};
_.h(Wh,_.w);_.$a.Object.defineProperties(Wh.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.data)==null?void 0:(C=D.icon)==null?void 0:C.iconType;return X?"yt-icons:"+X.toLowerCase():null}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wh.prototype,"data",void 0);_.V([_.n(),_.e("data.icon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wh.prototype,"icon",null);_.V([_.yj({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Wh);
_.G(Wh,"ytd-pinned-comment-badge-renderer",function(){if(GDN!==void 0)return GDN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return GDN=D},{mode:1});var VAJ;var Tfq={},H8x={input:!0,meta:!0,br:!0,link:!0,img:!0},pd=null;Tfq.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(){pd==null&&(pd=document.createElement("tp-yt-paper-tooltip"),pd.offset=8,pd.fitToVisibleBounds=!0)},
onMouseOver_:function(D){if(D=_.zv(D.target,function(W){return W==this||W.getAttribute&&W.getAttribute("shared-tooltip-text")}.bind(this),!0)){var C=D.getAttribute("shared-tooltip-text");
if(C){var X=this,c=null;D!=this&&(D.tagName.toLowerCase()in H8x?X=D.parentElement:X=D,D.id&&(c=D.id));this.polymerController.createTooltipIfRequired_();if(pd.parentElement!=X||pd.for!=c)(0,_.Io)(pd).textContent=C,_.SY(X).appendChild(pd),pd.for=c,pd.animationDelay=this.polymerController.sharedTooltipAnimationDelay,pd.position=this.polymerController.sharedTooltipPosition}}}};var Sl=function(){return _.w.apply(this,arguments)||this};
_.h(Sl,_.w);Sl.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]]"}}}}}};
Sl.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var D;((D=this.data)==null?0:D.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var C;((C=this.data)==null?0:C.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Sl.prototype.colorChanged=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.color)==null?void 0:(X=C.basicColorPaletteData)==null?void 0:X.foregroundBodyColor;c&&(this.rgbBadgeColor=_.mW(c));_.SY(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Sl.prototype.tooltipChanged=function(){var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Sl.prototype.tooltipChanged=Sl.prototype.tooltipChanged;Sl.prototype.colorChanged=Sl.prototype.colorChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(Tfq.YtSharedTooltipBehavior),_.z("design:type",Object)],Sl.prototype,"ytSharedTooltipBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Sl.prototype,"data",void 0);
_.V([_.n({value:"#4285F4"}),_.z("design:type",String)],Sl.prototype,"rgbBadgeColor",void 0);_.V([_.vr("data.color"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sl.prototype,"colorChanged",null);_.V([_.vr("data.tooltip"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sl.prototype,"tooltipChanged",null);_.V([_.yj({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Sl);
_.G(Sl,"ytd-sponsor-comment-badge-renderer",function(){if(VAJ!==void 0)return VAJ;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return VAJ=D},{mode:1});var JOd;var zqd;var U$=function(){return _.w.apply(this,arguments)||this};
_.h(U$,_.w);U$.prototype.computeState=function(D){switch(D==null?void 0:D.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"}};
U$.prototype.updateStateIdentifier=function(D){if(this.viewModel.triStateKey){var C=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.EW("triStateButtonStateEntityPayload",C,{key:C,stateIdentifier:D}))}};
U$.prototype.onClick=function(){var D=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(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.$a.Object.defineProperties(U$.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 D;return((D=this.data)==null?void 0:D.buttonText)||""}}});
_.V([_.n(),_.z("design:type",Object)],U$.prototype,"viewModel",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],U$.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.V([_.n({selector:Uvj,selectorArgs:["viewModel.triStateKey"]}),_.z("design:type",Object)],U$.prototype,"triStateButtonStateEntity",void 0);
_.V([_.n({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.z("design:type",String)],U$.prototype,"state",void 0);_.V([_.e("viewModel","state"),_.z("design:type",Object),_.z("design:paramtypes",[])],U$.prototype,"data",null);_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],U$.prototype,"buttonText",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],U$);
_.G(U$,"ytd-tri-state-button-view-model",function(){if(zqd!==void 0)return zqd;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return zqd=D},{mode:1});var jOc;var MA4;var g4=function(){var D=_.w.apply(this,arguments)||this;D.defaultIconToFilled=!_.b("kevlar_fill_comment_chip_icon_killswitch");return D};
_.h(g4,_.w);g4.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
g4.prototype.dataChanged=function(){if(this.data){var D,C;((D=this.data.chipColorPalette)==null?0:D.backgroundColor)&&((C=this.data.chipColorPalette)==null?0:C.foregroundTitleColor)&&_.Os(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.e_(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.e_(this.data.chipColorPalette.foregroundTitleColor)});var X;((X=this.data)==null?0:X.command)?(_.Os(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Os(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}};
g4.prototype.onTap=function(){var D;if(this.data&&(D=this.data)!=null&&D.command){var C;this.ytComponentBehavior.resolveCommand((C=this.data)==null?void 0:C.command)}};
g4.prototype.getIconSize=function(){return _.b("kevlar_fill_comment_chip_icon_killswitch")?24:12};
g4.prototype.onTap=g4.prototype.onTap;g4.prototype.dataChanged=g4.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],g4.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.H8),_.z("design:type",Object)],g4.prototype,"ironA11yKeysBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],g4.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],g4.prototype,"basePriceText",void 0);_.V([_.n(),_.z("design:type",Object)],g4.prototype,"chipIcon",void 0);_.V([_.n(),_.z("design:type",Object)],g4.prototype,"defaultIconToFilled",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],g4.prototype,"dataChanged",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],g4.prototype,"onTap",null);
_.V([_.Yn({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],g4);
_.G(g4,"yt-pdg-comment-chip-renderer",function(){if(MA4===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;jOc===void 0&&(jOc=document.createElement("template"));var c=jOc;X.call(C,c.content.cloneNode(!0),D.content.firstChild);MA4=D}D=MA4;return D},{mode:2});var af=function(){var D=_.w.apply(this,arguments)||this;D.useSmallAvatars=_.b("small_avatars_for_comments");D.commentThreadingEnabled=_.b("web_delhi_comment_threads");D.webWatchCompactComments=_.b("web_watch_compact_comments");D.editDialog=null;return D};
_.h(af,_.w);_.S=af.prototype;_.S.onShow=function(){_.mU("cmv",void 0,"wn_comments")};
_.S.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"}}}};
_.S.detached=function(){this.editDialog=null;this.expander.reset()};
_.S.updateBackgroundColor=function(){if(this.backgroundColor){var D={"--ytd-comment-paid-background-color":_.e_(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Os(this.hostElement,D)}else _.Os(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.S.resetExpander=function(){var D;(D=this.expander)==null||D.reset()};
_.S.openEditDialog=function(D){D.dialog&&(this.editDialog=D.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.S.onYtNavigate=function(D){var C=D.detail.endpoint;if(C=_.r(C,_.O4q)||_.r(C,_.AyM))D.stopPropagation(),this.openEditDialog(C)};
_.S.onYtCommentboxDismiss=function(){this.editDialog=null;_.Os(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.S.onAuthorThumbnailClicked=function(){_.b("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.S.onYtCommentboxResize=function(D){var C;(D==null?0:(C=D.detail)==null?0:C.height)&&_.Os(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":D.detail.height+"px"})};
_.$a.Object.defineProperties(af.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 D,C=(D=this.commentEntity)==null?void 0:D.author;return C&&(C.isCreator||C.isVerified||C.isArtist)?{renderer:{authorEndpoint:C.channelPageEndpoint?_.r(C.channelPageEndpoint,_.N_):_.r(C.channelCommand,_.N_),authorText:{runs:[{text:C.displayName}]},color:C.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:C.isArtist?{iconType:"AUDIO_BADGE"}:
C.isVerified?{iconType:C.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:C.isArtist||C.isVerified?C.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var D,C=(D=this.commentEntity)==null?void 0:D.author;return C!=null&&C.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:C.sponsorBadgeUrl}]},tooltip:C.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return _.r((D=this.commentSurfaceEntity)==null?void 0:D.pdgCommentChip,_.VOx)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&((D=this.voiceReplyContainerViewModel)==null?void 0:D.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return _.r((D=this.commentSurfaceEntity)==null?void 0:D.voiceReplyContainerViewModel,GIq)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&(D=this.voiceReplyContainerViewModel)!=null&&D.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.commentSurfaceEntity)==null?void 0:D.commentBackgroundColor)!=null?C:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var D,C;return(((D=this.commentEntity)==null?void 0:(C=D.properties)==null?void 0:C.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,C;if(_.b("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(C=D.author)==null?0:C.profileCardEndpoint)&&this.viewModel.allowProfileCard){var X,c;return _.r((X=this.commentEntity)==null?void 0:(c=X.author)==null?void 0:c.profileCardEndpoint,_.N_)}var W,p;return _.r((W=this.commentEntity)==null?void 0:(p=W.avatar)==null?void 0:p.endpoint,_.N_)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,C;if(_.b("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(C=D.author)==null?0:C.channelPageEndpoint)){var X,c;return _.r((X=this.commentEntity)==null?void 0:(c=X.author)==null?void 0:c.channelPageEndpoint,_.N_)}var W,p;return _.r((W=this.commentEntity)==null?void 0:(p=W.avatar)==null?void 0:p.endpoint,_.N_)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W=(D=this.commentEntity)==null?void 0:(C=D.avatar)==null?void 0:(X=C.image)==null?void 0:(c=X.sources)==null?void 0:c[0];return W?{thumbnails:[{url:W.url,width:W.width,height:W.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.commentEntity)==null?0:(C=D.author)==null?0:C.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.commentEntity)==null?void 0:(C=D.author)==null?void 0:C.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.commentEntity)==null?void 0:(C=D.properties)==null?void 0:C.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.r((D=this.commentSurfaceEntity)==null?void 0:D.publishedTimeCommand,_.N_)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var D,C;if(((D=this.commentEntity)==null?0:D.translatedContent)&&((C=this.translateButtonState)==null?void 0:C.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var X;if((X=this.voiceReplyContainerViewModel)==null?0:X.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var c,W;return((c=this.commentEntity)==null?void 0:(W=c.properties)==null?void 0:W.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.commentSharedEntity)==null?void 0:(C=D.strings)==null?void 0:C.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.commentSharedEntity)==null?void 0:(C=D.strings)==null?void 0:C.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentEntity)==null||!D.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var D,C,X=(C=_.r((D=this.viewModel)==null?void 0:D.translateButton,ZrJ))!=null?C:{},c,W,p,g,a,O,P,k,u,Q,B;return Object.assign({},X,{untoggledStateData:Object.assign({},X.untoggledStateData,{buttonText:(c=this.commentEntity)==null?void 0:(W=c.translateData)==null?void 0:W.text}),togglingStateData:Object.assign({},X.togglingStateData,{buttonText:(p=this.commentSharedEntity)==null?
void 0:(g=p.strings)==null?void 0:g.translatingText}),toggledStateData:Object.assign({},X.toggledStateData,{buttonText:(a=this.commentSharedEntity)==null?void 0:(O=a.strings)==null?void 0:O.seeOriginalText}),transitionCommand:((P=this.commentEntity)==null?0:P.translatedContent)?void 0:_.r((k=this.commentEntity)==null?void 0:(u=k.translateData)==null?void 0:u.translateComment,_.N_),triStateKey:(Q=this.commentEntity)==null?void 0:(B=Q.properties)==null?void 0:B.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((C=_.r(_.r((D=this.toolbarSurface)==null?void 0:D.menuCommand,_.N_),PYC))==null?void 0:(X=C.menu)==null?void 0:X.menuRenderer)||null}}});
af.prototype.onYtCommentboxResize=af.prototype.onYtCommentboxResize;af.prototype.onYtCommentboxDismiss=af.prototype.onYtCommentboxDismiss;af.prototype.onYtNavigate=af.prototype.onYtNavigate;af.prototype.resetExpander=af.prototype.resetExpander;af.prototype.updateBackgroundColor=af.prototype.updateBackgroundColor;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],af.prototype,"ytdReduxBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],af.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#author-thumbnail > button"),_.z("design:type",HTMLElement)],af.prototype,"authorThumbnailAnchor",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],af.prototype,"linked",null);
_.V([_.e("viewModel","linked"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"linkedCommentBadge",null);_.V([_.n({reflectToAttribute:!0}),_.e("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],af.prototype,"pinned",null);_.V([_.e("viewModel","pinned"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"pinnedCommentBadge",null);
_.V([_.e("commentEntity","commentSharedEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"authorCommentBadge",null);_.V([_.n({reflectToAttribute:!0}),_.e("authorCommentBadge"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"hasAuthorBadge",null);_.V([_.e("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"sponsorCommentBadge",null);
_.V([_.n({reflectToAttribute:!0}),_.e("sponsorCommentBadge"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"hasSponsorBadge",null);_.V([_.e("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"pdgCommentChipRenderer",null);_.V([_.n({reflectToAttribute:!0}),_.e("voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"hasVoiceReply",null);
_.V([_.e("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"voiceReplyContainerViewModel",null);_.V([_.e("voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"voiceReplyUnavailableText",null);_.V([_.n(),_.z("design:type",Object)],af.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"viewModel",null);
_.V([_.n({selector:function(D,C){return _.aI(D.entities,"commentSharedEntityPayload",C)},
selectorArgs:["viewModel.sharedKey"]}),_.z("design:type",Object)],af.prototype,"commentSharedEntity",void 0);_.V([_.n({selector:pBt,selectorArgs:["viewModel.commentKey"]}),_.z("design:type",Object)],af.prototype,"commentEntity",void 0);_.V([_.n({selector:function(D,C){return _.aI(D.entities,"commentSurfaceEntityPayload",C)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.z("design:type",Object)],af.prototype,"commentSurfaceEntity",void 0);_.V([_.n({selector:S0m,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.z("design:type",Object)],af.prototype,"toolbarSurface",void 0);_.V([_.n({selector:Uvj,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.z("design:type",Object)],af.prototype,"translateButtonState",void 0);
_.V([_.e("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"backgroundColor",null);_.V([_.n({reflectToAttribute:!0}),_.e("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],af.prototype,"optimalReadingWidthComments",null);_.V([_.kn("ytd-expander"),_.z("design:type",Object)],af.prototype,"expander",void 0);
_.V([_.vr("backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],af.prototype,"updateBackgroundColor",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],af.prototype,"useSmallAvatars",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],af.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],af.prototype,"commentThreadingEnabled",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],af.prototype,"webWatchCompactComments",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"isReply",null);_.V([_.e("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"authorThumbnailEndpoint",null);_.V([_.e("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"authorNameEndpoint",null);
_.V([_.e("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"authorThumbnail",null);_.V([_.e("commentEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],af.prototype,"authorTextClass",null);_.V([_.e("commentEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],af.prototype,"authorChannelName",null);_.V([_.e("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"publishedTime",null);
_.V([_.e("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"publishedTimeCommand",null);_.V([_.e("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"contentText",null);_.V([_.vr("contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],af.prototype,"resetExpander",null);
_.V([_.e("commentEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],af.prototype,"shouldShowReadMoreInitially",null);_.V([_.e("commentSharedEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],af.prototype,"expandText",null);_.V([_.e("commentSharedEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],af.prototype,"collapseText",null);_.V([_.e("commentEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],af.prototype,"shouldShowTranslateButton",null);
_.V([_.e("commentEntity","commentSharedEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"translateButton",null);_.V([_.e("toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],af.prototype,"overflowMenuRenderer",null);_.V([_.n(),_.z("design:type",Object)],af.prototype,"editDialog",void 0);_.V([_.kn("ytd-comment-dialog-renderer"),_.z("design:type",Object)],af.prototype,"editCommentDialogContainer",void 0);
_.V([_.kn("ytd-comment-reply-dialog-renderer"),_.z("design:type",Object)],af.prototype,"editReplyDialogContainer",void 0);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],af.prototype,"onYtNavigate",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],af.prototype,"onYtCommentboxDismiss",null);
_.V([_.$n("yt-commentbox-resize"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],af.prototype,"onYtCommentboxResize",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-comment-view-model"})],af);
_.G(af,"ytd-comment-view-model",function(){if(JOd!==void 0)return JOd;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JOd=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});_.CI(_.F(function(D){var C={};return _.A("yt-sub-thread",{class:_.g$("ytSubThreadHost",(C.ytSubThreadHasButton=D.isButton,C.ytSubThreadHovered=D.hovered,C.ytSubThreadTopLevelThread=function(){var X,c;return((X=D.topLevelThread)==null?void 0:X.call(D))&&!(_.b("small_avatars_for_comments")&&((c=D.engagementPanel)==null?0:c.call(D)))},C))},_.A("div",{class:"ytSubThreadThreadline"},_.A(_.v,{cond:function(){var X;
return!((X=D.isTeaser)==null?0:X.call(D))},
then:function(){return _.A("div",{class:"ytSubThreadConnection"})}}),_.A("div",{class:"ytSubThreadContinuation"}),_.A("div",{class:"ytSubThreadShadow"})),_.A("div",{class:"ytSubThreadSubThreadContent"},D.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.Bm,
isTeaser:_.Bm,hovered:_.Bm,topLevelThread:_.Bm,engagementPanel:_.Bm}});var If=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_modern_buttons");D.commentThreadingEnabled=_.b("web_delhi_comment_threads");D.isWatchGrid=_.b("kevlar_watch_grid");D.buttonOverrides=D.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};D.JSC$16195_spinnerEl=null;return D};
_.h(If,_.w);_.S=If.prototype;_.S.configureContinuationPathMap=function(){return _.b("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.S.shouldShowLegacyTeasers=function(D,C){return D&&!C};
_.S.shouldShowExpandedThreads=function(D,C){return this.commentThreadingEnabled&&C&&(D==null?void 0:D.length)>0};
_.S.shouldShowCollapsedThreads=function(D,C){return this.commentThreadingEnabled&&!C&&D};
_.S.computeCommentViewModel=function(D){return _.r(D,F8C)};
_.S.computeThreadRenderer=function(D){return _.r(D,tUe)};
_.S.computeIsContinuationItem=function(D){return!!this.computeContinuationItemRenderer(D)};
_.S.computeButtonRenderer=function(D){return _.r(D,_.AF)};
_.S.computeContinuationItemRenderer=function(D){return _.r(D,_.dE)};
_.S.computeShowButton=function(D){var C;return!((C=this.computeContinuationItemRenderer(D))==null||!C.button)};
_.S.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]]"}}}}}};
_.S.attached=function(){this.isShowRepliesVisible=!0};
_.S.dataChanged=function(){var D=this.expanderContents;D&&(D.hidden=!0);this.isLoading=!1};
_.S.endsInContinuation=function(D){return!!D&&D.length>0&&!!this.computeContinuationItemRenderer(D[D.length-1])};
_.S.computeShouldShowHideRepliesButton=function(D,C){return!D&&C};
_.S.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.S.isLoadingChanged=function(){this.isLoading&&!this.JSC$16195_spinnerEl&&(this.JSC$16195_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.SY(this.expanderContents).appendChild(this.JSC$16195_spinnerEl));this.JSC$16195_spinnerEl&&(this.JSC$16195_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var D;(D=this.contents)==null||D.classList.remove("reloading")}};
_.S.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var D=_.r(this.data.viewReplies,_.AF);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.S.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var D=_.r(this.data.hideReplies,_.AF);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.S.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var D=_.SY(this.hostElement).querySelector("#expander-contents");D&&(D.hidden=this.isShowRepliesVisible)}};
_.S.computeAlign=function(){if(this.modern){var D;return!((D=this.data)==null?0:D.viewRepliesCreatorThumbnail)}};
_.$a.Object.defineProperties(If.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var D,C;return this.endsInContinuation((D=this.data)==null?void 0:D.contents)||this.commentThreadingEnabled&&this.endsInContinuation((C=this.data)==null?void 0:C.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var D;return(D=this.data)==null?void 0:D.teaserContents}}});
If.prototype.isShowMoreChanged=If.prototype.isShowMoreChanged;If.prototype.isLoadingChanged=If.prototype.isLoadingChanged;If.prototype.triggerFirstContinuation=If.prototype.triggerFirstContinuation;If.prototype.dataChanged=If.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.xA),_.z("design:type",Object)],If.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],If.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],If.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],If.prototype,"commentThreadingEnabled",void 0);_.V([_.n(),_.z("design:type",Boolean)],If.prototype,"expanded",void 0);
_.V([_.n(),_.z("design:type",Function)],If.prototype,"toggleExpanded",void 0);_.V([_.n(),_.z("design:type",Array)],If.prototype,"addedReplies",void 0);_.V([_.n(),_.z("design:type",Boolean)],If.prototype,"hovered",void 0);_.V([_.n(),_.z("design:type",Boolean)],If.prototype,"topLevelThread",void 0);_.V([_.n(),_.z("design:type",Boolean)],If.prototype,"isLoading",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],If.prototype,"isShowRepliesVisible",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],If.prototype,"useNewFormatting",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],If.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],If.prototype,"isWatchGrid",void 0);_.V([_.n(),_.z("design:type",Object)],If.prototype,"buttonOverrides",void 0);_.V([_.kn("#expander-contents"),_.z("design:type",HTMLElement)],If.prototype,"expanderContents",void 0);
_.V([_.kn("ytd-continuation-item-renderer"),_.z("design:type",Object)],If.prototype,"continuationItemRenderer",void 0);_.V([_.kn("#contents"),_.z("design:type",HTMLElement)],If.prototype,"contents",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],If.prototype,"dataChanged",null);_.V([_.e("data.contents","data.subThreads.*"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],If.prototype,"hasContinuation",null);
_.V([_.e("data.teaserContents"),_.z("design:type",Object),_.z("design:paramtypes",[])],If.prototype,"subThreadTeasers",null);_.V([_.$n("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],If.prototype,"triggerFirstContinuation",null);_.V([_.vr("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],If.prototype,"isLoadingChanged",null);
_.V([_.vr("isShowRepliesVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],If.prototype,"isShowMoreChanged",null);_.V([_.yj({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],If);
_.G(If,"ytd-comment-replies-renderer",function(){if(F7f!==void 0)return F7f;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return F7f=D},{mode:1});var q8q;var O$=function(){var D=_.w.apply(this,arguments)||this;D.isOpen=!1;D.commentDialog=null;D.useSmallAvatars=_.b("small_avatars_for_comments");D.useSmallAvatarsEngagementPanelOnly=_.b("small_avatars_for_comments_ep");D.placeholderFocusListener=null;D.hasOpenedDialog=!1;D.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return D};
_.h(O$,_.w);_.S=O$.prototype;_.S.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]]"}}}}}};
_.S.ready=function(){var D=this,C=_.SY(this.hostElement).querySelector("#placeholder-area"),X=_.SY(this.hostElement).querySelector("#simplebox-placeholder"),c=function(W){W.stopPropagation();W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||D.openDialog()};
this.placeholderFocusListener=c;X.addEventListener("focus",this.placeholderFocusListener);C.addEventListener("tap",c);C.addEventListener("keypress",c)};
_.S.maybeRemoveFocusEventListener=function(){var D;(D=this.data)!=null&&D.prepareAccountEndpoint&&!_.b("web_comments_simplebox_modal_focus_on_tap_ks")&&(D=_.SY(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(D.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.S.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.S.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.b("web_comment_simplebox_resolve_polymer_command_ks")?_.I3.instance.resolveCommand(this.data.prepareAccountEndpoint):_.O4(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);D&&this.ytdOpenPopupBehavior.openPopup(D);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.SY(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.S.onYtCommentboxDismiss=function(D){D.stopPropagation();this.isOpen=!1};
_.S.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.isOpen=!1)};
_.S.computeCommentDialog=function(D){return{placeholderText:D.placeholderText,authorThumbnail:D.authorThumbnail,submitButton:D.submitButton,imageButton:D.imageButton,cancelButton:D.cancelButton,emojiButton:D.emojiButton,emojis:D.emojis,emojiPicker:D.emojiPicker,aadcGuidelinesStateEntityKey:D.aadcGuidelinesStateEntityKey,openAadcDialog:D.openAadcDialog,unicodeEmojisUrl:D.unicodeEmojisUrl}};
_.S.onHideIdentityChip=function(D){_.r(D,xi4)&&this.set("data.placeholderText",_.r(D,xi4).placeholderText)};
O$.prototype.onYtCommentboxDismiss=O$.prototype.onYtCommentboxDismiss;O$.prototype.dataChanged=O$.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],O$.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],O$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],O$.prototype,"isOpen",void 0);_.V([_.n(),_.z("design:type",Object)],O$.prototype,"commentDialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],O$.prototype,"engagementPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],O$.prototype,"useSmallAvatars",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],O$.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],O$.prototype,"enableCreationBox",void 0);_.V([_.n(),_.z("design:type",Boolean)],O$.prototype,"showCreateDialog",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O$.prototype,"dataChanged",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],O$.prototype,"onYtCommentboxDismiss",null);_.V([_.yj({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],O$);
_.G(O$,"ytd-comment-simplebox-renderer",function(){if(q8q!==void 0)return q8q;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return q8q=D},{mode:1});var fL4;_.sI("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Ao=function(){var D=_.w.apply(this,arguments)||this;D.addHoverEffect=_.b("swatcheroo_comments_hover_effect");D.useSmallAvatars=_.b("small_avatars_for_comments");D.scrollingEnabled=_.b("web_comment_threading_scroll_on_collapse");D.isSubThread=!1;D.threadHovered=!1;D.expanded=!1;D.removed=!1;D.addedReplies=[];D.actionMap=D.configureActionMap();D.toggleExpanded=function(){D.expanded=!D.expanded;!D.expanded&&D.scrollingEnabled&&_.DS(D.hostElement,"yt-scroll-to-comment-element",[D.commentElement])};
return D};
_.h(Ao,_.w);_.S=Ao.prototype;_.S.configureActionMap=function(){return _.b("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.S.createCommentReplyAction=function(D){D=_.r(D,K8d);if(D!=null&&D.contents){var C=D.replyToCommentId,X=D.parentCommentId,c,W=(c=this.commentViewModel)==null?void 0:c.commentId;(W===C||W===X&&!C)&&this.maybeAttachReply(D.contents)}};
_.S.maybeAttachReply=function(D){var C,X;(((C=this.commentEntity)==null?void 0:(X=C.properties)==null?void 0:X.replyLevel)||0)>=3?_.lE(this.hostElement,"yt-pushed-create-comment-reply",D):this.attachReply(D)};
_.S.onPushedCreateCommentReply=function(D){var C,X;(((C=this.commentEntity)==null?void 0:(X=C.properties)==null?void 0:X.replyLevel)||0)>=3||(this.attachReply(D.detail),D.stopPropagation())};
_.S.attachReply=function(D){var C;((C=this.data)==null?0:C.replies)?(C=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+C+".continuationItemRenderer")?C===0?this.push("addedReplies",D):this.splice("data.replies.commentRepliesRenderer.subThreads",C,0,D):this.push("data.replies.commentRepliesRenderer.subThreads",D)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[D],viewReplies:{buttonRenderer:{text:_.Ce(_.I7("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.S.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.VB(this.addedReplies))),this.set("addedReplies",[]))};
_.S.removeCommentAction=function(D){D=_.r(D,mik);var C=D==null?void 0:D.commentId,X;C&&((X=this.commentViewModel)==null?void 0:X.commentId)===C&&this.maybeRemoveComment(D.actionResult)};
_.S.banAuthorAction=function(D){D=_.r(D,br4);var C=D==null?void 0:D.commentId,X;C&&((X=this.commentViewModel)==null?void 0:X.commentId)===C&&this.maybeRemoveComment(D.actionResult)};
_.S.hideReportedCommentAction=function(D){D=_.r(D,JxN);var C=D==null?void 0:D.commentId,X;C&&((X=this.commentViewModel)==null?void 0:X.commentId)===C&&this.maybeRemoveComment(D.actionResult)};
_.S.maybeRemoveComment=function(D){D&&D.status==="STATUS_SUCCEEDED"&&(this.feedbackText=D.feedbackText||_.Ce("Reply removed"),this.removed=!0)};
_.S.onTap=function(D){if(this.addHoverEffect&&!this.engagementPanel&&!_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||_.O4({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.S.attached=function(){var D=this;this.isSubThread&&(this.expanded=!0);var C;(C=this.commentThreadHitbox)==null||C.addEventListener("mouseover",function(){D.threadHovered=!0});
var X;(X=this.commentThreadHitbox)==null||X.addEventListener("mouseout",function(){D.threadHovered=!1});
var c;(c=this.commentThreadHitbox)==null||c.addEventListener("click",function(){D.maybeToggleExpanded()})};
_.S.onDataChanged=function(){var D=_.b("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(D)&&this.set(D,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.S.maybeToggleExpanded=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.replies)==null?void 0:(X=C.commentRepliesRenderer)==null?void 0:X.subThreads,W;(c==null?void 0:c.length)===1&&((W=_.r(c[0],_.dE))==null?0:W.button)&&this.expanded||this.toggleExpanded()};
_.$a.Object.defineProperties(Ao.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return _.r((D=this.data)==null?void 0:D.commentViewModel,F8C)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return _.b("web_delhi_comment_threads")&&!!((D=this.data)==null?0:(C=D.replies)==null?0:(X=C.commentRepliesRenderer)==null?0:X.subThreads)}}});
Ao.prototype.onDataChanged=Ao.prototype.onDataChanged;Ao.prototype.onTap=Ao.prototype.onTap;Ao.prototype.onAppendContinuationItemsActionFinished=Ao.prototype.onAppendContinuationItemsActionFinished;Ao.prototype.onPushedCreateCommentReply=Ao.prototype.onPushedCreateCommentReply;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ao.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ao.prototype,"addHoverEffect",void 0);_.V([_.n(),_.z("design:type",Object)],Ao.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ao.prototype,"useSmallAvatars",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ao.prototype,"scrollingEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ao.prototype,"isSubThread",void 0);_.V([_.kn(".thread-hitbox"),_.z("design:type",HTMLElement)],Ao.prototype,"commentThreadHitbox",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ao.prototype,"threadHovered",void 0);_.V([_.kn("#comment"),_.z("design:type",HTMLElement)],Ao.prototype,"commentElement",void 0);
_.V([_.n(),_.z("design:type",Object)],Ao.prototype,"expanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ao.prototype,"removed",void 0);_.V([_.n(),_.z("design:type",Object)],Ao.prototype,"feedbackText",void 0);_.V([_.n(),_.z("design:type",Array)],Ao.prototype,"addedReplies",void 0);_.V([_.n({selector:pBt,selectorArgs:["commentViewModel.commentKey"]}),_.z("design:type",Object)],Ao.prototype,"commentEntity",void 0);
_.V([_.$n("yt-pushed-create-comment-reply"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ao.prototype,"onPushedCreateCommentReply",null);_.V([_.$n("yt-append-continuation-items-action-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ao.prototype,"onAppendContinuationItemsActionFinished",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ao.prototype,"commentViewModel",null);
_.V([_.e("data.replies.commentRepliesRenderer.subThreads"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ao.prototype,"hasSubThreading",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ao.prototype,"engagementPanel",void 0);_.V([_.$n("tap"),_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Ao.prototype,"onTap",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ao.prototype,"onDataChanged",null);_.V([_.yj({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Ao);
_.G(Ao,"ytd-comment-thread-renderer",function(){if(fL4!==void 0)return fL4;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fL4=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var deb;var Ph=function(){var D=_.w.apply(this,arguments)||this;D.compactHeader=_.b("web_watch_compact_comments_header");D.hidePanelButton=!1;D.isPostSchedulingEnabled=_.b("enable_post_scheduling");D.hasFinishedStamping=!1;D.JSC$16218_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.h(Ph,_.w);_.S=Ph.prototype;
_.S.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"}}}};
_.S.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.S.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16218_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.S.onYtServiceRequestSent=function(D,C){if(!_.b("kevlar_command_handler")&&C.actions)for(D=0;D<C.actions.length;D++){var X=C.actions[D];_.r(X,d4e)&&_.SY(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.r(X,d4e))}};
_.S.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var D;if(this.getPrefilledBackstagePostDialog((D=this.data)==null?void 0:D.actions)){_.SY(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var C=_.SY(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;C&&_.A0(this,function(){C.focus();C.openDialog&&C.openDialog()})}}else this.hasActionsChange=!0};
_.S.computeIsBackstage=function(D){return D};
_.S.onYtCommentboxDismiss=function(){_.SY(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.S.removePrefilledDialog=function(D){if(D==null?0:D.actions){for(var C=D.actions.length-1;C>=0;C--){var X=void 0;((X=_.r(D.actions[C],aee))==null?0:X.dialog)&&delete D.actions[C]}this.set("data",void 0);this.set("data",D)}};
_.S.getPrefilledBackstagePostDialog=function(D){if(D)for(var C=0;C<D.length;C++){var X=D[C],c=void 0;if((c=_.r(X,aee))==null?0:c.dialog)return _.r(X,aee).dialog}return null};
_.S.computeBackstagePostDialog=function(D){return D&&(this.getPrefilledBackstagePostDialog(D.actions)||D.createRenderer)};
_.S.dataChanged=function(){if(this.data){var D=this.data.customEmojis,C=this.data.unicodeEmojisUrl;_.Qd.clear();C&&_.TZ5(_.Qd,C);D&&_.Qd.load(D)}};
_.S.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.SY(this.hostElement).querySelector("ytd-comment-simplebox-renderer");D?D.openDialog():this.JSC$16218_handleOpenPostCommentDialogActionAfterStamp=!0};
_.S.onPostHeaderTap=function(){var D;((D=this.data)==null?0:D.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.$a.Object.defineProperties(Ph.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.b("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W,p,g;return!this.hidePanelButton&&_.b("kevlar_watch_comments_panel_button")&&((g=_.r((D=this.data)==null?void 0:(C=D.sortMenu)==null?void 0:(X=C.sortFilterSubMenuRenderer)==null?void 0:(c=X.subMenuItems)==null?void 0:(W=c[0])==null?void 0:(p=W.serviceEndpoint)==null?void 0:p.commandMetadata,_.ge))==null?void 0:g.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.I7("MINIPLAYER_EXPAND_LABEL"),text:_.jV(_.I7("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Ph.prototype.dataChanged=Ph.prototype.dataChanged;Ph.prototype.onYtCommentboxDismiss=Ph.prototype.onYtCommentboxDismiss;Ph.prototype.observePrefilledBackstagePostDialog=Ph.prototype.observePrefilledBackstagePostDialog;Ph.prototype.onYtServiceRequestSent=Ph.prototype.onYtServiceRequestSent;Ph.prototype.onStampFinished=Ph.prototype.onStampFinished;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Ph.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ph.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ph.prototype,"compactHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ph.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Object)],Ph.prototype,"hidePanelButton",void 0);_.V([_.n({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Ph.prototype,"isBackstage",void 0);_.V([_.n({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.z("design:type",Object)],Ph.prototype,"backstagePostDialog",void 0);
_.V([_.n(),_.z("design:type",Object)],Ph.prototype,"isPostSchedulingEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data","showCommentsPanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ph.prototype,"useSpaceBetween",null);_.V([_.n({reflectToAttribute:!0}),_.e("data","hidePanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ph.prototype,"showCommentsPanelButton",null);
_.V([_.e("data","showCommentsPanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ph.prototype,"commentsPanelButtonData",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ph.prototype,"onStampFinished",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Ph.prototype,"onYtServiceRequestSent",null);
_.V([_.vr("data.actions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ph.prototype,"observePrefilledBackstagePostDialog",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ph.prototype,"onYtCommentboxDismiss",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ph.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Ph);
_.G(Ph,"ytd-comments-header-renderer",function(){if(deb!==void 0)return deb;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return deb=D},{mode:1});var Rqg;var $6=function(){return _.w.apply(this,arguments)||this};
_.h($6,_.w);_.V([_.n(),_.z("design:type",Object)],$6.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.V([_.yj({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],$6);
_.G($6,"ytd-destination-button-renderer",function(){if(Rqg!==void 0)return Rqg;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Rqg=D},{mode:1});var lLe;var vh=function(){var D=_.w.apply(this,arguments)||this;D.isRichGrid=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return D};
_.h(vh,_.w);_.S=vh.prototype;_.S.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.S.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.S.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.S.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var D;if((D=this.data)==null||!D.isExpanded){D=this.hostElement.clientWidth;var C;if(D&&(C=this.data)!=null&&C.destinationButtons){C=Math.floor((D+4)/214);D=this.data.destinationButtons.length;var X=Math.ceil(D/C);this.fullyVisibleRows=D%C===1&&X===2?1:Math.min(X,2);this.isShowMoreVisible=this.fullyVisibleRows<X}}}};
_.S.updateRichGridDestinationButtonsVisibility=function(){var D,C;if(this.isRichGrid&&((D=this.data)==null||!D.isExpanded)&&(C=this.data)!=null&&C.destinationButtons){D=this.richGridItemsPerRow+1;C=this.data.destinationButtons.length;var X=Math.ceil(C/D);this.fullyVisibleRows=C%D===1&&X===2?1:Math.min(X,2);this.isShowMoreVisible=this.fullyVisibleRows<X}};
_.S.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
vh.prototype.updateRichGridDestinationButtonsVisibility=vh.prototype.updateRichGridDestinationButtonsVisibility;_.V([_.n(),_.z("design:type",Object)],vh.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Number)],vh.prototype,"fullyVisibleRows",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],vh.prototype,"isShowMoreVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],vh.prototype,"isRichGrid",void 0);
_.V([_.n({selector:_.eV,value:0}),_.z("design:type",Number)],vh.prototype,"richGridItemsPerRow",void 0);_.V([_.n(),_.z("design:type",Object)],vh.prototype,"gridStateActionMap",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],vh.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],vh.prototype,"ytdReduxBehavior",void 0);_.V([_.vr("data","richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vh.prototype,"updateRichGridDestinationButtonsVisibility",null);_.V([_.yj({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],vh);
_.G(vh,"ytd-destination-shelf-renderer",function(){if(lLe!==void 0)return lLe;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return lLe=D},{mode:1});var D15;var k6=function(){return _.w.apply(this,arguments)||this};
_.h(k6,_.w);k6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],k6.prototype,"data",void 0);_.V([_.yj({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],k6);
_.G(k6,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(D15!==void 0)return D15;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return D15=D},{mode:1});var C_k;var un=function(){var D=_.w.apply(this,arguments)||this;D.disableAnimation=!1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;return D};
_.h(un,_.w);un.prototype.onTap=function(D){D.preventDefault();this.data&&_.lE(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.$a.Object.defineProperties(un.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 D,C,X,c,W;return((D=this.data)==null?0:D.checked)?(C=this.data)==null?void 0:(X=C.onStateIcon)==null?void 0:X.iconType:(c=this.data)==null?void 0:(W=c.defaultStateIcon)==null?void 0:W.iconType}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],un.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],un.prototype,"disableAnimation",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],un.prototype,"isSlimlineSurvey",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],un.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],un.prototype,"isShortsStyle",void 0);_.V([_.e("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],un.prototype,"isAnimatedIcon",null);
_.V([_.e("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Number),_.z("design:paramtypes",[])],un.prototype,"iconSize",null);_.V([_.e("isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],un.prototype,"isDarkTheme",null);_.V([_.e("data.checked"),_.z("design:type",Object),_.z("design:paramtypes",[])],un.prototype,"icon",null);_.V([_.yj({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],un);
_.G(un,"ytd-rating-survey-option-renderer",function(){if(C_k!==void 0)return C_k;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return C_k=D},{mode:2});var XNc;var Q_=function(){var D=_.w.apply(this,arguments)||this;D.firstResponseText=null;D.lastResponseText=null;D.selectedNonStarOption=null;D.hideOptions=!1;D.hideUndoButton=!0;D.disableAnimation=!1;D.showResponseRangeText=!1;D.selectedRatingIndex=-1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.slimlineSurveyRatingSelectedIndex=-1;return D};
_.h(Q_,_.w);_.S=Q_.prototype;_.S.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.S.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.S.onOptionChange=function(D,C){var X=this;D=C.onStateIcon&&C.defaultStateIcon&&C.onStateIcon.iconType===C.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(g,a){g.responseText===C.responseText?X.isSlimlineSurvey?(X.selectedRatingIndex=a,X.ytdReduxBehavior.dispatch(aOk(a))):(X.setSurveyOptionValue(a,!0,"checked"),X.setSurveyOptionValue(a,!0,"selected")):(X.setSurveyOptionValue(a,!1,"checked"),X.setSurveyOptionValue(a,
!1,"selected"))});
else if(D)this.selectedNonStarOption=C,this.hideOptions=!0;else{var c=this.ytRendererBehavior.getSimpleString(C.responseText),W=!0;this.getOptionRenderers().forEach(function(g,a){X.setSurveyOptionValue(a,W,"checked");X.setSurveyOptionValue(a,!1,"selected");X.ytRendererBehavior.getSimpleString(g.responseText)===c&&(W=!1,X.setSurveyOptionValue(a,!0,"selected"))})}D=C.responseEndpoint;
var p;C.followUpCommand&&(p=_.r(C.followUpCommand,Xx5));this.isSlimlineSurvey?(this.resetComponent(),_.DS(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.DS(this.hostElement,"ytd-inline-survey-rating-select-action",[D,p])};
_.S.showSelectedOption=function(){var D=this;_.qX.addJob(function(){var C=D.getOptionRenderers()[D.slimlineSurveyRatingSelectedIndex];D.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),C)},8,100)};
_.S.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(D){var C;return(C=_.r(D,oOb))!=null?C:{}}):[]};
_.S.onUndoClick=function(){this.resetComponent();_.DS(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.S.setSurveyOptionValue=function(D,C,X){this.notifyPath("data.ratings."+D+".ratingSurveyOptionRenderer."+X);this.set("data.ratings."+D+".ratingSurveyOptionRenderer."+X,C)};
_.S.resetComponent=function(){var D=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var C=this.getOptionRenderers(),X,c;this.firstResponseText=(c=(X=C[0])==null?void 0:X.responseText)!=null?c:null;var W,p;this.lastResponseText=(p=(W=C[C.length-1])==null?void 0:W.responseText)!=null?p:null;C.forEach(function(g,a){D.setSurveyOptionValue(a,!1,"checked");D.setSurveyOptionValue(a,!1,"selected")})};
_.$a.Object.defineProperties(Q_.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Q_.prototype.onOptionChange=Q_.prototype.onOptionChange;Q_.prototype.dataChanged=Q_.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Q_.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"firstResponseText",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"lastResponseText",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"selectedNonStarOption",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"hideOptions",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"hideUndoButton",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"disableAnimation",void 0);
_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"showResponseRangeText",void 0);_.V([_.n(),_.z("design:type",Object)],Q_.prototype,"selectedRatingIndex",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Q_.prototype,"isSlimlineSurvey",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Q_.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Q_.prototype,"isShortsStyle",void 0);_.V([_.n({selector:function(D){return D.ui.slimlineSurveyRatingSelectedIndex}}),
_.z("design:type",Object)],Q_.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.V([_.e("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Q_.prototype,"isSingleSelect",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q_.prototype,"dataChanged",null);
_.V([_.$n("ytd-rating-survey-option-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Q_.prototype,"onOptionChange",null);_.V([_.yj({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Q_);
_.G(Q_,"ytd-rating-survey-renderer",function(){if(XNc!==void 0)return XNc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return XNc=D},{mode:1});var ca5;var ov5;var WhM;var K95=(PC.FIRSTDAYOFWEEK+1)%7,pN5=function(D,C,X,c){var W="";if(c.selection&&Q8t(c.selection))I9(D,c.selection)&&(W+=" selected");else if(c.selection&&BAZ(c.selection)){var p=c.selection.selectionState||"START_DATE";I9(D,c.selection.start)&&(W+=" period-start ",p==="START_DATE"&&(W+="selected"));I9(D,c.selection.end)&&(W+=" period-end ",p==="END_DATE"&&(W+="selected"));OW(D,c.selection.start)||OW(c.selection.end,D)||(W+=" highlighted")}if(OW(C,c.start)||OW(c.end,C))W+=" disabled";c.circleToday&&
I9(C,X)&&(W+=" today");return W};var Bh=function(){return _.w.apply(this,arguments)||this};
_.h(Bh,_.w);_.S=Bh.prototype;_.S.attached=function(){var D=this;_.A0(this,function(){D.JSC$16252_calendarMain.scrollHeight>0&&(D.calendarConfig.selection?D.scrollToDate(bgR(D.calendarConfig.selection)):D.scrollToDate(D.calendarConfig.end))})};
_.S.updateSelection=function(D){D=h9j(Object.assign({},this.calendarConfig,{selection:D}),pN5);this.splice.apply(this,["renderData.months",0,D.length].concat(_.VB(D)))};
_.S.scrollToDate=function(D){this.renderData&&(D=xKn(D,this.renderData),D!==void 0&&this.JSC$16252_calendarMain.scrollToIndex(D))};
_.S.scrollToNextMonth=function(){this.JSC$16252_calendarMain.scrollToIndex(this.JSC$16252_calendarMain.firstVisibleIndex+1)};
_.S.scrollToPrevMonth=function(){this.JSC$16252_calendarMain.firstVisibleIndex===0&&this.JSC$16252_calendarMain.scrollTo(0,0);this.JSC$16252_calendarMain.scrollToIndex(this.JSC$16252_calendarMain.firstVisibleIndex-1)};
_.S.handleDayClick=function(D){_.DS(this.hostElement,"ytd-calendar-date-clicked",[D.model.day.date])};
_.S.handleDayMouseDown=function(D){D.preventDefault();_.DS(this.hostElement,"ytd-calendar-date-mousedown",[D.model.day.date])};
_.S.handleDayMouseUp=function(D){_.DS(this.hostElement,"ytd-calendar-date-mouseup",[D.model.day.date])};
_.S.handleDayMouseEnter=function(D){D.preventDefault();_.DS(this.hostElement,"ytd-calendar-date-mouseenter",[D.model.day.date])};
_.S.handleDayMouseLeave=function(D){_.DS(this.hostElement,"ytd-calendar-date-mouseleave",[D.model.day.date])};
_.$a.Object.defineProperties(Bh.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var D=this.calendarConfig,C=pN5;C=C===void 0?pN5:C;for(var X=[],c=0;c<7;c++)X.push(PC.NARROWWEEKDAYS[(c+K95)%7]);return{months:h9j(D,C),daysOfWeekLabel:X}}}});
_.V([_.n(),_.z("design:type",Object)],Bh.prototype,"calendarConfig",void 0);_.V([_.kn("#calendar-main"),_.z("design:type",Object)],Bh.prototype,"JSC$16252_calendarMain",void 0);_.V([_.e("calendarConfig"),_.z("design:type",Object),_.z("design:paramtypes",[])],Bh.prototype,"renderData",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Bh);
_.G(Bh,"ytd-scrollable-calendar",function(){if(WhM!==void 0)return WhM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return WhM=D},{mode:2});var Sa4;var U1f;var bn=function(){var D=_.w.apply(this,arguments)||this;D.hideCharCounter=!1;D.hideLabel=!1;D.noLabelFloat=!1;D.autoValidate=!0;D.invalid=!1;D.disabled=!1;D.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return D};
_.h(bn,_.w);_.S=bn.prototype;_.S.reset=function(D){this.value=D&&this.data?this.data.value=D:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.S.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.S.focusTextInput=function(){this.input.focus()};
_.S.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()};
_.S.valueChanged=function(){var D,C;if(((D=this.data)==null?0:D.value)||((C=this.data)==null?void 0:C.value)==="")this.value=this.data.value;else{var X;((X=this.data)==null?void 0:X.value)!==void 0||this.value||(this.value="")}};
_.S.computeLabel=function(D,C){return C?"":_.Mh(D)};
_.S.computeAriaLabel=function(D,C){return C?_.Mh(D):""};
_.S.computeErrorMessage=function(D,C,X,c){!D&&C?D=X||this.strings.REQUIRED_LABEL:(D=_.Mh(c),D=_.am(D,"&")?"document"in _.co?gFk(D):aNM(D):D);return D};
_.S.computeType=function(D){return D==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.S.onTextValueChanged=function(D){this.value=D.detail.value;var C;(C=this.onValueChanged)==null||C.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.S.handleUpdateTextInputFormFieldRendererCommand=function(D){(D=_.r(D,rnd))&&this.data&&this.data.id===D.id&&(D.invalid!==void 0&&(this.invalid=D.invalid),D.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",D.invalidValueErrorMessage))};
_.S.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("value-changed",this.value))};
_.S.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.$a.Object.defineProperties(bn.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var D;return!((D=this.data)==null||!D.isMultiline)}}});
bn.prototype.valueChangedForBinding=bn.prototype.valueChangedForBinding;bn.prototype.valueChanged=bn.prototype.valueChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],bn.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],bn.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],bn.prototype,"value",void 0);_.V([_.n(),_.z("design:type",String)],bn.prototype,"pattern",void 0);_.V([_.n(),_.z("design:type",String)],bn.prototype,"errorMessage",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],bn.prototype,"componentStyle",void 0);_.V([_.n(),_.z("design:type",Object)],bn.prototype,"hideCharCounter",void 0);
_.V([_.n(),_.z("design:type",Object)],bn.prototype,"hideLabel",void 0);_.V([_.n(),_.z("design:type",Object)],bn.prototype,"noLabelFloat",void 0);_.V([_.n(),_.z("design:type",Function)],bn.prototype,"onValueChanged",void 0);_.V([_.n(),_.z("design:type",Boolean)],bn.prototype,"isMultilineOverride",void 0);_.V([_.n(),_.z("design:type",Object)],bn.prototype,"autoValidate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bn.prototype,"invalid",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bn.prototype,"disabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],bn.prototype,"enableOverlayTheme",void 0);_.V([_.n({value:{REQUIRED_LABEL:_.I7("REQUIRED_LABEL",void 0,"Required")}}),_.z("design:type",Object)],bn.prototype,"strings",void 0);_.V([_.kn("#input"),_.z("design:type",Object)],bn.prototype,"input",void 0);
_.V([_.e("data","isMultilineOverride"),_.z("design:type",Object),_.z("design:paramtypes",[])],bn.prototype,"isMultiline",null);_.V([_.bH("data.value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bn.prototype,"valueChanged",null);_.V([_.vr("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bn.prototype,"valueChangedForBinding",null);_.V([_.Yn({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],bn);
_.G(bn,"yt-text-input-form-field-renderer",function(){if(U1f===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Sa4===void 0&&(Sa4=document.createElement("template"));var c=Sa4;X.call(C,c.content.cloneNode(!0),D.content.firstChild);U1f=D}D=U1f;return D},{mode:2});var r4=function(){var D=_.w.apply(this,arguments)||this;D.data=void 0;D.selectionState="START_DATE";D.isStartDateInvalid=!1;D.isEndDateInvalid=!1;D.autoapply=!1;D.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 D};
_.h(r4,_.w);_.S=r4.prototype;_.S.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"}}}}};
_.S.focus=function(){this.startDateInput.focus()};
_.S.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Am(this.data.selection.start),end:Am(this.data.selection.end)})};
_.S.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.S.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.qf(this.selectionState)}};
_.S.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.S.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.S.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.S.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,C=D.end;D=s85({start:D.start,end:this.endDate||C},this.startDateInput.value||"");this.isStartDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection=this.endDate?{start:D,end:this.endDate}:D,this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.S.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,C=D.start;D=s85({start:this.startDate||C,end:D.end},this.endDateInput.value||"");this.isEndDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection={start:this.startDate,end:D},this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.S.handleCalendarDateClicked=function(D){var C=this.selection&&bgR(this.selection),X=this.selection&&rqo(this.selection);C&&!OW(D,C)&&this.selectionState==="END_DATE"?(this.selection={start:C,end:D},this.selectionState="START_DATE"):(X&&!OW(X,D)?this.selection={start:D,end:X}:this.selection=D,this.selectionState="END_DATE")};
_.S.handleCalendarDateMouseDown=function(D){this.selection&&!Q8t(this.selection)&&(this.dragPivot=I9(D,this.selection.start)?this.selection.end:I9(D,this.selection.end)?this.selection.start:D)};
_.S.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.S.handleCalendarDateMouseEnter=function(D){this.dragPivot&&(this.selection={start:function(C,X){return OW(C,X)?C:X}(this.dragPivot,D),
end:function(C,X){return OW(C,X)?X:C}(this.dragPivot,D)},this.dragPivot||(this.selectionState="START_DATE"))};
_.S.handleCalendarDateMouseLeave=function(){};
_.S.handleCalendarSubmitDateRange=function(){this.selection&&!Q8t(this.selection)&&_.DS(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.S.updateInvalidState=function(){var D=function(C,X){X?C.setAttribute("invalid",""):C.removeAttribute("invalid")};
D(this.startDateInput,this.isStartDateInvalid);D(this.endDateInput,this.isEndDateInvalid)};
_.S.updateDateStrings=function(){this.selection&&(Q8t(this.selection)?uTW(this.selection):(uTW(this.selection.start),uTW(this.selection.end)))};
_.S.updateCalendarSelection=function(D){this.calendar.updateSelection(Object.assign({},D,{selectionState:this.selectionState}))};
_.S.updateIsStartDateInvalidFromBinding=function(D){this.isStartDateInvalid=D.detail.value};
_.S.updateIsEndDateInvalidFromBinding=function(D){this.isEndDateInvalid=D.detail.value};
_.S.updateStartDateStringFromBinding=function(){};
_.S.updateEndDateStringFromBinding=function(){};
_.$a.Object.defineProperties(r4.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Am(this.data.dateRangeStart),end:Am(this.data.dateRangeEnd),selection:{start:Am(this.data.selection.start),end:Am(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&bgR(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&rqo(this.selection)}}});
r4.prototype.resetTextboxes=r4.prototype.resetTextboxes;r4.prototype.observeSelection=r4.prototype.observeSelection;r4.prototype.dataChanged=r4.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],r4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#calendar"),_.z("design:type",Object)],r4.prototype,"calendar",void 0);
_.V([_.kn("#start-date"),_.z("design:type",Object)],r4.prototype,"startDateInput",void 0);_.V([_.kn("#end-date"),_.z("design:type",Object)],r4.prototype,"endDateInput",void 0);_.V([_.n(),_.z("design:type",Object)],r4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],r4.prototype,"selection",void 0);_.V([_.n(),_.z("design:type",String)],r4.prototype,"selectionState",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],r4.prototype,"calendarConfig",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],r4.prototype,"errorMessage",null);_.V([_.e("selection"),_.z("design:type",Object),_.z("design:paramtypes",[])],r4.prototype,"startDate",null);_.V([_.e("selection"),_.z("design:type",Object),_.z("design:paramtypes",[])],r4.prototype,"endDate",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r4.prototype,"dataChanged",null);
_.V([_.vr("selection","selectionState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r4.prototype,"observeSelection",null);_.V([_.vr("selectionState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r4.prototype,"resetTextboxes",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],r4);
_.G(r4,"ytd-date-period-picker-renderer",function(){if(ov5!==void 0)return ov5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ov5=D},{mode:1});var Kd=function(){var D=_.w.apply(this,arguments)||this;var C={};D.actionMap=(C["ytd-date-period-picker-apply"]="handleDateRangeUpdated",C);return D};
_.h(Kd,_.w);Kd.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Kd.prototype.handleDateRangeUpdated=function(){};
_.V([_.n(),_.z("design:type",Object)],Kd.prototype,"data",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Kd.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Kd.prototype,"rendererstamperBehavior",void 0);_.V([_.yj({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Kd);
_.G(Kd,"ytd-report-history-section-header-renderer",function(){if(ca5!==void 0)return ca5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ca5=D},{mode:1});var gvd;var ayM;var Iyd;var ho=function(){return _.w.apply(this,arguments)||this};
_.h(ho,_.w);_.$a.Object.defineProperties(ho.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?0:(C=D.icon)==null?0:C.iconType)?_.g2(this.data.icon.iconType):""}}});
_.V([_.n(),_.z("design:type",Object)],ho.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],ho.prototype,"icon",null);_.V([_.yj({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],ho);
_.G(ho,"ytd-report-history-table-text-cell-renderer",function(){if(Iyd!==void 0)return Iyd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Iyd=D},{mode:1});var x6=function(){return _.w.apply(this,arguments)||this};
_.h(x6,_.w);x6.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],x6.prototype,"data",void 0);_.V([_.yj({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],x6);
_.G(x6,"ytd-report-history-table-reason-cell-renderer",function(){if(ayM!==void 0)return ayM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ayM=D},{mode:1});var Ld=function(){return _.w.apply(this,arguments)||this};
_.h(Ld,_.w);Ld.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ld.prototype,"rendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ld.prototype,"data",void 0);_.V([_.yj({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Ld);
_.G(Ld,"ytd-report-history-table-cell-renderer",function(){if(gvd!==void 0)return gvd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return gvd=D},{mode:1});var Oa5;var s$=function(){var D=_.w.apply(this,arguments)||this;D.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 D};
_.h(s$,_.w);s$.prototype.onDataChanged=function(){var D;if((D=this.data)==null?0:D.style)this.componentStyle=this.getStyleName(this.data.style)};
s$.prototype.getCellForColumn=function(D){return this.cells.find(function(C){var X;return((X=_.r(C==null?void 0:C.cell,SMJ)||_.r(C==null?void 0:C.cell,pxf))==null?void 0:X.columnId)===D.type})};
s$.prototype.getClassForColumn=function(D){switch(D){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
s$.prototype.getStyleName=function(D){switch(D){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.$a.Object.defineProperties(s$.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.cells)||[]).map(function(C){return _.r(C,Wad)})}}});
s$.prototype.onDataChanged=s$.prototype.onDataChanged;_.V([_.n(),_.z("design:type",Object)],s$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Array)],s$.prototype,"columnRenderData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],s$.prototype,"componentStyle",void 0);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],s$.prototype,"cells",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],s$.prototype,"onDataChanged",null);_.V([_.yj({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],s$);
_.G(s$,"ytd-report-history-table-row-renderer",function(){if(Oa5!==void 0)return Oa5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Oa5=D},{mode:1});var Aag;var P_c;var mK3={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},e9h={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var mS=function(){return _.w.apply(this,arguments)||this};
_.h(mS,_.w);mS.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"}}}}}};
mS.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.$a.Object.defineProperties(mS.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.columns)?yqn(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return NAj(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var D=this.tableSpec,C=mK3;C=C===void 0?e9h:C;C=YZn(D.columnDimensions,D.columnsToShow||[],C);D=0;C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,D+=X.minWidth+X.paddingLeft+X.paddingRight;return D}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.V([_.m(_.xA),_.z("design:type",Object)],mS.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],mS.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],mS.prototype,"tableSpec",null);_.V([_.e("tableSpec"),_.z("design:type",Array),_.z("design:paramtypes",[])],mS.prototype,"columnRenderData",null);
_.V([_.e("tableSpec"),_.z("design:type",Number),_.z("design:paramtypes",[])],mS.prototype,"totalMinWidth",null);_.V([_.e("totalMinWidth"),_.z("design:type",String),_.z("design:paramtypes",[])],mS.prototype,"tableWidthStyle",null);_.V([_.yj({is:"ytd-table-renderer",disableElementRegistration:!0})],mS);
_.G(mS,"ytd-table-renderer",function(){if(P_c!==void 0)return P_c;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return P_c=D},{mode:1});var el=function(){return _.w.apply(this,arguments)||this};
_.h(el,_.w);el.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],el.prototype,"data",void 0);_.V([_.yj({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],el);
_.G(el,"ytd-report-reason-history-modal-renderer",function(){if(Aag!==void 0)return Aag;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Aag=D},{mode:1});var $1q;var vvc;var iax;var E$=function(){return _.w.apply(this,arguments)||this};
_.h(E$,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],E$.prototype,"data",void 0);_.V([_.yj({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],E$);
_.G(E$,"ytd-profile-column-stats-entry-renderer",function(){if(iax!==void 0)return iax;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return iax=D},{mode:1});var kQd;var to=function(){return _.w.apply(this,arguments)||this};
_.h(to,_.w);to.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],to.prototype,"data",void 0);_.V([_.yj({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],to);
_.G(to,"ytd-profile-column-stats-renderer",function(){if(kQd!==void 0)return kQd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return kQd=D},{mode:1});var uGN;var Nc=function(){return _.w.apply(this,arguments)||this};
_.h(Nc,_.w);_.$a.Object.defineProperties(Nc.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var C,X;D=(C=this.data)==null?void 0:(X=C.thumbnail)==null?void 0:X.thumbnails;var c;return D&&((c=D[0])==null?void 0:c.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var C,X;D=(C=this.data)==null?void 0:(X=C.thumbnail)==null?void 0:X.thumbnails;var c;return D&&((c=D[0])==null?void 0:c.height)||80}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Nc.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Nc.prototype,"componentStyle",void 0);_.V([_.e("data.useThumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Nc.prototype,"thumbnailWidth",null);
_.V([_.e("data.useThumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Nc.prototype,"thumbnailHeight",null);_.V([_.yj({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Nc);
_.G(Nc,"ytd-profile-column-user-info-renderer",function(){if(uGN!==void 0)return uGN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return uGN=D},{mode:1});var Y6=function(){return _.w.apply(this,arguments)||this};
_.h(Y6,_.w);Y6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Y6.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Y6.prototype,"componentStyle",void 0);_.V([_.yj({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Y6);
_.G(Y6,"ytd-profile-column-renderer",function(){if(vvc!==void 0)return vvc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return vvc=D},{mode:1});var y_=function(){var D=_.w.apply(this,arguments)||this;D.componentStyle="NON_CENTERED_PROFILE";return D};
_.h(y_,_.w);y_.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
y_.prototype.getIcon=function(D){return D?"settings:"+D.toLowerCase():null};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],y_.prototype,"data",void 0);_.V([_.yj({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],y_);
_.G(y_,"ytd-page-introduction-renderer",function(){if($1q!==void 0)return $1q;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $1q=D},{mode:1});var Q$g;var nd=function(){return _.w.apply(this,arguments)||this};
_.h(nd,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nd.prototype,"data",void 0);_.V([_.yj({is:"ytd-report-description-renderer",disableElementRegistration:!0})],nd);
_.G(nd,"ytd-report-description-renderer",function(){if(Q$g!==void 0)return Q$g;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Q$g=D},{mode:1});var Bhe;var baJ;var w4=function(){return _.w.apply(this,arguments)||this};
_.h(w4,_.w);w4.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],w4.prototype,"data",void 0);_.V([_.yj({is:"ytd-video-report-renderer",disableElementRegistration:!0})],w4);
_.G(w4,"ytd-video-report-renderer",function(){if(baJ!==void 0)return baJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return baJ=D},{mode:1});var raC;_.sI("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.sI("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var FB=function(){return _.w.apply(this,arguments)||this};
_.h(FB,_.w);FB.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
FB.prototype.computeMessageStyle=function(D){return D};
FB.prototype.computeButtonOverride=function(D){var C;if((D==null?0:(C=D.style)==null?0:C.value)&&D.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],FB.prototype,"shelf",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],FB.prototype,"panel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.z("design:type",Boolean)],FB.prototype,"componentStyle",void 0);_.V([_.n({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],FB.prototype,"buttonOverride",void 0);_.V([_.yj({is:"ytd-message-renderer",disableElementRegistration:!0})],FB);
_.G(FB,"ytd-message-renderer",function(){if(raC!==void 0)return raC;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return raC=D},{mode:1});var Z8=function(){return _.w.apply(this,arguments)||this};
_.h(Z8,_.w);Z8.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"}}}};
Z8.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Z8.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.$a.Object.defineProperties(Z8.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!(((D=this.data)==null?0:D.header)&&((C=this.data)==null?0:C.table))}}});
Z8.prototype.onRequestError=Z8.prototype.onRequestError;_.V([_.m(_.xA),_.z("design:type",Object)],Z8.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Z8.prototype,"data",void 0);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Z8.prototype,"isUnifiedReportHistory",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z8.prototype,"onRequestError",null);_.V([_.yj({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Z8);
_.G(Z8,"ytd-report-history-section-renderer",function(){if(Bhe!==void 0)return Bhe;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Bhe=D},{mode:1});var Khg;var Ga=function(){var D=_.w.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.h(Ga,_.w);Ga.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ga.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ga.prototype,"answerExpanded",void 0);_.V([_.yj({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Ga);
_.G(Ga,"ytd-handles-claiming-faq-renderer",function(){if(Khg!==void 0)return Khg;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Khg=D},{mode:1});var hZx;var x1C=function(){return _.w.apply(this,arguments)||this};
_.h(x1C,_.w);_.V([_.n(),_.z("design:type",Object)],x1C.prototype,"data",void 0);_.V([_.yj({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],x1C);
_.G(x1C,"ytd-handles-claiming-faq-section-renderer",function(){if(hZx!==void 0)return hZx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hZx=D},{mode:1});var Lh5;var V_=function(){var D=_.w.apply(this,arguments)||this;D.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";D.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";D.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";D.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";D.leftSquiggly=D.leftSquigglyLight;D.rightSquiggly=D.rightSquigglyLight;
D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return D};
_.h(V_,_.w);_.S=V_.prototype;_.S.updateLeftSquigglyStyle=function(){_.Os(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.S.updateRightSquigglyStyle=function(){_.Os(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.S.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),D?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
V_.prototype.updateRightSquigglyStyle=V_.prototype.updateRightSquigglyStyle;V_.prototype.updateLeftSquigglyStyle=V_.prototype.updateLeftSquigglyStyle;_.V([_.n(),_.z("design:type",Object)],V_.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],V_.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",String)],V_.prototype,"leftSquiggly",void 0);_.V([_.n(),_.z("design:type",String)],V_.prototype,"rightSquiggly",void 0);
_.V([_.vr("leftSquiggly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V_.prototype,"updateLeftSquigglyStyle",null);_.V([_.vr("rightSquiggly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V_.prototype,"updateRightSquigglyStyle",null);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],V_.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],V_.prototype,"actionButtonOverride",void 0);_.V([_.yj({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],V_);
_.G(V_,"ytd-handles-claiming-header-renderer",function(){if(Lh5!==void 0)return Lh5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Lh5=D},{mode:1});var s$g;var Ta=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";D.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";D.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";D.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
D.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";D.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";D.image0SquigglyBackground=D.image0LightSquigglyBackground;D.image1SquigglyBackground=D.image1LightSquigglyBackground;D.image3SquigglyBackground=D.image3LightSquigglyBackground;return D};
_.h(Ta,_.w);_.S=Ta.prototype;_.S.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.S.onDataChanged=function(){this.updateTitleAndImages()};
_.S.onThemeChanged=function(){this.updateTitleAndImages()};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.S.updateImage0SquigglyBackground=function(){_.Os(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.S.updateImage1SquigglyBackground=function(){_.Os(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.S.updateImage3SquigglyBackground=function(){_.Os(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.S.updateTitleAndImages=function(){var D,C;((D=this.data)==null?void 0:(C=D.titleImages)==null?void 0:C.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
Ta.prototype.updateImage3SquigglyBackground=Ta.prototype.updateImage3SquigglyBackground;Ta.prototype.updateImage1SquigglyBackground=Ta.prototype.updateImage1SquigglyBackground;Ta.prototype.updateImage0SquigglyBackground=Ta.prototype.updateImage0SquigglyBackground;Ta.prototype.onThemeChanged=Ta.prototype.onThemeChanged;Ta.prototype.onDataChanged=Ta.prototype.onDataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ta.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Ta.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"title0",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"title1",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"title2",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"title3",void 0);
_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"title4",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"image0",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"image1",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"image2",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"image3",void 0);_.V([_.n(),_.z("design:type",Object)],Ta.prototype,"image4",void 0);_.V([_.n(),_.z("design:type",String)],Ta.prototype,"image0SquigglyBackground",void 0);
_.V([_.n(),_.z("design:type",String)],Ta.prototype,"image1SquigglyBackground",void 0);_.V([_.n(),_.z("design:type",String)],Ta.prototype,"image3SquigglyBackground",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ta.prototype,"onDataChanged",null);_.V([_.vr("isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ta.prototype,"onThemeChanged",null);
_.V([_.vr("image0SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ta.prototype,"updateImage0SquigglyBackground",null);_.V([_.vr("image1SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ta.prototype,"updateImage1SquigglyBackground",null);
_.V([_.vr("image3SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ta.prototype,"updateImage3SquigglyBackground",null);_.V([_.yj({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Ta);
_.G(Ta,"ytd-handles-claiming-title-images-section-renderer",function(){if(s$g!==void 0)return s$g;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return s$g=D},{mode:1});var m1C;var Hh=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(Hh,_.w);Hh.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
Hh.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
Hh.prototype.onCopyButtonClick=function(){var D=this,C,X,c;return _.I(function(W){return(C=D.data)!=null&&C.primaryChannelUrl?W.yield(navigator.clipboard.writeText(((X=D.data)==null?0:X.encodedChannelUrl)?D.data.encodedChannelUrl:"https://"+_.Mh((c=D.data)==null?void 0:c.primaryChannelUrl)),0):W.jumpTo(0)})};
_.V([_.n(),_.z("design:type",Object)],Hh.prototype,"data",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Hh.prototype,"isDarkTheme",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Hh.prototype,"ytActionHandlerBehavior",void 0);_.V([_.yj({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Hh);
_.G(Hh,"ytd-handles-claiming-update-social-renderer",function(){if(m1C!==void 0)return m1C;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return m1C=D},{mode:1});var eZ5;var Jo=function(){var D=_.w.apply(this,arguments)||this;D.JSC$16346_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";D.JSC$16346_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.squigglyBackground=D.JSC$16346_squigglyBackgroundLight;return D};
_.h(Jo,_.w);Jo.prototype.updateSquigglyBackgroundStyle=function(){_.Os(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Jo.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.squigglyBackground=D?this.JSC$16346_squigglyBackgroundDark:this.JSC$16346_squigglyBackgroundLight};
Jo.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$16346_squigglyBackgroundDark:this.JSC$16346_squigglyBackgroundLight)};
Jo.prototype.updateSquigglyBackgroundStyle=Jo.prototype.updateSquigglyBackgroundStyle;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Jo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Jo.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Jo.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",String)],Jo.prototype,"squigglyBackground",void 0);_.V([_.vr("squigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Jo.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.yj({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Jo);
_.G(Jo,"ytd-handles-claiming-vanity-info-renderer",function(){if(eZ5!==void 0)return eZ5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return eZ5=D},{mode:1});var Evq;var za=function(){var D=_.w.apply(this,arguments)||this;D.JSC$16349_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";D.JSC$16349_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";D.squigglyBackground=D.JSC$16349_squigglyBackgroundLight;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(za,_.w);_.S=za.prototype;_.S.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$16349_squigglyBackgroundDark:this.JSC$16349_squigglyBackgroundLight)};
_.S.updateSquigglyBackgroundStyle=function(){_.Os(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.S.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.S.detached=function(){this.stop()};
_.S.stop=function(){this.playerElement.stop()};
_.S.setupVideoPlayer=function(){var D=this,C,X;return _.I(function(c){C=D.data.videoId;X="http://i1.ytimg.com/vi/"+C+"/maxresdefault.jpg";D.playerElement.loadVideoWithPlayerVars({video_id:C,iurlhq:X});_.t_(c)})};
za.prototype.onDataChanged=za.prototype.onDataChanged;za.prototype.updateSquigglyBackgroundStyle=za.prototype.updateSquigglyBackgroundStyle;_.V([_.n({value:!1}),_.z("design:type",Boolean)],za.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",String)],za.prototype,"squigglyBackground",void 0);_.V([_.kn("#player"),_.z("design:type",Object)],za.prototype,"playerElement",void 0);_.V([_.n(),_.z("design:type",Object)],za.prototype,"data",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],za.prototype,"ytActionHandlerBehavior",void 0);_.V([_.vr("squigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],za.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],za.prototype,"onDataChanged",null);
_.V([_.yj({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],za);
_.G(za,"ytd-handles-claiming-video-item-renderer",function(){if(Evq!==void 0)return Evq;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Evq=D},{mode:1});var t44;var Mc=function(){var D=_.Qj.apply(this,arguments)||this;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.containerWidthDiff=0;D.boundPrevClick=function(){D.set("offset",jl(D,D.offset-(D.scrollDistance||320)))};
D.boundNextClick=function(){D.set("offset",jl(D,D.offset+(D.scrollDistance||320)))};
D.boundScrollContainerMouseDown=function(C){D.dragMouseStart=C.clientX;D.dragOffsetStart=D.offset;D.dragging=!0};
D.boundScrollContainerDrag=function(C){D.dragging&&D.set("offset",jl(D,D.dragOffsetStart-(C.clientX-D.dragMouseStart)))};
D.boundMouseUp=function(){D.onMouseUp()};
D.boundWheelScroll=function(C){var X=0;Math.abs(C.deltaX)>=Math.abs(C.deltaY)?X=C.deltaX:C.shiftKey&&(X=C.deltaY);X!==0&&(D.offset+=X,C.stopPropagation(),C.preventDefault())};
D.boundChipCloudChipScrollIntoView=function(C){(C=C.detail)&&D.scrollChipIntoView(C)};
return D};
_.h(Mc,_.Qj);Mc.prototype.attached=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container");D.addEventListener("wheel",this.boundWheelScroll);D.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.style.touchAction="pan-y";D.addEventListener("pointerdown",this.boundScrollContainerMouseDown);D.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Mc.prototype.detached=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.boundWheelScroll);D.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);D.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Mc.prototype.reset=function(){this.set("offset",0);_.A0(this,this.setContainerWidthDiff);_.A0(this,this.setButtonsState)};
var jl=function(D,C){return Math.min(Math.max(C,0),D.containerWidthDiff)};
_.S=Mc.prototype;_.S.onMouseUp=function(){this.dragging=!1};
_.S.transformContainer=function(){this.offset=jl(this,this.offset);var D=_.q6("HTML_DIR")==="rtl"?"":"-";_.SY(this.hostElement).querySelector("#chips").style.transform="translateX("+D+this.offset+"px)";_.A0(this,this.setButtonsState)};
_.S.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=jl(this,this.offset));this.atStart=this.offset<=0};
_.S.setContainerWidthDiff=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container"),C=_.SY(this.hostElement).querySelector("#chips");D&&C&&(this.containerWidthDiff=C.clientWidth-D.clientWidth)};
_.S.scrollChipIntoView=function(D){var C=_.SY(this.hostElement).querySelector("#scroll-container");if(C){var X=this.atStart?0:106,c=this.atEnd?0:106;D.offsetLeft<this.offset+X?this.offset=jl(this,D.offsetLeft-X):D.offsetLeft+D.clientWidth>this.offset+C.clientWidth-c&&(this.offset=jl(this,D.offsetLeft+D.clientWidth+c-C.clientWidth))}};
Mc.prototype.transformContainer=Mc.prototype.transformContainer;_.V([_.n({value:0}),_.z("design:type",Number)],Mc.prototype,"offset",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Mc.prototype,"atStart",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Mc.prototype,"atEnd",void 0);_.V([_.n(),_.z("design:type",Number)],Mc.prototype,"scrollDistance",void 0);
_.V([_.vr("offset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mc.prototype,"transformContainer",null);_.V([_.Br()],Mc);var Nhk;var YaC;_.wNg=_.F(function(D){var C=D.data;D=_.U(_.Li(!1,void 0,"bob3J"));var X=D.next().value,c=D.next().value;D=function(p){if((C==null?void 0:C().state)!==1){var g,a;(a=(g=C()).onTap)==null||a.call(g,p)}};
var W={};return _.A("chip-shape",{class:"ytChipShapeHost","on:focusin":_.I_(function(){var p=_.iX().resolve(_.vK(_.E7));if(p){c(p.isKeyBoardInUse());var g,a;(a=(g=C()).onFocusIn)==null||a.call(g)}return!1}),
"on:focusout":_.I_(function(){c(!1);return!1})},_.A(ya5,{shouldWrapInButton:function(){return C().type!==2},
selected:function(){return C().state===0},
onClick:D,isDropdown:function(){return C().type===1},
accessibilityLabel:function(){return C().type===1?void 0:C().accessibilityLabel}},_.A("div",{class:_.g$("ytChipShapeChip",function(){a:switch(C==null?void 0:C().state){case 0:var p="ytChipShapeActive";
break a;case 1:p="ytChipShapeDisabled";break a;default:p="ytChipShapeInactive"}return p},function(){var p=C().type===1||C().type===2,g=C();
return p||g!=null&&g.startIcon?g==null||!g.startIcon||g!=null&&g.text?p?"ytChipShapeEndIconPadding":(g==null?0:g.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var p=C();
if((p==null?void 0:p.style)===0&&(p==null?void 0:p.state)===0){var g;p=((g=_.iX().resolve(_.vK(_.Hc)))==null?0:g())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else p="";return p},(W.ytChipShapeFocused=function(){var p;
return X()&&((p=C())==null?void 0:p.state)!==1},W))},_.A(_.v,{cond:function(){return C().startIcon},
then:function(){return _.A(_.$_,{icon:function(){var p;return(p=C())==null?void 0:p.startIcon},
className:_.g$(function(){return C().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var p=C(),g,a=(g=_.iX().resolve(_.vK(_.Hc)))==null?void 0:g();
return(p==null?void 0:p.style)===0&&(p==null?void 0:p.state)===0&&a?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return C().text},_.A(nvg,{shape:C,
onClick:D}),_.A(_.NL,{model:{borderRadius:"8px"}}))))},"Lc");
_.wNg.idomCompat=!0;var ya5=_.F(function(D){var C=_.I_(function(X){D.onClick(X);return!1});
return _.A(_.v,{cond:D.shouldWrapInButton,then:function(){return _.A("button",{class:"ytChipShapeButtonReset","on:click":C,role:function(){return D.isDropdown()?"combobox":"tab"},
"aria-label":D.accessibilityLabel,"aria-selected":D.selected},D.children)},
else:function(){return D.children}})},"Mc"),nvg=_.F(function(D){var C=D.shape;
var X=D.onClick;var c=_.I_(function(W){X(W);return!1});
return _.A(_.G4,null,_.A(_.wq,{when:function(){return C().type===1}},function(){return _.A(_.$_,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.A(_.wq,{when:function(){return C().type===2}},function(){return _.A("button",{class:"ytChipShapeButtonReset",
"on:click":c},_.A(_.$_,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.A(_.wq,{when:function(){return C().type===0}},function(){return _.A(_.kQ,null)}))},"Nc");_.CI(_.wNg,"chip-shape",{props:{data:_.Bm}});var qc=function(){var D=_.w.apply(this,arguments)||this;D.disableDeselectEvent=!1;D.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return D};
_.h(qc,_.w);_.S=qc.prototype;_.S.onSelectChipCommand=function(D){if(!this.selected&&this.data&&(D=_.r(D,An5),D.targetId&&D.targetId===this.data.targetId))this.onTap()};
_.S.onFilterChipTransformCommand=function(D){if(!this.selected&&this.data){var C;(D=(C=_.r(D,Syx))==null?void 0:C.chipUniqueId)&&D===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.S.dataChanged=function(){var D=this;_.A0(this,function(){D.data&&D.data.isSelected&&!D.selected&&(D.scrollChipIntoView(),D.onTap())})};
_.S.computeChipStyle=function(D){return D!=null?D:"STYLE_DEFAULT"};
_.S.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.DS(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.DS(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.S.onFocus=function(){var D=_.iX().resolve(_.vK(_.E7));D&&D.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.S.scrollChipIntoView=function(){_.lE(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.$a.Object.defineProperties(qc.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return TAn({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
qc.prototype.onFocus=qc.prototype.onFocus;qc.prototype.onTap=qc.prototype.onTap;qc.prototype.dataChanged=qc.prototype.dataChanged;_.V([_.m(_.jB),_.z("design:type",Object)],qc.prototype,"ironButtonState",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],qc.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],qc.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.H8),_.z("design:type",Object)],qc.prototype,"ironA11yKeysBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qc.prototype,"disableDeselectEvent",void 0);_.V([_.n(),_.z("design:type",Object)],qc.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.icon"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qc.prototype,"hasIcon",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.uniqueId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qc.prototype,"isGnomeChip",null);_.V([_.n({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.z("design:type",String)],qc.prototype,"chipStyle",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],qc.prototype,"selected",void 0);
_.V([_.e("data","selected"),_.z("design:type",Object),_.z("design:paramtypes",[])],qc.prototype,"chipShapeData",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qc.prototype,"dataChanged",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qc.prototype,"onTap",null);
_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qc.prototype,"onFocus",null);_.V([_.Yn({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],qc);
_.G(qc,"yt-chip-cloud-chip-renderer",function(){if(YaC===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Nhk===void 0&&(Nhk=document.createElement("template"));var c=Nhk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);YaC=D}D=YaC;return D},{mode:2});var z9d=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Fhf=_.F(function(D){function C(){if(z9d.has(D.data().displayType)){var P=!c(),k;if((k=D.disableDeselection)==null||!k.call(D)||P){D.data().selected=P;k=Object.assign({},g(),{selected:P});a(k);var u;(u=D.callback)==null||u.call(D,k,P)}}}
var X=_.aX("chip-view-model",function(P){var k=D.data().tooltipTargetId,u=_.jJ();k&&_.z0(u,k,P);return function(){Jh(u,P)}}),c=function(){var P,k;
return!!(((P=D.selected)==null?void 0:P.call(D))!==void 0?(k=D.selected)==null?0:k.call(D):g().selected)},W=_.U(_.d2(D.data)),p=W.next().value;
W=W.next().value;var g=p,a=W,O=_.ku(Jqo,function(){return D.data().chipEntityKey||""});
return _.A("chip-view-model",{class:"ytChipViewModelHost",el:X},_.A(_.wNg,{data:function(){var P,k=Object.assign({},g(),{selected:c()}),u=O(),Q=(P=D.disableDeselection)==null?void 0:P.call(D);a:switch(k.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":P=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":P=3;break a;default:P=0}return{text:(u==null?void 0:u.text)||k.text,state:k.disabled?1:k.selected?0:2,type:P,onTap:j8j(k,X,C,
Q),accessibilityLabel:k.accessibilityLabel||k.text}}}))},"Oc");
_.Fhf.idomCompat={callbacks:{callback:!0}};_.fd=_.F(function(D){var C=D.data;var X=D.callback;var c=D.selectionBehavior;var W=D.disableChipsScrollAnimation;var p=_.IX("div");D=_.U(_.Li(!0,void 0,"xkhdbf"));var g=D.next().value,a=D.next().value;D=_.U(_.Li(!1,void 0,"gY0n0c"));var O=D.next().value,P=D.next().value,k=!1,u=0;_.H2(function(){a(K());P(L())});
D=_.U(_.d2(function(){var R={};return C().autoselectedChipIndex!=null?(R[C().autoselectedChipIndex]=!0,R):{}}));
var Q=D.next().value,B=D.next().value,K=function(){var R=p.value;return R==null||R.scrollLeft-1<=0},L=function(){var R=p.value;
return R==null?!1:R.scrollLeft+1>=(R==null?NaN:R.scrollWidth)-(R==null?NaN:R.clientWidth)},t=function(){return C().isHorizontallyScrollable},Y=function(R){p.value!=null&&(_.q6("HTML_DIR")==="rtl"&&(R=-R),p.value.scrollBy({left:R,
behavior:(W==null?0:W())?"instant":"smooth"}))},y=function(){Y(-320)},J=function(){Y(320)},T=_.I_(function(R){k=!0;
u=R.clientX}),H=_.I_(function(R){if(k){R=R.clientX;
var ph=R-u;u=R;var Om;(Om=p.value)==null||Om.scrollBy({left:-ph})}}),q=_.I_(function(){var R=K(),ph=L();
R!==g()&&a(R);ph!==O()&&P(ph)});
_.vf("pointerup",function(){k&&(k=!1)});
return _.A("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.A(_.TO,{contentId:function(){return C().contentId},
useModernStyle:!0},function(){var R={},ph={};return _.A("div",null,_.A(_.v,{cond:function(){return C().title},
then:function(){return _.A("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.A("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return C().title}),_.A(_.BX,{data:function(){return C().overflowButton}},{buttonViewModel:_.Ze}))}}),_.A("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.A(_.v,{cond:function(){return C().previousButton},
then:function(){var Om={};return _.A("div",{class:_.g$("ytChipsShelfViewModelLeftArrowContainer",(Om.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return g()},Om))},_.A(_.BX,{data:function(){return C().previousButton}},{buttonViewModel:function(xj){return _.A(_.Ze,{data:xj.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:y})}}))}}),_.A("div",{el:p,
"on:pointerdown":T,"on:pointermove":H,"on:scroll":q,class:_.g$("ytChipsShelfViewModelChipsScrollContainer",(R.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=t,R))},_.A("div",{class:_.g$("ytChipsShelfViewModelChipsContainer",(ph.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=t,ph.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ph)),role:"tablist"},_.A(_.BX,{data:function(){return C().contents}},{chipViewModel:function(Om,xj){return _.A("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.A(_.Fhf,{data:Om.data,
callback:function(Bo,r5){var Fd=xj(),GJ,jZ=(GJ=c==null?void 0:c())!=null?GJ:0;jZ===1||jZ===2?(GJ={},B((GJ[Fd]=r5,GJ))):jZ===0&&(GJ={},B(Object.assign({},Q(),(GJ[Fd]=r5,GJ))));X==null||X(Bo,r5,Fd)},
disableDeselection:function(){return(c==null?void 0:c())===1},
selected:function(){return!!Q()[xj()]}}))}}))),_.A(_.v,{cond:function(){return C().nextButton},
then:function(){var Om={};return _.A("div",{class:_.g$("ytChipsShelfViewModelRightArrowContainer",(Om.ytChipsShelfViewModelRightArrowContainerIsHidden=O,Om))},_.A(_.BX,{data:function(){return C().nextButton}},{buttonViewModel:function(xj){return _.A(_.Ze,{data:xj.data,
className:"ytChipsShelfViewModelRightArrow",onClick:J})}}))}})))}))},"Qc");
_.fd.idomCompat={callbacks:{callback:!0}};var Zax=_.F(function(D){var C=D.data;var X=D.showChips;var c=D.isUpdateInProgress;var W=function(){return X()&&!c()};
D={};return _.A("ytd-ai-response-box-view-model",{class:_.g$("ytdAiResponseBoxViewModelHost")},_.A("div",{class:_.g$("ytdAiResponseBoxViewModelResponseMessageContainer",(D.ytdAiResponseBoxViewModelResponseMessageContainerHidden=W,D))},_.A(_.v,{cond:c,then:function(){return _.A("div",null,_.A(_.QG,{text:function(){return C().responsePendingMessage}}))},
else:function(){return _.A(_.kQ,null,_.A(_.v,{cond:function(){var p;return(p=C().responseMessageIcon)==null?void 0:p.iconType},
then:function(p){return _.A("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.A(_.$_,{icon:p}))}}),_.A("div",null,_.A(_.QG,{text:function(){return C().responseMessage}})))}})),_.A(_.BX,{data:function(){return C().chipsShelf}},{chipsShelfViewModel:function(p){p=p.data;
var g={};return _.A("div",{class:_.g$("ytdAiResponseBoxViewModelChipsShelfContainer",(g.ytdAiResponseBoxViewModelChipsShelfContainerShown=W,g))},_.A(_.fd,{data:p,selectionBehavior:3}))}}))},"Rc");var GQN;GQN=Object.assign({},{continuation:l85,download:zFc,canvas:FOh,reportChannelAbuse:WAN,ui:GYn,share:p34,talkToRecs:gBx,watch:Ic,ypc:$Bc,radioButtonGroup:nih,collabInviteLink:YwR},RF4,{voiceSearch:HzW,shorts:ac});_.d4=e5(GQN);_.V4f=EI(_.d4);_.Thc=(0,_.V4f)(_.d4.talkToRecs,{talkToRecsStateSelector:function(D){return D}});_.CI(_.F(function(D){var C=_.U((0,_.pgq)(D.data)).next().value;D=_.U(_.Li(!1,void 0,"JAKgqb"));var X=D.next().value,c=D.next().value;D=_.U(Hgo());var W=D.next().value;D=D.next().value;var p=_.uu(_.Thc.talkToRecsStateSelector),g=_.U(_.Li("",void 0,"rBDooc")),a=g.next().value,O=g.next().value;g=_.U(_.Li(!1,void 0,"HIR3Ae"));var P=g.next().value,k=g.next().value;g=_.U(_.Li(!1,void 0,"FH7uSd"));var u=g.next().value,Q=g.next().value;g=_.U(_.Li(!1,void 0,"VWjoUe"));var B=g.next().value,K=g.next().value,
L=function(){var ph=364;C().welcomeBannerTitle||(ph=70);ph=window.scrollY>ph;ph!==X()&&c(ph)};
_.JU(function(){var ph=C().onVisible;ph&&_.FV(ph,{});var Om,xj,Bo;O((Bo=(xj=qZh(C(),p()))!=null?xj:(Om=C().textInputValue)==null?void 0:Om.content)!=null?Bo:"");document.addEventListener("scroll",L);_.z3(function(){document.removeEventListener("scroll",L)})});
_.Jw(function(){var ph=qZh(C(),p());ph!==void 0&&ph!==a()&&O(ph)},"mvxmE");
var t=_.I_(function(){Q(!0);k(!0)}),Y=_.I_(function(){k(!1)});
_.Jw(function(){C()&&(Q(!1),K(!1))},"Tkjh9b");
var y=function(ph){var Om=C().onUpdateText;Om&&_.FV(Om,{form:{userQuery:ph}})},J=_.t6(function(ph){y(ph)},150),T=_.I_(function(ph){J(ph.target.value);
return!1});
_.Jw(function(){var ph=qZh(C(),p());ph&&ph!==a()&&O(ph)},"y3znBd");
var H=function(){K(!0)},q=_.I_(function(ph){if(ph.key==="Enter"){y(ph.target.value.trim());
var Om=_.r(C().submitButton,_.is);ph=void 0;var xj;if(Om==null?0:(xj=Om.loggingDirectives)==null?0:xj.trackingParams)ph=_.bO(Om.loggingDirectives.trackingParams);if(xj=Om==null?void 0:Om.onTap)_.FV(xj,{clickedVisualElement:ph}),H()}return!1}),R=_.I_(function(){W("yt-feed-customization-scroll-up")});
return _.A("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.fb(D)},_.A(_.v,{cond:function(){return!X()},
then:function(){var ph={};return _.A("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.A(_.v,{cond:function(){return!!C().welcomeBannerTitle},
then:function(){return _.A("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.A("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.A(_.QG,{text:function(){return C().welcomeBannerTitle}})),_.A("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.A(_.QG,{text:function(){return C().welcomeBannerSubtitle}})))}}),_.A("div",{class:_.g$("ytdFeedCustomizationFormViewModelInputContainer",(ph.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
P,ph))},_.A("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var Om;return(Om=C().textInputPlaceholder)==null?void 0:Om.content},
"prop:value":a,"on:focus":t,"on:blur":Y,"on:input":T,"on:keyup":q,maxlength:250}),_.A(_.v,{cond:function(){return!!a()},
then:function(){return _.A(_.BX,{data:function(){return C().clearButton}},{buttonViewModel:function(Om){return _.A("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.A(_.Ze,{data:Om.data}))}})}}),_.A(_.v,{cond:function(){return B()},
then:function(){return _.A(_.BX,{data:function(){return C().inProgressButton}},{buttonViewModel:function(Om){return _.A("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.A(_.Ze,{data:Om.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.A(_.BX,{data:function(){return C().submitButton}},{buttonViewModel:function(Om){return _.A("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.A(_.Ze,{data:Om.data,
onClick:H}))}})}}),_.A(_.BX,{data:function(){return C().menuButton}},{buttonViewModel:function(Om){return _.A("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.A(_.Ze,{data:Om.data}))}})),_.A(_.BX,{data:function(){return C().contents}},{aiResponseBoxViewModel:function(Om){return _.A("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.A(Zax,{data:Om.data,
showChips:u,isUpdateInProgress:B}))}}))},
else:function(){return _.A("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":R},_.A("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var ph;return a()||((ph=C().textInputPlaceholder)==null?void 0:ph.content)}))}}))},"Vc"),"ytd-feed-customization-form-view-model",{props:{data:_.Bm}});var Hab=_.TU.persistentPanelVisibleSelector,Rf=function(){var D=_.w.apply(this,arguments)||this;D.isDarkTheme=!1;D.notSticky=!1;D.transparentBackground=!1;D.shouldHide=!1;D.disableSticky=!1;D.fluidWidth=!1;D.isClipList=!1;D.defaultChipIndex=0;D.hasSelectedChipContent=!1;D.isPlaylist=!1;D.playlistVotingAnimationEnabled=_.b("web_enable_voting_animation");D.toolbarHeight=0;D.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(Rf,_.w);_.S=Rf.prototype;
_.S.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.S.attached=function(){var D=this;document.addEventListener("scroll",_.Pr(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var C;this.toolbarHeight=((C=document.querySelector("ytd-masthead"))==null?void 0:C.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(X){D.handleIntersect(X)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.S.detached=function(){var D;(D=this.intersectionObserver)==null||D.disconnect();var C;(C=this.resizeObserver)==null||C.disconnect();document.removeEventListener("scroll",_.Pr(this,this.updateChipBarWidthAndTop))};
_.S.dataChanged=function(){var D=this,C,X,c;((c=_.r((C=this.data)==null?void 0:(X=C.contents)==null?void 0:X[0],u55))==null?void 0:c.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var W=this.findSelectedChipIndex();this.selectedIndex!==W&&(this.selectedIndex=-1);_.A0(this,function(){D.selectedIndex=W;D.updateSelectedChipContent(D.selectedIndex);D.updating=!1;D.ytScrollableChipCloudBehavior.reset()})};
_.S.findSelectedChipIndex=function(){var D;if((D=this.data)==null||!D.contents)return 0;D=this.data.contents;for(var C=0;C<D.length;C++){var X=void 0;if((X=_.r(D[C],u55))==null?0:X.isSelected)return C}return 0};
_.S.computeStyle=function(D){return D};
_.S.handleChipCloudChipSelectAction=function(D){D=this.JSC$16390_chipsSelector.indexOf(D);D>-1&&(this.JSC$16390_chipsSelector.selectIndex(D),this.updateSelectedChipContent(D))};
_.S.updateSelectedChipContent=function(D){var C;if((C=this.data)==null||!C.contents||D<0||D>=this.data.contents.length)this.selectedChipContent=void 0;else{var X;this.selectedChipContent=(X=_.r(this.data.contents[D],u55))==null?void 0:X.content}};
_.S.handleChipCloudChipDeselectAction=function(){if(_.b("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],u55))==null?void 0:X.navigationEndpoint;c&&_.DS(this.hostElement,"yt-browse-section-list-reload-endpoint",[c]);this.JSC$16390_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.S.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.S.updateDynamicHeight=function(){var D=this;this.hasSelectedChipContent&&!this.notSticky?_.A0(this,function(){var C=_.SY(D.hostElement).querySelector("#chips-wrapper");C&&_.Os(D.hostElement,{"--ytd-chips-bar-dynamic-height":C.clientHeight+"px"})}):_.Os(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.S.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.S.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.S.onResize=function(){this.updateLayout()};
_.S.updateLayout=function(){var D=this.ytScrollableChipCloudBehavior;_.A0(D,D.setContainerWidthDiff);D=this.ytScrollableChipCloudBehavior;_.A0(D,D.setButtonsState)};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.S.handleIntersect=function(D){this.notSticky=this.isChannelPageGrid||this.disableSticky||D[0].intersectionRatio===1};
_.S.updateDimensions=function(){var D=this.ytRendererBehavior.parentComponent;if(D){var C,X=(C=D.headerElement)!=null?C:D;_.Os(this.hostElement,{"--ytd-rich-grid-chips-bar-width":X.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.S.updateSelectedIndexFromBinding=function(D){this.selectedIndex=D.detail.value};
_.S.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var D;(D=this.sortFilterHeaderRendererElement)==null||D.setAttribute("is-playlist-page-with-filters","")}};
_.S.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(ANq(!this.notSticky))};
_.$a.Object.defineProperties(Rf.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 D,C,X=(D=this.data)==null?void 0:(C=D.contents)==null?void 0:C.find(function(c){return _.r(c,KOM)});
return{sortFilterHeaderRenderer:_.r(X,KOM)}}}});
Rf.prototype.dispatchChipBarIsSticky=Rf.prototype.dispatchChipBarIsSticky;Rf.prototype.isPlaylistPageChanged=Rf.prototype.isPlaylistPageChanged;Rf.prototype.updateChipBarWidthAndTop=Rf.prototype.updateChipBarWidthAndTop;Rf.prototype.onResize=Rf.prototype.onResize;Rf.prototype.onPersistentPanelVisibleChanged=Rf.prototype.onPersistentPanelVisibleChanged;Rf.prototype.onGuideIsExpandedChanged=Rf.prototype.onGuideIsExpandedChanged;Rf.prototype.updateDynamicHeight=Rf.prototype.updateDynamicHeight;
Rf.prototype.onSelectedChipContentChanged=Rf.prototype.onSelectedChipContentChanged;Rf.prototype.dataChanged=Rf.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Rf.prototype,"actionHandlerBehavior",void 0);
_.V([_.m(_.lR),_.z("design:type",Object)],Rf.prototype,"ironResizableBehavior",void 0);_.V([_.m(),_.z("design:type",Mc)],Rf.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Rf.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rf.prototype,"data",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],Rf.prototype,"selectedIndex",void 0);_.V([_.n({value:320}),_.z("design:type",Number)],Rf.prototype,"scrollDistance",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"notSticky",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"transparentBackground",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.z("design:type",String)],Rf.prototype,"componentStyle",void 0);
_.V([_.n({selector:_.efW}),_.z("design:type",Boolean)],Rf.prototype,"guideIsExpanded",void 0);_.V([_.n({selector:Hab}),_.z("design:type",Boolean)],Rf.prototype,"persistentPanelVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"shouldHide",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"disableSticky",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"fluidWidth",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"isClipList",void 0);_.V([_.n(),_.z("design:type",Object)],Rf.prototype,"defaultChipIndex",void 0);_.V([_.n(),_.z("design:type",Object)],Rf.prototype,"selectedChipContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"hasSelectedChipContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rf.prototype,"isPlaylist",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Rf.prototype,"playlistVotingAnimationEnabled",void 0);_.V([_.kn("#chips"),_.z("design:type",Object)],Rf.prototype,"JSC$16390_chipsSelector",void 0);_.V([_.kn("ytd-sort-filter-header-renderer"),_.z("design:type",HTMLElement)],Rf.prototype,"sortFilterHeaderRendererElement",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Rf.prototype,"updating",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"dataChanged",null);_.V([_.vr("selectedChipContent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"onSelectedChipContentChanged",null);_.V([_.vr("hasSelectedChipContent","notSticky"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"updateDynamicHeight",null);
_.V([_.vr("guideIsExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"onGuideIsExpandedChanged",null);_.V([_.vr("persistentPanelVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"onPersistentPanelVisibleChanged",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"onResize",null);
_.V([_.bH("isChannelPageGrid","disableSticky","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"updateChipBarWidthAndTop",null);_.V([_.e("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rf.prototype,"isChannelPageGrid",null);_.V([_.e("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rf.prototype,"isHashtagLandingPage",null);
_.V([_.vr("isPlaylistPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"isPlaylistPageChanged",null);_.V([_.e("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rf.prototype,"isPlaylistPage",null);_.V([_.e("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Rf.prototype,"isDisableDeselectEvent",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rf.prototype,"sortFilterHeaderRendererData",null);_.V([_.n({reflectToAttribute:!0,selector:_.wm5}),_.z("design:type",String)],Rf.prototype,"frostedGlassMode",void 0);_.V([_.vr("notSticky"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rf.prototype,"dispatchChipBarIsSticky",null);_.V([_.yj({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Rf);
_.G(Rf,"ytd-feed-filter-chip-bar-renderer",function(){if(t44!==void 0)return t44;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return t44=D},{mode:1});var Jac;var zZ5=_.F(function(D){var C=D.data;var X=D.buttonIndex;var c=D.selectedIndex;var W=D.onSelect;var p=function(){return X()===c()},g=function(){var a,O;
return(O=(a=C().text)==null?void 0:a.content)!=null?O:""};
D=_.V2t();return _.A("yt-toggleable-image-button-view-model",{class:function(){var a={};a=(a.toggleableImageButtonViewModelHost=!0,a[""]=!0,a.toggleableImageButtonViewModelSemiTransparent=c()!==-1&&!p(),a);return _.sN(a)},
tabindex:0,"aria-label":g,"aria-pressed":p,role:"button","on:keydown":D,"on:click":_.I_(function(){W(C().onSubmitCommand);return!1})},_.A(_.v,{cond:function(){return C().logo},
then:function(a){return _.A(_.M_,{data:a,className:function(){var O={};O=(O.toggleableImageButtonViewModelImage=!0,O.toggleableImageButtonViewModelCircularRadius=!(!C().backgroundColor||!C().backgroundColorDarkMode),O.toggleableImageButtonViewModelGradientRing=!!(p()&&C().backgroundColor&&C().backgroundColorDarkMode),O);return _.sN(O)},
alt:g,useWidth:!1,style:function(){if(p()&&C().backgroundColor&&C().backgroundColorDarkMode){var O=E2(Number(C().backgroundColorDarkMode),"1");var P=E2(Number(C().backgroundColor),"1");O="background: linear-gradient(180deg,"+O+","+P+") border-box;"}else O="";return O}})}}),_.A(_.NL,{model:{borderRadius:"16px"}}),_.A("p",{class:function(){var a={};
a=(a.toggleableImageButtonViewModelLabel=!0,a.toggleableImageButtonViewModelBoldText=p(),a);return _.sN(a)}},_.A(_.QG,{text:function(){return C().text}})))},"Wc");
zZ5.idomCompat=!0;var M4J=_.F(function(D){var C=D.data;D=_.U(_.Li({index:-1,command:{}},void 0,"GM3umb"));var X=D.next().value,c=D.next().value;return _.A("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.A("div",{class:"nudgeFormViewModelFormOptions"},_.A(_.BX,{data:function(){return C().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(W,p){return _.A(zZ5,{data:W.data,buttonIndex:p,selectedIndex:function(){return X().index},
onSelect:function(g){c({index:p(),command:g})}})}})),_.A(_.QG,{text:function(){return C().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.A("div",{class:"nudgeFormViewModelSubmit"},_.A(_.BX,{data:function(){return C().submitButton}},{buttonViewModel:function(W){return _.A(j$b,{data:W.data,
isDisabled:function(){return X().index===-1},
onClick:function(){_.FV(X().command)}})}})))},"Xc");
M4J.idomCompat=!0;var j$b=_.F(function(D){var C=_.tw(function(){return Object.assign({},D.data(),{state:D.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.A(_.Ze,{data:C,onClick:D.onClick})},"Yc");_.CI(M4J,"yt-nudge-form-view-model",{props:{data:_.Bm}});var ln=function(){var D=_.w.apply(this,arguments)||this;D.roundedContainer=!0;D.buttonUpdate=_.b("web_modern_buttons");D.isDarkMode=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.h(ln,_.w);_.S=ln.prototype;_.S.computeNudgeStyle=function(D){return D?"modernized-nudge":""};
_.S.handleDarkModeToggledAction=function(D){this.isDarkMode=D};
_.S.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.S.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"}}}};
_.S.computeIsHorizontalButtons=function(D){return D?!!D.applyModernizedStyle&&!!D.enableHorizontalButtons&&!!D.secondaryButton:!1};
_.$a.Object.defineProperties(ln.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.data)==null?void 0:D.backgroundStyle)!=null?C:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.data)==null?void 0:D.contentsLocation)!=null?C:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.lightIconImage)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],ln.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ln.prototype,"actionHandlerBehavior",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("isHideEnclosingAction"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ln.prototype,"isHidden",null);_.V([_.n(),_.z("design:type",Object)],ln.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ln.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ln.prototype,"buttonUpdate",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.z("design:type",String)],ln.prototype,"nudgeStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.trimStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],ln.prototype,"trimStyle",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.backgroundStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],ln.prototype,"backgroundStyle",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.contentsLocation"),_.z("design:type",String),_.z("design:paramtypes",[])],ln.prototype,"contentsLocation",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.disableDropShadow"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ln.prototype,"noShadow",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.lightIconImage"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ln.prototype,"noIcon",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.z("design:type",Boolean)],ln.prototype,"isHorizontalButtons",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],ln.prototype,"isDarkMode",void 0);_.V([_.yj({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],ln);
_.G(ln,"ytd-feed-nudge-renderer",function(){if(Jac!==void 0)return Jac;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Jac=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var qaC;var fyC;var DO=function(){var D=_.w.apply(this,arguments)||this;D.collapsed=!1;D.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return D};
_.h(DO,_.w);DO.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"}}}};
DO.prototype.handleRatingSelect=function(){var D;((D=this.data)==null?0:D.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
DO.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],DO.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],DO.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.P9),_.z("design:type",Object)],DO.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DO.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],DO.prototype,"collapsed",void 0);_.V([_.yj({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],DO);
_.G(DO,"ytd-slimline-survey-renderer",function(){if(fyC!==void 0)return fyC;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fyC=D},{mode:1});var d1g;var CE=function(){return _.w.apply(this,arguments)||this};
_.h(CE,_.w);CE.prototype.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
CE.prototype.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D&&(D==null?0:D.secondaryTitleColor)&&this.maybeGetBackgroundColor(D)?(this.hostElement.style.backgroundColor=_.mW(this.maybeGetBackgroundColor(D)),this.hostElement.style.color=_.mW(D.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
CE.prototype.colorPaletteChanged=CE.prototype.colorPaletteChanged;_.V([_.m(_.OA),_.z("design:type",Object)],CE.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],CE.prototype,"data",void 0);_.V([_.n({selector:function(D){return D.ui.darkModeIsEnabled}}),
_.z("design:type",Boolean)],CE.prototype,"isDarkMode",void 0);_.V([_.n(),_.z("design:type",Object)],CE.prototype,"lightColorPalette",void 0);_.V([_.n(),_.z("design:type",Object)],CE.prototype,"darkColorPalette",void 0);_.V([_.vr("darkColorPalette","lightColorPalette","data","isDarkMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CE.prototype,"colorPaletteChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],CE);
_.G(CE,"ytd-endorsement-header-renderer",function(){if(d1g!==void 0)return d1g;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return d1g=D},{mode:1});_.CI(_.Og,"yt-decorated-avatar-view-model",{props:{data:_.Bm,className:_.Bm}});_.c3=new _.P6("VIEW_TRANSITION_MANAGER_TOKEN");var o6=function(){var D=_.w.apply(this,arguments)||this;D.fullHeight=_.b("web_rich_grid_media_full_height");D.showChannelAvatar=!0;D.hasPlaylistThumbnail=!1;D.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};D.registerThumbnailForPageTransition=function(){_.b("web_thumbnail_to_watch_transition")&&_.RZe(_.iX().resolve(_.c3),D.thumbnail)};
return D};
_.h(o6,_.w);_.S=o6.prototype;
_.S.configureRendererStamper=function(){return{lazyLoadMenu:du,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"}}}};
_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.shouldLazyLoadMenu=function(){var D=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.b("kevlar_modern_downloads_page")||!D};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16414_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.JSC$16414_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.S.getVideoPreviewOpts=function(){var D={},C;if((C=this.data)==null?0:C.multipleInlinePlaybackEndpoint)D=tK4;this.isRadio&&(D=EHe);return D};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16414_inlinePreviewHoverListener)==null||fm(D)};
_.S.getOwner=function(){var D,C,X;return((D=this.data)==null?void 0:(C=D.channelThumbnailSupportedRenderers)==null?void 0:C.channelThumbnailWithLinkRenderer)||_.r((X=this.data)==null?void 0:X.showProviderChannelThumbnail,irC)};
_.S.updateLockupSize=function(){var D;((D=this.getOwner())==null?0:D.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.S.getFeedbackEndpoint=function(D){if(_.r(D,_.tT))return D;var C,X;D=(X=(C=_.r(D,_.pt))==null?void 0:C.commands)!=null?X:[];C=_.U(D);for(X=C.next();!X.done;X=C.next())if(X=this.getFeedbackEndpoint(X.value))return X;return null};
_.S.computeNavigationEndpoint=function(D){return nLW(D==null?void 0:D.navigationEndpoint)};
_.S.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var D=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(D)!==JSON.stringify(this.data)&&this.set("data",D)}};
_.S.onDataChanged=function(){var D=this,C=this.getOwner();if(C){this.set("data.owner",C);var X,c,W,p,g,a=((X=this.data)==null?void 0:(c=X.shortBylineText)==null?void 0:(W=c.runs)==null?void 0:(p=W[0])==null?void 0:p.text)||((g=C.name)==null?void 0:g.simpleText);this.set("data.owner.title",a)}var O,P,k,u,Q,B;C=((O=this.data)==null?void 0:(P=O.thumbnailRenderer)==null?void 0:P.playlistVideoThumbnailRenderer)||((k=this.data)==null?void 0:(u=k.thumbnailRenderer)==null?void 0:u.playlistCustomThumbnailRenderer)||
((Q=this.data)==null?void 0:(B=Q.thumbnailRenderer)==null?void 0:B.showCustomThumbnailRenderer);var K;((K=this.data)==null?0:K.thumbnail)||!C||this.set("data.thumbnail",C.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){D.updateLockupSize()});
var L;if(O=((L=this.data)==null?void 0:L.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(O);var t;((t=this.dismissActionToReplayEntity)==null?0:t.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.S.onHiddenChanged=function(){this.updateLockupSize()};
_.S.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.DS(this.hostElement,"yt-terminate-video-preview-action");else{var D;(D=this.videoTitleLink)==null||D.focus()}};
_.S.metadataColorChanged=function(){var D;if(this.metadataColor&&((D=this.videoTitle)==null?0:D.style))this.videoTitle.style.color=_.mW(this.metadataColor);else{var C,X;!this.metadataColor&&((C=this.videoTitle)==null?0:(X=C.style)==null?0:X.color)&&(this.videoTitle.style.color="")}};
_.S.onDetailsClick=function(D){var C=this.computedNavigationEndpoint;C&&(_.d$(_.Mz(D),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.lE(this.hostElement,"yt-navigate",{endpoint:C}))};
_.S.onRendererTap=function(){this.registerThumbnailForPageTransition();var D,C,X=((D=this.data)==null?void 0:D.serviceEndpoint)||this.getFeedbackEndpoint((C=this.data)==null?void 0:C.navigationEndpoint);X&&_.r(X,_.tT)&&this.ytComponentBehavior.resolveCommand(X)};
_.S.onMouseDown=function(D){var C=D.target,X=this.computedNavigationEndpoint,c;D=C.href||((c=_.r(X==null?void 0:X.commandMetadata,_.ge))==null?void 0:c.url);c=C.data||X;D&&c&&mb3(D,c)};
_.S.computeVideoTitleText=function(){var D;if((D=this.data)==null?0:D.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.S.computeHasPlaylistThumbnail=function(D){var C,X,c,W,p;if((((C=D.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((X=D.thumbnailRenderer)==null?0:X.playlistCustomThumbnailRenderer)||((c=D.thumbnailRenderer)==null?0:c.showCustomThumbnailRenderer)||((W=D.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((p=D.thumbnailRenderer)==null?0:p.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(C=0;C<D.thumbnailOverlays.length;C++)if(X=void 0,(X=D.thumbnailOverlays[C])==
null?0:X.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.$a.Object.defineProperties(o6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.b("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16414_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ceJ(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.videoId)||((C=this.data)==null?void 0:C.playlistId)||""}}});
o6.prototype.onMouseDown=o6.prototype.onMouseDown;o6.prototype.metadataColorChanged=o6.prototype.metadataColorChanged;o6.prototype.onIsDismissedChanged=o6.prototype.onIsDismissedChanged;o6.prototype.onHiddenChanged=o6.prototype.onHiddenChanged;o6.prototype.onDataChanged=o6.prototype.onDataChanged;o6.prototype.handleReloadDownloadsInfo=o6.prototype.handleReloadDownloadsInfo;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],o6.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],o6.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],o6.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],o6.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],o6.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],o6.prototype,"entitySelectorType",void 0);_.V([_.n(),_.z("design:type",Boolean)],o6.prototype,"noEndpoints",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],o6.prototype,"isRadio",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],o6.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],o6.prototype,"fullHeight",void 0);
_.V([_.n(),_.z("design:type",Boolean)],o6.prototype,"showDarkVideoMetadata",void 0);_.V([_.n(),_.z("design:type",Boolean)],o6.prototype,"showLightVideoMetadata",void 0);_.V([_.n(),_.z("design:type",Number)],o6.prototype,"metadataColor",void 0);_.V([_.n(),_.z("design:type",Object)],o6.prototype,"showChannelAvatar",void 0);_.V([_.n(),_.z("design:type",Boolean)],o6.prototype,"hidden",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],o6.prototype,"showYtInteraction",void 0);
_.V([_.n(),_.z("design:type",String)],o6.prototype,"dismissedContentId",void 0);_.V([_.n({selectorArgs:["dismissedContentId"],selector:aU3}),_.z("design:type",Object)],o6.prototype,"dismissActionToReplayEntity",void 0);
_.V([_.n({selectorArgs:["entitySelectorType","mediaId"],selector:function(D,C,X){if(_.b("kevlar_modern_downloads_page")&&X&&C&&C!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(C){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var c=VO5(D,X);if(c){C=_.YP(D,X);var W=wJ(D,X),p=DM5(D,X);D=F$(D,X);var g=Nyn(c,C,W,p);W=g.shortViewCountText;var a=g.publishedTimeText;g=g.badges;var O=D>0;p=Eio(c,C,p,D);c=_.u8(C)||C==="TRANSFER_STATE_FAILED"||C==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kP(c.policyEntity)?
void 0:YqF(X,D,c.videoEntity.lengthSeconds);C==="TRANSFER_STATE_PAUSED_BY_USER"&&X&&!_.b("dl_resume_click_killswitch")&&(c={offlineVideoEndpoint:{videoId:X,action:"ACTION_RESUME"}});X={shortViewCountText:W,publishedTimeText:a,badges:g,isWatched:O,navigationEndpoint:c,thumbnailOverlays:p}}else X=void 0;return X;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(C=TpJ(D,X))if(c=_.yZ(D,X),p=_.H4h(D,X),c!=="TRANSFER_STATE_UNKNOWN"){X=tun(C,c,p,X,_.Nh(D));break a}X=void 0}return X;default:_.fQ(new _.Zf("Error: entitySelectorType defined but not matched in selector.",
D,C))}}}),
_.z("design:type",Object)],o6.prototype,"entityDrivenState",void 0);_.V([_.n({computed:"computeVideoTitleText(data)"}),_.z("design:type",Object)],o6.prototype,"videoTitleText",void 0);_.V([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.z("design:type",Object)],o6.prototype,"hasPlaylistThumbnail",void 0);_.V([_.n({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],o6.prototype,"computedNavigationEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],o6.prototype,"typographyBump",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("typographyBump"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o6.prototype,"typographyBumpV2",null);_.V([_.kn("#video-title"),_.z("design:type",HTMLElement)],o6.prototype,"videoTitle",void 0);_.V([_.kn("#video-title-link"),_.z("design:type",HTMLElement)],o6.prototype,"videoTitleLink",void 0);
_.V([_.kn("#thumbnail"),_.z("design:type",HTMLElement)],o6.prototype,"thumbnail",void 0);_.V([_.kn("#dismissible"),_.z("design:type",HTMLElement)],o6.prototype,"JSC$16414_dismissibleMedia",void 0);_.V([_.e("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],o6.prototype,"lazyLoadMenu",null);_.V([_.e("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],o6.prototype,"immediateLoadMenu",null);
_.V([_.bH("entityDrivenState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o6.prototype,"handleReloadDownloadsInfo",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o6.prototype,"onDataChanged",null);_.V([_.bH("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o6.prototype,"onHiddenChanged",null);
_.V([_.vr("isDismissed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o6.prototype,"onIsDismissedChanged",null);_.V([_.vr("metadataColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o6.prototype,"metadataColorChanged",null);_.V([_.$n("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],o6.prototype,"onMouseDown",null);
_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o6.prototype,"isHovered",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o6.prototype,"useAvatar",null);_.V([_.e("data","entitySelectorType"),_.z("design:type",String),_.z("design:paramtypes",[])],o6.prototype,"mediaId",null);_.V([_.yj({is:"ytd-rich-grid-media",disableElementRegistration:!0})],o6);
var lyg=_.o3()(o6,"ytd-rich-grid-media",function(){if(qaC!==void 0)return qaC;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qaC=D},{mode:_.Wc("kevlar_poly_si_batch_j072")?1:2});var DEb;var W3=function(){var D=_.w.apply(this,arguments)||this;D.removeMaxWidth=!0;D.insetMetadata=!1;return D};
_.h(W3,_.w);_.S=W3.prototype;_.S.configureRendererStamper=function(){return{innerMenu:du,outerMenu:Object.assign({},du,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.onDataChanged=function(){var D,C=((D=this.data)==null?void 0:D.trackingParams)||"";C&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(C));var X;((X=this.dismissActionToReplayEntity)==null?0:X.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16419_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.JSC$16419_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:NS4})};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16419_inlinePreviewHoverListener)==null||fm(D)};
_.S.onRendererTap=function(){var D,C,X=(D=this.data)==null?void 0:(C=D.serviceEndpoints)==null?void 0:C[0];_.r(X,_.tT)&&this.componentBehavior.resolveCommand(X)};
_.S.onDetailsClick=function(D){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint;X&&(_.d$(_.Mz(D),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(X))};
_.S.onShow=function(){var D=this.data;D.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(D.onFirstVisibleCommand),delete D.onFirstVisibleCommand)};
_.$a.Object.defineProperties(W3.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?void 0:(D=this.data)==null?void 0:D.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?(D=this.data)==null?void 0:D.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var D=this.data;if(D!=null&&D.badge&&(D=_.r(D.badge,Ozc))){var C,X,c;return[{metadataBadgeRenderer:{label:((C=D.label)==null?void 0:(X=C.runs)==null?void 0:X[0].text)||((c=D.label)==null?void 0:c.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var D=this.data;return Object.assign({},D.headline,{accessibility:D.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return this.isSlimShort?(D=this.computedTitle)==null?void 0:(C=D.accessibility)==null?void 0:(X=C.accessibilityData)==null?void 0:X.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.b("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16419_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
W3.prototype.onDataChanged=W3.prototype.onDataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],W3.prototype,"componentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],W3.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.P9),_.z("design:type",Object)],W3.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],W3.prototype,"ytdReduxBehavior",void 0);_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],W3.prototype,"thumbnail",void 0);_.V([_.kn("#dismissible"),_.z("design:type",HTMLElement)],W3.prototype,"JSC$16419_dismissibleMedia",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],W3.prototype,"removeMaxWidth",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],W3.prototype,"insetMetadata",void 0);_.V([_.n(),_.z("design:type",String)],W3.prototype,"dismissedContentId",void 0);_.V([_.n({selectorArgs:["dismissedContentId"],selector:aU3}),_.z("design:type",Object)],W3.prototype,"dismissActionToReplayEntity",void 0);_.V([_.e("insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],W3.prototype,"thumbnailObjectFit",null);
_.V([_.e("data","insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],W3.prototype,"innerMenu",null);_.V([_.e("data","insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],W3.prototype,"outerMenu",null);_.V([_.n(),_.z("design:type",Object)],W3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],W3.prototype,"miniMode",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W3.prototype,"onDataChanged",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],W3.prototype,"shortsBadges",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W3.prototype,"isShort",null);
_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W3.prototype,"isSlimShort",null);_.V([_.e("data","isShort"),_.z("design:type",Object),_.z("design:paramtypes",[])],W3.prototype,"computedTitle",null);_.V([_.e("isSlimShort","computedTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],W3.prototype,"computedAccessibilityLabel",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W3.prototype,"shouldForce2By3",null);_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W3.prototype,"isHovered",null);_.V([_.yj({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],W3);
_.G(W3,"ytd-rich-grid-slim-media",function(){if(DEb!==void 0)return DEb;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return DEb=D},{mode:_.Wc("kevlar_poly_si_batch_j063")?1:2});var Cx4;var Xic;var pE=function(){return _.w.apply(this,arguments)||this};
_.h(pE,_.w);pE.prototype.computeIcon=function(D){return D&&D.iconType?"yt-sys-icons:"+D.iconType.toLowerCase():""};
pE.prototype.onMouseEnter=function(){this.isHovered=!0};
pE.prototype.onMouseLeave=function(){this.isHovered=!1};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pE.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],pE.prototype,"isHovered",void 0);
_.V([_.yj({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],pE);
_.G(pE,"ytd-expand-on-hover-card-renderer",function(){if(Xic!==void 0)return Xic;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Xic=D},{mode:1});var cH5,osc=function(){if(cH5!==void 0)return cH5;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return cH5=D};_.sI("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var S3=function(){var D=_.w.apply(this,arguments)||this;D.compactStyle=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(S3,_.w);_.S=S3.prototype;_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.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"}}}};
_.S.computeHideDot=function(D){return!(D&&D.subscriberCountText&&D.videoCountText)||this.compactStyle};
_.S.hasDualButtons=function(D){return D&&D.purchaseButton&&D.subscribeButton};
_.S.backgroundColorChanged=function(){if(this.data!==void 0){var D=this.data.backgroundColor;this.isDarkTheme&&(D=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=D!=null?_.mW(D):"transparent"}};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.onTap=function(D){var C,X,c=((C=this.data)==null?void 0:C.navigationEndpoint)||((X=this.data)==null?void 0:X.serviceEndpoint);_.r(c,_.MH)&&(c&&_.iX().resolve(_.uX).resolveCommand(c,{form:{element:this.hostElement}}),D.preventDefault())};
_.S.computeChannelEndpoint=function(D){return _.r(D,_.MH)?null:D};
_.S.computeHrefEndpoint=function(D){return _.r(D,_.MH)?null:this.componentBehavior.computeHref_(D)};
_.S.computeChannelRendererStyle=function(D){return D};
_.S.computeIconSize=function(D){return D?108:136};
_.$a.Object.defineProperties(S3,{template:{configurable:!0,enumerable:!0,get:function(){return osc()}}});
S3.prototype.backgroundColorChanged=S3.prototype.backgroundColorChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],S3.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],S3.prototype,"componentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],S3.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],S3.prototype,"isDarkTheme",void 0);_.V([_.n({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.z("design:type",String)],S3.prototype,"channelRendererStyle",void 0);_.V([_.n({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],S3.prototype,"dualButtons",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],S3.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],S3.prototype,"biggerThumbStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],S3.prototype,"compactStyle",void 0);_.V([_.vr("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S3.prototype,"backgroundColorChanged",null);_.V([_.yj({is:"ytd-channel-renderer",disableElementRegistration:!0})],S3);_.G(S3,"ytd-channel-renderer",function(){return osc()},{mode:1});var W4C;var piM;_.sI("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Ux=function(){var D=_.w.apply(this,arguments)||this;D.displayItemCount=2;D.hasPlaylistThumbnail=!1;D.stackThumbnailSize="large";return D};
_.h(Ux,_.w);_.S=Ux.prototype;_.S.attached=function(){this.updateInlinePreviewHoverListeners()};
_.S.detached=function(){this.clearInlinePreviewHoverListeners()};
_.S.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.S.computeFirstVideos=function(D,C){return D&&C?D.slice(0,C):[]};
_.S.computeThumbnailWidth=function(D,C){return D?C==="BIG"?500:C==="MASSIVE"?600:C==="MEDIUM"?450:420:360};
_.S.computeThumbnailHeight=function(D,C){return D?C==="BIG"?280:C==="MASSIVE"?337:234:202};
_.S.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16432_inlinePreviewHoverListener)==null||fm(D)};
_.S.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16432_inlinePreviewHoverListener=nT({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:tK4,thumbnailElement:this.thumbnail})};
_.S.computeHasPlaylistThumbnail=function(D){var C,X;if((((C=D.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((X=D.thumbnailRenderer)==null?0:X.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(C=0;C<D.thumbnailOverlays.length;C++)if(X=void 0,(X=D.thumbnailOverlays[C])==null?0:X.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.$a.Object.defineProperties(Ux.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16432_inlinePreviewHoverListener)==null?0:vw(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ux.prototype.dataChanged=Ux.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],Ux.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ux.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Ux.prototype,"displayItemCount",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],Ux.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],Ux.prototype,"biggerThumbsStyle",void 0);_.V([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.z("design:type",Object)],Ux.prototype,"hasPlaylistThumbnail",void 0);_.V([_.n(),_.z("design:type",String)],Ux.prototype,"stackThumbnailSize",void 0);_.V([_.kn("ytd-thumbnail"),_.z("design:type",HTMLElement)],Ux.prototype,"thumbnail",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ux.prototype,"dataChanged",null);
_.V([_.e("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ux.prototype,"isHovered",null);_.V([_.yj({is:"ytd-radio-renderer",disableElementRegistration:!0})],Ux);
_.G(Ux,"ytd-radio-renderer",function(){if(piM!==void 0)return piM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return piM=D},{mode:_.Wc("kevlar_poly_si_batch_j058")?1:2});var Sie;_.sI("itemSectionRenderer","showRenderer","ytd-show-renderer");var gM=function(){return _.w.apply(this,arguments)||this};
_.h(gM,_.w);gM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
gM.prototype.computeThumbnailWidth=function(D){return D?360:246};
gM.prototype.computeUseProminentThumbs=function(D){return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gM.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],gM.prototype,"isSearch",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.z("design:type",Boolean)],gM.prototype,"useProminentThumbs",void 0);_.V([_.yj({is:"ytd-show-renderer",disableElementRegistration:!0})],gM);
_.G(gM,"ytd-show-renderer",function(){if(Sie!==void 0)return Sie;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Sie=D},{mode:1});_.sI("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var a6=function(){var D=_.w.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.h(a6,_.w);a6.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],a6.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],a6.prototype,"isRichGrid",void 0);_.V([_.yj({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],a6);
_.G(a6,"ytd-feed-entry-renderer",function(){if(W4C!==void 0)return W4C;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return W4C=D},{mode:1});var UEd;var I6=function(){return _.w.apply(this,arguments)||this};
_.h(I6,_.w);I6.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.V([_.m(_.OA),_.z("design:type",Object)],I6.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],I6.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],I6.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.eV,value:3}),_.z("design:type",Number)],I6.prototype,"itemsPerRow",void 0);
_.V([_.yj({is:"ytd-link-card-renderer",disableElementRegistration:!0})],I6);
_.G(I6,"ytd-link-card-renderer",function(){if(UEd!==void 0)return UEd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return UEd=D},{mode:1});var gsJ;var Ox=function(){return _.w.apply(this,arguments)||this};
_.h(Ox,_.w);_.S=Ox.prototype;_.S.configureRendererStamper=function(){return{"data.menu":du,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.S.onRendererTap=function(D){if(!this.ytdDismissibleItemBehavior.isDismissed){var C,X=(C=this.data)==null?void 0:C.navigationEndpoint;X&&!_.d$(_.Mz(D),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(X)?_.d$(_.Mz(D),this.hostElement,["A"])||_.lE(this.hostElement,"yt-navigate",{endpoint:X}):this.ytComponentBehavior.resolveCommand(X,{}))}};
_.S.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.S.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
_.S.isNavigationCommand=function(D){return D?_.r(D,_.Pl)||_.r(D,_.TC)||_.r(D,_.oX)?!0:!1:!1};
Ox.prototype.onRendererTap=Ox.prototype.onRendererTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ox.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],Ox.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Ox.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Ox.prototype,"data",void 0);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ox.prototype,"onRendererTap",null);_.V([_.yj({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Ox);
_.G(Ox,"ytd-lumiere-promo-item-image-renderer",function(){if(gsJ!==void 0)return gsJ;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return gsJ=D},{mode:1});var avM;var AN=function(){return _.w.apply(this,arguments)||this};
_.h(AN,_.w);AN.prototype.computeLandscapeThumbnail=function(){var D;return((D=this.data)==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],AN.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],AN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],AN.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.eV}),_.z("design:type",Number)],AN.prototype,"itemsPerRow",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.z("design:type",Boolean)],AN.prototype,"landscapeThumbnail",void 0);_.V([_.yj({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],AN);
_.G(AN,"ytd-lumiere-shelf-details-renderer",function(){if(avM!==void 0)return avM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return avM=D},{mode:_.Wc("kevlar_poly_si_batch_j076")?1:2});var Ive;var P3=function(){return _.w.apply(this,arguments)||this};
_.h(P3,_.w);P3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],P3.prototype,"data",void 0);_.V([_.yj({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],P3);
_.G(P3,"ytd-primetime-promo-details-renderer",function(){if(Ive!==void 0)return Ive;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Ive=D},{mode:1});var Opf;var $B=function(){return _.w.apply(this,arguments)||this};
_.h($B,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$B.prototype,"data",void 0);_.V([_.yj({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],$B);
_.G($B,"ytd-panel-show-style-metadata-renderer",function(){if(Opf!==void 0)return Opf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Opf=D},{mode:1});var AHJ;var v3=function(){return _.w.apply(this,arguments)||this};
_.h(v3,_.w);_.S=v3.prototype;_.S.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.S.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.S.computeThumbnail=function(D){if(D)return D.smallFormFactorBackgroundThumbnail||D.largeFormFactorBackgroundThumbnail};
_.S.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.S.isNavigationCommand=function(D){return D?_.r(D,_.Pl)||_.r(D,_.TC)||_.r(D,_.oX)?!0:!1:!1};
_.S.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
v3.prototype.onPanelTap=v3.prototype.onPanelTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],v3.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],v3.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],v3.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.z("design:type",Boolean)],v3.prototype,"modernButtons",void 0);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],v3.prototype,"onPanelTap",null);_.V([_.yj({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],v3);
_.G(v3,"ytd-primetime-promo-panel-renderer",function(){if(AHJ!==void 0)return AHJ;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return AHJ=D},{mode:1});_.CI(_.F(function(D){D=_.Ro(D,{data:{},useFullWidth:!1});var C=D.data,X=D.useFullWidth;D={};return _.A("teaser-card-view-model",{class:_.g$("ytTeaserCardViewModelHost",(D.ytTeaserCardViewModelUseFullWidth=function(){return X()},D))},_.A(_.v,{cond:function(){return C().onTap},
then:function(c){return _.A(_.ty,{className:"ytTeaserCardViewModelLink",command:c},_.A("div",{class:"ytTeaserCardViewModelImageContainer"},_.A(_.v,{cond:function(){return C().image},
then:function(W){return _.A(_.M_,{data:W,className:"ytTeaserCardViewModelImage",alt:""})}})),_.A("p",{class:"ytTeaserCardViewModelCaption"},function(){return C().caption}))}}))},"Zc"),"teaser-card-view-model",{props:{data:_.Bm,
useFullWidth:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=function(){var c;return _.VX((c=C())==null?void 0:c.iconThemedImage)};
return _.A("yt-edu-card-view-model",null,_.A(_.TO,{contentId:function(){return C().nudgeId}},function(){return _.A("div",{class:_.g$("ytEduCardViewModelHost",function(){return C().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.A("div",{class:"ytEduCardViewModelTopCornerButton"},_.A(_.BX,{data:function(){return C().dismissButton}},{buttonViewModel:_.Ze})),_.A("div",{class:"ytEduCardViewModelContentWrapper"},_.A("div",{class:"ytEduCardViewModelHeaderImage"},_.A(_.v,
{cond:X,
then:function(c){return _.A(_.M_,{data:c,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.A("div",{class:"ytEduCardViewModelTextContainer"},_.A("div",{class:"ytEduCardViewModelTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytEduCardViewModelSubtitle"},_.A(_.QG,{text:function(){return C().subtitle}}))),_.A("div",{class:"ytEduCardViewModelContent"},_.A(_.BX,{data:function(){return C().form}},{nudgeFormViewModel:M4J}))),_.A("div",{class:_.g$("ytEduCardViewModelButtonWrapper",
function(){return C().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.A(_.BX,{data:function(){return C().primaryButton}},{buttonViewModel:function(c){return _.A("div",{class:"ytEduCardViewModelPrimaryButton"},_.A(_.Ze,{data:c.data}))}}),_.A(_.BX,{data:function(){return C().secondaryButton}},{buttonViewModel:function(c){return _.A("div",{class:"ytEduCardViewModelSecondaryButton"},_.A(_.Ze,{data:c.data}))}})))}))},"$c"),"yt-edu-card-view-model",{props:{data:_.Bm}});var PxJ=new _.P6("RICH_GRID_VIDEO_RENDERER_TOKEN");_.CI(_.F(function(D){var C=D.data;var X=D.showYtInteractionInContent;var c=function(){return!!C().selectableFeedback};
D=_.U(_.Li(!1,void 0,"qxtgaf"));var W=D.next().value,p=D.next().value;_.JU(function(){var Q=_.r(C().primaryButton,_.us);(Q==null?0:Q.isToggled)&&p(Q.isToggled)});
D=_.I_(function(Q){if(!c())return!1;if(W()){var B;var K=(B=C().selectableFeedback)==null?void 0:B.onDeselect}else{var L;K=(L=C().selectableFeedback)==null?void 0:L.onSelect}K&&_.FV(K,{form:{element:Q.target}});p(!W());if(Q=_.r(C().primaryButton,_.us))Q.isToggled=W();return!1});
var g=function(){if(!c()){var Q,B=(Q=C().loggingDirectives)==null?void 0:Q.trackingParams;B&&_.JF(_.iX().resolve(_.X5),B)}},a=_.TwR(),O=function(){var Q;
return c()?(Q=C().selectableFeedback)==null?void 0:Q.a11yLabel:void 0},P=function(){return c()?{toggled:W()}:{}},k=_.iX().resolve(_.vK(PxJ)),u={};
return _.A("yt-feedback-item-renderer",{class:_.g$("ytFeedbackItemRendererHost",(u.ytFeedbackItemRendererSelectableFeedback=c,u)),"on:click":D,"on:keydown":a,title:O,"aria-label":O,"aria-pressed":function(){return c()?W():void 0},
tabindex:function(){return c()?0:void 0},
role:function(){return c()?"button":void 0}},_.A("div",{class:"ytFeedbackItemRendererContentContainer"},_.A(_.BX,{data:function(){return C().content}},{videoRenderer:function(Q){return _.A(k,{data:Q.data,
showYtInteraction:X})},
lockupViewModel:function(Q){return _.A(_.jx,{data:Q.data,containerType:2})}})),_.A("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.A(_.BX,{data:function(){return C().primaryButton}},{toggleButtonViewModel:function(Q){return _.A(_.o1,{data:Q.data,
buttonShapeOverrides:P,disableExplicitClickLogging:!0,onToggle:g})}})))},"ad"),"yt-feedback-item-renderer",{props:{data:_.Bm,
showYtInteractionInContent:_.Bm}});var i$=function(){var D=_.w.apply(this,arguments)||this;D.isShortsGrid=!1;D.isCompactGrid=!1;D.isShortsPanelGrid=!1;D.renderedFromRichGrid=!1;D.isInFirstColumn=!1;D.noGutterMargins=!1;D.noBottomMargin=!1;D.halfBottomMargin=!1;D.isInlineGroupItem=!1;D.insetMetadata=!1;D.noBottomMarginInAds=!0;D.force16By9ThumbnailAspectRatio=!1;D.useCompactList=!1;D.containerType=2;D.thumbnailTargetWidth=9999;D.isResponsiveGrid=!1;D.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};D.hoverListener=
D.hover.bind(D);D.leaveListener=D.leave.bind(D);D.highlighted=!1;D.JSC$16468_unsubscribeFromInlinePreviewIsActive=function(){};
return D};
_.h(i$,_.w);_.S=i$.prototype;_.S.computeContainerType=function(){return this.useCompactList?3:2};
_.S.itemWidthChanged=function(){var D;this.thumbnailTargetWidth=(D=this.itemWidth)!=null?D:9999};
_.S.updateIsInFirstColumn=function(){var D;this.isInFirstColumn=((D=this.data)==null?void 0:D.colIndex)===0};
_.S.observerContainerType=function(){if(this.lockup){var D=this.lockup;D.containerType=this.containerType;D.sizing=this.sizing;D.typographyBump=this.typographyBump;D.itemWidth=this.itemWidth}this.richGridMedia&&_.b("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.b("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.S.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.S.leave=function(D){D=D.relatedTarget;var C=document.querySelector("ytd-video-preview");D&&C&&_.Us(C).contains(D)||this.removeAndCleanupHighlight()};
_.S.hover=function(){var D;!this.highlighted&&(D=this.data)!=null&&D.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(D=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:D,boxShadow:"0 0 0 10px "+D})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.S.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};
_.S.registerHoverHighlightListeners=function(){var D=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16468_unsubscribeFromInlinePreviewIsActive=_.dX(_.fe(),_.Y7R,function(C){D.highlighted&&!C&&D.removeAndCleanupHighlight()})};
_.S.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16468_unsubscribeFromInlinePreviewIsActive()};
_.S.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.S.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.S.getBackgroundColor=function(){var D,C,X=(D=this.data)==null?void 0:(C=D.onFocusEffect)==null?void 0:C.onFocusColor;if(X){if(document.documentElement.hasAttribute("dark")&&(X==null?0:X.darkTheme))return t9(X==null?void 0:X.darkTheme);if(X==null?0:X.lightTheme)return t9(X==null?void 0:X.lightTheme)}};
_.S.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var D=_.LN(),C,X,c;D&&((C=this.data)==null?0:C.trackingParams)&&((X=this.data)==null?void 0:X.colIndex)!=null&&((c=this.data)==null?void 0:c.rowIndex)!=null&&_.zo(D,_.bO(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.S.isSlimMediaRenderer=function(D){return!!_.r(D==null?void 0:D.content,_.Z_q)||!!_.r(D==null?void 0:D.content,FHd)||!!_.r(D==null?void 0:D.content,_.Id)||!!_.r(D==null?void 0:D.content,gi5)};
_.S.isPostRenderer=function(){var D,C;return!!_.r((D=this.data)==null?void 0:D.content,XGC)||!!_.r((C=this.data)==null?void 0:C.content,cx4)};
_.S.computeIsGameCardShelf=function(){var D;return!!_.r((D=this.data)==null?void 0:D.content,io4)};
_.S.computeIsMiniGameCardShelf=function(){var D,C;return!!_.r((D=this.data)==null?void 0:D.content,EOe)||!!_.r((C=this.data)==null?void 0:C.content,tTd)};
_.S.computeIsTeaserCard=function(){var D;return!!_.r((D=this.data)==null?void 0:D.content,tTd)};
_.S.computeIsSelectableFeedbackItem=function(){var D,C;return!((C=_.r((D=this.data)==null?void 0:D.content,YMb))==null||!C.selectableFeedback)};
_.S.computeContainsLumierePosters=function(){var D,C;return((C=_.r((D=this.data)==null?void 0:D.content,Orb))==null?void 0:C.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.S.computeIsExpandOnHoverCardShelf=function(){var D;return!!_.r((D=this.data)==null?void 0:D.content,IE4)};
_.S.computeIsLinkCardShelf=function(){var D;return!!_.r((D=this.data)==null?void 0:D.content,reJ)};
_.S.computeIsReelItemStyleAvatarCircle=function(D){var C;return((C=_.r(D==null?void 0:D.content,_.Id))==null?void 0:C.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.S.computeIsLinkCardFullWidth=function(D,C){var X;return((X=_.r(D==null?void 0:D.content,reJ))==null?void 0:X.useFullWidth)||C<=2};
_.$a.Object.defineProperties(i$.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var D;return _.b("web_hover_effect_refactor")&&_.r((D=this.data)==null?void 0:D.content,_.bu5)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.b("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var D;if(_.b("web_hover_effect_refactor")&&_.r((D=this.data)==null?void 0:D.content,_.bu5))return!1;var C;return!((C=this.data)==null||!C.onFocusEffect)||_.b("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var D;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.b("web_hover_effect_refactor")?(D=this.data)==null?void 0:D.onFocusEffect:void 0}}}});
i$.prototype.richGridHoverHighlightChanged=i$.prototype.richGridHoverHighlightChanged;i$.prototype.observerContainerType=i$.prototype.observerContainerType;i$.prototype.updateIsInFirstColumn=i$.prototype.updateIsInFirstColumn;i$.prototype.itemWidthChanged=i$.prototype.itemWidthChanged;_.V([_.m(_.OA),_.z("design:type",Object)],i$.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],i$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],i$.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],i$.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.z("design:type",Boolean)],i$.prototype,"isPost",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.z("design:type",Boolean)],i$.prototype,"containsLumierePosters",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.z("design:type",Boolean)],i$.prototype,"isSlimMedia",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.z("design:type",Boolean)],i$.prototype,"isGameCardShelf",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.z("design:type",Boolean)],i$.prototype,"isMiniGameCardShelf",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.z("design:type",Boolean)],i$.prototype,"isTeaserCard",void 0);_.V([_.n({computed:"computeIsSelectableFeedbackItem(data)"}),_.z("design:type",Boolean)],i$.prototype,"isSelectableFeedbackItem",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"isShortsGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],i$.prototype,"isSlimGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"isCompactGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"isShortsPanelGrid",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.z("design:type",Boolean)],i$.prototype,"isExpandOnHoverCardShelf",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.z("design:type",Boolean)],i$.prototype,"isLinkCardShelf",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.eV,value:3}),_.z("design:type",Number)],i$.prototype,"itemsPerRow",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"renderedFromRichGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"isInFirstColumn",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"noGutterMargins",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"noBottomMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"halfBottomMargin",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"isInlineGroupItem",void 0);_.V([_.n(),_.z("design:type",Object)],i$.prototype,"insetMetadata",void 0);_.V([_.n(),_.z("design:type",Object)],i$.prototype,"noBottomMarginInAds",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],i$.prototype,"isShelfItem",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.z("design:type",Boolean)],i$.prototype,"isReelItemStyleAvatarCircle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.z("design:type",Boolean)],i$.prototype,"isLinkCardFullWidth",void 0);_.V([_.n(),_.z("design:type",Object)],i$.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"useCompactList",void 0);_.V([_.n(),_.z("design:type",String)],i$.prototype,"sizing",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],i$.prototype,"typographyBump",void 0);_.V([_.n(),_.z("design:type",Number)],i$.prototype,"itemWidth",void 0);_.V([_.n(),_.z("design:type",Boolean)],i$.prototype,"isHomeShelf",void 0);_.V([_.n(),_.z("design:type",Boolean)],i$.prototype,"isHomeGrid",void 0);
_.V([_.kn("yt-lockup-view-model"),_.z("design:type",HTMLElement)],i$.prototype,"lockup",void 0);_.V([_.kn("ytd-rich-grid-media"),_.z("design:type",HTMLElement)],i$.prototype,"richGridMedia",void 0);_.V([_.kn("ytd-ad-slot-renderer"),_.z("design:type",HTMLElement)],i$.prototype,"adSlotRenderer",void 0);_.V([_.n({computed:"computeContainerType(useCompactList)"}),_.z("design:type",Object)],i$.prototype,"containerType",void 0);_.V([_.n(),_.z("design:type",Object)],i$.prototype,"thumbnailTargetWidth",void 0);
_.V([_.e("showYtInteractionOnRichItem"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],i$.prototype,"showYtInteractionOnRichGridMedia",null);_.V([_.e("isSelectableFeedbackItem","richGridHoverHighlight"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],i$.prototype,"showYtInteractionOnRichItem",null);_.V([_.e("typographyBump","isHomeGrid"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],i$.prototype,"richTypographyBump",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data","isShortsGrid","isCompactGrid"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],i$.prototype,"richGridHoverHighlight",null);_.V([_.e("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.z("design:type",Number),_.z("design:paramtypes",[])],i$.prototype,"shortsLockupViewModelAspectRatio",null);_.V([_.e("isInlineGroupItem"),_.z("design:type",Number),_.z("design:paramtypes",[])],i$.prototype,"shortsLockupViewModelScrimStyle",null);
_.V([_.vr("itemWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i$.prototype,"itemWidthChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i$.prototype,"updateIsInFirstColumn",null);_.V([_.vr("containerType","sizing","typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i$.prototype,"observerContainerType",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],i$.prototype,"isResponsiveGrid",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],i$.prototype,"lockupExperiments",null);_.V([_.vr("richGridHoverHighlight"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i$.prototype,"richGridHoverHighlightChanged",null);_.V([_.yj({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],i$);
_.$E5=_.o3()(i$,"ytd-rich-item-renderer",function(){if(Cx4===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);Cx4=D}D=Cx4;return D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var cK3={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var vHJ=_.jV(_.I7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Wgj={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},SQ3={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Upo={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var vs5;var kB=function(){var D=_.w.apply(this,arguments)||this;D.useResponsiveGrid=!1;D.hidden=!1;D.isShowMoreHidden=!1;D.isShowLessHidden=!0;D.hasExpansionButton=!1;D.isInnerShelf=!1;D.allVideosCount=0;D.allPlaylistCount=0;D.haveSmartDownloadsCompleted=!1;D.restrictContentsOverflow=!1;D.firstShownIndex=0;D.horizontalOffset=0;D.atEnd=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
D.nextClick=function(){var C;(C=D.data)!=null&&C.contents&&(D.firstShownIndex+=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
D.previousClick=function(){var C;(C=D.data)!=null&&C.contents&&(D.firstShownIndex-=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
return D};
_.h(kB,_.w);_.S=kB.prototype;
_.S.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.q6("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.S.attached=function(){this.requestElementsPerRow()};
_.S.refreshGridLayoutNew=function(){var D;if((D=this.data)!=null&&D.contents&&this.containerWidth){var C;((C=this.data.responsiveContainerConfiguration)==null?0:C.responsiveSize)?(D=_.uw3(this.data.responsiveContainerConfiguration,this.containerWidth,2),D=_.Zw(Object.assign({},D,{standardUnitMinWidth:this.standardUnitMinWidth}))):D=_.Zw({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=D.typographyBump;if(this.elementsPerRow!==
D.numItems||this.gutter!==D.gutter)this.elementsPerRow=D.numItems,this.gutter=D.gutter,this.itemWidth=D.itemWidth,_.Os(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":D.gutter+"px"})}};
_.S.computeSizing=function(){if(!this.isLumiere){var D=_.FkF(this.data);return D?D:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.S.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.S.computeButton=function(D){var C=_.r(D,_.AF);D=Object.assign({},_.r(D,_.AF));return C?(D.text||(D.text={simpleText:D.tooltip}),D.style="STYLE_MONO_OUTLINE",D.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",D):C};
_.S.onRowIndexChange=function(){var D=_.LN(),C,X;((C=this.data)==null?0:C.trackingParams)&&((X=this.data)==null?void 0:X.rowIndex)!=null&&D&&_.zo(D,_.bO(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.S.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var D,C=((D=this.getRichItemRenderers()[0])==null?void 0:D.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*C;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
_.S.onUpdateElementsPerRowAction=function(D,C,X,c,W,p){if(this.containerWidth!==p&&(this.containerWidth=p,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&D&&C&&X&&c&&W&&(this.elementsPerRow!==D||this.postsPerRow!==C||this.slimItemsPerRow!==X||this.gameCardsPerRow!==c||this.miniGameCardsPerRow!==W)&&(this.elementsPerRow=D,this.postsPerRow=C,this.slimItemsPerRow=X,this.gameCardsPerRow=c,this.miniGameCardsPerRow=W,this.updateItemVisibility())};
_.S.isExpandedChanged=function(){var D=this.getRichItemRenderers(),C=this.isExpanded;D.forEach(function(X){X.halfBottomMargin=C})};
_.S.isCollapsedChanged=function(){var D=this.getRichItemRenderers(),C=this.isCollapsed;D.forEach(function(X){X.noBottomMargin=C})};
_.S.getRichItemRenderers=function(){return _.SY(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.S.updateItemVisibility=function(){var D=this;if(this.data&&this.data.contents){var C=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(c,W){var p;((p=D.data)==null?0:p.isExpanded)?(c.hidden=W>C-1,c.ytRendererBehavior.markDirty()):c.hidden=W>D.currentElementsPerRow-1||W>C-1});
var X=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||X||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||X||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.S.setHeightToSingleRow=function(){var D=this.getRichItemRenderers(),C=Number.parseInt(getComputedStyle(D[0]).marginBottom,10)||0;D=D.slice(0,this.currentElementsPerRow).reduce(function(X,c){return Math.max(X,c.getBoundingClientRect().height+C)},0);
this.contents.style.height=D+"px"};
_.S.focusNextExpandedItem=function(){var D;((D=this.data)==null?0:D.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.S.focusItem=function(D,C){var X=this.getRichItemRenderers();if(X[D]&&(D=X[D].querySelector(".focus-on-expand"))){if(C){var c;(c=X[this.currentElementsPerRow])==null||c.scrollIntoView({behavior:"smooth",block:"center"})}D.focus({preventScroll:!0})}};
_.S.onDataChange=function(){var D=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var C;if((C=this.data)==null?0:C.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.A0(this,function(){D.updateItemVisibility()});
var X;if((X=this.data)==null?0:X.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Os(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),C=0;C<this.data.contents.length;C++)X=_.r(this.data.contents[C],_.RZ)||{},X.colIndex=C,X.rowIndex=this.data.rowIndex};
_.S.handleRerenderDownloadsData=function(){_.b("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())};
_.S.blockInlinePreview=function(D){var C=this,X;return _.I(function(c){(X=C.inlinePreviewIsEnabled)&&C.ytdReduxBehavior.dispatch(_.OEx(!1));return c.return(new Promise(function(W){D(function(){X&&C.ytdReduxBehavior.dispatch(_.OEx(!0));W()})}))})};
_.S.expandShelf=function(){var D=this;if(this.data){var C,X=(C=_.r(this.data.showMoreButton,_.AF))==null?void 0:C.trackingParams;X&&_.JF(_.iO(),X);this.set("data.isExpanded",!0);this.blockInlinePreview(function(c){D.setHeightToSingleRow();D.updateItemVisibility();D.contents.style.height=D.contents.scrollHeight+"px";_.qX.addJob(function(){D.contents.style.height="auto";D.focusNextExpandedItem();c()},2,200)})}};
_.S.collapseShelf=function(){var D=this;return _.I(function(C){if(C.nextAddress==1){if(!D.data)return C.return();D.set("data.isExpanded",!1);return C.yield(D.blockInlinePreview(function(X){D.contents.style.height=D.contents.scrollHeight+"px";D.setHeightToSingleRow();_.qX.addJob(function(){D.updateItemVisibility();D.contents.style.height="auto";X()},2,200)}),2)}_.lE(D.hostElement,"yt-rich-shelf-renderer-collapse",D.data.trackingParams);
D.focusItem(0,!1);_.t_(C)})};
_.S.updateArrowButtonStatus=function(){this.getRichItemRenderers();var D,C;var X=((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=X};
_.S.onChildElementFocus=function(D){this.hasChevronButtons&&(D=D.target.closest("#contents > *"),this.contents.contains(D)&&(D.offsetLeft<this.horizontalOffset?this.previousClick():D.offsetLeft+D.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.S.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.q6("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.S.updateHorizontalOffset=function(){var D=this.getRichItemRenderers(),C,X;var c=((C=this.data)==null?void 0:(X=C.contents)==null?void 0:X.length)||0;var W;D=((W=D[0])==null?void 0:W.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>c?this.firstShownIndex=c-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*D};
_.S.isSlimMediaShelfRenderer=function(){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ))==null?void 0:X.content;return!!(_.r(c,_.Z_q)||_.r(c,FHd)||_.r(c,_.Id)||_.r(c,gi5))};
_.S.isGameCardShelf=function(){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ))==null?void 0:X.content;return!!_.r(c,io4)};
_.S.isMiniGameCardShelf=function(){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ))==null?void 0:X.content;return!!_.r(c,EOe)||!!_.r(c,tTd)};
_.S.hasGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.S.hasRoundedGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.S.isShortsShelf=function(){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ))==null?void 0:X.content;return!!_.r(c,_.Id)||!!_.r(c,gi5)};
_.S.isPostShelfRenderer=function(){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ))==null?void 0:X.content;return!(!_.r(c,XGC)&&!_.r(c,cx4))};
_.S.isLumiereShelf=function(){var D,C,X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ);return!!_.r(X==null?void 0:X.content,Orb)};
_.S.isLumiereShelfWithPosters=function(){var D,C,X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ),c;return((c=_.r(X==null?void 0:X.content,Orb))==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.S.isExpandOnHoverCardShelf=function(){var D,C,X,c=(X=_.r((D=this.data)==null?void 0:(C=D.contents)==null?void 0:C[0],_.RZ))==null?void 0:X.content;return!!_.r(c,IE4)};
_.S.computeHasFeaturedBadge=function(){var D,C,X=_.r((D=this.data)==null?void 0:(C=D.badges)==null?void 0:C[0],_.EYk);return X?X.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.S.computeHasPaygatedFeaturedBadge=function(){var D,C,X=_.r((D=this.data)==null?void 0:(C=D.badges)==null?void 0:C[0],_.EYk);return X?(X==null?void 0:X.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.S.computeHeaderHidden=function(){var D,C,X,c,W,p;return!((D=this.data)==null?0:D.icon)&&!((C=this.data)==null?0:C.title)&&!((X=this.data)==null?0:X.subtitle)&&!((c=this.data)==null?0:c.thumbnail)&&!((W=this.data)==null?0:W.badges)&&!((p=this.data)==null?0:p.menu)};
_.S.showCtaButton=function(){var D;return!((D=this.data)==null||!D.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.S.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.S.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.S.computeForce16By9ThumbnailAspectRatio=function(){var D,C;return((D=this.data)==null?void 0:(C=D.responsiveContainerConfiguration)==null?void 0:C.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.S.onSectionReactiveDismissal=function(D,C,X){var c,W;var p=(c=this.data)==null?void 0:(W=c.targetingContext)==null?void 0:W.targetGroupId;this&&p&&C.targetGroupId&&p.includes(C.targetGroupId)?(c=this.rowIndex,D=c===void 0?!1:!(C.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&c<=D)):D=!1;D&&(this.hidden=X)};
_.$a.Object.defineProperties(kB.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var D=this.elementsPerRow;this.isPostShelfRenderer()?D=this.postsPerRow:this.isSlimMediaShelfRenderer()?D=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?D=this.slimItemsPerRow-1:this.isGameCardShelf()?D=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(D=this.miniGameCardsPerRow);return D}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.previousButton)&&!((C=this.data)==null||!C.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.iX().resolve(_.lu).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return!((D=this.data)==null?0:(C=D.thumbnail)==null?0:(X=C.accessibility)==null?0:(c=X.accessibilityData)==null?0:c.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
kB.prototype.onChildElementFocus=kB.prototype.onChildElementFocus;kB.prototype.handleRerenderDownloadsData=kB.prototype.handleRerenderDownloadsData;kB.prototype.onDataChange=kB.prototype.onDataChange;kB.prototype.isCollapsedChanged=kB.prototype.isCollapsedChanged;kB.prototype.isExpandedChanged=kB.prototype.isExpandedChanged;kB.prototype.onRowIndexChange=kB.prototype.onRowIndexChange;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],kB.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],kB.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],kB.prototype,"ytdReduxBehavior",void 0);
_.V([_.n({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.z("design:type",Object)],kB.prototype,"useResponsiveGrid",void 0);_.V([_.n(),_.z("design:type",Object)],kB.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],kB.prototype,"standardUnitMinWidth",void 0);_.V([_.n({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],kB.prototype,"elementsPerRow",void 0);_.V([_.n({value:3}),_.z("design:type",Number)],kB.prototype,"postsPerRow",void 0);
_.V([_.n({value:6}),_.z("design:type",Number)],kB.prototype,"slimItemsPerRow",void 0);_.V([_.n({value:6}),_.z("design:type",Number)],kB.prototype,"gameCardsPerRow",void 0);_.V([_.n({value:6}),_.z("design:type",Number)],kB.prototype,"miniGameCardsPerRow",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kB.prototype,"hidden",void 0);_.V([_.n(),_.z("design:type",Object)],kB.prototype,"isShowMoreHidden",void 0);
_.V([_.n(),_.z("design:type",Object)],kB.prototype,"isShowLessHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kB.prototype,"hasExpansionButton",void 0);_.V([_.e("data.isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kB.prototype,"isExpanded",null);_.V([_.e("data.isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kB.prototype,"isCollapsed",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kB.prototype,"isInnerShelf",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.z("design:type",Boolean)],kB.prototype,"isShorts",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.z("design:type",Boolean)],kB.prototype,"isLumiere",void 0);_.V([_.n({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.z("design:type",Boolean)],kB.prototype,"hasBoxArtThumbnailStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.z("design:type",Boolean)],kB.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.z("design:type",Boolean)],kB.prototype,"hasFeaturedBadge",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.z("design:type",Boolean)],kB.prototype,"hasPaygatedFeaturedBadge",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.z("design:type",Boolean)],kB.prototype,"isHeaderHidden",void 0);_.V([_.n({selector:_.Glh}),_.z("design:type",Object)],kB.prototype,"allVideosCount",void 0);_.V([_.n({selector:kH5}),_.z("design:type",Object)],kB.prototype,"allPlaylistCount",void 0);_.V([_.n({selector:dLW}),_.z("design:type",Object)],kB.prototype,"haveSmartDownloadsCompleted",void 0);
_.V([_.n({selectorArgs:["entitySelectorType"],selector:function(D,C){if(_.b("kevlar_modern_downloads_page")&&C&&C!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var X=D.entities;switch(C){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":C=_.xP(X);D=vC(C);var c=_.QZ(C);X=_.s1(X);X=_.Ce(a_F(c,X,C.length));return{contents:D,subtitle:X};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return X=_.xP(X),{contents:vC(X)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return X=
_.Le(X),{contents:vC(X)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return X=_.i4Z(X),{contents:vC(X)};default:_.fQ(new _.Zf("Error: entitySelectorType defined but not matched in selector.",D,C))}}}}),
_.z("design:type",Object)],kB.prototype,"entityDrivenRichShelfData",void 0);_.V([_.n({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.z("design:type",Boolean)],kB.prototype,"hasTopCtaButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.z("design:type",Boolean)],kB.prototype,"hasBottomCtaButton",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.z("design:type",Boolean)],kB.prototype,"force16By9ThumbnailAspectRatio",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kB.prototype,"restrictContentsOverflow",void 0);_.V([_.n({selector:_.yyt}),_.z("design:type",Boolean)],kB.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.n({computed:"computeSizing(data)"}),_.z("design:type",String)],kB.prototype,"sizing",void 0);
_.V([_.n(),_.z("design:type",Boolean)],kB.prototype,"typographyBump",void 0);_.V([_.n(),_.z("design:type",Number)],kB.prototype,"itemWidth",void 0);_.V([_.n(),_.z("design:type",Object)],kB.prototype,"firstShownIndex",void 0);_.V([_.n(),_.z("design:type",Object)],kB.prototype,"horizontalOffset",void 0);_.V([_.n(),_.z("design:type",Object)],kB.prototype,"atEnd",void 0);_.V([_.kn("#contents"),_.z("design:type",HTMLElement)],kB.prototype,"contents",void 0);
_.V([_.vr("data.rowIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kB.prototype,"onRowIndexChange",null);_.V([_.vr("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kB.prototype,"isExpandedChanged",null);_.V([_.vr("isCollapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kB.prototype,"isCollapsedChanged",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kB.prototype,"onDataChange",null);_.V([_.vr("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kB.prototype,"handleRerenderDownloadsData",null);_.V([_.$n("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],kB.prototype,"onChildElementFocus",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data","isHomePage"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kB.prototype,"isTruncated",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kB.prototype,"showBottomDivider",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kB.prototype,"hasChevronButtons",null);
_.V([_.e("firstShownIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],kB.prototype,"previousButtonOverride",null);_.V([_.e("atEnd"),_.z("design:type",Object),_.z("design:paramtypes",[])],kB.prototype,"nextButtonOverride",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kB.prototype,"isHomePage",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kB.prototype,"thumbnailAriaHidden",null);
_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],kB.prototype,"entitySelectorType",null);_.V([_.yj({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],kB);
_.ipx=_.o3()(kB,"ytd-rich-shelf-renderer",function(){if(vs5===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);vs5=D}D=vs5;return D},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var kxe;_.CI(_.ex,"yt-badge-view-model",{props:{data:_.Bm,class:_.Bm,workaroundShortsIsThumbnailBadge:_.Bm,modern:_.Bm,numBadgesInRow:_.Bm,clipTextOverflow:_.Bm}});_.CI(G7C,"yt-slimline-survey-view-model",{props:{data:_.Bm}});var u$=function(){var D=_.w.apply(this,arguments)||this;D.tileLottieAnimationRef={};D.backgroundLottieAnimationRef={};D.isOnHoverBehaviorForLottieEnabled=!0;D.useBiggerShowcaseImage=_.b("enable_desktop_search_bigger_thumbs");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return D};
_.h(u$,_.w);_.S=u$.prototype;_.S.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.S.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.S.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var D=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);D!==this.hasTile&&this.set("hasTile",D);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.S.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.S.currentColorChanged=function(){this.updateButtonPalette()};
_.S.computeBackgroundStyle=function(D){if(D&&this.data){var C=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var X=_.c0((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);X&&C.push('background-image: url("'+X+'");')}var c;((c=D.basicColorData)==null?void 0:c.backgroundColor)!==void 0&&C.push("background-color: "+_.e_(D.basicColorData.backgroundColor)+";");return C.join("")}};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
_.S.getCurrentLogo=function(D,C){if(D)return C?D.darkLogoImage:D.lightLogoImage};
_.S.getCurrentStaticTileImage=function(D,C){if(this.hasStaticTile(D))return D.darkTileImage?C?D.darkTileImage:D.tileImage:D.tileImage};
_.S.computeTitleStyle=function(D){if(this.data&&this.data.title&&D&&D.basicColorData&&D.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.mW(D.basicColorData.foregroundTitleColor)+";"};
_.S.computeSubtitleStyle=function(D){if(this.data&&this.data.subtitle&&D&&D.basicColorData&&D.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.mW(D.basicColorData.foregroundBodyColor)+";"};
_.S.computeSupplementalStyle=function(D){if(this.data&&this.data.supplementalText&&D&&D.supplementalTextColor!==void 0)return D=_.mW(D.supplementalTextColor),"color:"+D+";--yt-endpoint-color:"+D+";--yt-endpoint-hover-color:"+D+";--yt-endpoint-visited-color:"+D+";--yt-formatted-string-bold-font-weight:700;"};
_.S.computeDismissIconStyle=function(D){var C,X;if((D==null?0:(C=D.dismissButtonColorData)==null?0:C.foregroundTitleColor)&&(D==null?0:(X=D.dismissButtonColorData)==null?0:X.backgroundColor))return"--yt-button-color:"+_.e_(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.e_(D.dismissButtonColorData.backgroundColor)+";"};
_.S.computeOverflowIconStyle=function(D){var C,X;if((D==null?0:(C=D.dismissButtonColorData)==null?0:C.foregroundTitleColor)&&(D==null?0:(X=D.dismissButtonColorData)==null?0:X.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.e_(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.e_(D.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.e_(D.dismissButtonColorData.foregroundTitleColor)+";"};
_.S.computeBannerStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeLocation=function(D){switch(D==null?void 0:D.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.S.shouldShowTileSection=function(D,C,X){return!this.shouldExpandLogo(D,C,X)&&C};
_.S.shouldShowExpandedLogoSection=function(D,C,X){return this.shouldExpandLogo(D,C,X)&&D!==void 0&&this.hasLogo(D)};
_.S.shouldExpandLogo=function(D,C,X){return D&&C?!1:X>=2};
_.S.hasStaticTile=function(D){return!(D==null||!D.tileImage)};
_.S.hasTileLottie=function(D){var C;return!!(D==null?0:(C=D.tileLottie)==null?0:C.url)};
_.S.hasLogo=function(D){return this.getCurrentLogo(D,this.isDarkTheme)!==void 0};
_.S.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.S.getExpandedLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.S.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.S.getMaxTitleFontSize=function(D){return D.overrideTitleMaxFontSize?String(D.overrideTitleMaxFontSize):"36"};
_.S.hasBackgroundLottie=function(D){var C;return!!(D==null?0:(C=D.backgroundLottie)==null?0:C.url)};
_.S.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,C;(D=this.tileLottieAnimationRef)==null||(C=D.lottieEl)==null||C.play();var X,c;(X=this.backgroundLottieAnimationRef)==null||(c=X.lottieEl)==null||c.play()}};
_.S.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,C;(D=this.tileLottieAnimationRef)==null||(C=D.lottieEl)==null||C.pause();var X,c;(X=this.backgroundLottieAnimationRef)==null||(c=X.lottieEl)==null||c.pause()}};
_.S.pauseLottie=function(){var D,C;(D=this.tileLottieAnimationRef)==null||(C=D.lottieEl)==null||C.pause();var X,c;(X=this.backgroundLottieAnimationRef)==null||(c=X.lottieEl)==null||c.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.S.performPrimaryButtonAction=function(){var D,C,X;((D=this.data)==null?0:(C=D.primaryButton)==null?0:(X=C.buttonRenderer)==null?0:X.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
_.S.updateButtonPalette=function(){if(this.data&&this.currentColorData){var D;((D=this.data.dismissButton)==null?0:D.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var C;if((C=this.data.primaryButton)==null?0:C.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var X;if((X=this.data.secondaryButton)==
null?0:X.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var c;((c=this.data.primaryButton)==null?0:c.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var W;((W=this.data.primaryButton)==null?0:W.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var p;((p=this.data.secondaryButton)==null?0:p.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var g;((g=this.data.primaryButton)==null?0:g.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.S.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var D=this.getTileLottieDataBasedOnTheme(),C,X;if(D.url!==((C=this.tileLottiePlayerProps)==null?void 0:(X=C.animationConfig)==null?void 0:X.path)){var c,W;(c=this.tileLottieAnimationRef)==null||(W=c.lottieEl)==null||W.destroy();var p;this.isOnHoverBehaviorForLottieEnabled=!((p=D.settings)==null?0:p.autoplay);var g,a;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(a=(g=D.settings)==null?void 0:g.autoplay)!=null?a:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.tileLottiePlayerProps.animationConfig.path=D.url:this.tileLottiePlayerProps.animationConfig.animationData=D.url}}};
_.S.getOverflowButton=function(D){return _.r(D.overflowButton,P9C)};
_.S.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var D=this.getBackgroundLottieDataBasedOnTheme(),C,X;if(D.url!==((C=this.backgroundLottiePlayerProps)==null?void 0:(X=C.animationConfig)==null?void 0:X.path)){var c,W;(c=this.backgroundLottieAnimationRef)==null||(W=c.lottieEl)==null||W.destroy();var p;this.isOnHoverBehaviorForLottieEnabled=!((p=D.settings)==null?0:p.autoplay);var g,a;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(a=(g=D.settings)==null?void 0:g.autoplay)!=null?a:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=D.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
D.url}}};
_.S.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var D;((D=this.tileLottieAnimationRef)==null?void 0:D.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var C;((C=this.backgroundLottieAnimationRef)==null?void 0:C.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.S.getTileLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeTileLottie))return this.data.darkThemeTileLottie;var C;return((C=this.data)==null?0:C.tileLottie)?this.data.tileLottie:{}};
_.S.getBackgroundLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var C;return((C=this.data)==null?0:C.backgroundLottie)?this.data.backgroundLottie:{}};
_.S.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.S.getLottieLoopValue=function(D){return D?D.loop!==void 0?D.loop:D.loopCount?D.loopCount-1:!0:!0};
_.S.logoWithPadding=function(D){var C,X,c;return(D=(C=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(X=C.thumbnails)==null?void 0:(c=X[0])==null?void 0:c.height)&&D%31===0?!0:!1};
u$.prototype.currentColorChanged=u$.prototype.currentColorChanged;u$.prototype.themeChanged=u$.prototype.themeChanged;u$.prototype.dataChanged=u$.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],u$.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],u$.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],u$.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"primaryButton",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"secondaryButton",void 0);
_.V([_.n({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],u$.prototype,"elementsPerRow",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],u$.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],u$.prototype,"hasTile",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],u$.prototype,"hasMetadata",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],u$.prototype,"showLogoImage",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"currentColorData",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.z("design:type",String)],u$.prototype,"bannerStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.z("design:type",String)],u$.prototype,"location",void 0);
_.V([_.n(),_.z("design:type",Object)],u$.prototype,"tileLottiePlayerProps",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"tileLottieAnimationRef",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"backgroundLottiePlayerProps",void 0);_.V([_.n(),_.z("design:type",Object)],u$.prototype,"backgroundLottieAnimationRef",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],u$.prototype,"useBiggerShowcaseImage",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],u$.prototype,"isHideEnclosingAction",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u$.prototype,"dataChanged",null);_.V([_.bH("isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u$.prototype,"themeChanged",null);
_.V([_.bH("currentColorData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u$.prototype,"currentColorChanged",null);_.V([_.yj({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],u$);
_.G(u$,"ytd-statement-banner-renderer",function(){if(kxe!==void 0)return kxe;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return kxe=D},{mode:1});var ubc;var Q8=function(){var D=_.w.apply(this,arguments)||this;D.isSearch=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.disableMouseScroll=!0;D.useFloorScrolling=!0;return D};
_.h(Q8,_.w);Q8.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.I7("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.I7("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Q8.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Q8.prototype.onDataChanged=Q8.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Q8.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Q8.prototype,"hideShelfHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Q8.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Object)],Q8.prototype,"disableMouseScroll",void 0);_.V([_.n(),_.z("design:type",Object)],Q8.prototype,"useFloorScrolling",void 0);_.V([_.n(),_.z("design:type",Object)],Q8.prototype,"data",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q8.prototype,"onDataChanged",null);
_.V([_.yj({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Q8);
_.G(Q8,"ytd-reel-shelf-renderer",function(){if(ubc!==void 0)return ubc;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ubc=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var Q0J;var BG4;BG4=_.q8(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.bp4=_.kX(BG4);var rHc=_.F(function(D){var C=D.data;D=D.useSmallFont;var X={},c={};return _.A("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.A(_.v,{cond:function(){return C().favicon},
then:function(W){return _.A(_.M_,{data:W,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.A("div",{class:"ytChannelExternalLinkViewModelContainer"},_.A(_.QG,{text:function(){return C().title},
className:_.g$("ytChannelExternalLinkViewModelTitle",(X.ytChannelExternalLinkViewModelTitleSmallFont=D,X)),ellipsisTruncate:!0,userInput:!0}),_.A(_.QG,{text:function(){return C().link},
className:_.g$("ytChannelExternalLinkViewModelLink",(c.ytChannelExternalLinkViewModelLinkSmallFont=D,c)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"bd");
rHc.idomCompat=!0;_.CI(rHc,"yt-channel-external-link-view-model",{props:{data:_.Bm,useSmallFont:_.Bm}});_.sI("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var B3=function(){var D=_.w.apply(this,arguments)||this;D.revealButtonClass="button";D.businessEmailDisplayState="HIDE_SECTION";return D};
_.h(B3,_.w);_.S=B3.prototype;_.S.refit=function(){var D=this;_.TA(function(){_.Ct(D.hostElement,"yt-refit-popups-action")});
_.A0(this,function(){_.Ct(D.hostElement,"yt-refit-popups-action")})};
_.S.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.yy(_.bp4),this.businessEmailDisplayState="CAPTCHA")};
_.S.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"};
_.S.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.S.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"}}}};
_.S.computeEmailHref=function(D){return"mailto:"+D};
_.S.computeSafeUrl=function(D){if(D)return _.Hv(D)};
_.S.linkEndpoint=function(D){return _.r(D.onTap,_.N_)};
_.S.linkEndpointToHref=function(D){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(D))};
_.S.onYtServiceRequestCompleted=function(D){var C;if((C=D.detail.data)==null?0:C.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var X;if((X=D.detail.data)==null?0:X.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.S.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var D=this.JSC$16582_captchaTextarea.value;if(D){D={recaptcha_response_token:D,channel_id:this.metadata.channelId};var C=_.r(this.metadata.onBusinessEmailRevealClickCommand,_.N_);C&&this.ytComponentBehavior.resolveCommand(C,{form:D})}}};
_.S.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.$a.Object.defineProperties(B3.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var D;return _.r((D=this.data)==null?void 0:D.metadata,vy4)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.r(this.metadata.businessEmailRevealButton,_.is)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var D=new URL(this.metadata.canonicalChannelUrl);return D.host+D.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.r(this.metadata.learnMoreOnTap,_.N_)}}});
B3.prototype.onYtServiceRequestCompleted=B3.prototype.onYtServiceRequestCompleted;B3.prototype.businessEmailMetadataChanged=B3.prototype.businessEmailMetadataChanged;B3.prototype.refit=B3.prototype.refit;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],B3.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#g-recaptcha-response"),_.z("design:type",HTMLTextAreaElement)],B3.prototype,"JSC$16582_captchaTextarea",void 0);_.V([_.n(),_.z("design:type",Object)],B3.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],B3.prototype,"revealButtonClass",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],B3.prototype,"metadata",null);
_.V([_.e("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],B3.prototype,"revealButton",null);_.V([_.e("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],B3.prototype,"channelDisplayUrl",null);_.V([_.bH("metadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B3.prototype,"refit",null);_.V([_.e("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],B3.prototype,"formattedDescription",null);
_.V([_.e("metadata","learnMoreCommand"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],B3.prototype,"shouldRendereVerifiedPhoneStatus",null);_.V([_.e("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],B3.prototype,"learnMoreCommand",null);_.V([_.n(),_.z("design:type",String)],B3.prototype,"businessEmailDisplayState",void 0);_.V([_.n(),_.z("design:type",String)],B3.prototype,"businessEmail",void 0);
_.V([_.n(),_.z("design:type",String)],B3.prototype,"businessEmailErrorMessage",void 0);_.V([_.bH("metadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B3.prototype,"businessEmailMetadataChanged",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],B3.prototype,"onYtServiceRequestCompleted",null);
_.V([_.yj({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],B3);
_.G(B3,"ytd-about-channel-renderer",function(){if(Q0J!==void 0)return Q0J;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Q0J=D},{mode:1});var K4c;var b$=function(){return _.w.apply(this,arguments)||this};
_.h(b$,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],b$.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],b$);
_.G(b$,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(K4c!==void 0)return K4c;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return K4c=D},{mode:1});var hud;var rM=function(){return _.w.apply(this,arguments)||this};
_.h(rM,_.w);rM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rM.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],rM.prototype,"aligment",void 0);_.V([_.yj({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],rM);
_.G(rM,"ytd-channel-list-sub-menu-renderer",function(){if(hud!==void 0)return hud;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return hud=
D},{mode:1});var xEd;var KE=function(){return _.w.apply(this,arguments)||this};
_.h(KE,_.w);KE.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],KE.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],KE);
_.G(KE,"ytd-channel-sub-menu-renderer",function(){if(xEd!==void 0)return xEd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return xEd=D},{mode:1});var L4M;var s0x;var hN=function(){var D=_.w.apply(this,arguments)||this;D.isCompact=!1;return D};
_.h(hN,_.w);_.$a.Object.defineProperties(hN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var D,C;return((C=_.r((D=this.data)==null?void 0:D.endpoint,_.oX))==null?void 0:C.target)==="TARGET_NEW_WINDOW"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],hN.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hN.prototype,"isCompact",void 0);_.V([_.e("isCompact"),_.z("design:type",Number),_.z("design:paramtypes",[])],hN.prototype,"thumbnailWidth",null);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hN.prototype,"openNewWindow",null);_.V([_.yj({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],hN);
_.G(hN,"ytd-media-lockup-renderer",function(){if(s0x!==void 0)return s0x;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return s0x=D},{mode:1});var mEd;var xB=function(){return _.w.apply(this,arguments)||this};
_.h(xB,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],xB.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xB.prototype,"data",void 0);_.V([_.yj({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],xB);
_.G(xB,"ytd-structured-description-channel-lockup-renderer",function(){if(mEd!==void 0)return mEd;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return mEd=D},{mode:1});var eug;var LE=function(){var D=_.w.apply(this,arguments)||this;D.isCompact=!1;D.collectionsStackColor=_.b("modernize_structured_description_playlist_lockups_v2");return D};
_.h(LE,_.w);LE.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:_.b("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.$a.Object.defineProperties(LE.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W,p;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(D=this.data)==null?void 0:(C=D.thumbnail)==null?void 0:C.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(X=this.data)==null?void 0:(c=X.thumbnail)==null?void 0:c.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(W=this.data)==null?void 0:(p=W.thumbnail)==null?
void 0:p.vibrantColorPalette:void 0}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],LE.prototype,"componentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],LE.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],LE.prototype,"showSidePanelThumbnailOverlay",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],LE.prototype,"isCompact",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],LE.prototype,"collectionsStackColor",void 0);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],LE.prototype,"twoLineTitle",null);_.V([_.e("data","collectionsStackColor"),_.z("design:type",Object),_.z("design:paramtypes",[])],LE.prototype,"collectionStack",null);
_.V([_.yj({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],LE);
_.G(LE,"ytd-structured-description-playlist-lockup-renderer",function(){if(eug!==void 0)return eug;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return eug=D},{mode:1});var EsM;var sx=function(){return _.w.apply(this,arguments)||this};
_.h(sx,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],sx.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sx.prototype,"data",void 0);_.V([_.yj({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],sx);
_.G(sx,"ytd-structured-description-video-lockup-renderer",function(){if(EsM!==void 0)return EsM;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return EsM=D},{mode:2});var mA=function(){return _.w.apply(this,arguments)||this};
_.h(mA,_.w);
mA.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],mA.prototype,"data",void 0);_.V([_.yj({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],mA);
_.G(mA,"ytd-compact-infocard-renderer",function(){if(L4M!==void 0)return L4M;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return L4M=D},{mode:1});var tiJ;var e3=function(){return _.w.apply(this,arguments)||this};
_.h(e3,_.w);e3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.$a.Object.defineProperties(e3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],e3.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],e3.prototype,"ytdReduxBehavior",void 0);_.V([_.n({selector:_.Y_}),_.z("design:type",Object)],e3.prototype,"isGridViewEnabled",void 0);
_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],e3.prototype,"watchFeedBigThumbs",null);_.V([_.e("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"168"}),_.z("design:type",String),_.z("design:paramtypes",[])],e3.prototype,"thumbnailWidth",null);_.V([_.e("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"94"}),_.z("design:type",String),_.z("design:paramtypes",[])],e3.prototype,"customThumbnailSize",null);
_.V([_.n(),_.z("design:type",Object)],e3.prototype,"data",void 0);_.V([_.yj({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],e3);
_.G(e3,"ytd-compact-playlist-renderer",function(){if(tiJ!==void 0)return tiJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tiJ=D},{mode:1});var NGd;var Ex=function(){var D=_.w.apply(this,arguments)||this;D.roundedContainer=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.h(Ex,_.w);_.S=Ex.prototype;_.S.attached=function(){this.requestElementsPerRow()};
_.S.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"}}}};
_.S.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.S.computeViewStyle=function(D){return D.style?D.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.S.onUpdateElementsPerRowAction=function(D){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&D===1};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
Ex.prototype.dataChanged=Ex.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],Ex.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ex.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Ex.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Ex.prototype,"hideThumbnail",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.z("design:type",String)],Ex.prototype,"viewStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ex.prototype,"roundedContainer",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ex.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Ex);
_.G(Ex,"ytd-compact-promoted-item-renderer",function(){if(NGd!==void 0)return NGd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return NGd=D},{mode:1});var Yi5;var tN=function(){return _.w.apply(this,arguments)||this};
_.h(tN,_.w);tN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
tN.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
tN.prototype.onYtNavigate=function(D,C){var X=this;if(C.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",C)){var c=this.get("watchEndpoint.videoId",C.endpoint),W=_.Ct(this.hostElement,"yt-get-current-video-id-action")[0];_.b("kevlar_mix_handle_first_endpoint_different")&&c&&W&&c!==W||(D.stopPropagation(),_.Xv().getPlayerPromise().then(function(p){if(p.getPlayerState()===0&&X.data.secondaryNavigationEndpoint)var g=X.data.secondaryNavigationEndpoint;else{g=
Object.assign({},C.endpoint);var a=_.r(g.commandMetadata,_.ge);a&&(p=Math.floor(p.getCurrentTime()),a.url=_.aQ(a.url,{t:p}),!_.b("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(a=_.r(g,_.TC)))&&(a.startTimeSeconds=p)}_.lE(X.hostElement,"yt-navigate",{endpoint:g})}))}};
_.$a.Object.defineProperties(tN.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W,p;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(C=D.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(X=this.data)==null?void 0:(c=X.thumbnail)==null?void 0:c.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(p=W.thumbnail)==null?void 0:p.darkColorPalette,experimentEnabled:!0}}}});
tN.prototype.onYtNavigate=tN.prototype.onYtNavigate;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],tN.prototype,"ytEndpointBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],tN.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.B9),_.z("design:type",Object)],tN.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],tN.prototype,"ytdReduxBehavior",void 0);_.V([_.n({selector:_.Y_}),_.z("design:type",Object)],tN.prototype,"isGridViewEnabled",void 0);_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tN.prototype,"watchFeedBigThumbs",null);
_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],tN.prototype,"thumbnailWidth",null);_.V([_.n(),_.z("design:type",Object)],tN.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],tN.prototype,"collectionStack",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],tN.prototype,"onYtNavigate",null);
_.V([_.yj({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],tN);
_.G(tN,"ytd-compact-radio-renderer",function(){if(Yi5!==void 0)return Yi5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Yi5=D},{mode:1});var yHx;var NB=function(){return _.w.apply(this,arguments)||this};
_.h(NB,_.w);NB.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
NB.prototype.computeRendererStyle=function(D){return D.style?D.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.V([_.n(),_.z("design:type",Object)],NB.prototype,"data",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],NB.prototype,"rendererBehavior",void 0);_.V([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],NB.prototype,"rendererStyle",void 0);_.V([_.yj({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],NB);
_.G(NB,"ytd-compact-text-promo-renderer",function(){if(yHx!==void 0)return yHx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return yHx=D},{mode:1});var nsN;var YB=function(){var D=_.w.apply(this,arguments)||this;D.isShortsStyle=!1;return D};
_.h(YB,_.w);_.S=YB.prototype;_.S.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"}}}};
_.S.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.lE(this.hostElement,"yt-disable-lockup-interaction"):_.lE(this.hostElement,"yt-enable-lockup-interaction"))};
_.S.isMetaBlockEmpty=function(D){return!D||!D.longBylineText&&!D.shortBylineText&&!D.shortViewCountText&&!D.viewCountText};
_.S.computeHasOneLineTitle=function(D){return this.forceOneLineTitle||!(D==null||!D.buttons)};
_.S.computeDisableInteraction=function(){var D;return!((D=this.data)==null?0:D.navigationEndpoint)};
_.S.hasSingularTopStandaloneBadge=function(){var D;return!((D=this.data)==null||!D.topStandaloneBadge)};
_.$a.Object.defineProperties(YB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("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 D;return this.hasSingularTopStandaloneBadge()?[(D=this.data)==null?void 0:D.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var D;return this.shouldShowTopBadges?((D=this.data)==null?void 0:D.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
YB.prototype.disableInteractionChanged=YB.prototype.disableInteractionChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],YB.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],YB.prototype,"ytdLockupBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],YB.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.z("design:type",Boolean)],YB.prototype,"metaBlockEmpty",void 0);_.V([_.n({selector:_.Y_}),_.z("design:type",Object)],YB.prototype,"isGridViewEnabled",void 0);_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YB.prototype,"watchFeedBigThumbs",null);
_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],YB.prototype,"thumbnailWidth",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],YB.prototype,"isShortsStyle",void 0);_.V([_.n(),_.z("design:type",Object)],YB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.z("design:type",Boolean)],YB.prototype,"hasOneLineTitle",void 0);
_.V([_.n(),_.z("design:type",Boolean)],YB.prototype,"hideThumbnail",void 0);_.V([_.n(),_.z("design:type",Boolean)],YB.prototype,"forceOneLineTitle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.z("design:type",Boolean)],YB.prototype,"disableInteraction",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],YB.prototype,"musicMetadataVideoLockup",void 0);
_.V([_.vr("disableInteraction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YB.prototype,"disableInteractionChanged",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YB.prototype,"shouldShowTopBadges",null);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],YB.prototype,"topBadges",null);
_.V([_.e("shouldShowTopBadges","data"),_.z("design:type",Array),_.z("design:paramtypes",[])],YB.prototype,"inlineMetadataBadges",null);_.V([_.e("shouldShowTopBadges"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],YB.prototype,"shouldShowBadgesBelowMetadata",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],YB.prototype,"compactTitleClass",null);_.V([_.yj({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],YB);
_.G(YB,"ytd-compact-video-renderer",function(){if(nsN!==void 0)return nsN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return nsN=D},{mode:_.Wc("kevlar_poly_si_batch_j067")?1:2});var wig;_.sI("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var y8=function(){return _.w.apply(this,arguments)||this};
_.h(y8,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],y8.prototype,"data",void 0);_.V([_.yj({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],y8);
_.G(y8,"ytd-counterfactual-renderer",function(){if(wig!==void 0)return wig;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return wig=D},{mode:1});var F4N;var nE=function(){var D=_.w.apply(this,arguments)||this;D.hidden=!1;return D};
_.h(nE,_.w);nE.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.iX().resolve(_.uX).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
nE.prototype.computeHidden=function(D){return!!D};
_.$a.Object.defineProperties(nE.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nE.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.z("design:type",Object)],nE.prototype,"hidden",void 0);_.V([_.e("data.label"),_.z("design:type",String),_.z("design:paramtypes",[])],nE.prototype,"label",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],nE.prototype,"value",null);
_.V([_.yj({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],nE);
_.G(nE,"ytd-dropdown-item-renderer",function(){if(F4N!==void 0)return F4N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return F4N=D},{mode:1});var Zp5;var Gx5;var wM=function(){return _.w.apply(this,arguments)||this};
_.h(wM,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wM.prototype,"data",void 0);_.V([_.n({computed:"getSimpleString(data.label)"}),_.z("design:type",String)],wM.prototype,"label",void 0);_.V([_.yj({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],wM);
_.G(wM,"ytd-navigation-dropdown-item-renderer",function(){if(Gx5!==void 0)return Gx5;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Gx5=D},{mode:1});var FR=function(){var D=_.w.apply(this,arguments)||this;D.disabled=!1;D.value="";D.noLabelFloat=!1;D.noUnderline=!1;D.usePrimaryColor=!1;D.hasBackground=!1;D.verticalAlign="top";D.autosize=!1;D.minAutosizeWidth=100;D.autosizeFont="14px Roboto";return D};
_.h(FR,_.w);_.S=FR.prototype;_.S.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"}}}};
_.S.open=function(){this.inputEl.open()};
_.S.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.S.dataChanged=function(){this.reset()};
_.S.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("value-changed",this.value))};
_.S.stopPropagation=function(D){D.stopPropagation()};
_.S.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var D=this.canvas.getContext("2d");D&&(D.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(D.measureText(this.inputEl.value).width)+24)+"px")}};
_.S.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var D=0,C=this.data.entries.length;D<C;D++){var X=this.data.entries[D],c;for(c in X)if(X.hasOwnProperty(c)){var W=X[c];if("isSelected"in W&&W.isSelected)return"stringValue"in W?W.stringValue||"":"int32Value"in W?W.int32Value||0:0}}return null};
_.S.updateValueFromBinding=function(D){this.value=D.detail.value};
_.$a.Object.defineProperties(FR.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 D=0,C=this.data.entries.length;D<C;D++){var X=this.data.entries[D],c;for(c in X)if(X.hasOwnProperty(c)){var W=X[c];if("isSelected"in W&&W.isSelected&&"label"in W)return this.ytRendererBehavior.getSimpleString(W.label)}}return null}}});
FR.prototype.autoSizeLabel=FR.prototype.autoSizeLabel;FR.prototype.stopPropagation=FR.prototype.stopPropagation;FR.prototype.valueChangedForBinding=FR.prototype.valueChangedForBinding;FR.prototype.dataChanged=FR.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],FR.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],FR.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],FR.prototype,"disabled",void 0);_.V([_.n(),_.z("design:type",Object)],FR.prototype,"value",void 0);_.V([_.n(),_.z("design:type",Object)],FR.prototype,"noLabelFloat",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],FR.prototype,"noUnderline",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],FR.prototype,"theme",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],FR.prototype,"usePrimaryColor",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],FR.prototype,"hasBackground",void 0);_.V([_.n(),_.z("design:type",Object)],FR.prototype,"verticalAlign",void 0);_.V([_.n(),_.z("design:type",Object)],FR.prototype,"autosize",void 0);_.V([_.n(),_.z("design:type",Object)],FR.prototype,"minAutosizeWidth",void 0);_.V([_.n(),_.z("design:type",Object)],FR.prototype,"autosizeFont",void 0);
_.V([_.kn("#entries"),_.z("design:type",Object)],FR.prototype,"entries",void 0);_.V([_.kn("#input"),_.z("design:type",Object)],FR.prototype,"inputEl",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"dataChanged",null);_.V([_.bH("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"valueChangedForBinding",null);
_.V([_.$n("iron-overlay-opened"),_.$n("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],FR.prototype,"stopPropagation",null);_.V([_.$n("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FR.prototype,"autoSizeLabel",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],FR.prototype,"label",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],FR);
_.G(FR,"ytd-dropdown-renderer",function(){if(Zp5!==void 0)return Zp5;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Zp5=D},{mode:1});var ViN;var ZO=function(){var D=_.w.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.h(ZO,_.w);ZO.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"}}}};
ZO.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
ZO.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
ZO.prototype.computeViewAllHidden=function(D,C){return D||!C.viewAllEndpoint};
ZO.prototype.fillRestIfNoShowMore=ZO.prototype.fillRestIfNoShowMore;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],ZO.prototype,"ytLazyListBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ZO.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ZO.prototype,"isConstrainedList",void 0);_.V([_.bH("data","canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZO.prototype,"fillRestIfNoShowMore",null);_.V([_.yj({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],ZO);
_.G(ZO,"ytd-expanded-shelf-contents-renderer",function(){if(ViN!==void 0)return ViN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ViN=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var TGe;var Gf=function(){return _.w.apply(this,arguments)||this};
_.h(Gf,_.w);Gf.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Gf.prototype,"data",void 0);_.V([_.yj({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Gf);
_.G(Gf,"ytd-feed-channel-filter-header-renderer",function(){if(TGe!==void 0)return TGe;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return TGe=D},{mode:1});var Hpc;var JHx;var zub;var V8=function(){return _.w.apply(this,arguments)||this};
_.h(V8,_.w);_.S=V8.prototype;_.S.onClick=function(D){var C,X=(C=this.data)==null?void 0:C.sectionEndpoint;!_.d$(_.Mz(D),this.hostElement,["A".toString()])&&X&&_.lE(this.hostElement,"yt-navigate",{endpoint:X})};
_.S.computeHasSectionEndpoint=function(D){return(D==null?void 0:D.sectionEndpoint)!==void 0};
_.S.computeShowHeaderAsLink=function(D){return(D==null?void 0:D.header)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0};
_.S.computeShowSubheaderAsLink=function(D){return(D==null?void 0:D.subheader)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0&&(D==null?void 0:D.header)===void 0};
_.S.getHeaderAsLinkClass=function(D){var C=[],X;(D==null?0:(X=D.headerIcon)==null?0:X.iconType)&&C.push("header-link-active");return C.join(" ")};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],V8.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],V8.prototype,"data",void 0);
_.V([_.n({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],V8.prototype,"hasSectionEndpoint",void 0);_.V([_.n({computed:"computeShowHeaderAsLink(data)"}),_.z("design:type",Boolean)],V8.prototype,"showHeaderAsLink",void 0);_.V([_.n({computed:"computeShowSubheaderAsLink(data)"}),_.z("design:type",Boolean)],V8.prototype,"showSubheaderAsLink",void 0);_.V([_.yj({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],V8);
_.G(V8,"ytd-medical-panel-section-renderer",function(){if(zub!==void 0)return zub;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return zub=D},{mode:1});var Tf=function(){var D=_.w.apply(this,arguments)||this;D.isExpanded=!1;D.roundedContainer=!0;D.skipRoundingTop=!1;D.toggleExpandableSection=function(){D.isExpanded=!D.isExpanded};
return D};
_.h(Tf,_.w);
Tf.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]]"}}}}}};
Tf.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Tf.prototype.dataChanged=Tf.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Tf.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Tf.prototype,"isExpanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Tf.prototype,"roundedContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Tf.prototype,"skipRoundingTop",void 0);_.V([_.n(),_.z("design:type",Object)],Tf.prototype,"toggleExpandableSection",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tf.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Tf);
_.G(Tf,"ytd-medical-panel-content-renderer",function(){if(JHx!==void 0)return JHx;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return JHx=D},{mode:1});_.sI("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var H3=function(){var D=_.w.apply(this,arguments)||this;D.roundedContainer=!0;D.extractOverlay=!1;D.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");D.hasTitle=!1;D.linkIcon="OPEN_IN_NEW";D.isDismissed=!1;return D};
_.h(H3,_.w);H3.prototype.onOverlayConditionsChange=function(){var D=_.SY(this.hostElement).querySelector("ytd-info-panel-content-renderer");D&&(D.set("extractOverlay",this.extractOverlay),D.set("roundedContainer",this.roundedContainer))};
H3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
H3.prototype.computeHasTitle=function(D){return!(D==null||!D.title)};
H3.prototype.onClick=function(D){var C,X=(C=this.data)==null?void 0:C.headerEndpoint;!_.d$(_.Mz(D),this.hostElement,["BUTTON".toString()])&&X&&this.ytComponentBehavior.resolveCommand(X)};
_.$a.Object.defineProperties(H3.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 D;return((D=this.data)==null?void 0:D.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.disableBottomDivider)||!((C=this.data)==null?0:C.title)}}});
H3.prototype.onOverlayConditionsChange=H3.prototype.onOverlayConditionsChange;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],H3.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],H3.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],H3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],H3.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],H3.prototype,"extractOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],H3.prototype,"amsterdamEnabled",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.z("design:type",Object)],H3.prototype,"hasTitle",void 0);
_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.background"),_.z("design:type",Object),_.z("design:paramtypes",[])],H3.prototype,"background",null);_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.titleStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],H3.prototype,"titleStyle",null);
_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.e("data.titleStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],H3.prototype,"showLinkIcon",null);_.V([_.n(),_.z("design:type",String)],H3.prototype,"linkIcon",void 0);_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],H3.prototype,"hideDivider",null);
_.V([_.n({selectorArgs:["data.dismissStateEntityKey"],selector:function(D,C){D=_.aI(D.entities,"dismissState",C);return(D==null?void 0:D.isDismissed)||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.z("design:type",Object)],H3.prototype,"isDismissed",void 0);_.V([_.vr("roundedContainer","extractOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],H3.prototype,"onOverlayConditionsChange",null);_.V([_.yj({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],H3);
_.G(H3,"ytd-info-panel-container-renderer",function(){if(Hpc!==void 0)return Hpc;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Hpc=D},{mode:1});var j0b;_.sI("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var JN=function(){return _.w.apply(this,arguments)||this};
_.h(JN,_.w);JN.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
JN.prototype.computeStyle=function(D){return D?D:""};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],JN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.z("design:type",String)],JN.prototype,"titleStyle",void 0);
_.V([_.yj({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],JN);
_.o3()(JN,"ytd-item-section-header-renderer",function(){if(j0b===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);j0b=D}D=j0b;return D},{allowedProps:["data"],
mode:1});var Mif;var qib,fvc=function(){return qib!==void 0?qib:qib=document.createElement("template")};
document.head.appendChild(fvc().content);var dEg;_.zf=new _.P6("VOTING_ANIMATION_CONTROLLER_TOKEN");var lvd=_.F(function(D){var C=D.data;var X=_.aX("div"),c=_.aX("div");D=_.U(_.Li("VOTE_STATUS_NONE",void 0,"YPH5mf"));var W=D.next().value,p=D.next().value,g=_.ku(QY3,function(){var Q;return(Q=C())==null?void 0:Q.entityKey}),a=_.b("web_enable_voting_animation")||_.b("enable_music_web_cairo_voting_animation");
_.JU(function(){var Q;((Q=C().initialState)==null?0:Q.status)&&p(C().initialState.status)});
var O=function(){var Q,B,K=(B=(Q=C().initialState)==null?void 0:Q.votes)!=null?B:0,L;Q=(L=C().initialState)==null?void 0:L.status;return Q==="VOTE_STATUS_UPVOTED"?K-1:Q==="VOTE_STATUS_DOWNVOTED"?K+1:K},P=function(){return W()==="VOTE_STATUS_UPVOTED"?O()+1:W()==="VOTE_STATUS_DOWNVOTED"?O()-1:O()},k=function(Q){var B=Q?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
p(B);var K=P(),L=_.iX().resolve(_.vK(_.zf)),t=g();t&&(Q&&(t==null?0:t.upvoteDefaultButtonOnTap)?_.FV(t.upvoteDefaultButtonOnTap,{form:{element:X.value},disableClickTracking:!0}):(t==null?0:t.upvoteToggledButtonOnTap)&&_.FV(t.upvoteToggledButtonOnTap,{form:{element:X.value},disableClickTracking:!0}));var Y;Q=(Y=t==null?void 0:t.enableOptimisticReordering)!=null?Y:C().enableOptimisticReordering;a&&L&&C().itemId&&Q&&Ru5(L,C().itemId,K,B)},u=function(Q){var B=Q?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
p(B);var K=P(),L=_.iX().resolve(_.vK(_.zf)),t=g();t&&(Q&&(t==null?0:t.downvoteDefaultButtonOnTap)?_.FV(t.downvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(t==null?0:t.downvoteToggledButtonOnTap)&&_.FV(t.downvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var Y;Q=(Y=t==null?void 0:t.enableOptimisticReordering)!=null?Y:C().enableOptimisticReordering;a&&L&&C().itemId&&Q&&Ru5(L,C().itemId,K,B)};
D={};D=_.g$("ytVotingViewModelVoteCount",(D.ytVotingViewModelVoteCountDisabled=function(){return C().isDisabled},D));
return _.A("voting-view-model",{class:"ytVotingViewModelHost"},_.A("div",{el:X},_.A(_.BX,{data:function(){var Q=_.r(C().upvoteButton,_.us);return{toggleButtonViewModel:Object.assign({},Q,{isToggled:W()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Q){return _.A(_.o1,{data:Q.data,
onToggle:k})}})),_.A("div",{class:D},function(){var Q,B,K;
return W()==="VOTE_STATUS_UPVOTED"?(Q=C().initialState)==null?void 0:Q.compactVotesUpvoted:W()==="VOTE_STATUS_DOWNVOTED"?(B=C().initialState)==null?void 0:B.compactVotesDownvoted:(K=C().initialState)==null?void 0:K.compactVotes}),_.A("div",{el:c},_.A(_.BX,{data:function(){var Q=_.r(C().downvoteButton,_.us);
return{toggleButtonViewModel:Object.assign({},Q,{isToggled:W()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Q){return _.A(_.o1,{data:Q.data,
onToggle:u})}})))},"cd");_.CI(_.F(function(D){var C=D.data;return _.A("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.A("div",{class:_.g$("ytEngagementBarViewModelEngagementBarWrapper",D.className)},_.A(_.BX,{data:function(){return C().actions}},{votingViewModel:lvd})))},"dd"),"engagement-bar-view-model",{props:{data:_.Bm,
className:_.Bm}});var j3=function(){var D=_.w.apply(this,arguments)||this;D.playlistVotingAnimationEnabled=_.b("web_enable_voting_animation");D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;return D};
_.h(j3,_.w);_.S=j3.prototype;_.S.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"}}}};
_.S.canReorderChanged=function(){this.persistentDragHandle=_.b("kevlar_playlist_drag_handles")&&this.canReorder};
_.S.onDrag=function(){if(this.thumbnail){var D=_.SY(this.thumbnail).querySelector("yt-image");D&&(D.shouldRenderLazy=!1)}};
_.S.onMenuOverlayChanged=function(D,C){this.menuOpened=C};
_.S.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.S.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.S.onContentsTap=function(D){var C,X=(C=this.data)==null?void 0:C.serviceEndpoints;if(X&&X.length===1&&_.r(X[0],B9J)&&!_.d$(_.Mz(D),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(X[0]);else{var c;(C=(c=this.data)==null?void 0:c.navigationEndpoint)&&_.b("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?DSf(_.iX().resolve(_.wB),C):(_.qg().playlistSuggestionsShelfActivation=
!0,_.Cd5(_.iX().resolve(_.wB),C)):C&&!_.d$(_.Mz(D),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.b("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.lE(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C))}};
_.S.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeThumbnailWidth=function(D){return D==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.S.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=Nyn(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))}};
_.S.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.S.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.S.dataChanged=function(){if(this.data){var D,C,X,c=((D=this.downloadRenderData)==null?void 0:D.badges)&&((C=this.downloadRenderData)==null?void 0:C.badges)!==((X=this.data)==null?void 0:X.badges),W,p,g;D=((W=this.downloadRenderData)==null?void 0:W.thumbnailOverlays)&&((p=this.downloadRenderData)==null?void 0:p.thumbnailOverlays)!==((g=this.data)==null?void 0:g.thumbnailOverlays);(!this.downloadRenderData||c||D)&&this.downloadStateChanged()}};
_.S.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var D,C,X=(D=this.data.menu)==null?void 0:(C=D.menuRenderer)==null?void 0:C.items;if(X)for(D=_.U(X),C=D.next();!C.done;C=D.next())if(C=C.value,X=void 0,_.r((X=C.menuServiceItemRenderer)==null?void 0:X.serviceEndpoint,_.gX)){var c=X=void 0,W=void 0;C=(X=C)==null?void 0:(c=X.menuServiceItemRenderer)==null?void 0:(W=c.serviceEndpoint)==null?void 0:W.playlistEditEndpoint;W=c=void 0;if(X=(c=C)==null?void 0:(W=c.actions)==null?void 0:
W[0])c=void 0,X.setVideoId=(c=this.data)==null?void 0:c.setVideoId;W=c=X=void 0;if(C=(X=C)==null?void 0:(c=X.clientActions)==null?void 0:(W=c[0])==null?void 0:W.playlistRemoveVideosAction)X=void 0,C.setVideoIds=[(X=this.data)==null?void 0:X.setVideoId]}}};
_.$a.Object.defineProperties(j3.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
j3.prototype.setVideoIdChanged=j3.prototype.setVideoIdChanged;j3.prototype.dataChanged=j3.prototype.dataChanged;j3.prototype.downloadStateChanged=j3.prototype.downloadStateChanged;j3.prototype.onMenuOverlayChanged=j3.prototype.onMenuOverlayChanged;j3.prototype.canReorderChanged=j3.prototype.canReorderChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],j3.prototype,"ytdReduxBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],j3.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],j3.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],j3.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],j3.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],j3.prototype,"canReorder",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],j3.prototype,"menuOpened",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],j3.prototype,"handleIsHovered",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],j3.prototype,"persistentDragHandle",void 0);_.V([_.n(),_.z("design:type",Object)],j3.prototype,"downloadRenderData",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],j3.prototype,"styleType",void 0);_.V([_.n({computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],j3.prototype,"thumbnailWidth",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],j3.prototype,"isDownloads",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],j3.prototype,"playlistVotingAnimationEnabled",void 0);
_.V([_.n({selector:wJ,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],j3.prototype,"downloadProgress",void 0);_.V([_.n(),_.z("design:type",Number)],j3.prototype,"relativeDateReference",void 0);_.V([_.n({selector:_.YP,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],j3.prototype,"transferState",void 0);_.V([_.n({selector:DM5,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],j3.prototype,"downloadState",void 0);
_.V([_.n({selector:FVZ,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],j3.prototype,"offlinePolicyAction",void 0);_.V([_.n({selector:Z4t,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],j3.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.V([_.n({selector:VO5,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],j3.prototype,"entityInfo",void 0);_.V([_.n({selector:_.E1}),_.z("design:type",Boolean)],j3.prototype,"miniplayerIsActive",void 0);
_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],j3.prototype,"playlistVideoId",null);_.V([_.kn("#thumbnail"),_.z("design:type",Object)],j3.prototype,"thumbnail",void 0);_.V([_.bH("canReorder"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j3.prototype,"canReorderChanged",null);
_.V([_.$n("yt-menu-overlay-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Boolean]),_.z("design:returntype")],j3.prototype,"onMenuOverlayChanged",null);_.V([_.bH("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j3.prototype,"downloadStateChanged",null);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j3.prototype,"dataChanged",null);_.V([_.bH("data.setVideoId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j3.prototype,"setVideoIdChanged",null);_.V([_.yj({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],j3);
_.G(j3,"ytd-playlist-video-renderer",function(){if(dEg!==void 0)return dEg;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);D.content.insertBefore(fvc().content.cloneNode(!0),D.content.firstChild);return dEg=D},{mode:1});var XyC;var MB=function(){return _.w.apply(this,arguments)||this};
_.h(MB,_.w);_.V([_.n(),_.z("design:type",Object)],MB.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],MB.prototype,"rendererBehavior",void 0);_.V([_.yj({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],MB);
_.G(MB,"ytd-premium-browse-footer-renderer",function(){if(XyC!==void 0)return XyC;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return XyC=D},{mode:1});var cVx;var qB=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.h(qB,_.w);_.S=qB.prototype;_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.handleDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.computeHeaderLogoThumbnail=function(D,C){if(D)return C?D.darkLogo:D.lightLogo};
_.S.computeHeaderLogoHeight=function(D,C){var X,c,W;return(D=(X=this.computeHeaderLogoThumbnail(D,C))==null?void 0:(c=X.thumbnails)==null?void 0:(W=c[0])==null?void 0:W.height)&&D%31===0?"31":"24"};
_.S.computeHeaderLogoMarginBottom=function(D,C){return this.computeHeaderLogoHeight(D,C)==="24"?"0":"-7"};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],qB.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qB.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],qB.prototype,"isDarkTheme",void 0);_.V([_.n({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.z("design:type",Object)],qB.prototype,"themeLogo",void 0);
_.V([_.n({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.z("design:type",String)],qB.prototype,"logoHeight",void 0);_.V([_.n({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.z("design:type",String)],qB.prototype,"logoMarginBottom",void 0);_.V([_.yj({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],qB);
_.G(qB,"ytd-primetime-promo-header-renderer",function(){if(cVx!==void 0)return cVx;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return cVx=D},{mode:1});var oDN;_.fE=_.F(function(D){var C=D.className;var X=D.data;var c=D.isOverlay;var W=D.maxLinesOverride;var p=D.useMediumText;var g=function(){return X().alwaysShowTruncationText},a=function(){return X().truncationText},O=function(){return p!==void 0&&p()?"medium":"small"},P=function(){return c!==void 0&&c()?"overlay":"default"},k=function(){var K,L;
return(L=(K=_.r(X().rendererContext,_.by))==null?void 0:K.label)!=null?L:""};
D=_.U(_.Li(!1,void 0,"llBUm"));var u=D.next().value,Q=D.next().value;D=_.I_(function(){X().expandOnTap&&Q(!u());return!1});
var B={};return _.A("yt-description-preview-view-model",{el:_.fb(_.NH(function(){return X().rendererContext})),
class:_.g$("ytDescriptionPreviewViewModelHost",C,(B.ytDescriptionPreviewViewModelClickable=function(){var K;return!((K=_.r(X().rendererContext,_.Yu))==null||!K.onTap)},B.ytDescriptionPreviewViewModelIsOverlay=c,B)),
"on:click":D},_.A(_.v,{cond:function(){return X().description},
then:function(K){return _.A(_.v,{cond:u,then:function(){var L={};return _.A("div",{class:_.g$("ytDescriptionPreviewViewModelDescription",(L.ytDescriptionPreviewViewModelDescriptionMediumText=p,L))},_.A(_.QG,{text:K}))},
else:function(){return _.A(Wgg,{text:K,alwaysShowTruncationText:g,truncationText:a,maxLines:function(){var L;return(L=W==null?void 0:W())!=null?L:X().maxLines},
textStyle:P,accessibilityLabel:k,textSize:O})}})}}))},"ed");
_.fE.idomCompat=!0;var py5=_.F(function(D){var C=_.I_(function(W){var p;(p=D.onClick)==null||p.call(D,W)}),X={},c={};
return _.A("yt-shelf-header-layout",{class:_.g$("yt-shelf-header-layout",(X["yt-shelf-header-layout--disable-horizontal-padding"]=D.disableHorizontalPadding,X["yt-shelf-header-layout--disable-vertical-padding"]=D.disableVerticalPadding,X["yt-shelf-header-layout--responsive"]=D.useResponsiveLayout,X["yt-shelf-header-layout--narrow"]=function(){var W,p;return((W=D.useResponsiveLayout)==null?void 0:W.call(D))&&((p=D.forceSmallLayout)==null?void 0:p.call(D))},X["yt-shelf-header-layout--is-overlay"]=D.isOverlay,
X["yt-shelf-header-layout--tappable"]=D.isInteractive,X["yt-shelf-header-layout--optional-medium-layout-padding"]=D.useUpdatedPadding,X)),
"on:click":C,tabindex:function(){var W;return((W=D.isInteractive)==null?0:W.call(D))?0:void 0}},_.A("div",{class:"yt-shelf-header-layout__header-row"},_.A(_.v,{cond:D.leadingIcon,
then:function(W){return _.A("div",{class:"yt-shelf-header-layout__leading-icon"},_.A(_.$_,{icon:W}))},
else:function(){return _.A(_.v,{cond:D.hasLeadingImage,then:function(){var W,p={};return _.A("div",{class:_.g$("yt-shelf-header-layout__leading-image",(p["yt-shelf-header-layout__leading-image--circular-image"]=D.circularImage,p))},(W=D.leadingImage)==null?void 0:W.call(D))}})}}),_.A("div",{class:"yt-shelf-header-layout__label-container"},_.A(_.v,{cond:D.hasSuperlabel,
then:function(){var W;return _.A("div",{class:"yt-shelf-header-layout__superlabel"},(W=D.superlabel)==null?void 0:W.call(D))}}),_.A("div",{class:"yt-shelf-header-layout__title-row"},_.A(WLx,{text:D.title,
className:_.g$("yt-shelf-header-layout__title",(c["yt-shelf-header-layout__title--small-title"]=D.forceSmallLayout,c)),tagLevel:D.tagLevel}),_.A(_.v,{cond:D.hasDetail,then:function(){var W;return _.A("div",{class:"yt-shelf-header-layout__detail"},(W=D.detail)==null?void 0:W.call(D))}})),_.A(_.v,{cond:D.hasSublabel,
then:function(){var W;return _.A("div",{class:"yt-shelf-header-layout__sublabel"},(W=D.sublabel)==null?void 0:W.call(D))}})),_.A(_.v,{cond:D.hasTrailingActions,
then:function(){var W;return _.A("div",{class:"yt-shelf-header-layout__trailing-actions"},(W=D.trailingActions)==null?void 0:W.call(D))}})),_.A(_.v,{cond:D.hasBottomAccessory,
then:function(){var W;return _.A("div",{class:"yt-shelf-header-layout__bottom-accessory"},(W=D.bottomAccessory)==null?void 0:W.call(D))}}))},"fd");
py5.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var WLx=_.F(function(D){var C=D.text;var X=D.className;var c=D.tagLevel;return _.A(_.G4,null,_.A(_.wq,{when:function(){return(c==null?void 0:c())===0}},function(){return _.A("h2",{class:X},C())}),_.A(_.wq,{when:function(){return(c==null?void 0:c())===1}},function(){return _.A("h3",{class:X},C())}),_.A(_.wq,{when:function(){return(c==null?void 0:c())===2}},function(){return _.A("h4",{class:X},C())}),_.A(_.Fr,null,function(){return _.A("h2",{class:X},C())}))},"gd");var gDb,SJM,USe;_.dM=_.F(function(D){var C=D.className;var X=D.data;var c=D.disableHorizontalPadding;var W=D.disableVerticalPadding;var p=D.forceSmallLayout;var g=D.useResponsiveLayout;var a=D.isOverlay;D=D.useUpdatedPadding;return _.A("yt-section-header-view-model",{class:_.g$("ytSectionHeaderViewModelHost",C),style:_.P0({"background-color":function(){return iy(X().backgroundColor)?_.e_(iy(X().backgroundColor)):void 0}})},_.A(py5,{hasDetail:!1,
title:function(){return _.A(_.QG,{text:function(){return X().headline}})},
hasTitle:!0,sublabel:function(){return _.A(SJM,{data:X})},
hasSublabel:function(){return!!X().sublabel||!!X().bottomBadge},
superlabel:function(){return _.A(USe,{data:X})},
hasSuperlabel:function(){return!!X().superlabel||!!X().topBadge},
leadingImage:function(){return _.A(gDb,{leadingAccessory:function(){return X().leadingAccessory}})},
hasLeadingImage:function(){return!!X().leadingAccessory},
trailingActions:function(){return _.A(_.BX,{data:function(){return X().trailingActions}},{flexibleActionsViewModel:_.AS})},
hasTrailingActions:function(){return!!X().trailingActions},
disableHorizontalPadding:function(){return(c==null?void 0:c())||X().disableHorizontalPadding},
disableVerticalPadding:W,forceSmallLayout:p,useResponsiveLayout:g,isOverlay:a,isInteractive:function(){return!!_.EN(X().rendererContext)},
onClick:function(O){if(_.tG(X().rendererContext)){var P=_.EN(X().rendererContext);P&&_.yK(P,{form:{element:O.target,event:O}})}},
bottomAccessory:function(){return _.A(_.BX,{data:function(){return X().bottomAccessory}},{descriptionPreviewViewModel:function(O){return _.A(_.fE,{data:O.data,
useMediumText:!0})},
commonMarkViewModel:function(O){O=O.data;var P;return _.A(_.kQ,null,(P=_.iX().resolve(_.vK(L9b)))==null?void 0:P({data:O}))}})},
hasBottomAccessory:function(){return!!X().bottomAccessory},
useUpdatedPadding:D}))},"hd");
gDb=_.F(function(D){var C=D.leadingAccessory;return _.A(_.kQ,null,_.A(_.v,{cond:function(){var X;return(X=C().image)!=null?X:_.VX(C().themedImage)},
then:function(X){return _.A(_.M_,{data:X,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.A(_.v,{cond:function(){return _.r(C().avatar,_.yX)},
then:function(X){return _.A(_.Iu,{data:X})}}))},"id");
SJM=_.F(function(D){var C=D.data;return _.A(_.kQ,null,_.A(_.v,{cond:function(){return _.r(C().bottomBadge,vcJ)},
then:function(X){var c={};return _.A(_.ex,{data:X,class:_.g$((c.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!X()&&!!C().sublabel},c))})}}),_.A(_.v,{cond:function(){return C().sublabel},
then:function(X){return _.A(_.QG,{text:X})}}))},"jd");
USe=_.F(function(D){var C=D.data;return _.A(_.kQ,null,_.A(_.v,{cond:function(){return _.r(C().topBadge,vcJ)},
then:function(X){var c={};return _.A(_.ex,{data:X,class:_.g$((c.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!X()&&!!C().superlabel},c))})}}),_.A(_.v,{cond:function(){return C().superlabel},
then:function(X){return _.A(_.QG,{text:X})}}))},"kd");_.CI(_.dM,"yt-section-header-view-model",{props:{data:_.Bm,className:_.Bm,disableHorizontalPadding:_.Bm,disableVerticalPadding:_.Bm,forceSmallLayout:_.Bm,useResponsiveLayout:_.Bm,isOverlay:_.Bm,useUpdatedPadding:_.Bm}});_.sI("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var R6=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.h(R6,_.w);_.S=R6.prototype;_.S.attached=function(){this.requestElementsPerRow()};
_.S.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"}}}};
_.S.onDataChange=function(){var D=this;_.A0(this,function(){D.updateItemVisibility()})};
_.S.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D,this.updateItemVisibility())};
_.S.updateItemVisibility=function(){var D=this;this.data&&this.data.panels&&_.SY(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(C,X){C.hidden=X>D.elementsPerRow-1})};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
R6.prototype.onDataChange=R6.prototype.onDataChange;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],R6.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],R6.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],R6.prototype,"data",void 0);_.V([_.n({value:3}),_.z("design:type",Number)],R6.prototype,"elementsPerRow",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R6.prototype,"onDataChange",null);_.V([_.yj({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],R6);
_.G(R6,"ytd-primetime-promo-renderer",function(){if(oDN!==void 0)return oDN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return oDN=D},{mode:1});var aWx;var l$=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return D};
_.h(l$,_.w);l$.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
l$.prototype.handleButtonRefreshAction=function(D){if(D=_.r(D,y7c))this.set("data.button",D.membershipButton),this.notifyPath("data.button")};
_.$a.Object.defineProperties(l$.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.avatars)==null?void 0:C.slice(0,8))||[]}}});
_.V([_.n(),_.z("design:type",Object)],l$.prototype,"data",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],l$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],l$.prototype,"rendererBehavior",void 0);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],l$.prototype,"avatars",null);
_.V([_.yj({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],l$);
_.G(l$,"ytd-recognition-shelf-renderer",function(){if(aWx!==void 0)return aWx;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return aWx=D},{mode:1});var IWk;var OkC;var Dq=function(){var D=_.w.apply(this,arguments)||this;D.modernButtons=_.b("web_modern_buttons");return D};
_.h(Dq,_.w);_.S=Dq.prototype;
_.S.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.S.dataChanged=function(){this.collapsed=!0};
_.S.computeVisibleItems=function(D,C){return D!==void 0&&D.items?C?D.items.slice(0,this.data.collapsedItemCount):D.items:[]};
_.S.computeHideShowMore=function(D,C,X){return D>=C||!X};
_.S.computeHideShowAll=function(D,C,X){return!(D&&C)||X};
_.S.onMoreClick=function(){this.collapsed=!1};
_.$a.Object.defineProperties(Dq.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.b("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.bX("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.b("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Dq.prototype.dataChanged=Dq.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Dq.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Dq.prototype,"isSearch",void 0);
_.V([_.n({computed:"computeVisibleItems(data,collapsed)"}),_.z("design:type",Array)],Dq.prototype,"visibleItems",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],Dq.prototype,"collapsed",void 0);_.V([_.n({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.z("design:type",Boolean)],Dq.prototype,"hideShowMore",void 0);
_.V([_.n({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.z("design:type",Boolean)],Dq.prototype,"hideShowAll",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Dq.prototype,"modernButtons",void 0);_.V([_.e("isSearch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dq.prototype,"typographyBump",null);
_.V([_.e("isSearch"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dq.prototype,"lockupExperiments",null);_.V([_.e("isSearch"),_.z("design:type",String),_.z("design:paramtypes",[])],Dq.prototype,"thumbnailWidth",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dq.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Dq);
_.G(Dq,"ytd-vertical-list-renderer",function(){if(OkC!==void 0)return OkC;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return OkC=D},{mode:1});var AVN=_.q8(["#"]);_.sI("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var CZ=function(){var D=_.w.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.h(CZ,_.w);_.S=CZ.prototype;
_.S.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"}}}};
_.S.computeThumbnailStyle=function(D){return D||""};
_.S.computePlaceAnnotationUnderTitle=function(){var D;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((D=this.data)==null?void 0:D.thumbnailStyle)||"")};
_.S.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.UAd(AVN)};
_.S.computeIsPromoShelf=function(D){var C;return(D=D==null?void 0:(C=D[0])==null?void 0:C.metadataBadgeRenderer)?D.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.S.computePlaceBadgeBesideTitle=function(D){var C;return(D==null?0:(C=D[0])==null?0:C.metadataBadgeRenderer)?!this.computeIsPromoShelf(D):!1};
_.S.computeMenuIcon=function(D){return this.computeIsPromoShelf(D)?"yt-icons:more_vert":"yt-icons:more"};
_.S.onDataChange=function(){var D,C;((D=this.data)==null?0:(C=D.content)==null?0:C.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.S.onLockupRequested=function(D){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&D.detail&&D.detail.videoIds){for(var C=this.data.content.gridRenderer.items,X=new Set,c=_.U(D.detail.videoIds),W=c.next();!W.done;W=c.next())X.add(W.value);D.detail.returnValue=C.filter(function(p){return p.gridVideoRenderer&&p.gridVideoRenderer.videoId&&X.has(p.gridVideoRenderer.videoId)}).map(function(p){return p.gridVideoRenderer})}};
_.S.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
CZ.prototype.onLockupRequested=CZ.prototype.onLockupRequested;CZ.prototype.onDataChange=CZ.prototype.onDataChange;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],CZ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],CZ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],CZ.prototype,"ironResizableBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],CZ.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],CZ.prototype,"isSearch",void 0);_.V([_.n(),_.z("design:type",Object)],CZ.prototype,"isConstrainedList",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("kevlar_fluid_dismiss")}}),
_.z("design:type",Boolean)],CZ.prototype,"enableFluidDismiss",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.z("design:type",String)],CZ.prototype,"thumbnailStyle",void 0);_.V([_.n({computed:"computeMenuIcon(data.badges)"}),_.z("design:type",String)],CZ.prototype,"menuIcon",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.z("design:type",Boolean)],CZ.prototype,"featuredPromo",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CZ.prototype,"onDataChange",null);_.V([_.$n("yt-lockup-requested"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],CZ.prototype,"onLockupRequested",null);_.V([_.yj({is:"ytd-shelf-renderer",disableElementRegistration:!0})],CZ);
_.G(CZ,"ytd-shelf-renderer",function(){if(IWk!==void 0)return IWk;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return IWk=D},{mode:1});var PdM;var XW=function(){return _.w.apply(this,arguments)||this};
_.h(XW,_.w);XW.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.$a.Object.defineProperties(XW.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],XW.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],XW.prototype,"isPlaylist",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],XW.prototype,"isClipList",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],XW.prototype,"isPlaylistPageWithFilters",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],XW.prototype,"hasTitle",null);_.V([_.n(),_.e("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.z("design:type",Object),_.z("design:paramtypes",[])],XW.prototype,"isRightAligned",null);
_.V([_.yj({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],XW);
_.G(XW,"ytd-sort-filter-header-renderer",function(){if(PdM!==void 0)return PdM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return PdM=D},{mode:1});var $Sq;var cb=function(){var D=_.w.apply(this,arguments)||this;D.enableRightArrowHidden=_.b("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return D};
_.h(cb,_.w);cb.prototype.attached=function(){var D=this;this.enableRightArrowHidden&&(this.JSC$16711_throttledOnResize=new _.Al(function(){var C;(C=D.ytdHorizontalListBehavior)==null||C.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var C;
(C=D.JSC$16711_throttledOnResize)==null||C.fire()}),this.resizeObserver.observe(this.hostElement))};
cb.prototype.detached=function(){if(this.enableRightArrowHidden){var D;(D=this.resizeObserver)==null||D.disconnect();var C;(C=this.JSC$16711_throttledOnResize)==null||C.dispose()}};
cb.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]]"}}}}}};
cb.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.$a.Object.defineProperties(cb.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.b("enable_creator_details_shelf_m2")){var D=[],C;((C=this.data)==null?0:C.creatorVideosButton)&&D.push(this.data.creatorVideosButton);var X;((X=this.data)==null?0:X.creatorAboutButton)&&D.push(this.data.creatorAboutButton);C=_.U(this.data.creatorCustomUrlButtons||[]);for(X=C.next();!X.done;X=C.next())D.push(X.value);return D}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.b("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],cb.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],cb.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],cb.prototype,"engagementPanel",void 0);
_.V([_.n(),_.z("design:type",Object)],cb.prototype,"enableRightArrowHidden",void 0);_.V([_.e("enableRightArrowHidden","atEnd"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],cb.prototype,"hideRightArrow",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],cb.prototype,"creatorCustomUrlButtons",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data","creatorCustomUrlButtons"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],cb.prototype,"showCreatorCustomUrlButtons",null);_.V([_.e("showCreatorCustomUrlButtons"),_.z("design:type",Number),_.z("design:paramtypes",[])],cb.prototype,"channelAvatarSize",null);_.V([_.yj({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],cb);
_.G(cb,"ytd-video-description-infocards-section-renderer",function(){if($Sq!==void 0)return $Sq;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return $Sq=D},{mode:_.Wc("kevlar_poly_si_batch_j067")?1:2});var vDk;var oz=function(){return _.w.apply(this,arguments)||this};
_.h(oz,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oz.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.infoIcon)"}),_.z("design:type",Object)],oz.prototype,"infoIcon",void 0);_.V([_.yj({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],oz);
_.G(oz,"ytd-eom-settings-disclaimer-renderer",function(){if(vDk!==void 0)return vDk;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return vDk=D},{mode:1});var ikM;var Wb=function(){return _.w.apply(this,arguments)||this};
_.h(Wb,_.w);_.$a.Object.defineProperties(Wb.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.suppressPaddingDisclaimer)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Wb.prototype,"componentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wb.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wb.prototype,"suppressPaddingDisclaimer",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Wb);
_.G(Wb,"ytd-product-list-header-renderer",function(){if(ikM!==void 0)return ikM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ikM=D},{mode:1});var k6d;var pZ=function(){return _.w.apply(this,arguments)||this};
_.h(pZ,_.w);pZ.prototype.computeThumbnailStyle=function(D){if(D&&(D=_.mW(D)))return"background-color:"+D+";"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pZ.prototype,"rendererBehaviors",void 0);_.V([_.n(),_.z("design:type",Object)],pZ.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],pZ);
_.G(pZ,"ytd-hashtag-tile-renderer",function(){if(k6d!==void 0)return k6d;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return k6d=D},{mode:1});var upg;var S9=function(){return _.w.apply(this,arguments)||this};
_.h(S9,_.w);S9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],S9.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],S9);
_.G(S9,"ytd-sponsorships-alert-renderer",function(){if(upg!==void 0)return upg;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return upg=D},{mode:1});var QUM;var UV=function(){return _.w.apply(this,arguments)||this};
_.h(UV,_.w);UV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.$a.Object.defineProperties(UV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.V([_.m(_.P9),_.z("design:type",Object)],UV.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],UV.prototype,"ytdLockupBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.V([_.n({selector:_.Y_}),_.z("design:type",Object)],UV.prototype,"isGridViewEnabled",void 0);
_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UV.prototype,"watchFeedBigThumbs",null);_.V([_.e("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],UV.prototype,"thumbnailWidth",null);_.V([_.n(),_.z("design:type",Object)],UV.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],UV);
_.G(UV,"ytd-compact-movie-renderer",function(){if(QUM!==void 0)return QUM;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return QUM=D},{mode:1});var Baf;var bkc;var rVd=_.q6("HTML_DIR")==="rtl",gg=function(){var D=_.w.apply(this,arguments)||this;D.engagementPanel=!1;D.maxLines=2;D.expandButtonOffset=0;D.showExpandButton=!1;D.isTruncated=!1;D.isExpanded=!1;D.currentSnippetType=2;D.alwaysShowExpandButton=!1;D.JSC$16728_lastWidth=NaN;D.observer=null;D.left=0;D.right=0;D.mid=0;D.longestSnippetLength=0;D.isFinalSnippet=!1;D.isFirstMutation=!1;D.isResetMutation=!1;D.OVERFLOW_THRESHOLD=5;return D};
_.h(gg,_.w);_.S=gg.prototype;_.S.onClick=function(D){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;if((C=window.getSelection())==null||!C.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.S.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.S.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.S.updateTextOnSnippetTypeChange=function(){_.b("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.S.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.S.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.fQ(new _.Zf("AttributedSnippet is empty when the description is not empty",this.text))};
_.S.mutationCallback=function(){if(this.observer!=null){var D=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var C=Math.floor(D*this.maxLines/8);this.setSnippetText(this.text,C);C!==0||this.attributedTextIsEmpty()||_.fQ(new _.Zf("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;D=D*this.maxLines/8;this.left=0;var X;this.right=Math.min(D*2,(X=(C=this.simpleText)==null?void 0:C.length)!=null?X:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.S.mutationObserve=function(D){var C=this;this.observer||(this.observer=new MutationObserver(function(){C.mutationCallback()}));
this.observer.observe(D,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.S.attached=function(){var D=this;_.A0(this,function(){D.resize()})};
_.S.isExpandedChanged=function(){_.lE(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.S.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)};
_.S.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var D="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((rVd?"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",D);this.snippetContainer.style.setProperty("mask-image",
D)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(rVd?"right":"left",this.expandButtonOffset+"px")};
_.S.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.S.setSnippetText=function(D,C){D||(D={});if(_.Jv(D)){var X=T2(D,C);X.attachmentRuns||X.commandRuns||X.decorationRuns||X.styleRuns||X.alignment||X.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:T2(D,C),headerRuns:NCh(C,this.headerRuns)},this.currentSnippetType=0):_.fQ(new _.Zf("Tried to set snippet text when HTML element was null",D)):(this.plainSnippetText.textContent=G2(D.content||"",C),this.currentSnippetType=2)}else{a:{X=BSn(D,C);if(X.runs){X=_.U(X.runs);for(var c=
X.next();!c.done;c=X.next())if(c=c.value,c.bold||c.deemphasize||c.italics||c.strikethrough||c.textColor||c.navigationEndpoint||_.r(c,E4)){X=!0;break a}}X=!1}X?this.formattedSnippetText?(this.formattedSnippetText.text=BSn(D,C),this.currentSnippetType=1):_.fQ(new _.Zf("Tried to set snippet text when HTML element was null",D)):(this.plainSnippetText.textContent=G2(_.Mh(D),C),this.currentSnippetType=2)}};
_.S.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.S.attributedTextIsEmpty=function(){var D=this.text;if(!_.Jv(D))return!0;var C;return((C=D.content)==null?void 0:C.length)===0?!0:!1};
_.S.resize=function(D){if(this.snippetText){if(D===void 0?0:D)this.JSC$16728_lastWidth=NaN;var C=this.hostElement.offsetWidth;if(C!==this.JSC$16728_lastWidth&&!this.isExpanded)if(this.JSC$16728_lastWidth=C,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;D=0;var X,c;C=Math.min(C*this.maxLines/8*2,(c=(X=this.simpleText)==null?void 0:X.length)!=null?c:0)-1;for(X=0;D<=C;)c=Math.floor(D+(C-D)/2),this.setSnippetText(this.text,c),this.isOverflowing()?C=c-1:(D=c+1,X=c);this.setSnippetText(this.text,X);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.S.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.S.onExpandClick=function(){var D=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.b("inline_expander_reset_focus_killswitch")||_.A0(this,function(){var C;((C=_.iX().resolve(_.vK(_.E7)))==null?0:C.isKeyBoardInUse())&&_.ai(D.hostElement)});
_.lE(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.S.onCollapseClick=function(){this.collapse();_.lE(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.S.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.S.computeExpandButtonOffset=function(){var D=this.expandSizer;return D?rVd?D.offsetParent?D.offsetParent.offsetWidth-D.offsetWidth-D.offsetLeft:0:D.offsetLeft:0};
_.$a.Object.defineProperties(gg.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Jv(this.text)?this.text.content||"":_.Mh(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 _.Jv(this.text)?!0:this.text&&_.b("web_replace_formatted_with_attributed_string")&&WKm(this.text)?(this.text=_.e6(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}}});
gg.prototype.onTextChanged=gg.prototype.onTextChanged;gg.prototype.updateMaskAndExpandButtonOffset=gg.prototype.updateMaskAndExpandButtonOffset;gg.prototype.updateSnippetContainerMaxHeight=gg.prototype.updateSnippetContainerMaxHeight;gg.prototype.isExpandedChanged=gg.prototype.isExpandedChanged;gg.prototype.updateTextOnSnippetTypeChange=gg.prototype.updateTextOnSnippetTypeChange;gg.prototype.updateIsFormattedExpanded=gg.prototype.updateIsFormattedExpanded;gg.prototype.updateIsAttributedExpanded=gg.prototype.updateIsAttributedExpanded;
gg.prototype.onClick=gg.prototype.onClick;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],gg.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gg.prototype,"text",void 0);_.V([_.n(),_.z("design:type",Array)],gg.prototype,"headerRuns",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],gg.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Object)],gg.prototype,"maxLines",void 0);
_.V([_.n(),_.z("design:type",String)],gg.prototype,"expandLabel",void 0);_.V([_.n(),_.z("design:type",String)],gg.prototype,"collapseLabel",void 0);_.V([_.n(),_.z("design:type",Object)],gg.prototype,"expandCommand",void 0);_.V([_.n(),_.z("design:type",Object)],gg.prototype,"expandButtonOffset",void 0);_.V([_.e("text"),_.z("design:type",String),_.z("design:paramtypes",[])],gg.prototype,"simpleText",null);
_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],gg.prototype,"onClick",null);_.V([_.e("text","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],gg.prototype,"expandedText",null);_.V([_.e("headerRuns","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],gg.prototype,"expandedHeaderRuns",null);
_.V([_.e("text"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gg.prototype,"hasAttributedStringText",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],gg.prototype,"showExpandButton",void 0);_.V([_.e("collapseLabel","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],gg.prototype,"showCollapseButton",null);_.V([_.n(),_.z("design:type",Object)],gg.prototype,"isTruncated",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],gg.prototype,"isExpanded",void 0);_.V([_.n(),_.z("design:type",Boolean)],gg.prototype,"isAttributedExpanded",void 0);_.V([_.vr("isExpanded","hasAttributedStringText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"updateIsAttributedExpanded",null);_.V([_.n(),_.z("design:type",Boolean)],gg.prototype,"isFormattedExpanded",void 0);
_.V([_.vr("isExpanded","hasAttributedStringText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"updateIsFormattedExpanded",null);_.V([_.n(),_.z("design:type",Number)],gg.prototype,"currentSnippetType",void 0);_.V([_.e("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],gg.prototype,"useAttributedSnippet",null);
_.V([_.e("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],gg.prototype,"useFormattedSnippet",null);_.V([_.e("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],gg.prototype,"usePlainSnippet",null);_.V([_.n(),_.z("design:type",Object)],gg.prototype,"alwaysShowExpandButton",void 0);_.V([_.vr("currentSnippetType"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"updateTextOnSnippetTypeChange",null);
_.V([_.n(),_.z("design:type",Object)],gg.prototype,"attributedSnippetText",void 0);_.V([_.kn("#snippet"),_.z("design:type",HTMLElement)],gg.prototype,"snippetContainer",void 0);_.V([_.kn("#snippet-text"),_.z("design:type",HTMLElement)],gg.prototype,"snippetText",void 0);_.V([_.kn("#plain-snippet-text"),_.z("design:type",HTMLElement)],gg.prototype,"plainSnippetText",void 0);_.V([_.kn("#formatted-snippet-text"),_.z("design:type",Object)],gg.prototype,"formattedSnippetText",void 0);
_.V([_.kn("#attributed-snippet-text"),_.z("design:type",Object)],gg.prototype,"attributedSnippetTextEl",void 0);_.V([_.kn("#expand"),_.z("design:type",HTMLElement)],gg.prototype,"expandButton",void 0);_.V([_.kn("#expand-sizer"),_.z("design:type",HTMLElement)],gg.prototype,"expandSizer",void 0);_.V([_.bH("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"isExpandedChanged",null);
_.V([_.vr("isExpanded","maxLines"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"updateSnippetContainerMaxHeight",null);_.V([_.vr("isTruncated","showExpandButton","expandButtonOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"updateMaskAndExpandButtonOffset",null);
_.V([_.bH("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gg.prototype,"onTextChanged",null);_.V([_.yj({is:"ytd-text-inline-expander",disableElementRegistration:!0})],gg);
_.G(gg,"ytd-text-inline-expander",function(){if(bkc===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);bkc=D}D=bkc;return D},{mode:2});var az=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return D};
_.h(az,_.w);az.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
az.prototype.handleUpdateDescriptionAction=function(D){if(D=_.r(D,_.HuN))if(D.attributedDescription)this.set("data.attributedDescriptionBodyText",D.attributedDescription);else if(D.description){var C;((C=this.data)==null?0:C.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.e6(D.description)):this.set("data.descriptionBodyText",D.description)}};
_.$a.Object.defineProperties(az.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.attributedDescriptionBodyText)||!((C=this.data)==null||!C.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.collapsedLineCount){var C;return(C=this.data)==null?void 0:C.collapsedLineCount}D=_.BK("web_watch_description_collapsed_default_lines",12);if(_.b("ww_desc_line_page_size_ks"))return D;C=Math.round(_.ij().height*_.BK("web_watch_description_screen_height_percentage",.5)/20);return Math.max(C,D)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return(X=(D=this.data)==null?void 0:D.descriptionBodyText)!=null?X:(C=this.data)==null?void 0:C.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.sourceAttributions}}});
az.prototype.panelContentVisibleChanged=az.prototype.panelContentVisibleChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],az.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],az.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],az.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Boolean)],az.prototype,"panelContentVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],az.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],az.prototype,"shortsPanel",void 0);_.V([_.kn("#inline-expander"),_.z("design:type",Object)],az.prototype,"inlineExpander",void 0);
_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],az.prototype,"panelContentVisibleChanged",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],az.prototype,"hasDescriptionText",null);_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],az.prototype,"collapsedLines",null);
_.V([_.e("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.z("design:type",Object),_.z("design:paramtypes",[])],az.prototype,"descriptionText",null);_.V([_.e("data","data.headerRuns"),_.z("design:type",Object),_.z("design:paramtypes",[])],az.prototype,"headerRuns",null);_.V([_.e("data","data.sourceAttributions"),_.z("design:type",Object),_.z("design:paramtypes",[])],az.prototype,"sourceAttributions",null);
_.V([_.yj({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],az);
_.G(az,"ytd-expandable-video-description-body-renderer",function(){if(Baf!==void 0)return Baf;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Baf=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var KLM;var h1b=_.F(function(D){var C=D.data;return _.A("factoid-renderer",{class:"ytwFactoidRendererHost"},_.A("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return C().accessibilityText}},_.A("span",{class:"ytwFactoidRendererValue"},_.A(_.QG,{text:function(){return C().value}})),_.A("span",{class:"ytwFactoidRendererLabel"},_.A(_.QG,{text:function(){return C().label}}))))},"ld");_.CI(h1b,"factoid-renderer",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;return _.A("upload-time-factoid-renderer",null,_.A(_.BX,{data:function(){return C().factoid}},{factoidRenderer:h1b}))},"md"),"upload-time-factoid-renderer",{props:{data:_.R3}});_.CI(_.F(function(D){var C=D.data;return _.A("view-count-factoid-renderer",null,_.A(_.BX,{data:function(){return C().factoid}},{factoidRenderer:h1b}))},"nd"),"view-count-factoid-renderer",{props:{data:_.R3}});var Iz=function(){var D=_.w.apply(this,arguments)||this;D.shortsPanel=!1;D.engagementPanel=!1;D.watchWhileSdp=_.b("shorts_desktop_watch_while_sdp");return D};
_.h(Iz,_.w);Iz.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"}}}}};
_.$a.Object.defineProperties(Iz.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var D;return(D=this.data)==null?void 0:D.channel}}});
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Iz.prototype,"componentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Iz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Iz.prototype,"shortsPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Iz.prototype,"engagementPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Iz.prototype,"watchWhileSdp",void 0);_.V([_.e("shortsPanel","engagementPanel","data.channel"),_.z("design:type",Object),_.z("design:paramtypes",[])],Iz.prototype,"showChannelInfo",null);_.V([_.yj({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Iz);
_.G(Iz,"ytd-video-description-header-renderer",function(){if(KLM!==void 0)return KLM;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return KLM=D},{mode:1});var xSC;var OV=function(){return _.w.apply(this,arguments)||this};
_.h(OV,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],OV.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],OV.prototype,"noPadding",void 0);_.V([_.n(),_.z("design:type",Object)],OV.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],OV);
_.G(OV,"ytd-list-item-view-model",function(){if(xSC!==void 0)return xSC;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return xSC=D},{mode:1});var LLg;var sUJ;var mSf;var e1q;var Az=function(){var D=_.w.apply(this,arguments)||this;D.adaptiveFullWidth=!1;D.modernButtons=_.b("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return D};
_.h(Az,_.w);Az.prototype.handleSetTimestamp_=function(D){this.data&&this.data.shortUrl&&(_.SY(this.hostElement).querySelector("#share-url").value=D.isSet?_.DZ(this.data.shortUrl,"t",D.timestamp):this.data.shortUrl)};
Az.prototype.handleSignalActionCopyShareUrl_=function(D,C){(_.b("killswitch_copy_link_target_check")||_.SY(this.hostElement).querySelector("#copy-button")===C)&&this.copyUrlToClipboard()};
Az.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.SY(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Az.prototype.computeStyle_=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Az.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Az.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.z("design:type",String)],Az.prototype,"rendererStyle",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Az.prototype,"adaptiveFullWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Az.prototype,"modernButtons",void 0);_.V([_.n(),_.z("design:type",Object)],Az.prototype,"buttonOverrides",void 0);_.V([_.Yn({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Az);
_.G(Az,"yt-copy-link-renderer",function(){if(e1q===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;mSf===void 0&&(mSf=document.createElement("template"));var c=mSf;X.call(C,c.content.cloneNode(!0),D.content.firstChild);e1q=D}D=e1q;return D},{mode:2});_.sI("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Pb=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return D};
_.h(Pb,_.w);_.S=Pb.prototype;_.S.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.S.attached=function(){this.keyboardFocused=!1};
_.S.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var D=_.iX().resolve(_.vK(_.E7));D&&(this.keyboardFocused=D.isKeyBoardInUse())}};
_.S.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.S.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}};
_.S.onChange_=function(){if(this.data){var D=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;D&&this.ytComponentBehavior.resolveCommand(D);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.S.handleUpdateToggleAction_=function(D){(D=_.r(D,UDg))&&this.data&&D.targetId==this.data.targetId&&this.set("data.toggled",D.toggled)};
_.S.toBoolean_=function(D){return!!D};
_.S.reset=function(){};
_.S.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("data-changed",this.data))};
_.S.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
Pb.prototype.dataChangedForBinding=Pb.prototype.dataChangedForBinding;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Pb.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Pb.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Pb.prototype,"data",void 0);_.V([_.n({computed:"computeDescription_(data.*)"}),_.z("design:type",Object)],Pb.prototype,"description_",void 0);_.V([_.n({value:function(){return!!_.iX().resolve(_.vK(_.E7))&&_.b("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.z("design:type",Boolean)],Pb.prototype,"useKeyboardFocused",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Pb.prototype,"keyboardFocused",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pb.prototype,"dataChangedForBinding",null);_.V([_.Yn({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Pb);
_.G(Pb,"yt-toggle-form-field-renderer",function(){if(sUJ===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;LLg===void 0&&(LLg=document.createElement("template"));var c=LLg;X.call(C,c.content.cloneNode(!0),D.content.firstChild);sUJ=D}D=sUJ;return D},{mode:2});var ED5;var tge;var $e=function(){var D=_.w.apply(this,arguments)||this;D.isDarkTheme=!1;D.isSearch=!1;D.noTopMargin=_.b("kevlar_watch_no_top_margin");D.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 D};
_.h($e,_.w);_.S=$e.prototype;_.S.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}}}}}};
_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.S.dataChanged=function(){var D=this.getSelectedIndex();if(D>0)this.selected=D;else{this.selected=0;var C,X;(C=this.ytScrollableChipCloudBehavior)==null||(X=C.reset)==null||X.call(C)}};
_.S.getSelectedIndex=function(){var D;if((D=this.data)==null||!D.chips)return-1;D=-1;for(var C,X=0;X<((C=this.data)==null?void 0:C.chips.length);X++){var c=void 0,W=void 0;if((c=this.data)==null?0:(W=c.chips[X].chipCloudChipRenderer)==null?0:W.isSelected){D=X;break}}return D};
_.S.onResize=function(){var D=this.ytScrollableChipCloudBehavior;_.A0(D,D.setContainerWidthDiff);D=this.ytScrollableChipCloudBehavior;_.A0(D,D.setButtonsState)};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.handleRelatedChipCommand=function(D,C){D=this.JSC$16755_chipsSelector.indexOf(C);D!==-1&&this.JSC$16755_chipsSelector.selectIndex(D)};
_.S.handleChipCloudChipSelectAction=function(D){D=this.JSC$16755_chipsSelector.indexOf(D);D>-1&&this.JSC$16755_chipsSelector.selectIndex(D)};
_.S.handleChipCloudChipDeselectAction=function(){var D=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16755_chipsSelector&&((D==null?0:D.continuationCommand)?_.cE(this.hostElement,[D]):(D==null?0:D.searchEndpoint)?this.ytComponentBehavior.resolveCommand(D):D&&_.o7(this.hostElement,[D],this.hostElement),this.JSC$16755_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.S.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
$e.prototype.onResize=$e.prototype.onResize;$e.prototype.dataChanged=$e.prototype.dataChanged;$e.prototype.isSearchChanged=$e.prototype.isSearchChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],$e.prototype,"actionHandlerBehavior",void 0);
_.V([_.m(_.lR),_.z("design:type",Object)],$e.prototype,"ironResizableBehavior",void 0);_.V([_.m(),_.z("design:type",Mc)],$e.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],$e.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$e.prototype,"data",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],$e.prototype,"selected",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$e.prototype,"isDarkTheme",void 0);_.V([_.n({value:160}),_.z("design:type",Number)],$e.prototype,"scrollDistance",void 0);_.V([_.n(),_.z("design:type",Object)],$e.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$e.prototype,"noTopMargin",void 0);_.V([_.kn("#chips"),_.z("design:type",Object)],$e.prototype,"JSC$16755_chipsSelector",void 0);
_.V([_.vr("isSearch"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$e.prototype,"isSearchChanged",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$e.prototype,"dataChanged",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$e.prototype,"onResize",null);_.V([_.Yn({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],$e);
_.G($e,"yt-chip-cloud-renderer",function(){if(tge===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;ED5===void 0&&(ED5=document.createElement("template"));var c=ED5;X.call(C,c.content.cloneNode(!0),D.content.firstChild);tge=D}D=tge;return D},{mode:2});var YJN,yV5=function(){return YJN!==void 0?YJN:YJN=document.createElement("template")};
document.head.appendChild(yV5().content);var nD5;var wye=document.head,FLC=wye.appendChild,ZkN;if(nD5===void 0){var G6g=document.createElement("template");_.x(G6g,"");G6g.content.insertBefore(yV5().content.cloneNode(!0),G6g.content.firstChild);nD5=G6g}ZkN=nD5;FLC.call(wye,ZkN.content);var Vgf=_.F(function(D){var C=D.data;return _.A("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.A("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.A("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.A(_.v,{cond:function(){return _.VX(C().image)},
then:function(X){return _.A("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.A(_.M_,{data:X,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.A("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.A(_.QG,{text:function(){return C().subtitle}})))),_.A(_.v,{cond:function(){var X;
return(X=C())==null?void 0:X.hasBottomDivider},
then:function(){return _.A("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"od");var Hkq=_.F(function(D){var C=D.data;return _.A("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.A("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.A(_.BX,{data:function(){var X;return(X=C().offerPlanDetailsItem)!=null?X:[]}},{offerPlanDetailsItemViewModel:function(X){return _.A("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.A(Vgf,{data:X.data}))}})),_.A("div",null,_.A(_.v,{cond:function(){return C().hasBottomDivider},
then:function(){return _.A("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.A("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.A("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.A("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.A("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"pd");var JVd=_.F(function(D){var C=D.data;D=_.U(_.Li(!1,void 0,"MrXxy"));var X=D.next().value,c=D.next().value,W=_.I_(function(){c(!X());return!1}),p=function(){var g;
return(g=C().offerPlanDetailsContainer)!=null?g:[]};
return _.A("lp-complex-offer-card-details-view-model",null,_.A("div",null,_.A(_.v,{cond:function(){return X()},
then:function(){return _.A("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.A("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":W,"aria-expanded":X},_.A(_.QG,{text:function(){return C().expandedTitle}})),_.A("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.A(_.BX,{data:p},{offerPlanDetailsContainerViewModel:function(g){return _.A("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.A(Hkq,{data:g.data}))}})),_.A("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.A(_.QG,{text:function(){return C().legalText}})))},
else:function(){return _.A("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":W,"aria-expanded":X},_.A(_.QG,{text:function(){return C().collapsedTitle}}),_.A("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.A(_.$_,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"qd");var z15=_.F(function(D){var C=D.data;return _.A("lp-complex-offer-card-option-view-model",null,_.A("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.A(_.v,{cond:function(){return C().topDividerText},
then:function(){return _.A("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.A("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.A("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.A("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.A(_.QG,{text:function(){return C().topDividerText}}))))}}),_.A(_.v,{cond:function(){return C().description},
then:function(){return _.A("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.A(_.QG,{text:function(){return C().description}}))}}),_.A(_.v,{cond:function(){return C().planPricingPrimary},
then:function(){return _.A("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.A(_.QG,{text:function(){return C().planPricingPrimary}}))}}),_.A(_.v,{cond:function(){return C().planPricingSecondary},
then:function(){return _.A("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.A(_.QG,{text:function(){return C().planPricingSecondary}}))}}),_.A(_.v,{cond:function(){return C().primaryButton},
then:function(){return _.A("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.A(_.BX,{data:function(){return C().primaryButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"rd");var jUC=_.F(function(D){var C=D.data;var X=function(){var p;return((p=C())==null?void 0:p.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var c={},W={};return _.A("ytm-lp-complex-offer-card-view-model",null,_.A("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.A("div",{class:_.g$((D.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=X,D),"ytmLpComplexOfferCardViewModelCardContainer")},_.A(_.v,{cond:function(){var p;return(p=C())==null?void 0:p.bannerText},
then:function(){return _.A("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.A("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.A(_.QG,{text:function(){return C().bannerText}})))}}),_.A(_.v,{cond:function(){return _.VX(C().logo)},
then:function(p){var g={};return _.A("div",{class:_.g$((g.ytmLpComplexOfferCardViewModelLogoAlignLeft=X,g),"ytmLpComplexOfferCardViewModelLogo")},_.A(_.M_,{data:p,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.A("div",{class:_.g$((c.ytmLpComplexOfferCardViewModelTitleAlignLeft=X,c),"ytmLpComplexOfferCardViewModelTitle")},_.A(_.QG,{text:function(){return C().title}})),_.A(_.v,{cond:function(){var p;
return(p=C())==null?void 0:p.subtitle},
then:function(){var p={};return _.A("div",{class:_.g$((p.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=X,p),"ytmLpComplexOfferCardViewModelSubtitle")},_.A(_.QG,{text:function(){return C().subtitle}}))}}),_.A(_.v,{cond:function(){return C().planPricingPrimary},
then:function(){return _.A("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.A(_.QG,{text:function(){return C().planPricingPrimary}}))}}),_.A(_.v,{cond:function(){return C().planPricingSecondary},
then:function(){return _.A("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.A(_.QG,{text:function(){return C().planPricingSecondary}}))}}),_.A(_.v,{cond:function(){return C().purchaseButton},
then:function(){return _.A("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.A(_.BX,{data:function(){return C().purchaseButton}},{buttonViewModel:function(p){return _.A(_.Ze,{data:p.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.A(_.v,{cond:function(){var p;
return(p=C())==null?void 0:p.offerOptions},
then:function(){return _.A("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.A(_.BX,{data:function(){return C().offerOptions}},{lpComplexOfferCardOptionViewModel:z15}))}}),_.A("div",{class:_.g$((W.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=X,W),"ytmLpComplexOfferCardViewModelLegalText")},_.A(_.QG,{text:function(){return C().legalText}})),_.A(_.v,{cond:function(){var p;
return(p=C())==null?void 0:p.offerCardDetails},
then:function(){return _.A("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.A(_.BX,{data:function(){return C().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:JVd}))}}))))},"sd");var Mg4=_.F(function(D){var C=D.data;var X=function(){var g;return((g=C())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var c={},W={},p={};return _.A("ytm-lp-complex-offer-card-section-view-model",null,_.A("div",{class:_.g$("ytmLpComplexOfferCardSectionViewModelHost")},_.A("div",{class:_.g$((D.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=X,D),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.A("div",{class:_.g$((c.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=X,c),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.A("h2",{class:_.g$((W.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
X,W),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.A(_.QG,{text:function(){return C().title}}))),_.A(_.v,{cond:function(){var g;
return(g=C())==null?void 0:g.subtitle},
then:function(){var g={},a={};return _.A("div",{class:_.g$((g.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=X,g),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.A("div",{class:_.g$((a.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=X,a),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.A(_.QG,{text:function(){return C().subtitle}})))}}),_.A("div",{class:_.g$((p.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=X,p),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.A(_.BX,{data:function(){var g;
return(g=C().offerPlans)!=null?g:[]}},{lpComplexOfferCardViewModel:function(g){return _.A("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.A(jUC,{data:g.data}))}})))))},"td");var qJg=_.F(function(D){return _.A("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.A("div",{class:"ytLpCouponBannerViewModelIcon"},_.A(_.$_,{icon:function(){return"price_tag"}})),_.A("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.A("div",{class:"ytLpCouponBannerViewModelContent"},_.A("div",{class:"ytLpCouponBannerViewModelHeading"},_.A(_.QG,{text:function(){var C;
return(C=D.data())==null?void 0:C.title}})),_.A("div",{class:"ytLpCouponBannerViewModelBody"},_.A(_.QG,{text:function(){var C;
return(C=D.data())==null?void 0:C.subtitle}})))))},"ud");
qJg.idomCompat=!0;_.vb=Ea5.getInstance();var fW4;fW4=_.F(function(D){return _.A("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":D.shouldAriaHideContent},_.A("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:D.questionId},_.A(_.QG,{text:D.question})))},"vd");
_.dS5=_.F(function(D){var C=D.data;var X=D.themeOverride;D=_.U(_.Li(!1,void 0,"pNli2b"));var c=D.next().value,W=D.next().value;D=_.I_(function(){W(!c());return!1});
var p=function(){return c()?"EXPAND_LESS":"EXPAND_MORE"},g=("faq-container"+_.jP(_.vb)).toString(),a="faq-question-and-answers-section-question"+_.jP(_.vb),O={},P={};
return _.A("faq-entry-view-model",null,_.A("div",{class:_.g$("ytLpFaqEntryViewModelHost",(O.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return X==null?void 0:X().useDarkTheme},O))},_.A("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":D,role:"button","aria-expanded":c,"aria-labelledby":a.toString(),"tab-index":"0"},_.A(fW4,{question:function(){return C().question},
questionId:a,shouldAriaHideContent:!0}),_.A(_.v,{cond:function(){return c()!==void 0},
then:function(){return _.A("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.A(_.$_,{icon:p,ariaHidden:!0}),_.A("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.A("div",{class:_.g$("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(P.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!c()},P))},_.A("div",{id:g},_.A(_.Zh,{each:function(){return C().answers||[]}},function(k){return _.A("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.A(_.QG,
{text:k}))})))))},"wd");
_.dS5.idomCompat=!0;var R1M=_.F(function(D){var C=D.data;var X=D.themeOverride;D={};return _.A("lp-faq-section-view-model",null,_.A("div",{class:_.g$("yt-lp-faq-section-view-model",(D["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(X==null||!X().useDarkTheme)},D))},_.A("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.A(_.v,{cond:function(){return C().header},
then:function(c){return _.A("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.A(_.QG,{text:c}))}}),_.A("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.A(_.BX,{data:function(){return C().faqs}},{faqEntryViewModel:function(c){return _.A(_.dS5,{data:c.data,
themeOverride:X})}})),_.A("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.A(_.Zh,{each:function(){return C().footers||[]}},function(c){return _.A(_.QG,{text:c})})),_.A(_.v,{cond:function(){return C().legal},
then:function(c){return _.A("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.A(_.QG,{text:c}))}}))))},"xd");
R1M.idomCompat=!0;var lW5=_.F(function(D){var C=D.data;var X=D.themeOverride;_.JU(function(){var g=C().gtmId;g&&_.lP(g,_.q6("GL",""))});
var c={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var g,a,O;return(O=(g=C().logo)==null?void 0:(a=g.accessibilityData)==null?void 0:a.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},W=_.iX().resolve(_.vK(_.Hc)),p=function(){return W&&W()||(X==null?void 0:X().useDarkTheme)};
return _.A("lp-header-section-view-model",null,_.A("div",{class:function(){var g=C().layoutType,a=C().marginType==="LP_SECTION_MARGIN_TYPE_TOP",O=X==null?void 0:X().useDarkTheme,P=["lp-header-section-view-model"];switch(g){case "LP_MODULE_LAYOUT_TYPE_PTC":P.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":P.push("lp-header-section-view-model--narrow-header-layout-type")}a&&P.push("lp-header-section-view-model__lp-header-section-margin");O&&P.push("lp-header-section-view-model--premium-force-dark-mode");
return P.join(" ")}},_.A(_.v,{cond:function(){return C().logo},
then:function(){return _.A("div",null,_.A(_.v,{cond:p,then:function(){return _.A(_.v,{cond:function(){var g;return(g=C().logo)==null?void 0:g.imageDark},
then:function(g){return _.A(_.M_,Object.assign({},{data:g},c))}})},
else:function(){return _.A(_.v,{cond:function(){var g;return(g=C().logo)==null?void 0:g.imageLight},
then:function(g){return _.A(_.M_,Object.assign({},{data:g},c))}})}}))}}),_.A(_.v,{cond:function(){return C().title},
then:function(g){return _.A("div",{class:"lp-header-section-view-model__lp-header-title"},_.A(_.QG,{text:g}))}}),_.A("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.A(_.v,{cond:function(){return C().subtitles},
then:function(g){return _.A(_.Zh,{each:g},function(a){return _.A("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.A(_.QG,{text:a}))})}})),_.A(_.v,{cond:function(){return C().additionalInfo},
then:function(g){return _.A("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.A(_.QG,{text:g}))}}),_.A("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.A(_.v,{cond:function(){return C().primaryButton},
then:function(g){return _.A("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.A(_.BX,{data:g},{buttonViewModel:_.Ze}))}}),_.A(_.v,{cond:function(){return C().secondaryButton},
then:function(g){return _.A("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.A(_.BX,{data:g},{buttonViewModel:_.Ze}))}})),_.A(_.v,{cond:function(){return C().otherOffersInfo},
then:function(g){return _.A("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.A(_.QG,{text:g}))}}),_.A("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.A(_.v,{cond:function(){return C().billingInfo},
then:function(g){return _.A(_.Zh,{each:g},function(a){return _.A("div",null,_.A(_.QG,{text:a}))})}}))))},"yd");
lW5.idomCompat=!0;var Dtq=_.F(function(D){return _.A("lp-header-upsell-banner-view-model",{class:_.g$("lpHeaderUpsellBannerViewModelHost",D.className,{})},_.A("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.A(_.$_,{icon:function(){return"CAMPAIGN"}})),_.A("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.A("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.A("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.A("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.A(_.QG,{text:function(){var C;
return(C=D.data())==null?void 0:C.description}})))),_.A(_.BX,{data:function(){var C;
return(C=D.data())==null?void 0:C.purchaseButton}},{buttonViewModel:function(C){return _.A(_.Ze,{data:C.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"zd");var C0b=_.F(function(D){var C=D.data;var X=_.di(D.themeOverride,{useDarkTheme:!1});D={};D=_.g$("ytmLpHeadlineSectionViewModelHost",(D.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return X().useDarkTheme},D));
return _.A("lp-headline-section-view-model",null,_.A("div",{class:D},_.A(_.v,{cond:function(){return C().title},
then:function(c){return _.A("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.A(_.QG,{text:c}))}}),_.A(_.v,{cond:function(){return C().subtitle},
then:function(c){return _.A("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.A(_.QG,{text:c}))}})))},"Ad");var X5e=_.F(function(D){var C=D.data;var X=D.themeOverride;var c=_.iX().resolve(_.vK(_.Hc)),W=function(){return c&&c()||(X==null?void 0:X().useDarkTheme)},p=function(){var P,k;
var u=W()?(P=C().textBackgroundImage)==null?void 0:P.imageDark:(k=C().textBackgroundImage)==null?void 0:k.imageLight;return cE5((u==null?void 0:u.sources)||[])},g=function(){var P,k;
return W()?(P=C().featureImage)==null?void 0:P.imageDark:(k=C().featureImage)==null?void 0:k.imageLight},a=function(){return C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},O=function(){var P,k;
return W()?(P=C().logo)==null?void 0:P.imageDark:(k=C().logo)==null?void 0:k.imageLight};
return _.A("ytm-lp-large-feature-section-view-model",null,_.A("div",{class:function(){var P=C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",k=C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",u=(C().index||0)%2===1,Q=X==null?void 0:X().useDarkTheme,B=["yt-lp-large-feature-section-view-model"];P?B.push("yt-lp-large-feature-section-view-model--music-feature-type"):k?B.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):u||B.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Q&&B.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.A("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.A(_.v,{cond:g,
then:function(){return _.A(_.M_,{data:function(){return g()},
alt:function(){var P,k,u;return(u=(P=C().featureImage)==null?void 0:(k=P.accessibilityData)==null?void 0:k.label)!=null?u:""},
contentMode:a})}})),_.A("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var P;return((P=p())==null?0:P.url)?"background-image: url("+_.Hv(p().url)+");":""}},_.A("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.A(_.v,{cond:O,
then:function(){return _.A(_.M_,{data:function(){return O()},
alt:function(){var P,k,u;return(u=(P=C().logo)==null?void 0:(k=P.accessibilityData)==null?void 0:k.label)!=null?u:""},
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"})}}),_.A(_.v,{cond:function(){return C().eyebrowText},
then:function(){return _.A("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.A(_.QG,{text:function(){return C().eyebrowText}}))}}),_.A(_.v,{cond:function(){return C().title},
then:function(){return _.A("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.A(_.QG,{text:function(){return C().title}}))}}),_.A(_.v,{cond:function(){return C().subtitles},
then:function(){return _.A("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.A(_.Zh,{each:function(){return C().subtitles||[]}},function(P){return _.A(_.QG,{text:P})}))}})))))},"Bd");
X5e.idomCompat=!0;var ciC=_.F(function(D){return _.A("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.A("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.A(_.$_,{icon:function(){var C;return(C=D.data())==null?void 0:C.iconType},
className:function(){var C;switch((C=D.data())==null?void 0:C.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var C;return((C=D.data())==null?void 0:C.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.A("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.A(_.QG,{text:function(){var C;
return(C=D.data())==null?void 0:C.text},
className:function(){var C;return((C=D.data())==null?void 0:C.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Cd");var oR5=_.F(function(D){D=_.Ro(D,{config:void 0,themeOverride:void 0});var C=D.data,X=D.config,c=D.themeOverride;D={};D=_.g$("ytmLpOfferCardOptionViewModelHost",(D.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var a;return(a=c())==null?void 0:a.useDarkTheme},D));
var W=_.I_(function(){var a,O;(a=X())==null||(O=a.handleRadioButtonClick)==null||O.call(a,C());return!1}),p=function(){var a;
return(a=X())==null?void 0:a.shouldDisplayRadioButton},g=function(){var a;
return(a=C().featureListItems)!=null?a:[]};
return _.A("ytm-lp-offer-card-option-view-model",null,_.A("div",{class:D,"on:click":_.I_(function(){if(p()){var a,O;(a=X())==null||(O=a.handleRadioButtonClick)==null||O.call(a,C())}return!1})},_.A(_.v,{cond:p,
then:function(){return _.A("div",null,_.A("input",{type:"radio","on:click":W,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var a;return!((a=X())==null||!a.isOptionSelected)}}))}}),_.A("div",null,_.A("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.A(_.QG,{text:function(){return C().eyebrowText}})),_.A("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.A(_.QG,
{text:function(){return C().subtitle}})),_.A(_.v,{cond:function(){return g().length>0},
then:function(){return _.A("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.A(_.BX,{data:g},{lpFeatureListItemViewModel:ciC}))}}),_.A("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.A(_.QG,{text:function(){return C().description}})))))},"Dd");
oR5.idomCompat=!0;var WDq=_.F(function(D){var C=D.data;var X=D.themeOverride;D=_.U(_.d2(function(){var p,g=(p=C().offerOptions)==null?void 0:p[0];return _.r(g,c$5)||{}}));
var c=D.next().value,W=D.next().value;D={};return _.A("ytm-lp-offer-card-view-model",null,_.A("div",{class:_.g$("ytmLpOfferCardViewModelHost",(D.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(X==null||!X().useDarkTheme)},D))},_.A("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.A(_.v,{cond:function(){return C().titleIconType},
then:function(){return _.A("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.A(_.$_,{icon:function(){var p;return((p=C().titleIconType)==null?void 0:p.toString())||""}}))}}),_.A("div",{class:"ytmLpOfferCardViewModelTitleText"},_.A(_.QG,{text:function(){return C().title}})),_.A(_.BX,{data:function(){return C().titleBadge}},{badgeViewModel:function(p){return _.A("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.A(_.ex,{data:p.data}))}})),_.A("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.A(_.BX,{data:function(){return C().offerOptions}},{lpOfferCardOptionViewModel:function(p){var g=p.data;
return _.A(_.kQ,null,_.A("div",{class:"ytmLpOfferCardViewModelDivider"}),_.A(oR5,{data:g,config:function(){var a;return{shouldDisplayRadioButton:(C().offerOptions||[]).length>1,isOptionSelected:g().id===((a=c())==null?void 0:a.id),handleRadioButtonClick:function(O){return void W(O)}}},
themeOverride:X}))}})),_.A("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.A(_.BX,{data:function(){var p;
return(p=c())==null?void 0:p.purchaseButtonOverride}},{buttonViewModel:_.Ze}))))},"Ed");
WDq.idomCompat=!0;var p5d=_.F(function(D){var C=D.data;var X=D.themeOverride;D={};D=_.g$("ytmLpOfferCardSectionViewModelHost",(D.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var c;return X==null?void 0:(c=X())==null?void 0:c.useDarkTheme},D));
return _.A("ytm-lp-offer-card-section-view-model",null,_.A("div",{class:D},_.A(_.v,{cond:function(){return C().title!==void 0},
then:function(){return _.A("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.A("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.A(_.QG,{text:function(){return C().title}})),_.A(_.v,{cond:function(){return C().subtitle},
then:function(){return _.A("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.A(_.QG,{text:function(){return C().subtitle}}))}}))}}),_.A("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.A(_.BX,{data:function(){return C().offerCards}},{lpOfferCardViewModel:function(c){return _.A("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.A(WDq,{data:c.data,
themeOverride:X}))}})),_.A(_.v,{cond:function(){return C().footer},
then:function(){return _.A("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.A(_.QG,{text:function(){return C().footer}}))}})))},"Fd");var ShC=_.F(function(D){var C=D.data;return _.A("lp-offer-table-cell-content-view-model",null,_.A("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.A(_.G4,null,_.A(_.wq,{when:function(){return C().title}},function(){return _.A(_.QG,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return C().title}})}),_.A(_.wq,{when:function(){return C().subTitle}},function(){return _.A(_.QG,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return C().subTitle}})}),_.A(_.wq,{when:function(){return C().featureDescription}},function(){return _.A(_.QG,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return C().featureDescription}})}),_.A(_.wq,{when:function(){return C().description}},function(){return _.A(_.QG,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return C().description}})}),_.A(_.wq,{when:function(){return C().iconType}},function(){return _.A("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.A(_.$_,{icon:function(){return C().iconType.toString()}}))}),_.A(_.wq,{when:function(){return C().purchaseButton}},function(){return _.A(_.BX,{data:function(){return C().purchaseButton}},{buttonViewModel:function(X){return _.A("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.A(_.Ze,
{data:X.data}))}})}),_.A(_.wq,{when:function(){return C().note}},function(){return _.A(_.QG,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return C().note}})}),_.A(_.wq,{when:function(){return C().featureDetail}},function(){return _.A(_.QG,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return C().featureDetail}})}),_.A(_.wq,{when:function(){return C().badge}},function(){return _.A(_.BX,{data:function(){return C().badge}},{badgeViewModel:_.ex})}))))},"Gd");
ShC.idomCompat=!0;var Ut4=_.F(function(D){var C=D.data;return _.A("lp-offer-table-cell-view-model",null,_.A("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(C().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.A(_.BX,{data:function(){return C().contents}},{lpOfferTableCellContentViewModel:ShC})))},
"Hd");
Ut4.idomCompat=!0;var gRN=_.F(function(D){var C=D.data;var X=D.lpTableIsFirstRow;var c=D.lpTableIsLastRow;var W=function(){return(X==null?0:X())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},p=function(){return(X==null?0:X())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(c==null?0:c())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.A("ytm-lp-offer-table-row-view-model",null,_.A("div",{class:"ytLpOfferTableRowViewModelHost"},_.A(_.BX,{data:function(){return C().rowHeaderCell}},{lpOfferTableCellViewModel:function(g){return _.A("div",{class:W},_.A(Ut4,{data:g.data}))}}),_.A(_.BX,{data:function(){return C().contentCells}},{lpOfferTableCellViewModel:function(g){return _.A("div",{class:p},_.A(Ut4,{data:g.data}))}})))},"Id");
gRN.idomCompat=!0;var aAd=_.F(function(D){var C=D.data;var X=D.themeOverride;var c=_.iX().resolve(_.vK(_.Hc)),W=function(){return _.r(C().logo,hsd)||{}};
D={};return _.A("ytm-lp-offer-table-section-view-model",null,_.A("div",{class:"ytLpOfferTableViewModelHost"},_.A(_.v,{cond:function(){var p,g;return c&&c()||(X==null?0:X().useDarkTheme)?(p=W())==null?void 0:p.imageDark:(g=W())==null?void 0:g.imageLight},
then:function(p){return _.A(_.M_,{data:p,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var g,a,O;return(O=(g=W())==null?void 0:(a=g.accessibilityData)==null?void 0:a.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.A(_.QG,{text:function(){return C().subtitle}})),_.A(_.v,{cond:function(){return C().disclaimers},
then:function(p){return _.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.A(_.Zh,{each:p},function(g){return _.A("div",null,_.A(_.QG,{text:g}))}))}}),_.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.A(_.BX,{data:function(){return C().rows}},{lpOfferTableRowViewModel:function(p,g){return _.A(gRN,{data:p.data,
lpTableIsFirstRow:function(){return g()===0},
lpTableIsLastRow:function(){return g()===C().rows.length-1}})}})),_.A("div",{class:_.g$((D.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return C().hasFooterBackground},D))},_.A(_.v,{cond:function(){return C().footer},
then:function(){return _.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.A(_.QG,{text:function(){return C().footer}}))}}),_.A(_.v,{cond:function(){return C().footerTitle},
then:function(){return _.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.A(_.QG,{text:function(){return C().footerTitle}}))}}),_.A(_.v,{cond:function(){return C().footerDescription},
then:function(){return _.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.A(_.QG,{text:function(){return C().footerDescription}}))}}),_.A(_.v,{cond:function(){return C().footerDescriptions},
then:function(p){return _.A("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.A(_.Zh,{each:p},function(g){return _.A("div",null,_.A(_.QG,{text:g}))}))}}))))},"Jd");
aAd.idomCompat=!0;var IAe=_.F(function(D){var C=D.data;var X=D.themeOverride;var c=_.iX().resolve(_.vK(_.Hc)),W=function(){var a;return X==null?void 0:(a=X())==null?void 0:a.useDarkTheme},p=function(){var a,O;
return c&&c()||W()?(a=C().image)==null?void 0:a.imageDark:(O=C().image)==null?void 0:O.imageLight};
D={};D=_.g$("ytmLpSmallFeatureSectionViewModelHost",(D.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=W,D));var g=function(){var a,O,P;return(P=(a=C().image)==null?void 0:(O=a.accessibilityData)==null?void 0:O.label)!=null?P:""};
return _.A("ytm-lp-small-feature-section-view-model",{class:D},_.A(_.v,{cond:function(){return p()&&!ST5},
then:function(){return _.A("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.A(_.M_,{data:function(){return p()},
alt:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.A("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.A("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.A(_.v,{cond:function(){return C().title},
then:function(a){return _.A(_.QG,{text:a})}})),_.A("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.A(_.QG,{text:function(){return C().description}}))))},"Kd");
IAe.idomCompat=!0;var Ov5=_.F(function(D){var C=D.data;var X=D.themeOverride;D={};return _.A("ytm-lp-small-feature-section-group-view-model",null,_.A("div",{class:_.g$("ytmLpSmallFeatureSectionGroupViewModelHost",(D.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(X==null||!X().useDarkTheme)},D))},_.A("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.A(_.BX,{data:function(){return C().smallFeatures}},{lpSmallFeatureSectionViewModel:function(c){return _.A("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.A(IAe,{data:c.data,
themeOverride:X}))}}))))},"Ld");
Ov5.idomCompat=!0;_.CI(_.F(function(D){var C=D.data;var X=function(){return C().forcedTheme==="USER_INTERFACE_THEME_DARK"},c=function(){return C().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},W=function(){var g="",a,O;
var P=_.iX().resolve(_.vK(_.Hc));P=X()||(P==null?0:P())?(a=C().themedImageViewModel)==null?void 0:a.imageDark:(O=C().themedImageViewModel)==null?void 0:O.imageLight;(a=cE5((P==null?void 0:P.sources)||[]))&&a.url&&(g=c()?"background-image: linear-gradient(to bottom, transparent, "+(C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Hv(a.url)+");":"background-image: url("+_.Hv(a.url)+");");return g},p=function(){return{useDarkTheme:X()}};
D={};return _.A("yt-section-group-view-model",null,_.A("div",{class:_.g$("yt-lp-section-group-view-model",(D["yt-lp-section-group-view-model--premium-force-dark-mode"]=X,D["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D))},_.A(_.v,{cond:function(){return W().length},
then:function(){var g={};return _.A("div",{class:_.g$("yt-lp-section-group-view-model__bg-image",(g["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=c,g)),style:W})}}),_.A("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.A(_.BX,{data:function(){return C().sections}},{lpHeaderUpsellBannerViewModel:function(g){return _.A(Dtq,{data:g.data})},
lpFaqSectionViewModel:function(g){return _.A(R1M,{data:g.data,themeOverride:p})},
lpHeaderSectionViewModel:function(g){return _.A(lW5,{data:g.data,themeOverride:p})},
lpHeadlineSectionViewModel:function(g){return _.A(C0b,{data:g.data,themeOverride:p})},
lpLargeFeatureSectionViewModel:function(g){return _.A(X5e,{data:g.data,themeOverride:p})},
lpOfferCardSectionViewModel:function(g){return _.A(p5d,{data:g.data,themeOverride:p})},
lpComplexOfferCardSectionViewModel:function(g){return _.A(Mg4,{data:g.data})},
lpOfferTableSectionViewModel:function(g){return _.A(aAd,{data:g.data,themeOverride:p})},
lpSmallFeatureSectionGroupViewModel:function(g){return _.A(Ov5,{data:g.data,themeOverride:p})},
lpCouponBannerViewModel:function(g){return _.A(qJg,{data:g.data})}}))))},"Md"),"yt-section-group-view-model",{props:{data:_.Bm}});_.Aix=_.F(function(D){var C=_.ku(bSr,function(){var g;return(g=D.data())==null?void 0:g.chipBarStateEntityKey}),X=function(){return D.data().disableDeselection},c=_.U(_.d2(function(){var g;
if(((g=C())==null?void 0:g.selectedIndex)!=void 0)return C().selectedIndex;var a,O;g=_.U(((a=D.data())==null?void 0:(O=a.chips)==null?void 0:O.entries())||[]);for(a=g.next();!a.done;a=g.next()){a=_.U(a.value);O=a.next().value;a=a.next().value;var P=void 0;if((P=_.r(a,_.kL))==null?0:P.selected)return O}return-1})),W=c.next().value,p=c.next().value;
return _.A("chip-bar-view-model",{class:_.g$("ytChipBarViewModelHost",D.className),role:"tablist"},_.A(_.BX,{data:function(){return D.data().chips}},{chipViewModel:function(g,a){return _.A("div",{class:"ytChipBarViewModelChipWrapper"},_.A(_.Fhf,{data:g.data,
selected:function(){return a()===W()},
callback:function(O,P){O=!!P;P=a();p(O?P:-1);var k,u=(k=D.data())==null?void 0:k.chipBarStateEntityKey;u&&O&&_.fG(_.bK("chipBarStateEntity",u,{key:u,selectedIndex:P}))},
disableDeselection:D.disableDeselection||X}))}}))},"Nd");_.CI(_.Aix,"chip-bar-view-model",{props:{data:_.R3,className:_.R3,disableDeselection:_.R3}});_.P05=_.F(function(D){var C=D.data;D={};return _.A("divider-view-model",{class:_.g$("dividerViewModelHost",(D.dividerViewModelInsetThinPadding=function(){return C().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},D))},_.A("div",{class:_.g$("dividerViewModelBaseDivider",function(){return rK5(C().dividerStyle)})}))},"Od");
_.P05.idomCompat=!0;_.CI(_.P05,"divider-view-model",{props:{data:_.Bm}});var kf=new Map,uy=new Map,xpm=0,QR;var tK3=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],yKm={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var $t4,vRd;$t4=function(D){return function(C){return function(){return(C==null?void 0:C())!==void 0?String(C())+D:void 0}}};
_.iM=$t4("px");vRd=$t4("s");var ivk=QTd(function(D){return D.targetGroupId}).useUpdatableData;_.ke=_.F(function(D){function C(ph){return function(){var Om=t().numItemsPerGridRow,xj=ph()*Om;Om=xj+Om;var Bo,r5;return(r5=(Bo=c().contents)==null?void 0:Bo.slice(xj,Om))!=null?r5:[]}}
var X=_.Ro(D,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),c=X.data,W=X.layoutContainerWidth,p=X.shouldUseOwnContainerSize,g=X.marginSettings,a=X.useUpdatedMargin,O=o0W(),P=_.U(ivk(function(){var ph,Om;return{targetGroupId:(ph=c().targetingContext)==null?void 0:(Om=ph.targetGroupId)==null?void 0:Om[0]}})).next().value;
X=_.U(_.Li(!0,void 0,"lKny6d"));var k=X.next().value,u=X.next().value,Q=function(){var ph,Om=(ph=_.r(c().showMoreButton,_.is))==null?void 0:ph.trackingParams;Om&&_.JF(_.iO(),Om);u(!1)},B=function(){var ph,Om=(ph=_.r(c().showLessButton,_.is))==null?void 0:ph.trackingParams;
Om&&_.JF(_.iO(),Om);u(!0)};
X=_.U(_.BC({canHaveZeroSize:!1}));var K=X.next().value;X=X.next().value;var L=function(){var ph;return(ph=c().contentAspectRatio)!=null?ph:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},t=_.tw(function(){var ph=p()&&K.width()>0?K.width()||W():W(),Om,xj=(Om=D.data())==null?void 0:Om.responsiveContainerConfiguration;
ph=_.Zw({containerWidth:ph,sizing:xj?GU(xj==null?void 0:xj.responsiveSize):"EXTRA_COMPACT",marginSettings:g(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:ph.maxContainerWidth,numItemsPerGridRow:ph.numItems,contentPadding:p()?ph.margin:ph.contentMargin,itemWidth:ph.itemWidth,itemMargin:ph.gutter/2}},void 0,"XYkF9e"),Y=function(){if(c().enableVerticalExpansion){if(k())return y();
var ph,Om,xj=(Om=(ph=c().contents)==null?void 0:ph.length)!=null?Om:0;return Math.ceil(xj/t().numItemsPerGridRow)}return t().numItemsPerGridRow<=2?2:1},y=function(){var ph;
return Math.ceil(((ph=c().minCollapsedItemCount)!=null?ph:1)/t().numItemsPerGridRow)},J=function(){return c().enableVerticalExpansion&&c().showLessButton&&!k()&&Y()>y()},T=function(){var ph,Om;
return c().enableVerticalExpansion&&c().showMoreButton&&k()&&((Om=(ph=c().contents)==null?void 0:ph.length)!=null?Om:0)>t().numItemsPerGridRow*y()},H=function(){return!J()},q=function(){return!T()},R={};
return _.A("grid-shelf-view-model",{class:_.g$("ytGridShelfViewModelHost",D.className,(R.ytGridShelfViewModelHostHasBottomButton=function(){return J()||T()},R.ytGridShelfViewModelHostIsDismissed=function(){var ph,Om=(ph=P())!=null?ph:{};
ph=Om.behavior;var xj=Om.isDismissed,Bo=Om.stamperContextTargetId;Om=Om.stamperIndex;if(!(_.b("mweb_see_fewer_shorts_group_dismissal")&&xj&&ph&&Bo))return!1;var r5;xj=O;for(var Fd,GJ,jZ=((Fd=xj)==null?0:Fd.targetId)?_.Mm((GJ=xj)==null?void 0:GJ.targetId):void 0;((r5=xj)==null?0:r5.parent)&&jZ!==Bo;)xj=xj.parent,GJ=Fd=void 0,jZ=((Fd=xj)==null?0:Fd.targetId)?_.Mm((GJ=xj)==null?void 0:GJ.targetId):void 0;r5=jZ===Bo?xj:void 0;if(!r5)return!1;var Ac;Bo=r5==null?void 0:(Ac=r5.stamperIndex)==null?void 0:
Ac.call(r5);return ph==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||ph==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Bo!=null&&Om!=null&&Bo>Om},R.ytGridShelfViewModelHostOptionalMediumLayoutMargin=a,R)),
el:_.fb(X),style:_.P0({"margin-left":(0,_.iM)(function(){return t().contentPadding}),
"margin-right":(0,_.iM)(function(){return t().contentPadding})})},_.A(_.v,{cond:function(){return _.r(c().header,eN5)},
then:function(ph){return _.A(_.dM,{data:ph,useUpdatedPadding:a,disableHorizontalPadding:!0})}}),_.A("div",null,_.A(_.Zh,{each:function(){return Array(Y())}},function(ph,Om){return _.A(kzc,{className:D.className,
items:C(Om),responsiveGridShelfLayout:t,contentAspectRatio:L})})),_.A("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.A(_.BX,{data:function(){return c().showMoreButton}},{buttonViewModel:function(ph){return _.A("div",{hidden:q},_.A(_.Ze,{data:ph.data,
onClick:Q}))}}),_.A(_.BX,{data:function(){return c().showLessButton}},{buttonViewModel:function(ph){return _.A("div",{hidden:H},_.A(_.Ze,{data:ph.data,
onClick:B}))}})))},"Qd");
_.ke.idomCompat=!0;var kzc=_.F(function(D){var C=D.items;var X=D.responsiveGridShelfLayout;var c=D.contentAspectRatio;D=D.className;var W=_.aX("div");hlW(W,function(){a:{var g=W.value;for(var a=C(),O=[],P=0;P<a.length;P++){var k=_.r(a[P],gi5);if(!k||k==null||!k.inlinePlayerData){g=null;break a}var u=g.children.item(P);if(!u){g=null;break a}O.push({thumbnailElement:u,videoData:k})}g={gridVideoPreviewData:{gridItems:O}}}return g});
var p=(0,_.iM)(function(){return-X().itemMargin});
return _.A("div",{el:W,class:_.g$("ytGridShelfViewModelGridShelfRow",D),style:_.P0({"margin-left":p,"margin-right":p})},_.A(_.BX,{data:C,replacementWrapper:function(g){return _.A(uKc,{responsiveGridShelfLayout:X},g)}},{shortsLockupViewModel:function(g){return _.A(uKc,{responsiveGridShelfLayout:X},_.A(VKx,{data:g.data,
aspectRatio:function(){return c()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.b("mweb_enable_one_line_title_on_shorts")?1:_.b("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(g){return _.A(uKc,{responsiveGridShelfLayout:X},_.A(_.jx,{data:g.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Rd"),uKc=_.F(function(D){return _.A("div",{style:_.P0({width:(0,_.iM)(function(){return D.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+D.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},D.children)},"Sd");
_.ke.idomCompat=!0;_.CI(_.ke,"grid-shelf-view-model",{props:{data:_.Bm,layoutContainerWidth:_.Bm,shouldUseOwnContainerSize:_.Bm,marginSettings:_.Bm,useUpdatedMargin:_.Bm,className:_.Bm}});_.QtN=_.F(function(D){var C=_.U(_.Li(!1,void 0,"FVl30c")),X=C.next().value,c=C.next().value;C={};return _.A("yt-alert-banner-view-model",{class:_.g$("ytAlertBannerViewModelHost",D.className,function(){var W;a:switch((W=D.data())==null?void 0:W.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":W="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":W="ytAlertBannerViewModelWarning";break a;default:W="ytAlertBannerViewModelInformational"}return W},(C.ytAlertBannerViewModelDismissed=
X,C.ytAlertBannerViewModelFullbleed=D.fullbleed,C.ytAlertBannerViewModelNarrow=D.narrow,C.ytAlertBannerViewModelIsInRichGrid=D.isInRichGrid,C))},_.A(_.v,{cond:function(){var W;
return!((W=D.data())==null?0:W.hideIcon)},
then:function(){return _.A("div",{class:"ytAlertBannerViewModelIcon"},_.A(_.$_,{icon:function(){return"info_circle"}}))}}),_.A("div",{class:"ytAlertBannerViewModelOuterContainer"},_.A("div",{class:"ytAlertBannerViewModelContainer"},_.A("div",{class:"ytAlertBannerViewModelContent"},_.A("div",{class:"ytAlertBannerViewModelHeading"},_.A(_.QG,{text:function(){var W;
return(W=D.data())==null?void 0:W.heading}})),_.A("div",{class:"ytAlertBannerViewModelBody"},_.A(_.QG,{text:function(){var W;
return(W=D.data())==null?void 0:W.body}})))),_.A(_.BX,{data:function(){var W;
return(W=D.data())==null?void 0:W.actionButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.A(_.BX,{data:function(){var W;
return(W=D.data())==null?void 0:W.dismissButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var p;((p=D.data())==null?0:p.disableLocalDismissBehavior)||c(!0)}})}}))},"Td");_.CI(_.QtN,"yt-alert-banner-view-model",{props:{data:_.Bm,fullbleed:_.Bm,narrow:_.Bm,isInRichGrid:_.Bm,className:_.Bm}});var Bck;_.uM=_.F(function(D){return _.A("basic-content-view-model",{class:_.g$("ytBasicContentViewModelHost",_.di(D.className))},_.A(_.v,{cond:function(){return D.data().headline},
then:function(C){return _.A("div",{class:"ytBasicContentViewModelHeadline"},_.A(_.QG,{text:C}))}}),_.A(_.Zh,{each:function(){return D.data().paragraphs||[]},
keyBy:"INDEX"},function(C){return _.A("div",{class:"ytBasicContentViewModelParagraph"},_.A(_.v,{cond:function(){var X=C();return!!(X.header||X.customHeader||X.headline)},
then:function(){return _.A(Bck,{paragraph:C})}}),_.A(_.v,{cond:function(){return C().asset||C().text},
then:function(){return _.A("div",{class:"ytBasicContentViewModelParagraphContent"},_.A(_.v,{cond:function(){return C().asset},
then:function(X){return _.A("div",{class:"ytBasicContentViewModelParagraphAsset"},_.A(_.BX,{data:X},{contentPreviewImageViewModel:_.ZX}))}}),_.A(_.v,{cond:function(){return C().text},
then:function(X){return _.A("div",{class:"ytBasicContentViewModelParagraphText"},_.A(_.QG,{text:X}))}}))}}))}))},"Ud");
Bck=_.F(function(D){var C=D.paragraph;return _.A(_.kQ,null,_.A(_.v,{cond:function(){return C().headline},
then:function(X){return _.A(_.QG,{text:X,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.A(_.BX,{data:function(){return C().header||C().customHeader}},{sectionHeaderViewModel:function(X){return _.A(_.dM,{data:X.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Vd");_.bv5=_.F(function(D){function C(){var B,K;O((K=(B=W)==null?void 0:B.isKeyBoardInUse())!=null?K:!1)}
function X(){O(!1)}
function c(){var B;return a()?(B=D.focusedClassName)==null?void 0:B.call(D):""}
var W=_.iX().resolve(_.vK(_.E7)),p=_.U(_.Li(!1,void 0,"SgkTXc")),g=p.next().value;p=p.next().value;var a=g,O=p,P=function(){var B,K;return((B=D.toggleable)==null?0:B.call(D))?(K=D.toggled)==null?void 0:K.call(D):void 0},k=_.I_(function(B){var K,L=(K=D.command)==null?void 0:K.call(D);
L&&_.iX().resolve(_.uX).resolveCommand(L);var t;(t=D.onClick)==null||t.call(D,B)}),u=_.I_(C),Q=_.I_(X);
return _.A(_.v,{cond:function(){var B;if(B=D.command){B=D.command();B=A4t(B);var K=B.href;B=!(!B.navigatingCommand||!K)}return B},
then:function(){return _.A(_.ty,Object.assign({},{command:D.command,style:D.style,ariaDescribedby:D.ariaDescribedby,ariaHidden:D.ariaHidden,ariaLabel:D.ariaLabel,ariaLabelledby:D.ariaLabelledby,ariaSelected:D.ariaSelected,disabled:D.disabled,dir:D.dir,tabIndex:D.tabIndex,target:D.target,title:D.title,onClick:D.onClick},{className:_.g$("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",D.className,function(){return c()}),
onFocusin:C,onFocusout:X,ariaCurrent:function(){var B,K;return(K=(B=D.ariaCurrent)==null?void 0:B.call(D))!=null?K:P()}}),D.children)},
else:function(){return _.A("button",{"on:click":k,"on:focusin":u,"on:focusout":Q,class:_.g$("ytButtonOrAnchorHost","ytButtonOrAnchorButton",D.className,function(){return c()}),
style:D.style,"aria-describedby":D.ariaDescribedby,"aria-hidden":D.ariaHidden,"aria-label":D.ariaLabel,"aria-labelledby":D.ariaLabelledby,"aria-pressed":P,dir:D.dir,disabled:D.disabled,tabindex:D.tabIndex,title:D.title},D.children)}})},"Wd");var riN=_.F(function(D){D=_.Ro(D,{disabled:!1});var C=D.active,X=D.disabled;D={};D=_.g$("ytSwitchShapeTrack",(D.ytSwitchShapeTrackActive=function(){return C()},D.ytSwitchShapeTrackDisabled=function(){return X()},D));
var c={};c=_.g$("ytSwitchShapeKnob",(c.ytSwitchShapeKnobActive=function(){return C()},c));
return _.A("switch-shape",{class:"ytSwitchShapeHost"},_.A("div",{class:D}),_.A("div",{class:c}))},"Xd");var KDk=_.F(function(D){var C=_.Ro(D,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),X=C.data;D=C.className;var c=C.handleOnTapEventInParent,W=C.parentActive,p=C.onTap;C=_.U(_.d2(function(){var Q;return(Q=W())!=null?Q:X().switchedOnByDefault||!1}));
var g=C.next().value,a=C.next().value,O=function(){return X().isDisabled},P=_.aX("button");
C=_.I_(function(Q){return Q.key==="Enter"?(Q.preventDefault(),P.value.click(),!1):!0});
var k=_.I_(function(Q){if(X().handleOnTapEventInParent||c())return!0;if(O())return!1;if(p)return p(Q),!0;FgJ(X(),g(),Q);a(!g());return!1}),u={};
u=_.g$("ytSwitchButtonViewModelButton",(u.ytSwitchButtonViewModelTappable=function(){return!O()},u));
return _.A("switch-button-view-model",{class:_.g$("ytSwitchButtonViewModelHost",D)},_.A("button",{el:P,class:u,"on:click":k,"on:keydown":C,"aria-label":function(){return g()?X().a11yLabelSwitchedOn:X().a11yLabelSwitchedOff},
"aria-checked":g,"aria-disabled":O,role:"switch"},_.A(riN,{active:g,disabled:O})))},"Yd");var h55=_.F(function(D){var C=D.data;var X=D.isLeading;var c=D.hideSelectionTextChevron;var W=D.isToggled;var p=D.shouldNotFillIcon;var g=function(){if(X())var u=C().leadingImage;else{var Q;u=(Q=C().trailingImage)!=null?Q:_.VX(C().themedTrailingImage)}return u},a=function(){a:switch(C().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var u="expand_more";
break a;default:u="chevron_right"}return u};
D={};var O=_.g$("yt-list-item-view-model__image-container",(D["yt-list-item-view-model__leading"]=X,D["yt-list-item-view-model__trailing"]=function(){return!X()},D)),P=_.g$("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
D={};var k=_.g$("yt-list-item-view-model__accessory",(D["yt-list-item-view-model__leading"]=X,D["yt-list-item-view-model__trailing"]=function(){return!X()},D));
return _.A(_.v,{cond:function(){var u=C(),Q=X();return!!(Q&&(u.leadingImage||u.leadingAccessory)||!Q&&(u.trailingImage||u.trailingButton||u.trailingButtons||u.selectionText||u.themedTrailingImage||u.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.A(_.kQ,null,_.A(_.v,{cond:g,then:function(u){return _.A("div",{class:O,"aria-hidden":"true"},_.A(_.M_,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var Q=(X()?C().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":C().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?X()?VK5(C().leadingIconAccessorySize):VK5(C().trailingIconAccessorySize):void 0;return Q},
className:P,isToggled:function(){return!(p==null?0:p())&&(W==null?void 0:W())}}))}}),_.A(_.v,{cond:function(){return X()&&C().leadingAccessory},
then:function(){return _.A("div",{class:O},_.A(_.BX,{data:function(){return C().leadingAccessory}},{avatarViewModel:function(u){return _.A(_.Iu,{data:u.data,
avatarButtonCustomClassName:P})},
collectionThumbnailViewModel:function(u){return _.A(nGJ,{data:u.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.A(_.v,{cond:function(){return!X()&&C().trailingButton},
then:function(){return _.A("div",{class:"yt-list-item-view-model__button-container"},_.A(_.BX,{data:function(){return C().trailingButton}},{buttonViewModel:function(u){return _.A(_.Ze,{data:u.data,
className:k})}}))}}),_.A(_.v,{cond:function(){var u;
return!X()&&((u=C().trailingButtons)==null?void 0:u.buttons)},
then:function(){return _.A("div",{class:"yt-list-item-view-model__button-container"},_.A(_.BX,{data:function(){var u;return(u=C().trailingButtons)==null?void 0:u.buttons}},{buttonViewModel:function(u){return _.A(_.Ze,{data:u.data,
className:k})},
accountLinkButtonViewModel:function(u){return _.A(bMx,{data:u.data,className:k})},
switchButtonViewModel:function(u){return _.A(KDk,{data:u.data,className:k})},
subscribeButtonViewModel:function(u){return _.A(_.I4,{data:u.data,isOverlay:!1,animateWidth:!1,className:k})},
toggleButtonViewModel:function(u){return _.A(_.o1,{data:u.data,className:k})}}))}}),_.A(_.v,{cond:function(){return!X()&&!!C().selectionText},
then:function(){return _.A(_.kQ,null,_.A(_.QG,{text:function(){return C().selectionText},
className:_.g$("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.A(_.v,{cond:function(){return!(c==null?0:c())},
then:function(){return _.A(_.$_,{icon:a,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.A(_.v,{cond:function(){return!X()&&C().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.A("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Zd");var xt4=_.F(function(D){var C=D.data;return _.A(_.v,{cond:function(){return C().title||C().subtitle},
then:function(){return _.A("div",{class:"yt-list-item-view-model__text-wrapper"},_.A(_.v,{cond:function(){return C().title},
then:function(X){return _.A("div",{class:"yt-list-item-view-model__title-wrapper"},_.A(_.QG,{text:X,className:"yt-list-item-view-model__title"}))}}),_.A(_.v,{cond:function(){return C().subtitle},
then:function(X){return _.A(_.QG,{text:X,className:"yt-list-item-view-model__subtitle"})}}))}})},"$d");var LDM=_.F(function(D){var C=D.data;var X=D.hideSelectionTextChevron;var c=D.TrailingAccessory;var W=D.isToggled;var p=D.disabled;var g=D.isSelectItem;var a=D.isCompact;var O=D.inPopup;var P=D.disableHorizontalPadding;var k=D.isTappableWithoutSelect;var u=D.useButtonOrAnchor;var Q=D.onTap;var B=D.shouldNotFillIcon;var K=function(){return _.A(xt4,{data:C,onTap:Q,useButtonOrAnchor:u,isTappableWithoutSelect:k,isToggled:W})};
D={};return _.A("div",{class:_.g$("yt-list-item-view-model__label",(D["yt-list-item-view-model__container"]=function(){return!(g==null?0:g())},D["yt-list-item-view-model__container--disabled"]=function(){return!!C().isDisabled||!(p==null||!p())},D["yt-list-item-view-model__container--has-subtitle"]=function(){return!!C().subtitle},D["yt-list-item-view-model__container--compact"]=a,D["yt-list-item-view-model__container--tappable"]=k,D["yt-list-item-view-model__container--in-popup"]=O,D["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(P==null?void 0:P())&&!(g==null?0:g())},D))},_.A(h55,{data:C,
isLeading:!0,hideSelectionTextChevron:X,isToggled:W,shouldNotFillIcon:B}),_.A(_.v,{cond:function(){return(u==null?void 0:u())&&(k==null?void 0:k())},
then:function(){return _.A(_.bv5,{command:function(){return _.EN(C().rendererContext)},
onClick:Q,className:"yt-list-item-view-model__button-or-anchor",toggleable:W!==void 0,toggled:W},_.A(K,null))},
else:function(){return _.A(K,null)}}),_.A(_.v,{cond:function(){return!!c},
then:function(){return _.A("div",{class:"yt-list-item-view-model__trailing"},c&&_.A(c,null))},
else:function(){return _.A(h55,{data:C,isLeading:!1,hideSelectionTextChevron:X,isToggled:W,shouldNotFillIcon:B})}}))},"ae");var mtb=_.F(function(D){var C=_.Ro(D,{checked:!1,disabled:!1});D=C.name;var X=C.onChange,c=C.onClick,W=C.checked,p=C.labelRenderable,g=C.hasLeadingLabel,a=C.labelClass,O=C.isCompact,P=C.selectElementClass,k=C.disableHorizontalPadding;C=C.disabled;var u="checkbox"+_.jP(_.vb),Q=_.I_(function(L){c==null||c(L);return!1}),B=_.I_(function(L){X==null||X(L);
return!1}),K={};
return _.A("checkbox-shape",null,_.A("label",{class:_.g$("ytCheckboxShapeHost",a,(K.ytCheckboxShapeHostCompact=O,K.ytCheckboxShapeDisableHorizontalPadding=k,K))},_.A("input",{class:"ytCheckboxShapeInput",id:u,checked:W,name:D,type:"checkbox",disabled:C,"prop:checked":W,"on:change":B,"on:click":Q}),_.A(_.v,{cond:function(){return!(g==null?0:g())},
then:function(){return _.A(stb,{isLeading:!0,selectElementClass:P})}}),_.A(_.v,{cond:function(){return!!p},
then:function(){return _.A("div",{class:"ytCheckboxShapeLabel"},p==null?void 0:p())}}),_.A(_.v,{cond:g,
then:function(){return _.A(stb,{isLeading:!1,selectElementClass:P})}})))},"be");
mtb.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var stb=_.F(function(D){var C=D.selectElementClass;D={};return _.A("div",{class:_.g$("ytCheckboxShapeCheckbox",C,(D.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(C==null?0:C())},D)),
"aria-hidden":"true"},_.A(_.$_,{icon:_.b("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.A(_.$_,{icon:_.b("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ce");_.Qu=_.F(function(D){var C=D.name;var X=D.onChange;var c=D.onClick;var W=D.checked;var p=D.labelRenderable;var g=D.useCheckIcon;var a=D.hasLeadingLabel;var O=D.labelClass;var P=D.isCompact;var k=D.selectElementClass;var u=D.ariaLabel;var Q=D.className;D=D.disabled;var B="radio"+_.jP(_.vb),K=_.aX("input"),L=_.b("enable_ios_webview_radio_button_responsiveness"),t=_.I_(function(R){K.value.checked=!(W==null||!W());X==null||X(R);return!1}),Y=_.I_(function(R){c==null||c(R);
return!1}),y=_.U(_.Li(!1,void 0,"Ucg5gd")),J=y.next().value,T=y.next().value;
y=_.I_(function(){var R;((R=_.iX().resolve(_.vK(_.E7)))==null?0:R.isKeyBoardInUse())&&T(!0)});
var H=_.I_(function(){T(!1)}),q={};
return _.A("radio-shape",{class:_.g$("yt-radio-shape",Q)},_.A("input",{el:K,class:"yt-radio-shape__input",id:B,"prop:checked":W,name:C,type:"radio",disabled:D,"on:change":t,"on:click":Y,"aria-label":u,"on:focusin":y,"on:focusout":H}),_.A("label",{class:_.g$("yt-radio-shape__label-container",O,(q["yt-radio-shape--compact"]=P,q["yt-radio-shape__label-container--keyboard-focused"]=J,q)),for:B},_.A(_.v,{cond:function(){return!(a==null?0:a())},
then:function(){return _.A(e5q,{checked:W,useCheckIcon:g,isLeading:!0,selectElementClass:k,usePassthrough:L})}}),_.A(_.v,{cond:function(){return!!p},
then:function(){var R={};return _.A("div",{class:_.g$("yt-radio-shape__label",(R["yt-radio-shape--event-passthrough"]=L,R)),"aria-hidden":function(){return(u==null?0:u())?"true":"false"}},p==null?void 0:p())}}),_.A(_.v,{cond:a,
then:function(){return _.A(e5q,{checked:W,useCheckIcon:g,isLeading:!1,selectElementClass:k,usePassthrough:L})}})))},"de");
_.Qu.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var e5q=_.F(function(D){var C=D.useCheckIcon;var X=D.selectElementClass;D=D.usePassthrough;var c=function(){return(C==null?0:C())?"CHECK":_.b("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},W={};
return _.A("div",{class:_.g$("yt-radio-shape__radio",X,(W["yt-radio-shape__radio--check-icon"]=C,W["yt-radio-shape__radio--radio-default-style"]=function(){return!(X==null?0:X())},W["yt-radio-shape--event-passthrough"]=D,W)),
"aria-hidden":"true"},_.A(_.$_,{icon:c}),_.A(_.$_,{icon:c,active:function(){return!(C==null?0:C())}}))},"ee");_.Bb=_.F(function(D){var C=D.data;var X=D.isMenuItem;var c=D.isCompact;var W=D.onTap;var p=D.trailingAccessory;var g=D.hideSelectionTextChevron;var a=D.disabled;var O=D.inPopup;var P=D.disableHorizontalPadding;var k=D.isOverlay;var u=D.isToggled;var Q=D.ariaLabel;var B=D.ariaPressed;var K=D.shouldNotFillIcon;var L=!_.b("web_enable_killswitch_for_selectable_list_item_on_tap_fix");D=!_.b("web_enable_killswitch_for_skip_child_tags");var t=_.uu(function(ib){return TSm(C(),ib)}),Y=function(){return(P==
null?void 0:P())||C().disableHorizontalPadding},y=function(){return _.b("enable_web_shorts_captions_language_command")||_.b("web_shorts_audio_track_picker")||C().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},J=function(){return y()?Object.assign({},C(),t().data):C()},T=function(){return!!J().isDisabled||!(a==null||!a())},H=_.JKF(function(){return J().rendererContext}),q=function(){return!(J().isSelected===void 0||!J().selectionStyle||J().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
R=function(){return(_.tG(J().rendererContext)||W)&&!q()},ph={},Om=_.g$("yt-list-item-view-model__container",(ph["yt-list-item-view-model__container--tappable"]=function(){return _.tG(J().rendererContext)||q()},ph["yt-list-item-view-model__container--compact"]=c,ph["yt-list-item-view-model__container--in-popup"]=O,ph["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(Y==null?void 0:Y())&&q()},ph)),xj=function(){return J().leadingImage||J().leadingAccessory},Bo=_.g$("yt-list-item-view-model__image-container",
function(){return xj()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
ph=_.V2t();var r5=_.U(_.Li(!1,void 0,"D1Nwsd")),Fd=r5.next().value,GJ=r5.next().value,jZ=function(){return _.A(LDM,{data:J,hideSelectionTextChevron:g,TrailingAccessory:p,isToggled:u,disabled:a,isSelectItem:q,isCompact:c,inPopup:O,disableHorizontalPadding:Y,isTappableWithoutSelect:R,useButtonOrAnchor:Ac,onTap:W,shouldNotFillIcon:K})},Ac=_.b("web_button_or_anchor_list_item");
r5={};return _.A("yt-list-item-view-model",{el:_.fb(_.NH(function(){return T()?void 0:J().rendererContext},void 0,void 0,Ac?["A".toString(),
"BUTTON".toString()]:[]),HSm(function(ib){if(!T()){var d5;if(d5=L)d5=J().selectionStyle,d5=d5==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||d5==="LIST_ITEM_SELECTION_STYLE_RADIO"||d5==="LIST_ITEM_SELECTION_STYLE_DEFAULT";d5||W==null||W(ib)}},D?["A".toString(),
"BUTTON".toString()]:[]),Czo(function(){return R==null?void 0:R()},{focusin:function(){var ib;
((ib=_.iX().resolve(_.vK(_.E7)))==null?0:ib.isKeyBoardInUse())&&GJ(!0)},
focusout:function(){GJ(!1)}})),
class:_.g$("yt-list-item-view-model",(r5["yt-list-item-view-model--is-overlay"]=k,r5["yt-list-item-view-model--keyboard-focused"]=Fd,r5["yt-list-item-view-model--hidden"]=function(){return y()?t().isHidden:!1},r5)),
role:function(){return(X==null?0:X())?"menuitem":"listitem"},
tabindex:function(){var ib=R();ib=Ac?void 0:W||ib?0:void 0;return ib},
"on:keydown":ph,"aria-label":function(){var ib;return(Q==null?void 0:Q())||((ib=H())==null?void 0:ib.label)},
"aria-pressed":B},_.A(_.v,{cond:q,then:function(){return _.A(_.G4,null,_.A(_.wq,{when:function(){return J().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.A(mtb,{labelRenderable:jZ,
isCompact:c,checked:function(){return J().isSelected},
hasLeadingLabel:function(){return!!xj()},
labelClass:Om,selectElementClass:Bo,disableHorizontalPadding:Y,onClick:L?W:void 0,disabled:T})}),_.A(_.wq,{when:function(){return J().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.A(_.Qu,{labelRenderable:jZ,
isCompact:c,checked:function(){return J().isSelected},
hasLeadingLabel:function(){return!!xj()},
labelClass:Om,selectElementClass:Bo,onClick:L?W:void 0,disabled:T})}),_.A(_.wq,{when:function(){return J().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.A(_.Qu,{labelRenderable:jZ,
isCompact:c,checked:function(){return J().isSelected},
hasLeadingLabel:function(){return!!xj()},
labelClass:Om,selectElementClass:Bo,useCheckIcon:!0,onClick:L?W:void 0,disabled:T})}),_.A(_.Fr,null,jZ))},
else:jZ}))},"fe");
_.Bb.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.bM=_.F(function(D){var C=_.U(_.BC({canHaveZeroSize:!1})),X=C.next().value;C=C.next().value;var c=function(){return cMn(X.width(),D.data().responsiveContainerConfiguration)||RlW(X.width(),D.data().linearLayoutContainerConfiguration)};
return _.A("yt-linear-layout-view-model",{el:_.fb(C),class:"ytLinearLayoutViewModelHost"},_.A("div",{class:_.g$("ytLinearLayoutViewModelContainer",function(){a:switch(D.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var W="ytLinearLayoutViewModelHorizontal";break a;default:W="ytLinearLayoutViewModelVertical"}return W},function(){var W=D.data().linearLayoutContainerConfiguration;
return W?[qQF(W.flexDirection),f_t(W.justifyContent),dpF(W.alignItems)].join(" "):""}),
style:function(){var W;var p=((W=c())==null?void 0:W.containerStyles)||{};return _.P0(p)()}},_.A(_.BX,{data:function(){return D.data().items},
wrapper:function(W,p,g){return _.A("div",{style:function(){var a=g(),O;if((O=c())==null)a=void 0;else{var P=O.itemStyles,k=a===0,u,Q;var B=(Q=(u=D.data().items)==null?void 0:u.length)!=null?Q:0;a=P.call(O,k,a===B-1)}return _.P0(a||{})()}},W())}},{lockupViewModel:function(W){return _.A(_.jx,{data:W.data,
containerLayoutConfig:function(){var p;return(p=c())==null?void 0:p.containerLayoutConfig}})},
basicContentViewModel:_.uM,buttonViewModel:_.Ze,linearLayoutViewModel:_.bM,thumbnailViewModel:_.yw,descriptionPreviewViewModel:_.fE,listItemViewModel:_.Bb,sectionHeaderViewModel:_.dM})))},"ge");_.CI(_.bM,"yt-linear-layout-view-model",{props:{data:_.Bm}});_.CI(_.fd,"chips-shelf-view-model",{props:{data:_.Bm,callback:_.R3,selectionBehavior:_.Bm,disableChipsScrollAnimation:_.Bm}});_.CI(_.F(function(D){return _.A("yt-comment-filter-context-view-model",{class:_.g$("ytCommentFilterContextHost",D.className)},_.A(_.QG,{text:function(){return D.data().text}}))},"he"),"yt-comment-filter-context-view-model",{props:{data:_.Bm,
className:_.R3}});_.ERJ=_.F(function(D){var C=D.data;var X=D.onTap;var c=D.onSwitch;var W=D.overrideDisabled;D=D.disableHorizontalPadding;var p=_.U(_.d2(function(){var Q;return((Q=GHh(k()))==null?void 0:Q.switchedOnByDefault)||!1})),g=p.next().value,a=p.next().value;
p=_.U(_.Li(!1,void 0,"V0hCrd"));var O=p.next().value,P=p.next().value,k=function(){var Q;if(!(Q=C().switchButton)){var B=C();Q=W==null?void 0:W();B={switchOnCommand:B.switchOnCommand,switchOffCommand:B.switchOffCommand,switchedOnByDefault:B.switchedOnByDefault,isDisabled:B.isDisabled,a11yLabelSwitchedOn:B.a11yLabelSwitchedOn,a11yLabelSwitchedOff:B.a11yLabelSwitchedOff};Q!==void 0&&(B.isDisabled=Q);Q={switchButtonViewModel:B}}return Q},u=function(Q){var B=GHh(k());
!B||B.isDisabled||C().ignoreTapUntilCommandCompletes&&O()||(X==null||X(Q),FgJ(B,g(),Q,C().ignoreTapUntilCommandCompletes,P),a(!g()),c==null||c(g()))};
return _.A("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.A(_.Bb,{data:function(){return{title:C().title,subtitle:C().attributedSubtitle,leadingImage:C().leadingImage,leadingAccessory:C().leadingAccessory,isDisabled:C().isDisabled}},
onTap:u,isToggled:g,shouldNotFillIcon:!0,trailingAccessory:function(){return _.A(_.BX,{data:k},{switchButtonViewModel:function(Q){return _.A(KDk,{data:Q.data,parentActive:g,onTap:u})}})},
disableHorizontalPadding:D}))},"ie");var tEb=_.F(function(D){var C=_.U(_.d2(function(){var W,p;return!!((W=D.data())==null?0:(p=W.initialState)==null?0:p.isToggled)})),X=C.next().value,c=C.next().value;
return _.A("toggleable-list-item-view-model",{el:_.fb(_.NH(function(){return D.data().rendererContext},{onTap:function(W,p){p();
c(!X())}})),
class:_.g$("toggleableListItemViewModelHost",D.className)},_.A(_.v,{cond:function(){if(X()){var W=D.data().toggledListItem;W=_.r(W,_.KT)}else W=D.data().defaultListItem,W=_.r(W,_.KT);return W},
then:function(W){return _.A(_.Bb,{data:W,isToggled:X,ariaLabel:function(){var p=X()?D.data().toggledListItem:D.data().defaultListItem,g;p=(g=_.r(p,_.KT))==null?void 0:g.rendererContext;var a;return(a=_.r(p,_.by))==null?void 0:a.label},
ariaPressed:function(){return X()}})}}))},"je");var Nc4=_.I7("DOWNLOAD",{},"Download"),Yhf=_.I7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),yi5=_.I7("RETRY",{},"Retry"),nR5=_.I7("PAUSE_DOWNLOADING",{},"Pause downloading"),w5J=_.I7("RESUME_DOWNLOAD",{},"Resume download"),oKR={text:Nc4,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},rE={text:Yhf,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},SEm={text:yi5,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Wod={text:nR5,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},pgm={text:w5J,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var FDN=_.F(function(D){var C=function(){var a=D.data();a=_.EN(a.rendererContext);var O;return(O=_.r(a,_.vX))==null?void 0:O.videoId},X=_.uu(function(a){var O=C(),P=a95(D.data());
return O?_.YP(a,O):P?_.yZ(a,P):"TRANSFER_STATE_UNKNOWN"}),c=_.ku(_.ler,C),W=_.uu(function(a){return _.zfW(a,C(),a95(D.data()))}),p=function(){return gKh(X(),c(),_.EN(D.data().rendererContext),!!a95(D.data()))},g=function(){return W()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.A("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:g},_.A(_.v,{cond:function(){return!g()},
then:function(){return _.A(_.v,{cond:p,then:function(a){return _.A(_.Zh,{each:a},function(O){return _.A(_.Bb,{data:O,isCompact:D.isCompact,isMenuItem:D.isMenuItem,inPopup:D.inPopup,disableHorizontalPadding:D.disableHorizontalPadding})})}})}}))},"ke");
FDN.idomCompat=!0;_.Zve=_.F(function(D){var C=D.data;var X=D.isCompact;var c=D.hideSelectionTextChevron;var W=D.inPopup;var p=D.isOverlay;var g=D.disableHorizontalPadding;var a=function(){return I9j(C())&&(W==null?void 0:W())},O=_.b("web_list_view_model_listbox_killswitch")?"menu":"listbox";
D=_.I_(function(k){if(W!=null&&W()&&_.b("web_enable_arrow_key_navigation_in_dropdown")){var u=_.Sm3(k.currentTarget),Q=u.length;if(Q!==0){var B=Array.prototype.indexOf.call(u,document.activeElement);switch(k.key){case "ArrowDown":k.preventDefault();var K;(K=u[(B+1)%Q])==null||K.focus();break;case "ArrowUp":k.preventDefault();var L;(L=u[B===-1?Q-1:(B-1+Q)%Q])==null||L.focus()}}}});
var P={};return _.A("yt-list-view-model",{class:_.g$("ytListViewModelHost",(P.ytListViewModelHostKaiosSpatNav=ST5&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",P)),role:function(){return a()?O:"list"},
style:_.P0({"max-height":function(){var k,u=(k=C())==null?void 0:k.visibleElementCount;if(u)return(u+.5)*40+"px"}}),
"on:keydown":D},_.A(_.BX,{data:function(){return C().listItems}},{listItemViewModel:function(k){return _.A(_.Bb,{data:k.data,
isMenuItem:a,isCompact:X,hideSelectionTextChevron:c,inPopup:W,isOverlay:p,disableHorizontalPadding:g})},
toggleableListItemViewModel:function(k){return _.A(tEb,{data:k.data})},
downloadListItemViewModel:function(k){return _.A(FDN,{data:k.data,isMenuItem:a,isCompact:X,inPopup:W,disableHorizontalPadding:g})},
switchListItemViewModel:function(k){return _.A(_.ERJ,{data:k.data,disableHorizontalPadding:g})}}))},"le");
_.Zve.idomCompat=!0;var Gze=_.F(function(D){var C=D.data;var X=D.isOverlay;D={};return _.A("yt-course-perks-view-model",{class:_.g$("ytwCoursePerksViewModelHost",(D.ytwCoursePerksViewModelHostOverlay=X,D))},_.A("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A("div",null,_.A(_.v,{cond:function(){return C().perks},
then:function(c){return _.A(_.Zve,{data:function(){return{listItems:c()}},
isCompact:!0,isOverlay:X})}})))},"me");_.CI(Gze,"yt-course-perks-view-model",{props:{data:_.R3,isOverlay:_.R3}});_.CI(_.F(function(D){var C=D.data;return _.A("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.A("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.A(_.QG,{text:function(){return C().progressSummary}})),_.A("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.A("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.P0({width:function(){return C().progressPercentage*100+"%"}})})))},"ne"),"yt-course-progress-view-model",{props:{data:_.Bm}});var VEg=_.F(function(D){var C={};return _.A("yt-progress-view-model",{class:_.g$("ytwProgressViewModelHost",(C.ytwProgressViewModelHostOverlay=_.di(D.isOverlay,!1),C))},_.A(_.v,{cond:function(){return D.data().progressSummary},
then:function(X){return _.A("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.A(_.QG,{text:X}))}}),_.A("div",{class:"ytwProgressViewModelHostProgressContainer"},_.A(_.v,{cond:function(){return D.data().leadingLabel},
then:function(X){return _.A("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.A(_.QG,{text:X}))}}),_.A("div",{class:"ytwProgressViewModelHostProgressBar"},_.A("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(D.data().progressPercentage||0)*100+"%"}}))))},"oe");var rg=_.F(function(D){var C=D.starNumber;var X=D.data;var c=function(){var W;return((W=X())==null?void 0:W.rating)||0};
return _.A(_.v,{cond:function(){return C()},
then:function(W){return _.A(_.G4,null,_.A(_.wq,{when:function(){return c()>=W()-.25}},function(){return _.A("div",{class:"ytStarRatingViewModelHostStar"},_.A(_.$_,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.A(_.wq,{when:function(){return c()>=W()-.75}},function(){return _.A("div",{class:"ytStarRatingViewModelHostStar"},_.A(_.$_,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.A(_.Fr,null,function(){return _.A("div",{class:"ytStarRatingViewModelHostStar"},_.A(_.$_,{icon:"STAR",
size:function(){return 24}}))}))}})},"pe"),Tcc=_.F(function(D){D=D.data;
return _.A("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.A(rg,{starNumber:1,data:D}),_.A(rg,{starNumber:2,data:D}),_.A(rg,{starNumber:3,data:D}),_.A(rg,{starNumber:4,data:D}),_.A(rg,{starNumber:5,data:D}))},"qe");_.CI(_.F(function(D){var C=_.Ro(D,{}).data;return _.A("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.A("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.A(_.QG,{text:function(){var X;return(X=C())==null?void 0:X.title}})),_.A("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.A(_.v,{cond:function(){return C().starProgressViewModels},
then:function(X){return _.A("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.A(_.BX,{data:X},{progressViewModel:VEg}))}}),_.A("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.A("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.A(_.QG,{text:function(){var X;
return(X=C())==null?void 0:X.averageRatingLabel}})),_.A(_.v,{cond:function(){return C().zeroStateText},
then:function(X){return _.A("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.A(_.QG,{text:X}))}}),_.A(_.v,{cond:function(){return C().starRatingViewModel},
then:function(X){return _.A("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.A(_.BX,{data:X},{starRatingViewModel:Tcc}))}}),_.A("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.A(_.QG,{text:function(){var X;
return(X=C())==null?void 0:X.totalRatingsCountLabel}})))))},"re"),"yt-course-ratings-view-model",{props:{data:_.R3}});var Hvk;Hvk={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.JiM=_.F(function(D){var C=_.aX("yt-learning-journey-loader-view-model"),X=_.PX();_.H2(function(){requestAnimationFrame(function(){var W;(W=X.lottieEl)==null||W.addEventListener("DOMLoaded",function(){var p;(p=D.onLottieLoaded)==null||p.call(D)})});
var c=D.data().browseEndpoint;c&&_.FV(c)});
return _.A("yt-learning-journey-loader-view-model",{class:_.g$("learningJourneyLoaderViewModelHost",D.className),"data-target-id":function(){return D.data().targetId||""},
el:C},_.A(_.zl,{className:_.g$("learningJourneyLoaderViewModelLoader",D.className),animationName:function(){return Hvk.animationConfig.name},
data:Hvk,animationRef:X}))},"te");_.CI(_.JiM,"yt-learning-journey-loader-view-model",{props:{data:_.Bm,className:_.R3,onLottieLoaded:_.R3}});var z5g=_.F(function(D){var C=function(){return D.data()},X=function(){return!!_.xf(_.Km(C())).optionColor},c=_.U(_.Li(-1,void 0,"gXOYR")),W=c.next().value,p=c.next().value,g=function(u){return W()===u},a=function(u){return C().correctAnswerIndex===u},O=function(){return W()!==-1};
c=_.U(_.Li("",void 0,"BFwDQb"));var P=c.next().value,k=c.next().value;return _.A("learning-journey-quiz-view-model",{class:_.g$("learningQuizComponentHost","learningJourneyQuizYoututorHost",D.className),style:_.P0({background:function(){return _.xf(_.Km(C())).backgroundColor}})},_.A("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},P),_.A("div",{class:"learningQuizComponentQuizContainer"},_.A("div",{class:"learningQuizComponentQuiz"},_.A("div",{class:"learningQuizComponentQuizContent"},_.A(_.v,{cond:function(){return!!C().aiGeneratedQuizLabel},
then:function(){return _.A("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.A(_.QG,{text:function(){return C().aiGeneratedQuizLabel}}))}}),_.A("div",{class:"learningQuizComponentQuizHeader",
style:_.P0({"align-items":function(){return C().overflowMenu?"start":"center"}})},_.A("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.P0({"min-height":function(){return C().overflowMenu?"48px":"26px"}})},_.A("div",{class:"learningJourneyQuizYoututorText",
style:_.P0({color:function(){return _.xf(_.Km(C())).primaryTextColor}})},_.A(_.QG,{text:function(){return C().questionHeaderText}})))),_.A("div",{class:"learningQuizComponentQuizSubheader",
style:_.P0({color:function(){return _.xf(_.Km(C())).secondaryTextColor}})},_.A(_.QG,{text:function(){var u=C();
return O()?u.explanationText:u.questionSubheaderText}}))),_.A("div",{role:"group",
class:_.g$("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.A(_.Zh,{each:function(){return C().optionsData||[]}},function(u,Q){var B={};
return _.A("button",{class:_.g$("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(B.learningQuizComponentQuizHover=function(){return!O()},B.learningQuizComponentQuizOptionWithCustomColor=X,B.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return O()&&a(Q())},B.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return W()!==C().correctAnswerIndex&&g(Q())},B.learningQuizComponentQuizIncorrectShake=
function(){return W()!==C().correctAnswerIndex&&g(Q())},B)),
"on:click":_.I_(function(){_.V6(_.iO(),{data:u});if(O())return!1;p(Q());var K,L;k(a(Q())?((K=C().successTitle)==null?void 0:K.content)||"":((L=C().failureTitle)==null?void 0:L.content)||"");return!1}),
style:_.P0({background:"transparent"}),"aria-description":function(){var K,L;return O()?a(Q())?(K=C().successTitle)==null?void 0:K.content:(L=C().failureTitle)==null?void 0:L.content:""},
"aria-disabled":O},_.A("div",{class:"learningQuizComponentQuizOptionContainer"},_.A(_.QG,{text:u.optionText}),_.A(_.v,{cond:function(){var K=Q();return O()&&(g(K)||a(K))},
then:function(){var K={};return _.A(_.$_,{className:_.g$("learningJourneyQuizYoututorOptionIcon",(K.learningQuizComponentQuizPulse=function(){return W()===C().correctAnswerIndex&&a(Q())},K)),
size:24,icon:function(){return a(Q())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.A(_.v,{cond:O,
then:function(){return _.A("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.A("div",{class:"learningJourneyQuizYoututorExplanationText"},_.A(_.QG,{text:function(){return C().explanationHeaderText}})),_.A(_.QG,{text:function(){return C().optionsData[W()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ue");
z5g.idomCompat=!0;var AMt=new Set,OJj=null;var jtf;_.MEd=_.F(function(D){var C=null,X=null,c=null,W=function(){return D.data()},p=function(){return _.xf(_.Km(W()))},g=function(){return!!p().optionColor},a=_.U(_.Li(-1,void 0,"H2gnQb")),O=a.next().value,P=a.next().value,k=function(T){return O()===T},u=function(T){return W().correctAnswerIndex===T},Q=function(){return O()!==-1},B=function(){return O()===W().correctAnswerIndex},K=function(){var T=W(),H=Q(),q=B();
return H?q?T.successTitle:T.failureTitle:T.questionHeaderText},L=function(){var T=Q(),H=B();
return T?H?264685:264684:264683},t=function(){var T=W();
return Q()?T.explanationText:T.questionSubheaderText},Y=function(){return!!W().video},y=function(T){return B()&&u(T)},J=_.I_(function(){P(-1);
return!1});
return _.A(_.v,{cond:function(){return W().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.A(z5g,{data:function(){return W()}})},
else:function(){return _.A("learning-journey-quiz-view-model",{class:_.g$("learningQuizComponentHost",D.className),style:_.P0({background:function(){return p().backgroundColor}})},_.A(_.v,{cond:Y,
then:function(){return _.A("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.P0({background:function(){return p().videoBackgroundColor}})},_.A(_.BX,{data:function(){return W().video}},{lockupViewModel:function(T){return _.A(_.jx,{data:T.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.A("div",{class:"learningQuizComponentQuizContainer"},_.A("div",{class:"learningQuizComponentQuiz"},_.A("div",{class:"learningQuizComponentQuizContent"},_.A(_.v,{cond:function(){return!!W().aiGeneratedQuizLabel},
then:function(){return _.A("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.A(_.QG,{text:function(){return W().aiGeneratedQuizLabel}}))}}),_.A("div",{class:"learningQuizComponentQuizHeader",
style:_.P0({"align-items":function(){return W().overflowMenu?"start":"center"}})},_.A("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.P0({"min-height":function(){return W().overflowMenu?"48px":"26px"}})},_.A("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.fb(function(T){_.Lm(L(),T,C,function(H){C=H})}),
style:_.P0({color:function(){return p().primaryTextColor}}),
"client-ve-type":L},_.A(_.QG,{text:K}))),_.A("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.A(_.v,{cond:Q,then:function(){return _.A("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.fb(function(T){_.Lm(264687,T,X,function(H){X=H})}),
"on:click":J,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.A("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.P0({fill:function(){return p().primaryTextColor}})},_.A("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"})))}}),
_.A(_.BX,{data:function(){return W().overflowMenu}},{buttonViewModel:function(T){return _.A(_.Ze,{data:T.data})}}))),_.A("div",{class:"learningQuizComponentQuizSubheader",
el:_.fb(function(T){_.Lm(264688,T,c,function(H){c=H})}),
style:_.P0({color:function(){return p().secondaryTextColor}}),
"client-ve-type":264688},_.A(_.QG,{text:t}))),_.A("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.A(_.Zh,{each:function(){return W().optionsData||[]}},function(T,H){var q={};
return _.A("button",{class:_.g$("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(q.learningQuizComponentQuizHover=function(){return!Q()},q.learningQuizComponentQuizOptionWithCustomColor=g,q.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return y(H())},q.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!B()&&k(H())},q.learningQuizComponentQuizIncorrectShake=function(){return!B()&&
k(H())},q.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return Q()&&!k(H())},q)),
"on:click":_.I_(function(){_.V6(_.iO(),{data:T});if(Q())return!1;P(H());return!1}),
style:_.P0({background:function(){var R=H();return Q()&&k(R)?"":g()?p().optionColor:"transparent"}}),
"aria-disabled":Q},_.A("div",{class:"learningQuizComponentQuizOptionContainer"},_.A(_.v,{cond:Q,then:function(){return _.A(jtf,{isOptionCorrect:u,optionIndex:H,isOptionSelectedAndCorrect:y,colors:p})}}),_.A(_.QG,{text:T.optionText})))})))))}})},"ve");
jtf=_.F(function(D){var C={};return _.A("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var X=D.optionIndex();return D.isOptionCorrect(X)?"0 0 24 24":"0 -960 960 960"},
class:_.g$("learningJourneyQuizViewModelQuizOptionIconLeading",(C.learningQuizComponentQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},C)),
style:_.P0({fill:function(){return D.colors().primaryTextColor}})},_.A("path",{d:function(){var X=D.optionIndex();
return D.isOptionCorrect(X)?"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"}}))},"we");
_.MEd.idomCompat=!0;_.CI(_.MEd,"learning-journey-quiz-view-model",{props:{data:_.Bm,className:_.Bm}});var qhJ=_.F(function(D){var C=_.U((0,_.pgq)(function(){var g;return{targetId:(g=D.data().config)==null?void 0:g.suspenseKey,contents:[D.data()]}})).next().value,X=_.iX().resolve(_.uX),c=function(){var g=C().contents.length>0?C().contents[0]:void 0;
return g==null?void 0:g.config},W=function(){var g;
return(g=c())==null?void 0:g.entityTriggerConfig},p=_.ku(gIj,function(){var g,a;
return(a=(g=W())==null?void 0:g.entityKey)!=null?a:""});
_.Jw(function(){var g,a,O,P=(O=Number((g=W())==null?void 0:(a=g.invalidationTimestamp)==null?void 0:a.seconds))!=null?O:0,k,u,Q;if(((Q=Number((k=p())==null?void 0:(u=k.lastUpdated)==null?void 0:u.seconds))!=null?Q:0)>P){var B;(g=(B=c())==null?void 0:B.continuationCommand)&&X.resolveCommand(g)}},"tC8nKe");
return _.A("yt-suspense-view-model",{class:_.g$("ytSuspenseViewModelHost")},_.A(_.BX,{data:function(){var g;return(g=c())==null?void 0:g.contents}},{lockupViewModel:_.jx}))},"ye");var fA5=_.F(function(D){var C=_.Ro(D,{palette:void 0,isLastItem:!1}),X=C.palette,c=C.isLastItem,W=function(){return D.data().isHighlighted},p=function(){var O;
return $P5((O=X())==null?void 0:O.iconDisabledColor)},g=function(){var O;
return $P5((O=X())==null?void 0:O.primaryTitleColor)},a=function(){var O;
return $P5((O=X())==null?void 0:O.secondaryTitleColor)};
C={};return _.A("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.fb(_.NH(function(){return D.data().rendererContext}))},_.A(_.BX,{data:function(){return D.data().thumbnail}},{thumbnailViewModel:_.yw}),_.A("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.A("div",{class:_.g$("ytMacroMarkerListItemViewModelTimeDescription",(C.ytMacroMarkerListItemViewModelHighlighted=W,C)),
style:_.P0({"background-color":function(){return W()?g():p()},
color:function(){return W()?"":a()}})},_.A(_.QG,{text:function(){return D.data().timestamp}})),_.A("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.P0({"background-color":function(){return c()?"transparent":p()}})}),_.A("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(W()?g():a())}},_.A(_.QG,{text:function(){return D.data().title}}))))},"ze");_.KZ=_.F(function(D){function C(g5){y("transform:translateX("+(_.q6("HTML_DIR")==="rtl"?"":"-")+g5+"px)")}
function X(g5){return Math.min(Math.max(g5,0),Y()-R())}
function c(){var g5=H()+Bo();return W()?(Math.round(R()/g5)||1)*g5:0}
var W=function(){return D.data().items||[]},p=function(){return D.data().previousButton},g=function(){return D.data().nextButton},a=function(){var g5,oq;
return(oq=(g5=D.disableArrows)==null?void 0:g5.call(D))!=null?oq:!1},O=function(){var g5;
return!((g5=D.forceNarrowLayout)==null||!g5.call(D))},P=_.tw(function(){var g5;
return!((g5=D.centerAlignItems)==null||!g5.call(D))&&Y()<=R()},void 0,"Uto0kc"),k=_.aX("horizontal-shelf-view-model"),u=_.aX("div"),Q=_.U(_.Li(0,void 0,"G0xZB")),B=Q.next().value,K=Q.next().value;
Q=_.U(_.Li(0,void 0,"kqCYFf"));var L=Q.next().value,t=Q.next().value,Y=L;L=_.U(_.Li("",void 0,"Hh6Uye"));Q=L.next().value;var y=L.next().value;L=_.U(_.Li(0,void 0,"yMGBKb"));var J=L.next().value,T=L.next().value,H=J;L=_.U(_.Li(0,void 0,"VChthd"));J=L.next().value;var q=L.next().value,R=J;L=_.U(_.Li(!1,void 0,"qJlhhe"));var ph=L.next().value,Om=L.next().value;L=_.U(_.Li(0,void 0,"x7H94"));J=L.next().value;var xj=L.next().value,Bo=J;L=_.U(_.Li(0,void 0,"ksuUee"));var r5=L.next().value,Fd=L.next().value;
L=_.U(_.Li("50%",void 0,"uxCxde"));var GJ=L.next().value,jZ=L.next().value,Ac=function(){var g5,oq=(g5=D.data())==null?void 0:g5.responsiveContainerConfiguration,rx,Rq;return oq?GU(oq==null?void 0:oq.responsiveSize):(Rq=(rx=D.sizing)==null?void 0:rx.call(D))!=null?Rq:"STANDARD"};
L=_.tw(function(){return!a()&&B()>0},void 0,"XK60w");
J=_.tw(function(){return!a()&&B()<Y()-R()},void 0,"D22LVd");
var ib=function(){K(X(B()-c()));C(B())},d5=function(){K(X(B()+c()));
C(B())},ub=function(){k.value!==null&&Nf()},L5;
_.JU(function(){Nf();window.ResizeObserver?(L5=new ResizeObserver(_.t6(ub,0)),L5.observe(k.value)):window.addEventListener("resize",ub)});
_.z3(function(){if(window.ResizeObserver){var g5;(g5=L5)==null||g5.disconnect()}else window.removeEventListener("resize",ub)});
var Nf=function(){var g5=k.value.clientWidth,oq=D.includeMargin!==void 0?D.includeMargin():!1,rx;var Rq=D.hasPeek!==void 0?D.hasPeek():!((rx=D.data())==null||!rx.hasPeek);g5=_.Zw({containerWidth:g5,hasPeek:Rq,sizing:Ac(),marginSettings:oq?O()?4:1:0});xj(g5.gutter);Fd(g5.margin);T(g5.itemWidth);Om(g5.maxContainerWidth<528||O());q(g5.maxContainerWidth);W()&&t((g5.itemWidth+g5.gutter)*W().length-g5.gutter);if(W()){var K5;if(((K5=D.thumbnailAspectRatio)==null?void 0:K5.call(D))!==void 0){var C1;jZ(H()/
Zc5((C1=D.thumbnailAspectRatio)==null?void 0:C1.call(D))/2+"px")}else jZ("50%")}},xt={},u6={};
return _.A("horizontal-shelf-view-model",{class:_.g$("ytwHorizontalShelfViewModelHost",D.className),el:k},_.A(_.v,{cond:function(){var g5;return D.data().header&&!((g5=D.horizontalShelfExperiments)==null?0:g5.call(D).hideHeader)},
then:function(){return _.A("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.P0({width:function(){return R()+"px"},
padding:function(){return"0 "+r5()+"px"}})},_.A(_.BX,{data:function(){return D.data().header}},{sectionHeaderViewModel:function(g5){return _.A(_.dM,{data:g5.data,
disableHorizontalPadding:!0,forceSmallLayout:ph,useResponsiveLayout:!0})}}))}}),_.A("div",{class:_.g$("ytwHorizontalShelfViewModelOuterContainer",(xt.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return P()},xt)),
style:_.P0({"margin-top":function(){var g5,oq=D.data().header&&!((g5=D.horizontalShelfExperiments)==null?0:g5.call(D).hideHeader),rx;return(((rx=D.ensureMarginTop)==null?0:rx.call(D))&&!oq?12:0)+"px"}})},_.A("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.P0({width:function(){return R()+"px"},
padding:function(){return"0 "+r5()+"px"},
overflow:function(){return a()?"auto":"hidden"}})},_.A("div",{class:_.g$("ytwHorizontalShelfViewModelItems",(u6.ytwHorizontalShelfViewModelCenterAlignItems=function(){return P()},u6)),
el:u,style:Q},_.A(_.BX,{data:W},{macroMarkerListItemViewModel:function(g5,oq){return _.A("div",{style:_.P0({width:function(){return H()+"px"},
"margin-right":function(){return(oq()===W().length-1?0:Bo())+"px"}})},_.A(fA5,{data:g5.data,
palette:_.di(D.palette),isLastItem:function(){return oq()===W().length-1}}))},
lockupViewModel:function(g5,oq){var rx=g5.data;return _.A("div",{style:_.P0({width:function(){return H()+"px"},
"margin-right":function(){return(oq()===W().length-1?0:Bo())+"px"}})},_.A(_.jx,{data:rx,
containerType:4,sizing:Ac,protectBackground:D.protectBackground,thumbnailFixedWidth:function(){return vKJ(rx())+"px"},
thumbnailTargetWidth:function(){return vKJ(rx())}}))},
suspenseViewModel:function(g5,oq){return _.A("div",{style:_.P0({width:function(){return H()+"px"},
"margin-right":function(){return(oq()===W().length-1?0:Bo())+"px"}})},_.A(qhJ,{data:g5.data}))}}))),_.A(_.v,{cond:L,
then:function(){return _.A("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.P0({top:function(){return GJ()}})},_.A(_.BX,{data:p},{buttonViewModel:function(g5){return _.A(_.Ze,{data:g5.data,
onClick:ib})}}))}}),_.A(_.v,{cond:J,
then:function(){return _.A("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.P0({top:function(){return GJ()}})},_.A(_.BX,{data:g},{buttonViewModel:function(g5){return _.A(_.Ze,{data:g5.data,
onClick:d5})}}))}})))},"Ae");
_.KZ.idomCompat=!0;var dtk=_.F(function(D){var C=function(){return D.data().targetId||""},X=function(){var L;
return((L=D.data())==null?void 0:L.expansionEntityKey)||""},c=_.ku(_.UTm,X),W=!0,p=function(){var L;
return((L=c())==null?void 0:L.value)===C()},g=function(L){_.fG(_.bK("stringEntity",X(),{key:X(),
value:L?C():""}))};
_.H2(function(){W=!1;D.data().isExpanded&&g(!0)});
var a=function(){if(p()){var L=!0;D.onCollapse!==void 0&&(L=D.onCollapse());L&&g(!1)}else g(!0)},O=_.I_(a),P=function(){var L;
return(((L=D.accordionStyle)==null?void 0:L.call(D))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},k=_.aX("div"),u=function(){var L,t;
return(t=(L=_.r(D.data().rendererContext,_.by))==null?void 0:L.label)!=null?t:""},Q=function(){var L,t;
return{disabled:(L=D.hideIfNotExpanded)==null?void 0:L.call(D),ariaHidden:(t=D.hideIfNotExpanded)==null?void 0:t.call(D)}},B={},K={};
return _.A("yt-accordion-item-view-model",{class:_.g$("ytAccordionItemViewModelHost",D.className,(B.ytAccordionItemViewModelExpanded=function(){return p()},B.ytAccordionItemViewModelHidden=function(){var L;
return(L=D.hideIfNotExpanded)==null?void 0:L.call(D)},B.ytAccordionItemViewModelMini=P,B)),
"data-target-id":C},_.A("div",{class:"ytAccordionItemViewModelContainer"},_.A("div",{class:"ytAccordionItemViewModelLeftSection","on:click":O,title:u,"aria-hidden":function(){var L;return(L=D.hideIfNotExpanded)==null?void 0:L.call(D)}},_.A(_.QG,{text:function(){return D.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:u})),_.A("div",{class:"ytAccordionItemViewModelRightSection"},_.A(_.BX,{data:function(){return p()?D.data().expandButton:D.data().collapseButton}},{buttonViewModel:function(L){return _.A(_.Ze,{data:L.data,
className:"ytAccordionItemViewModelToggleButton",onClick:a,buttonOverrides:Q})}}))),_.A("div",{class:"ytAccordionItemViewModelContainer"},_.A("div",{class:_.g$("ytAccordionItemViewModelContent",(K.ytAccordionItemViewModelExpandedSubtitle=function(){return p()},K)),
el:k,style:_.P0({"max-height":function(){return W?"auto":p()?k.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!p()}},_.A(_.v,{cond:function(){return!P()},
then:function(){return _.A(_.QG,{text:function(){return D.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.A(_.BX,{data:function(){return D.data().content}},{horizontalShelfViewModel:function(L){return _.A(_.KZ,{data:L.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ce");_.R55=_.F(function(D){var C=_.U((0,_.pgq)(D.data)).next().value,X=function(){return D.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},c=function(){return X()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.U(_.Li(!0,void 0,"VFpYAb")),p=W.next().value,g=W.next().value,a=function(){return c()&&p()},O=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){g(!p())}}},P=_.I_(function(){C().onTitleTap&&_.FV(C().onTitleTap||{})});
W={};return _.A("yt-accordion-view-model",{class:_.g$("ytAccordionViewModelHost",(W.ytAccordionViewModelMinimized=function(){return a()},W)),
"data-target-id":function(){return D.data().targetId||""}},_.A(_.v,{cond:function(){return c()||!!C().title},
then:function(){return _.A("div",{class:"ytAccordionViewModelHeader"},_.A("div",{class:"ytAccordionViewModelTitleSection"},_.A("div",{class:"ytAccordionViewModelTitleWrapper"},_.A(_.v,{cond:function(){return!!D.data().headerIcon},
then:function(){return _.A(_.$_,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var k;return(k=D.data().headerIcon)==null?void 0:k.iconType}})}}),_.A("div",{class:"ytAccordionViewModelTitle",
"on:click":P},_.A(_.QG,{className:"ytAccordionViewModelTitleText",text:function(){return C().title}})))),_.A("div",{class:"ytAccordionViewModelButtonSection"},_.A(_.v,{cond:c,
then:function(){return _.A(_.FC,{data:O,iconName:function(){return a()?"chevron_down":"chevron_collapse"}})}})))}}),_.A("div",{class:"ytAccordionViewModelContent"},_.A(_.BX,{data:function(){return C().contents}},{accordionItemViewModel:function(k){return _.A(dtk,{data:k.data,
className:"ytAccordionViewModelRow",accordionStyle:X,hideIfNotExpanded:a,onCollapse:function(){return c()?(g(!0),!1):!0}})}})),_.A("div",null,_.A(_.v,{cond:function(){return!c()&&(!!C().disclaimerFooter||!!C().footer)},
then:function(){return _.A("div",{class:"ytAccordionViewModelFooter"},_.A(_.QG,{text:function(){return C().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.A(_.BX,{data:function(){return D.data().footer}},{flexibleActionsViewModel:function(k){return _.A(_.AS,{data:k.data,
layout:0})}}))}})))},"De");_.CI(_.R55,"yt-accordion-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=null,X=null,c,W=(c=_.iX().resolve(_.vK(_.Hc)))==null?void 0:c(),p=_.U(_.Li(!1,void 0,"CmEVtc"));c=p.next().value;var g=p.next().value;p=_.U(_.Li(!0,void 0,"yo9dR"));var a=p.next().value,O=p.next().value,P=_.aX("textarea",function(t){_.Lm(264503,t,C,function(Y){C=Y})}),k=function(t){g(!0);
t={learningJourneyFormData:{query:t}};_.FV(D.data().searchEndpoint||{},{form:{formData:t}});return!1},u=_.I_(function(t){t.target.closest("button-view-model")&&g(!0)});
p=_.I_(function(){O(P.value.value.length===0)});
var Q=_.I_(function(t){if(t.key==="Enter"&&!t.shiftKey&&!a()){var Y=t.target;t.preventDefault();k(Y.value)}}),B={},K={},L={};
return _.A("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.A("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.A(_.M_,{data:function(){return D.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.A("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.A("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.A("div",{class:_.g$("ytLearningJourneyZeroStateSearchBar",(B.ytLearningJourneyZeroStateSearchBarDark=W,B))},_.A("textarea",{class:_.g$("ytLearningJourneyZeroStateTextInput",(K.ytLearningJourneyZeroStateTextInputDark=W,K)),el:P,"on:keyup":p,"on:keydown":Q,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.A("div",{class:_.g$("ytLearningJourneyZeroStateSearchButtonContainer",(L.ytLearningJourneyZeroStateSearchButtonContainerDark=W,L))},_.A(_.Ze,{data:function(){return _.r(D.data().searchButton,_.is)},
className:"search-button",onClick:function(){return k(P.value.value)},
buttonOverrides:function(){return{disabled:a(),style:W?"mono-inverse":"mono",size:"XL"}}}))),_.A(_.v,{cond:function(){return!!D.data().errorBanner},
then:function(){return _.A("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.fb(function(t){_.Lm(264617,t,X,function(Y){X=Y})})},_.A(_.BX,{data:function(){return D.data().errorBanner}},{alertBannerViewModel:function(t){return _.A(_.QtN,{data:t.data,
"client-ve-type":264617})}}))}})),_.A(_.v,{cond:c,
then:function(){return _.A("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.A(_.BX,{data:function(){return D.data().loader}},{learningJourneyLoaderViewModel:function(t){return _.A(_.JiM,{data:t.data})}}))},
else:function(){return _.A("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.A(_.v,{cond:function(){return!!D.data().learningJourneyShelf},
then:function(){return _.A("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.A("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().learningJourneySectionTitle}),_.A(_.BX,{data:function(){return D.data().learningJourneyShelf}},{horizontalShelfViewModel:function(t){return _.A(_.KZ,{data:t.data,
centerAlignItems:!0})}}))}}),_.A("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.A("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().suggestedJourneySectionTitle}),_.A("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":u},_.A(_.BX,{data:function(){return D.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(t){return _.A(_.AS,{data:t.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ee"),"yt-learning-journey-zero-state",{props:{data:_.Bm}});var lA5=_.F(function(D){var C=D.data;return _.A("ytvl-live-leaderboard-item-action-content-view-model",{class:_.g$("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.A(_.QG,{text:function(){var X;return(X=C())==null?void 0:X.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.A(_.BX,{data:function(){return C().actionButton}},{buttonViewModel:function(X){return _.A(_.Ze,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:X.data})}}))},"Fe");var DRp=_.F(function(D){var C=D.data;return _.A("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.g$("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.A(_.QG,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var X;return(X=C())==null?void 0:X.displayName},
ellipsisTruncate:!0}),_.A(_.BX,{data:function(){return C().badge}},{buttonViewModel:function(X){return _.A(_.Ze,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:X.data})}}))},"Ge");_.CI(_.F(function(D){var C=D.data;return _.A("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.A("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.A(_.QG,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var X;return(X=C())==null?void 0:X.rank}})),_.A("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu})),_.A("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.A(_.BX,{data:function(){return C().content}},{liveLeaderboardItemChannelContentViewModel:DRp,
liveLeaderboardItemActionContentViewModel:lA5})),_.A(_.QG,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var X;return(X=C())==null?void 0:X.points}}))},"He"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;return _.A("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.A(_.QG,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var X,c;return(X=C())==null?void 0:(c=X.ranking)==null?void 0:c.rank}}),_.A("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu})),_.A(_.QG,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var X,c;return(X=C())==null?void 0:(c=X.channelContent)==null?void 0:c.channelName}}),_.A(_.QG,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var X;return(X=C())==null?void 0:X.points}}))},"Ie"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Bm}});var CtU=_.F(function(D){D=_.Ro(D,{wrapper:!1}).wrapper;return _.A(_.v,{cond:D,then:function(){return _.A("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.A("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.A("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Je");
CtU.idomCompat=!0;var Xok=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],cWU=_.F(function(D){var C=D.data;var X=_.fb(),c=_.tw(function(){return C().command},void 0,"fyYsT");
_.Jw(function(){c()&&_.yK(c(),{form:{element:X.value}})},"B0nxdb");
return _.A("div",{el:X,class:"YtQrCodeRendererHostContainer"},_.A(_.v,{cond:function(){return C().qrCodeImage},
then:function(W){return _.A(_.M_,{data:W,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.A(_.v,{cond:function(){return C().spinner},
then:function(){return _.A(CtU,null)}})}}),_.A(_.v,{cond:function(){return C().label},
then:function(W){return _.A(_.QG,{text:W,className:"YtQrCodeRendererHostLabel"})}}),_.A(_.v,{cond:function(){return C().labels},
then:function(W){return _.A("div",{class:"YtQrCodeRendererHostLabels"},_.A(_.Zh,{each:W},function(p){return _.A(_.QG,{text:p})}))}}))},"Me");_.CI(_.F(function(D){var C=D.data;var X=_.tw(function(){return C().qrEntityKey},void 0,"LmZ2xf"),c=_.tw(function(){return C().deleteEntityOnDismiss},void 0,"my0Tzb"),W=_.tw(function(){return C().command},void 0,"hzECIb"),p=_.ku(bcr,X);
D=_.tw(function(){return C().qrCodeImage},void 0,"AnD9rc");
var g=_.tw(function(){return C().style&&Xok.includes(C().style)},void 0,"f5fZv"),a=_.kb({visibilityCallback:function(O){O&&W()&&_.yK(W())},
showOption:{calledOnce:!0,state:"visible"}});_.JU(function(){_.z3(function(){c()&&X()&&_.qw().dispatch(_.bK("qrCodeEntity",X()))})});
return _.A("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.fb(a)},_.A(_.v,{cond:g,then:function(){return _.A(_.v,{cond:p,then:function(O){return _.A(cWU,{data:O})}})}}),_.A(_.v,{cond:D,
then:function(O){return _.A(_.M_,{data:O,alt:""})}}))},"Ke"),"yt-qr-code-renderer",{props:{data:_.Bm}});var Wrt=_.F(function(D){var C=function(){return _.e_(1728053247&(D.barColor!==void 0?iy(D.barColor()):4278190080))};
return _.A("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.A("div",{class:"ytVideoOverviewGhostCardDetails"},_.A(ojX,{animationDelay:0,percentWidth:100,barColor:function(){return C()}}),_.A(ojX,{animationDelay:600,
percentWidth:60,barColor:function(){return C()}})))},"Ne"),ojX=_.F(function(D){return _.A("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+D.percentWidth()+"%"}},_.A("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var C=D.animationDelay(),X=D.barColor();return"animation-delay:"+C+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+X+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Oe");var poY;_.Smo=_.F(function(D){function C(Y){g(Y)}
var X=D.data;var c=_.aX("yt-video-overview-view-model"),W=_.IX("div");D=_.U(_.Li(-1,void 0,"dW11He"));var p=D.next().value,g=D.next().value;D=_.U(_.Li(0,void 0,"LqrsK"));var a=D.next().value,O=D.next().value,P={},k=_.ku(iJm,function(){return X().asyncDataEntityKey}),u=function(){var Y;
if((Y=k())==null?0:Y.videoOverviewViewModel){var y;return _.r((y=k())==null?void 0:y.videoOverviewViewModel,mMc)}return X()};
_.JU(function(){O(Math.min((c.value.clientWidth-24)/4-8,72))});
var Q=function(Y){g(Y);(W==null?0:W.value)&&W.value.children[Y]&&W.value.children[Y].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
hlW(c,function(){var Y;if((Y=u())==null||!Y.inlinePlaybackEndpoint)return null;var y;Y=P==null?void 0:(y=P.thumbnailElRef)==null?void 0:y.value;if(!Y)return null;var J;y=(J=u())==null?void 0:J.inlinePlaybackEndpoint;J=_.r(y,H0c);return{multipleVideoPreviewData:{data:(J==null?0:J.playerDescriptors)&&(J==null?0:J.playerDescriptors.length)?J.playerDescriptors:[],thumbnailElement:Y,trackingParams:"test",callbacks:{onPlaybackStarted:Q},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var B=function(){var Y;return((Y=u())==null?void 0:Y.headerSubtext)!==void 0?!0:!1},K=function(){var Y,y=iy((Y=u())==null?void 0:Y.titleColor);
return y?"color: "+_.e_(y)+";":void 0},L=function(){var Y,y=iy((Y=u())==null?void 0:Y.subtextColor);
return y?"color: "+_.e_(y)+";":void 0},t=function(){return _.A("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.A("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return K()}},_.A(_.QG,{text:function(){var Y;
return(Y=u())==null?void 0:Y.headerText}})),_.A(_.v,{cond:B,
then:function(){return _.A("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.A("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return L()}},_.A(_.$_,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.A("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return L()}},_.A(_.QG,{text:function(){var Y;
return(Y=u())==null?void 0:Y.headerSubtext}})))}}))};
D={};return _.A("yt-video-overview-view-model",{class:_.g$("ytGenAiVideoOverviewViewModelHost",(D.ytGenAiVideoOverviewViewModelMweb=!1,D.ytGenAiVideoOverviewViewModelDesktop=!0,D)),el:c,style:function(){var Y,y=iy((Y=u())==null?void 0:Y.backgroundColor);return y?"background-color: "+_.e_(y)+";":void 0}},_.A(_.v,{cond:function(){var Y;
return(Y=u())==null?void 0:Y.isLoading},
then:function(){return _.A(Wrt,{barColor:function(){var Y;return(Y=u())==null?void 0:Y.titleColor}})},
else:function(){return _.A(_.kQ,null,null,_.A("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.A(_.BX,{data:function(){var Y;return(Y=u())==null?void 0:Y.thumbnail}},{thumbnailViewModel:function(Y){return _.A(_.yw,{data:Y.data,
aspectRatio:0,playbackRef:rB5(P)})}})),_.A("div",{class:"ytGenAiVideoOverviewViewModelDetails"},t(),_.A(_.v,{cond:function(){var Y,y,J,T;
return((Y=u())==null?void 0:(y=Y.listItems)==null?void 0:y.length)!==void 0&&((J=u())==null?void 0:(T=J.listItems)==null?void 0:T.length)>0?!0:!1},
then:function(){return _.A("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:W},_.A(_.Zh,{each:function(){var Y;return(Y=u())==null?void 0:Y.listItems}},function(Y,y){return _.A(poY,{image:Y.image,
index:y,isSelected:function(){return y()===p()},
onClick:C,itemWidth:a})}))}}),_.A("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.A("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return K()}},_.A(_.QG,{text:function(){var Y,y,J,T,H,q,R;
return(R=(Y=u())==null?void 0:(y=Y.listItems)==null?void 0:(J=y[p()])==null?void 0:J.headline)!=null?R:(T=u())==null?void 0:(H=T.listItems)==null?void 0:(q=H[0])==null?void 0:q.headline}})),_.A("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return L()}},_.A(_.QG,{text:function(){var Y,y,J,T,H,q,R;
return(R=(Y=u())==null?void 0:(y=Y.listItems)==null?void 0:(J=y[p()])==null?void 0:J.subtext)!=null?R:(T=u())==null?void 0:(H=T.listItems)==null?void 0:(q=H[0])==null?void 0:q.subtext}})))))}}))},"Pe");
poY=_.F(function(D){var C=D.image;var X=D.itemWidth;var c=D.index;var W=D.isSelected;var p=D.onClick;D=_.I_(function(){c!==void 0&&p!==void 0&&p(c());return!1});
var g={};return _.A("div",{class:_.g$("ytGenAiVideoOverviewViewModelCarouselItem",(g.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return W==null?void 0:W()},g)),
style:function(){return"width: "+X()+"px;"},
"on:click":D},_.A(_.M_,{data:C,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.A(_.v,{cond:function(){return W==null?void 0:W()},
then:function(){return _.A("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.A("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Qe");
_.Smo.idomCompat=!0;_.CI(_.Smo,"yt-video-overview-view-model",{props:{data:_.Bm}});_.URp=_.F(function(D){var C=D.data;var X=D.topbarOffset;var c,W=((c=_.iX().resolve(_.vK(_.Hc)))==null?void 0:c())||!1;return _.A("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var p=C();var g,a,O=W?(g=p.config)==null?void 0:g.darkThemeBackgroundColor:(a=p.config)==null?void 0:a.lightThemeBackgroundColor;p=O?_.mW(O):void 0;p="background-color: "+p+";";X!==void 0&&(p+="top: -"+X()+"px;");return p},
"aria-hidden":!0},_.A(_.v,{cond:function(){var p,g,a;return!!((p=C().backgroundImageConfig)==null?0:(g=p.image)==null?0:(a=g.sources)==null?0:a.length)},
then:function(){return _.A(_.M_,{data:function(){var p;return(p=C().backgroundImageConfig)==null?void 0:p.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.A("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+kwm(W,C().gradientColorConfig)+";"}}))},"Re");
_.URp.idomCompat=!0;var gjG=_.F(function(D){var C=D.data;var X=D.isOverlay;return _.A("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.A("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.A(_.BX,{data:function(){return C().header}},{sectionHeaderViewModel:function(c){return _.A(_.dM,{data:c.data,
isOverlay:X})}})),_.A("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.A(_.BX,{data:function(){return C().channelInfoButtons}},{flexibleActionsViewModel:_.AS})),_.A("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.A(_.BX,{data:function(){return C().description}},{descriptionPreviewViewModel:function(c){return _.A(_.fE,{data:c.data,
isOverlay:X})}})))},"Se");
gjG.idomCompat=!0;var anY=_.F(function(D){var C=D.data;var X={};return _.A("factoid-view-model",{class:_.g$("ytwFactoidViewModelHost",(X.ytwFactoidViewModelHostOverlay=D.isOverlay,X))},_.A(_.QG,{text:function(){return C().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.A(_.QG,{text:function(){return C().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Te");
anY.idomCompat=!0;var Inw=_.F(function(D){var C=D.data;var X=D.isOverlay;return _.A("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.A(_.BX,{data:function(){return C().factoids}},{factoidViewModel:function(c){return _.A(anY,{data:c.data,
isOverlay:X})}}))},"Ue");
Inw.idomCompat=!0;_.Oh3=_.F(function(D){var C=D.data;var X=D.isOverlay;return _.A("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.A(_.BX,{data:function(){return C().items}},{channelInfoViewModel:function(c){return _.A("div",{class:"ytwCourseMetadataViewModelHostItem"},_.A(gjG,{data:c.data,
isOverlay:X}))},
coursePerksViewModel:function(c){return _.A("div",{class:"ytwCourseMetadataViewModelHostItem"},_.A(Gze,{data:c.data,isOverlay:X}))},
descriptionPreviewViewModel:function(c){return _.A("div",{class:"ytwCourseMetadataViewModelHostItem"},_.A(_.fE,{data:c.data,isOverlay:X}))},
factoidsRowViewModel:function(c){return _.A("div",{class:"ytwCourseMetadataViewModelHostItem"},_.A(Inw,{data:c.data,isOverlay:X}))},
progressViewModel:function(c){return _.A("div",{class:"ytwCourseMetadataViewModelHostItem"},_.A(VEg,{data:c.data,isOverlay:X}))}}))},"Ve");var AWt=_.F(function(D){return _.A("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.A(_.BX,{data:function(){return D.data().content}},{courseMetadataViewModel:function(C){return _.A(_.Oh3,{data:C.data,
isOverlay:D.isOverlay})},
progressViewModel:function(C){return _.A(VEg,{data:C.data})}}))},"We");var PtG=_.F(function(D){var C=D.data;D=D.className;var X=function(){var W;return _.tG((W=C())==null?void 0:W.rendererContext)},c={};
c=(c.dynamicTextViewModelHost=!0,c.dynamicTextViewModelHostTappable=function(){return X()},c);
return _.A("yt-dynamic-text-view-model",{el:_.fb(_.NH(function(){var W;return(W=C())==null?void 0:W.rendererContext})),
role:function(){return X()?"link":void 0},
tabindex:function(){return X()?0:void 0},
class:_.g$(D,c)},_.A("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var W,p,g;return(g=(p=_.r((W=C())==null?void 0:W.rendererContext,_.by))==null?void 0:p.label)!=null?g:""}},_.A(_.QG,{text:function(){return C().text},
userInput:!0})))},"Xe");
PtG.idomCompat=!0;_.hz=_.F(function(D){var C=D.data;var X=D.isPositionRelative;var c=_.Q55("(max-width: 527.9px)"),W=function(){var p,g;return(g=(p=C())==null?void 0:p.style)!=null?g:"IMAGE_BANNER_STYLE_FULL_BLEED"};
D={};return _.A("yt-image-banner-view-model",{el:_.fb(_.NH(function(){var p;return(p=C())==null?void 0:p.rendererContext})),
class:_.g$((D.ytImageBannerViewModelHost=!0,D.ytImageBannerViewModelInset=function(){return B6d(W())},D.ytImageBannerViewModelPositionAbsolute=function(){return _.Mm(!0)&&!(X==null?0:X())},D.ytImageBannerViewModelSmallInset=function(){return B6d(W())&&c()},D.ytImageBannerViewModelTappable=function(){var p;
return _.tG((p=C())==null?void 0:p.rendererContext)},D))},_.A(_.v,{cond:function(){var p;
return(p=C())==null?void 0:p.image},
then:function(){return _.A(_.M_,{data:function(){return C().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.A(_.BX,{data:function(){var p;
return(p=C())==null?void 0:p.overlays}},{thumbnailHoverOverlayViewModel:au}))},"Ye");
_.hz.idomCompat=!0;var $RP;$RP=_.F(function(D){var C=D.condition;var X=D.content;return _.A(_.v,{cond:C,then:function(){return _.A("div",{class:"yt-page-header-view-model__scroll-container"},X())},
else:function(){return X()}})},"Ze");
_.vjX=_.F(function(D){var C=D.data;var X=D.noPadding;var c=D.enableBanner;var W=D.cinematicContainerTopbarOffset;var p=D.allowCinematicContainerOverflow;var g=D.displayAsSidebar;var a=D.displayAsPanel;var O=D.alwaysUseMediumTextDescription;var P=bJF(),k=function(){return!!C().image||!!C().animatedImage},u=function(){return!!C().background},Q=function(){return(g==null?0:g())||(a==null?0:a())?1:P()},B=function(){return Q()===1},K=function(){return B()||Q()===2},L=function(){return Q()===4},t=function(){var r5=
C();
var Fd=!!C().heroImage;var GJ=Q(),jZ=rMn(C()),Ac=g==null?void 0:g(),ib=!r5.metadata,d5;if(d5=Fd?_.r(r5.heroImage,iuN):_.r(r5.animatedImage||r5.image,iuN)){r5=d5.style;var ub=d5.layoutMode;if(ub!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(d5=flF(qld(d5)),Fd)Fd=u6r(GJ,r5,ub,d5,Ac);else b:if(ib)Fd=GJ===1?{size:48}:{size:72};else switch(GJ){case 1:Fd={size:72};break b;case 2:Fd={size:120};break b;default:Fd=jZ<4?{size:120}:{size:160}}else Fd=void 0}else Fd={size:0};return Fd};
D={};D=_.g$((D["yt-page-header-view-model"]=!0,D["yt-page-header-view-model--no-padding"]=function(){return!(X==null||!X())},D["yt-page-header-view-model--small-top-padding"]=function(){return B()&&!C().actions&&!(a==null?0:a())||Q()===2&&!(k()||C().heroImage)},D["yt-page-header-view-model--small-bottom-padding"]=function(){return K()&&!C().actions&&!(a==null?0:a())},D["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(p==null?0:p())},D["yt-page-header-view-model--display-as-sidebar"]=
g,D));
var Y={},y=_.g$((Y["yt-page-header-view-model__page-header-headline"]=!0,Y["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var r5;return(r5=t())==null?void 0:r5.allowFullWidth},Y)),J=function(){var r5;
return K()&&!((r5=t())==null?0:r5.allowFullWidth)},T=function(){return B()&&(!!C().heroImage||k())&&rMn(C())>0},H=function(){return T()&&(a==null?void 0:a())};
Y={};var q=_.g$((Y["yt-page-header-view-model__page-header-title"]=!0,Y["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!T()},Y["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return T()&&!H()},Y["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=H,Y["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=u,Y));
Y={};var R=_.g$((Y["yt-page-header-view-model__page-header-headline-image"]=!0,Y["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!C().heroImage&&K()},Y));
Y={};var ph=_.g$((Y["yt-page-header-view-model__page-header-banner-container"]=c,Y["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var r5;return(c==null?void 0:c())&&((r5=_.r(C().banner,_.uuN))==null?void 0:r5.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},Y));
Y={};var Om=_.g$((Y["yt-page-header-view-model__page-header-content-metadata"]=!0,Y["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=u,Y));Y={};var xj=_.g$((Y["yt-page-header-view-model__page-header-flexible-actions"]=!0,Y["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!C().metadata||K()},Y["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!K()},Y));
Y={};var Bo=_.g$((Y["yt-page-header-view-model__page-header-attribution"]=!0,Y["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=u,Y));return _.A("yt-page-header-view-model",{class:D},_.A(_.v,{cond:u,then:function(){return _.A("div",{class:"yt-page-header-view-model__page-header-background"},_.A(_.BX,{data:function(){return C().background}},{cinematicContainerViewModel:function(r5){return _.A(_.URp,{data:r5.data,
topbarOffset:W})}}))}}),_.A($RP,{condition:function(){return!(g==null||!g())},
content:function(){return _.A("div",{class:"yt-page-header-view-model__page-header-content"},_.A(_.v,{cond:function(){return(c==null?void 0:c())&&C().banner},
then:function(){return _.A("div",{class:ph},_.A(_.BX,{data:function(){return C().banner}},{imageBannerViewModel:_.hz}))}}),_.A("div",{class:y},_.A(_.v,{cond:k,
then:function(){return _.A(_.BX,{data:function(){var r5;if(!(r5=C().animatedImage)){r5=C();if(k()){var Fd=r5=Object.assign({},r5),GJ=Q(),jZ=rMn(C()),Ac=Fd.image,ib=_.r(Ac,kce),d5=ib==null?void 0:ib.avatar,ub=_.r(d5,_.yX);if(Ac&&d5&&ub){switch(GJ){case 1:ub.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ub.avatarImageSize="AVATAR_SIZE_XXL";break;default:jZ<4?ub.avatarImageSize="AVATAR_SIZE_XXL":ub.avatarImageSize="AVATAR_SIZE_XXXL"}_.mp(d5,_.yX,Object.assign({},ub));ib.avatar=Object.assign({},d5);_.mp(Ac,
kce,Object.assign({},ib));Fd.image=Object.assign({},Ac)}}r5=r5.image}return r5}},{contentPreviewImageViewModel:function(r5){return _.A(_.ZX,{data:r5.data,
className:R,imageSizeConfig:t})},
decoratedAvatarViewModel:function(r5){return _.A(_.Og,{data:r5.data,className:R})}})}}),_.A(_.v,{cond:function(){return!!C().heroImage&&!J()},
then:function(){return _.A(_.BX,{data:function(){return C().heroImage}},{contentPreviewImageViewModel:function(r5){return _.A(_.ZX,{data:r5.data,
className:R,imageSizeConfig:t})}})}}),_.A("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.A(_.v,{cond:function(){return!!C().heroImage&&J()},
then:function(){return _.A("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.A(_.BX,{data:function(){return C().heroImage}},{contentPreviewImageViewModel:function(r5){return _.A(_.ZX,{data:r5.data,
className:R,imageSizeConfig:t})}}))}}),_.A(_.BX,{data:function(){return C().title}},{dynamicTextViewModel:function(r5){return _.A(PtG,{data:r5.data,
className:q})}}),_.A(_.BX,{data:function(){return C().metadata}},{contentMetadataViewModel:function(r5){return _.A(_.Vw,{data:r5.data,
layout:function(){return B()?1:0},
className:Om,isOverlay:u,useMediumText:L})}}),_.A(_.v,{cond:function(){return C().description&&!B()},
then:function(){return _.A(_.BX,{data:function(){return C().description}},{descriptionPreviewViewModel:function(r5){return _.A(_.fE,{data:r5.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:u,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(O==null?void 0:O())||L()}})}})}}),_.A(_.v,{cond:function(){return C().attribution&&!K()},
then:function(){return _.A(_.BX,{data:function(){return C().attribution}},{attributionViewModel:function(r5){return _.A(GO,{data:r5.data,
className:Bo,useMediumText:L})}})}}),_.A(_.v,{cond:function(){return C().actions&&!K()},
then:function(){return _.A(_.BX,{data:function(){return C().actions}},{flexibleActionsViewModel:function(r5){return _.A(_.AS,{data:r5.data,
layout:function(){return KoZ(Q())},
className:xj})}})}}))),_.A("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.A(_.v,{cond:function(){return C().description&&B()},
then:function(){return _.A(_.BX,{data:function(){return C().description}},{descriptionPreviewViewModel:function(r5){return _.A(_.fE,{data:r5.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:u,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(O==null?void 0:O())||L()}})}})}}),_.A(_.v,{cond:function(){return C().attribution&&K()},
then:function(){return _.A(_.BX,{data:function(){return C().attribution}},{attributionViewModel:function(r5){return _.A(GO,{data:r5.data,
className:Bo,useMediumText:L})}})}}),_.A(_.v,{cond:function(){return C().actions&&K()},
then:function(){return _.A(_.BX,{data:function(){return C().actions}},{flexibleActionsViewModel:function(r5){return _.A(_.AS,{data:r5.data,
layout:function(){return KoZ(Q())},
className:xj})}})}})),_.A("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.A(_.BX,{data:function(){return C().bottomMetadataFlexibleContainer}},{flexibleContainer:function(r5){return _.A(AWt,{data:r5.data,
isOverlay:u})}})))}}))},"$e");
_.vjX.idomCompat=!0;_.CI(_.F(function(D){var C=_.U(_.Li(!1,void 0,"qvRy4d")),X=C.next().value,c=C.next().value;return _.A("yt-official-card-view-model",{class:_.g$("ytOfficialCardViewModelHost",D.className),style:_.P0({"background-color":function(){var W,p=iy((W=D.data())==null?void 0:W.backgroundColor);return p?_.e_(p):void 0}})},_.A(_.BX,{data:function(){return D.data().header}},{pageHeaderViewModel:function(W){return _.A(_.vjX,{data:W.data,
noPadding:!0})}}),_.A(_.BX,{data:function(){return D.data().contents}},{horizontalShelfViewModel:function(W){return _.A(_.KZ,{data:W.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.A(_.v,{cond:X,
then:function(){return _.A("div",{class:"ytOfficialCardViewModelExpandedContent"},_.A(_.BX,{data:function(){return D.data().expandedContents}},{horizontalShelfViewModel:function(W){return _.A(_.KZ,{data:W.data,
sizing:"MINI"})}}),_.A("div",{class:"ytOfficialCardViewModelCollapseButton"},_.A(_.BX,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
onClick:function(){c(!X())}})}})))},
else:function(){return _.A("div",{class:"ytOfficialCardViewModelExpandButton"},_.A(_.BX,{data:function(){return D.data().expandButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
onClick:function(){c(!X())}})}}))}}))},"af"),"yt-official-card-view-model",{props:{data:_.Bm,
className:_.Bm}});var ihw=_.F(function(D){var C,X=(C=_.iX().resolve(_.vK(_.Hc)))==null?void 0:C();return _.A("ytw-search-friction-view-model",{class:_.g$("ytwSearchFrictionViewModelHost",D.className)},_.A("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.A("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.A(_.v,{cond:function(){return X&&D.data().darkThemeImage?D.data().darkThemeImage:D.data().image},
then:function(c){return _.A(_.M_,{data:c,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.A(_.BX,{data:function(){return D.data().overflowMenuButton}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.A(_.QG,{text:function(){return D.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.A(_.Zh,{each:function(){return D.data().bodyText||[]}},function(c){return _.A(_.QG,{text:c,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.A(_.BX,{data:function(){return D.data().actions}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.A(_.QG,{text:function(){return D.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.A(_.QG,{text:function(){return D.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"bf");
ihw.idomCompat=!0;_.CI(ihw,"ytw-search-friction-view-model",{props:{data:_.Bm,className:_.Bm}});_.xe=_.F(function(D){var C=_.aX("markdown-div"),X,c=(X=_.iX().resolve(_.vK(_.Hc)))==null?void 0:X();_.Jw(function(){var W=C.value;var p=new pdd,g=new Map(p.JSC$9463_sanitizerTable.globalAttributePolicies);g.set("style",{policyAction:4});p.JSC$9463_sanitizerTable=new Ns(p.JSC$9463_sanitizerTable.allowedElements,p.JSC$9463_sanitizerTable.elementPolicies,p.JSC$9463_sanitizerTable.allowedGlobalAttributes,g,p.JSC$9463_sanitizerTable.globallyAllowedAttributePrefixes);var a=["data-time"];if(a===void 0)g=
new Set(p.JSC$9463_sanitizerTable.globallyAllowedAttributePrefixes),g.add("data-"),p.JSC$9463_sanitizerTable=new Ns(p.JSC$9463_sanitizerTable.allowedElements,p.JSC$9463_sanitizerTable.elementPolicies,p.JSC$9463_sanitizerTable.allowedGlobalAttributes,p.JSC$9463_sanitizerTable.globalAttributePolicies,g);else{g=new Set(p.JSC$9463_sanitizerTable.allowedGlobalAttributes);a=_.U(a);for(var O=a.next();!O.done;O=a.next()){O=O.value;if(O.indexOf("data-")!==0)throw Error("ka`"+O);g.add(O)}p.JSC$9463_sanitizerTable=
new Ns(p.JSC$9463_sanitizerTable.allowedElements,p.JSC$9463_sanitizerTable.elementPolicies,g,p.JSC$9463_sanitizerTable.globalAttributePolicies,p.JSC$9463_sanitizerTable.globallyAllowedAttributePrefixes)}g=new Set(p.JSC$9463_sanitizerTable.allowedGlobalAttributes);g.add("class");p.JSC$9463_sanitizerTable=new Ns(p.JSC$9463_sanitizerTable.allowedElements,p.JSC$9463_sanitizerTable.elementPolicies,g,p.JSC$9463_sanitizerTable.globalAttributePolicies,p.JSC$9463_sanitizerTable.globallyAllowedAttributePrefixes);
_.aG(W,_.Coc(p.build(),xPj(D.text())));Lor(C.value)},"OZ439c");
X={};return _.A("div",null,_.A("markdown-div",{class:_.g$("ytwMarkdownDivHost",(X.ytwMarkdownDivDark=c,X.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var W;return((W=D.isSmallText)==null?void 0:W.call(D))||!1},X.ytwMarkdownDivHostWrapCodeBlocks=function(){var W;
return((W=D.wrapCodeBlocks)==null?void 0:W.call(D))||!1},X.ytwMarkdownDivHostEnableDefaultStyling=function(){var W;
return!((W=D.disableDefaultStyling)==null?0:W.call(D))},X)),
el:C}))},"df");
_.xe.idomCompat=!0;var kJY=_.F(function(D){var C=D.imageData;var X=_.di(D.isInList,!1),c=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 _.A("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.A(_.v,{cond:function(){return C().image},
then:function(W){return _.A(_.M_,{data:W,alt:function(){return c().alt},
contentMode:function(){return c().contentMode},
targetWidth:function(){return c().targetWidth},
targetHeight:function(){return c().targetHeight},
className:function(){return c().className}})}}),_.A("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.A("div",{class:_.g$("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.A(_.QG,{text:function(){return C().title}})),_.A(_.Zh,{each:function(){var W;
return(W=C().description)!=null?W:[]}},function(W){return _.A("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.A(LZ,{content:W}))})))},"ef"),udp=_.F(function(D){var C=D.list;
var X=function(){var c;return(c=C().items)!=null?c:[]};
return _.A("div",{class:"ytwGenAiRichTextViewModelListContent"},_.A(_.v,{cond:function(){return C().title},
then:function(c){return _.A("div",{class:_.g$("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.A(_.QG,{text:c}))}}),_.A(_.v,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.A("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.A(_.Zh,{each:X},function(c){return _.A("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.A(LZ,{content:c,isInList:!0}))}))}}),_.A(_.v,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.A("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.A(_.Zh,{each:X},function(c){return _.A("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.A(LZ,{content:c,isInList:!0}))}))}}),_.A(_.v,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.A("div",{class:"ytwGenAiRichTextViewModelImageList"},_.A(_.Zh,{each:X},function(c){return _.A("div",{class:"ytwGenAiRichTextViewModelListItem"},_.A(LZ,{content:c,isInList:!0}))}))}}))},"ff"),Qmo=_.F(function(D){var C=D.table;
return _.A("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.A("thead",null,_.A("tr",null,_.A(_.Zh,{each:function(){var X,c;return(c=(X=C().header)==null?void 0:X.cells)!=null?c:[]}},function(X){return _.A("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.A(_.Zh,{each:function(){return X.contents}},function(c){return _.A(LZ,{content:c})}))}))),_.A("tbody",null,_.A(_.Zh,{each:function(){var X;
return(X=C().rows)!=null?X:[]}},function(X){return _.A("tr",null,_.A(_.Zh,{each:function(){return X.cells}},function(c){return _.A("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.A(_.Zh,{each:function(){return c.contents}},function(W){return _.A(LZ,{content:W})}))}))})))},"gf"),LZ=_.F(function(D){var C=D.content;
var X=_.di(D.isInList,!1),c=function(){var W,p;return(p=(W=C().contentBlock)==null?void 0:W.contents)!=null?p:[]};
return _.A("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.A(_.v,{cond:function(){return C().text},
then:function(W){return _.A(_.QG,{className:"ytwGenAiRichTextViewModelText",text:W})}}),_.A(_.v,{cond:function(){return C().image},
then:function(W){return _.A(kJY,{imageData:W,isInList:X})}}),_.A(_.v,{cond:function(){return C().list},
then:function(W){return _.A(udp,{list:W})}}),_.A(_.v,{cond:function(){return C().contentBlock},
then:function(){return _.A("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.A(_.Zh,{each:c},function(W){return _.A(LZ,{content:W,isInList:!1})}))}}),_.A(_.v,{cond:function(){return C().table},
then:function(W){return _.A(Qmo,{table:W})}}))},"hf"),B5G=_.F(function(D){var C={};
C=_.sN("ytwGenAiRichTextViewModelHost",(C.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.bX("search_overview_link_style")),C));return _.A("gen-ai-rich-text-view-model",{class:C},_.A(LZ,{content:function(){return D.data().content}}))},"jf");_.bhG=_.F(function(D){var C=D.data;var X=function(){var L;return((L=C().loadingUi)!=null?L:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},c=function(){return C().isLoading&&(X()==="UNSPECIFIED"||X()==="GHOST_CARD")},W=function(){return!C().isLoading},p=function(){return!!C().content&&!C().contents},g=function(){return!!C().contents},a=function(){return!!C().nextQueryButtons},O=function(){return C().isLoading&&X()==="INVISIBLE"},P=function(){var L,t;
return(t=(L=C().headerIcon)==null?void 0:L.iconType)!=null?t:""},k=function(){var L;
return(L=C().content)!=null?L:""},u=function(){return!!C().sourcesSection},Q,B=!((Q=_.iX().resolve(_.vK(_.Hc)))==null||!Q()),K=_.tw(function(){var L=[],t=C().contents;
if(t)for(var Y=0;Y<t.length;Y++){var y=_.r(t&&t[Y],s1x);y&&L.push(y)}return L},void 0,"gcCsZb");
_.JU(function(){C().isLoading||_.sp("so_re",void 0,"search_overview_answer")});
return _.A("ytd-overview-answer-view-model",{class:function(){var L={};L=(L.ytdOverviewAnswerViewModelHost=!0,L.ytdOverviewAnswerViewModelDarkBackground=B&&!O(),L.ytdOverviewAnswerViewModelLightBackground=!B&&!O(),L);return _.sN(L)}},_.A(_.v,{cond:function(){return!O()},
then:function(){return _.A(_.kQ,null,_.A("h2",null,_.A("div",{class:"ytdOverviewAnswerViewModelHeader"},_.A(_.v,{cond:P,then:function(L){return _.A("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.A(_.$_,{icon:L}))}}),_.A("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.A("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return C().headerText}),_.A("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.A(_.QG,{text:function(){return C().headerSubtext}}))))),_.A(_.v,{cond:c,
then:function(){return _.A(s5Z,null)}}),_.A(_.v,{cond:W,
then:function(){return _.A(_.kQ,null,_.A(_.v,{cond:p,then:function(){return _.A("div",{class:"ytdOverviewAnswerViewModelText"},_.A(_.xe,{text:k,isSmallText:!0}))}}),_.A(_.v,{cond:g,
then:function(){return _.A("div",{class:"ytdOverviewAnswerViewModelRichText"},_.A(_.Zh,{each:K},function(L){return _.A(B5G,{data:L})}))}}),_.A(_.v,{cond:a,
then:function(){return _.A("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.A(_.BX,{data:function(){return C().nextQueryButtons}},{buttonViewModel:function(L){return _.A(_.Ze,{data:L.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.KZ}))}}),_.A("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.A("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.A(_.v,{cond:function(){return!!_.r(C().likeButtonViewModel,_.Fx)&&!!_.r(C().dislikeButtonViewModel,_.Zt)},
then:function(){return _.A("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.A(_.$d,{data:function(){return _.r(C().likeButtonViewModel,_.Fx)},
disableIconAnimation:!0}),_.A(_.PO,{data:function(){return _.r(C().dislikeButtonViewModel,_.Zt)}}))}})),_.A(_.v,{cond:function(){var L;
return(L=C().sourcesSection)==null?void 0:L.headerText},
then:function(L){return _.A("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.A(_.QG,{text:L}))}})),_.A(_.v,{cond:u,
then:function(){return _.A("div",{class:"ytdOverviewAnswerViewModelSources"},_.A(_.BX,{data:function(){var L;return(L=C().sourcesSection)==null?void 0:L.sourcesShelf}},{buttonViewModel:_.Ze,
horizontalShelfViewModel:function(L){return _.A(_.KZ,{data:L.data,includeMargin:!0,hasPeek:!0})}}))}}),_.A(_.v,{cond:function(){return C().disclaimerText},
then:function(){return _.A("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.A(_.QG,{text:function(){return C().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"kf");var rWG=_.F(function(D){var C=_.Ro(D,{}).data;return _.A("yt-shopping-content-line-item-view-model",{class:_.g$("ytShoppingContentLineItemViewModelHost")},_.A(_.QG,{text:function(){var X;return(X=C().text)==null?void 0:X.attributedString}}))},"lf");_.sV=_.F(function(D){D=_.Ro(D,{});var C=D.data,X={};return _.A("yt-shopping-content-line-view-model",{class:_.g$("ytShoppingContentLineViewModelHost",D.className,(X.ytShoppingContentLineViewModelTruncateText=function(){return!C().wrapContent},X)),
style:_.P0({"--shopping-content-line-gap":function(){return C().itemGap?C().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return C().lineHeight?C().lineHeight+"px":void 0}})},_.A(_.Zh,{each:function(){return(C().items||[]).map(function(c){return _.r(c,wVM)}).filter(function(c){return!!c})}},function(c){return _.A(rWG,{data:c})}))},"mf");var Krk=_.F(function(D){var C=D.data;var X=function(){var p;return((p=C().image)==null?void 0:p.height)||48},c=function(){var p;
return((p=C().image)==null?void 0:p.width)||48},W=function(){return"width: "+c()+"px; height: "+X()+"px;"};
return _.A("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var p,g,a,O=((p=_.iX().resolve(_.vK(_.Hc)))==null?0:p())?(g=C())==null?void 0:g.darkThemeBackgroundColor:(a=C())==null?void 0:a.lightThemeBackgroundColor;return"background-color: "+(O?_.e_(O):"")+";"},
el:_.fb(_.NH(function(){var p;return(p=C())==null?void 0:p.rendererContext}))},_.A(_.v,{cond:function(){var p,g;
return(g=(p=C().image)==null?void 0:p.image)!=null?g:C().thumbnail},
then:function(p){return _.A("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var g;return"background-color: "+(((g=C().image)==null?0:g.backgroundColor)?_.e_(C().image.backgroundColor):"")+";"+W()}},_.A(_.M_,{data:p,
height:X,width:c,style:W,alt:""}))}}),_.A("div",{class:"ytShoppingDescriptionItemViewModelText"},_.A(_.BX,{data:function(){return C().line1}},{shoppingContentLineViewModel:function(p){return _.A(_.sV,{data:p.data})}}),_.A(_.BX,{data:function(){return C().line2}},{shoppingContentLineViewModel:function(p){return _.A(_.sV,{data:p.data})}}),_.A(_.BX,{data:function(){return C().line3}},{shoppingContentLineViewModel:function(p){return _.A(_.sV,{data:p.data})}})))},"nf");var h3U=_.F(function(D){var C=D.data;var X=D.active;var c=_.aX("transcript-segment-view-model");_.Jw(function(){var W,p,g,a=((W=_.iX().resolve(_.vK(_.Hc)))==null?0:W())?(p=C())==null?void 0:p.darkThemeColorPalette:(g=C())==null?void 0:g.lightThemeColorPalette;a&&(a.additiveBackground&&c.value.style.setProperty("--timestamp-active-background-color",_.e_(a.additiveBackground)),a.textSecondary&&c.value.style.setProperty("--timestamp-active-color",_.mW(a.textSecondary)))},"TnVCnb");
D={};return _.A("transcript-segment-view-model",{class:_.g$("ytwTranscriptSegmentViewModelHost",(D.ytwTranscriptSegmentViewModelHostActive=X,D.ytwTranscriptSegmentViewModelHostModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),D)),el:c},_.A(_.v,{cond:function(){var W;return(W=C())==null?void 0:W.timestamp},
then:function(W){var p={};return _.A(_.kQ,null,_.A("div",{class:_.g$("ytwTranscriptSegmentViewModelTimestamp",(p.ytwTranscriptSegmentViewModelTimestampActive=X,p)),"aria-hidden":!0},W),_.A("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var g=W().split(":").map(Number),a=_.U(g.reverse());g=a.next().value;var O=a.next().value;a=a.next().value;return _.pkd({hours:a,minutes:O,seconds:g})}))}}),_.A(_.QG,{text:function(){var W,p,g;
return(g=(W=C())==null?void 0:W.attributedText)!=null?g:{content:(p=C())==null?void 0:p.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"pf");var xRG=_.F(function(D){var C=D.data;return _.A("div",{class:"videoAttributesSectionViewModelHeader"},_.A("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.A("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return C().headerTitle}),_.A(_.v,{cond:function(){return C().headerInfoButton},
then:function(){return _.A(_.BX,{data:function(){return C().headerInfoButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.A(_.v,{cond:function(){return C().headerSubtitle},
then:function(){return _.A("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return C().headerSubtitle})}}))},"qf"),LrG=_.F(function(D){function C(L){return Math.max(Math.min(L,0),P()-a())}
var X=D.data;var c;D=_.aX("div",function(L){var t=function(){k(L.clientWidth)};
t();window.ResizeObserver&&(c=new ResizeObserver(t),c.observe(L))});
var W=_.aX("div",function(L){O(L.scrollWidth)}),p=_.U(_.Li(0,void 0,"C3XQAe")),g=p.next().value;
p=p.next().value;var a=g,O=p;p=_.U(_.Li(0,void 0,"db7y3"));g=p.next().value;p=p.next().value;var P=g,k=p;g=_.U(_.Li(0,void 0,"RchC7"));var u=g.next().value,Q=g.next().value;_.z3(function(){var L;(L=c)==null||L.disconnect()});
var B=function(){Q(C(u()+P()))},K=function(){Q(C(u()-P()))};
return _.A("yt-video-attributes-section-view-model",null,_.A("div",{class:"videoAttributesSectionViewModelHost"},_.A(_.v,{cond:function(){return X().headerTitle},
then:function(){return _.A(xRG,{data:X})}}),_.A("div",{class:_.g$("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:D},_.A("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.P0({transform:function(){var L=u();_.q6("HTML_DIR")==="rtl"&&(L*=-1);return"translateX("+L+"px)"}}),
el:W},_.A(_.BX,{data:function(){return X().videoAttributeViewModels}},{videoAttributeViewModel:UpM}))),_.A(_.BX,{data:function(){return X().footerButton}},{buttonViewModel:function(L){return _.A(_.Ze,{data:L.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.A(_.v,{cond:function(){return u()<0&&X().previousButton},
then:function(){return _.A("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.A(_.BX,{data:function(){return X().previousButton}},{buttonViewModel:function(L){return _.A(_.Ze,{data:L.data,
onClick:B})}}))}}),_.A(_.v,{cond:function(){return u()>P()-a()&&X().nextButton},
then:function(){return _.A("div",{class:"videoAttributesSectionViewModelRightArrow"},_.A(_.BX,{data:function(){return X().nextButton}},{buttonViewModel:function(L){return _.A(_.Ze,{data:L.data,
onClick:K})}}))}})))},"rf");
LrG.idomCompat=!0;var sm6=_.F(function(D){var C=D.data;var X=D.active;var c={},W={};return _.A("timeline-item-view-model",{class:_.g$("ytwTimelineItemViewModelHost",(c.ytwTimelineItemViewModelHostChapterChild=D.chapterChild,c.ytwTimelineItemViewModelModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),c))},_.A("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.A("div",{class:_.g$("ytwTimelineItemViewModelTimestamp",(W.ytwTimelineItemViewModelTimestampActive=
X,W))},function(){return C().timestamp})),_.A("div",{class:"ytwTimelineItemViewModelContentItems"},_.A(_.BX,{data:function(){return C().contentItems}},{transcriptSegmentViewModel:function(p){return _.A(h3U,{data:p.data,
active:X})},
videoAttributesSectionViewModel:LrG})))},"sf");var mR3=_.F(function(D){var C=D.data;D={};return _.A("timeline-chapter-view-model",{class:_.g$("ytwTimelineChapterViewModelHost")},_.A("div",{class:_.g$("ytwTimelineChapterViewModelTitle",(D.ytwTimelineChapterViewModelModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),D))},function(){return C().title}),_.A(_.BX,{data:function(){return C().contents}},{timelineItemViewModel:function(X){return _.A(sm6,{data:X.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(X){return _.A(LrG,{data:X.data})}}))},"tf");var e33=_.F(function(D){var C=D.data;var X=_.aX("macro-markers-panel-item-view-model"),c=_.ku(_.ic5,function(){var p;return(p=C().markersEngagementPanelSyncEntityKey)!=null?p:""}),W=function(){var p;
return((p=c())==null?void 0:p.activeItemIndex)===C().index};
D=_.I_(function(p){var g,a,O,P,k;return _.I(function(u){if(u.nextAddress==1)return p.stopPropagation(),_.er(_.mY(p),X.value,["A".toString(),"BUTTON".toString()])?u.return():(g=_.Y7(C().onTap))?u.yield(_.ON(),2):u.return();a=u.yieldResult;P=(O=_.r(g,_.TC))==null?void 0:O.startTimeSeconds;P===void 0||(k=a)!=null&&k.seekTo(P,!0);_.t_(u)})});
return _.A("macro-markers-panel-item-view-model",{class:_.g$("ytwMacroMarkersPanelItemViewModelHost",{"is-active":W}),el:X,"on:click":D,tabindex:0,role:"button"},_.A(_.BX,{data:function(){var p;return(p=C())==null?void 0:p.item}},{timelineChapterViewModel:function(p){return _.A(mR3,{data:p.data,
active:W})},
timelineItemViewModel:function(p){return _.A(sm6,{data:p.data,active:W})},
videoAttributeViewModel:UpM,shoppingDescriptionItemViewModel:Krk}))},"uf");
e33.idomCompat=!0;_.CI(e33,"macro-markers-panel-item-view-model",{props:{data:_.Bm}});_.CI(LrG,"yt-video-attributes-section-view-model",{props:{data:_.Bm}});var Ejp=_.F(function(D){var C=function(){var X,c,W;return(W=(X=D.data().leadingLogoAccessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label)!=null?W:""};
return _.A("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.A(_.v,{cond:function(){return D.data().leadingLogo},
then:function(X){return _.A(_.M_,{className:"ytwFantasySectionHeaderViewModelLogo",data:X,alt:C})}}),_.A("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.A(_.QG,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return D.data().title}}),_.A(_.QG,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return D.data().subtitle}})),_.A(_.BX,{data:function(){return D.data().trailingButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"vf");var tZo=_.F(function(D){var C={};C=_.g$("ytwFantasyTeamViewModelHost",(C.ytwFantasyTeamViewModelCompact=function(){var W;return!((W=D.compact)==null||!W.call(D))},C.ytwFantasyTeamViewModelUser=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},C.ytwFantasyTeamViewModelOpponent=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},C));
var X=function(){var W,p,g;return(g=(W=D.data().teamLogoAccessibility)==null?void 0:(p=W.accessibilityData)==null?void 0:p.label)!=null?g:""},c=_.ku(uqh,function(){return D.data().teamEntityKey});
return _.A("ytw-fantasy-team-view-model",{class:C},_.A(_.v,{cond:function(){return D.data().teamLogo},
then:function(W){return _.A(_.M_,{className:"ytwFantasyTeamViewModelLogo",data:W,alt:X})}}),_.A("div",{class:"ytwFantasyTeamViewModelMetadata"},_.A("div",{class:"ytwFantasyTeamViewModelHeader"},_.A(_.QG,{className:"ytwFantasyTeamViewModelScore",
text:function(){var W;return(W=c())==null?void 0:W.score}}),_.A(_.$_,{icon:function(){var W;
return(W=c())==null?void 0:W.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.A(_.QG,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var W;return(W=c())==null?void 0:W.projectedScore}})),_.A(_.QG,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return D.data().primaryText}}),_.A(_.QG,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return D.data().secondaryText}}),_.A(_.QG,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return D.data().tertiaryText}})),_.A(_.QG,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var W;return(W=c())==null?void 0:W.score}}))},"wf");_.CI(_.F(function(D){return _.A("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.A("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.A(_.BX,{data:function(){return D.data().summaryHeader}},{fantasySectionHeaderViewModel:Ejp})),_.A(_.BX,{data:function(){return D.data().userTeam}},{fantasyTeamViewModel:tZo}),_.A(_.BX,{data:function(){return D.data().opponentTeam}},{fantasyTeamViewModel:tZo}))},"xf"),"fantasy-league-summary-view-model",{props:{data:_.Bm}});var N5w=_.F(function(D){var C=_.Ro(D,{shape:{},useCustomTabRenderable:!1}),X=C.shape;C=C.useCustomTabRenderable;var c=D.customTabRenderable,W=function(){return X().disabled},p=function(){return X().selected},g=function(){return X().title},a=function(){return X().icon},O=_.aX("yt-tab-shape");
D=_.I_(function(u){var Q;if(!W()&&((Q=X().aTagConfig)==null?0:Q.onclick))X().aTagConfig.onclick(u);return!1});
var P=_.I_(function(u){if(u.key==="Enter"||u.key==="ArrowUp"||u.key==="ArrowDown")u.preventDefault(),O.value.click();return!1}),k={};
return _.A("yt-tab-shape",{class:_.g$("yt-tab-shape",function(){return X().className},(k["yt-tab-shape__tab--last-tab"]=function(){return X().isLastTab},k["yt-tab-shape--host-disabled"]=W,k["yt-tab-shape--host-clickable"]=!c,k)),
role:c?void 0:"tab","aria-selected":p!=null?p:!1,"aria-disabled":W,tabindex:c?void 0:0,"on:click":D,"on:keydown":P,el:O,"tab-identifier":function(){return X().identifier},
"tab-title":g},_.A(_.v,{cond:C,then:function(){return c()},
else:function(){var u={},Q={};return _.A(_.kQ,null,_.A("div",{class:_.g$("yt-tab-shape__tab",(u["yt-tab-shape__tab--tab-selected"]=p,u))},_.A(_.v,{cond:a,then:function(B){return _.A(_.$_,{className:"yt-tab-shape__tab-icon",icon:function(){return B().iconType}})}}),g),_.A("div",{class:_.g$("yt-tab-shape__tab-bar",(Q["yt-tab-shape__tab-bar--tab-bar-selected"]=p,Q))}))}}))},"yf");
N5w.idomCompat={callbacks:{customTabRenderable:!0}};_.yWo=_.F(function(D){var C=D.shape;D=_.U(_.Li(48,void 0,"nDAx4"));var X=D.next().value,c=D.next().value;D=_.U(_.Li(0,void 0,"GCgjqb"));var W=D.next().value,p=D.next().value,g=function(){return C().tabs},a=_.aX("yt-tab-group-shape"),O=function(){var Q,B;
return(B=(Q=g())==null?void 0:Q.findIndex(function(K){return K.selected}))!=null?B:-1};
D=_.U(_.Li(!1,void 0,"SU01tf"));var P=D.next().value,k=D.next().value,u=function(){P()||_.qX.addJob(function(){k(!0)},0)};
_.Jw(function(){var Q=O(),B=_.qX.addJob(function(){var K,L=((K=a.value)==null?void 0:K.querySelectorAll("yt-tab-shape"))||[],t;c(((t=Q>-1?L[Q]:void 0)==null?void 0:t.getBoundingClientRect().width)||0);for(t=K=0;t<Q;t++)K+=L[t].offsetWidth+24;_.q6("HTML_DIR")==="rtl"&&(K=-K);p(K);u()},8,0);
_.z3(function(){_.qX.cancelJob(B)})},"PMwgb");
D={};return _.A("yt-tab-group-shape",{class:_.g$("tabGroupShapeHost",(D.tabGroupShapeOverflowHidden=function(){return C().isOverflowHidden},D)),
el:a},_.A(_.v,{cond:g,then:function(Q){return _.A(_.kQ,null,_.A("div",{class:"tabGroupShapeTabs",role:"tablist"},_.A(_.Zh,{each:Q},function(B,K){return _.A(N5w,{shape:function(){return Object.assign({},B,{isLastTab:K()===Q().length-1})},
customTabRenderable:B.customTabRenderable,useCustomTabRenderable:!!B.customTabRenderable})})),_.A(Ymw,{width:X,
sliderOffset:W,enableTransition:P}))}}))},"Af");
_.yWo.idomCompat=!0;var Ymw=_.F(function(D){var C=_.di(D.sliderOffset,0),X=D.width,c=D.enableTransition;D={};return _.A("div",{class:_.g$("tabGroupShapeSlider",(D.tabGroupShapeSliderTransition=function(){return c()},D)),
style:_.P0({width:function(){return X()+"px"},
transform:function(){return"translateX("+C()+"px)"}})})},"Bf");var njG=_.F(function(D){var C=function(){var p,g,a;return(a=(p=D.data().playerLogoAccessibility)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label)!=null?a:""},X=_.ku(Qx3,function(){return D.data().playerEntityKey}),c={};
c=_.g$("ytwFantasyPlayerViewModelHost",(c.ytwFantasyPlayerViewModelPlaying=function(){var p;return!((p=X())==null||!p.isPlayerPlaying)},c.ytwFantasyPlayerViewModelOnField=function(){var p;
return((p=X())==null?void 0:p.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},c.ytwFantasyPlayerViewModelRedZone=function(){var p;
return((p=X())==null?void 0:p.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},c));
var W=function(){var p,g,a,O=((p=_.iX().resolve(_.vK(_.Hc)))==null?0:p())?(g=D.data().playerLogoBackgroundColor)==null?void 0:g.darkTheme:(a=D.data().playerLogoBackgroundColor)==null?void 0:a.lightTheme;return O===void 0?"":_.e_(O)};
return _.A("ytw-fantasy-player-view-model",{class:c},_.A(_.v,{cond:function(){return D.data().playerLogo},
then:function(p){return _.A("div",{class:"ytwFantasyPlayerViewModelLogo"},_.A("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.A(_.M_,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.P0({"background-color":W}),data:p,alt:C})),_.A("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.A(_.$_,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.A("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.A("div",{class:"ytwFantasyPlayerViewModelHeader"},_.A(_.QG,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var p;return(p=D.data())==null?void 0:p.playerNameText}}),_.A(_.QG,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var p;return(p=D.data())==null?void 0:p.playerDescriptionText}})),_.A("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.A(_.QG,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var p;return(p=X())==null?void 0:p.gamePeriodText}}),_.A(_.QG,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var p;return(p=D.data())==null?void 0:p.opponentTeamText}}),_.A(_.QG,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var p;return(p=X())==null?void 0:p.gameStatusText}}),_.A(_.QG,{className:_.g$("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var p;return(p=X())==null?void 0:p.playerStatusText}})),_.A("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.A(_.QG,{text:function(){var p;
return(p=X())==null?void 0:p.playerStatsText}}))),_.A(_.QG,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var p;return(p=X())==null?void 0:p.fantasyScore}}))},"Cf");var wo3=_.F(function(D){return _.A("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.A(_.v,{cond:function(){return D.data().players},
then:function(C){return _.A(_.BX,{data:C},{fantasyPlayerViewModel:njG})}}))},"Df");var Fro=_.F(function(D){var C=_.U(_.d2(function(){var W;return(W=D.data().selectedTabIdentifierKey)!=null?W:""})),X=C.next().value,c=C.next().value;
_.H2(function(){var W;(W=D.setSelectedTabSignal)==null||W.call(D,X)});
return _.A("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.A("div",{class:"ytTabbedViewModelTabGroup"},_.A(_.yWo,{shape:function(){var W=D.data(),p=[],g={tabs:p};if(!W.tabs)return g;W=_.U(W.tabs);for(var a=W.next(),O={};!a.done;O={tabViewModel:void 0},a=W.next())if(O.tabViewModel=_.r(a.value,Gcq),O.tabViewModel){var P=a=void 0;p.push({aTagConfig:{onclick:function(k){return function(){var u;c((u=k.tabViewModel.tabIdentifier)!=null?u:"")}}(O)},
identifier:O.tabViewModel.tabIdentifier,selected:X()===O.tabViewModel.tabIdentifier,title:(P=(a=O.tabViewModel.title)==null?void 0:a.content)!=null?P:""})}return g}})),_.A(_.BX,{data:function(){var W,p=_.U((W=D.data().tabs)!=null?W:[]);
for(W=p.next();!W.done;W=p.next())if((W=_.r(W.value,Gcq))&&W.tabIdentifier===X())return W.content}},{fantasyRosterViewModel:wo3}))},"Ff");_.CI(_.F(function(D){var C=_.U(mPj()),X=C.next().value,c=C.next().value;return _.A("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.A(_.QG,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return D.data().title}}),_.A(_.v,{cond:function(){return D.data().tabbedViewModel},
then:function(W){return _.A(_.BX,{data:W},{tabbedViewModel:function(p){return _.A(Fro,{data:p.data,setSelectedTabSignal:c})}})}}),_.A(_.v,{cond:function(){var W,p=(W=_.r(D.data().tabbedViewModel,Vv5))==null?void 0:W.tabs;
W=_.r(p==null?void 0:p[0],Gcq);p=_.r(p==null?void 0:p[1],Gcq);var g=W==null?void 0:W.tabIdentifier;if(X()===g){var a,O;if(!((a=_.r(W==null?void 0:W.content,CJc))==null?0:(O=a.players)==null?0:O.length))return D.data().noUserTeamPlayersText}else{var P,k;if(!((P=_.r(p==null?void 0:p.content,CJc))==null?0:(k=P.players)==null?0:k.length))return D.data().noOpponentTeamPlayersText}},
then:function(W){return _.A(_.QG,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:W})}}))},"Gf"),"ytw-fantasy-matchup-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){return _.A("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.A(_.QG,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return D.data().title}}),_.A(_.v,{cond:function(){return D.data().matchupTeamPairs},
then:function(C){return _.A(_.Zh,{each:C,keyBy:"INDEX"},function(X){return _.A("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.A(_.BX,{data:function(){return[X().firstTeam,X().secondTeam]}},{fantasyTeamViewModel:function(c){return _.A(tZo,{data:c.data,
compact:!0})}}))})}}))},"Hf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=function(){var W,p,g;return(g=(W=D.data().userLogoAccessibility)==null?void 0:(p=W.accessibilityData)==null?void 0:p.label)!=null?g:""},X=function(){var W,p,g;
return(g=(W=D.data().opponentLogoAccessibility)==null?void 0:(p=W.accessibilityData)==null?void 0:p.label)!=null?g:""},c=_.ku(kq3,function(){return D.data().entityKey});
return _.A("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.A("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.A(_.v,{cond:function(){return D.data().userLogo},
then:function(W){return _.A(_.M_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:C})}}),_.A("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.A(_.QG,{text:function(){return D.data().title}})),_.A(_.v,{cond:function(){return D.data().opponentLogo},
then:function(W){return _.A(_.M_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:X})}})),_.A("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.A("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.A(_.QG,{text:function(){var W;
return(W=c())==null?void 0:W.userWinNumberLabel}})),_.A("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.A("div",{class:_.g$("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.P0({flex:function(){var W,p;return(p=(W=c())==null?void 0:W.userWinNumber)!=null?p:50}})}),_.A("div",{class:_.g$("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.P0({flex:function(){var W,p;return(p=(W=c())==null?void 0:W.opponentWinNumber)!=null?p:50}})})),_.A("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.A(_.QG,{text:function(){var W;
return(W=c())==null?void 0:W.opponentWinNumberLabel}}))))},"If"),"fantasy-win-probability-view-model",{props:{data:_.Bm}});var Zh1={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},GJY=_.F(function(D){return _.A(_.BX,{data:D.button},{buttonViewModel:function(C){return _.A(_.Ze,{data:C.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Jf"),VZP=_.F(function(D){return _.A("ytd-backstage-locked-post-view-model",{class:_.g$("ytdBackstageLockedPostViewModelHost",D.className)},_.A("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.A("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.A(_.BX,
{data:function(){return D.data().authorAvatar}},{decoratedAvatarViewModel:_.Og})),_.A("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.A("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.A(_.QG,{text:function(){return D.data().authorText}})),_.A("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.A(_.QG,{text:function(){return D.data().publishedTimeText}}),_.A(_.BX,{data:function(){return D.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(C){return _.A(ZM5,
{data:C.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.A("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.A(_.QG,{text:function(){return D.data().contentText}})),_.A(_.G4,null,_.A(_.wq,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.A("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.A(_.M_,{data:Zh1,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.A(_.QG,{text:function(){return D.data().lockedText}}))}),_.A(_.wq,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.A("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.A("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.A(_.M_,{data:Zh1,
alt:""})),_.A(_.QG,{text:function(){return D.data().lockedText}}))})),_.A("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.A(GJY,{button:function(){return D.data().likeButton}}),_.A("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().voteCountA11y}},_.A(_.QG,{text:function(){return D.data().voteCount}})),_.A(GJY,{button:function(){return D.data().dislikeButton}}),_.A(GJY,{button:function(){return D.data().commentButton}}),_.A("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().commentCountA11y}},_.A(_.QG,{text:function(){return D.data().commentCount}}))))},"Kf");
VZP.idomCompat=!0;_.CI(VZP,"ytd-backstage-locked-post-view-model",{props:{data:_.Bm,className:_.Bm}});_.sI("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var mt=function(){var D=_.w.apply(this,arguments)||this;D.darkerPanels=_.b("web_watch_darker_panels");D.commentsHidePanelButton=!1;D.isWatchGrid=!1;D.continuationShowButton=!1;D.isSearch=!1;D.isConstrainedList=!1;D.isWatch=!1;D.eligibleToSwitchToGrid=!1;D.useBigThumbs=!1;D.epRestyle=!1;D.isCarouselInFeed=!0;D.topSpacingZero=!1;D.continuationIsInitialLoad=!0;D.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");D.notSticky=
!0;D.mastheadHeight=0;D.isStickyChipBarSetup=!1;D.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};D.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return D};
_.h(mt,_.w);_.S=mt.prototype;_.S.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var C;(C=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||C.forEach(function(X){X.containerType=D})}};
_.S.getItemsPath=function(){return"data.contents"};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.S.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.b("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.b("kevlar_low_priority_continuation")}}};
_.S.created=function(){};
_.S.updateStickySetup=function(){_.b("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.S.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(ANq(!this.notSticky))};
_.S.setupStickyChipBar=function(){var D=this;if(!this.isStickyChipBarSetup&&_.b("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.Pr(this,this.updateHeaderState));var C;this.mastheadHeight=((C=document.querySelector("ytd-masthead"))==null?void 0:C.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(X){D.handleIntersect(X)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateHeaderState();D.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.S.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.Pr(this,this.updateHeaderState));var D;(D=this.intersectionObserver)==null||D.disconnect();var C;(C=this.resizeObserver)==null||C.disconnect()}};
_.S.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.S.handleIntersect=function(D){this.notSticky=D[0].intersectionRatio===1};
_.S.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.S.detached=function(){this.teardownStickyChipBar()};
_.S.updated=function(D){D.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.S.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var D=_.SY(this.hostElement).querySelector("ytd-comments-header-renderer");D&&(D.hidePanelButton=this.commentsHidePanelButton)}};
_.S.onRetrieveLocation=function(D,C){this.containsComments()&&(this.firstCommentsLoaded=C.hasComments=!0)};
_.S.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.S.onLoadReloadContinuation=function(D,C){var X=this;D.stopPropagation();this.isReloading=!0;_.lE(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(c){var W=_.iX().resolve(_.Qt);c=C(c);W.postData(c).then(function(p){X.onReloadContinuationData(p)})}})};
_.S.onReloadContinuationData=function(D){if(D=this.get("response.continuationContents.itemSectionContinuation",D)||this.get("response.contents.itemSectionRenderer",D)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",D)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",D))this.set("data.contents",D.contents||D.results),D.header&&this.set("data.header",D.header),this.set("data.continuations",
D.continuations||[]);this.isReloading=!1};
_.S.computeContentsClass=function(D){return D?"reloading":""};
_.S.computeSectionIdentifier=function(D){return D==null?void 0:D.sectionIdentifier};
_.S.computeFitContainer=function(D){return(D==null?void 0:D.sectionIdentifier)==="youchat-item-section"};
_.S.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.b("kevlar_disable_comments_auto_load")};
_.S.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.S.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.S.computeHasDestinationShelfRenderer=function(D){var C,X;return!!(D==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:X.destinationShelfRenderer)};
_.S.computeHasSectionGroupViewModel=function(D){var C,X;return!!(D==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:X.sectionGroupViewModel)};
_.S.computeHasQrCodeRenderer=function(D){var C,X;return!!(D==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:X.qrCodeRenderer)};
_.S.computeStaticCommentsHeader=function(D){return D&&this.containsComments()};
_.S.computeEpRestyle=function(D){return _.b("web_ep_restyling")&&D&&this.containsComments()};
_.S.computeIsContinuationCommentSection=function(D){return(D==null?void 0:D.targetId)==="shorts-engagement-panel-comments-section"||(D==null?void 0:D.targetId)==="comments-section"||(D==null?void 0:D.targetId)==="engagement-panel-comments-section"};
_.S.computeSuppressPaddingDisclaimer=function(){var D,C,X,c;return!!((D=this.data)==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:(c=X.productListHeaderRenderer)==null?0:c.suppressPaddingDisclaimer)};
_.S.computeHeaderStyle=function(D){switch(D==null?void 0:D.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.S.dataChanged=function(){this.firstCommentsLoaded=!1};
_.S.observeDataContentsLength=function(){var D,C;((D=this.data)==null?0:(C=D.contents)==null?0:C.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.S.onYtDismissibleItemDismissedChange=function(D){this._setItemDismissed(D.type==="yt-dismissible-item-dismissed")};
_.S.triggerContinuations=function(){for(var D=_.SY(this.hostElement).querySelector("#continuations").children,C=0;C<D.length;C++)D[C].trigger()};
_.S.triggerInitialContinuations=function(){for(var D=_.SY(this.hostElement).querySelector("#continuations").children,C=0;C<D.length;C++)D[C].triggerIfNotPreviouslyTriggered()};
_.S.handleYtItemSectionContinuation=function(D,C){var X;C&&((X=this.data)==null?void 0:X.sectionIdentifier)!==C||(this.set("data.continuations",[D]),this.triggerContinuations())};
_.S.handleYtItemSectionReplace=function(D,C){var X;C&&((X=this.data)==null?void 0:X.sectionIdentifier)!==C||(this.set("data.contents",D),this.set("data.continuations",[]))};
_.S.computeUseHeightHack=function(D){return D&&!_.b("kevlar_disable_height_hack")};
_.S.computeTopSpacingZero=function(D){return D};
_.S.continuationShowButtonChanged=function(){var D=_.SY(this.hostElement).querySelector("ytd-continuation-item-renderer");D&&(D.showButton=this.continuationShowButton)};
_.S.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("data-changed",this.data))};
_.$a.Object.defineProperties(mt.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.b("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:X.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c,W,p,g;return!!((D=this.data)==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:(c=X.shelfRenderer)==null?0:(W=c.content)==null?0:(p=W.gridRenderer)==null?0:(g=p.targetId)==null?0:g.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:X.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.contents)==null?0:(X=C[0])==null?0:X.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.bX("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.b("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.b("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!((D=this.data)==null?0:(C=D.header)==null?0:C.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.b("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.b("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
mt.prototype.dataChangedForBinding=mt.prototype.dataChangedForBinding;mt.prototype.continuationShowButtonChanged=mt.prototype.continuationShowButtonChanged;mt.prototype.onYtDismissibleItemDismissedChange=mt.prototype.onYtDismissibleItemDismissedChange;mt.prototype.observeDataContentsLength=mt.prototype.observeDataContentsLength;mt.prototype.dataChanged=mt.prototype.dataChanged;mt.prototype.onServiceRequestCompleted=mt.prototype.onServiceRequestCompleted;mt.prototype.onLoadReloadContinuation=mt.prototype.onLoadReloadContinuation;
mt.prototype.onRetrieveLocation=mt.prototype.onRetrieveLocation;mt.prototype.commentsHidePanelButtonChanged=mt.prototype.commentsHidePanelButtonChanged;mt.prototype.dispatchChipBarIsSticky=mt.prototype.dispatchChipBarIsSticky;mt.prototype.updateStickySetup=mt.prototype.updateStickySetup;mt.prototype.updateLockupContainerTypes=mt.prototype.updateLockupContainerTypes;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],mt.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],mt.prototype,"ytLazyListBehavior",void 0);_.V([_.m(_.L3.YtNextContinuationBehavior),_.z("design:type",Object)],mt.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.m(_.xA),_.z("design:type",Object)],mt.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],mt.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],mt.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],mt.prototype,"darkerPanels",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Boolean)],mt.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"commentsHidePanelButton",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"isWatchGrid",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"continuationShowButton",void 0);_.V([_.n({computed:"computeIsContinuationCommentSection(data)"}),_.z("design:type",Boolean)],mt.prototype,"continuationIsCommentsSection",void 0);
_.V([_.n({value:!0}),_.z("design:type",Boolean)],mt.prototype,"autoFill",void 0);_.V([_.n(),_.z("design:type",Boolean)],mt.prototype,"continuationDisablePrescanVisibility",void 0);_.V([_.n(),_.z("design:type",Boolean)],mt.prototype,"isReloading",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"isSearch",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"isConstrainedList",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"isWatch",void 0);
_.V([_.n(),_.z("design:type",Object)],mt.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"useBigThumbs",void 0);_.V([_.n({selector:_.Y_,reflectToAttribute:!0}),_.z("design:type",Object)],mt.prototype,"isGridViewEnabled",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.z("design:type",Object)],mt.prototype,"epRestyle",void 0);
_.V([_.e("isWatch"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"hideShortsShelfHeader",null);_.V([_.e("isSearch","isWatch"),_.z("design:type",String),_.z("design:paramtypes",[])],mt.prototype,"thumbnailWidth",null);_.V([_.e("isSearch","containerWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],mt.prototype,"thumbnailTargetWidth",null);
_.V([_.e("isSearch","isWatch","useBigThumbs"),_.z("design:type",String),_.z("design:paramtypes",[])],mt.prototype,"sizing",null);_.V([_.e("isWatch","isGridViewEnabled","useBigThumbs","data"),_.n({reflectToAttribute:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],mt.prototype,"lockupContainerType",null);_.V([_.vr("lockupContainerType","data"),_.z("design:type",Function),_.z("design:paramtypes",[Number]),_.z("design:returntype")],mt.prototype,"updateLockupContainerTypes",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],mt.prototype,"pageSubtype",void 0);_.V([_.n(),_.z("design:type",Number)],mt.prototype,"containerWidth",void 0);_.V([_.n(),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"isPlaylist",null);_.V([_.n(),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"isClipList",null);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"isCarouselInFeed",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"isPlaylistVideoContainer",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"isSearchFrictionPage",null);_.V([_.n({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.z("design:type",Boolean)],mt.prototype,"useHeightHack",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.z("design:type",Object)],mt.prototype,"topSpacingZero",void 0);_.V([_.n({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.z("design:type",Boolean)],mt.prototype,"showButton",void 0);_.V([_.n(),_.z("design:type",Boolean)],mt.prototype,"firstCommentsLoaded",void 0);_.V([_.n(),_.z("design:type",Object)],mt.prototype,"continuationIsInitialLoad",void 0);
_.V([_.n({reflectToAttribute:!0,readOnly:!0}),_.z("design:type",Boolean)],mt.prototype,"itemDismissed",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.z("design:type",String)],mt.prototype,"sectionIdentifier",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.z("design:type",String)],mt.prototype,"fitContainer",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.z("design:type",Boolean)],mt.prototype,"hasDestinationShelfRenderer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.z("design:type",Boolean)],mt.prototype,"staticCommentsHeader",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],mt.prototype,"enableSqueezebackPanels",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],mt.prototype,"enableAnchoredPanel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.z("design:type",Boolean)],mt.prototype,"hasSectionGroupViewModel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.z("design:type",Boolean)],mt.prototype,"hasQrCodeRenderer",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.z("design:type",Boolean)],mt.prototype,"suppressDisclaimerSeparator",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.z("design:type",String)],mt.prototype,"headerStyle",void 0);_.V([_.e("isSearch","isWatch","useBigThumbs"),_.z("design:type",Object),_.z("design:paramtypes",[])],mt.prototype,"lockupExperiments",null);
_.V([_.e("isSearch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"typographyBump",null);_.V([_.kn("#header"),_.z("design:type",HTMLElement)],mt.prototype,"header",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],mt.prototype,"notSticky",void 0);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],mt.prototype,"useChipBarViewModelHeader",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"expFixPlaylistHeader",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mt.prototype,"expFixPlaylistHeaderV2",null);_.V([_.vr("pageSubtype"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"updateStickySetup",null);
_.V([_.vr("notSticky"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"dispatchChipBarIsSticky",null);_.V([_.vr("commentsHidePanelButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"commentsHidePanelButtonChanged",null);_.V([_.$n("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],mt.prototype,"onRetrieveLocation",null);
_.V([_.$n("yt-load-reload-continuation"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Function]),_.z("design:returntype")],mt.prototype,"onLoadReloadContinuation",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"onServiceRequestCompleted",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"dataChanged",null);
_.V([_.bH("data.contents.length"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"observeDataContentsLength",null);_.V([_.$n("yt-dismissible-item-dismissed"),_.$n("yt-dismissible-item-undismissed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],mt.prototype,"onYtDismissibleItemDismissedChange",null);
_.V([_.vr("continuationShowButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"continuationShowButtonChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mt.prototype,"dataChangedForBinding",null);_.V([_.yj({is:"ytd-item-section-renderer",disableElementRegistration:!0})],mt);
_.G(mt,"ytd-item-section-renderer",function(){if(Mif!==void 0)return Mif;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Mif=D},{mode:1});var T5U;var th3=_.jV(_.I7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var HhX={},EKm=(HhX[0]={title:_.Ce(_.I7("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(_.I7("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.l5("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},HhX[1]={title:_.Ce(_.I7("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.l5("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},HhX);_.sI("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var e9=function(){var D=_.w.apply(this,arguments)||this;D.allVideosCount=0;D.allPlaylistCount=0;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;D.areAllSmartDownloadsDeleted=!1;D.smartDownloadsCompleted=!1;return D};
_.h(e9,_.w);e9.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
e9.prototype.attached=function(){this.downloadsToRenderChanged()};
e9.prototype.detached=function(){this.set("renderableData",{})};
e9.prototype.downloadsToRenderChanged=function(){var D=_.fe().getState().entities,C=_.xP(D),X=_.b("kevlar_playlist_dl_page_killswitch")?LVd(D):_.Le(D),c=_.Qsr(D),W=_.KVF(D),p=_.QZ(C);D=_.s1(D);this.set("renderableData",YEF(X,C,c,W,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,p,D))};
e9.prototype.downloadsToRenderChanged=e9.prototype.downloadsToRenderChanged;_.V([_.m(_.OA),_.z("design:type",Object)],e9.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],e9.prototype,"renderableData",void 0);_.V([_.n({selector:_.Glh}),_.z("design:type",Object)],e9.prototype,"allVideosCount",void 0);_.V([_.n({selector:kH5}),_.z("design:type",Object)],e9.prototype,"allPlaylistCount",void 0);_.V([_.n({selector:_.Nh}),_.z("design:type",Object)],e9.prototype,"isOnline",void 0);_.V([_.n({selector:_.MOR}),_.z("design:type",Object)],e9.prototype,"shouldRenderDownloadsBanner",void 0);
_.V([_.n({selector:_.Rfm}),_.z("design:type",Object)],e9.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.n({selector:_.q7J}),_.z("design:type",Object)],e9.prototype,"hasOptedIntoSmartDownloads",void 0);_.V([_.n({selector:_.feJ}),_.z("design:type",Object)],e9.prototype,"areAllSmartDownloadsDeleted",void 0);_.V([_.n({selector:dLW}),_.z("design:type",Object)],e9.prototype,"smartDownloadsCompleted",void 0);
_.V([_.bH("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e9.prototype,"downloadsToRenderChanged",null);_.V([_.yj({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],e9);
_.G(e9,"ytd-offline-item-section-renderer",function(){if(T5U!==void 0)return T5U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return T5U=D},
{mode:1});var JWY;var z31;var EV=function(){return _.w.apply(this,arguments)||this};
_.h(EV,_.w);
EV.prototype.onDataChanged=function(){if(this.JSC$17020_lastData){var D=this.getFilterClass(this.JSC$17020_lastData.status);D&&this.hostElement.classList.remove(D)}var C;(D=this.getFilterClass((C=this.data)==null?void 0:C.status))&&this.hostElement.classList.add(D);D==="selected"?_.SY(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.SY(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");D==="disabled"?_.SY(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.SY(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17020_lastData=this.data};
EV.prototype.getFilterClass=function(D){switch(D){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
EV.prototype.onDataChanged=EV.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],EV.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EV.prototype,"onDataChanged",null);_.V([_.yj({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],EV);
_.G(EV,"ytd-search-filter-renderer",function(){if(z31!==void 0)return z31;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return z31=D},{mode:_.Wc("kevlar_poly_si_batch_j075")?1:2});var tz=function(){return _.w.apply(this,arguments)||this};
_.h(tz,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],tz.prototype,"data",void 0);_.V([_.yj({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],tz);
_.G(tz,"ytd-search-filter-group-renderer",function(){if(JWY!==void 0)return JWY;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JWY=D},{mode:_.Wc("kevlar_poly_si_batch_j075")?1:2});var jmt;var N2=function(){return _.w.apply(this,arguments)||this};
_.h(N2,_.w);N2.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.m8());this.isCollapsed=!this.isCollapsed};
N2.prototype.navigateToAboutTheseResultsPage=function(){var D=_.V$("https://www.youtube.com/howyoutubeworks/product-features/search/");D?_.ct(window,D,"_blank"):_.Re(Error("Uh"))};
N2.prototype.dataChanged=function(){this.isCollapsed=!0};
N2.prototype.computeShowBottomBorder=function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.button)==null?0:C.toggleButtonRenderer)||!((X=this.data)==null||!X.aboutTheseResultsButton)};
N2.prototype.dataChanged=N2.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],N2.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.z("design:type",Boolean)],N2.prototype,"showBottomBorder",void 0);_.V([_.n(),_.z("design:type",Boolean)],N2.prototype,"renderCollapsibleMenu",void 0);
_.V([_.n(),_.z("design:type",Boolean)],N2.prototype,"isCollapsed",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N2.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],N2);
_.G(N2,"ytd-search-sub-menu-renderer",function(){if(jmt!==void 0)return jmt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jmt=D},{mode:1});var MZG;var qmU=new _.P6("SECTION_LIST_RENDERER_TOKEN");var fnU;var Ye=function(){return _.w.apply(this,arguments)||this};
_.h(Ye,_.w);Ye.prototype.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ye.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],Ye.prototype,"headerStyle",void 0);_.V([_.yj({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Ye);
_.G(Ye,"ytd-text-header-renderer",function(){if(fnU!==void 0)return fnU;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return fnU=D},{mode:1});var dRU;var yu=function(){return _.w.apply(this,arguments)||this};
_.h(yu,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yu.prototype,"data",void 0);_.V([_.yj({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],yu);
_.G(yu,"ytd-minor-moment-header-renderer",function(){if(dRU!==void 0)return dRU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return dRU=D},{mode:1});var R3k;var nZ=function(){return _.w.apply(this,arguments)||this};
_.h(nZ,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nZ.prototype,"data",void 0);_.V([_.yj({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],nZ);
_.G(nZ,"ytd-minor-moment-setting-alert-renderer",function(){if(R3k!==void 0)return R3k;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return R3k=D},{mode:1});var ln1;var DfG;var wg=function(){var D=_.w.apply(this,arguments)||this;D.booleanSettingById=!1;D.smartDownloadsEnabledVE=_.Ia(128287);D.smartDownloadsDisabledVE=_.Ia(128286);D.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return D};
_.h(wg,_.w);_.S=wg.prototype;_.S.attachSmartDownloadsSettingVes=function(){var D;this.activeVeForLogging||((D=this.data)==null?void 0:D.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Vc(_.iO(),this.smartDownloadsEnabledVE),_.Vc(_.iO(),this.smartDownloadsDisabledVE))};
_.S.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.lE(this.hostElement,"yt-settings-switch-ready")};
_.S.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.S.onSwitchChange=function(D){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(D=_.qz(D).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.b("kevlar_settings_switch_resolve_command_killswitch")?_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(D)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.S.handleUpdateSettingsSwitch=function(D){(D=_.r(D,QCf))&&this.data&&this.data.id===D.id&&this.set("data.enabled",!!D.enabled)};
_.S.onToggleSettingsSwitch=function(D,C){this.data&&this.data.id===D&&this.set("data.enabled",C!=null?C:!this.data.enabled)};
_.S.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.em.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.S.maybeLogSmartDownloadsSettingVisibility=function(){var D=_.LN(),C;D&&((C=this.data)==null?void 0:C.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.VP(D,[this.smartDownloadsEnabledVE]),_.To(D,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.VP(D,[this.smartDownloadsDisabledVE]),_.To(D,[this.smartDownloadsEnabledVE])))};
_.S.maybeLogSmartDownloadsSettingClick=function(){var D;((D=this.data)==null?void 0:D.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Hj(_.iO(),this.activeVeForLogging)};
_.S.updateDataEnabledFromBinding=function(D){this.set("data.enabled",D.detail.value)};
_.$a.Object.defineProperties(wg.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!D&&(D=this.ytRendererBehavior.getSimpleString(this.data.title));return D}}});
wg.prototype.dataChanged=wg.prototype.dataChanged;_.V([_.m(_.OA),_.z("design:type",Object)],wg.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],wg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],wg.prototype,"data",void 0);_.V([_.n({selector:function(D,C){if(Object.keys(D==null?void 0:D.entities).length)switch(C){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return ssm(D.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.z("design:type",Object)],wg.prototype,"booleanSettingById",void 0);_.V([_.n(),_.z("design:type",h8)],wg.prototype,"activeVeForLogging",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wg.prototype,"toggleAriaLabel",null);_.V([_.bH("data"),_.bH("booleanSettingById"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wg.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],wg);
_.G(wg,"ytd-settings-switch-renderer",function(){if(DfG!==void 0)return DfG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return DfG=D},{mode:1});var FW=function(){return _.w.apply(this,arguments)||this};
_.h(FW,_.w);FW.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}}}}};
_.$a.Object.defineProperties(FW.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var D=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(D+=" remove-left-margin");this.data.extraBottomSpace&&(D+=" extra-bottom-space");return D}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FW.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],FW.prototype,"contentsClassName",null);_.V([_.yj({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],FW);
_.G(FW,"ytd-minor-moment-setting-section-renderer",function(){if(ln1!==void 0)return ln1;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ln1=D},{mode:1});var Cb1;var Zq=function(){return _.w.apply(this,arguments)||this};
_.h(Zq,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Zq.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Zq.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Zq);
_.G(Zq,"ytd-empty-product-details-renderer",function(){if(Cb1!==void 0)return Cb1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Cb1=D},{mode:1});var XMP;var ccp;var Gs=function(){var D=_.w.apply(this,arguments)||this;D.expanded=!0;return D};
_.h(Gs,_.w);Gs.prototype.getBadgeRowClass=function(D,C,X){for(var c=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),W=c.next();!W.done;W=c.next())W.value.onShow();D=D.selected;return X?D!==-1?D===C?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(D!==void 0?D:0)===C?"badge-line":"badge-hidden"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Gs.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Gs.prototype,"expanded",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Gs);
_.G(Gs,"ytd-sponsorships-loyalty-badges-renderer",function(){if(ccp!==void 0)return ccp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ccp=D},{mode:1});var ogt;var Vu=function(){var D=_.w.apply(this,arguments)||this;D.expanded=!0;return D};
_.h(Vu,_.w);Vu.prototype.getContainerClasses=function(D,C){D=D?"expanded":"collapsed";C&&(D+=" item");return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Vu.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Vu.prototype,"expanded",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Vu);
_.G(Vu,"ytd-sponsorships-perk-renderer",function(){if(ogt!==void 0)return ogt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ogt=D},{mode:1});var WJG;var Ts=function(){var D=_.w.apply(this,arguments)||this;D.expanded=!0;return D};
_.h(Ts,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ts.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Ts.prototype,"expanded",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Ts);
_.G(Ts,"ytd-sponsorships-perks-renderer",function(){if(WJG!==void 0)return WJG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return WJG=D},{mode:1});var Hb=function(){var D=_.w.apply(this,arguments)||this;D.isCollapsed=!1;return D};
_.h(Hb,_.w);Hb.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Hb.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Hb.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var D;this.expandCollapseButton=_.r((D=this.data)==null?void 0:D.expandButton,_.AF)}else{var C;this.expandCollapseButton=_.r((C=this.data)==null?void 0:C.collapseButton,_.AF)}};
Hb.prototype.updateExpandCollapseButton=Hb.prototype.updateExpandCollapseButton;Hb.prototype.onDataChanged=Hb.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Hb.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Hb.prototype,"isCollapsed",void 0);_.V([_.n(),_.z("design:type",Object)],Hb.prototype,"expandCollapseButton",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hb.prototype,"onDataChanged",null);_.V([_.bH("data","isCollapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hb.prototype,"updateExpandCollapseButton",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Hb);
_.G(Hb,"ytd-sponsorships-expandable-perks-renderer",function(){if(XMP!==void 0)return XMP;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return XMP=D},{mode:1});var pM6;var Jz=function(){return _.w.apply(this,arguments)||this};
_.h(Jz,_.w);Jz.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Jz.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Jz.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Jz);
_.G(Jz,"ytd-sponsorships-actionable-message-renderer",function(){if(pM6!==void 0)return pM6;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return pM6=D},{mode:1});var Sd3;var zs=function(){return _.w.apply(this,arguments)||this};
_.h(zs,_.w);_.S=zs.prototype;_.S.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.S.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.S.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.S.computeMessageContainerStyle=function(D){var C=D.expandableItems?" style-clickable":"";return D.messageContainerStyle?D.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+C:"style-unspecified"+C};
_.S.isSinglePerk=function(D){return!!D.messageContainerStyle&&(D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.S.onExpandedChanged=function(){var D=this;if(this.expanded)for(var C=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),X=C.next();!X.done;X=C.next())X.value.onShow();_.A0(this,function(){_.lE(D.hostElement,"yt-refit")})};
_.S.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
zs.prototype.onDataChanged=zs.prototype.onDataChanged;zs.prototype.onExpandedChanged=zs.prototype.onExpandedChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zs.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],zs.prototype,"expanded",void 0);
_.V([_.vr("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zs.prototype,"onExpandedChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zs.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],zs);
_.G(zs,"ytd-sponsorships-expandable-message-renderer",function(){if(Sd3!==void 0)return Sd3;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Sd3=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var Ufp;var j9=function(){return _.w.apply(this,arguments)||this};
_.h(j9,_.w);j9.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"}}}}};
j9.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.r(this.data.endButton,_.AF).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
j9.prototype.onDataChanged=j9.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],j9.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j9.prototype,"onDataChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],j9);
_.G(j9,"ytd-sponsorships-heading-renderer",function(){if(Ufp!==void 0)return Ufp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ufp=D},{mode:1});var ggG;var M2=function(){return _.w.apply(this,arguments)||this};
_.h(M2,_.w);_.V([_.n(),_.z("design:type",Object)],M2.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],M2);
_.G(M2,"ytd-sponsorships-links-renderer",function(){if(ggG!==void 0)return ggG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ggG=D},{mode:1});var ak3;var q2=function(){return _.w.apply(this,arguments)||this};
_.h(q2,_.w);_.S=q2.prototype;_.S.onDataChanged=function(){if(this.data&&this.data.expandableItems){var D;(D=_.SY(this.hostElement).querySelector("tp-yt-paper-button"))==null||D.setAttribute("role","button")}else{var C;(C=_.SY(this.hostElement).querySelector("tp-yt-paper-button"))==null||C.removeAttribute("role")}};
_.S.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.S.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.S.getTileClasses=function(D){return D?"tile expandable-tile":"tile"};
_.S.getButtonDisabled=function(D){return D?void 0:""};
q2.prototype.onDataChanged=q2.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],q2.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],q2.prototype,"expanded",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],q2.prototype,"onDataChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],q2);
_.G(q2,"ytd-sponsorships-list-tile-renderer",function(){if(ak3!==void 0)return ak3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ak3=D},{mode:1});var Ikt;var O51;var fZ=function(){return _.w.apply(this,arguments)||this};
_.h(fZ,_.w);fZ.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fZ.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],fZ);
_.G(fZ,"ytd-sponsorships-promotion-renderer",function(){if(O51!==void 0)return O51;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return O51=D},{mode:1});var Acp;var dg=function(){return _.w.apply(this,arguments)||this};
_.h(dg,_.w);dg.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dg.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],dg);
_.G(dg,"ytd-sponsorships-purchase-option-renderer",function(){if(Acp!==void 0)return Acp;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Acp=D},{mode:1});var PbN;var $fP;var vgX=function(){return _.w.apply(this,arguments)||this};
_.h(vgX,_.w);_.V([_.n(),_.z("design:type",Object)],vgX.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],vgX);
_.G(vgX,"ytd-ypc-offer-promo-renderer",function(){if($fP!==void 0)return $fP;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $fP=D},{mode:1});var Rz=function(){return _.w.apply(this,arguments)||this};
_.h(Rz,_.w);_.S=Rz.prototype;
_.S.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"}}}}};
_.S.expansionCTA=function(D,C){return D&&(C?D.collapseCallToAction:D.expansionCallToAction)};
_.S.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.S.expansionCallToActionTap=function(){var D=this;this.expanded=!this.expanded;_.A0(this,function(){_.lE(D.hostElement,"yt-refit")})};
_.S.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var D,C=(D=this.data)==null?void 0:D.onVisible;C&&this.ytComponentBehavior.resolveCommand(C)};
_.S.computeDisplayTitle=function(D){return!(!D||this.titledisplaystatus!=="show")};
_.S.computeDisplaySeparator=function(){return!1};
_.S.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Rz.prototype.onDataChanged=Rz.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rz.prototype,"data",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Rz.prototype,"expanded",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Rz.prototype,"purchaseButtonClicked",void 0);_.V([_.n({reflectToAttribute:!0,value:"show"}),_.z("design:type",String)],Rz.prototype,"titledisplaystatus",void 0);_.V([_.n({computed:"computeDisplayTitle(data.title)"}),_.z("design:type",Boolean)],Rz.prototype,"displayTitle",void 0);
_.V([_.n({computed:"computeDisplaySeparator(data)"}),_.z("design:type",Boolean)],Rz.prototype,"displaySeparator",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rz.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Rz);
_.G(Rz,"ytd-sponsorships-tier-renderer",function(){if(PbN!==void 0)return PbN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return PbN=D},{mode:2});var lM=function(){return _.w.apply(this,arguments)||this};
_.h(lM,_.w);
lM.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],lM.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],lM);
_.G(lM,"ytd-sponsorships-management-renderer",function(){if(Ikt!==void 0)return Ikt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Ikt=D},{mode:1});var i5t;var Dz=function(){return _.w.apply(this,arguments)||this};
_.h(Dz,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Dz.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Dz);
_.G(Dz,"ytd-open-in-native-app-view-model",function(){if(i5t!==void 0)return i5t;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return i5t=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var kNU;var uew;var Qqo=_.q8(["top-"]),BxN=_.q8(["bottom-"]),b51=_.q8(["left-"]),rct=_.q8(["right-"]),KJ6={},h4U=function(D,C,X){D.removeAttribute("top-"+X);D.removeAttribute("bottom-"+X);D.removeAttribute("left-"+X);D.removeAttribute("right-"+X);C&&(C.top&&_.IG([_.$X(Qqo)],D,"top-"+X,C.top),C.bottom&&_.IG([_.$X(BxN)],D,"bottom-"+X,C.bottom),C.left&&_.IG([_.$X(b51)],D,"left-"+X,C.left),C.right&&_.IG([_.$X(rct)],D,"right-"+X,C.right))};
KJ6.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(D){var C,X=_.SY((C=this.hostElement)!=null?C:this),c;C=this.cardItemBoxBehaviorMarginTargetId&&X?X.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(c=this.hostElement)!=null?c:this;h4U(C,D,"margin")},
cardItemContainerPaddingChanged_:function(D){var C,X=_.SY((C=this.hostElement)!=null?C:this),c;C=this.cardItemBoxBehaviorPaddingTargetId&&X?X.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(c=this.hostElement)!=null?c:this;h4U(C,D,"padding")}}];var Cs={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 xfG;var LJo;var Xi=function(){return _.w.apply(this,arguments)||this};
_.h(Xi,_.w);Xi.prototype.textColorChanged_=function(){this.hostElement.style.color=Cs[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Xi.prototype.textColorChanged_=Xi.prototype.textColorChanged_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.V([_.m(KJ6.YtCardItemBoxBehavior),_.z("design:type",Object)],Xi.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Xi.prototype,"data",void 0);_.V([_.vr("data.textColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xi.prototype,"textColorChanged_",null);
_.V([_.Yn({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Xi);
_.G(Xi,"yt-card-item-text-renderer",function(){if(LJo===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;xfG===void 0&&(xfG=document.createElement("template"));var c=xfG;X.call(C,c.content.cloneNode(!0),D.content.firstChild);LJo=D}D=LJo;return D},{mode:2});var sqN;var mfG;var cZ=function(){return _.w.apply(this,arguments)||this};
_.h(cZ,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],cZ.prototype,"data",void 0);_.V([_.Yn({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],cZ);
_.G(cZ,"yt-card-item-badge-renderer",function(){if(mfG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;sqN===void 0&&(sqN=document.createElement("template"));var c=sqN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);mfG=D}D=mfG;return D},{mode:2});var e4X;var Egk;var oF=function(){return _.w.apply(this,arguments)||this};
_.h(oF,_.w);oF.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oF.prototype,"data",void 0);_.V([_.Yn({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],oF);
_.G(oF,"yt-card-item-text-collection-renderer",function(){if(Egk===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;e4X===void 0&&(e4X=document.createElement("template"));var c=e4X;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Egk=D}D=Egk;return D},{mode:2});var tCt;var Nx6;var WZ=function(){return _.w.apply(this,arguments)||this};
_.h(WZ,_.w);WZ.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],WZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Number)],WZ.prototype,"iconSize",void 0);_.V([_.Yn({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],WZ);
_.G(WZ,"yt-card-item-text-with-button-renderer",function(){if(Nx6===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;tCt===void 0&&(tCt=document.createElement("template"));var c=tCt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Nx6=D}D=Nx6;return D},{mode:2});var ps=function(){return _.w.apply(this,arguments)||this};
_.h(ps,_.w);ps.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ps.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],ps);
_.G(ps,"ytd-commerce-cart-summary-line-item-renderer",function(){if(uew!==void 0)return uew;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return uew=D},{mode:1});_.sI("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var S1=function(){var D=_.w.apply(this,arguments)||this;D.hidden=!1;return D};
_.h(S1,_.w);_.S=S1.prototype;_.S.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"}}}}};
_.S.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.S.updateSummary=function(){var D=this.commerceCartCheckoutButtonEntity,C;if(((C=this.data)==null?0:C.cartButton)&&D.checkoutSummaryText){var X,c=md((X=this.data)==null?void 0:X.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",eb(D.checkoutSummaryText));if(D.checkoutDetailText){var W;X=md((W=this.data)==null?void 0:W.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",eb(D.checkoutDetailText))}if(D.checkoutAdditionalMetadataText){var p;
W=md((p=this.data)==null?void 0:p.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+W+".cardItemTextRenderer.text",eb(D.checkoutAdditionalMetadataText))}}else D.estimatedTotalPrice&&(p=md((c=this.data)==null?void 0:c.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+p+".cardItemTextRenderer.text",eb(D.estimatedTotalPrice)))};
_.S.updateIsHidden=function(){var D,C=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;C!==void 0&&(this.hidden=C)};
_.S.updateCheckoutButton=function(){var D,C=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isDisabled;C!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",C);var X;D=(X=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:X.innertubeCommand;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",D);var c;X=(c=this.commerceCartCheckoutButtonEntity)==null?void 0:c.checkoutButtonText;X!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:X})};
S1.prototype.entityChanged=S1.prototype.entityChanged;_.V([_.m(_.OA),_.z("design:type",Object)],S1.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],S1.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],S1.prototype,"fullWidth",void 0);_.V([_.n(),_.z("design:type",Object)],S1.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],S1.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],S1.prototype,"hidden",void 0);
_.V([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:g2F}),_.z("design:type",Object)],S1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.vr("commerceCartCheckoutButtonEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S1.prototype,"entityChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],S1);
_.G(S1,"ytd-commerce-cart-checkout-button-renderer",function(){if(kNU!==void 0)return kNU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return kNU=D},{mode:2});var YdX;_.yct={};
_.yct.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",_.Pr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Pr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(D){!this.tappableItemBehaviorTapEnabled||D.keyCode!==13&&D.keyCode!==32||D.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var D=this.data.onTap;D.ypcGetCartEndpoint?(_.cE(this.hostElement,[D]),this.tappableItemBehaviorTapEnabled=!1):D.ypcOffersEndpoint?_.cE(this.hostElement,[D]):_.o7(this.hostElement,[D],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(D){this.tappableItemBehaviorTapEnabled=!!D},
tappableItemBehaviorOnTapEnabledChanged_:function(){var D=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(D.setAttribute("tabIndex",0),D.setAttribute("role","button")):(D.removeAttribute("tabIndex"),D.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(D){D.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var ngt;var wMG;var Ut=function(){return _.w.apply(this,arguments)||this};
_.h(Ut,_.w);Ut.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ml("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ml("sharingToggleButtonAndDefaultButton")}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ut.prototype,"data",void 0);_.V([_.Yn({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Ut);
_.G(Ut,"yt-card-item-actions-renderer",function(){if(wMG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;ngt===void 0&&(ngt=document.createElement("template"));var c=ngt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);wMG=D}D=wMG;return D},{mode:2});var FJX;var Z5w;var GNt;var VCt;var Tx1;var H56;var gn=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return D};
_.h(gn,_.w);gn.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
gn.prototype.handleDarkModeToggledAction_=function(D){this.isDarkTheme_=D};
gn.prototype.computeThemeImage_=function(D,C){if(!D||!D.imageLight)return!1;this.isCircular_=D.isCircular;D.imageWidth&&(this.hostElement.style.width=D.imageWidth+"px");D.imageHeight&&(this.hostElement.style.height=D.imageHeight+"px");D.borderWidth&&(this.image.style.borderWidth=D.borderWidth+"px",this.image.style.borderStyle="solid");D.borderColor&&(this.image.style.borderColor=_.e_(D.borderColor));return C&&D.imageDark?D.imageDark:D.imageLight};
gn.prototype.computeThemeIcon_=function(D){var C,X;if(!(D==null?0:(C=D.themedIcon)==null?0:(X=C.icon)==null?0:X.iconType))return!1;this.icon.style.color=Cs[D.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(D.imageWidth||18)+"px";this.icon.style.height=(D.imageHeight||18)+"px";return _.g2(D.themedIcon.icon.iconType)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(KJ6.YtCardItemBoxBehavior),_.z("design:type",Object)],gn.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],gn.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gn.prototype,"data",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],gn.prototype,"fit",void 0);_.V([_.n(),_.z("design:type",Boolean)],gn.prototype,"isDarkTheme_",void 0);_.V([_.n({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.z("design:type",Object)],gn.prototype,"themeImage_",void 0);_.V([_.n({computed:"computeThemeIcon_(data)"}),_.z("design:type",Object)],gn.prototype,"themeIcon_",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],gn.prototype,"isCircular_",void 0);
_.V([_.kn("#image"),_.z("design:type",Object)],gn.prototype,"image",void 0);_.V([_.kn("#icon"),_.z("design:type",Object)],gn.prototype,"icon",void 0);_.V([_.Yn({is:"yt-themed-image-renderer",disableElementRegistration:!0})],gn);
_.G(gn,"yt-themed-image-renderer",function(){if(H56===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Tx1===void 0&&(Tx1=document.createElement("template"));var c=Tx1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);H56=D}D=H56;return D},{mode:2});var aF=function(){return _.w.apply(this,arguments)||this};
_.h(aF,_.w);aF.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"}}}}};
aF.prototype.computeImagePlacement_=function(D){return D||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],aF.prototype,"data",void 0);_.V([_.n({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.z("design:type",String)],aF.prototype,"imagePlacement",void 0);
_.V([_.Yn({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],aF);
_.G(aF,"yt-card-item-text-with-image-renderer",function(){if(VCt===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;GNt===void 0&&(GNt=document.createElement("template"));var c=GNt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);VCt=D}D=VCt;return D},{mode:2});var IF=function(){return _.w.apply(this,arguments)||this};
_.h(IF,_.w);IF.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],IF.prototype,"data",void 0);_.V([_.Yn({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],IF);
_.G(IF,"yt-card-item-error-renderer",function(){if(Z5w===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;FJX===void 0&&(FJX=document.createElement("template"));var c=FJX;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Z5w=D}D=Z5w;return D},{mode:2});var Jck;var z4X;_.sI("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Ot=function(){return _.w.apply(this,arguments)||this};
_.h(Ot,_.w);_.S=Ot.prototype;
_.S.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"}}}}};
_.S.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.S.backgroundColorChanged_=function(){var D,C=(D=this.data)==null?void 0:D.backgroundColor;D=Cs[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.SY(this.hostElement).querySelector("#main-content").style.backgroundColor=D};
_.S.headerPromoBackgroundColorChanged_=function(){var D,C=(D=this.data)==null?void 0:D.headerPromoBackgroundColor;D=Cs[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.SY(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=D};
_.S.errorRendererVisibilityChanged_=function(){var D=this.isExpanded_,C;this.isErrorRendererVisible_=!((C=this.data)==null||!C.errorRenderer)&&!D};
_.S.onYtToggleButton_=function(D,C){this.isExpanded_=C.toggled};
Ot.prototype.onYtToggleButton_=Ot.prototype.onYtToggleButton_;Ot.prototype.errorRendererVisibilityChanged_=Ot.prototype.errorRendererVisibilityChanged_;Ot.prototype.headerPromoBackgroundColorChanged_=Ot.prototype.headerPromoBackgroundColorChanged_;Ot.prototype.backgroundColorChanged_=Ot.prototype.backgroundColorChanged_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(KJ6.YtCardItemBoxBehavior),_.z("design:type",Object)],Ot.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.m(_.yct.YtTappableItemBehavior),_.z("design:type",Object)],Ot.prototype,"ytTappableItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ot.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Ot.prototype,"isExpanded_",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],Ot.prototype,"isErrorRendererVisible_",void 0);_.V([_.vr("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"backgroundColorChanged_",null);_.V([_.vr("data.headerPromoBackgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"headerPromoBackgroundColorChanged_",null);
_.V([_.vr("data.errorRenderer","isExpanded_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"errorRendererVisibilityChanged_",null);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],Ot.prototype,"onYtToggleButton_",null);_.V([_.Yn({is:"yt-card-item-renderer",disableElementRegistration:!0})],Ot);
_.G(Ot,"yt-card-item-renderer",function(){if(z4X===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Jck===void 0&&(Jck=document.createElement("template"));var c=Jck;X.call(C,c.content.cloneNode(!0),D.content.firstChild);z4X=D}D=z4X;return D},{mode:2});_.sI("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Ad=function(){var D=_.w.apply(this,arguments)||this;D.hidden=!1;return D};
_.h(Ad,_.w);_.S=Ad.prototype;_.S.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.S.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.S.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,C=(D=this.commerceCartHeaderEntity)==null?void 0:D.isHidden;C!==void 0&&(this.hidden=C)}};
_.S.updateTitle=function(){var D=this.commerceCartHeaderEntity.isDisabled,C,X,c=(X=_.r((C=this.data)==null?void 0:C.item,Qu5))==null?void 0:X.headingRenderer;c&&(C=md(c,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+C+".0.cardItemTextRenderer.textColor",D?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.S.updateSummaryText=function(){var D=this.commerceCartHeaderEntity;if(this.compact){var C,X,c=(X=_.r((C=this.data)==null?void 0:C.item,Qu5))==null?void 0:X.headingRenderer;c&&(C=md(c,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+C+".1.cardItemTextRenderer.text",D.shortHeaderSummaryText?eb(D.shortHeaderSummaryText):D.headerSummaryText?eb(D.headerSummaryText):""))}else{var W;if(C=(W=_.r((c=this.data)==null?void 0:c.item,Qu5))==null?void 0:W.additionalInfoRenderer)C=md(C,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".text",D.headerSummaryText?eb(D.headerSummaryText):"")}};
_.S.updateCheckoutButton=function(){var D=this.commerceCartHeaderEntity,C,X,c=(X=_.r((C=this.data)==null?void 0:C.item,Qu5))==null?void 0:X.additionalInfoRenderer;C=md(c,"buttonRenderer");var W;X=(W=this.commerceCartHeaderEntity)==null?void 0:W.isButtonDisabled;var p;W=(p=this.commerceCartHeaderEntity)==null?void 0:p.isButtonHidden;X!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".buttonRenderer.isDisabled",X);W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
W);var g;D=(g=D.checkoutButtonCommand)==null?void 0:g.innertubeCommand;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".buttonRenderer.command",D)};
Ad.prototype.entityChanged=Ad.prototype.entityChanged;_.V([_.m(_.OA),_.z("design:type",Object)],Ad.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ad.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ad.prototype,"compact",void 0);_.V([_.n({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(D,C){return _.aI(D.entities,"commerceCartHeaderEntity",C)}}),
_.z("design:type",Object)],Ad.prototype,"commerceCartHeaderEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ad.prototype,"hidden",void 0);_.V([_.vr("commerceCartHeaderEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ad.prototype,"entityChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Ad);
_.G(Ad,"ytd-commerce-cart-header-renderer",function(){if(YdX!==void 0)return YdX;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return YdX=D},{mode:1});var jqp;var MCk=_.t6(function(D,C){var X;return(X=D.onChangeCallback)==null?void 0:X.call(D,C)},1E3),qdw=_.F(function(D){var C=D.data;
var X=D.iconMinus;D=D.iconPlus;var c=function(){return!!C().disabled},W=_.U(_.Li(0,void 0,"mKh0af")),p=W.next().value,g=W.next().value;
W=_.I_(function(){if(p()===1){var u,Q;(Q=(u=C()).onRemoveCommand)==null||Q.call(u)}u=p()>C().maxValue?C().maxValue:p()-1;g(u);MCk(C(),u);return!1});
var a=_.I_(function(){if(p()===C().maxValue)return!1;var u=p()+1;g(u);MCk(C(),u);return!1});
_.H2(function(){g(C().value)});
var O={},P={},k={};return _.A("quantity-incrementer-shape",null,_.A("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.A("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return p()===(C().onRemoveCommand?0:1)||c()},
"aria-label":function(){return p()!==1?C().minusLabel:C().minimumReachedLabel},
"on:click":W},_.A(_.NL,{model:{circular:!0}}),_.A("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.A("div",{class:_.g$("ytSpecQuantityIncrementerShapeIcon",(O.ytSpecQuantityIncrementerShapeIconDisabled=function(){return c()||p()===(C().onRemoveCommand?0:1)},O))},X()))),_.A("div",{class:_.g$("ytSpecQuantityIncrementerShapeText",(P.ytSpecQuantityIncrementerShapeTextInvalid=function(){return p()>C().maxValue},P.ytSpecQuantityIncrementerShapeTextDisabled=c,P))},p),_.A("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return p()>=C().maxValue||c()},
"aria-label":function(){return p()!==C().maxValue?C().plusLabel:C().maximumReachedLabel},
"on:click":a},_.A(_.NL,{model:{circular:!0}}),_.A("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.A("div",{class:_.g$("ytSpecQuantityIncrementerShapeIcon",(k.ytSpecQuantityIncrementerShapeIconDisabled=function(){return p()>=C().maxValue||c()},k))},D())))))},"Mf");_.CI(_.F(function(D){function C(){X().onRemoveCommand&&_.FV(X().onRemoveCommand)}
var X=D.data;var c=_.ku(r5t,function(){return X().quantityIncrementerEntityKey});
return _.A("yt-quantity-incrementer-view-model",null,_.A(qdw,{data:function(){var W=X(),p;var g=c()?!((p=c())==null||!p.disabled):!1;var a;p=c()?(a=c())==null?void 0:a.quantity:X().quantity;return wg3(W,g,C,p)},
iconMinus:function(){return _.A(_.$_,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.A(_.$_,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Nf"),"yt-quantity-incrementer-view-model",{props:{data:_.Bm}});var PZ=function(){var D=_.w.apply(this,arguments)||this;D.compact=!1;D.hasQuantityIncrementer=!1;return D};
_.h(PZ,_.w);PZ.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"}}}};
PZ.prototype.computeHasQuantityIncrementer=function(){var D;return!!_.r((D=this.data)==null?void 0:D.picker,Kbd)};
PZ.prototype.onLabelClick=function(){var D;(D=this.dropdownEl)==null||D.open()};
_.V([_.kn("ytd-dropdown-renderer"),_.z("design:type",Object)],PZ.prototype,"dropdownEl",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],PZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],PZ.prototype,"quantityColor",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],PZ.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.z("design:type",Object)],PZ.prototype,"hasQuantityIncrementer",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],PZ);
_.G(PZ,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jqp!==void 0)return jqp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jqp=D},{mode:1});var fkX;var dft;var $$=function(){return _.w.apply(this,arguments)||this};
_.h($$,_.w);$$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$$.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
$$.prototype.updateTitle=function(){var D=this.disabledCartItemEntity;D.disableActionName&&this.set("data.title",eb(D.disableActionName))};
$$.prototype.updateButton=function(){var D,C=(D=this.disabledCartItemEntity.undoCommand)==null?void 0:D.innertubeCommand;C!==void 0&&(this.set("data.actionButton.buttonRenderer.command",C),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
$$.prototype.entityChanged=$$.prototype.entityChanged;_.V([_.m(_.OA),_.z("design:type",Object)],$$.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(D,C){return _.aI(D.entities,"disabledCartItemEntity",C)}}),
_.z("design:type",Object)],$$.prototype,"disabledCartItemEntity",void 0);_.V([_.n(),_.z("design:type",Object)],$$.prototype,"data",void 0);_.V([_.vr("disabledCartItemEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$$.prototype,"entityChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],$$);
_.G($$,"ytd-disabled-cart-item-renderer",function(){if(dft!==void 0)return dft;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return dft=D},{mode:1});_.sI("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var vZ=function(){var D=_.w.apply(this,arguments)||this;D.compact=!1;D.hidden=!1;D.errorHidden=!1;D.noOnTap=!1;return D};
_.h(vZ,_.w);_.S=vZ.prototype;
_.S.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"}}}};
_.S.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.S.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var D=this.firstButtonElement;D.alignByText=!0;D.iconAlignByText=!0}};
_.S.computeNoOnTap=function(D){return!D};
_.S.updateQuantityColor=function(){if(this.pickerElement){var D,C=(D=this.commerceCartItemEntity)==null?void 0:D.quantityColor;this.pickerElement.quantityColor=C}};
_.S.updateTotalPriceColor=function(){var D,C=(D=this.commerceCartItemEntity)==null?void 0:D.totalPriceColor;if(C){var X;D=_.r((X=this.data)==null?void 0:X.quantityPicker,b9g);if(X=_.r(D==null?void 0:D.price,Bzc))X.textColor=C}};
_.S.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,C=(D=this.commerceCartItemEntity)==null?void 0:D.isHidden;C!==void 0&&(this.hidden=C)}};
_.S.updateHideErrorMessage=function(){var D,C=(D=this.commerceCartItemEntity)==null?void 0:D.hideErrorMessage;C!==void 0&&(this.errorHidden=C)};
_.S.updateQuantity=function(){var D=this,C,X=(C=this.commerceCartItemEntity)==null?void 0:C.quantity,c;C=(c=this.commerceCartItemEntity)==null?void 0:c.totalPrice;if(X){this.updateTotalPriceColor();this.updateQuantityColor();var W;c=_.r((W=this.data)==null?void 0:W.quantityPicker,b9g);if(W=_.r(c==null?void 0:c.price,Bzc))W.text=C?{simpleText:C.content}:void 0;if(C=_.r(c==null?void 0:c.picker,Kbd))C.quantity=X;var p;if(W=(p=_.r(c==null?void 0:c.picker,Q1d))==null?void 0:p.entries){p=!1;C=void 0;W=
_.U(W);for(c=W.next();!c.done;c=W.next())c=c.value,c.dropdownItemRenderer&&(C||(C=c.dropdownItemRenderer),c.dropdownItemRenderer.isSelected=!1,X===c.dropdownItemRenderer.int32Value&&(p=!0,c.dropdownItemRenderer.isSelected=!0));!p&&C&&(C.isSelected=!0)}_.A0(this,function(){var g;D.set("data.quantityPicker",_.ZI.unsafeClone((g=D.data)==null?void 0:g.quantityPicker))})}};
vZ.prototype.onYtRendererstamperFinished=vZ.prototype.onYtRendererstamperFinished;vZ.prototype.entityChanged=vZ.prototype.entityChanged;_.V([_.n(),_.z("design:type",Object)],vZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],vZ.prototype,"compact",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],vZ.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],vZ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(D,C){return _.aI(D.entities,"commerceCartItemEntity",C)}}),
_.z("design:type",Object)],vZ.prototype,"commerceCartItemEntity",void 0);_.V([_.n(),_.z("design:type",Object)],vZ.prototype,"quantityPicker",void 0);_.V([_.n(),_.z("design:type",Object)],vZ.prototype,"compactQuantityPicker",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],vZ.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],vZ.prototype,"errorHidden",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.z("design:type",Object)],vZ.prototype,"noOnTap",void 0);_.V([_.kn("ytd-commerce-cart-item-quantity-picker-renderer"),_.z("design:type",Object)],vZ.prototype,"pickerElement",void 0);_.V([_.kn("yt-button-renderer"),_.z("design:type",Element)],vZ.prototype,"firstButtonElement",void 0);
_.V([_.vr("commerceCartItemEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vZ.prototype,"entityChanged",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vZ.prototype,"onYtRendererstamperFinished",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],vZ);
_.G(vZ,"ytd-commerce-cart-item-renderer",function(){if(fkX!==void 0)return fkX;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return fkX=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var R4Y;var lkt;var im=function(){return _.w.apply(this,arguments)||this};
_.h(im,_.w);im.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}}}}}};
im.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
im.prototype.updateCheckoutLineItems=function(){var D,C=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.checkoutLineItems;C&&(D=C.map(function(X){a:{var c=X.price,W=X.description;switch(X.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":X={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:eb(W),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:eb(c),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:eb(W),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:eb(c),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",D))};
im.prototype.updateIsHidden=function(){var D,C=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;C!==void 0&&(this.hostElement.hidden=C)};
im.prototype.entityChanged=im.prototype.entityChanged;_.V([_.m(_.OA),_.z("design:type",Object)],im.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],im.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],im.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:g2F}),_.z("design:type",Object)],im.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.vr("commerceCartCheckoutButtonEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],im.prototype,"entityChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],im);
_.G(im,"ytd-commerce-cart-summary-renderer",function(){if(lkt!==void 0)return lkt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return lkt=D},{mode:1});var DY3={};DY3.InjectBehavior=[dW3.InjectBehavior];var C6N;var Xpt;var k$=function(){return _.w.apply(this,arguments)||this};
_.h(k$,_.w);
k$.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:_.ml("menuRenderer")}}};
k$.prototype.onMenuTap=function(D){D.stopPropagation()};
_.$a.Object.defineProperties(k$.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 D,C;return!(((D=this.data)==null||!D.sectionHeading)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var D,C;return!(((D=this.data)==null||!D.image)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var D,C;return!(((D=this.data)==null||!D.menu)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.yct.YtTappableItemBehavior),_.z("design:type",Object)],k$.prototype,"ytTappableItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],k$.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data.accessibilityData"),_.z("design:type",String),_.z("design:paramtypes",[])],k$.prototype,"ariaLabel",null);_.V([_.e("data.sectionHeading","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],k$.prototype,"sectionHeadingVisible",null);_.V([_.e("data.image","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],k$.prototype,"imageVisible",null);
_.V([_.e("data.menu","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],k$.prototype,"menuVisible",null);_.V([_.Yn({is:"yt-activity-item-renderer",disableElementRegistration:!0})],k$);
_.G(k$,"yt-activity-item-renderer",function(){if(Xpt===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;C6N===void 0&&(C6N=document.createElement("template"));var c=C6N;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Xpt=D}D=Xpt;return D},{mode:2});var cPk;var ot1;var WGP;var ppG;var um=function(){return _.w.apply(this,arguments)||this};
_.h(um,_.w);
um.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"}}}}};
um.prototype.backgroundColorChanged_=function(){var D,C=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=Cs[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
um.prototype.backgroundColorChanged_=um.prototype.backgroundColorChanged_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],um.prototype,"data",void 0);
_.V([_.vr("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],um.prototype,"backgroundColorChanged_",null);_.V([_.Yn({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],um);
_.G(um,"yt-offer-item-upsell-renderer",function(){if(ppG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;WGP===void 0&&(WGP=document.createElement("template"));var c=WGP;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ppG=D}D=ppG;return D},{mode:2});_.sI("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Q1=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};D.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return D};
_.h(Q1,_.w);_.S=Q1.prototype;
_.S.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:_.ml("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.S.computeContainerStyle_=function(D){return D};
_.S.computeContainerIsHidden_=function(D){return D&&!!D.isHidden};
_.S.computeShowSpinner_=function(D,C){return D&&C==="in-progress"};
_.S.computeShowMoreContentsButton_=function(D,C,X,c,W){return!(!(c&&c.length||W&&W.length&&X)||!D||C)};
_.S.onToggleButton_=function(D){var C=this;D.stopPropagation();this.isExpanded_=D.detail&&D.detail.toggled;var X,c;this.isExpanded_&&!this.data.continuationSection.length&&((X=this.data)==null?0:(c=X.continuation)==null?0:c.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.lE(this.hostElement,"yt-load-next-continuation",function(W){return C.getContinuationUrl_(C.data.continuation.onClickContinuationData,W)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.cE(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.S.onShowMoreContentsButtonClicked_=function(D){var C=this;D.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.lE(this.hostElement,"yt-load-next-continuation",function(X){return C.getContinuationUrl_(C.data.continuations[0].nextContinuationData,X)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.cE(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.S.getContinuationUrl_=function(D,C){var X=D.continuation;D=D.clickTrackingParams;var c=_.LN();D&&c&&_.HE(c,_.bO(D));return _.aQ(C,{continuation:X})};
_.S.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var D=_.SY(this.hostElement).querySelector("#continuation-section");D&&(D=D.querySelectorAll("ytmusic-item-section-renderer"))&&D.forEach(function(C){return C.classList.add("memberships-and-purchases")})};
_.S.dataChanged_=function(){var D;this.isExpanded_=!((D=this.data)==null||!D.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.S.updateCardOnClickCommand_=function(D){D=_.r(D,O95);var C,X;this.data&&((C=this.data)==null?0:C.targetId)&&D&&D.targetId===((X=this.data)==null?void 0:X.targetId)&&D.onClickCommand&&(this.data.onClickCommand=D.onClickCommand,this.isOnClickCommand_=!0)};
_.S.backgroundColorChanged_=function(){var D,C=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=Cs[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Q1.prototype.backgroundColorChanged_=Q1.prototype.backgroundColorChanged_;Q1.prototype.dataChanged_=Q1.prototype.dataChanged_;Q1.prototype.nextContinuationDataUpdated_=Q1.prototype.nextContinuationDataUpdated_;Q1.prototype.onToggleButton_=Q1.prototype.onToggleButton_;_.V([_.m(_.xA),_.z("design:type",Object)],Q1.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.L3.YtNextContinuationBehavior),_.z("design:type",Object)],Q1.prototype,"ytNextContinuationBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.V([_.m(DY3.InjectBehavior),_.z("design:type",Object)],Q1.prototype,"injectBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Q1.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Q1.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Q1.prototype,"isExpanded_",void 0);_.V([_.n({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.z("design:type",String)],Q1.prototype,"containerStyle_",void 0);_.V([_.n({value:"not-started"}),_.z("design:type",String)],Q1.prototype,"continuationStatus_",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.z("design:type",Boolean)],Q1.prototype,"showSpinner_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Q1.prototype,"isOnClickCommand_",void 0);_.V([_.n({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.z("design:type",Boolean)],Q1.prototype,"showMoreContentsButton_",void 0);
_.V([_.n({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(D,C){return!C||D.entities?null:_.aI(D.entities,"cardItemContainerEntity",C)}}),
_.z("design:type",Object)],Q1.prototype,"cardItemContainerEntity_",void 0);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Q1.prototype,"onToggleButton_",null);_.V([_.$n("yt-next-continuation-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q1.prototype,"nextContinuationDataUpdated_",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q1.prototype,"dataChanged_",null);_.V([_.vr("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q1.prototype,"backgroundColorChanged_",null);_.V([_.Yn({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Q1);
_.G(Q1,"yt-card-item-container-renderer",function(){if(ot1===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;cPk===void 0&&(cPk=document.createElement("template"));var c=cPk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ot1=D}D=ot1;return D},{mode:2});var BZ=function(){return _.w.apply(this,arguments)||this};
_.h(BZ,_.w);BZ.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"}}}};
BZ.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
BZ.prototype.computeLoadingHidden=function(){var D;return!((D=this.commerceCartPageStateEntity)==null?0:D.cartActionInProgress)};
BZ.prototype.updateNotification=function(){var D,C=(D=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:D.summaryText;C&&this.set("data.cartNotification",eb(C))};
BZ.prototype.notificationEntityChanged=BZ.prototype.notificationEntityChanged;_.V([_.m(_.OA),_.z("design:type",Object)],BZ.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],BZ.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(D,C){return _.aI(D.entities,"commerceCartExpandableNotificationEntity",C)}}),
_.z("design:type",Object)],BZ.prototype,"commerceCartExpandableNotificationEntity",void 0);_.V([_.n({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(D,C){return _.aI(D.entities,"commerceCartPageStateEntity",C)}}),
_.z("design:type",Object)],BZ.prototype,"commerceCartPageStateEntity",void 0);_.V([_.kn("#spinner"),_.z("design:type",HTMLElement)],BZ.prototype,"spinner",void 0);_.V([_.vr("commerceCartExpandableNotificationEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BZ.prototype,"notificationEntityChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],BZ);
_.G(BZ,"ytd-commerce-cart-renderer",function(){if(R4Y!==void 0)return R4Y;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return R4Y=D},{mode:1});var SXX;var bm=function(){var D=_.w.apply(this,arguments)||this;D.bigImage=!1;return D};
_.h(bm,_.w);_.$a.Object.defineProperties(bm.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.placeholderImageUrl}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bm.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bm.prototype,"bigImage",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],bm.prototype,"placeholderImageUrl",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],bm);
_.G(bm,"ytd-empty-product-shelf-renderer",function(){if(SXX!==void 0)return SXX;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return SXX=D},{mode:1});var UYt;var rn=function(){var D=_.w.apply(this,arguments)||this;D.itemStyle="link-item";D.watchMetadataRefresh=!1;D.skinnyMode=!1;D.metaPanel=!1;D.inStructuredDescription=!1;D.detailedDescriptionOverride=!1;D.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};D.updateOnResizeDebouncer=null;return D};
_.h(rn,_.w);_.S=rn.prototype;_.S.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.S.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"}}}}};
_.S.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.S.attachVEs=function(D){D.trackingParams&&_.iO().graftServerVe(D.trackingParams)};
_.S.handleUpdateMerchShelfAction=function(D){var C=this,X=_.r(D.updateMerchandiseShelfAction.merchandiseShelf,_.n3g);X&&(X.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){C.attachVEs(X);C.data=X},Number(X.renderDelayMs))):(this.attachVEs(X),this.data=X))};
_.S.updateOnResize=function(){if(this.JSC$17188_scrollContainer!==void 0&&this.JSC$17188_scrollContainer.clientWidth!==0&&this.items!==void 0){var D=this.JSC$17188_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_();var C;switch((C=this.data)==null?void 0:C.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var X,
c;((X=this.data)==null?void 0:(c=X.items)==null?void 0:c.length)===1?this.itemStyle="cta-item":this.itemStyle=D>=740?"large-item":"small-item"}}};
_.S.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Kr(this.updateOnResizeDebouncer,_.Oy.after(100),this.updateOnResize)};
rn.prototype.debouncedUpdateOnResize=rn.prototype.debouncedUpdateOnResize;rn.prototype.dataChanged=rn.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],rn.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],rn.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],rn.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"itemStyle",void 0);_.V([_.n({value:6}),_.z("design:type",Number)],rn.prototype,"initialCount",void 0);
_.V([_.n({value:"data.items"}),_.z("design:type",String)],rn.prototype,"itemsPath",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"watchMetadataRefresh",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"skinnyMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"metaPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"inStructuredDescription",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"detailedDescriptionOverride",void 0);_.V([_.kn("#items"),_.z("design:type",HTMLDivElement)],rn.prototype,"items",void 0);_.V([_.kn("#scroll-container"),_.z("design:type",HTMLDivElement)],rn.prototype,"JSC$17188_scrollContainer",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rn.prototype,"dataChanged",null);
_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rn.prototype,"debouncedUpdateOnResize",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],rn);
_.G(rn,"ytd-merch-shelf-renderer",function(){if(UYt!==void 0)return UYt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return UYt=D},{mode:2});var gtU;var Ks=function(){var D=_.w.apply(this,arguments)||this;D.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 D};
_.h(Ks,_.w);_.S=Ks.prototype;
_.S.addBackstagePostAction=function(D){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(D=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",D))&&(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:D}):this.set("data.contents",[{backstagePostThreadRenderer:D}]))};
_.S.addBackstageCommentAction=function(D){var C=this.get("addBackstageCommentAction.parentId",D);D=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",D);if(C&&D){C=this.postIdToIndices(C);for(var X=0;X<C.length;X++){var c=C[X];if(c<0)break;c="data.contents."+c+".backstagePostThreadRenderer.comments";this.get(c)&&(this.get(c+".backstageCommentsRenderer.contents")&&this.push(c+".backstageCommentsRenderer.contents",{commentThreadRenderer:D}),this.get(c+".backstageCommentsRenderer.teaserContents")?
this.push(c+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:D}):this.set(c+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:D}]))}}};
_.S.addBackstageReplyAction=function(D){var C=this.get("addBackstageReplyAction.parentId",D);D=this.get("addBackstageReplyAction.renderer.commentRenderer",D);C&&D&&this.setCreatorReply(C,D)};
_.S.banAuthorAction=function(D){var C=this.get("banAuthorAction.commentId",D);C&&(D=this.get("banAuthorAction.parentCommentId",D)||this.getParentPostId(C),this.removeFromStream(C,D))};
_.S.hideReportedCommentAction=function(D){var C=this.get("hideReportedCommentAction.commentId",D);C&&((D=this.get("hideReportedCommentAction.parentCommentId",D))||(D=this.getParentPostId(C)),this.removeFromStream(C,D))};
_.S.replaceBackstageCommentAction=function(D){var C=this.get("replaceBackstageCommentAction.commentId",D),X=this.get("replaceBackstageCommentAction.parentId",D);D=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",D);if(C&&X&&D){X=this.postIdToIndices(X);for(var c=0;c<X.length;c++){var W=X[c];if(W<0)break;var p=this.commentIdToIndex(C,W,!1);if(p>=0){var g=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+p+".commentThreadRenderer.replies.commentRepliesRenderer");
g&&(D.replies={commentRepliesRenderer:g});this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",p,1,{commentThreadRenderer:D})}p=this.commentIdToIndex(C,W,!0);if(p>=0){if(g=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(p+".commentThreadRenderer.replies.commentRepliesRenderer")))D.replies={commentRepliesRenderer:g};this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
p,1,{commentThreadRenderer:D})}}}};
_.S.replaceBackstagePostAction=function(D){var C=this.get("replaceBackstagePostAction.itemId",D);if(C){C=this.postIdToIndices(C);for(var X=0;X<C.length;X++){var c=C[X];if(c<0)break;var W=this.getPostRendererType(c),p=this.get("replaceBackstagePostAction.renderer."+W,D);if(!p&&W!=="sharedPostRenderer")break;var g=!1;p||(g=!0,p=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",D));if(!p)break;var a={};g?(_.mp(a,Dib,p),this.set("data.contents."+c+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
a)):(_.mp(a,new _.A7(W),p),this.set("data.contents."+c+".backstagePostThreadRenderer.post",a))}}};
_.S.replaceBackstageReplyAction=function(D){var C=this.get("replaceBackstageReplyAction.replyId",D),X=this.get("replaceBackstageReplyAction.parentId",D);D=this.get("replaceBackstageReplyAction.renderer.commentRenderer",D);C&&D&&X&&this.setCreatorReply(X,D)};
_.S.removeCommentAction=function(D){var C=this.get("removeCommentAction.commentId",D);if(C){var X=this.get("removeCommentAction.parentCommentId",D);X&&this.get("removeCommentAction.isCreatorReply",D)?this.setCreatorReply(X,void 0):(X||(X=this.getParentPostId(C)),this.removeFromStream(C,X))}};
_.S.setCreatorReply=function(D,C){var X=this.getParentPostId(D);if(X){X=this.postIdToIndices(X);for(var c=0;c<X.length;c++){var W=X[c];if(W<0)break;var p=this.commentIdToIndex(D,W,!1);if(p>=0){var g="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+p;p=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";g+=".commentThreadRenderer.replies";C==void 0?(this.set(g,{}),this.set(p,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:C}]}}),
this.set(g+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(p,!0))}p=this.commentIdToIndex(D,W,!0);p>=0&&(p="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+p,W=p+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",p+=".commentThreadRenderer.replies",C==void 0?(this.set(p,{}),this.set(W,!1)):(this.set(p,{commentRepliesRenderer:{teaserContents:[{commentRenderer:C}]}}),this.set(W,!0)))}}};
_.S.removeFromStream=function(D,C){if(C){C=this.postIdToIndices(C);for(var X=0;X<C.length;X++){var c=C[X];if(c<0)break;var W=this.commentIdToIndex(D,c,!1);W>=0&&this.splice("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",W,1);W=this.commentIdToIndex(D,c,!0);W>=0&&this.splice("data.contents."+c+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",W,1);c="data.contents."+c+".backstagePostThreadRenderer.post.backstagePostRenderer";
W=c+".backstageAttachment.pollRenderer.votedCommentId";this.get(W)===D&&(this.set(W,null),this.set(c+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(C=this.postIdToIndices(D).reverse(),X=0;X<C.length;X++){c=C[X];if(c<0)break;W=this.getPostRendererType(c);var p=this.get("backstagePostThreadRenderer.post."+W,this.data.contents[c]);p.postId===D?this.splice("data.contents",c,1):W==="sharedPostRenderer"&&this.set("data.contents."+c+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);p.scheduledPublishTimeSec&&_.DS(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.S.postIdToIndices=function(D){for(var C=[],X=0;X<this.data.contents.length;X++){var c=this.getPostRendererType(X);this.get("backstagePostThreadRenderer.post."+c+".postId",this.data.contents[X])===D&&C.push(X);if(c==="sharedPostRenderer"){var W=this.get("backstagePostThreadRenderer.post."+c+".originalPost.backstagePostRenderer.postId",this.data.contents[X]);c=this.get("backstagePostThreadRenderer.post."+c+".originalPost.postRenderer.postId",this.data.contents[X]);W!==D&&c!==D||C.push(X)}}return C};
_.S.commentIdToIndex=function(D,C,X){if(C<0)return-1;var c,W,p,g,a=_.r((c=this.data)==null?void 0:(W=c.contents)==null?void 0:(p=W[C])==null?void 0:(g=p.backstagePostThreadRenderer)==null?void 0:g.comments,R8q);return(C=X?a==null?void 0:a.teaserContents:a==null?void 0:a.contents)&&C.length?C.findIndex(function(O){return _.r(O,tUe).comment.commentRenderer.commentId===D}):-1};
_.S.getParentPostId=function(D){D=D.split(".");if(D[1])return D[0]};
_.S.getPostRendererType=function(D){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[D])?"sharedPostRenderer":"backstagePostRenderer"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ks.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ks.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:_.b("enable_community_page_on_desktop")}),_.z("design:type",Boolean)],Ks.prototype,"useSmallerPostContainer",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-backstage-items"})],Ks);
_.G(Ks,"ytd-backstage-items",function(){if(gtU!==void 0)return gtU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return gtU=
D},{mode:1});var aGG;var IGX={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},hd=function(){var D=_.w.apply(this,arguments)||this;D.disablePrescanVisibility=!0;D.canScheduleJobs=!0;D.engagementPanel=!1;D.hidePanelButton=!1;D.isWatchGrid=
!1;D.hasShownSubscribersOnlyDisclaimer=!1;D.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};D.TEST_ONLY=void 0;return D};
_.h(hd,_.w);_.S=hd.prototype;_.S.created=function(){this.initCommentsCsi_();_.b("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.b("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.S.contentsChanged_=function(){var D;(D=this.data)!=null&&D.contents&&this.tickForCommentsTimer_("cml")};
_.S.headerChanged_=function(){var D;(D=this.data)!=null&&D.header&&this.tickForCommentsTimer_("cmhl")};
_.S.initCommentsCsi_=function(){_.Lt("wn_comments");var D=_.LN();D&&_.hZ({clientScreenNonce:D},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.S.createCommentAction_=function(D){D=_.ZI.unsafeClone(D);var C,X;if(D=(C=_.r(D,rxg))==null?void 0:(X=C.contents)==null?void 0:X.commentThreadRenderer){var c,W,p,g,a,O;!this.isBackstage&&((c=this.data)==null?0:(W=c.header)==null?0:(p=W.commentsHeaderRenderer)==null?0:(g=p.createRenderer)==null?0:(a=g.commentSimpleboxRenderer)==null?0:(O=a.zeroStep)==null?0:O.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var P,
k,u;this.isBackstage&&_.r((P=this.data)==null?void 0:(k=P.header)==null?void 0:(u=k.commentsHeaderRenderer)==null?void 0:u.zeroStateMessage,CWc)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(D)}};
_.S.doReplyInsert_=function(D,C,X,c){c?this.splice(D,c,0,C):this.push(D,C)};
_.S.getRepliesPath_=function(D){return"data.contents."+D+".commentThreadRenderer.replies"};
_.S.getRepliesContentsPath_=function(D,C){D=this.getRepliesPath_(D);return C?D+".commentRepliesRenderer.teaserContents":D+".commentRepliesRenderer.contents"};
_.S.showSubscribersOnlyDisclaimer_=function(D){(D=D.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&(_.DS(this.hostElement,"yt-open-popup-action",[D,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.S.createCommentReplyAction_=function(D){D=_.ZI.unsafeClone(D);var C=_.r(D,K8d);if(D=C==null?void 0:C.contents){var X=this.commentIdToIndex_(C==null?void 0:C.parentCommentId);if(!(X<0)){var c=this.getRepliesPath_(X);if(this.get(c)){C=C.replyToCommentId;c=this.getRepliesContentsPath_(X,!1);if(this.get(c)){var W=this.get(c).length,p=c+"."+(W-1)+".continuationItemRenderer";this.get(p+".button")?(p=this.replyIdToIndex_(C,X,!1),this.doReplyInsert_(c,D,p,W-1)):this.get(p)||(W=this.replyIdToIndex_(C,X,
!1),this.doReplyInsert_(c,D,W,null))}c=this.getRepliesContentsPath_(X,!0);this.get(c)?(X=this.replyIdToIndex_(C,X,!0),(!C||X>=0)&&this.doReplyInsert_(c,D,X,null)):this.set(c,[D])}else this.set(c,{commentRepliesRenderer:{teaserContents:[D]}})}}};
_.S.hideReportedCommentAction_=function(D){var C=_.r(D,JxN);if(D=C==null?void 0:C.commentId)(C=this.get("parentCommentId",C))||(C=this.getParentCommentId_(D)),this.remove_(D,C)};
_.S.getParentCommentId_=function(D){D=D.split(".");if(D[1])return D[0]};
_.S.removeCommentAction_=function(D){var C=_.r(D,mik);if(D=C==null?void 0:C.commentId)C=(C==null?void 0:C.parentCommentId)||this.getParentCommentId_(D),this.remove_(D,C)};
_.S.pinCommentAction_=function(D){D=_.ZI.unsafeClone(D);var C=_.r(D,sRC);C!=null&&C.commentId&&(D=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",D))&&(this.remove_(C.commentId),this.insert_(D,!0))};
_.S.unpinCommentAction_=function(D){D=_.ZI.unsafeClone(D);D=_.r(D,eUC);if(D!=null&&D.commentId){var C,X,c=(C=D.actionResult)==null?void 0:(X=C.update)==null?void 0:X.commentThreadRenderer;c&&(this.remove_(D.commentId),this.insert_(c))}};
_.S.banAuthorAction_=function(D){var C=_.r(D,br4);C!=null&&C.commentId&&(D=C.commentId,C=C.parentCommentId||this.getParentCommentId_(D),this.remove_(D,C))};
_.S.handleScrollToCommentElement_=function(D){this.hostElement.contains(D)&&(this.nearestScrollParent||(this.nearestScrollParent=Fot(D)),this.isCommentVisibleInScrollParent(D)||D.scrollIntoView({behavior:"smooth",block:"start"}))};
_.S.isCommentVisibleInScrollParent=function(D){if(!this.nearestScrollParent)return!1;D=D.getBoundingClientRect();var C=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return D.top>=C.top&&D.bottom<=C.bottom};
_.S.commentIdToIndex_=function(D){var C;return D&&(C=this.data)!=null&&C.contents?this.data.contents.findIndex(function(X){X=X.commentThreadRenderer;var c;return D===((X==null?void 0:X.commentViewModel)&&((c=_.r(X.commentViewModel,F8C))==null?void 0:c.commentId))}):-1};
_.S.insert_=function(D,C){C=C===void 0?!1:C;var X,c;if((X=this.data)==null?0:(c=X.contents)==null?0:c.some(function(p){return!!p.commentThreadRenderer}))for(X=0,c=this.data.contents.length;X<c;X++){var W=this.data.contents[X].commentThreadRenderer;
if(IGX[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=IGX[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){C&&IGX[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===IGX[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",X,1,{commentThreadRenderer:D}):this.splice("data.contents",X,0,{commentThreadRenderer:D});break}}else this.set("data.contents",[{commentThreadRenderer:D}])};
_.S.doReplyRemove_=function(D,C,X){D=this.replyIdToIndex_(D,C,X);D<0||(C=this.getRepliesContentsPath_(C,X),this.splice(C,D,1))};
_.S.remove_=function(D,C){C=this.commentIdToIndex_(C);C<0?(C=this.commentIdToIndex_(D),C<0||this.splice("data.contents",C,1)):_.b("web_delhi_comment_threads")||(this.doReplyRemove_(D,C,!1),this.doReplyRemove_(D,C,!0))};
_.S.replyIdToIndex_=function(D,C,X){if(C<0)return-1;C=this.getRepliesContentsPath_(C,X);C=this.get(C);if(!C||!C.length)return-1;X=0;for(var c=C.length;X<c;X++){var W=void 0,p=void 0;if(((W=C[X])==null?void 0:(p=W.commentViewModel)==null?void 0:p.commentId)===D)return X}return-1};
_.S.tickForCommentsTimer_=function(D){_.mU(D,void 0,"wn_comments")};
_.S.reloadComments_=function(D){D=_.r(D,nyd);_.r(D==null?void 0:D.command,_.nI)&&_.cE(this.hostElement,[D==null?void 0:D.command])};
_.$a.Object.defineProperties(hd.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.data)==null?0:(C=D.header)==null?0:(X=C.commentsHeaderRenderer)==null?0:X.isBackstageContent)}}});
_.$a.Object.defineProperties(hd,{template:{configurable:!0,enumerable:!0,get:function(){if(aGG===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);aGG=D}D=aGG;return D}}});
hd.prototype.showSubscribersOnlyDisclaimer_=hd.prototype.showSubscribersOnlyDisclaimer_;hd.prototype.headerChanged_=hd.prototype.headerChanged_;hd.prototype.contentsChanged_=hd.prototype.contentsChanged_;_.V([_.m(_.eu),_.z("design:type",Object)],hd.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",Function)],hd.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],hd.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hd.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.header.commentsHeaderRenderer.isBackstageContent"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hd.prototype,"isBackstage",null);
_.V([_.n(),_.z("design:type",Object)],hd.prototype,"disablePrescanVisibility",void 0);_.V([_.n(),_.z("design:type",Object)],hd.prototype,"canScheduleJobs",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hd.prototype,"engagementPanel",void 0);_.V([_.n(),_.z("design:type",Object)],hd.prototype,"hidePanelButton",void 0);_.V([_.n(),_.z("design:type",Object)],hd.prototype,"isWatchGrid",void 0);_.V([_.n(),_.z("design:type",Object)],hd.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.V([_.vr("data.contents"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hd.prototype,"contentsChanged_",null);_.V([_.vr("data.header"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hd.prototype,"headerChanged_",null);_.V([_.$n("yt-show-subscribers-only-disclaimer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hd.prototype,"showSubscribersOnlyDisclaimer_",null);
_.V([_.yj({is:"ytd-comments"})],hd);var x$=function(){return _.Qj.apply(this,arguments)||this};
_.h(x$,_.Qj);_.S=x$.prototype;_.S.bindIf=function(D,C,X){return D?C:X};
_.S.bindIfDefined=function(D,C){return D!==void 0?D:C};
_.S.booleanString=function(D){return(!!D).toString()};
_.S.equals=function(){for(var D=_.MJ.apply(0,arguments),C=D[0],X=1;X<D.length;X++)if(C!=D[X])return!1;return!0};
_.S.isGreaterThan=function(D,C){return D>C};
_.S.isLessThan=function(D,C){return D<C};
_.S.logicalAND=function(){for(var D=_.MJ.apply(0,arguments),C=!!D[0],X=1;X<D.length;X++)C=C&&!!D[X];return C};
_.S.logicalOR=function(){for(var D=_.MJ.apply(0,arguments),C=!!D[0],X=1;X<D.length;X++)C=C||!!D[X];return C};
_.S.toBool=function(D){return!!D};
x$.prototype.toBool=x$.prototype.toBool;x$.prototype.logicalOR=x$.prototype.logicalOR;x$.prototype.logicalAND=x$.prototype.logicalAND;x$.prototype.isLessThan=x$.prototype.isLessThan;x$.prototype.isGreaterThan=x$.prototype.isGreaterThan;x$.prototype.equals=x$.prototype.equals;x$.prototype.booleanString=x$.prototype.booleanString;x$.prototype.bindIfDefined=x$.prototype.bindIfDefined;x$.prototype.bindIf=x$.prototype.bindIf;_.V([_.Br()],x$);_.O1P=[x$.prototype];var APt;var P6G;var Ls=function(){return _.w.apply(this,arguments)||this};
_.h(Ls,_.w);Ls.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Ls.prototype.onBackIconTap_=function(){window.history.back()};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ls.prototype,"data",void 0);_.V([_.Yn({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Ls);
_.G(Ls,"yt-header-with-back-renderer",function(){if(P6G===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;APt===void 0&&(APt=document.createElement("template"));var c=APt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);P6G=D}D=P6G;return D},{mode:2});var $YU;var vtw;var st=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(st,_.w);_.S=st.prototype;_.S.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D,this.setUrl())};
_.S.dataChanged=function(){var D=this;if(this.data){var C=this.setUrl();C&&_.Of({destination:window,iframe:this.iframe,origin:_.gTq(C.toString()),channelName:"yt-iframe",onMessage:function(X){(X=D.getCommunicationCommand(X.data))&&D.ytComponentBehavior.resolveCommand(X)},
onEstablished:function(){}})}};
_.S.setUrl=function(){if(this.data&&this.data.iframeUrl){var D=_.fq(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(D)return _.CK(this.iframe,D),D}};
_.S.getCommunicationCommand=function(D){var C;if((C=this.data)!=null&&C.onCommunicationCommandsMap){C=this.data.onCommunicationCommandsMap.find(function(W){return W.key===D});
if(C==null?0:C.value)return C==null?void 0:C.value;try{var X=ceN(_.Dk(D)),c=this.data.onCommunicationCommandsMap.find(function(W){return W.key===(X==null?void 0:X.getMethodName())});
if(c==null?0:c.value)return c==null?void 0:c.value}catch(W){}}};
st.prototype.dataChanged=st.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],st.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],st.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],st.prototype,"data",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],st.prototype,"isDarkTheme",void 0);_.V([_.kn("#iframe"),_.z("design:type",HTMLIFrameElement)],st.prototype,"iframe",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],st.prototype,"dataChanged",null);_.V([_.Yn({is:"yt-iframe-renderer",disableElementRegistration:!0})],st);
_.G(st,"yt-iframe-renderer",function(){if(vtw===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;$YU===void 0&&($YU=document.createElement("template"));var c=$YU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);vtw=D}D=vtw;return D},{mode:2});_.mi=function(D){_.nF.call(this);this.callback=D;this.bezier=new aTg(0,0,.4,0,.2,1,1,1);this.delay=new _.ka(this.next,window,this);this.JSC$17228_animating=!1;_.hR(this,this.delay)};
_.h(_.mi,_.nF);_.mi.prototype.isAnimating=function(){return this.JSC$17228_animating};
_.mi.prototype.start=function(D,C,X){this.config={from:D,to:C,duration:X,startTime:(0,_.kh)()};this.JSC$17228_animating=!0;this.next()};
_.mi.prototype.stop=function(){this.delay.stop();this.JSC$17228_animating=!1;this.config=void 0};
_.mi.prototype.next=function(){if(this.config){var D=this.config,C=D.from,X=D.to,c=D.duration;D=D.startTime;var W=(0,_.kh)()-D;D=this.bezier;c=Omg(D,W/c);if(c==0)D=D.y0;else if(c==1)D=D.y3;else{W=YJ(D.y0,D.y1,c);var p=YJ(D.y1,D.y2,c);D=YJ(D.y2,D.y3,c);W=YJ(W,p,c);p=YJ(p,D,c);D=YJ(W,p,c)}D=_.N8(D,0,1);this.callback(C+(X-C)*D);D<1?this.delay.start():this.JSC$17228_animating=!1}};_.e1=new _.P6("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var i1P={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},utt=function(D,C,X,c){_.nF.call(this);this.JSC$17239_miniAppId=D;this.localReleaseId=C;this.derivedDeviceInterface=X;this.isForeground=c;this.JSC$17239_playNonceResolver=new _.gL;this.playPingTimerId=NaN;this.playPingIntervalMs=_.BK("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.BK("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.b("enable_displaying_ppn");this.JSC$17239_miniAppClientDataProvider=_.iX().resolve(_.e1);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;kkX(this);var W=setTimeout(function(){_.fQ(new _.Zf("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17239_playNonceResolver.promise.then(function(){clearTimeout(W)})};
_.h(utt,_.nF);var B36=function(D,C){D.JSC$17239_playNonceResolver.resolve(C!=null?C:KN(8));D.enableDisplayingPpn&&QwY(D).then(function(X){D.JSC$17239_miniAppClientDataProvider.clientData.set("post_play_nonce",X)})},QwY=function(D){return _.I(function(C){return C.nextAddress==1?C.yield(D.JSC$17239_playNonceResolver.promise,2):C.return(C.yieldResult)})},kkX=function(D){var C,X;
_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$17239_playNonceResolver.promise,2);C=c.yieldResult;X={miniAppInfo:{externalPostId:D.JSC$17239_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:C,derivedDeviceInterface:D.derivedDeviceInterface}};_.hZ(X);_.t_(c)})},rPt=function(D){D.state!==0?_.fQ(new _.Zf("[MiniAppPlayLogger] recordPlayStart failed with state "+i1P[D.state])):(D.state=1,Et(D,"ma_cl"),td(D,"PLAY_EVENT_TYPE_PLAY_START"),b1k(D))},KG1=function(D){D.isForeground=!1;
td(D,"PLAY_EVENT_TYPE_PLAY_PAUSE")},hok=function(D){D.state!==1&&D.state!==2?_.fQ(new _.Zf("[MiniAppPlayLogger] recordPlayEnd failed with state "+i1P[D.state])):(D.state=3,window.clearInterval(D.playPingTimerId),D.playPingTimerId=NaN,qM3(),td(D,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},xYk=function(D,C){D.state===2&&D.gameReady&&(D.firstClickRecorded?Date.now()-D.clickRecordedMs<D.playClickIntervalMs||(D.clickRecordedMs=Date.now(),td(D,"PLAY_EVENT_TYPE_PLAY_CLICK")):C&&(Et(D,"ma_fua"),td(D,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),D.firstClickRecorded=!0,D.clickRecordedMs=Date.now()))};
utt.prototype.logError=function(D){var C=this,X;_.I(function(c){if(c.nextAddress==1)return D.metadata.externalPostId=C.JSC$17239_miniAppId,X=D.metadata,c.yield(Promise.race([C.JSC$17239_playNonceResolver.promise,new Promise(function(W){setTimeout(function(){W("")},3E4)})]),2);
X.postPlayNonce=c.yieldResult;D.metadata.localReleaseId=C.localReleaseId;D.loggingError.level="WARNING";_.MN(D.loggingError,D.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:D.metadata});_.t_(c)})};
var LGG=function(D,C,X,c){var W,p,g,a,O,P;_.I(function(k){if(k.nextAddress==1)return k.yield(D.JSC$17239_playNonceResolver.promise,2);W=k.yieldResult;p={externalPostId:D.JSC$17239_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:W,sdkVersion:X,api:C};c!==void 0&&(p.networkRequestsMeasurement={networkRequests:_.PI(c,1),cachedRequests:_.PI(c,2),transferredBytes:_.PI(c,3)},(g=c)==null?0:_.QO(g,Bx,6))&&(p.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((a=_.Bz(c,
Bx,6))==null?void 0:Ny(a,1))||"0",cacheHits:((O=_.Bz(c,Bx,6))==null?void 0:Ny(O,2))||"0",cachedBytes:((P=_.Bz(c,Bx,6))==null?void 0:Ny(P,3))||"0"});_.zu("miniAppSdkUsage",p);_.t_(k)})},mYX=function(D,C,X){var c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y;
_.I(function(J){if(J.nextAddress==1)return J.yield(D.JSC$17239_playNonceResolver.promise,2);c=J.yieldResult;W={externalPostId:D.JSC$17239_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:c,sdkVersion:X,measurementWindow:{startTimestampMs:String(mX(C,1)),endTimestampMs:String(mX(C,2))},frameRate:{averageFrameTimeDeltaMs:ez(C,3),averageFrameIdleTimeMs:ez(C,4)}};_.QO(C,bJ,5)&&(W.networkRequests={networkRequests:(p=ma(C))==null?void 0:_.PI(p,1),cachedRequests:(g=ma(C))==null?void 0:_.PI(g,2),transferredBytes:(a=
ma(C))==null?void 0:_.PI(a,3),sameOriginStatusCodeToCounts:swY((O=ma(C))==null?void 0:_.YX3(O,4,void 0,Txh,Txh)),crossOriginStatusCodeToCounts:swY((P=ma(C))==null?void 0:_.YX3(P,5,void 0,Txh,Txh))},(k=ma(C))==null?0:_.QO(k,Bx,6))&&(W.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((u=ma(C))==null?void 0:(Q=_.Bz(u,Bx,6))==null?void 0:Ny(Q,1))||"0",cacheHits:((B=ma(C))==null?void 0:(K=_.Bz(B,Bx,6))==null?void 0:Ny(K,2))||"0",cachedBytes:((L=ma(C))==null?void 0:(t=_.Bz(L,Bx,6))==
null?void 0:Ny(t,3))||"0"});_.QO(C,zVf,7)&&(W.gameCapture={averageFrameTimeDeltaMs:(Y=_.Bz(C,zVf,7))==null?void 0:ez(Y,1),averageFrameIdleTimeMs:(y=_.Bz(C,zVf,7))==null?void 0:ez(y,2)});_.zu("miniAppPerformanceMetrics",W);_.t_(J)})},eoG=function(D,C){var X,c;
return _.I(function(W){if(W.nextAddress==1)return W.yield(D.JSC$17239_playNonceResolver.promise,2);X=W.yieldResult;c={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:D.JSC$17239_miniAppId,postPlayNonce:X,miniAppReleaseId:D.localReleaseId},derivedDeviceInterface:D.derivedDeviceInterface,adTriggerType:C,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.zu("miniAppAdEvent",c);_.t_(W)})};
utt.prototype.disposeInternal=function(){_.nF.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var td=function(D,C,X,c){X=X===void 0?{}:X;c=c===void 0?!1:c;var W,p,g,a;_.I(function(O){if(O.nextAddress==1)return W=D.isForeground,p=D.beforeReady,O.yield(D.JSC$17239_playNonceResolver.promise,2);g=O.yieldResult;a={externalPostId:D.JSC$17239_miniAppId,localReleaseId:D.localReleaseId,derivedDeviceInterface:D.derivedDeviceInterface,postPlayNonce:g,type:C};X.sequenceGroup=g;a.playState=p?"PLAY_STATE_NOT_READY":W?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.zu("miniAppPlayEvent",a,
X);c&&_.je();_.t_(O)})},Et=function(D,C){var X;
_.I(function(c){if(c.nextAddress==1)return X=(0,_.kh)(),c.yield(D.JSC$17239_playNonceResolver.promise,2);_.sp(C,X);_.t_(c)})},b1k=function(D){isNaN(D.playPingTimerId)&&(D.playPingTimerId=_.LC(function(){D.state!==1&&D.state!==2?_.fQ(new _.Zf("[MiniAppPlayLogger] reportPlayPing failed with state "+i1P[D.state])):td(D,"PLAY_EVENT_TYPE_PLAY_PING")},D.playPingIntervalMs))},swY=function(D){return Array.from(D.entries()).map(function(C){var X=_.U(C);
C=X.next().value;X=X.next().value;return{key:C,value:X}})};var EtU=function(){},tNU=function(D,C){D.showMiniAppAdCommand=C.showMiniAppAdCommand;
D.isEmbeddedInWebview=C.isEmbeddedInWebview;D.playLogger=C.playLogger},YXo=function(D,C){var X;
return _.I(function(c){if(c.nextAddress==1){if(!D.showMiniAppAdCommand||!D.isEmbeddedInWebview)return c.return(N3w(D,C));D.adResolver=new _.gL;var W=new CU;X=_.bl(W,3,C);Yf(D.showMiniAppAdCommand,mUd(X));return c.yield(D.adResolver.promise,2)}return c.return(c.yieldResult)})};
EtU.prototype.onAdFinished=function(D){D=rsd(D);var C;(C=this.adResolver)==null||C.resolve(D)};
var N3w=function(D,C){var X;return _.I(function(c){if(c.nextAddress==1)c=c.yield((X=D.playLogger)==null?void 0:eoG(X,j5R(C)),2);else{var W=c.return;var p=new bVf;p=_.bl(p,1,2);c=W.call(c,p)}return c})};var yPU=new _.P6("INNERTUBE_MANAGER_TOKEN");var ntt=function(){this.callbacks={}};
ntt.prototype.initialize=function(D){var C=this;this.callbacks=D;window.youtubewebview?window.youtubewebview.onmessage=function(X){wpG(C,X)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(X){wpG(C,X)})};
var wpG=function(D,C){if(C.data)try{var X=ceN(C.data);if(_.r3(_.uS(X,1))!=null){var c=rfb(_.EG(X,2));switch(X.getMethodName()){case "yt-mini-app-load-audio-state":var W,p;(p=(W=D.callbacks).onAudioStateLoaded)==null||p.call(W,_.sG(c,yC(c,DC,1)));break;case "yt-mute-mini-app":var g,a;(a=(g=D.callbacks).onMuteMiniApp)==null||a.call(g);break;case "yt-unmute-mini-app":var O,P;(P=(O=D.callbacks).onUnmuteMiniApp)==null||P.call(O);break;case "yt-playable-exit":var k,u;(u=(k=D.callbacks).onExit)==null||u.call(k);
break;case "yt-post-play-nonce":var Q,B;(B=(Q=D.callbacks).onPostPlayNonceReceived)==null||B.call(Q,Y5(c,2,DC));break;case "yt-confirm-exit-mini-app":var K,L;(L=(K=D.callbacks).confirmExitMiniApp)==null||L.call(K);break;case "yt-confirm-exit-mini-app-edu":var t,Y;(Y=(t=D.callbacks).confirmExitMiniAppEdu)==null||Y.call(t);break;case "yt-benchmarking-response":var y,J;(J=(y=D.callbacks).onNativeBenchmarkingMessageReceived)==null||J.call(y,Y5(c,2,DC));break;case "yt-mini-app-load-3p-consent-state":var T,
H;(H=(T=D.callbacks).multiplayer3pAckStateLoaded)==null||H.call(T,_.sG(c,yC(c,DC,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var q,R;(R=(q=D.callbacks).exitMiniAppSeenStateLoaded)==null||R.call(q,_.sG(c,yC(c,DC,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var ph,Om;(Om=(ph=D.callbacks).onNavigateToNewMiniApp)==null||Om.call(ph);break;case "yt-game-data-available":var xj,Bo;(Bo=(xj=D.callbacks).onGameDataAvailable)==null||Bo.call(xj,Y5(c,2,DC));break;case "yt-pause-mini-app":var r5,
Fd;(Fd=(r5=D.callbacks).onPauseMiniApp)==null||Fd.call(r5);break;case "yt-resume-mini-app":var GJ,jZ;(jZ=(GJ=D.callbacks).onResumeMiniApp)==null||jZ.call(GJ);break;case "yt-playable-ad-finished":var Ac,ib;(ib=(Ac=D.callbacks).onAdFinished)==null||ib.call(Ac,Y5(c,2,DC))}}else _.fQ(Error("Vh"))}catch(d5){_.MN(Error("Wh"))}else _.fQ(Error("Xh"))};var qEt=function(D){this.rpcErrorCode=D};var Nr=function(D,C,X){this.intervalMs=D;this.apiFunc=C;this.type=X;this.schedulerReady=!0};
Nr.prototype.call=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1){if(C.type!==1&&D===C.cachedValue)return c.return();C.pendingApiRequestResolver||(C.pendingApiRequestResolver=new _.gL);X=C.pendingApiRequestResolver.promise;C.cachedValue=D;return c.yield(FG6(C),2)}return c.return(X)})};
Nr.prototype.flush=function(D){D=D===void 0?!1:D;var C=this;return _.I(function(X){return C.cachedValue===void 0?X.return():X.yield(C.apiFunc(C.cachedValue,D),0)})};
var FG6=function(D){var C,X,c;return _.I(function(W){switch(W.nextAddress){case 1:if(!D.schedulerReady||!D.pendingApiRequestResolver)return W.return();D.schedulerReady=!1;C=D.pendingApiRequestResolver;D.pendingApiRequestResolver=void 0;_.KK(W,2);if(D.cachedValue===void 0){W.jumpTo(4);break}return W.yield(D.apiFunc(D.cachedValue),5);case 5:X=W.yieldResult,C.resolve(X);case 4:_.SR(W,3);break;case 2:c=_.Eu(W),C.reject(c);case 3:setTimeout(function(){return _.I(function(p){D.schedulerReady=!0;return p.yield(FG6(D),
0)})},D.intervalMs),_.t_(W)}})};var RAr=window.location.origin+"/miniapp_cloudsaves",f9W=[400,401],Z1U=_.BK("cloud_save_game_data_rate_limit_ms",3E3),VNp=function(D){var C=this;this.JSC$17283_miniAppId=D;this.loadAttempts=0;this.cloudSaveIntervalMs=Z1U;this.initialDownloadDataSucceeded=!1;this.JSC$17283_playNonceResolver=new _.gL;this.scottyUploadRateLimiter=new Nr(this.cloudSaveIntervalMs,function(X,c){return C.uploadData(X,c)},2);
this.downloadDataPromise=GkY(this);this.downloadDataPromise.then(function(){C.initialDownloadDataSucceeded=!0}).catch(function(){})},T3t=function(D,C){C.then(function(X){return D.JSC$17283_playNonceResolver.resolve(X)})},H1w=function(D){return _.I(function(C){return D.cachedData===void 0?C.return(D.downloadDataPromise):C.return(D.cachedData)})},JPo=function(D,C){return _.I(function(X){D.cachedData=C;
if(!D.initialDownloadDataSucceeded)throw Error("Yh");return X.yield(D.scottyUploadRateLimiter.call(C),0)})},zoN=function(){return new Promise(function(D){setTimeout(D,1E3,"")})},jwU=function(D,C){var X,c;
return _.I(function(W){if(W.nextAddress==1)return X=D.JSC$17283_miniAppId,W.yield(Promise.race([D.JSC$17283_playNonceResolver.promise,zoN()]),2);c={"X-YouTube-MiniAppId":X,"X-YouTube-PostPlayNonce":W.yieldResult};"DELEGATED_SESSION_ID"in _.jj&&P5t(C,c);return W.return(c)})};
VNp.prototype.uploadData=function(D,C){C=C===void 0?!1:C;var X=this;return _.I(function(c){return Mhm()?_.b("enable_cloud_save_error_popup_after_retry")?c.return(new Promise(function(W,p){var g,a,O,P,k;return _.I(function(u){switch(u.nextAddress){case 1:g=0,a=!0,P=O=null;case 2:if(!(a&&g++<2)){u.jumpTo(4);break}_.KK(u,5);return u.yield(MNY(X,D,C),7);case 7:O=u.yieldResult;a=O.ok?!1:!f9W.includes(O.status);_.SR(u,2);break;case 5:P=k=_.Eu(u);a=dPt(P);u.jumpTo(2);break;case 4:O?O.ok?(Y$(X,Z1U),W()):
(Y$(X,X.cloudSaveIntervalMs*2),p(Error("Zh`"+String(O.status),{cause:{rpcErrorCode:O.status}}))):(Y$(X,X.cloudSaveIntervalMs*2),p(P||Error("$h"))),_.t_(u)}})})):c.return(new Promise(function(W,p){var g,a;
return _.I(function(O){if(O.nextAddress==1){if(X.JSC$17283_miniAppId==="")return p(Error("ai")),O.return();_.KK(O,2);return O.yield(MNY(X,D,C),4)}if(O.nextAddress!=2)return g=O.yieldResult,g.ok?(Y$(X,Z1U),W()):(Y$(X,X.cloudSaveIntervalMs*2),p(Error("Zh`"+String(g.status),{cause:{rpcErrorCode:g.status}}))),_.SR(O,0);a=_.Eu(O);Y$(X,X.cloudSaveIntervalMs*2);p(a);_.t_(O)})})):c.return()})};
var MNY=function(D,C,X){X=X===void 0?!1:X;var c,W,p;return _.I(function(g){if(g.nextAddress==1)return c=_.tP((new TextEncoder).encode(C)),W=l9R(),g.yield(jwU(D,W),2);p=g.yieldResult;return g.return(fetch(W,{method:"POST",body:new Blob([c]),headers:p,keepalive:X}))})},GkY=function(D){var C,X;
return _.I(function(c){if(c.nextAddress==1){if(!Mhm())return c.return("");if(D.JSC$17283_miniAppId==="")throw Error("ai");if(D.loadAttempts>2)return c.return(D.downloadDataPromise);_.KK(c,2);return c.yield(qXG(D),4)}if(c.nextAddress!=2)return C=c.yieldResult,c.return(C);X=_.Eu(c);if(dPt(X)&&++D.loadAttempts<2)return c.return(GkY(D));throw X;})},qXG=function(D){var C,X,c,W,p;
return _.I(function(g){switch(g.nextAddress){case 1:return _.KK(g,2),C=l9R(),g.yield(jwU(D,C),4);case 4:return X=g.yieldResult,g.yield(fetch(C,{method:"GET",headers:X}),5);case 5:return c=g.yieldResult,c.ok?g.yield(c.text(),6):g.return(Promise.reject(Error("bi`"+String(c.status),{cause:new qEt(c.status)})));case 6:return W=g.yieldResult,g.return((new TextDecoder).decode(_.Dk(W)));case 2:return p=_.Eu(g),g.return(Promise.reject(p))}})},Y$=function(D,C){D.cloudSaveIntervalMs=C;
D.scottyUploadRateLimiter.intervalMs=D.cloudSaveIntervalMs};
VNp.prototype.flush=function(){var D=this;return _.I(function(C){return D.initialDownloadDataSucceeded?C.yield(D.scottyUploadRateLimiter.flush(!0),0):C.return()})};var fGG=Lo(xO(1),Ko(1)),dYo=Lo(xO(1),Ko(3)),y1=function(D){this.callbacks=D};
_.S=y1.prototype;_.S.onAudioToggled=function(D,C){(C===void 0||C)&&_.rL("yt-mini-app-is-audio-enabled",D,2592E3)};
_.S.onPause=function(){this.onAudioToggled(!1,!1)};
_.S.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.S.returnNativeBenchmarkingMessage=function(){};
_.S.sendGameData=function(){};
_.S.sendStartGameFrameCapture=function(){};
var DQ3=function(D,C,X){this.callbacks=D;var c=this;this.sdkVersion=new _.gL;this.channel=new $Jc(_.Of({destination:window,iframe:C,origin:(new URL(X.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var W=ns;var p=xO(5);var g=new tPC;g=_.nR(g,1,1E4);p=_.sB(p,4,GP4,g);W(c,p);c.onAudioToggled(c.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){c.sdkVersion.resolve("")},1E4)};
_.h(DQ3,y1);_.S=DQ3.prototype;_.S.onAudioToggled=function(D,C){y1.prototype.onAudioToggled.call(this,D,C===void 0?!0:C);C=ns;var X=xO(2),c=new eVC;D=_.kT(c,1,D);D=_.sB(X,3,GP4,D);C(this,D)};
_.S.onPause=function(){y1.prototype.onPause.call(this);ns(this,xO(3))};
_.S.onResume=function(){y1.prototype.onResume.call(this);ns(this,xO(4))};
_.S.returnNativeBenchmarkingMessage=function(D){var C=ns,X=xO(6);var c=Ko(_.QO(D,ob,1)?1:2);D=_.QO(D,ob,1)?D:null;c=_.sB(c,5,hf,D);C(this,Lo(X,c))};
_.S.sendGameData=function(D){var C=ns,X=xO(7);D=_.sB(X,5,GP4,D);C(this,D)};
_.S.sendStartGameFrameCapture=function(){ns(this,xO(9))};
var wn=function(D,C,X){var c,W,p;return _.I(function(g){if(g.nextAddress==1)return c=D.callbacks,W=c.onSdkCalled,p=C,g.yield(D.sdkVersion.promise,2);W.call(c,p,g.yieldResult,X);_.t_(g)})};
DQ3.prototype.onMessage=function(){var D=this;return kdC(eT,function(C){var X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5,Fd,GJ,jZ,Ac,ib,d5,ub,L5,Nf,xt,u6,g5,oq,rx,Rq,K5,C1,LK,Mf;return _.I(function(vM){switch(vM.nextAddress){case 1:if(!fsd(C.data))return _.fQ(Error("ci")),vM.return();X=_.tu(C.data,1);_.b("enable_iframe_message_get_type_via_fields")&&(c=C.data,X=W=_.tu(c,1));switch(X){case 8:if(C.data.hasMetadata()){var kg=D.sdkVersion,p1=kg.resolve;var Rm=C.data.getMetadata();Rm=_.EG(Rm,
1);p1.call(kg,Rm);clearTimeout(D.sdkVersionTimeoutId)}break;case 6:return vM.jumpTo(2);case 16:if(!_.BT(C.data,HVb,14,EM))return vM.return();p=_.yO(C.data,HVb,14,EM);(a=(g=D.callbacks).onGameFrameReceived)==null||a.call(g,p);return vM.return();case 17:if(!_.BT(C.data,Ttc,15,EM))return vM.return();(P=(O=D.callbacks).onGameAudioReceived)==null||P.call(O,_.yO(C.data,Ttc,15,EM));return vM.return();case 1:if(kg=_.yO(C.data,ysb,2,EM))switch(_.tu(kg,1)){case 1:D.callbacks.onFirstFrameReady();if(_.b("enable_network_request_logging_on_game_events")&&
_.QO(kg,bJ,4)){wn(D,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Bz(kg,bJ,4));break}wn(D,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Rm=(p1=D.callbacks).onGameReady)==null||Rm.call(p1);if(_.b("enable_network_request_logging_on_game_events")&&_.QO(kg,bJ,4)){wn(D,"MINI_APP_SDK_API_GAME_READY",_.Bz(kg,bJ,4));break}wn(D,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.BT(kg,rY,3,nxf))D.callbacks.onResourceLoaded(_.yO(kg,rY,3,nxf))}return vM.return();case 3:return vM.jumpTo(3);case 4:return vM.jumpTo(4);
case 2:return vM.jumpTo(5);case 9:return vM.jumpTo(6);case 10:return D.callbacks.onClick(),vM.return();case 5:return vM.jumpTo(7);case 11:if(!_.BT(C.data,uJ,9,EM))return vM.return();k=_.yO(C.data,uJ,9,EM);(Q=(u=D.callbacks).onBenchmarkingMessageReceived)==null||Q.call(u,k);kg=C.reply;p1=xO(1);Rm=Ko(1);var ow=new uJ;var iU=new Uint8Array(Nxb(k,yC(k,hVq,6))|0);ow=ee(ow,5,hVq,_.Yg(iU,!1));Rm=_.sB(Rm,5,hf,ow);kg.call(C,Lo(p1,Rm));return vM.return();case 12:return vM.jumpTo(8);case 13:return vM.jumpTo(9);
case 15:if(!_.b("enable_open_yt_content"))return C.reply(dYo),vM.return();if(!_.BT(C.data,VPC,12,EM))return C.reply(Lo(xO(1),Ko(2))),vM.return();kg=_.yO(C.data,VPC,12,EM);B=_.EG(kg,1);D.callbacks.onOpenYTContent(B);C.reply(fGG);return vM.return();case 14:return vM.jumpTo(10);default:return vM.return()}vM.jumpTo(0);break;case 2:if(!_.BT(C.data,sM,5,EM))return vM.return();p1=C.data;kg=yC(p1,EM,5);p1=p1.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=FGt(p1,p1[_.SC]|0,sM,kg)||sM[Z5m]||(sM[Z5m]=
GNd(sM));kg=_.Ih(K,Qq,1,_.AR());L=_.U(kg);t=L.next();case 12:if(t.done){vM.jumpTo(14);break}Y=t.value;y=new _.Zf;y.level=_.tu(Y,2)===1?"WARNING":"ERROR";J=XJW(Y.getSource());return vM.yield(D.sdkVersion.promise,15);case 15:T={source:J,sdkVersion:vM.yieldResult};_.SN(_.uS(Y,6))!=null?(y.message=Y.getMessage(),y.stack=_.EG(Y,5),T.sdkErrorType=ckF(_.tu(Y,6)),_.SN(_.uS(Y,7))!=null&&(T.sdkApi=opZ(_.tu(Y,7)))):y.stack=void 0;q=H=void 0;(q=(H=D.callbacks).onError)==null||q.call(H,{loggingError:y,metadata:T});
t=L.next();vM.jumpTo(12);break;case 14:return vM.return();case 3:return _.KK(vM,16),kg=vM.yield,p1=D.callbacks,Rm=p1.onSave,ow=_.yO(C.data,Exc,4,EM),ow=_.EG(ow,1),kg.call(vM,Rm.call(p1,ow),18);case 18:C.reply(fGG);_.SR(vM,17);break;case 16:return R=_.Eu(vM),ph=yR,Om=R,xj=D.callbacks,Bo="MINI_APP_SDK_API_SAVE_DATA",vM.yield(D.sdkVersion.promise,19);case 19:ph(Om,xj,Bo,vM.yieldResult),C.reply(dYo);case 17:return vM.yield(wn(D,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return vM.return();case 4:return _.KK(vM,
21),vM.yield(D.callbacks.onLoad(),23);case 23:r5=vM.yieldResult;kg=C.reply;p1=xO(1);Rm=Ko(1);ow=new Exc;ow=_.N3(ow,1,r5);Rm=_.sB(Rm,3,hf,ow);kg.call(C,Lo(p1,Rm));_.SR(vM,22);break;case 21:return Fd=_.Eu(vM),GJ=yR,jZ=Fd,Ac=D.callbacks,ib="MINI_APP_SDK_API_LOAD_DATA",vM.yield(D.sdkVersion.promise,24);case 24:GJ(jZ,Ac,ib,vM.yieldResult),C.reply(dYo);case 22:return vM.yield(wn(D,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return vM.return();case 5:_.KK(vM,26);D.callbacks.onSendHighScore(jp(_.yO(C.data,
MPd,3,EM).getValue()));C.reply(Lo(xO(1),Ko(1)));_.SR(vM,27);break;case 26:return d5=_.Eu(vM),ub=yR,L5=d5,Nf=D.callbacks,xt="MINI_APP_SDK_API_SEND_SCORE",vM.yield(D.sdkVersion.promise,28);case 28:ub(L5,Nf,xt,vM.yieldResult),C.reply(dYo);case 27:return vM.yield(wn(D,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return vM.return();case 6:if(!_.BT(C.data,q9k,8,EM)){vM.jumpTo(30);break}kg=vM.yield;p1=_.yO(C.data,q9k,8,EM);p1=_.tu(p1,1);return kg.call(vM,wn(D,opZ(p1)),30);case 30:return vM.return();case 7:return kg=
C.reply,p1=xO(1),Rm=Ko(1),ow=D.callbacks.getLanguage(),Rm=ee(Rm,4,hf,Bp(ow)),kg.call(C,Lo(p1,Rm)),vM.yield(wn(D,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return vM.return();case 8:if(!_.BT(C.data,jJM,10,EM))return vM.return();u6=_.yO(C.data,jJM,10,EM);g5=D.callbacks;oq=g5.onSdkPerformanceUpdate;return vM.yield(D.sdkVersion.promise,33);case 33:return oq.call(g5,u6,vM.yieldResult),vM.return();case 9:kg=C.data;p1=yC(kg,EM,11);if(_.r3(_.uS(kg,p1))==null)return C.reply(Lo(xO(1),Ko(2))),vM.return();
rx=Y5(C.data,11,EM);D.callbacks.onShareInviteCode(rx);C.reply(fGG);return vM.yield(wn(D,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return vM.return();case 10:if(_.BT(C.data,mqg,13,EM)){vM.jumpTo(35);break}return vM.yield(D.callbacks.onShowMiniAppAd(2),36);case 36:return Rq=vM.yieldResult,C.reply(Lo(xO(1),FNb(Rq))),vM.yield(wn(D,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return vM.return();case 35:kg=_.yO(C.data,mqg,13,EM);a:switch(_.tu(kg,1)){case 1:kg={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:kg={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:kg={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}K5=kg;C1=K5.adType;LK=K5.sdkApi;kg=vM.yield;p1=D.callbacks;Rm=p1.onShowMiniAppAd;ow=_.yO(C.data,mqg,13,EM);ow=_.EG(ow,2);return kg.call(vM,Rm.call(p1,C1,ow||void 0),38);case 38:return Mf=vM.yieldResult,C.reply(Lo(xO(1),FNb(Mf))),vM.yield(wn(D,LK),39);case 39:return vM.return()}})})};
var ns=function(D,C){_.I(function(X){D.channel.send(C);_.t_(X)})},nm=function(D,C,X){this.callbacks=D;
var c=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;D=l6m(C,(new URL(X.toString())).origin);this.gameSnacks=new ENb(D);this.gameSnacks.page.onReady(function(){c.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){c.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var W,p;(p=(W=c.callbacks).onGameReady)==null||p.call(W)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(W,p){try{c.callbacks.onSendHighScore(p)}catch(g){yR(g,c.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(W,p){var g;return _.I(function(a){if(a.nextAddress==1)return _.KK(a,2),a.yield(c.callbacks.onSave(c.decoder.decode(p)),4);if(a.nextAddress!=2)return _.SR(a,0);g=_.Eu(a);yR(g,c.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return a.return()})});
this.gameSnacks.storage.onLoad(function(){var W,p;return _.I(function(g){if(g.nextAddress==1)return _.KK(g,2),g.yield(c.callbacks.onLoad(),4);if(g.nextAddress!=2)return W=g.yieldResult,g.return(c.encoder.encode(W));p=_.Eu(g);yR(p,c.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return g.return(c.encoder.encode(""))})});
this.gameSnacks.init()};
_.h(nm,y1);nm.prototype.onAudioToggled=function(D,C){y1.prototype.onAudioToggled.call(this,D,C===void 0?!0:C);var X;(X=this.gameSnacks)==null||X.audio.update(D)};
nm.prototype.onPause=function(){y1.prototype.onPause.call(this);var D;(D=this.gameSnacks)==null||D.game.pause()};
nm.prototype.onResume=function(){y1.prototype.onResume.call(this);var D;(D=this.gameSnacks)==null||D.game.resume()};var RoG=Wjo,lGX=_.F(function(D){var C=D.data;var X=D.loadingProgress;var c=D.forPaused;D=_.U(_.Li("",void 0,"LYYTdd"));var W=D.next().value,p=D.next().value;D=_.U(_.Li(!1,void 0,"K0waae"));var g=D.next().value,a=D.next().value,O=[],P=function(){return"transform: scaleX("+(_.Mm(X)||0)+")"},k=null,u=function(){return C()&&k!==null&&k!==void 0?k:k=C().showAnniversaryAnimation?6:RoG()};
_.Jw(function(){var L;if(C().timeOutMessages&&((L=C().timeOutMessages)==null?0:L.length)){k=null;L=_.U(O);for(var t=L.next();!t.done;t=L.next())clearTimeout(t.value);O.length=0;pJJ(C().timeOutMessages,O,p,a)}},"BNu9j");
var Q=function(){return!!C().persistentErrorMessageTitle},B=function(){return X!==void 0},K=function(){return C().title};
return _.A("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.A("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.A("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.A("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var L,t=(L=C().backgroundImage)==null?void 0:L.sources,Y;return(t==null?0:t.length)?"background-image: url("+((Y=t[0])==null?void 0:Y.url)+")":""}}),_.A("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.A(_.v,{cond:function(){return!Q()&&!(c==null?0:c())},
then:function(){var L={};return _.A("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.A("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.A(_.zl,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+u()},
data:function(){var t="loading_animation_"+u();return{animationConfig:{name:t,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+t+".json",loop:!0,autoplay:!0}}}})),_.A("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.A(_.v,{cond:K,
then:function(){return _.A("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},K)}}),_.A("p",{class:_.g$("miniAppSplashScreenViewModelTimeoutMessage",(L.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return g()},L)),
"aria-live":"polite"},W),_.A(_.v,{cond:B,then:function(){return _.A("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.A("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:P}))}})))}}),_.A(_.v,{cond:Q,
then:function(){return _.A("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.A("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return C().persistentErrorMessageTitle}),_.A(_.v,{cond:function(){return!!C().persistentErrorMessageDescription},
then:function(){return _.A("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return C().persistentErrorMessageDescription})}}))}}),_.A(_.v,{cond:c,
then:function(){return _.A("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.A("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.A("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},K))}})))},"Pf");var DJX=new _.P6("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var CUt=OO;OO=function(D){function C(X){if(X){var c,W;(c=X.__spec)==null||(W=c.didUnmount)==null||W.call(c);for(c=0;c<X.childNodes.length;c++)C(X.childNodes[c])}}
CUt==null||CUt(D);Lb(function(){for(var X=0;X<D.length;X++)C(D[X])})};var Xvo=_.F(function(D){var C=D.data;var X=D.score;var c=D.formattedScore;var W=D.onScoreChanged;var p=D.isEmbeddedInWebview;var g=_.IX("yt-mini-app-score-button-view-model"),a=function(){var B;return _.r(C==null?void 0:(B=C())==null?void 0:B.buttonViewModel,_.is)},O=function(){var B;
return(X==null?void 0:X())||Number(C==null?void 0:(B=C())==null?void 0:B.lastScore)||0},P=function(){var B;
return(c==null?void 0:c())||((B=a())==null?void 0:B.title)||""},k,u=1;
if(D=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))D=Number(D),u=isNaN(D)?1:D/100;_.Jw(function(){W==null||W(O());var B;var K=_.Y7((B=a())==null?void 0:B.onTap);if(K){B=_.r(K,Oux);var L,t,Y;B=_.r(B==null?void 0:(L=B.panelLoadingStrategy)==null?void 0:(t=L.inlineContent)==null?void 0:(Y=t.dialogViewModel)==null?void 0:Y.customContent,ezd)}else B=void 0;if(L=B)L.score=P()},"Aekez");
D=_.I_(function(){var B,K,L=C==null?void 0:(B=C())==null?void 0:(K=B.loggingDirectives)==null?void 0:K.trackingParams;L&&_.JF(_.iX().resolve(_.X5),L);return!1});
_.JU(function(){if(g.value){var B=g.value.querySelector("button"),K=a();B&&K&&Sch(B,K);_.vf("yt-share-playable-with-high-score",function(){var L=O().toString(),t=C==null?void 0:C().onShareHighScoreCommand,Y=C==null?void 0:C().highScoreShareClientParamIdentifier,y=p==null?void 0:p();t&&(y?(Y=new lYe,L=_.N3(Y,2,L),Yf(t,L.JSC$12691_serializeBinary())):Y&&(_.iX().resolve(DJX).clientParams.set(Y,{miniAppClientParams:{highScore:L}}),VhZ(t,!1)))})}});
var Q=function(){var B=a();B&&(X==null?0:X())&&B.accessibilityText&&(B.accessibilityText=B.accessibilityText.replace(k,P()));k=P();return{numberValue:O(),numberText:P(),heightPx:36,fontSizeMultiplier:u,shouldAnimate:!(X==null||!X())&&!0}};
return _.A("yt-mini-app-score-button-view-model",{class:function(){var B={};return _.sN("miniAppScoreButtonViewModelHost",(B.miniAppScoreButtonViewModelIsVisible=O()!==0,B))},
el:g,"on:click":D},$Xn(!1,function(){return _.A("span",{style:"display:none;"},O)}),_.A(_.BX,{data:function(){var B;
return C==null?void 0:(B=C())==null?void 0:B.buttonViewModel}},{buttonViewModel:function(B){return _.A(_.Ze,{data:B.data,
animatedTextProps:Q})}}))},"Rf");var SBt=_.F(function(D){var C,X=(C=_.KH("yt-mini-app-is-theater-mode-enabled"))!=null?C:!1,c=_.b("enable_playable_container_save_button"),W=_.b("enable_play_next_destination_page_in_toolbar");C={};return _.A("ytm-mini-app-top-bar-view-model",null,_.A("div",{class:_.g$("yt-mini-app-top-bar-view-model",(C["yt-mini-app-top-bar-view-model--mobile"]=!1,C["yt-mini-app-top-bar-view-model--desktop"]=!0,C))},_.A("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.A(_.v,{cond:function(){var p;return!!D.data().backButtonEdu&&
!((p=D.isExitMiniAppSeen)==null?0:p.call(D))},
then:function(){return _.A(_.BX,{data:function(){return D.data().backButtonEdu}},{buttonViewModel:_.Ze})},
else:function(){return _.A(_.BX,{data:function(){return D.data().backButton}},{buttonViewModel:_.Ze})}}),_.A(_.v,{cond:function(){return D.data().viewAllButton&&!0},
then:function(){return _.A(_.BX,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.Ze})}}),_.A(_.v,{cond:function(){return D.data().title&&!0},
then:function(){return _.A("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return D.data().title})}})),_.A("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.A(_.v,{cond:function(){var p;
return(p=D.isDesktopPlayPage)==null?void 0:p.call(D)},
then:function(){return _.A(_.kQ,null,_.A(c2N,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview}),_.A(oNY,{enableSaveButton:function(){return _.Mm(c)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.A(Wzk,{menuButton:function(){return D.data().menuButton}}))},
else:function(){return _.A(_.v,{cond:function(){return!1},
then:function(){return _.A(_.BX,{data:function(){return D.data().playPageButton}},{buttonViewModel:function(p){return _.A(_.Ze,{data:p.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.A(c2N,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview})}})}})),_.A("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.A(_.BX,{data:function(){return D.data().muteButton}},{toggleButtonViewModel:function(p){var g=p.data;
return _.A(_.o1,{data:function(){var a,O;return Object.assign({},g(),{isToggled:(O=(a=D.isAudioEnabled)==null?void 0:a.call(D))!=null?O:!0})},
onToggle:D.onAudioToggled,useOutlinedIcon:!0})}}),_.A(_.BX,{data:function(){return D.data().theatreModeButton}},{toggleButtonViewModel:function(p){var g=p.data;
return _.A("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.A(_.o1,{data:function(){return Object.assign({},g(),{isToggled:X})},
useOutlinedIcon:!0}))}}),_.A(pvY,{fullscreenButton:function(){return D.data().fullscreenButton}}),_.A(_.v,{cond:function(){return _.Mm(W)&&D.data().viewAllButton&&!1},
then:function(){return _.A(_.BX,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.Ze})}}),_.A(_.v,{cond:function(){var p;
return!((p=D.isDesktopPlayPage)==null?0:p.call(D))},
then:function(){return _.A(_.kQ,null,_.A(oNY,{enableSaveButton:function(){return _.Mm(c)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.A(Wzk,{menuButton:function(){return D.data().menuButton}}))}}))))},"Sf");
SBt.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Wzk=_.F(function(D){return _.A(_.BX,{data:D.menuButton},{buttonViewModel:_.Ze})},"Tf"),oNY=_.F(function(D){var C=D.enableSaveButton;
var X=D.saveButton;var c=D.isSaved;var W=D.onSaveToggled;return _.A(_.v,{cond:function(){return C()&&!(X==null||!X())},
then:function(){return _.A(_.BX,{data:function(){var p=_.r(X==null?void 0:X(),_.us),g;return{toggleButtonViewModel:Object.assign({},p,{isToggled:(g=c==null?void 0:c())!=null?g:!(p==null||!p.isToggled)})}}},{toggleButtonViewModel:function(p){return _.A(_.o1,{data:p.data,
onToggle:W})}})}})},"Uf"),c2N=_.F(function(D){var C=D.highScoreButton;
var X=D.score;var c=D.formattedScore;var W=D.onScoreChanged;var p=D.isEmbeddedInWebview;return _.A(_.BX,{data:C},{miniAppScoreButtonViewModel:function(g){return _.A(Xvo,{data:g.data,score:X,formattedScore:c,onScoreChanged:W,isEmbeddedInWebview:p})}})},"Vf"),pvY=_.F(function(D){D=D.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.A(_.kQ,null):_.A(_.BX,{data:D},{buttonViewModel:_.Ze})},"Wf");_.UJY=_.F(function(D){var C=D.data;var X=D.extractOverlay;D={};return _.A("player-disclosure-view-model",{class:_.g$("ytwPlayerDisclosureViewModelHost",(D.ytwPlayerDisclosureViewModelExtractOverlay=function(){return X==null?void 0:X()},D))},_.A(_.ty,{command:function(){return C().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.A(_.v,{cond:function(){return C().iconName},
then:function(c){return _.A(_.$_,{icon:c})}}),_.A(_.v,{cond:function(){return C().iconName?void 0:C().image},
then:function(c){return _.A(_.M_,{data:c,alt:function(){return C().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.A(_.v,{cond:function(){return C().title||C().secondaryText},
then:function(){return _.A("div",null,_.A("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return C().title}),_.A("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return C().text}),_.A(_.v,{cond:function(){return C().secondaryText},
then:function(c){return _.A(_.kQ,null,_.A("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.A("div",{class:"ytwPlayerDisclosureViewModelText"},c))}}))},
else:function(){return _.A("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return C().text})}}),_.A(_.v,{cond:function(){return C().showEndChevron},
then:function(){return _.A(_.$_,{icon:"CHEVRON_RIGHT"})}})))},"Xf");_.gN3=new _.P6("DESKTOP_CURRENT_PAGE");var $JP=_.F(function(D){var C=D.data;var X=_.b("force_active_time_logging_webview"),c=!1,W=new ntt,p=void 0,g=void 0,a=_.iX().resolve(yPU),O=new EtU,P=void 0,k=void 0,u=[],Q=void 0,B=void 0,K=!1,L=!1,t=!1,Y=!1,y=new _.gL,J=_.iX().resolve(DJX),T=_.iX().resolve(_.e1),H=_.iX().resolve(_.vK(RL)),q,R=(q=_.iX().resolve(_.vK(_.gN3)))==null?void 0:q.getCurrentPage(),ph=!1,Om=0,xj=function(p5){p5.preventDefault();return p5.returnValue=""},Bo,r5=_.U(_.Li(!((Bo=_.KH("yt-mini-app-is-audio-enabled"))!=null&&!Bo),
void 0,"wBOrKf")),Fd=r5.next().value,GJ=r5.next().value,jZ,Ac=_.U(_.Li(!((jZ=_.KH("exit-mini-app-seen-state"))==null||!jZ),void 0,"a2xYg")),ib=Ac.next().value,d5=Ac.next().value,ub=_.U(_.Li(!1,void 0,"i8BH4")),L5=ub.next().value,Nf=ub.next().value,xt=_.U(_.Li(void 0,void 0,"UGqFqe")),u6=xt.next().value,g5=xt.next().value,oq=_.U(_.Li(void 0,void 0,"jrV5Ob")),rx=oq.next().value,Rq=oq.next().value,K5=_.U(_.Li(!0,void 0,"u5JS3d")),C1=K5.next().value,LK=K5.next().value,Mf=_.U(_.Li(!1,void 0,"MjPdB")),
vM=Mf.next().value,kg=Mf.next().value,p1=_.U(_.Li(!1,void 0,"nT6Yxf")),Rm=p1.next().value,ow=p1.next().value,iU=_.U(_.Li(void 0,void 0,"nkG6")),oH=iU.next().value,QU=iU.next().value,jN=_.U(_.Li(0,void 0,"KH4u0b")),Oe=jN.next().value,Bd=jN.next().value,HM=_.aX("mini-app-container-view-model"),mG=_.U(_.Li(!1,void 0,"NsE4qb")),UX=mG.next().value,bc=mG.next().value,ro=function(){return C().isEmbeddedInWebview},fy=function(){return C().hasPlayNextShelf};
_.H2(function(){var p5,b6=(p5=_.r(C().contentDisclosure,jsM))==null?void 0:p5.animationParams;if((b6==null?0:b6.shouldHide)&&(b6==null?0:b6.hideDelaySecs)){var ZG=setTimeout(function(){bc(!0)},b6.hideDelaySecs*1E3);
_.z3(function(){clearTimeout(ZG)})}});
_.vf("yt-page-type-changed",function(p5){if(_.b("enable_is_mini_app_page_active_bugfix"))p5.detail.newPageSubtype==="mini_app"&&p5.detail.newPageType==="ytd-browse"||!C1()||Kq();else if(p5=_.qH()==="mini_app",p5!==C1())if(LK(p5),p5){var b6;p5=(b6=C().playableId)==null?void 0:b6.toString();p5!==void 0&&window.location.href.includes(p5)&&!L&&(Y=!0,We(),xa.value&&h3(xa.value))}else p5||Kq()});
_.vf("yt-action",function(p5){p5.detail.actionName==="yt-engagement-panel-visible-changed"&&p5.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&p5.detail.args[2]==="PAmini_app_panel"&&Kq();_.b("enable_is_mini_app_page_active_bugfix")?p5.detail.actionName==="yt-history-load"&&!C1()&&(R==null?0:R.active)?(LK(!0),We(),xa.value&&h3(xa.value)):p5.detail.actionName==="yt-history-load"&&C1()&&!C().isEmbeddedInWebview&&xg():C1()&&p5.detail.actionName==="yt-history-load"&&(Y?Y=!1:C().isEmbeddedInWebview||
xg())});
_.z3(function(){su()});
_.Jw(function(){We()},"bzUf2c");
var We=function(){var p5=C().playableId,b6=C().localReleaseId,ZG=C().derivedDeviceInterface;if(L)_.fQ(new _.Zf("[MiniAppContainerViewModel] onEnter was called more than once"));else{L=!0;p=new utt(p5,b6,ZG,document.visibilityState==="visible");rPt(p);g=new VNp(p5);a6X(a,p5);tNU(O,{showMiniAppAdCommand:C().showMiniAppAdCommand,isEmbeddedInWebview:C().isEmbeddedInWebview,playLogger:p});lSW()&&(B=document.body.style.backgroundColor,_.Ms(document.body,"background-color","black"));yb();mH();y=new _.gL;
if(C().isEmbeddedInWebview){if(p5=(new URLSearchParams(window.location.search)).get("postPlayNonce"))B36(p,p5),ph=!0;W.initialize({onAudioStateLoaded:function(gj){qR(gj)},
onMuteMiniApp:function(){qR(!1)},
onUnmuteMiniApp:function(){qR(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(gj){ph||(B36(p,gj),ph=!0)},
confirmExitMiniApp:function(){var gj,TL,VL;return _.I(function(XL){if(XL.nextAddress==1)return C().confirmExitMiniAppCommand?XL.yield(Promise.race([y.promise,Promise.resolve(!1)]),2):XL.return();(gj=XL.yieldResult)?!C().confirmExitMiniAppCommandEdu||(VL=(TL=ib)==null?void 0:TL())!=null&&VL?Ll(C().confirmExitMiniAppCommand):(Ll(C().confirmExitMiniAppCommandEdu),_.rL("exit-mini-app-seen-state","true",2592E6)):Ll(C().closeMiniAppCommand);_.t_(XL)})},
onNativeBenchmarkingMessageReceived:function(gj){gj=LNq(_.wJt(gj));if(_.BT(gj,_.tm,3,KN5)){var TL=_.yO(gj,_.tm,3,KN5),VL=T6n();var XL=jp(VL.getSeconds())-jp(TL.getSeconds());TL=_.PI(VL,2)-_.PI(TL,2);XL<0&&TL>0?(XL+=1,TL-=1E9):XL>0&&TL<0&&(--XL,TL+=1E9);XL=(new ob).setSeconds(XL);XL=_.Cf(XL,2,_.g3(TL),0);_.Lf(gj,1,XL)}var jz;(jz=k)==null||jz.returnNativeBenchmarkingMessage(gj)},
multiplayer3pAckStateLoaded:function(gj){xg(gj)},
exitMiniAppSeenStateLoaded:function(gj){C().confirmExitMiniAppCommandEdu&&d5(gj)},
onNavigateToNewMiniApp:function(){Ll(C().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(gj){gj=new URLSearchParams(gj);var TL=void 0;gj.has("invite_code")&&(TL=new Y9J,gj=gj.get("invite_code"),TL=_.N3(TL,1,gj));if(gj=TL){var VL;(VL=k)==null||VL.sendGameData(gj)}},
onPauseMiniApp:function(){c=!0;Em()},
onResumeMiniApp:function(){c=!0;TJ()},
onAdFinished:function(gj){O.onAdFinished(gj)}});
C().showMultiplayer3pConsentDialogCommand||y.resolve(!0);Ll(C().onContainerReadyCommand)}else B36(p),y.resolve(!0);T3t(g,QwY(p));QwY(p).then(function(gj){gj={miniAppPlayData:{postPlayNonce:gj}};var TL,VL=(TL=C().loggingDirectives)==null?void 0:TL.trackingParams;VL&&_.iO().stateChanged(VL,gj)});
p5=C().showSignInDialogCommand;!Mhm()&&p5&&(_.rL("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Ll(p5));C().confirmExitMiniAppCommand&&H&&(p5=ZJR(C().confirmExitMiniAppCommand))&&(H.customConfirmationCommand=p5)}},su=function(){B&&_.Ms(document.body,"background-color",B);
K=!1;Q&&Q.release();g.flush().catch(function(p5){_.fQ(p5)});
a.flush().catch(function(p5){_.fQ(p5)});
hok(p);K9();k=void 0;I6p(J)},Kq=function(){LK(!1);
su();Nf(!1);QU(void 0);g5(void 0);Rq(void 0);Om=0;Bd(0);L=!1},Em=function(){var p5;
(p5=k)==null||p5.onPause();Q&&Q.release();g.flush().catch(function(b6){_.fQ(b6)});
a.flush().catch(function(b6){_.fQ(b6)});
KG1(p);kg(!0)},TJ=function(){var p5;
(p5=k)==null||p5.onResume();mH();p5=p;p5.isForeground=!0;td(p5,"PLAY_EVENT_TYPE_PLAY_RESUME");kg(!1)},qR=function(p5){var b6;
(b6=k)==null||b6.onAudioToggled(p5);GJ(p5)},xg=function(p5){C().showMultiplayer3pConsentDialogCommand&&(C().isEmbeddedInWebview&&p5!==void 0&&y.resolve(p5),!p5&&_.qH()==="mini_app"&&Ll(C().showMultiplayer3pConsentDialogCommand))},K1=function(){var p5,b6,ZG,gj;
return _.I(function(TL){if(TL.nextAddress==1){!C().isLivestream||C().disableVideoCapture||(p5=k)!=null&&p5.sendStartGameFrameCapture();b6=(new URL(window.location.href)).searchParams;if(b6.has("invite_code")){var VL=new Y9J,XL=b6.get("invite_code");ZG=_.N3(VL,1,XL);(gj=k)==null||gj.sendGameData(ZG)}L5()||(Nf(!0),VL=p,VL.state!==1?_.fQ(new _.Zf("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+i1P[VL.state])):(_.rT("mini_app_ids_without_game_ready").includes(VL.JSC$17239_miniAppId)&&(VL.gameReady=
!0),VL.state=2,VL.beforeReady=!1,Et(VL,"ma_ffr"),td(VL,"PLAY_EVENT_TYPE_PLAY_READY")));return TL.yield(y.promise,2)}Ll(C().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();C().isEmbeddedInWebview||xg();_.t_(TL)})},wj=function(){var p5=p;
p5.gameReady=!0;Et(p5,"ma_gr")},NY=function(p5){var b6;
return _.I(function(ZG){if(ZG.nextAddress==1)return _.KK(ZG,2),ZG.yield(JPo(g,p5),4);if(ZG.nextAddress!=2)return _.SR(ZG,0);b6=_.Eu(ZG);Ll(C().showSavingErrorPopupCommand);throw b6;})},Ed=function(){var p5,b6;
return _.I(function(ZG){if(ZG.nextAddress==1)return _.KK(ZG,2),ZG.yield(H1w(g),4);if(ZG.nextAddress!=2)return p5=ZG.yieldResult,ZG.return(p5);b6=_.Eu(ZG);Ll(C().showLoadingErrorDialogCommand);throw b6;})},sd=function(p5){p.logError(p5)},Hp=function(p5,b6,ZG){LGG(p,p5,b6,ZG)},zd=function(p5,b6){mYX(p,p5,b6)},bb=function(){!X&&C().isEmbeddedInWebview||_.iw();
xYk(p,!0);K||(window.addEventListener("beforeunload",xj,{capture:!0}),K=!0)},dV=function(p5){var b6,ZG,gj,TL,VL,XL,jz;
return _.I(function(m_){if(m_.nextAddress==1)return a&&(!P||P<p5)&&p5>0?m_.yield(Of1(a,p5),3):m_.jumpTo(0);b6=m_.yieldResult;ZG=_.U(b6);gj=ZG.next().value;TL=ZG.next().value;VL=gj;XL=TL;((jz=VL)==null?0:jz.displayString)&&XL&&(g5(XL),Rq(VL.displayString));_.t_(m_)})},f7=function(p5){var b6=C().onBenchmarkingMessageReceivedCommand;
if(b6){var ZG=T6n();_.sB(p5,3,KN5,ZG);Yf(b6,sJe(p5))}},jD=function(p5){var b6=C().onGameFrameReceivedCommand;
if(b6){var ZG=new CU;var gj=new hz5;var TL=mX(p5,1);gj=_.wO(gj,1,TL);p5=_.EG(p5,2);p5=_.N3(gj,2,p5);ZG=_.Lf(ZG,2,p5);Yf(b6,mUd(ZG))}},RA=function(p5){var b6=C().onGameAudioDataReceivedCommand;
if(b6){var ZG=new CU;var gj=new Lab;p5=_.EG(p5,1);gj=_.N3(gj,1,p5);ZG=_.Lf(ZG,4,gj);Yf(b6,mUd(ZG))}},Sf=function(){var p5=new URLSearchParams(window.location.search);
if(C().isEmbeddedInWebview&&p5&&p5.get("override_hl")==="true"&&p5.get("hl"))return p5.get("hl");p5=document.documentElement.lang;return p5!==""?p5:Z7},$7=function(p5){var b6=C().onShareInviteCodeCommand;
if(b6)if(C().isEmbeddedInWebview){var ZG=new lYe;p5=_.N3(ZG,1,p5);Yf(b6,CC4(p5))}else ZG=C().inviteCodeShareClientParamIdentifier,J.clientParams.set(ZG,{miniAppClientParams:{inviteCode:p5}}),Ll(b6)},pi=function(p5){var b6,ZG,gj;
return _.I(function(TL){if(TL.nextAddress==1)return b6=C().onMiniAppOpenYtContentRequested,a&&_.b("enable_open_yt_content")&&b6?TL.yield(A23(a,p5),3):TL.jumpTo(0);ZG=TL.yieldResult;if(ZG==="OK")if(C().isEmbeddedInWebview){var VL=new BYf;gj=ee(VL,2,DC,Bp(p5));Yf(b6,Kag(gj))}else T.clientData.set("video_id",p5),Ll(b6);_.t_(TL)})},J9=function(p5){Om+=_.PI(p5,3);
p5=Math.min(Math.log(1+Om/15E6*9)/Math.log(10),.99);Bd(p5);vA(p5)},vA=_.t6(function(p5){var b6=C().updateLoadingProgressCommand;
if(b6){var ZG=new BYf;p5=ee(ZG,3,DC,_.f5(p5));Yf(b6,Kag(p5))}},100),v7=function(p5){return YXo(O,p5)},mH=function(){var p5,b6;
((p5=_.raZ())==null?void 0:(b6=p5.wakeLock)==null?void 0:b6.request)!=null&&_.raZ().wakeLock.request("screen").then(function(ZG){Q=ZG}).catch(function(){})},xa=_.IX("iframe");
_.Jw(function(){C().isSupportedCountry&&(Mhm()||_.b("enable_sign_in_promo")||!C().showSignInDialogCommand?xa.value&&h3(xa.value):Ll(C().onMiniAppReadyCommand))},"VjCqQ");
var sF=function(){return _.A("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return L5()?0:-1},
title:function(){return C().title},
el:xa})},h3=function(p5,b6){b6=b6===void 0?!1:b6;
var ZG=rz();if(ZG&&(b6||ZG.toString()!==p5.getAttribute("src"))){k=CLR(C().source,{isAudioEnabled:Fd,onFirstFrameReady:K1,onGameReady:wj,onSave:NY,onLoad:Ed,onError:sd,onSdkCalled:Hp,onSdkPerformanceUpdate:zd,onClick:bb,onSendHighScore:dV,onBenchmarkingMessageReceived:f7,getLanguage:Sf,onShareInviteCode:$7,onResourceLoaded:J9,onOpenYTContent:pi,onShowMiniAppAd:v7,onGameFrameReceived:jD,onGameAudioReceived:RA},p5,ZG);QK(p5,"load",function(){Et(p,"ma_il");QK(p5,"load",function(){h3(p5,!0)})});
var gj=_.BK("mini_app_container_iframe_src_update_delay_ms");C().isEmbeddedInWebview&&!b6&&gj>0?zAj(p5,ZG,gj):_.CK(p5,ZG)}},rz=function(){var p5=C().url;
if(p5&&(p5=_.fq(p5),p5!==null)){if(C().source&&C().source==="MINI_APP_SOURCE_GAMESNACKS")p5=_.uo(p5,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.b("enable_origin_query_parameter_bugfix")){var b6=_.Ln(_.$jo(p5.toString()));b6=new URLSearchParams(b6||"");b6.set("origin",window.location.origin);b6=b6.toString();p5=_.NJ(p5).toString();p5=_.t2(SFk.exec(p5)[0]+(b6.trim()?"#"+b6:""))}return p5}},Yy=function(){var p5={};
p5=_.g$("yt-mini-app-container-view-model__loading-screen",(p5["yt-mini-app-container-view-model__loading-screen--fade-out"]=L5,p5));var b6=function(){return L5()?1:Oe()};
return _.A("div",{class:p5},_.A(_.BX,{data:function(){return C().splashScreen}},{miniAppSplashScreenViewModel:function(ZG){return _.A(lGX,{data:ZG.data,
loadingProgress:b6})}}))},sb=function(){var p5={};
return _.A("div",{class:_.g$("yt-mini-app-container-view-model__pause-interstitial",(p5["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!vM()},p5["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=vM,p5))},_.A(_.BX,{data:function(){return C().splashScreen}},{miniAppSplashScreenViewModel:function(b6){return _.A(lGX,{data:b6.data,
forPaused:!0})}}))},yb=function(){u=[];
u.push(_.Kb(window,"visibilitychange",function(){t||c&&ro()||(document.visibilityState==="visible"?TJ():Em())}));
u.push(_.Kb(window,"pagehide",function(){su()}));
u.push(_.Kb(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&HM.value.dispatchEvent(new Event("tap"))},0)}));
u.push(_.Kb(HM.value,"pointerdown",function(){xYk(p,!1)},!0));
u.push(_.Kb(HM.value,"pause",function(){t=!0;Em()}));
u.push(_.Kb(HM.value,"play",function(){t=!1;TJ()}));
u.push(_.Kb(HM.value,"exit",function(){su()}));
var p5=navigator.keyboard,b6=p5&&p5.lock;u.push(_.Kb(window,rlg,function(){ow(h7g());h7g()?(C().hasPlayNextShelf&&eJ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),mK("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),b6&&p5.lock(["Escape"])):(C().hasPlayNextShelf&&mK("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),eJ("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),b6&&p5.unlock())}));
C().showMultiplayer3pConsentDialogCommand&&u.push(_.Kb(window,"yt-playables-ack-3p-data-usage",function(){PUP(a)}));
C().confirmExitMiniAppCommandEdu&&u.push(_.Kb(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.rL("exit-mini-app-seen-state","true",2592E6)}));
C().onGameAudioDataReceivedCommand&&u.push(_.Kb(window,"message",function(ZG){ZG=ZG.event_;var gj,TL=(gj=xa.value)==null?void 0:gj.src;if(TL&&ZG.origin===(new URL(TL)).origin&&ZG.data&&ZG.data.type==="GAME_AUDIO"&&ZG.data.audio&&ZG.data.audio.length>0)if(_.b("enable_sending_unwrapped_game_audio_as_serialized_metadata"))JMj(C().onGameAudioDataReceivedCommand,ZG.data.audio);else{var VL=new FileReader;VL.onload=function(){var XL=new CU;var jz=new Lab;jz=_.N3(jz,1,VL.result);XL=_.Lf(XL,4,jz);Yf(C().onGameAudioDataReceivedCommand,
mUd(XL))};
VL.readAsDataURL(new Blob([ZG.data.audio]))}}))},K9=function(){u.forEach(function(p5){Bc(p5)});
window.removeEventListener("beforeunload",xj,{capture:!0})},Ll=function(p5){p5&&VhZ(p5,C().isEmbeddedInWebview||!1)},mK=function(p5,b6){p5=_.U(HM.value.getElementsByClassName(p5));
for(var ZG=p5.next();!ZG.done;ZG=p5.next())ZG.value.classList.add(b6)},eJ=function(p5,b6){p5=_.U(HM.value.getElementsByClassName(p5));
for(var ZG=p5.next();!ZG.done;ZG=p5.next())ZG.value.classList.remove(b6)};
return function(){var p5={};p5=_.g$("yt-mini-app-container-view-model",(p5["yt-mini-app-container-view-model--desktop"]=!0,p5["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return C().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},p5["yt-mini-app-container-view-model--ios-web-view"]=lSW(),p5["yt-mini-app-container-view-model--no-top-bar"]=function(){return!C().topBar},p5["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return C().hasPlayNextShelf},p5["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return C().hasPlayNextShelf},p5["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Rm()&&C().hasPlayNextShelf},p5));
var b6={};b6=_.g$("yt-mini-app-container-view-model__content",(b6["yt-mini-app-container-view-model__content--desktop-content"]=!0,b6["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return C().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},b6["yt-mini-app-container-view-model--desktop-play-page"]=function(){return C().hasPlayNextShelf},b6));
return _.A("mini-app-container-view-model",{el:HM},_.A("div",{class:p5},_.A(_.v,{cond:function(){return C().topBar&&!Rm()},
then:function(){return _.A(_.BX,{data:function(){return C().topBar}},{miniAppTopBarViewModel:function(ZG){return _.A(SBt,{data:ZG.data,
isAudioEnabled:Fd,onAudioToggled:function(gj){qR(gj)},
score:u6,formattedScore:rx,onScoreChanged:function(gj){P=gj},
isEmbeddedInWebview:ro,isSaved:oH,onSaveToggled:function(gj){QU(gj)},
isExitMiniAppSeen:ib,isDesktopPlayPage:fy})}})}}),_.A("div",{class:b6},_.A(_.v,{cond:C1,
then:function(){return sF()}}),_.A(_.v,{cond:function(){return C().isLivestream},
then:function(){return sb()}}),_.A(_.v,{cond:function(){return!C().isEmbeddedInWebview},
then:function(){return Yy()}}),_.A(_.BX,{data:function(){return C().contentDisclosure}},{playerDisclosureViewModel:function(ZG){ZG=ZG.data;
var gj={};return _.A("div",{class:_.g$("yt-mini-app-container-view-model__content-disclosure-overlay",(gj["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=UX,gj))},_.A(_.UJY,{data:ZG}))}}))))}()},"ag");
$JP.idomCompat=!0;_.CI($JP,"mini-app-container-view-model",{props:{data:_.Bm}});var vN1=_.F(function(D){var C=D.data;return _.A("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.A("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.I_(function(){var X=C().onTap;X&&_.FV(X)})},_.A(_.v,{cond:function(){return C().icon},
then:function(X){return _.A(_.$_,{icon:function(){return X().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.A("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return C().title})))},"bg");
vN1.idomCompat=!0;var ifw=_.F(function(D){var C=_.aX("div"),X=_.U(_.Li(void 0,void 0,"dg3xff")),c=X.next().value,W=X.next().value;X=_.U(_.Li(void 0,void 0,"AgHNfc"));var p=X.next().value,g=X.next().value;X=_.U(_.Li(void 0,void 0,"fuTKCc"));var a=X.next().value,O=X.next().value,P=function(){var Y=c();return Y!==void 0?Math.abs(Y):void 0},k=function(){var Y=P();
return Y===void 0||Y<=3},u=function(){var Y=P();
var y=p(),J=a();Y=Y!==void 0&&y!==void 0&&J!==void 0?y-J-Y:void 0;return Y===void 0||Y<=3},Q=function(Y){C.value&&C.value.scrollBy({top:0,
left:(_.q6("HTML_DIR")==="rtl"?-1:1)*Y*C.value.clientWidth,behavior:"smooth"})},B=function(){var Y;
W((Y=C.value)==null?void 0:Y.scrollLeft);var y;g((y=C.value)==null?void 0:y.scrollWidth);var J;O((J=C.value)==null?void 0:J.clientWidth)},K=function(){Q(-.5)},L=function(){Q(.5)};
X=_.I_(function(){B()});
_.H2(function(){B();if(C.value&&window.ResizeObserver){var Y=new ResizeObserver(B);Y.observe(C.value);_.z3(function(){Y.disconnect()})}});
var t={};return _.A("yt-sponsorships-scrollable-shelf",{class:_.g$("ytdSponsorshipsScrollableShelfHost",D.className)},_.A("div",{class:_.g$("ytdSponsorshipsScrollableShelfContent",(t.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return D.data().previousButton&&D.data().nextButton&&!k()&&!u()},t.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return D.data().previousButton&&!k()&&u()},t.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return D.data().nextButton&&
k()&&!u()},t)),
el:C,"on:scroll":X},D.children),_.A(_.v,{cond:function(){return!k()},
then:function(){return _.A(_.BX,{data:function(){return D.data().previousButton}},{buttonViewModel:function(Y){return _.A(_.Ze,{data:Y.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:K})}})}}),_.A(_.v,{cond:function(){return!u()},
then:function(){return _.A(_.BX,{data:function(){return D.data().nextButton}},{buttonViewModel:function(Y){return _.A(_.Ze,{data:Y.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:L})}})}}))},"dg");
ifw.idomCompat=!0;var um1=_.F(function(D){var C=D.data;D={};return _.A("yt-sponsorships-hub",{class:_.g$("ytdSponsorshipsHubHost",(D.ytdSponsorshipsHubHostIndented=function(){return C().indented},D))},_.A("div",{class:"ytdSponsorshipsHubHeader"},_.A("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.A("div",{class:"ytdSponsorshipsHubAvatar"},_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu})),_.A(_.v,{cond:function(){return C().badgeImage},
then:function(X){return _.A("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.A("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.A("div",{class:"ytdSponsorshipsHubBadge"},_.A(_.M_,{data:X,targetWidth:24,targetHeight:24,alt:""}))))}})),_.A("div",{class:"ytdSponsorshipsHubDetails"},_.A("div",{class:"ytdSponsorshipsHubTierName"},function(){return C().tierName}),_.A("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return C().membershipType}),_.A("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return C().membershipDurationOrExpiry})),_.A("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.A(_.BX,{data:function(){return C().manageButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.A(_.BX,{data:function(){return C().actionMenuButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.A("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return C().perksTitle}),_.A(ifw,{data:function(){return{previousButton:C().previousPerkButton,
nextButton:C().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.A("div",{class:"ytdSponsorshipsHubPerkCards"},_.A(_.BX,{data:function(){return C().perkCards}},{sponsorshipsHubPerkCardViewModel:vN1}),_.A(_.v,{cond:function(){return C().viewAllPerksButton},
then:function(X){return _.A(kdN,{data:X})}}))))},"eg");
um1.idomCompat=!0;var kdN=_.F(function(D){var C=D.data;return _.A("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.A(_.BX,{data:function(){return C().button}},{buttonViewModel:_.Ze}),_.A("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.A("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return C().title}),_.A("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return C().subtitle})))},"fg");
kdN.idomCompat=!0;_.CI(um1,"yt-sponsorships-hub",{props:{data:_.Bm}});_.QHt=_.F(function(D){var C=D.data;return _.A("yt-dual-avatar-view-model",{class:_.g$("ytDualAvatarViewModelHost",D.className),style:_.P0({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var X;return((X=C().badgeCutoutRadius)!=null?X:14)+"px"}})},_.A("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.A(_.BX,{data:function(){return C().startAvatar}},{avatarViewModel:_.Iu}),_.A(_.BX,{data:function(){return C().endAvatar}},{avatarViewModel:_.Iu})),_.A(_.BX,{data:function(){return C().badge}},
{contentPreviewImageViewModel:function(X){return _.A("div",{class:"ytDualAvatarViewModelBadge"},_.A(_.ZX,{data:X.data}))}}))},"gg");
_.QHt.idomCompat=!0;var bf6=_.F(function(D){var C=D.data;var X,c=!((X=_.iX().resolve(_.vK(_.Hc)))==null||!X());D=_.tw(function(){var k,u,Q=c?(k=C().header)==null?void 0:k.backgroundColorDarkMode:(u=C().header)==null?void 0:u.backgroundColorLightMode;if(Q!==void 0)return _.e_(Q)},void 0,"TDdh7d");
X=_.tw(function(){var k,u;return c?(k=C().header)==null?void 0:k.backgroundImagePart1Dark:(u=C().header)==null?void 0:u.backgroundImagePart1Light},void 0,"X0peMe");
var W=_.tw(function(){var k,u;return c?(k=C().header)==null?void 0:k.backgroundImagePart2Dark:(u=C().header)==null?void 0:u.backgroundImagePart2Light},void 0,"an0Hzd"),p=_.tw(function(){return _.q6("HTML_DIR")==="rtl"},void 0,"BltEgb"),g=_.aX("yt-sponsorships-perks-list"),a=!1,O=function(){var k=g.value;
if(k&&!a){var u,Q=(u=k.parentElement)==null?void 0:u.parentElement;if(Q)for(k=k.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),u=0;u<k.length;++u){var B=k[u];if(B instanceof HTMLElement){Q.scrollTo({top:B.offsetTop+B.clientHeight/2-Q.clientHeight/2,behavior:"smooth"});a=!0;break}}}};
_.JU(function(){var k=g.value;if(k&&window.ResizeObserver){var u=new ResizeObserver(O);u.observe(k);_.z3(function(){u.disconnect()})}});
var P={};return _.A("yt-sponsorships-perks-list",{el:g,class:_.g$("ytdSponsorshipsPerksListHost",(P.ytdSponsorshipsPerksListHorizontalPadding=function(){return C().horizontalPaddingEnabled},P))},_.A("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.A("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.P0({"background-color":D})},_.A("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.A(_.v,{cond:X,then:function(k){var u={};return _.A("div",{class:_.g$((u.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=c,u.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!c,u.ytdSponsorshipsPerksListFlipped=p,u))},_.A(_.M_,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.A("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.A(_.v,{cond:W,
then:function(k){var u={};return _.A("div",{class:_.g$((u.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=c,u.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!c,u.ytdSponsorshipsPerksListFlipped=p,u))},_.A(_.M_,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.A("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.A(_.BX,{data:function(){var k;
return(k=C().header)==null?void 0:k.dualAvatar}},{dualAvatarViewModel:_.QHt})))),_.A("div",{class:"ytdSponsorshipsPerksListBody"},_.A("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return C().title}),_.A(_.v,{cond:function(){return C().perks},
then:function(k){return _.A(_.Zh,{each:k},function(u,Q){var B={};return _.A("div",{class:_.g$("ytdSponsorshipsPerksListPerkContainer",(B.ytdSponsorshipsPerksListSelectedPerk=function(){var K=Q(),L=C().selectedPerkIndex;return K===L},B))},_.A(_.v,{cond:function(){return Q()>0},
then:function(){return _.A("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.A("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.A(_.v,{cond:function(){return u.icon},
then:function(K){return _.A(_.$_,{icon:function(){return K().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.A("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.A("div",{class:"ytdSponsorshipsPerksListPerkTitle"},u.title),_.A("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.A(_.QG,{text:u.description})),_.A(_.v,{cond:function(){return u.instructions},
then:function(){var K,L;return _.A("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.A("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(K=u.instructions)==null?void 0:K.title),_.A("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.A(_.QG,{text:(L=u.instructions)==null?void 0:L.text})))}}))),_.A(_.v,{cond:function(){return u.emoji},
then:function(K){return _.A("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.A(_.Zh,{each:function(){return K()}},function(L){return _.A(_.M_,{data:L,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.A(BjN,{data:u}))})}})))},"hg");
bf6.idomCompat=!0;var BjN=_.F(function(D){var C=D.data;var X=function(g,a){return g===a},c=function(){var g=C();
g=_.r(g==null?void 0:g.badgesShelf,Wy5);return g!==void 0&&g!==null?g:{previousButton:{},nextButton:{}}},W=_.IX("div"),p=function(){var g=W.value;
if(g){var a=g.parentElement;if(a){g=g.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var O=0;O<g.length;++O){var P=g[O];if(P instanceof HTMLElement){a.scrollTo({left:P.offsetLeft+P.clientWidth/2-a.clientWidth/2,behavior:"instant"});break}}}}};
_.JU(function(){var g=W.value;if(g){var a=new ResizeObserver(p);a.observe(g);_.z3(function(){a.disconnect()})}});
return _.A("div",null,_.A(_.v,{cond:function(){return C().badges},
then:function(g){return _.A(ifw,{data:c},_.A("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:W},_.A(_.Zh,{each:function(){return g()}},function(a,O){var P={},k={},u={};
return _.A("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.A(_.v,{cond:function(){return O()>0},
then:function(){return _.A("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.A("div",{class:_.g$("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(P.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return X(O(),C().currentBadgeIndex)},P.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!X(O(),C().currentBadgeIndex)},P))},_.A("div",{class:_.g$("ytdSponsorshipsPerksListLoyaltyBadge",(k.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return X(O(),
C().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!X(O(),C().currentBadgeIndex)},k))},_.A(_.v,{cond:function(){return a.image},
then:function(Q){var B={};return _.A("div",{class:_.g$((B.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return X(O(),C().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!X(O(),C().currentBadgeIndex)},B))},_.A(_.M_,{data:Q,
alt:""}))}})),_.A("div",{class:_.g$("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(u.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return X(O(),C().currentBadgeIndex)},u))},a.title)))})))}}))},"ig");
BjN.idomCompat=!0;_.CI(bf6,"yt-sponsorships-perks-list",{props:{data:_.Bm}});_.CI(_.F(function(D){return _.A("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.A(_.v,{cond:function(){return D.data().image},
then:function(C){return _.A(_.M_,{className:"ytwFantasyEmptyStateViewModelImage",data:C,ariaHidden:!0,alt:""})}}),_.A(_.QG,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return D.data().title}}),_.A(_.QG,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return D.data().subtitle}}),_.A(_.BX,{data:function(){return D.data().primaryButton}},{buttonViewModel:function(C){return _.A(_.Ze,{data:C.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"jg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Bm}});var r26;var Kzw=_.F(function(D){var C=D.data;var X=D.uniqueId;var c=D.overrides;D=_.tw(function(){var W,p=((W=C().timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:X(),timings:p,experimentEnabled:p.length>0,enabled:p.length>0}},void 0,"hiuXI");
return _.A("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.A(cBf,{settings:D},_.A(_.BX,{data:function(){return C().buttonRenderer}},{buttonRenderer:function(W){return _.A(_.mb,{data:W.data,
buttonOverrides:c})}})))},"kg");
Kzw.idomCompat=!0;_.CI(Kzw,"timed-animation-button-renderer",{props:{data:_.Bm,uniqueId:_.Bm,overrides:_.Bm}});var Fi=function(){var D=_.w.apply(this,arguments)||this;D.hideJoinButtonBeforeSubscribed=_.b("hide_join_button_before_subscribed");D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return D};
_.h(Fi,_.w);_.S=Fi.prototype;_.S.hasShowDialogCommand=function(D){return!!_.r(D,Oux)};
_.S.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"}}}};
_.S.updateJoinButtonOverrides=function(){var D,C;(D=_.SY(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(C=D.polymerController)==null||C.set("overrides",this.joinButtonOverrides);if(D=_.SY(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))D.overrides=this.joinButtonOverrides};
_.S.handleButtonRefreshAction=function(D){if(D=_.r(D,y7c))this.set("data.membershipButton",D.membershipButton),this.notifyPath("data.membershipButton")};
_.S.onYtServiceRequestError=function(D){_.JG(this.hostElement,D.detail.error.message)};
_.S.onKeydown=function(D){if(D.key==="Enter"){var C;(C=this.data)!=null&&C.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.S.handleUnsubscribeAction=function(){var D,C,X;((D=this.data)==null?void 0:(C=D.membershipButton)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.style)==="STYLE_PRIMARY"&&_.SY(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.$a.Object.defineProperties(Fi.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.subscriptionStateEntity)==null||!D.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var D,C=(D=this.data)==null?void 0:D.membershipButton,X;D=(C==null?void 0:C.buttonRenderer)||_.r(C==null?void 0:(X=C.timedAnimationButtonRenderer)==null?void 0:X.buttonRenderer,_.AF);return(D==null?void 0:D.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(D==null?void 0:D.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(D==null?void 0:D.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.attributedTitle)}}});
Fi.prototype.onYtServiceRequestError=Fi.prototype.onYtServiceRequestError;Fi.prototype.updateJoinButtonOverrides=Fi.prototype.updateJoinButtonOverrides;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Fi.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],Fi.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Fi.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Co),_.z("design:type",Object)],Fi.prototype,"ironButtonState",void 0);_.V([_.n(),_.z("design:type",Object)],Fi.prototype,"data",void 0);_.V([_.e("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fi.prototype,"hideJoin",null);
_.V([_.n(),_.z("design:type",String)],Fi.prototype,"subscribeKey",void 0);_.V([_.n({selectorArgs:["subscribeKey"],selector:c5o}),_.z("design:type",Object)],Fi.prototype,"subscriptionStateEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Fi.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.V([_.e("subscriptionStateEntity"),_.n({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],Fi.prototype,"subscribed",null);
_.V([_.e("subscribed","data.membershipButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fi.prototype,"joinButtonOverrides",null);_.V([_.e("data.navigationEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fi.prototype,"channelNameTabIndex",null);_.V([_.e("data.navigationEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fi.prototype,"channelNameRole",null);
_.V([_.e("data.attributedTitle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Fi.prototype,"hasAttributedTitle",null);_.V([_.vr("joinButtonOverrides"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fi.prototype,"updateJoinButtonOverrides",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Fi.prototype,"onYtServiceRequestError",null);
_.V([_.yj({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Fi);
var hv3=_.o3()(Fi,"ytd-video-owner-renderer",function(){if(r26===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);r26=D}D=r26;return D},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.CI(_.F(function(D){var C=D.data;var X;D=_.U(_.Li(!((X=_.KH("yt-mini-app-is-theater-mode-enabled"))==null||!X),void 0,"i2pjVd"));var c=D.next().value,W=D.next().value;X=_.U(_.Li(!1,void 0,"ga7V5c"));var p=X.next().value,g=X.next().value;_.JU(function(){var P=_.Kb(window,rlg,function(){g(h7g())});
_.z3(function(){Bc(P)})});
var a;X=(a=_.iX().resolve(_.vK(qmU)))!=null?a:function(){return _.A("div",null)};
_.g0("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){W(!0);_.rL("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.g0("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){W(!1);_.rL("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
a={};D={};var O={};return _.A("mini-app-play-page-renderer",{class:_.g$("miniAppPlayPageRendererHost",(a.miniAppPlayPageRendererHostDetailsView=function(){return!c()},a))},_.A("div",{class:_.g$("miniAppPlayPageRendererGameContainer",(D.miniAppPlayPageRendererGameContainerDetailsView=function(){return!c()},D))},_.A(_.BX,{data:function(){return C().containerViewModel}},{miniAppContainerViewModel:$JP}),_.A(_.v,{cond:function(){return C().channel&&C().subscribeButton},
then:function(){var P={};return _.A("div",{class:_.g$("miniAppPlayPageRendererChannelContainer",(P.miniAppPlayPageRendererHideVisibility=function(){return p()},P))},_.A(_.BX,{data:function(){return C().channel}},{videoOwnerRenderer:function(k){return _.A(hv3,{data:k.data})}}),_.A(_.BX,{data:function(){return C().subscribeButton}},{subscribeButtonViewModel:function(k){return _.A(_.I4,{data:k.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.A(_.v,{cond:function(){return!c()&&C().description},
then:function(){var P={};return _.A("div",{class:_.g$("miniAppPlayPageRendererMiniAppDescriptionWrapper",(P.miniAppPlayPageRendererHideVisibility=function(){return p()},P))},_.A("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return C().description}))}})),_.A("div",{class:_.g$("miniAppPlayPageRendererPlayNextContainer",(O.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!c()},O.miniAppPlayPageRendererHideVisibility=function(){return p()},O))},_.A(_.BX,{data:function(){return C().sectionList}},
{sectionListRenderer:X})))},"lg"),"mini-app-play-page-renderer",{props:{data:_.Bm}});var Zz=function(){var D=_.w.apply(this,arguments)||this;D.isSearch=!1;D.isConstrainedList=!1;D.hasChipsBar=!1;D.inReplyPanel=!1;D.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"}};D.monitorScroll=!0;D.SCROLL_ANIMATION_DURATION_MS=300;D.nextContinuation={continuationType:"sectionListContinuation"};return D};
_.h(Zz,_.w);_.S=Zz.prototype;
_.S.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(D){switch(D.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.b("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.b("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.S.created=function(){var D=this;this.JSC$17379_scrollAnimation=new _.mi(function(C){D.hostElement.scrollTop=C})};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.S.getItemsPath=function(){return"data.contents"};
_.S.replacePrimaryContent=function(D){this.set("data.contents",D)};
_.S.computeHasSortFilter=function(D){return!!D&&!!D.sortFilterSubMenuRenderer};
_.S.computeShouldScrollInPanel=function(D){var C;return!!(D==null?0:(C=D.scrollPaneStyle)==null?0:C.scrollable)};
_.S.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.gi(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.S.scrollToTop=function(){this.hostElement.scrollTop=0};
_.S.scrollToItemSection=function(D){if(D=this.getItemByIdentifier(D))D=this.getScrollPositionForItem(D),this.hostElement.scrollTop!==D&&this.JSC$17379_scrollAnimation.start(this.hostElement.scrollTop,D,this.SCROLL_ANIMATION_DURATION_MS)};
_.S.getItemByIdentifier=function(D){var C=this.contents.querySelectorAll("ytd-item-section-renderer");if(C&&C.length!==0){var X=Array.from(C).findIndex(function(c){return c.sectionIdentifier===D});
return C[X===-1?0:X]}};
_.S.getScrollPositionForItem=function(D){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===D)return 0;D=_.Jp(D).y+this.hostElement.scrollTop-_.Jp(this.hostElement).y;return Math.min(D,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.$a.Object.defineProperties(Zz.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.targetId)==="browse-feedFEclips"}}});
Zz.prototype.onScroll=Zz.prototype.onScroll;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],Zz.prototype,"ytLazyListBehavior",void 0);_.V([_.m(_.L3.YtNextContinuationBehavior),_.z("design:type",Object)],Zz.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.m(_.O1P),_.z("design:type",Object)],Zz.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],Zz.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Zz.prototype,"data",void 0);_.V([_.n({value:2}),_.z("design:type",Number)],Zz.prototype,"initialCount",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],Zz.prototype,"autoFill",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.z("design:type",Boolean)],Zz.prototype,"hasSortFilter",void 0);_.V([_.n({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.z("design:type",Boolean)],Zz.prototype,"hideBottomSeparator",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.z("design:type",Boolean)],Zz.prototype,"shouldScrollInPanel",void 0);
_.V([_.n(),_.z("design:type",Object)],Zz.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Zz.prototype,"isConstrainedList",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Zz.prototype,"responsiveSizing",void 0);_.V([_.n(),_.z("design:type",Object)],Zz.prototype,"hasChipsBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Zz.prototype,"pageSubtype",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zz.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zz.prototype,"liveChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Zz.prototype,"inReplyPanel",void 0);_.V([_.kn("#action-button"),_.z("design:type",HTMLElement)],Zz.prototype,"actionButton",void 0);_.V([_.n(),_.z("design:type",Object)],Zz.prototype,"scrollUpButtonData",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zz.prototype,"engagementPanelDropdown",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Zz.prototype,"engagementPanelDialog",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Zz.prototype,"isClipList",null);_.V([_.kn("#contents"),_.z("design:type",HTMLElement)],Zz.prototype,"monitorScrollElement",void 0);_.V([_.kn("#contents"),_.z("design:type",HTMLElement)],Zz.prototype,"contents",void 0);
_.V([_.$n("scroll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zz.prototype,"onScroll",null);_.V([_.yj({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Zz);
var xJk=_.o3()(Zz,"ytd-section-list-renderer",function(){if(MZG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);MZG=D}D=MZG;return D},{mode:1});var LzY;var sHt;var mJk;var ev1;var G8=function(){return _.w.apply(this,arguments)||this};
_.h(G8,_.w);G8.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
G8.prototype.onLikeButtonClick=function(D){D.stopPropagation();D.preventDefault()};
_.$a.Object.defineProperties(G8.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],G8.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],G8.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],G8.prototype,"ytRendererStamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],G8.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.likeStatusEntityKey"],selector:_.y6}),_.z("design:type",Object)],G8.prototype,"likeStatusEntity",void 0);_.V([_.e("data","likeStatusEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],G8.prototype,"likeButtonRenderer",null);_.V([_.yj({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],G8);
_.G(G8,"ytd-slim-metadata-toggle-button-renderer",function(){if(ev1!==void 0)return ev1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return ev1=D},{mode:1});var V1=function(){var D=_.w.apply(this,arguments)||this;D.showEqualizer=_.b("web_enable_playlist_video_lockup_equalizer");D.watchColorUpdate=_.b("kevlar_watch_color_update");D.actionMap={};return D};
_.h(V1,_.w);_.S=V1.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.S.computeEditableClass=function(D){return D&&D.menu?"editable":""};
_.S.computeSelected=function(D){return!(D==null||!D.selected)};
_.S.computeUseColorPalette=function(D){return!!((D==null?0:D.lightColorPalette)&&(D==null?0:D.darkColorPalette))};
_.S.computeLargerPlaylistThumbs=function(D,C){return _.b("web_enable_playlist_bigger_thumbnails")&&!C};
_.S.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.S.onYtServiceRequestSent=function(D,C){C.endpoint&&this.isHideEnclosingAction(C.endpoint)&&!this.selected&&HE5(_.bP(),this.data.videoId)};
_.S.isHideEnclosingAction=function(D){var C=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",D);D=this.get("likeEndpoint.status",D)==="INDIFFERENT";return C||D};
_.S.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.S.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.$a.Object.defineProperties(V1.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.b("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.withinMiniplayer&&((D=this.data)==null?0:D.actionButtons))}}});
V1.prototype.onYtServiceRequestSent=V1.prototype.onYtServiceRequestSent;V1.prototype.canReorderChanged=V1.prototype.canReorderChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],V1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.B9),_.z("design:type",Object)],V1.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],V1.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"withinMiniplayer",void 0);_.V([_.n({computed:"computeSelected(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"selected",void 0);
_.V([_.n({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"useColorPalette",void 0);_.V([_.n({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"largerPlaylistThumbs",void 0);_.V([_.n(),_.z("design:type",Object)],V1.prototype,"showEqualizer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"canReorder",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"touchPersistentDragHandle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],V1.prototype,"handleIsHovered",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],V1.prototype,"watchColorUpdate",void 0);_.V([_.n(),_.z("design:type",String),_.z("design:paramtypes",[])],V1.prototype,"reorderIcon",null);
_.V([_.n(),_.z("design:type",String),_.z("design:paramtypes",[])],V1.prototype,"playIcon",null);_.V([_.n({reflectToAttribute:!0}),_.e("withinMiniplayer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],V1.prototype,"minimizePipBreakages",null);_.V([_.e("largerPlaylistThumbs"),_.z("design:type",Number),_.z("design:paramtypes",[])],V1.prototype,"thumbnailWidth",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],V1.prototype,"showActionButtons",null);_.V([_.bH("canReorder"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V1.prototype,"canReorderChanged",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],V1.prototype,"onYtServiceRequestSent",null);
_.V([_.yj({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],V1);
_.G(V1,"ytd-playlist-panel-video-renderer",function(){if(mJk!==void 0)return mJk;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mJk=D},{mode:2});var T8=function(){return _.w.apply(this,arguments)||this};
_.h(T8,_.w);T8.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],T8.prototype,"data",void 0);_.V([_.yj({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],T8);
_.G(T8,"ytd-playlist-panel-supported-items",function(){if(sHt!==void 0)return sHt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return sHt=
D},{mode:1});LYg=!0;OL5("\\P{N}");var gpm;var EN6=_.I7("END_OF_PLAYLIST",void 0,"End of playlist"),tDo=_.I7("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),HZ=function(){var D=_.w.apply(this,arguments)||this;D.minimizePipBreakages=_.b("web_pip_minimize_breakages");D.hideHeaderText=!1;D.useColorPalette=!1;D.collapsed=!1;D.collapsedPreServerOverride="not_tracked";D.isHovered=!1;D.expandLabel=_.I7("MINIPLAYER_EXPAND_LABEL");D.collapseLabel=_.I7("MINIPLAYER_COLLAPSE_LABEL");D.isFloating=!1;D.metaPanel=
!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};D.currentIndex=void 0;return D};
_.h(HZ,_.w);_.S=HZ.prototype;
_.S.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"}}}};
_.S.created=function(){var D=this;this.scrollThrottle=new _.Al(this.onThrottledScroll,1E3,this);this.JSC$17401_ytReorderableController=new _.$vk(56,function(C){D.handleDrop(C)})};
_.S.onMouseEnter=function(){this.isHovered=!0};
_.S.onMouseLeave=function(){this.isHovered=!1};
_.S.computeOverflowMenuData=function(D){return D&&D.menu?D.menu:null};
_.S.computeCollapsible=function(D){return!D};
_.S.computeHasPlaylistButtons=function(D){return!(!D||!D.playlistButtons)};
_.S.computeHasSeparateSaveButton=function(D){return!(!D||!D.saveButton)};
_.S.computeHasToolbarButton=function(D,C){return!(!D||!(C||D.saveButton||D.menu))};
_.S.computePlaylistType=function(D){if(D&&D.playlistId)return D.playlistId.substring(0,4)};
_.S.computeCanReorder=function(D){return D?D.playlistId&&D.playlistId.startsWith("TLPQ")?!0:!!D.isEditable&&!D.isInfinite:!1};
_.S.attached=function(){var D=this;try{_.iX().resolve(_.iP).setPlaylistComponent(this.hostElement)}catch(C){if(_.b("kevlar_park_on_playlist_token_killswitch"))throw C;_.uP().parkOrScheduleJob(function(){_.iX().resolve(_.iP).setPlaylistComponent(D.hostElement)},2,"ci")}_.dl(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.S.detached=function(){_.RB(this.hostElement);_.fu(this.JSC$17401_ytReorderableController)};
_.S.computeTrailingIcon=function(D,C,X){return X?C?"yt-icons:collapse":"yt-icons:close":C?"yt-icons:expand":_.b("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.S.computeIndexMessage=function(D,C){return OxJ(D+1)+" / "+OxJ(C)};
_.S.onRenderStamperFinished=function(){if(this.scrollForStampDom){var D=!0;this.isHovered&&(D=!1);if(this.collapsed||this.hidden)D=!1;D&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.S.collapseChanged=function(){var D=this;this.collapsed||(_.$w(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.S.hiddenChanged=function(){var D=this;this.hidden||_.$w(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()})};
_.S.setupReordering=function(){var D=_.SY(this.hostElement).querySelector("#items");Jzq?_.v2q(this.JSC$17401_ytReorderableController,D,D,"playlist-drag-handle"):_.v2q(this.JSC$17401_ytReorderableController,D,D)};
_.S.scrollToCurrentVideo=function(){var D=this;_.qX.addJob(function(){var C=_.SY(D.hostElement).querySelector("#items");if(C){C.style.setProperty("padding-bottom","");var X=_.SY(D.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(X){C=X.parentElement||_.wd(document);var c=C||_.wd(document);var W=_.Jp(X),p=_.Jp(c),g=_.fI5(c);if(c==_.wd(document)){var a=W.x-c.scrollLeft;W=W.y-c.scrollTop}else a=W.x-p.x-g.left,W=W.y-p.y-g.top;X=zeb(X);p=c.clientHeight-
X.height;g=c.scrollLeft;var O=c.scrollTop;g+=a-(c.clientWidth-X.width)/2;c=new _.VI(g,O+(W-p/2));C.scrollLeft=c.x;C.scrollTop=c.y}}},8)};
_.S.dataChanged=function(){var D=this;_.fu(this.JSC$17401_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.A0(this,function(){_.Zo(D.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty();D.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.S.onFullBleedPlayerChanged=function(){_.b("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.S.onFullscreenChanged=function(){_.b("web_watch_imax_theater_mode")||_.b("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.S.updateNowPlayingOverlay=function(){_.b("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.S.onPlaylistLockupNowPlaying=function(D,C){C&&(this.activeNowPlayingRenderer=C);this.updateNowPlayingOverlay()};
_.S.onScroll=function(){this.scrollThrottle.fire()};
_.S.onThrottledScroll=function(){var D=this;_.Zo(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty()})};
_.S.onToggleExpanded=function(D){!this.collapsible||D&&(_.qz(D).tagName==="A"||_.d$(_.Mz(D),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.S.setCollapsed=function(D){this.collapsible&&(this.collapsed=D,_.Ct(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.S.handleCollapsedFromData=function(D){if(D){var C=D.playlistPanelCollapseState;C==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||C==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),C=C==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==C&&this.setCollapsed(C)):this.currentPlaylistId!==D.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(C=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==C&&this.setCollapsed(C),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=D.playlistId}};
_.S.handleDrop=function(D){var C=D.currDragItem;D=C.data.playlistSetVideoId;var X=_.w5(C.parentNode.childNodes,C),c=void 0;X>0&&(c=C.parentNode.childNodes[X-1].data.playlistSetVideoId);C=_.bP();if(C.responsePlaylistData&&C.responsePlaylistData.contents){var W=fQd(D,C.responsePlaylistData);C.responsePlaylistData=(0,_.ZI.unsafeClone)(C.responsePlaylistData);Fr3(C.responsePlaylistData.contents,W,X);C.queueProxy?uRx(C.queueProxy,W,X,D,c):C.playlistProxy&&uRx(C.playlistProxy,W,X,D,c);_.rR(C,_.K_(C,C.response?
C.response.autoplayRenderer:void 0))}};
_.S.handleDarkModeChange=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.S.colorPaletteChanged=function(){var D,C=((D=this.data)==null?void 0:D.contents)||[],X;D=_.U(C);for(C=D.next();!C.done;C=D.next()){C=C.value;var c=void 0;if((c=C.playlistPanelVideoRenderer)==null?0:c.selected){D=C.playlistPanelVideoRenderer;c=C=void 0;(X=this.isDarkTheme?(C=D)==null?void 0:C.darkColorPalette:(c=D)==null?void 0:c.lightColorPalette)&&_.x_(this.hostElement,X);break}}this.useColorPalette=!!X};
_.$a.Object.defineProperties(HZ.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.moveThreeDotsMenuToMainHeader)&&_.b("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var D=_.iX().resolve(_.vK(_.iP)),C;if(((C=this.data)==null?0:C.contents)&&(D==null?0:D.hasAutoplayData())){var X;if(((X=this.playlistLoopStateEntity)==null?void 0:X.state)==="PLAYLIST_LOOP_STATE_ONE"){if(D=this.data.currentIndex,D!==void 0){var c,W;var p=(c=this.data.contents[D])==null?void 0:(W=c.playlistPanelVideoRenderer)==null?void 0:W.title}}else{var g,a=(g=_.r(D.getAutoplayEndpoint(),_.TC))==null?void 0:g.videoId,O,P;p=(O=this.data.contents.find(function(k){var u;
return((u=k.playlistPanelVideoRenderer)==null?void 0:u.videoId)===a}))==null?void 0:(P=O.playlistPanelVideoRenderer)==null?void 0:P.title}return p}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.nextVideoLabel?this.nextVideoTitle?_.Mh(this.data.nextVideoLabel)+":":EN6:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.b("web_mix_long_byline_from_data"))return _.jV(tDo);var C;return(C=this.data)==null?void 0:C.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.playlistButtons)==null?void 0:(X=C.menuRenderer)==null?void 0:X.topLevelButtons;if(c)for(D=_.U(c),C=D.next();!C.done;C=D.next())if(C=C.value,C.playlistLoopButtonRenderer)return C.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.collapsed&&((D=this.data)==null?0:D.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
HZ.prototype.colorPaletteChanged=HZ.prototype.colorPaletteChanged;HZ.prototype.onPlaylistLockupNowPlaying=HZ.prototype.onPlaylistLockupNowPlaying;HZ.prototype.updateNowPlayingOverlay=HZ.prototype.updateNowPlayingOverlay;HZ.prototype.onFullscreenChanged=HZ.prototype.onFullscreenChanged;HZ.prototype.onFullBleedPlayerChanged=HZ.prototype.onFullBleedPlayerChanged;HZ.prototype.dataChanged=HZ.prototype.dataChanged;HZ.prototype.hiddenChanged=HZ.prototype.hiddenChanged;HZ.prototype.collapseChanged=HZ.prototype.collapseChanged;
HZ.prototype.onRenderStamperFinished=HZ.prototype.onRenderStamperFinished;HZ.prototype.onMouseLeave=HZ.prototype.onMouseLeave;HZ.prototype.onMouseEnter=HZ.prototype.onMouseEnter;_.V([_.m(_.lR),_.z("design:type",Object)],HZ.prototype,"ironResizableBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(VHb.YtPlaylistPanelBehavior),_.z("design:type",Object)],HZ.prototype,"ytPlaylistPanelBehavior",void 0);_.V([_.m(_.xZ.YtTaskEmitterBehavior),_.z("design:type",Object)],HZ.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],HZ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],HZ.prototype,"ytdReduxBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],HZ.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],HZ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],HZ.prototype,"autoplayData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],HZ.prototype,"withinMiniplayer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HZ.prototype,"minimizePipBreakages",void 0);
_.V([_.n({computed:"setMenuData_(data)"}),_.z("design:type",Object)],HZ.prototype,"menuRendererData",void 0);_.V([_.n({computed:"computeOverflowMenuData(data)"}),_.z("design:type",Object)],HZ.prototype,"overflowMenuDataTopRow",void 0);_.V([_.n({computed:"computeOverflowMenuData(data)"}),_.z("design:type",Object)],HZ.prototype,"overflowMenuData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HZ.prototype,"hideHeaderText",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HZ.prototype,"useColorPalette",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.z("design:type",Boolean)],HZ.prototype,"collapsible",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HZ.prototype,"collapsed",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],HZ.prototype,"hidden",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.z("design:type",Boolean)],HZ.prototype,"hasPlaylistButtons",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.z("design:type",Boolean)],HZ.prototype,"hasSeparateSaveButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.z("design:type",Boolean)],HZ.prototype,"hasToolbar",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.z("design:type",String)],HZ.prototype,"playlistType",void 0);_.V([_.n(),_.z("design:type",Object)],HZ.prototype,"isHovered",void 0);_.V([_.n({selectorArgs:["playlistLoopStateEntityKey"],selector:_.ck.playlistLoopStateEntitySelector}),_.z("design:type",Object)],HZ.prototype,"playlistLoopStateEntity",void 0);_.V([_.n({computed:"computeCanReorder(data)"}),_.z("design:type",Boolean)],HZ.prototype,"canReorder",void 0);
_.V([_.n(),_.z("design:type",Object)],HZ.prototype,"expandLabel",void 0);_.V([_.n(),_.z("design:type",Object)],HZ.prototype,"collapseLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HZ.prototype,"isFloating",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HZ.prototype,"metaPanel",void 0);_.V([_.n({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.z("design:type",String)],HZ.prototype,"trailingIcon",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],HZ.prototype,"isDarkTheme",void 0);_.V([_.n({selector:_.E1}),_.z("design:type",Boolean)],HZ.prototype,"miniplayerIsActive",void 0);_.V([_.n({selector:function(D){return D.watch.playerState}}),
_.z("design:type",Number)],HZ.prototype,"playerState",void 0);_.V([_.n({selector:_.Nn}),_.z("design:type",Boolean)],HZ.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.tl}),_.z("design:type",Boolean)],HZ.prototype,"isTheaterMode",void 0);_.V([_.n(),_.z("design:type",Object)],HZ.prototype,"activeNowPlayingRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HZ.prototype,"moveThreeDotMenuToTopRow",null);
_.V([_.e("data","autoplayData","playlistLoopStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],HZ.prototype,"nextVideoTitle",null);_.V([_.e("data","nextVideoTitle"),_.z("design:type",String),_.z("design:paramtypes",[])],HZ.prototype,"nextVideoLabel",null);_.V([_.e("collapsed"),_.z("design:type",String),_.z("design:paramtypes",[])],HZ.prototype,"buttonAriaLabel",null);
_.V([_.e("data","playlistId","longBylineText"),_.z("design:type",Object),_.z("design:paramtypes",[])],HZ.prototype,"mixLongByLine",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],HZ.prototype,"playlistLoopStateEntityKey",null);_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"onMouseEnter",null);
_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"onMouseLeave",null);_.V([_.n({reflectToAttribute:!0}),_.e("data","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HZ.prototype,"showNextVideoHeader",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"onRenderStamperFinished",null);
_.V([_.vr("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"collapseChanged",null);_.V([_.vr("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"hiddenChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"dataChanged",null);
_.V([_.e("isTheaterMode","isFullscreen"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HZ.prototype,"isFullBleedPlayer",null);_.V([_.vr("isTheaterMode","isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"onFullBleedPlayerChanged",null);_.V([_.vr("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"onFullscreenChanged",null);
_.V([_.vr("playerState","miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"updateNowPlayingOverlay",null);_.V([_.$n("yt-playlist-lockup-now-playing-active"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],HZ.prototype,"onPlaylistLockupNowPlaying",null);
_.V([_.vr("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"colorPaletteChanged",null);_.V([_.yj({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],HZ);
_.Nj1=_.o3()(HZ,"ytd-playlist-panel-renderer",function(){if(LzY===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);LzY=D}D=LzY;return D},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.YBY={};
_.YBY.YtConditionalRendererBehavior=[_.f.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(D,C){var X=this,c,W;return _.I(function(p){switch(p.nextAddress){case 1:if(!C)return X.hidden=!0,X.showSpinner=!1,p.return();if((c=D)==null?0:(W=c.visibilityCondition)==null?0:W.mode)switch(D.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return p.jumpTo(5);default:return p.jumpTo(6)}X.showSpinner=
!1;X.hidden=!0;return p.yield(X.shouldShow_(D),4);case 4:X.hidden=!p.yieldResult;p.jumpTo(0);break;case 5:return p.yield(X.shouldShow_(D),8);case 8:X.showSpinner=p.yieldResult;X.hidden=!1;p.jumpTo(0);break;case 6:return X.showSpinner=!1,p.yield(X.shouldShow_(D),9);case 9:X.hidden=!p.yieldResult,_.t_(p)}})},
shouldShow_:function(D){return D&&D.supportedDatas&&D.supportedDatas.rendererVisibilityConditionData&&D.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(D.supportedDatas.rendererVisibilityConditionData.showIf):D&&D.visibilityCondition&&D.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(D.visibilityCondition.showIf):D&&D.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(D.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(D){switch(D){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(D){switch(D){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var D=_.DS(this.hostElement,"yt-get-mdx-status");return D.length==1&&D[0].connected},
isLocationPermissionGranted_:function(){var D;return _.I(function(C){return C.nextAddress==1?navigator.permissions?C.yield(navigator.permissions.query({name:"geolocation"}),3):C.jumpTo(2):C.nextAddress!=2?(D=C.yieldResult,C.return(Promise.resolve(D.state==="granted"))):C.return(Promise.resolve(!1))})}}];var y2k=V9W("yt-icon",{callbackProps:["onKeydown"]}),nNt=_.b("kevlar_use_wil_icons")?_.F(function(D){var C=D.icon;var X=D.active;var c=D.className;var W=D.style;var p=D.title;var g=D.size;var a=D.dataSelected;var O=D.dataDisabled;var P=D.role;var k=D.themeOverride;var u=D.animateIcon;var Q=D.ariaHidden;var B=D.ariaExpanded;var K=D.ariaLabel;var L=D.tabindex;var t=D.id;var Y=D.iconFilter;var y=D.gradientColor;var J=D.onKeydown;var T=function(){var R=C==null?void 0:C(),ph=null,Om=void 0;R&&(R=icx(R),
R=iso(R),R.length&&(ph=R[1],Om=R[0]));return{iconName:ph,iconSetName:Om}},H=function(){return kq4(T().iconName,X==null?void 0:X(),void 0,g==null?void 0:g(),T().iconSetName,_.iX().resolve(_.a3))},q=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:Y==null?void 0:Y(),iconColor:y==null?void 0:y()}};
return _.A(_.v,{cond:u,then:function(){return _.A(y2k,{icon:C,active:X,className:c,style:W,title:p,dataSelected:a,dataDisabled:O,role:P,themeOverride:k,ariaHidden:Q,ariaExpanded:B,ariaLabel:K,tabindex:L,id:t,iconFilter:Y,gradientColor:y,onKeydown:J})},
else:function(){return _.A(_.v,{cond:H,then:function(R){return _.A("span",{class:_.g$("ytIconWrapperHost",c),role:P,"aria-label":K,"aria-hidden":Q,tabindex:function(){return isNaN(Number(L==null?void 0:L()))?void 0:Number(L==null?void 0:L())},
id:t,style:W,title:p,"on:keydown":_.I_(function(ph){return void(J==null?void 0:J(ph))})},_.A(_.hl,{data:R,
options:q}))}})}})},"mg"):y2k;var wvt=function(D){var C=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];B2F();_.$h("ytglobal.ytUtilActivityCallback_",function(){_.Ct(D,"yt-user-activity")});
new vL(function(){return C.JSC$17418_onMouseMove});
document.addEventListener("scroll",function(){return C.onScroll});
window.addEventListener("resize",function(){return C.onResize})},Fz3=function(D,C,X){C in D.eventJobIds||(X=_.s3().addLowPriorityJob(function(){_.iw();
delete D.eventJobIds[C]},X),D.eventJobIds[C]=X)};
wvt.prototype.onScroll=function(D){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):D.target===document&&Fz3(this,"scroll",200)};
wvt.prototype.onResize=function(){Fz3(this,"resize",200)};
wvt.prototype.JSC$17418_onMouseMove=function(){Fz3(this,"mousemove",100)};
_.ev=function(D){D.scrollEventsToIgnore+=1;D.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){D.scrollEventsToIgnore--},500))};var ZfX=function(D){this.element=D;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
ZfX.prototype.showFeedbackDialog=function(D,C,X,c){var W=Gdp();if(!W)return!1;var p=rkF();p.productId=W;C&&(p.flow="submit",p.report={description:C});X&&(Gdp()==="59"?p.callback=_.lq(function(){_.zu("userFeedbackEvent",{});X()}):p.callback=_.lq(X));
p.bucket=c||_.q6("GOOGLE_FEEDBACK_BUCKET","Other");VDo(p);D=Tjw(this,"GFEEDBACK",D);try{_.r7e(p,D)}catch(g){return _.Re(g),!1}return!0};
ZfX.prototype.showHelpDialog=function(D,C,X){var c=this,W=Gdp();if(!W)return!1;var p={helpCenterPath:"/youtube",productData:Tjw(this,"GUIDED_HELP",X)};VDo(p);var g=rkF();g.context=D||p.productData.context||"default";g.defaultHelpArticleId=C;g.enableSendFeedback=!0;(_.Df("gapi.load")||function(a,O){return O()})("client",function(){try{var a=xXq(W,p);
if(_.b("web_always_load_chat_support")&&!c.chatSupportLoaded)try{a.JSC$10140_loadChatSupport(g),c.chatSupportLoaded=!0}catch(O){}a.startHelp(g)}catch(O){_.Re(O)}})};
var Gdp=function(){var D=_.q6("GOOGLE_FEEDBACK_PRODUCT_ID");D||_.Re(Error("gi"));return D},VDo=function(D){D&&(D.locale=_.b("kevlar_help_use_locale")?_.q6("INNERTUBE_CONTEXT_HL","en"):_.q6("HTML_LANG","en"))},Tjw=function(D,C,X){var c=D.productData;
delete c.origin;c.device=_.kj();var W;a:{if(W=document.createElement("canvas")){var p=W.getContext("experimental-webgl",{stencil:!0});if(p){var g=p.getExtension("WEBGL_debug_renderer_info");if(g){W=p.getParameter(g.UNMASKED_RENDERER_WEBGL);break a}}if(p=W.getContext("webgl")){W=p.getParameter(p.RENDERER);break a}}W=null}c.gpu=W;c.isSDC=!!_.q6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(W=_.q6("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.ZI.extend(c,W);_.BmF(C,c);_.bxr(c);(D=_.Ct(D.element,"yt-get-autonav-pause-debug-state"))&&
D.length&&(c.autonav_pause_state=D[0]);D=_.eo();c.browser_resolution=D.width+"\u00d7"+D.height+"@"+(window.devicePixelRatio||1)+"x";X&&_.ZI.extend(c,X);return c};
ZfX.prototype.resetProductData=function(){this.productData={}};var Hf6=function(D){this.feedbackManager=new ZfX(D)};
Hf6.prototype.showFeedbackDialog=function(D,C,X,c){return this.feedbackManager.showFeedbackDialog(D,C,X,c)};
Hf6.prototype.showHelpDialog=function(D,C,X){return this.feedbackManager.showHelpDialog(D,C,X)};var J2X=function(){this.baseUrl="";this.aTag=document.createElement("a")},fmb=function(D,C,X){X=X===void 0?{}:X;
X.pbj||(X.pbj=1);X=_.ouj(C,X);D.baseUrl&&X&&!_.IQ(X)[1]&&!_.OY(X)&&(C=D.baseUrl,SZ(C,"/")&&(C=C.slice(0,-1)),_.Wo(X,"/")&&(X=X.slice(1)),X=C+"/"+X);ff(D.aTag,_.V$(X||""));return D.aTag.href};
J2X.prototype.fetchData=function(D){return _.$Qt(D)};
J2X.prototype.postData=function(D,C){var X={method:"POST"};if(C){for(var c=_.U(Object.keys(C)),W=c.next();!W.done;W=c.next()){W=W.value;var p=C[W];_.MR(p)&&(C[W]=JSON.stringify(p))}X.postParams=C}return _.$Qt(D,X)};
_.dbJ=function(D,C,X,c,W){D=fmb(D,C,X);if(!D)throw c=Error("hi"),Object.assign(c,{params:C}),c;return _.$Qt(D,W,c)};
J2X.prototype.requestDataForServiceEndpoint=function(D,C){if(_.r(D,_.hCt))return this.fetchData("/getAccountSwitcherEndpoint");C=C||{};var X=_.r(D,Nyk);X?C.se=X.base64EncodedServiceEndpoint:C.sej=JSON.stringify(D);(X=_.LN())&&_.b("enable_service_ajax_csn")&&(C.csn=X);C.theme=_.FU();_.r(D,rtZ)&&_.q6("DELEGATION_CONTEXT")&&(C.delegation_context=JSON.stringify(_.q6("DELEGATION_CONTEXT")));X=null;for(var c in D)if(SZ(c,"Endpoint")||SZ(c,"Command")){X=c;break}if(!X){var W=Error("ii");Object.assign(W,{params:D});
_.CKZ(W,"WARNING");return new _.mM(function(g,a){a(W)})}c={name:X};
var p;(X=(p=_.r(D,_.Up))==null?void 0:p.signal)&&(c.signal=X);(p=_.UY(window.location.href))&&p.internalcountrycode&&(c.internalcountrycode=p.internalcountrycode);p="/service_ajax";_.b("debug_forward_web_query_parameters")&&(p=_.ko5(p,window.location.search));p=_.aQ(p,c);D.clickTrackingParams&&_.jc(p,{itct:D.clickTrackingParams});return this.postData(p,C)};_.zvt=new _.P6("GFEEDBACK_TOKEN");var jHP;var MDU;var qBP;var f6t;var Jd=function(){var D=_.w.apply(this,arguments)||this;D.compact=!1;D.dismissButtonDisabled=!1;D.shouldRenderReasonAsFormattedString=!_.b("web_player_error_message_reason_as_formatted_string_killswitch");return D};
_.h(Jd,_.w);Jd.prototype.computeHasIcon_=function(D){return!!D};
Jd.prototype.isSignInIcon_=function(D){return D=="yt-icons:prompted_sign_in"};
Jd.prototype.onDismissButtonClick=function(){var D=this,C=this.data.disableOnClick,X,c=(X=this.data.dismissButton)==null?void 0:X.buttonRenderer;C&&!this.dismissButtonDisabled&&c&&setTimeout(function(){D.dismissButtonDisabled=!0},0)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.YBY.YtConditionalRendererBehavior),_.z("design:type",Object)],Jd.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Jd.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],Jd.prototype,"icon_",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.z("design:type",Boolean)],Jd.prototype,"hasIcon_",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.z("design:type",Boolean)],Jd.prototype,"signInIcon_",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Jd.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Jd.prototype,"dismissButtonDisabled",void 0);
_.V([_.n({type:Boolean}),_.z("design:type",Object)],Jd.prototype,"shouldRenderReasonAsFormattedString",void 0);_.V([_.Yn({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Jd);
_.G(Jd,"yt-player-error-message-renderer",function(){if(f6t===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;qBP===void 0&&(qBP=document.createElement("template"));var c=qBP;X.call(C,c.content.cloneNode(!0),D.content.firstChild);f6t=D}D=f6t;return D},{mode:2});var dJN;var Rvp;var z8=function(){return _.w.apply(this,arguments)||this};
_.h(z8,_.w);z8.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
z8.prototype.computeIcon_=function(D){return D?"yt-icons:"+D.iconType.toLowerCase():"error_outline"};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],z8.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],z8.prototype,"icon_",void 0);_.V([_.Yn({is:"yt-player-kav-renderer",disableElementRegistration:!0})],z8);
_.G(z8,"yt-player-kav-renderer",function(){if(Rvp===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;dJN===void 0&&(dJN=document.createElement("template"));var c=dJN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Rvp=D}D=Rvp;return D},{mode:2});var xQm=_.q8(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.CI(_.F(function(D){var C=_.aX("div"),X=_.U(_.Li(0,void 0,"jxh75d")),c=X.next().value,W=X.next().value;X=_.U(_.Li(null,void 0,"F5Zm8"));var p=X.next().value,g=X.next().value;_.JU(function(){LjZ(C.value,W,g);C.value.scrollIntoView()});
X=sgm.bind(null,D.data,c);_.vf("resize",function(){var a=p();if(c()===1&&a!==null){var O;(O=window.grecaptcha)==null||O.reset(a)}});
return _.A("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.A("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.A("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var a,O;return(a=D.data().accessibility)==null?void 0:(O=a.accessibilityData)==null?void 0:O.label}),_.A(_.QG,{text:X,
className:_.g$("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.A("div",{el:C,class:"ytwPlayerCaptchaViewModelGridItem"})))},"ng"),"yt-player-captcha-view-model",{props:{data:_.R3}});var mQr=!1;_.l6w=_.F(function(D){var C=D.data;return _.A("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.A(_.v,{cond:function(){return C().icon},
then:function(X){return _.A("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.A(_.M_,{data:X,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.A(_.v,{cond:function(){return C().title},
then:function(X){return _.A("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.A(_.QG,{text:X}))}}),_.A(_.v,{cond:function(){return C().description},
then:function(X){return _.A("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.A(_.QG,{text:X}))}}),_.A(_.BX,{data:function(){return C().primaryButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"interstitialViewModelFlexItem"})}}),_.A(_.BX,{data:function(){return C().secondaryButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"interstitialViewModelFlexItem"})}}))},"og");
_.l6w.idomCompat=!0;var DAG=_.F(function(D){var C=D.data;_.Gt();return _.A("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.A("div",{class:"playerInterstitialRendererScrim"},_.A(_.BX,{data:function(){return C().content}},{interstitialViewModel:_.l6w})))},"pg");
DAG.idomCompat=!0;_.CI(DAG,"yt-player-interstitial-renderer",{props:{data:_.Bm}});var j1=function(){var D=_.w.apply(this,arguments)||this;D.noBackground=!1;D.compact=!1;D.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return D};
_.h(j1,_.w);j1.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"}}}};
j1.prototype.onUpdatePlayerErrorMessageCommand_=function(D){if(_.r(D,zfc)){var C;if(D=(C=_.r(D,zfc))==null?void 0:C.newPlayerErrorMessageRenderer)this.data=D}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],j1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],j1.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],j1.prototype,"status",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],j1.prototype,"noBackground",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],j1.prototype,"compact",void 0);_.V([_.Yn({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],j1);
var CGk=_.o3()(j1,"yt-playability-error-supported-renderers",function(){if(MDU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;jHP===void 0&&(jHP=document.createElement("template"));var c=jHP;X.call(C,c.content.cloneNode(!0),D.content.firstChild);MDU=D}D=MDU;return D},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var XtN=V9W("ytd-button-renderer");var eQF=void 0,tMd=void 0;var yk5=new IiN;var pn=new _.P6("ENTITY_STATE_TOKEN"),Mr=new _.P6("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var c_p=function(D){this.store=D;this.aoG=new _.PlN},tEt=function(D,C,X){var c,W;
if(!(W=((c=C.playabilityStatus)==null?void 0:c.status)!=="OK")){D=D.store;var p;W=C.offlineState&&((p=C.videoDetails)==null?0:p.videoId)?_.b("enable_pl_r_c_cd")?Jh5(D.getState().entities,C.videoDetails.videoId):!!klJ(D.getState().entities,C.videoDetails.videoId):!1}if(W)return!0;W=Gnm(C);if(W===1){if(_.b("ab_v_vid_sig")){var g,a=(g=C.videoDetails)==null?void 0:g.videoId;if(!a||!X||a!==X){var O;C=new _.Zf("282054944_vid",{vjt:X,ngI:(O=C.videoDetails)==null?void 0:O.videoId});_.MN(C)}}return!0}t0r=
0;var P,k;O=(a=C.auxiliaryUi)==null?void 0:(P=a.messageRenderers)==null?void 0:(k=P.bkaEnforcementMessageViewModel)==null?void 0:k.displayType;if(W!==3&&(O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;O={reason:_.Ce(_.I7("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.b("ks_something_wrong_learn_more")?lB5("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Ce(_.I7("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:_.Ce("282054944")};oFp(C,{playerErrorMessageRenderer:O});return!1},Nc3=function(D,C){if(fdJ(C)){_.O2(1,!0);
var X=(X=fdJ(C))&&_.Ep3()?X:void 0;X?(oFp(C,{enforcementMessageViewModel:X}),D.aoG.increment("IN_PLAYER"),_.O2(5)):(D.aoG.increment("SKIP_DISPLAY"),_.O2(2))}},oFp=function(D,C){D.playabilityStatus=Object.assign({},D.playabilityStatus,{status:"ERROR",
errorScreen:C});D.videoDetails=void 0};
c_p.prototype.handleResponse=function(D,C){if(D.playabilityStatus){var X,c,W,p=(C==null?void 0:(X=C.innerTubeRequest)==null?void 0:X.videoId)||(C==null?void 0:(c=C.innerTubeRequest)==null?void 0:(W=c.playerRequest)==null?void 0:W.videoId);tEt(this,D,p)&&Nc3(this,D)}};
c_p[kz]=[pn];var e5m=new _.P6("ADBLOCK_DETECTION_SERVICE_TOKEN");var zt=function(D){this.vvi=D};
zt.prototype.bindInnertubeChallengeFetcher=function(D){this.vvi.bicf(D)};
zt.prototype.registerChallengeFetchedCallback=function(D){this.vvi.bcr(D)};
zt.prototype.getLatestChallengeResponse=function(){return this.vvi.blc()};var W$U;W$U=_.q8(["https://static.doubleclick.net/instream/ad_status.js"]);_.ptt=_.kX(W$U);var aNp;_.qr=function(D,C,X){var c=this;this.network=D;this.options=C;this.networkStatusManager=X;this.nC=null;if(C.useBotguardEverywhere){var W=new _.gL;this.nC=W.promise;_.co.ytAtRC&&_.hG(_.qX,function(){var p,g;return _.I(function(a){if(a.nextAddress==1){if(!_.co.ytAtRC)return a.return();p=Su6(null);return a.yield(c.c3(p),2)}g=a.yieldResult;_.co.ytAtRC&&_.co.ytAtRC(JSON.stringify(g));_.t_(a)})});
jgd().then(function(p){var g,a,O,P;return _.I(function(k){if(k.nextAddress==1)return p.bindInnertubeChallengeFetcher(function(u){return c.c3(Su6(u))}),k.yield(H7F(),2);
g=k.yieldResult;a=p.getLatestChallengeResponse();O=a.challenge;if(!O)throw Error("ki");P={challenge:O,yz:HC(O),vm:g,bgChallenge:new VR};W.resolve(P);p.registerChallengeFetchedCallback(function(u){u=u.challenge;if(!u)throw Error("li");u={challenge:u,yz:HC(u),vm:g,bgChallenge:new VR};c.nC=Promise.resolve(u)});
_.t_(k)})})}else C.preload&&UAt(this,new Promise(function(p){_.Zo(_.qX,function(){p(gFG(c))},0)}))};
aNp=function(D){var C={preload:!0,useBotguardEverywhere:!0},X=!1;if(typeof C==="boolean")var c={preload:C};else typeof C==="undefined"?c={preload:!0}:(c=C,X=!!C.dBI);C=X?void 0:new _.Se;_.qr.instance=new _.qr(D,c,C);return _.qr.instance};
_.qr.prototype.swI=function(){var D=this;return _.I(function(C){return C.nextAddress==1?C.yield(Promise.race([D.nC,null]),2):C.return(!!C.yieldResult)})};
_.qr.prototype.eOp=function(D,C,X){var c=this,W,p,g;return _.I(function(a){c.nC===null&&UAt(c,gFG(c));W=!1;p={};g=function(){var O,P,k,u,Q;return _.I(function(B){switch(B.nextAddress){case 1:if(!c.options.q9z||!c.options.useBotguardEverywhere){B.jumpTo(2);break}return B.yield(zQr(),3);case 3:return O=B.yieldResult,B.yield((P=O)==null?void 0:P.checkForRefresh(),2);case 2:return B.yield(c.nC,5);case 5:k=B.yieldResult;p.challenge=k.challenge;if(!k.vm){"c1a"in k.yz&&(p.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
B.jumpTo(6);break}u=Object.assign({},{c:k.challenge,e:D},C);_.KK(B,7);W=!0;return B.yield(k.vm.snapshot({m1:u}),9);case 9:(Q=B.yieldResult)?p.webResponse=Q:p.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.SR(B,6);break;case 7:_.Eu(B),p.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(D==="ENGAGEMENT_TYPE_PLAYBACK"){var K=k.yz,L={};if(K.c6a){var t=Number(_.q6("DCLKSTAT",0));L.reportingStatus=String(Number(K.c)^(isNaN(t)?0:t))}K.c6b&&(L.broadSpectrumDetectionResult=String(Number(K.c)^Number(_.q6("CATSTAT",
0))));p.adblockReporting=L}return B.return(p)}})};
return a.return(Promise.race([g(),ING(X,function(){var O=Object.assign({},p);W&&(O.error="ATTESTATION_ERROR_VM_TIMEOUT");return O})]))})};
var Su6=function(D){var C={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};D&&(C.interpreterHash=D);return C},gFG=function(D,C){C=C===void 0?0:C;
var X,c,W,p,g,a,O,P,k,u,Q,B;return _.I(function(K){switch(K.nextAddress){case 1:X=Su6(Agq().ykK);if(_.b("att_fet_ks"))return _.KK(K,7),K.yield(D.c3(X),9);_.KK(K,4);return K.yield(OK1(D,X),6);case 6:g=K.yieldResult;W=g.jZe;p=g.rZI;c=g;_.SR(K,3);break;case 4:return _.Eu(K),_.fQ(Error("mi`"+C)),A_3(D,864E5),K.return({challenge:"",yz:{},vm:void 0,bgChallenge:void 0});case 9:c=K.yieldResult;if(!c)throw Error("ni");if(!c.challenge)throw Error("oi");W=c.challenge;p=HC(W);if("c1a"in p&&(!c.bgChallenge||!c.bgChallenge.program))throw Error("pi");
_.SR(K,3);break;case 7:a=_.Eu(K);_.fQ(a);C++;if(C>=5)return _.fQ(Error("mi`"+C)),A_3(D,864E5),K.return({challenge:"",yz:{},vm:void 0,bgChallenge:void 0});O=1E3*Math.pow(2,C-1)+Math.random()*1E3;return K.return(new Promise(function(L){_.Zo(_.qX,function(){L(gFG(D,C))},O)}));
case 3:P=Jkm(p);A_3(D,P*1E3);k=void 0;if(!("c1a"in p&&c.bgChallenge)){K.jumpTo(10);break}u=Hx5(c.bgChallenge);_.KK(K,11);return K.yield($Gk(Agq(),u),13);case 13:_.SR(K,12);break;case 11:return Q=_.Eu(K),_.fQ(Q),K.return({challenge:W,yz:p,vm:k,bgChallenge:u});case 12:return _.KK(K,14),k=new _.M$({challenge:u,bHi:{s0:"aGIf"}}),K.yield(k.tFL,16);case 16:_.SR(K,10);break;case 14:B=_.Eu(K),_.fQ(B),k=void 0;case 10:return K.return({challenge:W,yz:p,vm:k,bgChallenge:u})}})},PG6=function(D,C){var X;
return _.I(function(c){if(c.nextAddress==1)return Jm(2),_.KK(c,2),c.yield(D.network.c3(C),4);if(c.nextAddress!=2)return(X=c.yieldResult)?X.challenge&&!X.bgChallenge?Jm(1):Jm(4):Jm(3),c.return(X);_.Eu(c);Jm(3);return c.return(void 0)})};
_.qr.prototype.c3=function(D){var C=this,X;return _.I(function(c){X=C.networkStatusManager;if(!X||X.isNetworkAvailable())return c.return(PG6(C,D));_.ey("att_pna",void 0,"attestation_challenge_fetch");return c.return(new Promise(function(W){X.listenOnce("publicytnetworkstatus-online",function(){PG6(C,D).then(W)})}))})};
var $A1=function(D){if(!D)throw Error("ni");if(!D.challenge)throw Error("oi");var C=D.challenge,X=HC(C);if("c1a"in X&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("pi");return Object.assign({},D,{jZe:C,rZI:X})},OK1=function(D,C){var X,c,W,p,g;
return _.I(function(a){switch(a.nextAddress){case 1:X=void 0,c=0,W={};case 2:if(!(c<5)){a.jumpTo(4);break}if(!(c>0)){a.jumpTo(5);break}W.q4K=1E3*Math.pow(2,c-1)+Math.random()*1E3;return a.yield(new Promise(function(O){return function(P){_.Zo(_.qX,function(){P(void 0)},O.q4K)}}(W)),5);
case 5:return _.KK(a,7),a.yield(D.c3(C),9);case 9:return p=a.yieldResult,a.return($A1(p));case 7:X=g=_.Eu(a),g instanceof Error&&_.fQ(g);case 8:c++;W={q4K:void 0};a.jumpTo(2);break;case 4:throw X;}})},UAt=function(D,C){D.nC=C},vFo=function(D){var C,X,c;
return _.I(function(W){if(W.nextAddress==1)return W.yield(Promise.race([D.nC,null]),2);C=W.yieldResult;var p=gFG(D);D.nC=p;(X=C)==null||(c=X.vm)==null||c.dispose();_.t_(W)})},A_3=function(D,C){var X=Date.now()+C,c=function(){var W;
return _.I(function(p){W=X-Date.now();return W<1E3?p.yield(vFo(D),0):(_.Zo(_.qX,c,Math.min(W,6E4)),p.jumpTo(0))})};
c()},ING=function(D,C){return new Promise(function(X){_.Zo(_.qX,function(){X(C())},D)})};var iKN=function(){};
iKN.prototype.processContext=function(D){var C=_.qr.instance;if(!C)return _.KU();var X=lc5(D);return X?new rX(C.eOp(X,fch(D),500).then(function(c){var W;(D==null?0:(W=D.innerTubeRequest)==null?0:W.context)||(D.innerTubeRequest.context={});W=D.innerTubeRequest.context;W.request||(W.request={});W.request.attestationResponseData=c})):_.KU()};var kLw=function(D){this.innertubeTransportService=D};
kLw.prototype.c3=function(D){_.ey("att_fsr",void 0,"attestation_challenge_fetch");return _.vV(this.innertubeTransportService,D,_.dJ(_.lXx)).then(function(C){_.ey("att_frr",void 0,"attestation_challenge_fetch");return C})};_.u71=function(D){this.innertubeTransportService=D};var QGp=new _.P6("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var BHt=function(){},r_U=function(D,C,X,c,W){var p=_.q6("YPC_MB_URL");
_.wsW(p).then(function(){bKp(p,D,C,X,c,W)})},bKp=function(D,C,X,c,W,p){try{var g=_.R9.payments.business.integration,a=_.R9.payments.business.integration.Style.create().withMaterialDesignStyle(),O=g.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.b("enable_window_constrained_buy_flow_dialog")&&(O=O.usingPopupStyle("windowConstrained"));p&&(O=O.usingCloseCallback(p));var P=X?X:_.q6("YPC_GB_LANGUAGE"),k=_.q6("SESSION_INDEX");g.bootstrap.fromPaymentsUrl(D);g.bootstrap.asMashupMode(O).usingGaiaIndex(k).usingLocale(P).usingStyle(a).usingDefaultActivityStatusChangeHandler().inStandaloneContext(g.standaloneContextAuthId.forGaia()).purchaseManager(C,function(u){c&&c(u)}).load(void 0,W)}catch(u){throw W&&W(u),_.MN(u),u;
}};var K$U=new _.P6("PURCHASE_MANAGER_TOKEN");var hK3=function(){var D=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return D.videos},
getContinuationsPresent:function(){return D.continuationsPresent},
setVideos:function(C){D.videos=C},
getRecommendedVideos:function(){return D.recommendedVideos},
setRecommendedVideos:function(C){D.recommendedVideos=C}}};
hK3.prototype.addVideos=function(D){D&&(this.videos=D.filter(function(C){return!!_.Ckt(C)}).map(function(C){var X=_.Ckt(C);
a:{var c;if(C.playlistVideoRenderer&&((c=C.playlistVideoRenderer)==null?0:c.voteSortTiebreaker))var W=C.playlistVideoRenderer.voteSortTiebreaker;else{if(_.r(C,Mo)){var p;if(c=(W=_.r(C,Mo))==null?void 0:(p=W.playlistItemData)==null?void 0:p.voteSortTiebreaker){W=c;break a}}W=""}}return{itemId:X,videoId:_.oSd(C),voteCount:_.W7Z(C),voteSortTiebreaker:W}}),this.continuationsPresent=!!_.r(D[D.length-1],_.dE))};
var xAP=function(D,C){return D.videos.findIndex(function(X){return X.itemId===C})},L$t=function(D,C){return D.recommendedVideos.findIndex(function(X){return X.itemId===C})},sGP=function(D){D={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:D}}}}};_.iX().resolve(_.uX).resolveCommand(D)};var mAG=function(){hK3.apply(this,arguments)};
_.h(mAG,hK3);
var Ru5=function(D,C,X,c){if(!D.parentElem)throw Error("ui");var W=xAP(D,C);W===-1&&(W=L$t(D,C),W=W!==-1?W+D.videos.length:-1);if(W===-1)throw Error("vi");var p=W>=D.videos.length?D.recommendedVideos[W-D.videos.length]:D.videos[W];p.voteCount=X;p.voteSortTiebreaker=Date.now().toString();W>=D.videos.length?D.recommendedVideos.splice(W-D.videos.length,1):D.videos.splice(W,1);var g=D.videos;for(var a=0,O=g.length-1;a<=O;){var P=Math.floor((a+O)/2);if(g[P].voteCount<p.voteCount)O=P-1;else if(g[P].voteCount>p.voteCount)a=
P+1;else{a:{var k=p.voteSortTiebreaker;var u=g[P].voteSortTiebreaker;if(k.length!==u.length)k=k.length>u.length;else{for(var Q=0;Q<k.length;Q++){var B=k.charCodeAt(Q),K=u.charCodeAt(Q);if(B>K){k=!0;break a}if(B<K)break}k=!1}}k?O=P-1:a=P+1}}g=a;if(g===-1)throw Error("wi");D.videos.splice(g,0,p);W!==g&&eKo(D,W,g,C,X,c)},eKo=function(D,C,X,c,W,p){var g,a=(g=D.parentElem)==null?void 0:g.children,O=Math.min(C,X),P=Math.max(C,X);
if(a)for(g=O;g<=P;g++)a[g].style.viewTransitionName="item-"+String(g);document.startViewTransition(function(){if(D.parentElem){var k=D.parentElem.children;if(!(!k||C<0||C>=k.length||X<0||X>=k.length)){var u=k[C];if(u){u.remove();D.showRefreshPill=X>=D.videos.length-1&&D.continuationsPresent;if(!D.showRefreshPill){k=k[X]||null;var Q;(Q=D.parentElem)==null||Q.insertBefore(u,k)}_.lE(D.parentElem,"yt-update-video-data-voting-animation",{toIdx:X,itemId:c,newVoteCount:W,voteStatus:p,hideItem:D.showRefreshPill})}}}}).finished.then(function(){if(a)for(var k=
O;k<=P;k++)a[k].style.viewTransitionName="";
if(D.showRefreshPill)sGP(_.I7("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var u;if(u=k=(u=D.parentElem)==null?void 0:u.children[X])u=k.getBoundingClientRect(),k=u.bottom,u=!(u.top>=0&&k<=D.clientHeight);u&&(u=_.Op(C>X?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(C-X)),sGP(u))}})};var NHw=function(D,C){var X=this;D?this.innertubeTransportServicePromise=Promise.resolve(D):C&&(this.innertubeTransportServicePromise=C(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Nr(3E3,function(c){return EFk(X,c)},0);
this.validateMiniAppVideoIdRateLimiter=new Nr(3E3,function(c){return tso(X,c)},1)},a6X=function(D,C){D.JSC$17535_miniAppId=C;
D.reportMiniAppValueRateLimiter=new Nr(3E3,function(X){return EFk(D,X)},0);
D.validateMiniAppVideoIdRateLimiter=new Nr(3E3,function(X){return tso(D,X)},1)},Of1=function(D,C){var X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(D.reportMiniAppValueRateLimiter.call(C),2);X=c.yieldResult;return c.return([X,C])})},EFk=function(D,C){var X,c,W,p,g,a,O;
return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(D.innertubeTransportServicePromise,2);case 2:return X=P.yieldResult,c=_.dJ(W3M),W=Date.now(),p={externalPostId:D.JSC$17535_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(W/1E3),nanos:Math.round(W%1E3*1E6)},intValue:""+C}},_.KK(P,3),P.yield(_.vV(X,p,c),5);case 5:g=P.yieldResult;_.SR(P,4);break;case 3:throw a=_.Eu(P),a;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("xi`"+
g.errorMetadata.status);if(O=g.userStatResult)return P.return(O);throw Error("yi");}throw Error("zi");}})},PUP=function(D){var C,X,c,W,p;
_.I(function(g){switch(g.nextAddress){case 1:return g.yield(D.innertubeTransportServicePromise,2);case 2:return C=g.yieldResult,X=_.dJ(W3M),c={externalPostId:D.JSC$17535_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.KK(g,3),g.yield(_.vV(C,c,X),5);case 5:W=g.yieldResult;_.SR(g,4);break;case 3:throw p=_.Eu(g),p;case 4:if(W==null)throw Error("zi");if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("xi`"+W.errorMetadata.status);_.t_(g)}})};
NHw.prototype.flush=function(){var D=this;return _.I(function(C){return C.nextAddress==1?C.yield(D.reportMiniAppValueRateLimiter.flush(),2):C.yield(D.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var A23=function(D,C){return _.I(function(X){return X.nextAddress==1?X.yield(D.validateMiniAppVideoIdRateLimiter.call(C),2):X.return(X.yieldResult)})},tso=function(D,C){var X,c,W,p,g,a;
return _.I(function(O){switch(O.nextAddress){case 1:return O.yield(D.innertubeTransportServicePromise,2);case 2:return X=O.yieldResult,c=_.dJ(d0N),W={videoId:C},_.KK(O,3),O.yield(_.vV(X,W,c),5);case 5:p=O.yieldResult;_.SR(O,4);break;case 3:throw g=_.Eu(O),g;case 4:if(p){if("error"in p&&p.error)throw p.error;if(p.errorMetadata)throw Error("xi`"+p.errorMetadata.status);if(a=p.playabilityStatus)return O.return(a.status);throw Error("Ai");}throw Error("zi");}})};
NHw[kz]=[_.vK(_.Bl),_.vK(Yxx)];var Yut=function(){this.clientData=new Map};
Yut.prototype.getData=function(D){return this.clientData.get(D)};var y_3=function(D){this.store=D};
y_3.prototype.handleResponse=function(D){(D=_.r(D.frameworkUpdates,Mn))&&_.$P(D,this.store)};
y_3[kz]=[_.gp];var nFG=new _.P6("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var wtk,F$6,ZKp;_.dn=new _.P6("FLOW_STATE_MANAGER_TOKEN");wtk=function(){this.flowStates=new Map};
F$6=function(D,C){D=_.U(D.flowStates.values());for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.flowRenderer.targetId===C)return X};
ZKp=function(D,C){var X,c=((X=D.flowRenderer.steps)!=null?X:[]).filter(function(W){return!C.includes(_.r(W,_.lJ).stepId)});
D.flowRenderer.steps=c};var GL1=function(D){this.JSC$17559_flowStateManager=D};
_.h(GL1,bB);GL1.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a;return _.I(function(O){X=_.r(D,gOq);W=(c=X)==null?void 0:c.stepIds;g=(p=X)==null?void 0:p.targetId;if(!W||!g)return O.return();a=F$6(C.JSC$17559_flowStateManager,g);if(!a)return O.return();ZKp(a,W);_.t_(O)})};
var RF=function(){GL1.apply(this,arguments)};
_.h(RF,GL1);RF[kz]=[_.dn];var Vsw=function(D,C){this.JSC$17565_reduxStore=D;this.JSC$17565_flowStateManager=C};
_.h(Vsw,bB);
Vsw.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K;return _.I(function(L){X=_.r(D,_.abJ);c=X.stepId;W=X.targetId;p=F$6(C.JSC$17565_flowStateManager,W);a=(g=p)==null?void 0:g.flowRenderer;O=a.flowStateEntityKey;P=_.qo(C.JSC$17565_reduxStore.getState(),O);if(!P)return L.return();k=P.currentStepId;B=(Q=(u=P)==null?void 0:u.stepIdStack)!=null?Q:[];K=k===B[B.length-1]?c:k;C.JSC$17565_reduxStore.dispatch(_.EW("flowStateEntity",O,{currentStepId:c,stepIdStack:[K]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.t_(L)})};
var lm=function(){Vsw.apply(this,arguments)};
_.h(lm,Vsw);lm[kz]=[_.gp,_.dn];var THG=function(D,C,X){this.JSC$17572_reduxStore=D;this.JSC$17572_flowStateManager=C;this.JSC$17572_commandHandler=X};
_.h(THG,bB);
THG.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L;return _.I(function(t){c=_.r(D,_.Ib5);W=c.targetId;p=F$6(X.JSC$17572_flowStateManager,W);a=(g=p)==null?void 0:g.flowRenderer;O=a.flowStateEntityKey;P=_.qo(X.JSC$17572_reduxStore.getState(),O);Q=[].concat(_.VB((u=(k=P)==null?void 0:k.stepIdStack)!=null?u:[]));B=Q.pop();((K=P)==null?void 0:K.currentStepId)===B&&(B=Q[Q.length-1]);if(!B)return(L=c.onFirstStepCommand)&&X.JSC$17572_commandHandler.resolveCommand(L,C),t.return();
X.JSC$17572_reduxStore.dispatch(_.EW("flowStateEntity",O,{currentStepId:B,stepIdStack:Q}));_.t_(t)})};
var D3=function(){THG.apply(this,arguments)};
_.h(D3,THG);D3[kz]=[_.gp,_.dn,_.uX];var HKP=function(D,C){this.innertubeTransportService=D;this.JSC$17577_commandHandler=C};
_.h(HKP,bB);HKP.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1){c=_.r(D,Ooq);if(!c)return O.return();_.KK(O,2);return O.yield(_.Jl(X.innertubeTransportService,D),4)}if(O.nextAddress!=2){W=O.yieldResult;if(!W)return O.return();(p=W.updateFlowCommand)&&X.JSC$17577_commandHandler.resolveCommand(p,C);return _.SR(O,0)}_.Eu(O);(a=(g=c)==null?void 0:g.onFailureCommand)&&X.JSC$17577_commandHandler.resolveCommand(a,C);_.t_(O)})};
var CD=function(){HKP.apply(this,arguments)};
_.h(CD,HKP);CD[kz]=[_.Bl,_.uX];var J_t=function(D,C){this.JSC$17583_flowStateManager=D;this.JSC$17583_commandHandler=C};
_.h(J_t,bB);
J_t.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g;return _.I(function(a){c=_.r(D,_.PJ4);W=c.targetId;p=F$6(X.JSC$17583_flowStateManager,W);if(!p)return a.return(Promise.resolve());var O=p,P=(g=c.steps)!=null?g:[],k,u=(k=O.flowRenderer.steps)!=null?k:[];P=[].concat(_.VB(u),_.VB(P));O.flowRenderer.steps=P;c.flowContinuationCommand&&(p.flowRenderer.flowContinuationCommand=c.flowContinuationCommand);c.entityUpdateCommand&&X.JSC$17583_commandHandler.resolveCommand(c.entityUpdateCommand,C);
return a.return(Promise.resolve())})};
var Xh=function(){J_t.apply(this,arguments)};
_.h(Xh,J_t);Xh[kz]=[_.dn,_.uX];var zKk={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],google_messages:[[0,1,192]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var jGp=new _.P6("ICON_SET_TOKEN"),Msw=new _.P6("ICON_URL_PROVIDER_TOKEN"),quU=new _.P6("PREFETCH_ICONS_TOKEN"),fNt=new _.P6("ICON_MAP_FN_TOKEN");var cQ={},dAt=(cQ.ACCESS_TIME="clock",cQ.ACCOUNT_BOX=_.q6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",cQ.ACCOUNT_BOX_CAIRO="person_account_cairo",cQ.ACCOUNT_CIRCLE="person_circle",cQ.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",cQ.ACCOUNT_LINKED="account_link_success",cQ.ACCOUNT_UNLINKED="account_link",cQ.ADD_FRIEND="people",cQ.ADD_MODERATOR="shield_add",cQ.ADD_TO_LIBRARY="bookmark",cQ.ADD_TO_PLAYLIST="add",cQ.ADD_TO_QUEUE_TAIL="list_queue",cQ.ADD_TO_REMOTE_QUEUE="list_music",
cQ.ADD_TO_WATCH_LATER="clock",cQ.ADD_VIDEO_LINK="film_strip_add",cQ.ALERT_WARN_RED="alert_triangle",cQ.ARROW_BACK="arrow_left",cQ.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",cQ.ARROW_DROP_DOWN="chevron_down",cQ.ARROW_DROP_UP="chevron_up",cQ.ARROW_FORWARD="arrow_right",cQ.ARTIST="person_music",cQ.AUDIOTRACK="audio",cQ.AUTO_AWESOME="sparkle",cQ.AVATAR_ANONYMOUS="person_circle",cQ.AVATAR_LOGGED_OUT="person_circle",cQ.BACK="arrow_left",cQ.BAR_CHART="bar_graph",cQ.BLOCK="slash_circle_left",
cQ.BLOCK_USER="slash_circle_left",cQ.BOOKMARK_BORDER="bookmark",cQ.BREAKING_NEWS_ALT_1="article_alert",cQ.BROADCAST_CAIRO="podcast_cairo",cQ.BUG_REPORT="bug",cQ.CAMERA_ALT="camera",cQ.CAMPAIGN="megaphone",cQ.CANCEL="x_circle",cQ.CAPTIONS="closed_caption",cQ.CAST_OUTLINE="chromecast",cQ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",cQ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",cQ.CHAT="message_bubble_left",cQ.CHAT_BUBBLE="message_bubble_empty",cQ.CHAT_SPARK="spark_message_bubble_left",cQ.CHECK_BOX_OUTLINE_BLANK=
"box_empty",cQ.CHECK_CIRCLE_OUTLINE="check_circle",cQ.CHECK_CIRCLE_THICK="check_circle",cQ.CLARIFY="article_clarify",cQ.CLOSED_CAPTION_SELECTED="closed_caption",cQ.CLOSE="x_mark",cQ.CLOUD_UPLOAD="cloud_arrow_up",cQ.COLLAPSE="chevron_up",cQ.COLLAPSE_CAIRO="chevron_up_cairo",cQ.COLLECTION="layers",cQ.COLOR_LENS="palette",cQ.COMMENT="message_bubble_right",cQ.CONSENT_SHIELD="person_shield",cQ.CONTENT_CUT="scissors",cQ.CONTENT_CUT_CAIRO="scissors_cairo",cQ.COURSE=_.b("web_enable_course_icon_update")?"creator_academy":
"lightbulb",cQ.COURSE_CAIRO=_.b("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",cQ.CREATION_LIVE="radar_live",cQ.CREATION_POST="box_pencil",cQ.CREATION_UPLOAD="my_videos",cQ.CREATION_UPLOAD_RED="upload",cQ.CREATOR_METADATA_MONETIZATION="dollar_sign",cQ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",cQ.CREATOR_STUDIO="youtube_studio",cQ.DASHBOARD="grid_asymmetrical",cQ.DELETE="trash_can",cQ.DELETE_SWEEP="trash_can",cQ.DESKTOP="laptop",cQ.DISLIKE="thumb_down",cQ.DISLIKE_SELECTED=
"thumb_down",cQ.DISMISSAL="x_mark",cQ.DISMISS_QUEUE="list_remove",cQ.DONE_ALL="check_double",cQ.DOWN_ARROW="arrow_down",cQ.DO_NOT_DISTURB="slash_circle_left",cQ.DRAFT="paper_corner_folded",cQ.DRAG_HANDLE="bars_2",cQ.EDIT="pencil",cQ.EMOJI="face_very_happy",cQ.EMOJI_FLAGS="flag",cQ.EMOJI_OBJECTS="lightbulb",cQ.EMOJI_PEOPLE="face_very_happy",cQ.EMOJI_RECENT="clock",cQ.EMPTY_HEART="heart",cQ.EMPTY_LIKE="thumb_up",cQ.ERROR_BLACK="alert_circle",cQ.ERROR_OUTLINE="alert_circle",cQ.EXIT_APP="arrow_in",cQ.EXIT_TO_APP=
"arrow_in",cQ.EXPAND="chevron_down",cQ.EXPAND_ALL="chevron_expand",cQ.EXPAND_CAIRO="chevron_down_cairo",cQ.EXPAND_LESS="chevron_up",cQ.EXPAND_MORE="chevron_down",cQ.EXPLORE="compass",cQ.EXPLORE_DESTINATION="compass",cQ.EXTERNAL_LINK="open_new",cQ.FAB_UPLOAD="upload",cQ.FACE_HAPPY_OUTLINE="face_happy",cQ.FACT_CHECK="article_check",cQ.FASHION_LOGO="fashion",cQ.FASHION_LOGO_CAIRO="fashion_cairo",cQ.FAVORITE="heart",cQ.FEEDBACK="message_bubble_alert",cQ.FEEDBACK_CAIRO="message_bubble_alert_cairo",cQ.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",cQ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",cQ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",cQ.FILTER="menu_filter",cQ.FIRST_PAGE="chevron_first",cQ.FLAG="flag",cQ.FULL_HEART="heart",cQ.GAME_CONSOLE_DPAD="game_console_dpad",cQ.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",cQ.GAMING_LOGO="gaming",cQ.GAMING_LOGO_CAIRO="gaming_cairo",cQ.GO_TO_PAGE="arrow_right",cQ.GROUPS="people_group",cQ.HAPPY="face_happy",cQ.HEALTH_AND_SAFETY="shield_plus",cQ.HELP="question_circle",cQ.HELP_CAIRO=
"question_circle_cairo",cQ.HELP_OUTLINE="question_circle",cQ.HIDE="slash_circle_left",cQ.IMAGE="image",cQ.INFINITY_ICON="infinity",cQ.INFO="info_circle",cQ.INFO_OUTLINE="info_circle",cQ.INSERT_CHART="bar_graph_box_vertical",cQ.INSERT_CHART_OUTLINED="bar_graph_box_vertical",cQ.INSERT_PHOTO="image",cQ.KEEP="pin",cQ.KEEP_OFF="pin_off",cQ.KEYBOARD="keyboard",cQ.KEYBOARD_ARROW_DOWN="chevron_down",cQ.KEYBOARD_ARROW_UP="chevron_up",cQ.KIDS_BLOCK="slash_circle_left",cQ.LANGUAGE="globe",cQ.LAST_PAGE="chevron_last",
cQ.LAUNCH="open_new",cQ.LEARNING="lightbulb",cQ.LEARNING_CAIRO="lightbulb_cairo",cQ.LIBRARY_ADD=gSm("library_add"),cQ.LIBRARY_OUTLINE="library",cQ.LIBRARY_REMOVE=gSm(),cQ.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",cQ.LIKES_PLAYLIST="thumb_up",cQ.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",cQ.LIKE="thumb_up",cQ.LIKE_SELECTED="thumb_up",cQ.LIVE="radar_live",cQ.LIVE_CAIRO="radar_live_cairo",cQ.LIVE_UNLISTED="link",cQ.LOCATION_ON="location_point",cQ.LOCATION_PIN="location_point",cQ.LOOP="arrow_repeat",cQ.LOOP_ACTIVE=
"arrow_repeat",cQ.LOOP_ONE="arrow_repeat_1",cQ.LOOP_ONE_ACTIVE="arrow_repeat_1",cQ.MEH="face_meh",cQ.MEMBERS_ONLY_MODE_OFF="message_bubble_left",cQ.MESSAGE="message_bubble_left",cQ.MICROPHONE_ON="mic",cQ.MIX="youtube_mix",cQ.MONETIZATION_ON="dollar_sign_circle",cQ.MONEY_FILL="dollar_sign_container",cQ.MONEY_FILL_JPY="yen_sign_container",cQ.MONEY_HEART="dollar_sign_heart",cQ.MORE_HORIZ="overflow_horizontal",cQ.MORE_VERT="overflow_vertical",cQ.MUSIC="audio",cQ.MUSIC_CAIRO="audio_cairo",cQ.MUSIC_NOTE_SYMBOL=
"music",cQ.MUSIC_SHUFFLE="arrow_shuffle",cQ.MY_CHANNEL="person_circle",cQ.MY_LOCATION="location_point",cQ.NEWS_STORY="news",cQ.NEXT="chevron_right",cQ.NOTIFICATIONS="bell",cQ.NOTIFICATIONS_ACTIVE="bell_on",cQ.NOTIFICATIONS_CAIRO="bell_cairo",cQ.NOTIFICATIONS_DONE_CHECKMARK="check",cQ.NOTIFICATIONS_INBOX="bell",cQ.NOTIFICATIONS_NONE="bell",cQ.NOTIFICATIONS_OFF="bell_off",cQ.NOT_INTERESTED="slash_circle_left",cQ.OFFICIAL_ARTIST_BADGE="audio",cQ.OFFLINE_CLOUD="cloud_off",cQ.OFFLINE_DOWNLOAD="download",
cQ.OFFLINE_DOWNLOAD_CAIRO="download_cairo",cQ.OFFLINE_PAUSE="pause",cQ.OPEN_IN_NEW="open_new",cQ.OUTLINE_ADJUST="adjust",cQ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",cQ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",cQ.OUTLINE_BAG="bag",cQ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",cQ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",cQ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",cQ.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",cQ.PAID="dollar_sign",cQ.PAUSE_OUTLINED="pause",cQ.PAYMENT=
"credit_card",cQ.PERSON_RADAR_FILLED="person_radar",cQ.PHONE_DOWNLOAD="mobile_download",cQ.PLAYABLES_LOGO="tic_tac_toe",cQ.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",cQ.PLAYLISTS="list_play_arrow",cQ.PLAYLISTS_CAIRO="list_play_arrow_cairo",cQ.PLAYLIST_ADD=gSm("list_add"),cQ.PLAYLIST_ADD_CHECK=gSm("list_check"),cQ.PLAYLIST_PLAY="list_play_arrow",cQ.PLAY_ALL="play_arrow",cQ.PLAY_CIRCLE="play_arrow_circle",cQ.PLAY_OUTLINED="play_arrow_circle",cQ.PRIVACY_INFO="shield",cQ.PRIVACY_PRIVATE="lock",cQ.PRIVACY_PUBLIC=
"earth",cQ.PRIVACY_UNLISTED="link",cQ.PROMOTE="megaphone",cQ.PURCHASES="price_tag",cQ.PURCHASE_SUPER_CHAT="super_chat",cQ.PURCHASE_SUPER_STICKER="super_sticker",cQ.QUESTION_ANSWER="message_bubble_question",cQ.QUEUE_PLAY_LAST="list_queue_last",cQ.QUEUE_PLAY_NEXT="list_play_arrow",cQ.REMIX_FILLED="youtube_shorts_remix",cQ.REMOVE="bar_circle",cQ.REMOVE_CIRCLE="bar_circle",cQ.REMOVE_CIRCLE_OUTLINE="bar_circle",cQ.REMOVE_DONE="check_double_off",cQ.REMOVE_FROM_HISTORY="bar_circle",cQ.REMOVE_FROM_PLAYLIST=
"bar_circle",cQ.REMOVE_MODERATOR="shield_off",cQ.REPLAY="arrow_circle",cQ.REPLAY_10="skip_back_10",cQ.REPORT_PROBLEM="alert_triangle",cQ.SAD="face_sad",cQ.SAVE_PLAYLIST="bookmark",cQ.SCHEDULE="clock",cQ.SCHOOL="creator_academy",cQ.SCREEN_FULLSCREEN="screen_full",cQ.SEARCH_HISTORY="arrow_time",cQ.SELL="price_tag",cQ.SETTINGS="gear",cQ.SETTINGS_CAIRO="gear_cairo",cQ.SETTINGS_LIGHT="gear",cQ.SETTINGS_MATERIAL="gear",cQ.SHARE_ARROW="share",cQ.SHIELD_WITH_AVATAR="person_shield",cQ.SHOPPING_BAG="bag",cQ.SHOPPING_BAG_CAIRO=
"bag_cairo",cQ.SHOPPING_CART="cart",cQ.SHORTS_COMMENT="youtube_shorts_message_bubble_right",cQ.SHORTS_DISLIKE="youtube_shorts_thumb_down",cQ.SHORTS_LIKE="youtube_shorts_thumb_up",cQ.SHORTS_SHARE="youtube_shorts_share",cQ.SHUFFLE="arrow_shuffle",cQ.SLOW_MODE_OFF="message_bubble_left",cQ.SOCIAL="people",cQ.SORT="menu_sort",cQ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",cQ.SPEED_1X="1x",cQ.SPEED_1_POINT_2X="1_point_2x",cQ.SPEED_1_POINT_5X="1_point_5x",cQ.SPEED_1_POINT_8X="1_point_8x",cQ.SPEED_2X="2x",
cQ.SPEED_POINT_2X="point_2x",cQ.SPEED_POINT_8X="point_8x",cQ.SPONSORSHIP_STAR="star_circle",cQ.STAFF_PICK="spotlight",cQ.START_DVR="add",cQ.STAR_BORDER="star",cQ.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",cQ.STICKER_EMOTICON="face_happy",cQ.STOP_DVR="stop",cQ.SUBSCRIBE="youtube_logo_icon",cQ.SUBSCRIBE_PLUS="add_cairo",cQ.SUBSCRIPTION_MANAGER="gear",cQ.SUPERVISOR_ACCOUNT="people",cQ.SUPER_CHAT_FOR_GOOD="hands_heart",cQ.SWAP_HORIZ="arrow_swap_horizontal",cQ.SWITCH_ACCOUNTS="person_account",cQ.TAB_ACCOUNT=
"person",cQ.TAB_ACTIVITY="bell",cQ.TAB_BOOKMARK="bookmark",cQ.TAB_EXPLORE="compass",cQ.TAB_HOME="home",cQ.TAB_HOME_CAIRO="home_cairo",cQ.TAB_INBOX="mail",cQ.TAB_LIKED="thumb_up",cQ.TAB_MUSIC_PREMIUM="youtube_music",cQ.TAB_SHORTS="youtube_shorts",cQ.TAB_SHORTS_CAIRO="youtube_shorts_cairo",cQ.TAB_SUBSCRIPTIONS="subscriptions",cQ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",cQ.TAB_TRENDING="fire",cQ.TIMER="stopwatch",cQ.TRAILER="youtube_originals",cQ.TRENDING="fire",cQ.TRENDING_CAIRO="fire_cairo",cQ.TRENDING_DOWN=
"rating_down",cQ.TRENDING_UP="rating_up",cQ.TROPHY="trophy",cQ.TROPHY_CELEBRATIONS="fireworks",cQ.TUNE="adjust",cQ.UNBLOCK_USER="bar_circle",cQ.UNLIMITED="youtube_logo_icon",cQ.UNPLUGGED_LIVE_GUIDE="radar_live",cQ.UNPLUGGED_SPORTS="eye_off",cQ.UPLOADS="library",cQ.UP_ARROW="arrow_up",cQ.VERTICAL_ALIGN_BOTTOM="download",cQ.VERY_HAPPY="face_very_happy",cQ.VERY_SAD="face_very_sad",cQ.VIDEOGAME_ASSET="gaming",cQ.VIDEOS="play_arrow_circle",cQ.VIDEO_CALL="video_camera_add",cQ.VIDEO_LIBRARY_WHITE="library",
cQ.VIDEO_YOUTUBE="youtube_logo_icon",cQ.VIEW_LIST="list_view",cQ.VIEW_LIST_CAIRO="list_view_cairo",cQ.VISIBILITY="eye",cQ.VISIBILITY_OFF="eye_off",cQ.VOLUME_MUTE="volume_off",cQ.VOLUME_UP="volume_on",cQ.WALLPAPER="image",cQ.WARNING="alert_triangle",cQ.WATCH_HISTORY="arrow_time",cQ.WATCH_HISTORY_CAIRO="arrow_time_cairo",cQ.WATCH_LATER="clock",cQ.WATCH_LATER_CAIRO="clock_cairo",cQ.WATCH_RELATED_MIX="youtube_mix",cQ.WHAT_TO_WATCH="home",cQ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",cQ.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",cQ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",cQ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",cQ.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",cQ.YT_OUTLINE_MUSIC_24="music",cQ);var on={},RKX=(on.ACCESS_TIME="clock",on.ACCOUNT_BOX="person_square",on.ACCOUNT_BOX_CAIRO="person_square",on.ACCOUNT_CIRCLE="person_circle",on.ACCOUNT_CIRCLE_CAIRO="person_circle",on.ACCOUNT_LINKED="account_link",on.ACCOUNT_UNLINKED="account_link",on.ADD_CIRCLE="add_circle",on.ADD_CIRCLE_OUTLINE="add_circle",on.ADD_FRIEND="person_child",on.ADD_MODERATOR="shield_add",on.ADD_TO_LIBRARY="bookmark",on.ADD_TO_PLAYLIST="add",on.ADD_TO_QUEUE_TAIL="queue",on.ADD_TO_REMOTE_QUEUE="playlist_audio",on.ADD_TO_WATCH_LATER=
"clock",on.ADD_VIDEO_LINK="film_strip_add",on.ADMIN_PANEL_SETTINGS="person_gear",on.ALERT_WARN_RED="alert_triangle",on.ALIGN_LEFT="text_align_left",on.ARROWS_ALERT="arrow_split_alert",on.ARROW_BACK="arrow_left",on.ARROW_CIRCLE="arrow_counterclockwise",on.ARROW_CIRCLE_PLAY="replay",on.ARROW_CIRCLE_RIGHT="arrow_clockwise",on.ARROW_DIAGONAL="arrow_up_left",on.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",on.ARROW_DROP_DOWN="triangle_down",on.ARROW_DROP_UP="triangle_up",on.ARROW_FORWARD="arrow_right",on.ARROW_PAUSE=
"pause_history",on.ARROW_UNDO="undo",on.ARTICLE="text_page",on.ARTICLE_ALERT="text_page_alert",on.ARTICLE_CHECK="text_page_check",on.ARTICLE_CLARIFY="text_page_info",on.ARTIST="person_audio",on.AUDIOTRACK="audio",on.AUDIO_BADGE="audio_badge",on.AUDIO_SURROUND="surround_sound",on.AUTO_AWESOME="sparkles",on.AVATAR_ANONYMOUS="person_circle",on.AVATAR_LOGGED_OUT="person_circle",on.BACK="arrow_left",on.BAR_CHART="chart_bar",on.BAR_CIRCLE="minus_circle",on.BAR_HORIZONTAL="minus",on.BLOCK="circle_slash",
on.BLOCK_USER="circle_slash",on.BOOKMARK_BORDER="bookmark",on.BOX_OPEN_CHECK="quiz",on.BOX_PENCIL="square_pencil",on.BOX_STACK_3="square3_stack",on.BREAKING_NEWS_ALT_1="text_page_alert",on.BROADCAST="podcast",on.BROADCAST_CAIRO="podcast",on.BUG_REPORT="bug",on.CAMERA_ALT="camera",on.CAMPAIGN="megaphone",on.CANCEL="x_circle",on.CAPTIONS="closed_captions",on.CAST_ICON="chromecast",on.CAST_OUTLINE="chromecast",on.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",on.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
on.CHAT="text_bubble",on.CHAT_BUBBLE="bubble",on.CHECK_BOX="check_square",on.CHECK_BOX_OUTLINE_BLANK="square",on.CHECK_CIRCLE_FILLED="check_circle",on.CHECK_CIRCLE_OUTLINE="check_circle",on.CHECK_CIRCLE_THICK="check_circle",on.CHECK_DOUBLE="check_done",on.CHECK_DOUBLE_OFF="check_done_slash",on.CHEVRON_LEFT="chevron_left",on.CHEVRON_RIGHT="chevron_right",on.CHEVRON_RIGHT_CAIRO="chevron_right",on.CIRCLES_OVERLAP="account_link",on.CLAPPERBOARD_CAIRO="clapperboard",on.CLARIFY="text_page_info",on.CLOCK_ARROWS=
"clock_split",on.CLOCK_ARROWS_ALERT="clock_split_alert",on.CLOSED_CAPTION="closed_captions",on.CLOSED_CAPTION_SELECTED="closed_captions",on.CLOSE="x",on.CLOUD_UPLOAD="cloud_arrow_up",on.COLLAPSE="chevron_up",on.COLLAPSE_CAIRO="chevron_up",on.COLLECTION="square3d_stack",on.COLOR_LENS="paint_palette",on.COMMENT="text_bubble",on.CONSENT_SHIELD="person_shield",on.CONTENT_CUT="scissors",on.CONTENT_CUT_CAIRO="scissors",on.COURSE="graduation_cap",on.COURSE_CAIRO="graduation_cap",on.CREATION_LIVE="live",
on.CREATION_POST="square_pencil",on.CREATION_UPLOAD="video",on.CREATION_UPLOAD_RED="upload",on.CREATOR_ACADEMY="graduation_cap",on.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",on.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",on.CREATOR_STUDIO="youtube_studio",on.DARK_THEME="theme",on.DELETE="trash_can",on.DELETE_SWEEP="trash_can",on.DESKTOP="laptop",on.DISLIKE="thumb_down",on.DISLIKE_SELECTED="thumb_down",on.DISMISSAL="x",on.DISMISS_QUEUE="playlist_x",on.DOGFOOD="pawprint",on.DOLLAR_SIGN=
"dollar_sign_circle",on.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",on.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",on.DOWN_ARROW="arrow_down",on.DO_NOT_DISTURB="circle_slash",on.DRAFT="document",on.DRAG_HANDLE="equal",on.EARTH="globe",on.EDIT="pencil",on.EMOJI="face_very_happy",on.EMOJI_FLAGS="flag",on.EMOJI_OBJECTS="lightbulb",on.EMOJI_PEOPLE="face_very_happy",on.EMOJI_RECENT="clock",on.EMPTY_HEART="heart",on.EMPTY_LIKE="thumb_up",on.ERROR_BLACK="alert_circle",on.ERROR_OUTLINE="alert_circle",on.ERROR_WHITE=
"alert_circle",on.EXIT_APP="arrow_in",on.EXIT_TO_APP="arrow_in",on.EXPAND="chevron_down",on.EXPAND_ALL="chevron_expand",on.EXPAND_CAIRO="chevron_down",on.EXPAND_LESS="chevron_up",on.EXPAND_MORE="chevron_down",on.EXPLORE="compass",on.EXPLORE_DESTINATION="compass",on.EXTERNAL_LINK="arrow_up_right",on.EYE_OFF="eye_slash",on.FAB_UPLOAD="upload",on.FACE_HAPPY_OUTLINE="face_happy",on.FACE_MEH="face_neutral",on.FACT_CHECK="text_page_check",on.FASHION_LOGO="fashion",on.FASHION_LOGO_CAIRO="fashion",on.FAVORITE=
"thumb_up",on.FEEDBACK="alert_bubble",on.FEEDBACK_CAIRO="alert_bubble",on.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",on.FILL_ARROW_SOLID_UP_16="arrow_solid_up",on.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",on.FIRST_PAGE="chevron_left_end",on.FLAG_CAIRO="flag",on.FLASH_OFF="flash_slash",on.FLASH_ON="flash",on.FULL_HEART="heart",on.GAMING_LOGO="gaming",on.GAMING_LOGO_CAIRO="gaming",on.GO_TO_PAGE="arrow_right",on.GRID_ASYMMETRICAL="dashboard",on.GROUPS="person3",on.HAND_SWIPE_LEFT="gesture_swipe_left",
on.HAND_SWIPE_RIGHT="gesture_swipe_right",on.HAPPY="face_happy",on.HEALTH_AND_SAFETY="shield_health",on.HEART_BOX="heart_cube",on.HELP="help_circle",on.HELP_CAIRO="help_circle",on.HELP_OUTLINE="help_circle",on.HIDE="circle_slash",on.INCOGNITO_CAIRO="incognito",on.INFINITY_ICON="infinity",on.INFO="info_circle",on.INFO_OUTLINE="info_circle",on.INSERT_CHART="chart_bar_square",on.INSERT_CHART_OUTLINED="chart_bar_square",on.INSERT_PHOTO="image",on.KEEP="pin",on.KEEP_OFF="pin_slash",on.KEYBOARD="keyboard",
on.KEYBOARD_ARROW_DOWN="chevron_down",on.KEYBOARD_ARROW_UP="chevron_up",on.KIDS_BLOCK="circle_slash",on.LANGUAGE="globe",on.LAST_PAGE="chevron_right_end",on.LAUNCH="arrow_up_right",on.LEARNING="lightbulb",on.LEARNING_CAIRO="lightbulb",on.LIBRARY_ADD="bookmark",on.LIBRARY_IMAGE="image_stack",on.LIBRARY_MUSIC="audio_square_stack",on.LIBRARY_OUTLINE="play_square_stack",on.LIBRARY_REMOVE="bookmark",on.LIBRARY_SAVED="check_square_stack",on.LIKES_PLAYLIST="thumb_up",on.LIKES_PLAYLIST_CAIRO="thumb_up",on.LIKE=
"thumb_up",on.LIKE_SELECTED="thumb_up",on.LIST_QUEUE="queue",on.LIVE_CAIRO="live",on.LIVE_UNLISTED="link",on.LOCATION_ON="location_pin",on.LOCATION_PIN="location_pin",on.LOCATION_POINT="location_pin",on.LOOP="repeat",on.LOOP_ACTIVE="repeat",on.LOOP_ONE="repeat1",on.LOOP_ONE_ACTIVE="repeat1",on.MEET="google_meet",on.MEH="face_neutral",on.MEMBERSHIPS="memberships",on.MEMBERS_ONLY_MODE_OFF="text_bubble",on.MENU_FILTER="filter",on.MESSAGE="text_bubble",on.MESSAGE_BUBBLE_GEAR="bubble_gear",on.MESSAGE_BUBBLE_LEFT=
"text_bubble",on.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",on.MESSAGE_BUBBLE_OVERLAP="bubble_stack",on.MESSAGE_BUBBLE_QUESTION="help_bubble",on.MICROPHONE_ON="mic",on.MONETIZATION_ON="dollar_sign_circle",on.MONEY_FILL="dollar_sign_rectangle",on.MONEY_FILL_JPY="yen_sign_rectangle",on.MONEY_HAND="dollar_sign_circle_hand",on.MONEY_HEART="dollar_sign_heart",on.MOON_Z="sleep_timer",on.MORE_HORIZ="overflow_horizontal",on.MORE_VERT="overflow_vertical",on.MUSIC="audio",on.MUSIC_CAIRO="audio",on.MUSIC_EXPLICIT_BADGE=
"explicit",on.MUSIC_NEW_RELEASE="audio_badge",on.MUSIC_NOTE_SYMBOL="audio",on.MUSIC_SCISSORS="audio_scissors",on.MUSIC_SHUFFLE="shuffle",on.MY_CHANNEL="person_circle",on.MY_LOCATION="location_pin",on.MY_VIDEOS="video",on.MY_VIDEOS_CAIRO="video",on.NEWS_CAIRO="news",on.NEWS_STORY="news",on.NEXT="chevron_right",on.NOTE_ADD="bubble_pencil",on.NOTIFICATIONS="bell",on.NOTIFICATIONS_ACTIVE="bell_waves",on.NOTIFICATIONS_CAIRO="bell",on.NOTIFICATIONS_DONE_CHECKMARK="check",on.NOTIFICATIONS_INBOX="bell",on.NOTIFICATIONS_NONE=
"bell",on.NOTIFICATIONS_OFF="bell_slash",on.NOT_INTERESTED="circle_slash",on.OFFICIAL_ARTIST_BADGE="audio",on.OFFLINE_CLOUD="cloud_slash",on.OFFLINE_DOWNLOAD="download",on.OFFLINE_DOWNLOAD_CAIRO="download",on.OFFLINE_PAUSE="pause",on.OPEN_IN_NEW="arrow_up_right",on.OUTLINE_ADJUST="adjust",on.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",on.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",on.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",on.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",on.OUTLINE_BAG="bag",on.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",on.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",on.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",on.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",on.PAID="dollar_sign_circle",on.PAUSE_OUTLINED="pause",on.PAYMENT="credit_card",on.PEOPLE="person_child",on.PEOPLE_2="person2_rectangle",on.PEOPLE_GROUP="person3",on.PEOPLE_NOTE="bubble_asterisk",on.PERSON_2="person2",on.PERSON_ACCOUNT="person_square_stack",on.PERSON_MINUS="person_x",on.PERSON_MUSIC="person_audio",on.PERSON_RADAR="person_waves",
on.PERSON_RADAR_FILLED="person_waves",on.PERSON_SETTING="person_gear",on.PHONE="phone",on.PHONE_DOWNLOAD="mobile_arrow_down",on.PICTURE_IN_PICTURE="picture_in_picture",on.PLAYABLES_LOGO="playables",on.PLAYABLES_LOGO_CAIRO="playables",on.PLAYLISTS="playlist",on.PLAYLISTS_CAIRO="playlist",on.PLAYLIST_ADD_CHECK="bookmark",on.PLAY_ALL="play",on.PLAY_ARROW="play",on.PLAY_ARROW_CIRCLE="play_circle",on.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",on.PLAY_CIRCLE="play_circle",on.PLAY_OUTLINED="play_circle",
on.PODCAST_ADD="podcast_add",on.PODCAST_CHECK="podcast_check",on.PRIVACY_INFO="shield_x",on.PRIVACY_PRIVATE="lock",on.PRIVACY_PUBLIC="globe",on.PRIVACY_UNLISTED="link",on.PROMOTE="megaphone",on.PURCHASES="price_tag",on.PURCHASE_SUPER_CHAT="super_chat",on.PURCHASE_SUPER_STICKER="super_sticker",on.QUESTION_ANSWER="help_bubble",on.QUESTION_CIRCLE="help_circle",on.QUEUE_PLAY_LAST="queue_last",on.QUEUE_PLAY_NEXT="queue_next",on.QUOTATION_MARK="quote",on.RADAR_LIVE="live",on.REMOVE="minus_circle",on.REMOVE_CIRCLE=
"minus_circle",on.REMOVE_CIRCLE_OUTLINE="minus_circle",on.REMOVE_FROM_HISTORY="minus_circle",on.REMOVE_FROM_PLAYLIST="minus_circle",on.REMOVE_MODERATOR="shield_slash",on.REPLAY="arrow_counterclockwise",on.REPLAY_10="skip10_back",on.REPLAY_ARROW="replay",on.REPORT_PROBLEM="alert_triangle",on.RSS_OFF="rss_slash",on.SAD="face_sad",on.SAVE_PLAYLIST="bookmark",on.SCHEDULE="clock",on.SCHOOL="graduation_cap",on.SCREEN_DEFAULT="player_default",on.SCREEN_FULLSCREEN="player_full_enter",on.SCREEN_LIGHT="ambient_mode",
on.SCREEN_ROTATION="rotate_portrait",on.SCREEN_SWITCH="player_switch",on.SCREEN_THEATRE="player_theater",on.SEARCH_CAIRO="search",on.SEARCH_HISTORY="history",on.SELL="price_tag",on.SETTINGS="gear",on.SETTINGS_CAIRO="gear",on.SETTINGS_LIGHT="gear",on.SETTINGS_MATERIAL="gear",on.SETTINGS_REMOTE="remote_waves",on.SHARE="share",on.SHARE_ARROW="share",on.SHARE_CAIRO="share",on.SHIELD="shield_x",on.SHIELD_EMPTY="shield",on.SHIELD_OFF="shield_slash",on.SHIELD_WITH_AVATAR="person_shield",on.SHOPPING_BAG=
"bag",on.SHOPPING_BAG_CAIRO="bag",on.SHOPPING_CART="cart",on.SHORTS_COMMENT="text_bubble",on.SHORTS_DISLIKE="thumb_down",on.SHORTS_LIKE="thumb_up",on.SHORTS_SHARE="share",on.SKIP_FORWARD_30="skip30_forward",on.SLASH_CIRCLE_LEFT="circle_slash",on.SLASH_CIRCLE_RIGHT="circle_slash",on.SLOW_MODE="bubble_slow",on.SLOW_MODE_OFF="text_bubble",on.SOCIAL="person_child",on.SPARKLE="sparkles",on.SPARK_IMAGE="image_spark",on.SPARK_PENCIL="pencil_spark",on.SPARK_RADAR="spark_waves",on.SPARK_VIDEO="video_spark",
on.SPEAKER_GROUP="speaker_stack",on.SPEAKER_OFF="speaker_slash",on.SPEED_1X="n1x",on.SPEED_1_POINT_2X="n1point2x",on.SPEED_1_POINT_5X="n1point5x",on.SPEED_1_POINT_8X="n1point8x",on.SPEED_2X="n2x",on.SPONSORSHIP_STAR="star_circle",on.SPORTS="basketball",on.SPOTLIGHT="spotlight",on.STAFF_PICK="spotlight",on.START_DVR="add",on.STAR_BORDER="star",on.STAR_CIRCLE_RIBBON="memberships_gift",on.STAR_HALF="star_full_half",on.STAR_SHOOTING="hype",on.STICKER="sticker",on.STICKER_EMOTICON="face_happy",on.STOP_DVR=
"stop",on.SUBSCRIBE="youtube",on.SUBSCRIBE_PLUS="add",on.SUBSCRIPTION_MANAGER="gear",on.SUPERSTAR="super_star",on.SUPERVISOR_ACCOUNT="person_child",on.SUPER_CHAT_FOR_GOOD="hands_heart",on.SWAP_HORIZ="arrow_swap_horizontal",on.SWITCH_ACCOUNTS="person_square_stack",on.TAB_ACCOUNT="person",on.TAB_ACTIVITY="bell",on.TAB_BOOKMARK="bookmark",on.TAB_EXPLORE="compass",on.TAB_HOME="home",on.TAB_HOME_CAIRO="home",on.TAB_INBOX="mail",on.TAB_LIKED="thumb_up",on.TAB_MUSIC_PREMIUM="youtube_music",on.TAB_SHORTS=
"shorts",on.TAB_SHORTS_CAIRO="shorts",on.TAB_SUBSCRIPTIONS="subscriptions",on.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",on.TAB_TRENDING="trending",on.TARGET="target",on.TARGET_ADD="target_add",on.TEMPLATE_ADD="template_add",on.TEXT="font",on.TICKET_STAR="star_ticket",on.TIMER="stopwatch",on.TRENDING_CAIRO="trending",on.TRENDING_DOWN="arrow_trend_down",on.TRENDING_UP="arrow_trend_up",on.TROPHY_CAIRO="trophy",on.TROPHY_CELEBRATIONS="fireworks",on.TROPHY_STAR="star_trophy",on.TUNE="adjust",on.TV_OFF="tv_slash",
on.UNBLOCK_USER="minus_circle",on.UNFAVORITE="thumb_down",on.UNLIMITED="youtube",on.UNPLUGGED_LIVE_GUIDE="live",on.UNPLUGGED_SPORTS="eye_slash",on.UPLOADS="play_square_stack",on.UP_ARROW="arrow_up",on.VERTICAL_ALIGN_BOTTOM="chevron_down_end",on.VERTICAL_ALIGN_TOP="chevron_up_end",on.VERY_HAPPY="face_very_happy",on.VERY_SAD="face_very_sad",on.VIDEOS="play_circle",on.VIDEO_CALL="video_camera_add",on.VIDEO_LIBRARY_WHITE="play_square_stack",on.VIDEO_QUALITY_4K="n4k",on.VIDEO_QUALITY_8K="n8k",on.VIDEO_YOUTUBE=
"youtube",on.VIEW_LIST_CAIRO="view_list",on.VIEW_MODULE="view_column3_row2",on.VISIBILITY="eye",on.VISIBILITY_OFF="eye_slash",on.VOLUME_DOWN="volume_min",on.VOLUME_MUTE="volume_mute",on.VOLUME_OFF="volume_mute",on.VOLUME_STABLE="stable_volume",on.VOLUME_UP="volume_max",on.WALLPAPER="image",on.WARNING="alert_triangle",on.WATCH_HISTORY="history",on.WATCH_HISTORY_CAIRO="history",on.WATCH_LATER="clock",on.WATCH_LATER_CAIRO="clock",on.WATCH_RELATED_MIX="mix",on.WHAT_TO_WATCH="home",on.YOUTUBE_LINKED_TV=
"tv_mobile",on.YOUTUBE_MUSIC_MONOCHROME="youtube_music",on.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",on.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",on.YOUTUBE_SHORTS_ARROW_UP="arrow_up",on.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",on.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",on.YOUTUBE_SHORTS_OUTLINE_24="shorts",on.YT_OUTLINE_MUSIC_24="audio",on);var lN6={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var D3G={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,
24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],
[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,
2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,
1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,
2,24]]};var CoP={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},WQ=function(D){this.iconUrlProvider=D};
WQ.prototype.resolveIcon=function(D,C){var X=CoP[D.iconName.toUpperCase()];X&&(D.iconName=X);var c=D.iconName;c=c.replace(/-/g,"_");D=Object.assign({},D,{iconName:this.mapIconTypeToStandardName(c,!!X)||c.toLowerCase()});if(_.b("enable_web_delhi_icons")||X){var W;return S8R(D3G,D,((W=this.iconUrlProvider)==null?void 0:W.getYtStandardUrl)||ILR,C)}var p;return S8R(lN6,D,((p=this.iconUrlProvider)==null?void 0:p.getYtStandardUrl)||aLr,C)};
WQ.prototype.mapIconTypeToStandardName=function(D,C){return _.b("enable_web_delhi_icons")||C?RKX[D.toUpperCase()]:dAt[D.toUpperCase()]};
WQ[kz]=[_.vK(Msw)];var Xdt=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),cp1=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),oXt=function(D){this.urlProvider=this.iconUrlProvider=D};
_.h(oXt,WQ);
oXt.prototype.resolveIcon=function(D,C){D.iconName==="youtube_logo"&&(D.iconName="yt-logo-updated");if(D.iconName==="youtube_premium_logo"||D.iconName==="youtube_red_logo")D.iconName="yt-logo-red-updated";var X=Object.assign({},D);D.iconName==="menu"&&(_.b("enable_web_delhi_icons")||(X.iconName="bars_3"),X.iconStyle="youtube_outline");D.iconSetName==="socialNetworksRound"&&(D.iconName==="mail"&&(X.iconName="email"),D.iconName==="embed"&&(X.iconSize=60));D.iconName==="more"&&(X.iconName="overflow_horizontal");
D.iconName==="fullscreen"&&(X.iconName="screen_full");D.iconName==="premium_standalone"&&(X.iconName="premium_standalone_cairo");_.b("enable_connect_icon_update_web")&&D.iconName==="account_linked"&&(X.iconName="circles_overlap_check",X.iconStyle="youtube_fill");_.b("enable_connect_icon_update_web")&&D.iconName==="account_unlinked"&&(X.iconName="circles_overlap",X.iconStyle="youtube_outline");Xdt.has(D.iconName)&&(X.iconStyle="youtube_fill");if(_.b("enable_web_delhi_icons")){D.iconName==="playlist_add"&&
(X.iconName="bookmark");D.iconName==="offline_pin"&&(X.iconName="arrow_down_circle",X.iconStyle="youtube_fill");if(D.iconName==="circles_overlap_check"||X.iconName==="circles_overlap_check")X.iconName="account_link",X.iconStyle="youtube_fill";cp1.has(D.iconName)&&(X.iconName+="_updated")}D=Object.assign({},X,{iconName:(WQ.prototype.mapIconTypeToStandardName.call(this,X.iconName)||X.iconName).toLowerCase()});var c;return(D=S8R(zKk,D,((c=this.urlProvider)==null?void 0:c.getUrl)||O83,C))?D:WQ.prototype.resolveIcon.call(this,
X,C)};
oXt[kz]=[_.vK(Msw)];_.WeG=1;var pD=function(D,C){this.JSC$17604_commandHandler=D;this.innertubeTransportService=C};
_.h(pD,bB);pD.prototype.resolveCommand=function(D,C){var X=this,c,W,p;return _.I(function(g){return(c=_.r(D,L0c))?g.return(pdX(X,c,(W=C)==null?void 0:(p=W.form)==null?void 0:p.element)):g.return()})};
var pdX=function(D,C,X){C={profileCardContext:C.profileCardContext,profileOwnerExternalChannelId:C.profileOwnerExternalChannelId};var c=_.dJ(YkJ);return _.vV(D.innertubeTransportService,C,c).then(function(W){if(!W)throw new _.Zf("GetProfileCard failed");if(W=W.popupCommand){D.JSC$17604_commandHandler.resolveCommand(W,{form:{element:X}});_.Gm(_.iO(),66557);W=W==null?void 0:W.clickTrackingParams;var p=_.xr();W&&p&&_.iO().graftServerVe(W,p)}})};
pD[kz]=[_.uX,_.Bl];var SQ=function(){};
_.h(SQ,bB);SQ.prototype.resolveCommand=function(D){var C,X;return _.I(function(c){C=_.r(D,nEd);if(!C)return c.return();X=Number(C.enableDelayedPacfLoggingTvMs);if(isNaN(X)){var W=q0();zAg(W,C,0)}else zAg(q0(),C,X);_.t_(c)})};_.Ub=function(){};
_.h(_.Ub,bB);
_.Ub.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P;return _.I(function(k){c=_.r(D,w65);p=(W=C.form)==null?void 0:W.element;a=(g=p)==null?void 0:g.closest("ytd-enforcement-message-view-model");if(!c||!a)return k.return();X.allowAdsAction||(O=c.fundingChoiceInstructionPageUrl,X.allowAdsAction=new eaC(window,_.fq(O)));var u=X.allowAdsAction;u.wallElement=a;u.allowAdsPopup.style.setProperty("display","flex","important");var Q=u.scrollManager;Q.isScrollingEnabled&&(Q.originalBodyOverflow=Q.JSC$10165_domHelper.JSC$9491_document_.body.style.overflow,
Q.JSC$10165_domHelper.JSC$9491_document_.body.style.overflow="hidden",Q.isScrollingEnabled=!1);u.wallElement.style.setProperty("display","none","important");VR5(u.accessibilityManager,u.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((P=X.allowAdsAction.allowAdsPopup)&&P instanceof HTMLElement)for(u=_.U(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Q=u.next();!Q.done;Q=u.next()){var B=_.U(Q.value);Q=B.next().value;B=B.next().value;
P.style.setProperty(Q,B)}_.t_(k)})};
_.Ub.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var gC=function(){};
_.h(gC,bB);gC.prototype.resolveCommand=function(D){var C;return _.I(function(X){C=_.r(D,Tyd);if(!C)return X.return();bDm(D);_.t_(X)})};_.an=new _.P6("AI_CHAT_CONTROLLER_TOKEN");var In=function(D,C,X,c){this.JSC$17619_commandHandler=D;this.store=C;this.getPlayerCb=X;this.aiChatController=c};
_.h(In,bB);In.prototype.pageContext=function(){var D=_.TU.currentPageSubTypeSelector(this.store.getState()),C;return(C=this.aiChatController)==null?void 0:_.SFG(C,D)};
In.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g;return _.I(function(a){X=_.r(D,qLd);W=(c=X)==null?void 0:c.command;if(!W)return a.return();switch((g=X)==null?void 0:g.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var O="youchat-"+Date.now(),P;var k=String(Math.floor(((P=C.getPlayerCb())==null?void 0:P.getCurrentTime())||0)*1E3);p={inputComposerFormData:{clientMessageId:O,playerOffsetMs:k,pageContext:C.pageContext()}}}if(!p)return a.return();C.JSC$17619_commandHandler.resolveCommand(W,
{form:{formData:p}});_.t_(a)})};
In[kz]=[_.uX,_.gp,nV5,_.vK(_.an)];var U31=new _.P6("SESSION_STORAGE");var Ob=function(D){this.sessionStorage=D("conversations")};
_.h(Ob,bB);Ob.prototype.resolveCommand=function(D){var C=this,X;return _.I(function(c){X=_.r(D,fFf);if(!X)return c.return();X.conversationId?C.sessionStorage.set("conversation_id",X.conversationId):C.sessionStorage.remove("conversation_id");_.t_(c)})};
Ob[kz]=[U31];var A4=function(D){this.JSC$17631_commandHandler=D};
_.h(A4,bB);
A4.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1){X=_.r(D,vZ4);if((c=X)==null||!c.text||!navigator.clipboard)return k.return();_.KK(k,2);return k.yield(navigator.clipboard.writeText(X.text),4)}if(k.nextAddress!=2){if(!X.successActions||X.successActions.length===0)return k.return();W=_.U(X.successActions);for(p=W.next();!p.done;p=W.next())g=p.value,C.JSC$17631_commandHandler.resolveCommand(g);return _.SR(k,0)}_.Eu(k);if(!X.failureActions||X.failureActions.length===
0)return k.return();a=_.U(X.failureActions);for(O=a.next();!O.done;O=a.next())P=O.value,C.JSC$17631_commandHandler.resolveCommand(P);_.t_(k)})};
A4[kz]=[_.uX];var PQ=function(D){this.JSC$17635_commandHandler=D};
_.h(PQ,bB);
PQ.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q;return _.I(function(B){switch(B.nextAddress){case 1:c=_.r(D,fYe);if(!c)return B.return();_.KK(B,2);if(!c.imageBytes&&!c.imageUrl)throw Error("Bi");if(!c.imageUrl){if(c.imageBytes){p=c.imageBytes;g=p.replace(/-/g,"+").replace(/_/g,"/");var K=$eZ(g);W=_.J2(K)}B.jumpTo(4);break}return B.yield(fetch(c.imageUrl),5);case 5:return a=B.yieldResult,B.yield(a.blob(),6);case 6:O=B.yieldResult,W=_.J2(O);case 4:u=(P=C)==null?void 0:(k=P.form)==
null?void 0:k.element;Q=document.createElement("a");ff(Q,W);u.appendChild(Q);Q.download="";Q.click();u.removeChild(Q);URL.revokeObjectURL(_.Z6(W));c.successCommand&&X.JSC$17635_commandHandler.resolveCommand(c.successCommand);_.SR(B,0);break;case 2:_.Eu(B),c.errorCommand&&X.JSC$17635_commandHandler.resolveCommand(c.errorCommand),_.t_(B)}})};
PQ[kz]=[_.uX];var $k=function(D){this.store=D};
_.h($k,bB);$k.prototype.resolveCommand=function(D){var C=this,X,c,W;return _.I(function(p){c=(X=_.r(D,_.MBd))==null?void 0:X.entityBatchUpdate;if(!c)return p.jumpTo(0);W=Object.assign({},c,{mutations:[].concat(_.VB(c.mutations||[]))});return p.yield(_.$P(W,C.store),0)})};
$k[kz]=[pn];var gXN=function(D){this.JSC$17642_commandHandler=D;this.feedbackDialogMap=new Map};
gXN.prototype.openDialog=function(D,C){(D=this.feedbackDialogMap.get(D))&&this.JSC$17642_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:D}},C)};
gXN[kz]=[_.uX];var vQ=new _.P6("FEEDBACK_CONTROLLER_TOKEN");var i3=new _.P6("APP_STORE_TOKEN");var kk=function(D,C,X){this.store=D;this.controller=C;this.JSC$17645_commandHandler=X};
_.h(kk,bB);kk.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q;return _.I(function(R){if(R.nextAddress==1){c=_.r(D,_.tT);if(p=(W=c)==null?void 0:W.contentId)for(a=_.U(((g=c)==null?void 0:g.actions)||[]),O=a.next();!O.done;O=a.next())P=O.value,aIp(X,P,p);Q=(k=C)==null?void 0:(u=k.form)==null?void 0:u.element;return R.yield(_.cE(Q,[D,{impression:(B=C)==null?void 0:B.disableClickTracking}]).catch(function(){}),2)}K=R.yieldResult;
if((L=K)==null?0:(t=L.data)==null?0:(Y=t.feedbackResponses)==null?0:Y.length)(J=(y=K.data.feedbackResponses[0])==null?void 0:y.followUpDialog)&&p&&(T=X.controller)!=null&&T.feedbackDialogMap.set(p,J),(q=(H=K.data.feedbackResponses[0])==null?void 0:H.isThumbnailReporting)&&X.JSC$17645_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.t_(R)})};
var aIp=function(D,C,X){var c=_.r(C,_.pt);if(c){c=_.U(c.commands||[]);for(var W=c.next();!W.done;W=c.next())aIp(D,W.value,X)}_.r(C,_.zS)&&D.store.dispatch(_.bK("commandEntity",Dud(X),{key:X,command:C}));_.r(C,YL5)&&D.store.dispatch(_.bK("commandEntity",Dud(X),{key:X,command:C}))};
kk[kz]=[i3,vQ,_.uX];var u3=function(D){this.controller=D};
_.h(u3,bB);u3.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g;return _.I(function(a){c=_.r(D,_.Xf);p=(W=c)==null?void 0:W.targetId;if(((g=c)==null?void 0:g.signal)!=="TELL_US_WHY"||!p)return a.return();X.controller.openDialog(p,C);_.t_(a)})};
u3[kz]=[vQ];var QY=function(D){this.store=D};
_.h(QY,bB);QY.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P;return _.I(function(k){c=_.r(D,vDn);p=(W=c)==null?void 0:W.contentId;O=(g=C)==null?void 0:(a=g.form)==null?void 0:a.element;P=_.cE(O,[D]);p&&X.undo(p);return k.yield(P,0)})};
QY.prototype.undo=function(D){this.store.dispatch(_.bK("commandEntity",Dud(D),{key:D,command:void 0}))};
QY[kz]=[i3];var BQ=function(D){this.JSC$17657_commandHandler=D};
_.h(BQ,bB);BQ.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P;return _.I(function(k){X=_.r(D,AfJ);c=X.flowStateKey;W=X.validationFailureCommand;p=X.submitValidFormCommand;g=D2o(_.qo,[c||""]);a=_.r(g,vOg);((O=a)==null?0:O.isValid)&&p&&C.JSC$17657_commandHandler.resolveCommand(p);((P=a)==null?0:P.isValid)||!W||C.JSC$17657_commandHandler.resolveCommand(W);_.t_(k)})};
BQ[kz]=[_.uX];var b3=function(D){this.innertubeTransportService=D};
_.h(b3,bB);b3.prototype.resolveCommand=function(D,C){var X=this,c;return _.I(function(W){return W.yield(_.Jl(X.innertubeTransportService,D,(c=C)==null?void 0:c.form).then(function(p){var g,a;C==null||(g=C.commandController)==null||(a=g.onSuccess)==null||a.call(g,D,p)},function(p){var g,a;
C==null||(g=C.commandController)==null||(a=g.onServerError)==null||a.call(g,D,p)}),0)})};
b3[kz]=[_.Bl];var rC=function(){};
_.h(rC,bB);rC.prototype.resolveCommand=function(D){var C,X,c,W;return _.I(function(p){if(C=_.r(D,_.IXk)){if(X=C.gtmId)c=_.q6("GL",""),_.lP(X,c);(W=C.gtmData)&&_.De(W)}_.t_(p)})};var KD=function(D,C,X){this.innertubeTransportService=D;this.JSC$17668_actionRouter=C;this.JSC$17668_screenManager=X};
_.h(KD,bB);KD.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){X=_.r(D,Uid);if(!X)return W.return();c=X.command;if(!c)return W.return();C.JSC$17668_actionRouter.triggerAction("yt-insert-rich-section-action",X);return W.yield(_.Jl(C.innertubeTransportService,c,{disableCache:!0}).then(function(p){D.clickTrackingParams&&(p==null?0:p.trackingParams)&&C.JSC$17668_screenManager.graftServerVe(p.trackingParams,_.bO(D.clickTrackingParams))}),0)})};
KD[kz]=[_.Bl,mQ,_.X5];i8Z.bind(null,rQ);var IIk=i8Z.bind(null,UPM);uyR.bind(null,rQ);var Oyp=uyR.bind(null,UPM);Bfj.bind(null,rQ);var ApU=Bfj.bind(null,UPM);var h4=function(){};
_.h(h4,bB);
h4.prototype.resolveCommand=function(D){var C,X,c,W,p,g,a,O,P,k;return _.I(function(u){C=_.r(D,zUe);if(!C)return u.return();c=((X=C.operations)==null?void 0:X.operations)||[];W=_.U(c);for(p=W.next();!p.done;p=W.next())if(g=p.value,g.insertItemSectionContent){var Q=g.insertItemSectionContent,B=Q.contents||[];Q.insertByPositionInSection?IIk(Q.insertByPositionInSection.sectionTargetId,B,Q.insertByPositionInSection.position):Q.insertByRelativePositionInSection&&Q.insertByRelativePositionInSection.sectionTargetId&&Q.insertByRelativePositionInSection.itemTargetId&&
Oyp(Q.insertByRelativePositionInSection.sectionTargetId,Q.insertByRelativePositionInSection.itemTargetId,B,Q.insertByRelativePositionInSection.relativePosition)}else g.replaceSection?(Q=g.replaceSection,B={},Q.replaceByTargetId?B=Q.replaceByTargetId:Q.replaceByGroupId&&(B={targetId:Q.replaceByGroupId.groupId,newContent:Q.replaceByGroupId.newContent,undoKey:""}),B.newContent&&I9g(B.targetId,{continuationItems:[B.newContent]})):g.removeItem?(Q=g.removeItem,Q.removeByTargetId&&Q.sectionTargetId&&ApU(Q.sectionTargetId,
Q.removeByTargetId.targetIds||[])):g.removeSection&&(g.removeSection.removeByTargetId?(a=void 0,Pot(((a=g.removeSection)==null?void 0:a.removeByTargetId.targetIds)||[])):g.removeSection.removeByGroupId&&(O=void 0,Pot(((O=g.removeSection)==null?void 0:O.removeByGroupId.groupIds)||[])));k=((P=C.operations)==null?void 0:P.scrollConfig)||{};$36(k);_.t_(u)})};
var Pot=function(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next())I9g(C.value,{continuationItems:[]})},$36=function(D){if(D.scrollToItem){var C=D.scrollToItem.item||{},X=C.itemTargetId;
C=C.sectionTargetId;if(X&&C){var c=document.querySelector("[data-target-id="+C+"]"),W=c==null?void 0:c.querySelector("[data-target-id="+X+"]");c&&W&&setTimeout(function(){var p=W.offsetTop-c.offsetTop,g;if(((g=D.scrollToItem)==null?void 0:g.scrollPosition)==="SCROLL_POSITION_CENTER")p-=c.offsetHeight/2,p+=W.offsetHeight/2;else{var a;((a=D.scrollToItem)==null?void 0:a.scrollPosition)==="SCROLL_POSITION_END"&&(p-=c.offsetHeight,p+=W.offsetHeight)}c.scroll({top:p,behavior:"smooth"})},100)}}};var xk=new _.P6("CLIENT_NAME_TOKEN");var vXU=new _.P6("DEFAULT_STORE_EXPIRATION_TOKEN");var ERr=new _.P6("CLIENT_LOCATION_SERVICE_TOKEN");var LD=function(D,C,X){this.clientName=D||_.q6("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=C||_.Vt.getInstance();this.JSC$17696_commandHandler=X||_.I3.instance};
_.h(LD,bB);LD.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){c=(X=_.r(D,sdc))==null?void 0:X.onComplete;C.clientLocationService.clearLocationPlayabilityToken(C.clientName);c&&C.JSC$17696_commandHandler.resolveCommand(c);_.t_(W)})};
LD[kz]=[xk,ERr,_.uX];var eQ=function(D){this.innertubeTransportService=D};
_.h(eQ,bB);eQ.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g;return _.I(function(a){p=(c=C)==null?void 0:(W=c.form)==null?void 0:W.element;return a.yield(_.Jl(X.innertubeTransportService,D,(g=C)==null?void 0:g.form).then(function(O){QW3(p,new CustomEvent("yt-service-request-completed"),{data:O},_.q6("openPopupConfig"))}),0)})};
eQ[kz]=[_.Bl];var Eb=function(){};
_.h(Eb,bB);Eb.prototype.resolveCommand=function(D){var C,X;return _.I(function(c){C=_.r(D,QZe);X=document.querySelector("mini-app-container-view-model");if(!C||!X)return c.return();C.isPlaying?X.dispatchEvent(new Event("play")):X.dispatchEvent(new Event("pause"));_.t_(c)})};var t4=function(){};
_.h(t4,bB);t4.prototype.resolveCommand=function(D){var C,X,c,W,p,g,a;return _.I(function(O){C=_.r(D,Wb4);if((X=C)==null||!X.paramKeys)return O.return();c=C.paramKeys;W=_.Xg(window.location.href);p=_.U(c);for(g=p.next();!g.done;g=p.next())a=g.value,W.JSC$10197_queryData_.remove(a);window.history.replaceState(window.history.state,document.title,W.toString());_.t_(O)})};var iyY=function(){this.dropdownMap=new Map};_.kvo=new _.P6("DROPDOWN_CONTROLLER_TOKEN");var N7=function(D){this.controller=D};
_.h(N7,bB);N7.prototype.resolveCommand=function(D){var C=this,X,c,W,p;return _.I(function(g){X=_.r(D,Ec4);if(!X)return g.return();c=X;W=c.dropdownId;p=c.selectedOptionIndex;if(W===void 0||p===void 0)return g.return();var a=C.controller.dropdownMap.get(W);a&&a(p);_.t_(g)})};
N7[kz]=[_.kvo];var Yk=function(D){this.controller=D};
_.h(Yk,bB);Yk.prototype.resolveCommand=function(D){var C=this,X;return _.I(function(c){return(X=_.r(D,TX4))?c.yield(C.controller.closeDialog(),0):c.return()})};
Yk[kz]=[_.U_];var yY=function(D){this.controller=D};
_.h(yY,bB);yY.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){X=_.r(D,hb5);if(!X)return W.return();var p,g=X.panelIdentifier||((p=X.identifier)==null?void 0:p.tag);if(!g)throw Error("Ci");return(c=g)?W.yield(C.controller.hidePanel({identifier:c}),0):W.jumpTo(0)})};
yY[kz]=[_.p6];var nD=function(D){this.controller=D};
_.h(nD,bB);nD.prototype.resolveCommand=function(D){var C=this,X;return _.I(function(c){return(X=_.r(D,aQJ))?c.yield(C.controller.closeSheet(),0):c.return()})};
nD[kz]=[_.S0];var wC=function(D,C){this.innertubeTransportService=D;this.controller=C};
_.h(wC,bB);wC.prototype.resolveCommand=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return X=_.r(D,xk5),(c=X)!=null&&c.panelId?g.yield(C.controller.getReloadContinuation(X.panelId),2):g.return();if(g.nextAddress!=3)return(W=g.yieldResult)?g.yield(_.Jl(C.innertubeTransportService,D,{continuation:W}),3):g.return();p=g.yieldResult;return g.yield(C.controller.updatePanel({identifier:X.panelId,panelContents:p.content,shouldFocus:!1}),0)})};
wC[kz]=[_.Bl,_.p6];var Fh=function(D,C,X){this.innertubeTransportService=D;this.JSC$17738_screenManager=C;this.JSC$17738_commandHandler=X};
_.h(Fh,bB);
Fh.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1){X=_.r(D,_.uCJ);if(!X)return O.return();if(X.commands)for(c=_.U(X.commands),W=c.next();!W.done;W=c.next())p=W.value,C.JSC$17738_commandHandler.resolveCommand(p,{disableClickTracking:!0});g=_.bO(D.clickTrackingParams);_.Gm(C.JSC$17738_screenManager,21760,g,{layer:7,parentLayer:0});return O.yield(_.Jl(C.innertubeTransportService,D),2)}a=O.yieldResult;if(!a)return O.return();C.JSC$17738_screenManager.graftServerVe(a.trackingParams,g,
7);_.t_(O)})};
Fh[kz]=[_.Bl,_.X5,_.uX];var Z3=new _.P6("PANEL_LOADING_STRATEGY_TOKEN");var G$=function(D,C){this.controller=D;this.panelLoadingStrategy=C};
_.h(G$,bB);
G$.prototype.resolveCommand=function(D,C){var X=this,c,W,p;return _.I(function(g){c=_.r(D,Oux);if((W=c)==null||!W.panelLoadingStrategy)return g.return();p=function(a){var O,P,k,u,Q,B,K,L,t,Y;return _.I(function(y){P=_.r((O=a.dialogViewModel)==null?void 0:O.header,tvc);k={viewModel:a.dialogViewModel};u={};if(K=_.b("web_enable_dialog_header_label")?(Q=P)==null?void 0:(B=Q.headline)==null?void 0:B.content:void 0)u.ariaLabel=K;c.dismissOnBackgroundTap===!1&&(u.isModal=!0);return a.dialogViewModel?y.yield(X.controller.openDialog(k,
(Y=(L=C)==null?void 0:(t=L.form)==null?void 0:t.element)!=null?Y:document.body,u),0):y.return()})};
return g.yield(X.panelLoadingStrategy.execute({command:D,data:c.panelLoadingStrategy,renderFn:p,createScreenConfig:{layer:4}}),0)})};
G$[kz]=[_.U_,Z3];var VY=function(D,C,X){this.innertubeTransportService=D;this.controller=C;this.JSC$17758_screenManager=X};
_.h(VY,bB);
VY.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y;return _.I(function(y){switch(y.nextAddress){case 1:c=_.r(D,_.E3);if(!c)return y.return();var J,T=c.panelIdentifier||((J=c.identifier)==null?void 0:J.tag);if(!T)throw Error("Ci");W=T;return y.yield(X.controller.isVisible(W,!0),2);case 2:if((p=y.yieldResult)&&c.blockIfPanelOpen)return y.return();O=(a=(g=X.controller).getPanelContent)==null?void 0:a.call(g,W);if(!(J=O))if(c){var H;J=((H=c.globalConfiguration)==null?void 0:
H.initialState)||c.engagementPanel;if(H=!J)H=!!(c==null?0:(T=c.engagementPanelPresentationConfigs)==null?0:T.engagementPanelPopupPresentationConfig);H&&(J=_.b8J(c.panelIdentifier,c.identifier))}else J=void 0;P=J;k=c.engagementPanelPresentationConfigs;u=c.engagementPanelExtras;return y.yield(X.controller.showPanel({identifier:W,panelContents:P,config:k,extras:u,target:(Q=C)==null?void 0:(B=Q.form)==null?void 0:B.element}),3);case 3:if(!c.globalConfiguration){y.jumpTo(0);break}if(c.globalConfiguration.reuseModelAndState&&
_.b("enable_ai_companion")&&(t=(L=(K=X.controller).getPanelContent)==null?void 0:L.call(K,W)))return y.return();_.Gm(X.JSC$17758_screenManager,32633);return y.yield(_.Jl(X.innertubeTransportService,D),5);case 5:return Y=y.yieldResult,X.JSC$17758_screenManager.graftServerVe(Y.trackingParams),y.yield(X.controller.updatePanel({identifier:W,panelContents:Y.content,shouldFocus:!0,extras:u,updatePanelContinuationData:Y.updatePanelContinuationData}),0)}})};
VY[kz]=[_.Bl,_.p6,_.X5];var T$=function(D,C){this.controller=D;this.panelLoadingStrategy=C};
_.h(T$,bB);
T$.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K;return _.I(function(L){c=_.r(D,_.rU);if((W=c)==null||!W.panelLoadingStrategy)return L.return();a=uEX(X.controller,(p=C)==null?void 0:(g=p.form)==null?void 0:g.element);P=(O=c.contextualSheetPresentationConfig)==null?void 0:O.position;u=(k=c.contextualSheetPresentationConfig)==null?void 0:k.hoverConfig;B=(Q=c.contextualSheetPresentationConfig)==null?void 0:Q.expandToFullWidth;K=function(t){return _.I(function(Y){if(!t.sheetViewModel)return Y.return();if(u){var y=
X.controller;y.shouldPreventClosingWhileHovered=!!u.preventCloseWhileHovered;var J;y.hideDelayMs=(J=u.hideDelayMs)!=null?J:0}return Y.yield(X.controller.openSheet({viewModel:t.sheetViewModel,sheetPosition:P,expandToFullWidth:B},a),0)})};
return L.yield(X.panelLoadingStrategy.execute({command:D,data:c.panelLoadingStrategy,renderFn:K,createScreenConfig:{layer:0}}),0)})};
T$[kz]=[_.S0,Z3];var HQ=function(D,C){this.controller=D;this.JSC$17769_commandHandler=C};
_.h(HQ,bB);HQ.prototype.resolveCommand=function(D,C){var X=this,c,W,p;return _.I(function(g){if(g.nextAddress==1){c=_.r(D,ebx);var a=_.r(c.showCommand,_.E3),O,P,k=(P=a==null?void 0:a.panelIdentifier)!=null?P:a==null?void 0:(O=a.identifier)==null?void 0:O.tag;if(!k)throw Error("Di");W=k;return g.yield(X.controller.isVisible(W),2)}return(p=g.yieldResult)?g.yield(X.controller.hidePanel({identifier:W}),0):g.yield(X.JSC$17769_commandHandler.resolveCommand(c.showCommand,C),0)})};
HQ[kz]=[_.p6,_.uX];var J4=function(D,C,X){this.innertubeTransportService=D;this.controller=C;this.JSC$17772_screenManager=X};
_.h(J4,bB);
J4.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R;return _.I(function(ph){switch(ph.nextAddress){case 1:return c=X=_.r(D,Y7f),W=c.targetPanelIdentifier,p=c.contentSourcePanelIdentifier,g=c.globalConfiguration,((a=W)==null?0:a.tag)&&((O=p)==null?0:O.tag)?g?ph.yield(C.controller.showPanel({identifier:W.tag,panelContents:_.b8J(W.tag,W)}),5):ph.yield((Q=(u=C.controller).getPanel)==null?void 0:Q.call(u,p.tag),4):ph.return();case 4:B=ph.yieldResult;P=(K=B)==
null?void 0:(t=(L=K).getPanelContent)==null?void 0:t.call(L);ph.jumpTo(3);break;case 5:return ph.yield(_.Jl(C.innertubeTransportService,D),6);case 6:Y=ph.yieldResult,((y=Y)==null?0:y.trackingParams)&&C.JSC$17772_screenManager.graftServerVe(Y.trackingParams),P=(J=Y)==null?void 0:J.content,k=(T=Y)==null?void 0:T.updatePanelContinuationData;case 3:if(q=(H=P)==null?void 0:H.engagementPanelSectionListRenderer)return ph.yield(C.controller.showPanel({identifier:W.tag,panelUpdatableFields:{content:q.content,
secondaryHeaderContent:(R=q.header)!=null?R:{},targetId:q.targetId,loggingDirectives:q.loggingDirectives},updatePanelContinuationData:k}),0);ph.jumpTo(0)}})};
J4[kz]=[_.Bl,_.p6,_.X5];var z$=function(){};
_.h(z$,bB);z$.prototype.resolveCommand=function(D){var C,X,c;return _.I(function(W){if(W.nextAddress==1)return(C=_.r(D,FQN))?W.yield(_.ON(),2):W.return();X=W.yieldResult;if(!X)return W.return();var p=X,g=(c=C)==null?void 0:c.languageCode,a;(p==null?0:(a=p.isReady)==null?0:a.call(p))&&(g=rOd(p,g))&&p.setAudioTrack(g);_.t_(W)})};var jQ=function(){};
_.h(jQ,Pk);_.S=jQ.prototype;_.S.getApiPaths=function(){return srg};
_.S.getExtension=function(D){return _.r(D,_.TC)};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$14344_getStoreKey=function(D){if((D=this.getExtension(D))&&D.videoId){var C={videoId:D.videoId};D.playlistId&&(C.playlistId=D.playlistId);D.index&&(C.index=D.index);D.params&&(C.params=D.params);return _.Vy("next",C)}};
_.S.JSC$14337_getClientScreen=function(D){var C;return((C=D.contentPlaybackContext)==null?void 0:C.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.S.JSC$14337_buildRequest=function(D,C,X){C.videoId&&(D.videoId=C.videoId);C.playlistId&&(D.playlistId=C.playlistId);C.params&&(D.params=C.params);C.index!==void 0&&(D.playlistIndex=C.index);D.racyCheckOk=!(!X.racyCheckOk&&!C.racyCheckOk);D.contentCheckOk=!!C.contentCheckOk;X.contentPlaybackContext&&(D.autonavState=X.contentPlaybackContext.autonavState,D.playbackContext={vis:X.contentPlaybackContext.vis,lactMilliseconds:X.contentPlaybackContext.lactMilliseconds});X.prefetchPlaybackContext&&(D.context.request||
(D.context.request={}),D.context.request.isPrefetch=!0);_.b("captions_hats_killswitch")||(C=_.PE().getFlag(65),C=C!=null?!C:!1,X=!!_.KH("yt-player-sticky-caption"),D.captionsRequested=C&&X)};
_.S.getRequestConfig=function(D){D=this.JSC$14344_getStoreKey(D);var C;D&&(C={storeStrategy:{storeKey:D}});_.b("web_log_player_watch_next_ticks")&&(C=C||{},C.requestTick="wn_s",C.responseTick="wn_r");return C};
var M7=function(){};
_.h(M7,Pk);M7.prototype.getApiPaths=function(){return srg};
M7.prototype.getExtension=function(D){return _.r(D,_.nI)};
M7.prototype.JSC$14337_buildRequest=function(D,C){C.token&&(D.continuation=C.token)};var q7=function(){this.innerTubeTransport=_.iX().resolve(_.Bl);this.miniplayerService=_.iX().resolve(_.wB)};
_.h(q7,bB);var QVt=function(D){var C;return _.I(function(X){C=_.q6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;D.JSC$17797_mainAppPlayer=new hb(C);document.addEventListener("yt-page-data-updated",D.JSC$17797_pauseOnNavigation.bind(D));_.t_(X)})},BVN=function(D,C){var X,c,W,p;
return _.I(function(g){if(g.nextAddress==1){X=new jQ;c=X.JSC$14337_getRequest(C);if(!c)return g.return(void 0);W=c.innerTubeRequest;return g.yield(_.vV(D.innerTubeTransport,W,"/youtubei/v1/next"),2)}p=g.yieldResult;var a;var O,P,k=(a=p.contents)==null?void 0:(O=a.twoColumnWatchNextResults)==null?void 0:(P=O.playlist)==null?void 0:P.playlist,u;a=(k==null?0:(u=k.contents)==null?0:u.length)?k:void 0;return g.return(a)})},byp=function(D,C){var X,c,W,p,g;
return _.I(function(a){if(a.nextAddress==1)return X=D.JSC$17797_mainAppPlayer,a.yield(X.api,2);if(a.nextAddress!=3)return c=a.yieldResult,C.watchCommand?a.yield(BVN(D,C.watchCommand),3):a.return();W=a.yieldResult;if((p=W)==null||!p.contents)return a.return();g=W.contents.map(function(O){var P;return(P=O.playlistPanelVideoRenderer)==null?void 0:P.videoId}).filter(function(O){return!!O}).map(function(O){return{encrypted_id:O}});
c.updatePlaylist({video:g});_.t_(a)})},rp1=function(D,C){var X,c,W;
return _.I(function(p){return p.nextAddress==1?(X=D.JSC$17797_mainAppPlayer,W=(c=C.playerParams)!=null?c:"",C.externalVideoId?p.yield(X.loadVideoWithPlayerVars({videoId:C.externalVideoId,audio_only:"1",player_params:W}),2):p.jumpTo(2)):C.watchCommand?p.yield(byp(D,C),0):p.jumpTo(0)})};
q7.prototype.JSC$17797_pauseOnNavigation=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return C=D.JSC$17797_mainAppPlayer,c.yield(C.api,2);X=c.yieldResult;X.pauseVideo();_.t_(c)})};
q7.prototype.pauseVideo=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return C=D.JSC$17797_mainAppPlayer,c.yield(C.api,2);X=c.yieldResult;X.pauseVideo();_.t_(c)})};
q7.prototype.playVideo=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return C=D.JSC$17797_mainAppPlayer,c.yield(C.api,2);X=c.yieldResult;X.playVideo();_.t_(c)})};
var Kew=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return C=D.JSC$17797_mainAppPlayer,c.yield(C.api,2);X=c.yieldResult;X.mute();_.t_(c)})},hew=function(D){var C,X;
return _.I(function(c){if(c.nextAddress==1)return C=D.JSC$17797_mainAppPlayer,c.yield(C.api,2);X=c.yieldResult;X.unMute();_.t_(c)})};
q7.prototype.stopVideo=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return C=D.JSC$17797_mainAppPlayer,c.yield(C.api,2);X=c.yieldResult;X.stopVideo();_.t_(c)})};
var x3k=function(D,C){return _.I(function(X){switch(X.nextAddress){case 1:switch(C){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return X.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return X.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return X.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return X.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return X.jumpTo(6)}X.jumpTo(0);break;case 2:return X.yield(D.playVideo(),8);case 8:X.jumpTo(0);break;case 3:return X.yield(D.pauseVideo(),
9);case 9:X.jumpTo(0);break;case 4:return X.yield(D.stopVideo(),10);case 10:X.jumpTo(0);break;case 5:return X.yield(Kew(D),11);case 11:X.jumpTo(0);break;case 6:return X.yield(hew(D),12);case 12:X.jumpTo(0)}})};
q7.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a;return _.I(function(O){return O.nextAddress==1?(X=_.r(D,aKC),((c=X)==null?0:c.newPlaybackParams)||((W=X)==null?0:W.controlAction)?C.JSC$17797_mainAppPlayer?O.jumpTo(2):O.yield(QVt(C),2):O.return()):((p=X)==null?0:p.newPlaybackParams)?(C.miniplayerService.isMiniplayerActive()&&((g=C.miniplayerService.getPlayerElement())==null||g.pause()),a=X.newPlaybackParams,a.externalVideoId||a.externalPlaylistId?O.yield(rp1(C,a),0):O.return()):O.yield(x3k(C,
X.controlAction),0)})};var fD=function(D){this.JSC$17803_commandHandler=D};
_.h(fD,bB);
fD.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return(X=_.r(D,ZUx))?O.yield(_.ON(),2):O.return();c=O.yieldResult;if(!c)return O.return();var P=c,k=(W=X)==null?void 0:W.languageCode,u=(p=X)==null?void 0:p.isAutoTranslated;P.getVideoData&&_.hqd(P).length&&((k=L7W(P,k,u))?P.setOption("captions","track",k):(P.setOption("captions","stickyLoading",{}),P.setOption("captions","track",{})));g=c.isSubtitlesOn()?_.I7("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.I7("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");a=_.l8(g,5E3);C.JSC$17803_commandHandler.resolveCommand(a);_.t_(O)})};
fD[kz]=[_.uX];var dC=function(D,C){this.shortsPlayerPromise=D;this.JSC$17807_commandHandler=C};
_.h(dC,bB);
dC.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1)return(X=_.r(D,S75))?k.yield(C.shortsPlayerPromise,2):k.return();c=k.yieldResult;var u=sO3(c);u!=null&&u.length||(c.loadModule("captions"),u=sO3(c));W=u;if((p=W)==null||!p.length)return g=_.I7("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),a=_.l8(g),C.JSC$17807_commandHandler.resolveCommand(a),k.return();c.toggleSubtitles();O=c.isSubtitlesOn()?_.I7("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.I7("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");P=_.l8(O);C.JSC$17807_commandHandler.resolveCommand(P);_.t_(k)})};
dC[kz]=[_.oBx,_.uX];var Rn=function(D){this.JSC$17810_actionRouter=D;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(C,X){C.triggerAction("yt-dismiss-shopping-timely-shelf-action",X);(C=_.iX().resolve(_.vK(_.P7d)))&&C.dismissFeaturedProductOverlay()}]])};
_.h(Rn,bB);Rn.prototype.resolveCommand=function(D){var C=this,X,c,W;return _.I(function(p){X=_.r(D,HUc);if((c=X)==null||!c.overlayId)return p.return();W=C.dismissPlayerOverlayActions.get(X.overlayId);if(!W)throw Error("Ei`"+X.overlayId);W(C.JSC$17810_actionRouter,X);_.t_(p)})};
Rn[kz]=[mQ];var l3=function(D){this.JSC$17814_playerPromise=D};
_.h(l3,bB);l3.prototype.resolveCommand=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return(X=_.r(D,sc5))?g.yield(C.JSC$17814_playerPromise,2):g.return();c=g.yieldResult;W=c.getVideoData().video_id;X.videoId===W&&(p=Number(X.offsetFromVideoStartMilliseconds),p>=0&&c.seekTo(p/1E3));_.t_(g)})};
l3[kz]=[_.pT];var LeN=_.gJ("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),D2=function(D){this.store=D};
_.h(D2,bB);
var sVp=function(D){var C,X,c,W;return _.I(function(p){if(p.nextAddress==1)return C=_.q6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,X=_.q6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,c=C||X,D.JSC$17818_mainAppPlayer=new hb(c),p.yield(D.JSC$17818_mainAppPlayer.api,2);W=p.yieldResult;W.addEventListener("onStateChange",D.JSC$17818_playerStateChangeListener.bind(D));document.addEventListener("yt-page-data-updated",D.JSC$17818_pauseOnNavigation.bind(D));window.addEventListener("state-navigatestart",
D.JSC$17818_pauseOnNavigation.bind(D));_.t_(p)})};
D2.prototype.JSC$17818_playerStateChangeListener=function(D){switch(D){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"}m3X(this)};
var m3X=function(D){D.store.dispatch(_.bK("sfvAudioItemCurrentlyPlayingEntity",LeN,{key:LeN,externalVideoId:D.externalVideoId,sfvAudioItemPlaybackState:D.playbackState,nowPlayingEntityValue:D.nowPlayingEntityValue}))};
D2.prototype.JSC$17818_pauseOnNavigation=function(){var D=this,C,X,c,W;return _.I(function(p){if(p.nextAddress==1){if(!D.JSC$17818_mainAppPlayer){var g=new _.Zf("Error: mainAppPlayer is unavailable",D.JSC$17818_mainAppPlayer);_.MN(g);return p.return()}return p.yield(D.JSC$17818_mainAppPlayer.api,2)}C=p.yieldResult;c=(X=C)==null?void 0:X.getPlayerState();c!==1||(W=C)!=null&&W.pauseVideo();_.t_(p)})};
D2.prototype.playVideo=function(D,C,X){var c=this,W,p;return _.I(function(g){if(g.nextAddress==1)return g.yield((W=c.JSC$17818_mainAppPlayer)==null?void 0:W.api,2);p=g.yieldResult;if(!c.JSC$17818_mainAppPlayer||!p){var a=new _.Zf("Error: mainAppPlayer is unavailable",c.JSC$17818_mainAppPlayer);_.MN(a);return g.return()}return g.yield(c.JSC$17818_mainAppPlayer.loadVideoWithPlayerVars({videoId:c.externalVideoId,audio_only:"1",start:D/1E3,end:D/1E3+C,player_params:X}),0)})};
D2.prototype.pauseVideo=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1){if(!D.JSC$17818_mainAppPlayer){var W=new _.Zf("Error: mainAppPlayer is unavailable",D.JSC$17818_mainAppPlayer);_.MN(W);return c.return()}return c.yield(D.JSC$17818_mainAppPlayer.api,2)}C=c.yieldResult;(X=C)==null||X.pauseVideo();_.t_(c)})};
D2.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T;return _.I(function(H){if(H.nextAddress==1)return X=_.r(D,oib),W=(c=X)==null?void 0:c.nowPlayingEntityValue,g=(p=X)==null?void 0:p.externalVideoId,u=Number((k=(a=X)==null?void 0:(O=a.defaultStartPoints)==null?void 0:(P=O[0])==null?void 0:P.offsetMs)!=null?k:"0"),Y=Number((t=(Q=X)==null?void 0:(B=Q.defaultStartPoints)==null?void 0:(K=B[0])==null?void 0:(L=K.duration)==null?void 0:L.seconds)!=null?t:"15"),T=(J=
(y=X)==null?void 0:y.playerParams)!=null?J:"",W&&g?C.JSC$17818_mainAppPlayer?H.jumpTo(2):H.yield(sVp(C),2):H.return();if(H.nextAddress!=6){if(C.nowPlayingEntityValue&&W===C.nowPlayingEntityValue)return C.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?H.yield(C.pauseVideo(),0):H.yield(C.playVideo(u,Y,T),0);C.externalVideoId=g;C.nowPlayingEntityValue=W;C.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return H.yield(C.playVideo(u,Y,T),6)}m3X(C);return H.jumpTo(0)})};
D2[kz]=[pn];var CY=function(D){this.JSC$17836_commandHandler=D};
_.h(CY,bB);CY.prototype.resolveCommand=function(D,C){var X=this,c,W,p;return _.I(function(g){if(g.nextAddress==1)return(c=_.r(D,Gm5))?g.yield(_.ON(),2):g.return();W=g.yieldResult;if(!W)return g.return();(p=meZ(W))&&X.JSC$17836_commandHandler.resolveCommand(p,C);_.t_(g)})};
CY[kz]=[_.uX];var XS=function(D){this.JSC$17842_commandHandler=D};
_.h(XS,bB);XS.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return(c=_.r(D,Vm5))?O.yield(_.ON(),2):O.return();W=O.yieldResult;if(!W)return O.return();(p=Y8j(W))?X.JSC$17842_commandHandler.resolveCommand(p,C):(g=_.I7("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),a=_.l8(g),X.JSC$17842_commandHandler.resolveCommand(a));_.t_(O)})};
XS[kz]=[_.uX];var cW=function(D){this.JSC$17845_playerPromise=D};
_.h(cW,bB);cW.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1)return(X=_.r(D,zNN))?W.yield(C.JSC$17845_playerPromise,2):W.return();c=W.yieldResult;c.isFullscreen()&&c.wakeUpControls();_.t_(W)})};
cW[kz]=[_.pT];var oM=function(D){this.JSC$17848_playerPromise=D};
_.h(oM,bB);oM.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g;return _.I(function(a){if(a.nextAddress==1){X=_.r(D,mke);if(!X)return a.return();c=X.overlayRenderer;return c?(W=_.r(c,dxf))?a.yield(C.JSC$17848_playerPromise,3):a.jumpTo(0):a.return()}p=a.yieldResult;p.renderChapterSeekingAnimation(1,_.Mh(W.text),(g=W.icon)==null?void 0:g.iconType);_.t_(a)})};
oM[kz]=[_.pT];var WW=function(D){this.store=D};
_.h(WW,bB);
WW.prototype.resolveCommand=function(D){var C=this,X,c,W;return _.I(function(p){if(p.nextAddress==1){X=_.r(D,IKg);if(!X)return p.return();c="";(W=C.store.getState().collabInviteLink)&&X.id===W.playlistId?c=W.inviteLinkURL:X.shortUrl&&(c=X.shortUrl);return c?p.yield(navigator.clipboard.writeText(c),3):p.jumpTo(0)}var g={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.I7("COPY_LINK_SUCCESS_TOAST")}}}}};_.iX().resolve(_.uX).resolveCommand(g);_.t_(p)})};
WW[kz]=[i3];var pY=function(D,C){this.innertubeTransportService=D;this.JSC$17858_commandHandler=C};
_.h(pY,bB);pY.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q;return _.I(function(B){if(B.nextAddress==1)return(c=_.r(D,_.vj))?B.yield(_.Jl(X.innertubeTransportService,D,(W=C)==null?void 0:W.form),2):B.return();(p=B.yieldResult)&&p.errorMetadata&&(g=p,a=_.l8(g.error.message),X.JSC$17858_commandHandler.resolveCommand(a));O=p;if((P=O)==null?0:P.actions)for(k=_.U(O.actions),u=k.next();!u.done;u=k.next())Q=u.value,X.JSC$17858_commandHandler.resolveCommand(Q);_.t_(B)})};
pY[kz]=[_.Bl,_.uX];var SS=function(){};
_.h(SS,bB);SS.prototype.resolveCommand=function(D){var C;return _.I(function(X){C=_.r(D,CRc);if(!C)return X.return();(new eMx(C)).show();_.t_(X)})};_.U5=new _.P6("PLAYLIST_EDIT_CONTROLLER_TOKEN");var g_=function(D,C,X,c){this.store=D;this.innertubeTransportService=C;this.controller=X;this.JSC$17866_commandHandler=c};
_.h(g_,bB);
g_.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5;return _.I(function(Fd){if(Fd.nextAddress==1){c=_.r(D,_.gX);if(!c)return Fd.return();if(c.clientActions){W=_.U(c.clientActions);for(p=W.next();!p.done;p=W.next())g=p.value,X.JSC$17866_commandHandler.resolveCommand(g,C);var GJ,jZ=C==null?void 0:(GJ=C.form)==null?void 0:GJ.element;jZ&&_.lE(jZ,"yt-dismissible-item-action",c.clientActions)}return Fd.yield(_.Jl(X.innertubeTransportService,D,(a=
C)==null?void 0:a.form),2)}if(O=Fd.yieldResult)O.errorMetadata?(P=O,k=_.l8(P.error.message),X.JSC$17866_commandHandler.resolveCommand(k),"error"in O&&((u=C)==null?0:(Q=u.commandController)==null?0:Q.onServerError)&&((B=C)==null||(K=B.commandController)==null||K.onServerError(D,O))):(L=C)==null||(t=L.commandController)==null||(y=(Y=t).onSuccess)==null||y.call(Y,D,O);J=O;((T=J)==null?0:T.collaborationInviteLink)&&c.playlistId&&(_.b("web_enable_invite_collaborators_link")||_.b("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
X.store.dispatch(_.oI({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:c.playlistId,inviteLinkUrl:J.collaborationInviteLink}}));((H=J)==null?0:H.redirectEndpoint)&&X.JSC$17866_commandHandler.resolveCommand(J.redirectEndpoint);((q=J)==null?0:(R=q.newHeader)==null?0:R.playlistHeaderRenderer)?eew(X.controller,J.newHeader.playlistHeaderRenderer):((ph=J)==null?0:(Om=ph.newHeader)==null?0:Om.musicEditablePlaylistDetailHeaderRenderer)&&eew(X.controller,J.newHeader.musicEditablePlaylistDetailHeaderRenderer);
X.controller.playlistVideoListElement&&((xj=J)==null?0:(Bo=xj.playlistEditResults)==null?0:(r5=Bo[0])==null?0:r5.playlistEditVideoAddedResultData)&&((jZ=X.controller.playlistVideoListElement)==null||jZ.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:J.playlistEditResults[0].playlistEditVideoAddedResultData})));_.t_(Fd)})};
g_[kz]=[_.gp,_.Bl,_.U5,_.uX];var aM=function(D,C){this.controller=D;this.JSC$17876_commandHandler=C};
_.h(aM,bB);aM.prototype.resolveCommand=function(D,C){var X=this,c,W,p;return _.I(function(g){c=_.r(D,O0c);X.controller.showRefreshPill&&((W=c)==null?0:W.command)&&(X.JSC$17876_commandHandler.resolveCommand((p=c)==null?void 0:p.command,C),X.controller.showRefreshPill=!1);_.t_(g)})};
aM[kz]=[_.zf,_.uX];var IM=function(D,C){this.store=D;this.JSC$17880_commandHandler=C||_.I3.instance};
_.h(IM,bB);IM.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q;return _.I(function(B){c=_.r(D,xDM);W=X.store.getState().radioButtonGroup;if((p=c)==null?0:p.command)X.JSC$17880_commandHandler.resolveCommand((g=c)==null?void 0:g.command,C);else if(W&&((a=c)==null?void 0:a.formId)===W.currentFormId)for(O=Object.values(W.commandsMap),P=_.U(O),k=P.next();!k.done;k=P.next())u=k.value,(Q=_.Y7(u))&&X.JSC$17880_commandHandler.resolveCommand(Q,C);_.t_(B)})};
IM[kz]=[_.gp];var O5=new _.P6("USER_PREFS");var AE=function(D){this.JSC$17885_prefCookie=D};
_.h(AE,bB);AE.prototype.resolveCommand=function(D){var C=this,X;return _.I(function(c){(X=_.r(D,jRM))&&typeof X.useListView==="boolean"&&(_.$C(0,155,X.useListView),C.JSC$17885_prefCookie.save());_.t_(c)})};
AE[kz]=[O5];var PW=function(D){this.JSC$17889_prefCookie=D};
_.h(PW,bB);PW.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g;return _.I(function(a){X=_.r(D,cng);if((c=X)==null||!c.gl)return a.return();W=X.gl;p={persist_gl:"1",gl:W};C.JSC$17889_prefCookie.set("gl",W);C.JSC$17889_prefCookie.save();g=vTM(p);_.nH(g);_.t_(a)})};
PW[kz]=[O5];var $4=function(D){this.JSC$17893_prefCookie=D};
_.h($4,bB);$4.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){X=_.r(D,PRN);if(!X)return W.return();c=!1;X.flagNum&&typeof X.value==="boolean"?(_.$C(0,X.flagNum,X.value),c=!0):X.key&&typeof X.stringValue==="string"&&(C.JSC$17893_prefCookie.set(X.key,X.stringValue),c=!0);c&&C.JSC$17893_prefCookie.save();_.t_(W)})};
$4[kz]=[O5];var vW=new _.P6("PREF_STORAGE_PROMISE_TOKEN");var ig=function(D){this.JSC$17897_prefStoragePromise=D};
_.h(ig,bB);ig.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1)return(X=_.r(D,vY5))?W.yield(C.JSC$17897_prefStoragePromise,2):W.return();c=W.yieldResult;return c===void 0||X.key===void 0||X.value===void 0?W.return():W.yield(c.set(X.key,X.value),0)})};
ig[kz]=[vW];var k4=function(D){this.innertubeTransportService=D};
_.h(k4,bB);k4.prototype.resolveCommand=function(D,C){var X=this,c,W;return _.I(function(p){(c=_.r(D,_.LOC))&&c&&c.isFirstRequest&&(_.Lt("search_overview_answer"),_.sp("so_rq",void 0,"search_overview_answer"));return p.yield(_.Jl(X.innertubeTransportService,D,(W=C)==null?void 0:W.form),0)})};
k4[kz]=[_.Bl];var EXt=function(){};
_.h(EXt,bB);
EXt.prototype.resolveCommand=function(D){var C,X,c,W,p,g,a,O,P;return _.I(function(k){C=_.r(D,LHx);if((X=C)==null?0:X.sectionIdentifier){if(C.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(W=(c=document.getElementsByTagName(C.sectionIdentifier))==null?void 0:c.item(0))W.scrollIntoView({behavior:"smooth"}),(p=Obn(W))&&p.focus({preventScroll:!0});return k.return()}g=document.querySelector("[section-identifier="+C.sectionIdentifier+"]");a=document.querySelector("[section-identifier="+C.referenceSectionIdentifier+
"]");if(!g)return k.return();O=C.verticalScrollOffsetDp?C.verticalScrollOffsetDp:0;a&&(O-=a.offsetTop);window.scrollTo({top:g.offsetTop+O,behavior:"smooth"});(P=Obn(g))&&P.focus({preventScroll:!0})}_.t_(k)})};var ug=function(D){this.JSC$17909_commandHandler=D};
_.h(ug,bB);
ug.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O;return _.I(function(P){if(P.nextAddress==1){X=_.r(D,dM5);if(!X||!X.imageBytes||!navigator.clipboard)return P.return();if(X.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.MN(Error("Gi")),P.return();_.KK(P,2);W=(c=X)==null?void 0:c.imageBytes;p=W.replace(/-/g,"+").replace(/_/g,"/");g=$eZ(p);a={};O=[new ClipboardItem((a[g.type]=g,a))];return P.yield(navigator.clipboard.write(O),4)}if(P.nextAddress!=2)return X.successCommand&&
C.JSC$17909_commandHandler.resolveCommand(X.successCommand),_.SR(P,0);_.Eu(P);X.errorCommand&&C.JSC$17909_commandHandler.resolveCommand(X.errorCommand);_.t_(P)})};
ug[kz]=[_.uX];var QS=function(D,C){this.innertubeTransportService=D;this.JSC$17913_commandHandler=C};
_.h(QS,bB);QS.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return(c=_.r(D,RSq))?O.yield(_.Jl(X.innertubeTransportService,D,(W=C)==null?void 0:W.form),2):O.return();(p=O.yieldResult)&&p.errorMetadata&&c.onFailureCommand&&X.JSC$17913_commandHandler.resolveCommand(c.onFailureCommand);g=p;((a=g)==null?0:a.shareCommand)&&X.JSC$17913_commandHandler.resolveCommand(g.shareCommand,C);_.t_(O)})};
QS[kz]=[_.Bl,_.uX];var BW=function(){};
_.h(BW,bB);BW.prototype.resolveCommand=function(D){var C,X;return _.I(function(c){C=_.r(D,gYM);if(!C||!navigator.share)return c.return();X={url:C.url};try{return c.return(navigator.share(X))}catch(W){}_.t_(c)})};var bg=function(){};
_.h(bg,bB);bg.prototype.resolveCommand=function(){return _.I(function(D){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.t_(D)})};var r_=function(D){this.JSC$17923_navigationConfirmationService=D};
_.h(r_,bB);r_.prototype.resolveCommand=function(){var D=this;return _.I(function(C){D.JSC$17923_navigationConfirmationService.cancelPendingNavigation();_.t_(C)})};
r_[kz]=[RL];var KY=function(D){this.JSC$17926_screenManager=D};
_.h(KY,bB);KY.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P;return _.I(function(k){W=(c=C.form)==null?void 0:c.event;g=(p=C.form)==null?void 0:p.element;if(!W)throw new _.Zf("Event not passed in when resolving command");a=_.U(W.composedPath());for(O=a.next();!O.done;O=a.next())if(P=O.value,P.tagName==="YT-COPY-LINK-RENDERER")return P.copyUrlToClipboard(),g&&_.V6(X.JSC$17926_screenManager,g),k.return();_.t_(k)})};
KY[kz]=[_.X5];var hE=function(){this.JSC$17930_miniAppClientDataProvider=_.iX().resolve(_.e1)};
_.h(hE,bB);hE.prototype.resolveCommand=function(){var D=this,C,X;return _.I(function(c){if(D.JSC$17930_miniAppClientDataProvider.clientData.has("video_id")){var W=D.JSC$17930_miniAppClientDataProvider,p=W.clientData.get("video_id");p&&W.clientData.delete("video_id");C="https://youtube.com/watch?v="+p;X=_.V$(C);if(X===void 0)throw Error("Hi`"+C);_.ct(window,X)}_.t_(c)})};var x4=function(){};
_.h(x4,bB);x4.prototype.resolveCommand=function(){return _.I(function(D){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.t_(D)})};var LY=function(){};
_.h(LY,bB);LY.prototype.resolveCommand=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.Xxh(window.document.documentElement),2);(D=document.querySelector("mini-app-container-view-model iframe"))&&D.focus();_.t_(C)})};var s5=function(D){this.JSC$17937_navigationConfirmationService=D};
_.h(s5,bB);
s5.prototype.resolveCommand=function(){var D=this;return _.I(function(C){var X=D.JSC$17937_navigationConfirmationService,c=_.iX().resolve(_.HV),W;if(((W=X.navigateParams)==null?void 0:W.data)!==void 0){var p;_.Fse(c,X.navigateParams.endpoint,X.navigateParams.data,(p=X.navigateParams.navigationType)!=null?p:1,X.navigateParams.tempData,X.navigateParams.isMiniplayer,void 0,!0);X.navigateParams=void 0;X.customConfirmationCommand=void 0}else X.navigateParams&&(c.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);_.t_(C)})};
s5[kz]=[RL];var mu=function(){};
_.h(mu,bB);mu.prototype.resolveCommand=function(){return _.I(function(D){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.t_(D)})};var eS=function(D){this.JSC$17942_prefStorage=D};
_.h(eS,bB);eS.prototype.resolveCommand=function(){var D=this,C,X;return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(D.JSC$17942_prefStorage,2);case 2:return(C=c.yieldResult)?c.yield(C.set("sfvle",!1),3):c.return();case 3:return c.yield(C.set("sfvles",!0),4);case 4:X=_.PE(),_.$C(0,203,!1),_.$C(0,204,!0),X.save(),_.t_(c)}})};
eS[kz]=[vW];var E5=function(D){this.JSC$17945_prefStorage=D};
_.h(E5,bB);E5.prototype.resolveCommand=function(){var D=this,C,X;return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(D.JSC$17945_prefStorage,2);case 2:return(C=c.yieldResult)?c.yield(C.set("sfvle",!0),3):c.return();case 3:return c.yield(C.set("sfvles",!0),4);case 4:X=_.PE(),_.$C(0,203,!0),_.$C(0,204,!0),X.save(),_.t_(c)}})};
E5[kz]=[vW];_.NVG=new _.P6("SNACKBAR_CONTROLLER_TOKEN");_.YFN=new _.P6("SHOULD_SHOW_PIVOT_BAR_TOKEN");var tE=function(D){this.controller=D};
_.h(tE,bB);tE.prototype.resolveCommand=function(D){var C=this,X;return _.I(function(c){X=_.r(D,IQk);if(!X)return c.return();var W=C.controller;W.closeSnackbarFn&&W.closeSnackbarFn();_.t_(c)})};
tE[kz]=[_.NVG];var N9=function(D,C){this.controller=D;this.JSC$17952_sheetController=C};
_.h(N9,bB);N9.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O;return _.I(function(P){c=_.r(D,AbJ);if(!c)return P.return();g=uEX(X.JSC$17952_sheetController,(W=C)==null?void 0:(p=W.form)==null?void 0:p.element);a=_.r(c.content,Lyc);if(!a)return P.return();var k=X.controller,u=a,Q=(O=c.animationStyle)!=null?O:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(k.showSnackbarFn)k.showSnackbarFn({snackbarViewModel:u,animationStyle:Q,durationMs:c.durationSeconds*1E3,target:g});else throw Error("Aj");_.t_(P)})};
N9[kz]=[_.NVG,_.S0];var Y4=function(){};
_.h(Y4,bB);Y4.prototype.resolveCommand=function(D){var C;return _.I(function(X){C=_.r(D,$Dk);if(!C||typeof C.key!=="string"||typeof C.value!=="string")return X.return();window.localStorage.setItem(C.key,C.value);_.t_(X)})};var yS=function(D){this.store=D};
_.h(yS,bB);yS.prototype.resolveCommand=function(D){var C=this,X;return _.I(function(c){X=_.r(D,$Sm);if(!X||!X.stepId||!X.token)return c.return();C.store.dispatch(Sxf({stepId:X.stepId,token:X.token,isSelected:!1}));_.t_(c)})};
yS[kz]=[i3];var nY=function(D,C,X){this.innertubeTransportService=D;this.store=C;this.JSC$17964_screenManager=X};
_.h(nY,bB);
nY.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5,Fd;return _.I(function(GJ){X=_.r(D,gyk);if(!X||(c=X.stepIds)==null||!c.length)return GJ.return();W=C.store.getState().talkToRecs;p=[];g=[];a=_.U(X.stepIds);for(O=a.next();!O.done;O=a.next())for(P=O.value,k=void 0,(u=(k=W.stepStates[P])==null?void 0:k.userQuery)&&g.push({userQuery:X.submitEmptyUserQuery?"":u.userQuery,userQueryToken:u.token}),B=Q=void 0,K=(B=(Q=W.stepStates[P])==null?void 0:
Q.selectionStates)!=null?B:{},L=_.U(Object.entries(K)),t=L.next();!t.done;t=L.next())Y=t.value,y=_.U(Y),J=y.next().value,T=y.next().value,H=J,q=T,q.isSelected&&p.push(H);R={selectedChipTokens:p,userQueries:g,submittedStepIds:X.stepIds};ph={browseTalk2recsFormData:R};X.browseEndpoint?(Om=D,_.mp(Om,_.Pl,X.browseEndpoint)):X.command&&(Om=X.command);if(!Om)return GJ.return();xj=_.r(Om,_.nI);if((Bo=xj)==null?0:Bo.command)if(r5=_.r(xj.command,oY4))Fd=_.I3.instance,Fd.resolveCommand(xj.command);return GJ.yield(_.Jl(C.innertubeTransportService,
Om,{formData:ph,disableCache:!0}).then(function(jZ){(jZ==null?0:jZ.trackingParams)&&C.JSC$17964_screenManager.graftServerVe(jZ==null?void 0:jZ.trackingParams)}),0)})};
nY[kz]=[_.Bl,i3,_.X5];var w_=function(D){this.store=D};
_.h(w_,bB);
w_.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P;return _.I(function(k){X=_.r(D,Pdo);if(!X||!X.stepId)return k.return();if(X.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")g=(p=(c=C.store.getState().talkToRecs.stepStates[X.stepId])==null?void 0:(W=c.userQuery)==null?void 0:W.userQuery)!=null?p:"",a=g.length>0?". ":"",O=g+a+X.selectedText,C.store.dispatch(UBN({stepId:X.stepId,userQueryToken:"",userQuery:O}));else if(X.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")C.store.dispatch(UBN({stepId:X.stepId,userQueryToken:"",
userQuery:(P=X.selectedText)!=null?P:""}));else{if(!X.token)return k.return();C.store.dispatch(Sxf({stepId:X.stepId,token:X.token,isSelected:!0}))}_.t_(k)})};
w_[kz]=[i3];var FS=function(D){this.store=D};
_.h(FS,bB);FS.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O;return _.I(function(P){c=_.r(D,M8m);if(!c||!c.stepId)return P.return();a=(g=(W=C)==null?void 0:(p=W.form)==null?void 0:p.userQuery)!=null?g:"";X.store.dispatch(UBN({stepId:c.stepId,userQuery:a,userQueryToken:(O=c.userQueryToken)!=null?O:""}));_.t_(P)})};
FS[kz]=[i3];_.ypk=new _.P6("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Z2=function(D){this.controller=D};
_.h(Z2,bB);Z2.prototype.resolveCommand=function(D){var C=this,X,c,W,p;return _.I(function(g){X=_.r(D,KHJ);if(!X)return g.return();c=X;W=c.id;p=c.isVisible;if(W===void 0||p===void 0)return g.return();var a;(a=C.controller.timelyActionsMap.get(W))==null||a(W,p);_.t_(g)})};
Z2[kz]=[_.ypk];var nXw=function(){this.timelyActionsMap=new Map};var GM=function(D){this.JSC$17990_commandHandler=D};
_.h(GM,bB);GM.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g;return _.I(function(a){X=_.r(D,_.NFC);if(!X)return a.return();p=(c=X.item)==null?void 0:(W=c.notificationTextRenderer)==null?void 0:W.successResponseText;if(!p)return a.return();g=_.RI(p);C.JSC$17990_commandHandler.resolveCommand(g);_.t_(a)})};
GM[kz]=[_.uX];var VS=function(D,C){this.innertubeTransportService=D;this.JSC$17995_playerApiPromise=C};
_.h(VS,bB);
VS.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k;return _.I(function(u){if(u.nextAddress==1)return u.yield(C.JSC$17995_playerApiPromise,2);X=u.yieldResult;c=X.getOption("captions","track");W=Object.assign({},_.r(D,_.w8q));(g=(p=X.getVideoData())==null?void 0:p.video_id)?W.externalVideoId=g:_.CC(Error("Ii"));if((a=c)==null?0:a.languageCode)W.languageCode=c.languageCode;if((O=c)==null?0:O.kind)W.kind=c.kind;if((P=c)==null?0:P.name)W.name=c.name;k=Object.assign({},D,{getTranscriptEndpoint:W});return u.yield(_.Jl(C.innertubeTransportService,
k),0)})};
VS[kz]=[_.Bl,_.pT];var TM=function(){};
_.h(TM,bB);TM.prototype.resolveCommand=function(D){var C,X,c,W,p,g,a,O;return _.I(function(P){C=_.r(D,hXd);if((X=C)==null||!X.paramKeyValuePairs)return P.return();c=window.location.href;W=_.U(C.paramKeyValuePairs);for(p=W.next();!p.done;p=W.next())g=p.value,g.key&&g.value&&(a={},c=_.gT(c,(a[g.key]=g.value,a)));O=_.iX().resolve(_.Mx);_.jv(O,c);_.t_(P)})};_.HW=new _.P6("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var JE=function(D,C,X,c){this.controller=D;this.JSC$18002_playerApiPromise=C;this.innertubeTransportService=X;this.JSC$18002_commandHandler=c};
_.h(JE,bB);
JE.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J;return _.I(function(T){if(T.nextAddress==1){X=_.r(D,jL5);if((c=X)==null||!c.watchEndpoint)return T.return();W=new jQ;p=W.JSC$14337_getRequest(X.watchEndpoint);if(!p)return T.return();g=X.watchEndpoint.clickTrackingParams;return T.yield(_.vV(C.innertubeTransportService,p.innerTubeRequest,p.input,g,p.config),2)}if(T.nextAddress!=3)return a=T.yieldResult,T.yield(C.JSC$18002_playerApiPromise,3);O=T.yieldResult;O.updateVideoData({raw_watch_next_response:a});
if(K=(P=a)==null?void 0:(k=P.contents)==null?void 0:(u=k.twoColumnWatchNextResults)==null?void 0:(Q=u.results)==null?void 0:(B=Q.results)==null?void 0:B.contents)t=(L=K.find(function(H){return H.videoPrimaryInfoRenderer}))==null?void 0:L.videoPrimaryInfoRenderer,((Y=t)==null?0:Y.subtitle)&&wdG(C.controller,t.subtitle);
(J=(y=a)==null?void 0:y.onUiReady)&&C.JSC$18002_commandHandler.resolveCommand(J);_.t_(T)})};
JE[kz]=[_.HW,_.pT,_.Bl,_.uX];var Fe6=function(){this.subtitleChangeCallbackMap=new Map},wdG=function(D,C){D=_.U(D.subtitleChangeCallbackMap.values());
for(var X=D.next();!X.done;X=D.next())X=X.value,X(C)};var zM=function(D,C){this.JSC$18012_commandHandler=D;this.innertubeTransportService=C};
_.h(zM,bB);
zM.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J;return _.I(function(T){switch(T.nextAddress){case 1:return(p=(c=C)==null?void 0:(W=c.form)==null?void 0:W.element)&&_.F1(p),g=_.PE().get("hl"),a="",_.KK(T,2),T.yield(F7R(g),4);case 4:a=T.yieldResult;_.SR(T,3);break;case 2:return _.Eu(T),p&&_.ZT(p),_.MN(Error("Ki"),"ERROR"),T.return();case 3:O=_.r(D,UVq);if(!O)return p&&_.ZT(p),T.return();(u=(P=O.commerceActionConfig)==null?void 0:(k=P.commandLifeCycleConfig)==null?
void 0:k.onStartCommand)&&X.JSC$18012_commandHandler.resolveCommand(u);return T.yield(_.Jl(X.innertubeTransportService,D,{client_data:{paymentsClientToken:{token:a}}}),5);case 5:(Q=T.yieldResult)?(p&&_.ZT(p),((t=Q)==null?0:t.command)&&X.JSC$18012_commandHandler.resolveCommand(Q.command),(J=(Y=O.commerceActionConfig)==null?void 0:(y=Y.commandLifeCycleConfig)==null?void 0:y.onSuccessCommand)&&X.JSC$18012_commandHandler.resolveCommand(J)):(p&&_.ZT(p),_.MN(Error("Li")),(L=(B=O.commerceActionConfig)==
null?void 0:(K=B.commandLifeCycleConfig)==null?void 0:K.onFailureCommand)&&X.JSC$18012_commandHandler.resolveCommand(L)),_.t_(T)}})};
zM[kz]=[_.uX,_.Bl];var jS=function(D,C,X){this.store=D;this.JSC$18028_commandHandler=C;this.innertubeTransportService=X};
_.h(jS,bB);
jS.prototype.resolveCommand=function(D,C){var X=this,c,W,p,g,a,O,P,k,u;return _.I(function(Q){c=_.r(D,g9c);W=c.googlePaymentPayload;c.onStartCommand&&X.JSC$18028_commandHandler.resolveCommand(c.onStartCommand);p=W.encryptedPurchaseParams;g=W.ypcLogWalletAnalyticDataEndpoint;a=c.serializedTransactionFlowLoggingParams;O=W.serializedPaymentsClientParams;P=c.ypcCujContext;u=VAr(X.innertubeTransportService,(k=C)==null?void 0:k.form,p,g,a,O,P);return Q.return(u.then(function(B){Z8n(C==null?void 0:C.form,
!1);var K=X.store,L=X.JSC$18028_commandHandler,t=B.integratorData;t==null||t===""||B.error!=null?(String(B.error)==="-1"&&c.onDismissCommand?L.resolveCommand(c.onDismissCommand):String(B.error)!=="-1"&&c.onFailureCommand&&L.resolveCommand(c.onFailureCommand),String(B.error)!=="-1"&&String(B.error)!=="132"&&_.MN(Error("Mi"),"ERROR")):(c.googlePaymentEntityKey&&K.dispatch(_.bK("commerceAcquisitionClientPayloadEntity",c.googlePaymentEntityKey,{key:c.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:t,
fundsGuaranteeCallbackClientData:B.integratorClientCallbackData}}})),c.onSuccessCommand&&L.resolveCommand(c.onSuccessCommand));_.WE()},function(B){Z8n(C==null?void 0:C.form,!1);
_.MN(B,"ERROR");c.onFailureCommand&&X.JSC$18028_commandHandler.resolveCommand(c.onFailureCommand)}))})};
jS[kz]=[pn,_.uX,_.Bl];var M9=function(D,C){this.JSC$18032_commandHandler=D;this.purchaseManager=C};
_.h(M9,bB);
M9.prototype.resolveCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k;return _.I(function(u){X=_.r(D,aXq);((c=X)==null?0:(W=c.commandLifeCycleConfig)==null?0:W.onStartCommand)&&C.JSC$18032_commandHandler.resolveCommand(X.commandLifeCycleConfig.onStartCommand);if(!((p=X)==null?0:(g=p.googlePaymentPurchaseManagerPayload)==null?0:g.securePayloadBytes))return _.MN(Error("Ni"),"ERROR"),u.return();a=fRg(_.Dk(X.googlePaymentPurchaseManagerPayload.securePayloadBytes));O=_.PE().get("hl");P=_.zr();r_U(a.serialize(),
O,function(Q){P.resolve(Q)},function(Q){P.reject(Q)},P.resolve);
k=P.promise;return u.return(k.then(function(Q){if(Q)if(Q==null?0:Q.errorCode){_.MN(Error("Oi`"+Q.errorCode),"ERROR");var B,K;((B=X)==null?0:(K=B.commandLifeCycleConfig)==null?0:K.onFailureCommand)&&C.JSC$18032_commandHandler.resolveCommand(X.commandLifeCycleConfig.onFailureCommand)}else if(Q==null?0:Q.isCancelled){var L,t;((L=X)==null?0:(t=L.commandLifeCycleConfig)==null?0:t.onCancelCommand)&&C.JSC$18032_commandHandler.resolveCommand(X.commandLifeCycleConfig.onCancelCommand)}else{var Y,y;((Y=X)==
null?0:(y=Y.commandLifeCycleConfig)==null?0:y.onSuccessCommand)&&C.JSC$18032_commandHandler.resolveCommand(X.commandLifeCycleConfig.onSuccessCommand)}},function(Q){_.MN(Q,"ERROR");
var B,K;((B=X)==null?0:(K=B.commandLifeCycleConfig)==null?0:K.onFailureCommand)&&C.JSC$18032_commandHandler.resolveCommand(X.commandLifeCycleConfig.onFailureCommand)}))})};
M9[kz]=[_.uX,K$U];var ZyG=function(D,C){this.JSC$18040_commandHandler=D;this.commandAllowlistOverride=C;var X;this.commandAllowlist=(X=this.commandAllowlistOverride)!=null?X:j5};
ZyG.prototype.handleResponse=function(D,C,X){var c,W=C==null?void 0:(c=C.config)==null?void 0:c.command;if(!W||this.commandAllowlist.some(function(p){return!!_.r(W,p)})){C=void 0;
X!==void 0&&(C={form:{element:X}});D.onResponseReceivedCommand&&this.JSC$18040_commandHandler.resolveCommand(D.onResponseReceivedCommand,C);D.onResponseReceivedAction&&this.JSC$18040_commandHandler.resolveCommand(D.onResponseReceivedAction,C);D.onResponseReceivedEndpoint&&this.JSC$18040_commandHandler.resolveCommand(D.onResponseReceivedEndpoint,C);D.command&&this.JSC$18040_commandHandler.resolveCommand(D.command,C);if(D.onResponseReceivedCommands)for(X=_.U(D.onResponseReceivedCommands),c=X.next();!c.done;c=
X.next())this.JSC$18040_commandHandler.resolveCommand(c.value,C);if(D.onResponseReceivedActions)for(X=_.U(D.onResponseReceivedActions),c=X.next();!c.done;c=X.next())this.JSC$18040_commandHandler.resolveCommand(c.value,C);if(D.onResponseReceivedEndpoints)for(X=_.U(D.onResponseReceivedEndpoints),c=X.next();!c.done;c=X.next())this.JSC$18040_commandHandler.resolveCommand(c.value,C);if(D.actions)for(D=_.U(D.actions),X=D.next();!X.done;X=D.next())this.JSC$18040_commandHandler.resolveCommand(X.value,C)}};
ZyG[kz]=[_.uX,_.vK(mTm)];var GvN=new _.P6("INNERTUBE_TOKEN_SERVICE");var VoG=new _.P6("SCHEDULER_TOKEN");var TVt=function(D){this.scheduler=D;D={};this.tokenMap=(D.app={},D.user={},D)};
TVt.prototype.handleResponse=function(D,C){if(!C)throw Error("Pi");var X;if(D=(X=D.responseContext)==null?void 0:X.innertubeTokenJar){if(D.appTokens){var c,W,p;X=(c=C.innerTubeRequest.context)==null?void 0:(W=c.request)==null?void 0:(p=W.innertubeTokenJar)==null?void 0:p.appTokens;HyN(this,D.appTokens,this.tokenMap.app,X)}if(D.userTokens){var g,a,O;C=(g=C.innerTubeRequest.context)==null?void 0:(a=g.request)==null?void 0:(O=a.innertubeTokenJar)==null?void 0:O.userTokens;HyN(this,D.userTokens,this.tokenMap.user,
C)}}};
TVt.prototype.processContext=function(D){D.request||(D.request={});var C=Object.keys(this.tokenMap.app).length,X=Object.keys(this.tokenMap.user).length;if(C||X)D.request.innertubeTokenJar={},C&&(D.request.innertubeTokenJar.appTokens=[].concat(_.VB(Object.values(this.tokenMap.app).flat()))),X&&(D.request.innertubeTokenJar.userTokens=[].concat(_.VB(Object.values(this.tokenMap.user).flat())))};
var HyN=function(D,C,X,c){C=_.U(C);for(var W=C.next(),p={};!W.done;p={token$jscomp$139:void 0},W=C.next()){p.token$jscomp$139=W.value;if(p.token$jscomp$139.type===void 0)throw new _.Zf("InnerTube token has no type",p.token$jscomp$139);if(p.token$jscomp$139.clearTokens)X[p.token$jscomp$139.type]=[];else if(p.token$jscomp$139.value!==void 0){X[p.token$jscomp$139.type]||(X[p.token$jscomp$139.type]=[]);if(c!==void 0&&c.length){W=_.U(c);for(var g=W.next(),a={};!g.done;a={requestToken:void 0},g=W.next())a.requestToken=
g.value,g=X[p.token$jscomp$139.type].findIndex(function(O){return function(P){return P===O.requestToken||(0,_.ZI.equals)(P,O.requestToken)}}(a)),g>-1&&X[p.token$jscomp$139.type].splice(g,1)}X[p.token$jscomp$139.type].push(p.token$jscomp$139);
p.token$jscomp$139.maxAgeSeconds&&Number(p.token$jscomp$139.maxAgeSeconds)>0&&D.scheduler.addLowPriorityJob(function(O){return function(){var P=X[O.token$jscomp$139.type].indexOf(O.token$jscomp$139);P>-1&&X[O.token$jscomp$139.type].splice(P,1)}}(p),Number(p.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Zf("InnerTube token has no value",p.token$jscomp$139);
}};
TVt[kz]=[VoG];var JpN=new _.P6("LOCAL_INNERTUBE_ROUTER_TOKEN"),ze6=new _.P6("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var q9=function(D){this.serviceMap=D};
q9.prototype.shouldPreferLocalResponse=function(D,C){return(D=jVG(this,D))?D.shouldPreferLocalResponse(C):!1};
q9.prototype.localInnertubeResponse=function(D,C){var X=this,c;return _.I(function(W){return(c=jVG(X,D))?W.return(c.localInnertubeResponse(C)):W.return(Promise.reject(Error("Qi")))})};
q9.prototype.canProvideFallbackResponse=function(D,C){return(D=jVG(this,D))?D.canProvideFallbackResponse(C):!1};
q9.prototype.localFallbackInnertubeResponse=function(D,C){var X=this,c;return _.I(function(W){return(c=jVG(X,D))?W.return(c.localFallbackInnertubeResponse(C)):W.return(Promise.reject(Error("Qi")))})};
var jVG=function(D,C){C=_.mC(C);return C?(D=D.serviceMap[C])?D:null:null};
q9[kz]=[ze6];var rB=function(){};
rB.prototype.shouldPreferLocalResponse=function(){return!1};
rB.prototype.localInnertubeResponse=function(){return _.I(function(D){return D.return(Promise.reject(Error("Ri")))})};
rB.prototype.canProvideFallbackResponse=function(){return!0};
rB.prototype.localFallbackInnertubeResponse=function(){var D,C,X;return _.I(function(c){D=$f("CLOSE_POPUP");C={openPopupAction:H85()};X={actions:[D,C]};return c.return(X)})};var WL5=function(D,C){this.JSC$18089_upliftPromise=D;this.store=C};
_.S=WL5.prototype;_.S.shouldPreferLocalResponse=function(D){var C=D.videoId,X;if(X=C)X=Jh5(this.store.getState().entities,D.videoId);return X&&zb5(this.store.getState().entities,C)?zqm(this.store.getState().entities,D.playlistId):!1};
_.S.localInnertubeResponse=function(D){var C=this,X;return _.I(function(c){return(X=C.getPlayerResponse(D))?c.return(Promise.resolve(X)):c.return(Promise.reject(Error("Si")))})};
_.S.canProvideFallbackResponse=function(D){return!!D.videoId};
_.S.localFallbackInnertubeResponse=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.JSC$18089_upliftPromise,2);X=C.getPlayerResponse(D);var W;X?W=c.return(Promise.resolve(X)):W=b8(C.store.getState().entities,D.videoId)?c.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ce(_.I7("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:DpJ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
c.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Ce(_.I7("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:lB5()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return W})};
_.S.getPlayerResponse=function(D){return klJ(this.store.getState().entities,D.videoId)};var bT=function(D,C){this.localPlayerService=D;this.localWatchNextService=C};
bT.prototype.shouldPreferLocalResponse=function(D){var C=D.playerRequest;D=D.watchNextRequest;return!!(C&&this.localPlayerService.shouldPreferLocalResponse(C)&&D&&this.localWatchNextService.shouldPreferLocalResponse(D))};
bT.prototype.localInnertubeResponse=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1){X=D.playerRequest;c=D.watchNextRequest;if(!X||!c)throw new _.Zf("Missing streaming request",D);return g.yield(C.localPlayerService.localInnertubeResponse(X),2)}if(g.nextAddress!=3)return W=g.yieldResult,g.yield(C.localWatchNextService.localInnertubeResponse(c),3);p=g.yieldResult;return g.return({playerResponse:W,watchNextResponse:p})})};
bT.prototype.canProvideFallbackResponse=function(D){var C=D.playerRequest;D=D.watchNextRequest;return!!(C&&this.localPlayerService.canProvideFallbackResponse(C)&&D&&this.localWatchNextService.canProvideFallbackResponse(D))};
bT.prototype.localFallbackInnertubeResponse=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return X=D.playerRequest,c=D.watchNextRequest,X&&c?g.yield(C.localPlayerService.localFallbackInnertubeResponse(X),2):g.return(Promise.reject(new _.Zf("Missing streaming request",D)));if(g.nextAddress!=3)return W=g.yieldResult,g.yield(C.localWatchNextService.localFallbackInnertubeResponse(c),3);p=g.yieldResult;return g.return({playerResponse:W,watchNextResponse:p})})};var uT=function(D){this.JSC$18099_persistentStorePromiseAccessor=D};
uT.prototype.shouldPreferLocalResponse=function(){return!1};
uT.prototype.localInnertubeResponse=function(){return _.I(function(D){return D.return(Promise.reject(Error("Ti")))})};
uT.prototype.canProvideFallbackResponse=function(){return!0};
uT.prototype.localFallbackInnertubeResponse=function(){var D=this,C,X;return _.I(function(c){return c.nextAddress==1?c.yield(D.JSC$18099_persistentStorePromiseAccessor(),2):c.nextAddress!=3?(C=c.yieldResult)?c.yield(C.get("service:guide:fallback"),3):c.return(Promise.reject(Error("Ui"))):(X=c.yieldResult)&&_.Cn(X)?c.return(jOW(_.Cn(X))):c.return(Promise.reject(Error("Vi")))})};var Kn=function(){};
Kn.prototype.shouldPreferLocalResponse=function(){return!1};
Kn.prototype.localInnertubeResponse=function(){return _.I(function(D){return D.return(Promise.reject(Error("Wi")))})};
Kn.prototype.canProvideFallbackResponse=function(){return!0};
Kn.prototype.localFallbackInnertubeResponse=function(){var D,C,X;return _.I(function(c){D=$f("CLOSE_POPUP");C={openPopupAction:H85()};X={actions:[D,C]};return c.return(X)})};var kw=function(){this.urlMap=Moo;this.fallbackCommand=_.fU};
kw.prototype.shouldPreferLocalResponse=function(D){return(D=D.url)?!!qFY(this,D):!1};
kw.prototype.localInnertubeResponse=function(D){var C=this,X;return _.I(function(c){return(X=D.url)?c.return(fI1(D,qFY(C,X))):c.return(Promise.reject(Error("Xi")))})};
kw.prototype.canProvideFallbackResponse=function(){return!0};
kw.prototype.localFallbackInnertubeResponse=function(D){var C=this,X,c,W,p,g,a,O;return _.I(function(P){X=D.url;if(!X)return P.return(fI1(D,C.fallbackCommand));if(c=qFY(C,X))return P.return(fI1(D,c));W=void 0;p=_.mC(X);p==="/watch"&&(g=_.DH(X,"v"))&&(O=(a=_.DH(X,"list"))!=null?a:void 0,W=_.D7(g,O));W||(W=C.fallbackCommand);return P.return(fI1(D,W))})};
var qFY=function(D,C){if(C)return D.urlMap[_.wl(C)]},fI1=function(D,C){C&&D.parentTrackingParams&&(C.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:D.parentTrackingParams}},C.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:C})};var Qs=function(D,C,X){this.JSC$18110_upliftPromise=D;this.store=C;this.JSC$18110_persistentStorePromiseAccessor=X};
Qs.prototype.shouldPreferLocalResponse=function(){return!1};
Qs.prototype.localInnertubeResponse=function(){return _.I(function(D){return D.return(Promise.reject(Error("Yi")))})};
Qs.prototype.canProvideFallbackResponse=function(){return!0};
Qs.prototype.localFallbackInnertubeResponse=function(){var D=this;return _.I(function(C){return C.return(d3U(D))})};
var d3U=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(Dt(D.JSC$18110_upliftPromise,D.store),2);C=c.yieldResult;X={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[JOm(C)]}}}};return c.return(Ret(D,X))})},Ret=function(D,C){var X,c;
return _.I(function(W){if(W.nextAddress==1)return W.yield(D.JSC$18110_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return X=W.yieldResult,W.yield(WR(X),3);c=W.yieldResult;return W.return({responseContext:{},contents:C,topbar:c})})};var vR=function(D,C,X){this.JSC$18117_upliftPromise=D;this.store=C;this.JSC$18117_persistentStorePromiseAccessor=X};
vR.prototype.shouldPreferLocalResponse=function(D){var C=D.videoId;return C&&Jh5(this.store.getState().entities,C)&&zb5(this.store.getState().entities,C)?zqm(this.store.getState().entities,D.playlistId):!1};
vR.prototype.localInnertubeResponse=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1)return(X=D.videoId)?W.yield(C.JSC$18117_upliftPromise,2):W.return(Promise.reject(Error("Zi")));if(W.nextAddress!=3)return W.yield(lIk(C,D,X),3);c=W.yieldResult;return W.return(DdG(C,c,X))})};
vR.prototype.canProvideFallbackResponse=function(D){return D.videoId?!0:!1};
vR.prototype.localFallbackInnertubeResponse=function(D){var C=this,X,c,W,p;return _.I(function(g){switch(g.nextAddress){case 1:return(X=D.videoId)?g.yield(C.JSC$18117_upliftPromise,2):g.return(Promise.reject(Error("Zi")));case 2:return g.yield(lIk(C,D,X),3);case 3:c=g.yieldResult;if(b8(C.store.getState().entities,X)){g.jumpTo(4);break}return g.yield(Dt(C.JSC$18117_upliftPromise,C.store),5);case 5:return W=g.yieldResult,g.return(Cct(c,W));case 4:return Jh5(C.store.getState().entities,X)&&zb5(C.store.getState().entities,
X)?g.return(DdG(C,c,X)):(p={title:_.Ce(_.I7("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:DpJ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},g.return(Cct(c,p)))}})};
var lIk=function(D,C,X){var c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return c=C.playlistId,W=_.D7(X,c),O.yield(D.JSC$18117_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return p=O.yieldResult,O.yield(WR(p),3);g=O.yieldResult;a={responseContext:{},currentVideoEndpoint:W,topbar:g};return O.return(a)})},DdG=function(D,C,X){if(D=b8(D.store.getState().entities,X)){var c;
X=D.videoEntity;var W,p={title:X$(X.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.c_((c=X.localizedStrings)==null?void 0:c.viewCount),viewCount:_.c_((W=X.localizedStrings)==null?void 0:W.viewCount)}}};X.publishedTimestampMillis&&(p.dateText=_.c_(OzW(new Date(Number(X.publishedTimestampMillis)))));c={videoPrimaryInfoRenderer:p};W=D.videoEntity;D=D.channelEntity;D={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:X$(_.I7("SHOW_MORE",void 0,"Show more")),
showLessText:X$(_.I7("SHOW_LESS",void 0,"Show less")),description:W.formattedDescription,owner:{videoOwnerRenderer:{title:X$(D.title),thumbnail:D.avatar}}}};C.contents={twoColumnWatchNextResults:{results:{results:{contents:[c,D]}}}}}return C},Cct=function(D,C){D.contents={singleColumnWatchNextResults:{results:{results:{contents:[JOm(C)]}}}};
return D};var BR=function(D,C,X){this.JSC$18122_upliftPromise=D;this.store=C;this.JSC$18122_persistentStorePromiseAccessor=X};
BR.prototype.shouldPreferLocalResponse=function(){return!1};
BR.prototype.localInnertubeResponse=function(){return _.I(function(D){return D.return(Promise.reject(Error("$i")))})};
BR.prototype.canProvideFallbackResponse=function(){return!0};
BR.prototype.localFallbackInnertubeResponse=function(){var D=this,C,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return p.yield(D.JSC$18122_persistentStorePromiseAccessor(),2);case 2:return C=p.yieldResult,p.yield(WR(C),3);case 3:return X=p.yieldResult,c={responseContext:{},topbar:X},p.yield(D.JSC$18122_upliftPromise,4);case 4:return p.yield(Dt(D.JSC$18122_upliftPromise,D.store),5);case 5:return W=p.yieldResult,c.watchStatus={backgroundPromoRenderer:W},p.return(c)}})};var XIp,cRk;_.fY=new _.P6("ENDPOINT_MAP");XIp=new _.P6("WATCH_ENDPOINT_MAP");cRk=new _.P6("REEL_ENDPOINT_MAP");var lLd=/^[a-zA-Z0-9_\-]{11}$/;var D1h=_.Ef(function(){var D,C;return(C=(D=window).matchMedia)==null?void 0:C.call(D,"(prefers-reduced-motion: reduce)").matches});var oTU=_.Ef(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 D=_.Df("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");D||(D=_.mv("VIDEO"),_.$h("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
D));return!!(D&&D.canPlayType&&D.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Wv3=XMLHttpRequest.prototype.fetch,pIt=Wv3&&Wv3.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!AC?!0:!1;var d_=function(D){this.JSC$18133_storeWithEntities=D};
_.h(d_,Pk);_.S=d_.prototype;_.S.getApiPaths=function(){return d0N};
_.S.getExtension=function(D){return _.r(D,_.TC)||_.r(D,_.ko)||_.r(D,Jyf)};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$14344_getStoreKey=function(D){if((_.b("kevlar_cache_on_ttl_player")||_.b("mweb_enable_shorts_innertube_player_prefetch")||_.b("mweb_use_new_history_manager")||_.b("web_shorts_prefetch_service_enabled"))&&(D=this.getExtension(D))&&D.videoId){var C={videoId:D.videoId};D.playlistId&&(C.playlistId=D.playlistId);D.playerParams&&(C.params=D.playerParams);return _.Vy("player",C)}};
_.S.JSC$14337_getClientScreen=function(D){var C;return((C=D.contentPlaybackContext)==null?void 0:C.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.S.JSC$14337_buildRequest=function(D,C,X){if(_.b("enable_interstitial_entity_check")){var c=this.JSC$18133_storeWithEntities;if(C.videoId)for(var W=_.U(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),p=W.next();!p.done;p=W.next()){p=p.value;var g;var a=void 0,O=void 0,P=C.videoId,k=p;(g=c)?(P=_.gJ(P+k,"interstitialInteractionStateEntity"),g=(a=(O=_.aI(g.getState().entities,"interstitialInteractionStateEntity",P))==null?void 0:O.primaryButtonClicked)!=null?a:!1):g=!1;if(g)switch(p){case "CONTENT_CHECK_REQUIRED":C.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":C.racyCheckOk=!0}}}C.videoId&&(D.videoId=C.videoId);C.playlistId&&(D.playlistId=C.playlistId);C.index!==void 0&&(D.playlistIndex=C.index+1);C.playerParams&&(D.params=C.playerParams);"startTimeSeconds"in C&&C.startTimeSeconds&&(_.b("enable_player_request_builder_start_time_floor")?D.startTimeSecs=Math.floor(C.startTimeSeconds):D.startTimeSecs=C.startTimeSeconds);X.contentPlaybackContext&&(D.playbackContext={contentPlaybackContext:X.contentPlaybackContext});X.prefetchPlaybackContext&&
(D.playbackContext=Object.assign({},D.playbackContext,{prefetchPlaybackContext:X.prefetchPlaybackContext}),D.context.request||(D.context.request={}),D.context.request.isPrefetch=!0);D.playbackContext||(D.playbackContext={});c=oTU();D.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!c,supportXhr:pIt};X.overrideMutedAtStart&&(D.overrideMutedAtStart=X.overrideMutedAtStart);D.racyCheckOk=!!C.racyCheckOk;D.contentCheckOk=!!C.contentCheckOk;!_.b("captions_prefs_killswitch")&&(X=(X=_.KH("yt-player-caption-language-preferences"))?
X:[],X==null?0:X.length)&&(D.captionParams={viewerSelectedCaptionLangs:X})};
_.S.getRequestConfig=function(D){D=this.JSC$14344_getStoreKey(D);var C;D&&(C={storeStrategy:{storeKey:D}});_.b("web_log_player_watch_next_ticks")&&(C=C||{},C.requestTick="ps_s",C.responseTick="ps_r");return C};
d_[kz]=[pn];var RM=function(D,C){this.playerRequestBuilder=D;this.watchNextRequestBuilder=C};
_.h(RM,Pk);RM.prototype.getApiPaths=function(){return Z3c};
RM.prototype.getExtension=function(D){return _.r(D,_.TC)};
RM.prototype.isNavigationCommand=function(){return!0};
RM.prototype.JSC$14337_buildRequest=function(D,C,X){D.playerRequest={};this.playerRequestBuilder.JSC$14337_buildRequest(D.playerRequest,C,X);_.b("web_streaming_watch")&&(D.watchNextRequest={},this.watchNextRequestBuilder.JSC$14337_buildRequest(D.watchNextRequest,C,X))};
RM[kz]=[d_,jQ];var SeG;_.lg=new _.P6("SHORTS_CONTROLLER_TOKEN");SeG=new _.P6("SHORTS_STATE_STORE_TOKEN");var Dx=function(D,C){var X=_.MJ.apply(2,arguments);D=D===void 0?0:D;_.Zf.call(this,C,X);this.errorType=D;Object.setPrototypeOf(this,this.constructor.prototype)};
_.h(Dx,_.Zf);var Udw,gTw,a1N,SJo,T_,stt,ARo,OFw,kyN,vTp,$dt;Udw=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(D){return D+"="}).join("|"));
gTw=RegExp(".*\\?.*playnext=1.*");a1N=function(D,C,X,c,W,p){this.watchEndpointMap=D;this.reelWatchEndpointMap=C;this.innerTubeTransportService=X;this.fetchPbj=c;this.ephemeralStore=W;this.reloadOnPlayerFailure=p===void 0?!0:p};
_.I1P=function(D,C){var X=_.BK("web_pbj_log_warning_rate",0);X=X>0&&Math.random()<X;var c;if((c=_.r(C.commandMetadata,_.ge))==null||!c.rootVe)return X&&_.fQ(Error("ej")),!1;var W;c=(W=_.r(C.commandMetadata,_.ge))==null?void 0:W.url;if(!c)return X&&_.fQ(Error("fj")),!1;if(gTw.test(c))return!0;if(Udw.test(c))return X&&_.fQ(Error("gj`"+c)),!1;if(_.r(C,_.TC)){if(!(D.watchEndpointMap.watchNext&&D.watchEndpointMap.player||_.b("kevlar_fetch_initial_data_op_watch_client")))return X&&_.fQ(Error("aj")),!1;
D=_.BK("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;_.r(C,_.TC)?det(C)?C=!0:(D&&_.fQ(Error("bj")),C=!1):(D&&_.fQ(Error("aj")),C=!1);return C}if(_.r(C,_.ko))return Rqj(C);if(_.r(C,_.ad))return!0;D=_.H0(D.innerTubeTransportService,C);!D&&X&&_.MN(Error("hj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(C)});return D};
SJo=function(D,C,X,c,W,p){C={url:C};if(X==null?0:X.itct)C.parentTrackingParams=X.itct;var g=_.dJ(pnb);return _.vV(D.innerTubeTransportService,C,g).then(function(a){(a=a.endpoint)||(a=_.fU);(X==null?0:X.itct)&&a&&!a.trackingParams&&(a.trackingParams=X.itct);var O=vl(a);return T_(D,a,X,c,O,W,p)})};
T_=function(D,C,X,c,W,p,g,a){a=a===void 0?{}:a;if(D.fetchPbj&&!_.I1P(D,C)&&!_.b("force_one_platform")){var O=D.fetchPbj(C),P=_.WE(O.then(function(q){if(!q)throw Error("ij");g(P)||p(C,q);return q}));
return P}var k,u,Q={rootVe:(k=_.r(C.commandMetadata,_.ge))==null?void 0:k.rootVe,url:(u=_.r(C.commandMetadata,_.ge))==null?void 0:u.url,endpoint:C,page:W};if(_.r(C,_.TC)){var B,K={contentPlaybackContext:_.SX(X,(B=_.r(C.commandMetadata,_.ge))==null?void 0:B.url,c)},L=_.zr(),t,Y=(t=D.watchEndpointMap.player)==null?void 0:t().JSC$14344_getStoreKey(C);t=Y!==void 0&&((O=D.ephemeralStore)==null?void 0:O.has(Y));_.b("web_streaming_watch")&&window.TextDecoderStream&&!t?(O=YP4(D.innerTubeTransportService,
C,K,function(q){!Q.response&&q.content&&(Q.response=q.content);!Q.playerResponse&&q.player&&(Q.playerResponse=q.player);p(C,Q)}),Y=zXd(C),Y.length&&(Q.preconnect=Y,p(C,Q)),OFw(O,L,Q).catch(function(q){q instanceof Dx&&q.errorType===2&&_.b("web_streaming_watch_fallback")&&ARo(D,C,K,Q,p,g,L)})):ARo(D,C,K,Q,p,g,L);
return L.promise}if(_.r(C,_.ko)){var y;if(((y=_.r(C,_.ko))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var J=_.zr();_.Pc3(_.iX().resolve(_.lg),C).then(function(q){$dt(D,X,c,W,p,J,q)});
return J.promise}O=_.WE();t={contentPlaybackContext:_.SX(X,(Y=_.r(C.commandMetadata,_.ge))==null?void 0:Y.url,c)};(Y=D.reelWatchEndpointMap.player)&&(Y=Y().JSC$14337_getRequest(C,t))&&(O=_.vV(D.innerTubeTransportService,Y.innerTubeRequest,Y.input,C.clickTrackingParams,Y.config));Y=_.WE();(a=D.reelWatchEndpointMap.reelItemWatch)&&(a=a().JSC$14337_getRequest(C))&&(Y=_.vV(D.innerTubeTransportService,a.innerTubeRequest,a.input,C.clickTrackingParams,a.config));a=_.WE();(k=D.reelWatchEndpointMap.reelWatchSequence)&&
_.r(C,_.ko).sequenceParams&&(t=k().JSC$14337_getRequest(C,t))&&(_.b("web_enable_delay_shorts_sequence_call_forget")?_.vV(D.innerTubeTransportService,t.innerTubeRequest,t.input,C.clickTrackingParams,t.config):a=_.vV(D.innerTubeTransportService,t.innerTubeRequest,t.input,C.clickTrackingParams,t.config));t=_.WE(Q);k=_.zr();vTp(C,t,O,Y,a,p,g,k);return k.promise}var T;if(_.r(C,Wb3)&&((T=_.r(C.commandMetadata,_.ge))==null?0:T.url))return O=I$m(_.Xg(Tv().location.href),_.Xg(_.r(C.commandMetadata,_.ge).url)).toString(),
SJo(D,O,X,c,p,function(){return!1});
if(_.r(C,_.ad))return p(C,Q),_.WE(Q);if(_.H0(D.innerTubeTransportService,C)){O=Object.assign({},{tempData:X,disableCache:X.disableCache},a);var H=_.Jl(D.innerTubeTransportService,C,O).then(function(q){Q.response=q;g(H)||p(C,Q);return Q});
return H}return _.WE(Q)};
_.iFN=function(D,C,X,c){if(_.r(C,_.TC)||_.r(C,_.ko)&&(_.b("mweb_enable_shorts_innertube_player_prefetch")||_.b("kevlar_enable_shorts_prefetch_in_sequence"))||_.r(C,Jyf)&&_.b("web_enable_prefetching_videos_on_home")){var W,p={contentPlaybackContext:_.SX(X,(W=_.r(C.commandMetadata,_.ge))==null?void 0:W.url,c),prefetchPlaybackContext:XNW(X)},g,a,O;if(((g=_.r(C,_.TC))==null?void 0:(a=g.watchEndpointSupportedPrefetchConfig)==null?void 0:(O=a.prefetchHintConfig)==null?void 0:O.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(X=
D.watchEndpointMap.watchNext)if(p=X().JSC$14337_getRequest(C,p))return Promise.resolve(_.vV(D.innerTubeTransportService,p.innerTubeRequest,p.input,void 0,p.config).then(function(u){return u}))}else if(X=D.watchEndpointMap.player)if(p=X().JSC$14337_getRequest(C,p))return Promise.resolve(_.vV(D.innerTubeTransportService,p.innerTubeRequest,p.input,void 0,p.config).then(function(u){return u}))}else if(_.H0(D.innerTubeTransportService,C)){var P={tempData:X},k=mb4(D.innerTubeTransportService,C);
return k?new Promise(function(u,Q){var B,K;return _.I(function(L){if(L.nextAddress==1)return L.yield(k,2);if(L.nextAddress!=4)return B=L.yieldResult,B.JSC$14344_getStoreKey(C,P)?L.yield(_.Jl(D.innerTubeTransportService,C,P),4):(Q(new _.Zf("Prefetching request builder with no store key.",C)),L.jumpTo(0));K=L.yieldResult;u(K);_.t_(L)})}):Promise.reject(new _.Zf("Prefetching unregistered request builder.",C))}return Promise.reject(new _.Zf("No request builder available to prefetch endpoint.",C))};
stt=function(D,C){var X,c,W;if(_.r(C,_.TC)){var p=D.watchEndpointMap.watchNext;p&&(X=p());(D=D.watchEndpointMap.player)&&(c=D())}else if(_.r(C,_.ko))(p=D.reelWatchEndpointMap.reelItemWatch)&&(X=p()),(p=D.reelWatchEndpointMap.player)&&(c=p()),(D=D.reelWatchEndpointMap.reelWatchSequence)&&(W=D());else{a:{D=OAF(C,D.innerTubeTransportService.endpointMap);if(D!==void 0)if(typeof D.then==="function")_.MN(new _.Zf("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",C));else break a;
D=void 0}D&&(X=D)}var g,a,O;return{content:(g=X)==null?void 0:g.JSC$14344_getStoreKey(C),player:(a=c)==null?void 0:a.JSC$14344_getStoreKey(C),reelSequence:(O=W)==null?void 0:O.JSC$14344_getStoreKey(C)}};
ARo=function(D,C,X,c,W,p,g){var a=_.WE(),O=D.watchEndpointMap.player;_.b("web_streaming_player")&&(O=FA(RM));O&&(O=O().JSC$14337_getRequest(C,X))&&(a=_.vV(D.innerTubeTransportService,O.innerTubeRequest,O.input,C.clickTrackingParams,O.config));O=_.WE();var P=D.watchEndpointMap.watchNext;P&&(X=P().JSC$14337_getRequest(C,X))&&(O=_.vV(D.innerTubeTransportService,X.innerTubeRequest,X.input,C.clickTrackingParams,X.config));c=_.WE(c);kyN(D,C,c,a,O,W,p,g)};
OFw=function(D,C,X){var c;return _.I(function(W){if(W.nextAddress==1)return W.yield(D,2);_.b("web_streaming_watch_delay_200")||_.b("web_streaming_watch_delay_400")?(c=_.b("web_streaming_watch_delay_200")?200:400,setTimeout(function(){C.resolve(X)},c)):C.resolve(X);
_.t_(W)})};
kyN=function(D,C,X,c,W,p,g,a){var O,P,k,u,Q;_.I(function(B){switch(B.nextAddress){case 1:return B.yield(X,2);case 2:O=B.yieldResult;if(g(a.promise))return a.resolve(O),B.return();p(C,O);P=zXd(C);if(!P.length){B.jumpTo(3);break}return B.yield(X,4);case 4:O.preconnect=P,p(C,O);case 3:return _.KK(B,5),B.yield(c,7);case 7:k=B.yieldResult;_.SR(B,6);break;case 5:return u=_.Eu(B),a.reject(u),B.return();case 6:if(k===void 0&&D.reloadOnPlayerFailure)return O.reload=!0,p(C,O),a.resolve(O),B.return();if(g(a.promise))return a.resolve(O),
B.return();O.playerResponse=k;p(C,O);_.b("web_watch_stop_scheduler_on_player_response")&&Neg();_.KK(B,8);return B.yield(W,10);case 10:Q=B.yieldResult;_.SR(B,9);break;case 8:_.Eu(B);case 9:if(Q===void 0)return O.response={responseContext:{}},a.resolve(O),B.return();if(g(a.promise))return a.resolve(O),B.return();O.response=Q;p(C,O);a.resolve(O);_.t_(B)}})};
vTp=function(D,C,X,c,W,p,g,a){var O,P,k,u,Q,B;_.I(function(K){switch(K.nextAddress){case 1:return K.yield(C,2);case 2:O=K.yieldResult;if(g(a.promise))return a.resolve(O),K.return();p(D,O);P=zXd(D);if(!P.length){K.jumpTo(3);break}return K.yield(C,4);case 4:O.preconnect=P,p(D,O);case 3:return _.KK(K,5),K.yield(X,7);case 7:k=K.yieldResult;_.SR(K,6);break;case 5:return u=_.Eu(K),a.reject(u),K.return();case 6:if(k===void 0)return O.reload=!0,p(D,O),a.resolve(O),K.return();if(g(a.promise))return a.resolve(O),
K.return();O.playerResponse=k;p(D,O);_.b("web_shorts_stop_scheduler_on_player_response")&&Neg();_.KK(K,8);return K.yield(c,10);case 10:Q=K.yieldResult;_.SR(K,9);break;case 8:_.Eu(K);case 9:if(Q===void 0)return O.response={responseContext:{}},a.resolve(O),K.return();if(g(a.promise))return a.resolve(O),K.return();O.response=Q;p(D,O);_.KK(K,11);return K.yield(W,13);case 13:B=K.yieldResult;_.SR(K,12);break;case 11:_.Eu(K);case 12:if(g(a.promise))return a.resolve(O),K.return();B&&(O.reelWatchSequenceResponse=
B);p(D,O);a.resolve(O);_.t_(K)}})};
$dt=function(D,C,X,c,W,p,g){var a,O,P,k,u,Q;_.I(function(B){if((a=g)==null||!a.replacementEndpoint)return p.reject(),B.return();O=g.replacementEndpoint;(P=_.r(O,_.ko))?(g.sequenceContinuation&&(P.sequenceParams=g.sequenceContinuation),k=_.iX().resolve(_.lg),u=P.sequenceParams,uJ3(k,O)&&delete P.sequenceParams,Q=T_(D,O,C,X,c,W,function(){return!1}),Q.then(function(K){return _.I(function(L){if(L.nextAddress==1)return QhX(k,{reelWatchEndpoint:{sequenceParams:u}},K),L.yield(0,2);
p.resolve(K);_.t_(L)})})):p.reject();
_.t_(B)})};
a1N[kz]=[XIp,cRk,_.Bl,_.vK(Ltd),_.vK(_.Tc)];var Bo1=function(){var D=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return D.sequenceMap}}},yre=function(D,C,X){var c,W=(c=C.config)==null?void 0:c.sequenceStrategy;
if(!W)return X();D.sequenceMap.has(W.sequenceKey)||D.sequenceMap.set(W.sequenceKey,[]);D=D.sequenceMap.get(W.sequenceKey);switch(W.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return bFU(D,C,X);case "REQUEST_SEQUENCE_TYPE_REPLACE":return rRP(D,C,X);default:throw new _.Zf("Request could not be sequenced",C);}},bFU=function(D,C,X){var c,W,p;
return _.I(function(g){D.length>0?(W=D[D.length-1],c=W.responsePromise.then(function(){return X()})):c=X();
p={request:C,responsePromise:c};D.push(p);Kv6(D,p);return g.return(p.responsePromise)})},rRP=function(D,C,X){X=X();
if(D.length>0)for(var c=_.U(D),W=c.next();!W.done;W=c.next())W.value.responsePromise=X;var p={request:C,responsePromise:X};D.push(p);Kv6(D,p);return Promise.resolve().then(function(){return D.indexOf(p)>0?p.responsePromise.then(function(g){return Object.assign({},g,{sequenceMetaData:{skipProcessing:!0}})}):p.responsePromise})},Kv6=function(D,C){C.responsePromise.then(function(){var X=D.indexOf(C);
X>-1&&D.splice(X,1)})};var hi3=new _.P6("REQUEST_SEQUENCING");var Cc=function(){};
_.h(Cc,Pk);Cc.prototype.getApiPaths=function(){return[]};
Cc.prototype.getExtension=function(D){return _.r(D,h84)};
Cc.prototype.JSC$14337_buildRequest=function(D,C){D.recaptchaToken=C.recaptchaToken};
Cc.prototype.getApiUrl=function(){return"/das_captcha"};var Xq=function(){};
_.h(Xq,Pk);Xq.prototype.getApiPaths=function(){return pYM};
Xq.prototype.getExtension=function(D){return _.r(D,oye)};
Xq.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.createBackstagePostParams&&(D.createBackstagePostParams=C.createBackstagePostParams);X.comment_text&&(D.commentText=X.comment_text);if(X.attached_video_id)D.videoAttachment={videoId:X.attached_video_id};else if(X.image_poll_options)D.pollAttachmentData={options:X.image_poll_options};else if(X.poll_options)D.pollAttachment={choices:X.poll_options};else if(X.quiz_options)D.quizAttachmentData={options:X.quiz_options};else if(X.image_blob_id)D.imageAttachment=
{encryptedBlobId:X.image_blob_id},X.source_video_id&&(D.imageAttachment.sourceExternalVideoId=X.source_video_id),X.image_preview_coordinates&&(D.imageAttachment.previewCoordinates=JSON.parse(X.image_preview_coordinates));else if(X.images_data)D.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 c,W,p,g,a;D.clipAttachment={externalVideoId:(p=X.clip_external_video_id)!=null?p:"",offsetMs:(g=(c=X.clip_offset_ms)==
null?void 0:c.toString())!=null?g:"",durationMs:(a=(W=X.clip_duration_ms)==null?void 0:W.toString())!=null?a:""}}else X.shared_post_id&&(D.sharedPostAttachment={postId:X.shared_post_id});X.tagged_video_id&&(D.postCreationData={taggedVideoId:X.tagged_video_id});X.access_restrictions&&(typeof X.access_restrictions==="number"&&(C=X.access_restrictions,D.accessRestrictions={restriction:C!==1&&C===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof X.access_restrictions==="string"&&
(D.accessRestrictionsParams=X.access_restrictions));X.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=X.scheduled_publish_time_sec.toString())};var cS=function(){};
_.h(cS,Pk);cS.prototype.getApiPaths=function(){return ADq};
cS.prototype.getExtension=function(D){return _.r(D,XkN)};
cS.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.decorateMessageParams&&(D.params=C.decorateMessageParams);X.text&&(D.text=X.text)};var ox=function(){};
_.h(ox,Pk);ox.prototype.getApiPaths=function(){return NQc};
ox.prototype.getExtension=function(D){return _.r(D,W8x)};
ox.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;X.video_id&&(D.videoId=X.video_id)};var WS=function(){};
_.h(WS,Pk);WS.prototype.getApiPaths=function(){return F1d};
WS.prototype.getExtension=function(D){return _.r(D,_.Up)};
WS.prototype.JSC$14337_buildRequest=function(D,C,X){X.suggestions_query&&(D.input=X.suggestions_query)};var pc=function(){};
_.h(pc,Pk);pc.prototype.getApiPaths=function(){return kGe};
pc.prototype.getExtension=function(D){return _.r(D,pGk)};
pc.prototype.JSC$14337_buildRequest=function(D,C,X){X.comment_text!==void 0&&(D.commentText=X.comment_text);X.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=X.scheduled_publish_time_sec.toString());D.updateBackstagePostParams=C.updateBackstagePostParams};var SI=function(){};
_.h(SI,Pk);SI.prototype.getApiPaths=function(){return jb};
SI.prototype.getExtension=function(D){return _.r(D,_.nI)};
SI.prototype.JSC$14337_buildRequest=function(D,C,X){X.formData&&(D.formData=X.formData);C.token?D.continuation=C.token:C.continuationTokenKey&&(X=_.fe().getState(),C=_.aI(X.entities,"continuationTokenEntity",C.continuationTokenKey))&&(D.continuation=String(C.continuationToken))};
var xdt=function(){};
_.h(xdt,Pk);_.S=xdt.prototype;_.S.getApiPaths=function(){return jb};
_.S.getExtension=function(D){return _.r(D,_.Pl)};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$14344_getStoreKey=function(D){if((D=this.getExtension(D))&&D.browseId){var C={browseId:D.browseId};D.browseEndpointContextSupportedConfigs&&(C.browseEndpointContextSupportedConfigs=JSON.stringify(D.browseEndpointContextSupportedConfigs));D.params&&(C.params=D.params);D.query&&(C.query=D.query);return _.Vy("browse",C)}};
_.S.JSC$14337_buildRequest=function(D,C,X){C.browseId&&(D.browseId=C.browseId);C.params&&(D.params=C.params);C.query&&(D.query=C.query);X.formData?D.formData=X.formData:C.formData&&(D.formData=C.formData);C.browseId==="FEsubscriptions"&&_.PE().getFlag(155)&&(D.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");C.browseId==="SPaccount_playback"&&(X=_.PE(),D.formData||(D.formData={}),D.formData.accountSettingsFormData={flagCaptionsDefaultOff:X.getFlag(65),flagAutoCaptionsDefaultOn:X.getFlag(66),
flagDisableInlinePreview:X.getFlag(186),flagAudioDescriptionDefaultOn:X.getFlag(198)});if(C.browseId==="FEwhat_to_watch"){X=_.PE();var c=X.getFlag(196);X.getFlag(197)&&(D.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:c}}})}C.browseId==="FEwhat_to_watch"&&(C=_.PE().getFlag(186),D.inlineSettingStatus=C?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.S.getRequestConfig=function(D,C){C=C===void 0?{}:C;var X={};if(D=this.JSC$14344_getStoreKey(D,C))X.storeStrategy={storeKey:D,disableCache:C.disableCache};_.b("web_log_browse_ticks_ks")||(X.requestTick="br_s",X.responseTick="br_r");return X};var UD=function(){};
_.h(UD,Pk);UD.prototype.getApiPaths=function(){return D0x};
UD.prototype.getExtension=function(D){return _.r(D,Yv5)};
UD.prototype.JSC$14337_buildRequest=function(D,C,X){D.legacyYoutubeChannelUsername=X.legacyYouTubeChannelUsername||"";D.legacyYoutubeChannelPassword=X.legacyYouTubeChannelPassword||""};var gs=function(){};
_.h(gs,Pk);gs.prototype.getApiPaths=function(){return SKq};
gs.prototype.getExtension=function(D){return _.r(D,AxC)};
gs.prototype.JSC$14337_buildRequest=function(D,C,X){X.recaptcha_response_token&&(D.recaptchaResponseToken=X.recaptcha_response_token);X.channel_id&&(D.channelId=X.channel_id)};var ax=function(){};
_.h(ax,Pk);ax.prototype.getApiPaths=function(){return uaC};
ax.prototype.getExtension=function(D){return _.r(D,uke)};
ax.prototype.JSC$14337_buildRequest=function(D,C,X){C.externalChannelId&&(D.externalChannelId=C.externalChannelId);X.handle&&(D.handleUpdate={handle:X.handle},C.handleEditSource&&(D.handleUpdate.handleEditSource=C.handleEditSource))};var Ix=function(){};
_.h(Ix,Pk);Ix.prototype.getApiPaths=function(){return r1x};
Ix.prototype.getExtension=function(D){return _.r(D,VUJ)};
Ix.prototype.JSC$14337_buildRequest=function(D,C,X){C.request&&(D.channelId=C.request.channelId);var c;if(X==null?0:(c=X.uploadDefaults)==null?0:c.emojiReactionSet)D.uploadDefaultsRequest||(D.uploadDefaultsRequest={}),D.uploadDefaultsRequest.emojiReactionSet=X.uploadDefaults.emojiReactionSet};var OD=function(){};
_.h(OD,Pk);OD.prototype.getApiPaths=function(){return xWf};
OD.prototype.getExtension=function(D){return _.r(D,PWk)};
OD.prototype.JSC$14337_buildRequest=function(D,C,X){C.externalChannelId&&(D.externalChannelId=C.externalChannelId);C.channelHandleEntityKey&&(D.channelHandleEntityKey=C.channelHandleEntityKey);C.handleEditSource&&(D.handleEditSource=C.handleEditSource);X.handle?D.handle=X.handle:X.name&&(D.name=X.name)};var Aj=function(){};
_.h(Aj,Pk);Aj.prototype.getApiPaths=function(){return cDd};
Aj.prototype.getExtension=function(D){return _.r(D,ni5)};
Aj.prototype.JSC$14337_buildRequest=function(D,C){C.actions?D.actions=C.actions:C.action&&(D.actions=[C.action])};var PS=function(){};
_.h(PS,Pk);PS.prototype.getApiPaths=function(){return oA5};
PS.prototype.getExtension=function(D){return _.r(D,_.nI)};
PS.prototype.JSC$14337_buildRequest=function(D,C){C.token&&(D.continuation=C.token)};var $8=function(){};
_.h($8,Pk);$8.prototype.getApiPaths=function(){return EAq};
$8.prototype.getExtension=function(D){return _.r(D,_.nI)};
$8.prototype.JSC$14337_buildRequest=function(D,C){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";C.token&&(D.fetchCommentsParams={continuation:C.token})};var vS=function(){};
_.h(vS,Pk);vS.prototype.getApiPaths=function(){return gAf};
vS.prototype.getExtension=function(D){return _.r(D,y$5)};
vS.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.createReplyParams&&(D.createReplyParams=C.createReplyParams);C.commentText&&(D.commentText=_.Mh(C.commentText));X.comment_text&&(D.commentText=X.comment_text);X.image_blob_id&&(D.imageAttachment={encryptedBlobId:X.image_blob_id});X.botguard_response&&(D.botguardResponse=X.botguard_response)};
_.$a.Object.defineProperties(vS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iZ=function(){};
_.h(iZ,Pk);iZ.prototype.getApiPaths=function(){return a$f};
iZ.prototype.getExtension=function(D){return _.r(D,_.Ywf)};
iZ.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.createCommentParams&&(D.createCommentParams=C.createCommentParams);C.commentText&&(D.commentText=_.Mh(C.commentText));C.videoPositionMention&&(D.videoPositionMention=C.videoPositionMention);C.sources&&(D.sources=C.sources);X.comment_text&&(D.commentText=X.comment_text);X.attached_video_id?D.videoAttachment={videoId:X.attached_video_id}:X.poll_options?D.pollAttachment={choices:X.poll_options}:X.image_blob_id?D.imageAttachment=
{encryptedBlobId:X.image_blob_id}:X.shared_post_id&&(D.sharedPostAttachment={postId:X.shared_post_id});X.access_restrictions&&typeof X.access_restrictions==="number"&&(C=X.access_restrictions,D.accessRestrictions={restriction:C!==1&&C===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});X.botguard_response&&(D.botguardResponse=X.botguard_response)};
_.$a.Object.defineProperties(iZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var k8=function(){};
_.h(k8,Pk);k8.prototype.getApiPaths=function(){return Qre};
k8.prototype.getExtension=function(D){return _.r(D,FO5)};
k8.prototype.JSC$14337_buildRequest=function(D,C,X){C.commentText&&(D.replyText=_.Mh(C.commentText));X.comment_text&&(D.replyText=X.comment_text);D.updateReplyParams=C.updateReplyParams};
_.$a.Object.defineProperties(k8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uZ=function(){};
_.h(uZ,Pk);uZ.prototype.getApiPaths=function(){return BI5};
uZ.prototype.getExtension=function(D){return _.r(D,wk5)};
uZ.prototype.JSC$14337_buildRequest=function(D,C,X){C.commentText&&(D.commentText=_.Mh(C.commentText));X.comment_text&&(D.commentText=X.comment_text);D.updateCommentParams=C.updateCommentParams};
_.$a.Object.defineProperties(uZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var QQ=function(){};
_.h(QQ,Pk);QQ.prototype.getApiPaths=function(){return bjx};
QQ.prototype.getExtension=function(D){return _.r(D,wGk)};
QQ.prototype.JSC$14337_buildRequest=function(D,C){C.settings&&(D.settings=C.settings)};var BS=function(){};
_.h(BS,Pk);BS.prototype.getApiPaths=function(){return K1C};
BS.prototype.getExtension=function(D){return _.r(D,$ib)};
BS.prototype.JSC$14337_buildRequest=function(D,C){C.channelCreationToken&&(D.channelCreationToken=C.channelCreationToken);C.source&&(D.source=C.source)};var bZ=function(){};
_.h(bZ,Pk);bZ.prototype.getApiPaths=function(){return U0M};
bZ.prototype.getExtension=function(D){return _.r(D,kI5)};
bZ.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;if(X.name&&(X.given_name||X.family_name))D=new _.Zf("channel creation cannot set both GAIA and YouTube names",C),_.MN(D);else{if(C.zeroStepChannelCreationParams){if(!X.comment_text){D=new _.Zf("zero_step_create_comment_params but no zero_step_texts",C);_.MN(D);return}D.zeroStepChannelCreationParams=C.zeroStepChannelCreationParams;D.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
X.comment_text,X.botguard_response&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=X.botguard_response))}D.channelCreationToken=C.channelCreationToken;X.given_name&&(D.givenName=X.given_name);X.family_name&&(D.familyName=X.family_name);C.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(D.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)D.overrideChannelCreationParams={},X.name&&(D.overrideChannelCreationParams.name=X.name),X.handle&&(D.overrideChannelCreationParams.handle=X.handle),X.avatar_url&&(D.overrideChannelCreationParams.avatarUrl=X.avatar_url),X.encryptedBlobId&&(D.overrideChannelCreationParams.blobEncryptionId=X.encryptedBlobId),X.enableIdentityForAllChannelCreationDialog&&(X.encryptedBlobId?D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
X.isDefaultProfilePhoto!==void 0&&(D.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&&(D.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&&(D.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=X.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),X.obakeImageSource&&(D.overrideChannelCreationParams.obakeImageSourceType=X.obakeImageSource))}};var rs=function(){};
_.h(rs,Pk);rs.prototype.getApiPaths=function(D){return(D=this.getExtension(D))&&D.status==="DISLIKE"?i3M:D&&D.status==="INDIFFERENT"?Xnq:H3q};
rs.prototype.getExtension=function(D){return _.r(D,_.XI)};
rs.prototype.JSC$14337_buildRequest=function(D,C){C.target&&(D.target=C.target);if(C=this.getParams(C))D.params=C};
rs.prototype.getParams=function(D){switch(D==null?void 0:D.status){case "DISLIKE":return D.dislikeParams;case "INDIFFERENT":return D.removeLikeParams;default:return D==null?void 0:D.likeParams}};var Kc=function(){};
_.h(Kc,Pk);Kc.prototype.getApiPaths=function(){return Ojc};
Kc.prototype.getExtension=function(D){return _.r(D,J$C)};
Kc.prototype.JSC$14337_buildRequest=function(D,C){C.settingItemId&&(D.settingItemId=C.settingItemId);C.stringValue!=null&&C.stringValue!==void 0?D.newValue={stringValue:C.stringValue}:C.intValue?D.newValue={intValue:C.intValue}:C.boolValue!==null&&C.boolValue!==void 0?D.newValue={boolValue:C.boolValue}:(D=new _.Zf("Unknown value type for SetSettingEndpoint.",C),_.MN(D))};var hj=function(){};
_.h(hj,Pk);hj.prototype.getApiPaths=function(){return $Wk};
hj.prototype.getExtension=function(D){return _.r(D,Ux5)||void 0};
hj.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.channelIds&&(D.channelIds=C.channelIds);C.siloName&&(D.siloName=C.siloName);C.params&&(D.params=C.params);X.botguardResponse&&(D.botguardResponse=X.botguardResponse);X.feature&&(D.clientFeature=X.feature)};
_.$a.Object.defineProperties(hj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var x8=function(){};
_.h(x8,Pk);x8.prototype.getApiPaths=function(){return ijq};
x8.prototype.getExtension=function(D){return _.r(D,zSg)||void 0};
x8.prototype.JSC$14337_buildRequest=function(D,C){C.channelIds&&(D.channelIds=C.channelIds);C.siloName&&(D.siloName=C.siloName);C.params&&(D.params=C.params)};
_.$a.Object.defineProperties(x8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Lc=function(D){this.shareClientParamsProvider=D};
_.h(Lc,Pk);Lc.prototype.getApiPaths=function(){return dQo};
Lc.prototype.getExtension=function(D){return _.r(D,klN)||_.r(D,_.uCJ)||_.r(D,i4C)};
Lc.prototype.JSC$14337_buildRequest=function(D,C){C.serializedShareEntity&&(D.serializedSharedEntity=C.serializedShareEntity);if(C.clientParamIdentifier){var X;if((X=this.shareClientParamsProvider)==null?0:X.clientParams.has(C.clientParamIdentifier)){X=this.shareClientParamsProvider;C=C.clientParamIdentifier;var c=X.clientParams.get(C);c&&X.clientParams.delete(C);D.clientParams=c}}};
Lc[kz]=[DJX];var sD=function(){};
_.h(sD,Pk);sD.prototype.getApiPaths=function(){return dVJ};
sD.prototype.getExtension=function(D){return _.r(D,JnJ)};
sD.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var nc=function(){};
_.h(nc,Pk);nc.prototype.getApiPaths=function(){return kRJ};
nc.prototype.getExtension=function(D){return _.r(D,VB5)};
nc.prototype.JSC$14337_buildRequest=function(D,C){C.dismissal&&(D.items=[C.dismissal])};
_.$a.Object.defineProperties(nc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ws=function(){};
_.h(ws,Pk);ws.prototype.getApiPaths=function(){return Vd5};
ws.prototype.getExtension=function(D){return _.r(D,_.tT)||void 0};
ws.prototype.JSC$14337_buildRequest=function(D,C,X){D.feedbackTokens=[];C.feedbackToken&&D.feedbackTokens.push(C.feedbackToken);if(C=C.cpn||X.cpn)D.feedbackContext={cpn:C};D.isFeedbackTokenUnencrypted=!!X.is_feedback_token_unencrypted;D.shouldMerge=!1;X.extra_feedback_tokens&&(D.shouldMerge=!0,D.feedbackTokens=D.feedbackTokens.concat(X.extra_feedback_tokens))};
_.$a.Object.defineProperties(ws.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fq=function(){};
_.h(Fq,Pk);Fq.prototype.getApiPaths=function(){return Vd5};
Fq.prototype.getExtension=function(D){return _.r(D,_.Up)};
Fq.prototype.JSC$14337_buildRequest=function(D,C,X){X.feedback_tokens&&(D.feedbackTokens=X.feedback_tokens,D.shouldMerge=!0)};
_.$a.Object.defineProperties(Fq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Zx=function(){};
_.h(Zx,Pk);Zx.prototype.getApiPaths=function(){return Vd5};
Zx.prototype.getExtension=function(D){return _.r(D,vDn)};
Zx.prototype.JSC$14337_buildRequest=function(D,C){C.undoToken&&(D.feedbackTokens=[C.undoToken]);C.isUndoTokenUnencrypted&&(D.isFeedbackTokenUnencrypted=C.isUndoTokenUnencrypted)};
_.$a.Object.defineProperties(Zx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Gq=function(){};
_.h(Gq,Pk);Gq.prototype.getApiPaths=function(){return L3b};
Gq.prototype.getExtension=function(D){return _.r(D,F_C)};
Gq.prototype.JSC$14337_buildRequest=function(D,C){C.nextEndpoint&&_.r(C.nextEndpoint,_.oX)?D.nextEndpoint={urlEndpoint:_.r(C.nextEndpoint,_.oX)}:C.nextEndpoint&&_.r(C.nextEndpoint,_.TC)&&(D.nextEndpoint={watchEndpoint:_.r(C.nextEndpoint,_.TC)});C.setRacy&&(D.setRacy=C.setRacy);C.setControvercy&&(D.setControvercy=C.setControvercy)};var VQ=function(D){this.JSC$18335_storeWithEntities=D};
_.h(VQ,Pk);VQ.prototype.getApiPaths=function(){return Qvc};
VQ.prototype.getExtension=function(D){return _.r(D,Ooq)};
VQ.prototype.JSC$14337_buildRequest=function(D,C){C.flowId&&(D.flowId=C.flowId);C.targetId&&(D.targetId=C.targetId);C.continuation&&(D.continuation=C.continuation);var X=C.flowStateEntityKey;if(C.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&X&&this.JSC$18335_storeWithEntities){var c;if(C=(c=this.JSC$18335_storeWithEntities.getState())==null?void 0:c.entities)if(c=_.pe(X).entityType,c=_.aI(C,c,X))D.flowState=c,D.flowStateEntityKey=X}};
_.$a.Object.defineProperties(VQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
VQ[kz]=[pn];var Lvo=function(){};
_.h(Lvo,Pk);_.S=Lvo.prototype;_.S.getApiPaths=function(){return GRq};
_.S.JSC$14344_getStoreKey=function(){return _.Vy("guide")};
_.S.getRequestConfig=function(){var D=this.JSC$14344_getStoreKey(),C;D&&(C={storeStrategy:{storeKey:D}});return C};
_.S.isNavigationCommand=function(){return!0};
_.S.getExtension=function(D){return _.r(D,_.Up)};
_.S.JSC$14337_buildRequest=function(D){D.fetchLiveState=!0};var Tq=function(){};
_.h(Tq,Pk);Tq.prototype.getApiPaths=function(){return CBJ};
Tq.prototype.getExtension=function(D){return _.r(D,EiM)};
Tq.prototype.JSC$14337_buildRequest=function(){};var HS=function(){};
_.h(HS,Pk);HS.prototype.getApiPaths=function(){return XYe};
HS.prototype.getExtension=function(D){return _.r(D,tuk)};
HS.prototype.JSC$14337_buildRequest=function(){};var Jj=function(){};
_.h(Jj,Pk);Jj.prototype.getApiPaths=function(){return fXg};
Jj.prototype.getExtension=function(D){return _.r(D,_.nI)};
Jj.prototype.JSC$14337_buildRequest=function(D,C){C.token&&(D.continuation=C.token);var X,c;D==null||(X=D.context)==null||(c=X.user)==null||delete c.onBehalfOfUser};
Jj.prototype.getRequestConfig=function(D){var C={},X;if(((X=this.getExtension(D))==null?void 0:X.sessionIndex)!==void 0){var c;C={authStrategy:{sessionIndex:(c=this.getExtension(D))==null?void 0:c.sessionIndex}}}return C};var zq=function(){};
_.h(zq,Pk);zq.prototype.JSC$14337_getRequest=function(D){var C=this.getExtension(D),X=D="";if(C==null?0:C.popup)D="true";if(C==null?0:C.disableSignout)X="true";C={};return{input:"/getAccountSwitcherEndpoint",requestShell:GC("/getAccountSwitcherEndpoint","GET",(C["X-YouTube-Delegation-Context"]=_.q6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),C["X-YouTube-Account-Switcher-Popup"]=D,C["X-YouTube-Account-Switcher-Disable-Signout"]=X,C)),innerTubeRequest:{}}};
zq.prototype.getApiPaths=function(){return[]};
zq.prototype.getExtension=function(D){return _.r(D,_.hCt)};
zq.prototype.JSC$14337_buildRequest=function(){};var jI=function(){};
_.h(jI,Pk);jI.prototype.JSC$14337_getRequest=function(D){var C="/cross_account_channel_transfer";(D=this.getExtension(D))&&(C=Mcm(C,{target_session:D.targetSessionIndex,source_rapt:D.sourceRapt,rapt:D.targetRapt}));return{input:C,requestShell:GC(C,"GET"),innerTubeRequest:{}}};
jI.prototype.getApiPaths=function(){return[]};
jI.prototype.getExtension=function(D){return _.r(D,EEM)};
jI.prototype.JSC$14337_buildRequest=function(){};var M5=function(){};
_.h(M5,Pk);M5.prototype.getApiPaths=function(){return BQd};
M5.prototype.isNavigationCommand=function(){return!0};
M5.prototype.getExtension=function(D){return _.r(D,_.Up)};
M5.prototype.JSC$14337_buildRequest=function(D){var C=_.PE().get("gsml","");C&&(D.safetyModeLockerObfuscatedGaiaId=C);D.userInterfaceTheme=_.FU(!0);_.Zg()?D.deviceTheme="DEVICE_THEME_SELECTED":_.U0o()?D.deviceTheme="DEVICE_THEME_SUPPORTED":D.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var q5=function(){};
_.h(q5,Pk);q5.prototype.getApiPaths=function(){return fXg};
q5.prototype.getExtension=function(D){return _.r(D,tG5)};
q5.prototype.JSC$14337_buildRequest=function(D,C){if(C&&C.requestType&&(D.requestType=C.requestType,C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var X=C.nextUrl;X&&(_.fuj(X)||PK(X))&&(D.nextNavendpoint={urlEndpoint:{url:X}})}C&&C.channelSwitcherQuery&&(D.channelSwitcherQuery=C.channelSwitcherQuery);C&&C.triggerChannelCreation&&(D.triggerChannelCreation=C.triggerChannelCreation);var c;if(C==null?0:(c=C.contentOwnerConfig)==
null?0:c.externalContentOwnerId)D.contentOwnerConfig=C.contentOwnerConfig;D.callCircumstance=C&&C.requestType&&C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var W,p;C=D==null?void 0:(W=D.context)==null?void 0:(p=W.user)==null?void 0:p.onBehalfOfUser;if(C!==void 0){D.obfuscatedSelectedGaiaId=C;var g,a;D==null||(g=D.context)==null||(a=g.user)==null||delete a.onBehalfOfUser}var O,P;if(W=D==null?void 0:(O=D.context)==null?void 0:(P=O.user)==null?
void 0:P.serializedDelegationContext)D.selectedSerializedDelegationContext=W};var fc=function(){};
_.h(fc,Pk);fc.prototype.getApiPaths=function(){return Rsb};
fc.prototype.getExtension=function(D){return _.r(D,QsJ)};
fc.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var ds=function(){};
_.h(ds,Pk);ds.prototype.getApiPaths=function(){return Sk5};
ds.prototype.getExtension=function(D){return _.r(D,_.E35)};
ds.prototype.JSC$14337_buildRequest=function(D,C){if(C=C.createBroadcastRequest)D.useMasks=C.useMasks,D.broadcastType=C.broadcastType,D.broadcastSource=C.broadcastSource,D.broadcastMetadata=C.broadcastMetadata,D.broadcastMetadataMask=C.broadcastMetadataMask,D.videoMetadata=C.videoMetadata,D.videoMetadataMask=C.videoMetadataMask,D.liveChatSettingsUpdate=C.liveChatSettingsUpdate,D.liveChatSettingsUpdateMask=C.liveChatSettingsUpdateMask,D.cloneVideoId=C.cloneVideoId,D.cloneWithOverrides=C.cloneWithOverrides,
D.targetEntity=C.targetEntity,D.scheduledRedirectMetadata=C.scheduledRedirectMetadata};var Rx=function(){};
_.h(Rx,Pk);Rx.prototype.getApiPaths=function(){return I$d};
Rx.prototype.getExtension=function(D){return _.r(D,rF5)};
Rx.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.params&&(D.params=C.params);X.questionText&&(D.questionText=X.questionText);X.optionText&&X.optionText.length>0&&(D.optionText=X.optionText)};var lZ=function(){};
_.h(lZ,Pk);lZ.prototype.getApiPaths=function(){return PBJ};
lZ.prototype.getExtension=function(D){return _.r(D,BX5)};
lZ.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var Dm=function(){};
_.h(Dm,Pk);Dm.prototype.getApiPaths=function(){return x0q};
Dm.prototype.getExtension=function(D){return _.r(D,iU5)};
Dm.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var CP=function(){};
_.h(CP,Pk);CP.prototype.getApiPaths=function(){return svg};
CP.prototype.getExtension=function(D){return _.r(D,km5)};
CP.prototype.JSC$14337_buildRequest=function(D,C,X){C.params&&(D.params=C.params);C.continuation&&(D.continuation=C.continuation);X.currentPlayerState&&X.currentPlayerState.playerOffsetMs&&(D.currentPlayerState={playerOffsetMs:X.currentPlayerState.playerOffsetMs.toString()})};var X4=function(){};
_.h(X4,Pk);X4.prototype.getApiPaths=function(){return m04};
X4.prototype.getExtension=function(D){return _.r(D,vLJ)};
X4.prototype.JSC$14337_buildRequest=function(D,C,X){C.params&&(D.params=C.params);X.continuation&&(D.continuation=X.continuation);"hidden"in X&&(D.webClientInfo={isDocumentHidden:X.hidden});X.isInvalidationTimeoutRequest&&(D.isInvalidationTimeoutRequest=X.isInvalidationTimeoutRequest);X.invalidationPayload&&(C=$gq(_.Dk($z(X.invalidationPayload))),D.invalidationPayloadLastPublishAtUsec=Ny(C,2));X.reloadActionPanel&&(D.reloadActionPanel=X.reloadActionPanel);X.fullReload&&(D.fullReload=X.fullReload);
X.currentPlayerState&&(D.currentPlayerState=X.currentPlayerState)};var cu=function(){};
_.h(cu,Pk);cu.prototype.getApiPaths=function(){return JDC};
cu.prototype.getExtension=function(D){return _.r(D,bUC)};
cu.prototype.JSC$14337_buildRequest=function(D,C){D.params=C.params};var oW=function(){};
_.h(oW,Pk);oW.prototype.getApiPaths=function(){return L1N};
oW.prototype.getExtension=function(D){return _.r(D,nZe)};
oW.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var Wu=function(){};
_.h(Wu,Pk);Wu.prototype.getApiPaths=function(){return epM};
Wu.prototype.getExtension=function(D){return _.r(D,wmx)};
Wu.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var pP=function(){};
_.h(pP,Pk);pP.prototype.getApiPaths=function(){return zpc};
pP.prototype.getExtension=function(D){return _.r(D,KQg)};
pP.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var Sa=function(){};
_.h(Sa,Pk);Sa.prototype.getApiPaths=function(){return Md5};
Sa.prototype.getExtension=function(D){return _.r(D,hrg)};
Sa.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var UP=function(){};
_.h(UP,Pk);UP.prototype.getApiPaths=function(){return c1q};
UP.prototype.getExtension=function(D){return _.r(D,ryq)};
UP.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var gZ=function(){};
_.h(gZ,Pk);gZ.prototype.getApiPaths=function(){return aDC};
gZ.prototype.getExtension=function(D){return _.r(D,_.xgM)};
gZ.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.params&&(D.params=C.params);X.client_message_id&&(D.clientMessageId=X.client_message_id);X.recaptcha_token&&(D.recaptchaToken=X.recaptcha_token);X.rich_message&&X.rich_message.text_segments?(C=X.rich_message.text_segments.map(function(c){var W={};c.text&&(W.text=c.text);c.emoji_id&&(W.emojiId=c.emoji_id);return W}),D.richMessage={textSegments:C}):X.message&&(D.message=X.message);
X.currentPlayerState&&(D.currentPlayerState=X.currentPlayerState)};var aW=function(){};
_.h(aW,Pk);aW.prototype.getApiPaths=function(){return IDe};
aW.prototype.getExtension=function(D){return _.r(D,LQg)};
aW.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var IW=function(){};
_.h(IW,Pk);IW.prototype.getApiPaths=function(){return vMJ};
IW.prototype.getExtension=function(D){return _.r(D,mge)};
IW.prototype.JSC$14337_buildRequest=function(D,C,X){C.isUserInitiated&&(D.isUserInitiated=C.isUserInitiated);C.initiationSource&&(D.initiationSource=C.initiationSource);X.locationInfo&&(D.context.client.locationInfo=X.locationInfo)};var OP=function(){};
_.h(OP,Pk);OP.prototype.getApiPaths=function(){return jv4};
OP.prototype.getExtension=function(D){return _.r(D,tJJ)};
OP.prototype.JSC$14337_buildRequest=function(D,C,X){C.metadataUpdateRequest&&(C=C.metadataUpdateRequest,D.encryptedVideoId=C.encryptedVideoId,C.liveChat&&(C=C.liveChat,D.liveChat||(D.liveChat={}),C.performAsExternalChannelId&&(D.liveChat.performAsExternalChannelId=C.performAsExternalChannelId),C.source&&(D.liveChat.source=C.source)));var c;if(X==null?0:(c=X.liveChat)==null?0:c.liveChatSettings)D.liveChat||(D.liveChat={}),X=X.liveChat.liveChatSettings,D.liveChat.newLiveChatSettings=X,D.liveChat.newLiveChatSettingsMask||
(D.liveChat.newLiveChatSettingsMask={}),X.emojiReactionSet&&(D.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Ar=function(){};
_.h(Ar,Pk);Ar.prototype.getApiPaths=function(){return hHJ};
Ar.prototype.getExtension=function(D){return _.r(D,_.j1c)};
Ar.prototype.JSC$14337_buildRequest=function(D,C,X){X.continuation?D.continuation=X.continuation:C.videoId&&(D.videoId=C.videoId);X.clientParams&&(D.clientParams=X.clientParams)};var Pu=function(){};
_.h(Pu,Pk);Pu.prototype.getApiPaths=function(){return EAq};
Pu.prototype.getExtension=function(D){return _.r(D,_.Uq)};
Pu.prototype.JSC$14337_buildRequest=function(D,C){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";D.fetchCommentsParams={};C.videoId&&(D.fetchCommentsParams.encryptedVideoId=C.videoId);C.postId&&(D.fetchCommentsParams.postId=C.postId);C.externalChannelId&&(D.fetchCommentsParams.externalChannelId=C.externalChannelId);C.linkedCommentId&&(D.fetchCommentsParams.linkedCommentId=C.linkedCommentId);(0,_.ZI.isEmpty)(D.fetchCommentsParams)&&delete D.fetchCommentsParams};var $0=function(){};
_.h($0,Pk);$0.prototype.getApiPaths=function(){return jb};
$0.prototype.JSC$14337_buildRequest=function(D){D.browseId="FEnotifications_inbox"};
$0.prototype.getExtension=function(D){return _.r(D,_.Up)};var vu=function(){};
_.h(vu,Pk);vu.prototype.getApiPaths=function(){return EAq};
vu.prototype.JSC$14337_buildRequest=function(D,C){C.signal==="GET_NOTIFICATIONS_MENU"&&(D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");C.ctoken&&(D.ctoken=C.ctoken)};
var shp=function(){};
_.h(shp,vu);shp.prototype.getExtension=function(D){return _.r(D,_.Up)};
var mdX=function(){};
_.h(mdX,vu);mdX.prototype.getExtension=function(D){return _.r(D,ynx)};var iD=function(){};
_.h(iD,Pk);iD.prototype.getApiPaths=function(){return wYM};
iD.prototype.getExtension=function(D){return _.r(D,_.Up)};
iD.prototype.JSC$14337_buildRequest=function(){};var k0=function(){};
_.h(k0,Pk);k0.prototype.getApiPaths=function(){return qkx};
k0.prototype.getExtension=function(D){return _.r(D,VuN)||void 0};
k0.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params);C.secondaryParams&&(D.secondaryParams=C.secondaryParams)};var uD=function(){};
_.h(uD,Pk);uD.prototype.getApiPaths=function(){return f$x};
uD.prototype.getExtension=function(D){return _.r(D,Bp5)};
uD.prototype.JSC$14337_buildRequest=function(D,C){C.undo&&(D.undo=C.undo);C.serializedOptOut&&(D.serializedOptOut=C.serializedOptOut);C.serializedRecordInteractionsRequest&&(D.serializedRecordInteractionsRequest=C.serializedRecordInteractionsRequest)};var Qi=function(){};
_.h(Qi,Pk);Qi.prototype.getApiPaths=function(){return l$C};
Qi.prototype.getExtension=function(D){return _.r(D,b45)};
Qi.prototype.JSC$14337_buildRequest=function(D,C){C.serializedInteractionsRequest&&(D.serializedRecordNotificationInteractionsRequest=C.serializedInteractionsRequest)};var Bu=function(){};
_.h(Bu,Pk);Bu.prototype.getApiPaths=function(){return RQZ};
Bu.prototype.getExtension=function(D){return _.r(D,_.fI)};
Bu.prototype.JSC$14337_buildRequest=function(D,C,X){C=C===void 0?{}:C;X=X===void 0?{}:X;C.videoId?D.videoId=C.videoId:C.playlistId&&(D.playlistId=C.playlistId);var c;D.crossDeviceDownloadData={isCrossDeviceDownload:(c=C.isCrossDeviceDownload)!=null?c:!1};!X.downloadToMobileEduShown&&C.isCrossDeviceDownload&&(D.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var W;if(c=(W=C.offlineWebClientEligibility)!=null?W:X.offlineWebClientEligibility)D.offlineWebClientEligibility=c;var p;if(W=(p=C.preferredFormatType)!=
null?p:X.preferredFormatType)D.preferredFormatType=W;var g;if(p=(g=C.lastOfflineQualitySettingsSavedMs)!=null?g:X.lastOfflineQualitySettingsSavedMs)D.lastOfflineQualitySettingsSavedMs=p;C.params&&(D.params=C.params)};var bD=function(){};
_.h(bD,Pk);bD.prototype.getApiPaths=function(){return sq};
bD.prototype.getExtension=function(D){return _.r(D,_.nI)};
bD.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.token&&(D.continuation=C.token);X.formData&&(D.formData=X.formData)};var rZ=function(){};
_.h(rZ,Pk);rZ.prototype.getApiPaths=function(){return sq};
rZ.prototype.getExtension=function(D){return _.r(D,xk5)};
rZ.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;D.continuation=X.continuation};var KP=function(){};
_.h(KP,Pk);KP.prototype.getApiPaths=function(){return sq};
KP.prototype.getExtension=function(D){return _.r(D,_.E3)};
KP.prototype.JSC$14337_buildRequest=function(D,C){var X,c=C.panelIdentifier||((X=C.identifier)==null?void 0:X.tag);c&&(D.panelId=c);var W;if((W=C.globalConfiguration)==null?0:W.params){var p;D.params=(p=C.globalConfiguration)==null?void 0:p.params}if(_.b("enable_ai_companion")){var g;C=C.engagementPanelExtras;if(C==null?0:(g=C.aiCompanionPanelExtras)==null?0:g.includeClientConversationId){var a,O;g=(O=(a=_.iX().resolve(_.vK(U31)))==null?void 0:a("conversations"))==null?void 0:O.get("conversation_id")}else g=
void 0;if(a=g)D.formData=Object.assign({},D.formData,{inputComposerFormData:{conversationId:a}})}};
_.$a.Object.defineProperties(KP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hr=function(){};
_.h(hr,Pk);hr.prototype.getApiPaths=function(){return sq};
hr.prototype.getExtension=function(D){return _.r(D,Oux)};
hr.prototype.JSC$14337_buildRequest=function(D,C){C.panelLoadingStrategy&&cah(D,C.panelLoadingStrategy)};var x0=function(){};
_.h(x0,Pk);x0.prototype.getApiPaths=function(){return sq};
x0.prototype.getExtension=function(D){return _.r(D,Np5)};
x0.prototype.JSC$14337_buildRequest=function(D,C){C.loadingStrategy&&cah(D,C.loadingStrategy)};var LP=function(){};
_.h(LP,Pk);LP.prototype.getApiPaths=function(){return sq};
LP.prototype.getExtension=function(D){return _.r(D,_.rU)};
LP.prototype.JSC$14337_buildRequest=function(D,C){C.panelLoadingStrategy&&cah(D,C.panelLoadingStrategy)};var sP=function(){};
_.h(sP,Pk);sP.prototype.getApiPaths=function(){return sq};
sP.prototype.getExtension=function(D){return _.r(D,Y7f)};
sP.prototype.JSC$14337_buildRequest=function(D,C){var X,c=(X=C.contentSourcePanelIdentifier)==null?void 0:X.tag;c&&(D.panelId=c);var W;if((W=C.globalConfiguration)==null?0:W.params){var p;D.params=(p=C.globalConfiguration)==null?void 0:p.params}};var mq=function(){};
_.h(mq,Pk);mq.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
mq.prototype.getExtension=function(D){return _.r(D,yyb)};
mq.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var ea=function(){};
_.h(ea,Pk);ea.prototype.getApiPaths=function(){return K3C};
ea.prototype.getExtension=function(D){return _.r(D,FVC)};
ea.prototype.JSC$14337_buildRequest=function(D,C){C.externalChannelId&&(D.externalChannelId=C.externalChannelId);C.superChatAction&&(D.superChatAction=C.superChatAction);C.superStickersAction&&(D.superStickersAction=C.superStickersAction)};var EP=function(){};
_.h(EP,Pk);EP.prototype.getApiPaths=function(){return b34};
EP.prototype.getExtension=function(D){return _.r(D,eS5)||_.r(D,Yjo)};
EP.prototype.JSC$14337_buildRequest=function(D,C){C.videoIds?D.videoIds=C.videoIds:C.videoId&&(D.videoIds=[C.videoId]);C.playlistId&&(D.playlistId=C.playlistId);C.params&&(D.params=C.params);D.excludeWatchLater=!1};var tr=function(){};
_.h(tr,Pk);tr.prototype.getApiPaths=function(){return O34};
tr.prototype.getExtension=function(D){return _.r(D,_.vj)};
tr.prototype.JSC$14337_buildRequest=function(D,C,X){X.create_playlist_title?D.title=X.create_playlist_title:C.title&&(D.title=C.title);if(X.create_playlist_privacy_status&&typeof X.create_playlist_privacy_status==="number"){a:{var c=X.create_playlist_privacy_status;if(c!==0){if(c===1){c="PUBLIC";break a}if(c===2){c="UNLISTED";break a}}c="PRIVATE"}D.privacyStatus=c}else C.privacyStatus&&(D.privacyStatus=C.privacyStatus);X.create_playlist_description&&(D.description=X.create_playlist_description);C.videoIds&&
(D.videoIds=C.videoIds);C.params&&(D.params=C.params);C.sourcePlaylistId&&(D.sourcePlaylistId=C.sourcePlaylistId)};var Nb=function(){};
_.h(Nb,Pk);Nb.prototype.getApiPaths=function(){return $0N};
Nb.prototype.getExtension=function(D){return _.r(D,Zzf)};
Nb.prototype.JSC$14337_buildRequest=function(D,C){D.playlistId=C.playlistId};var Y0=function(){};
_.h(Y0,Pk);Y0.prototype.getApiPaths=function(){return td5};
Y0.prototype.getExtension=function(D){return _.r(D,$Lq)};
Y0.prototype.JSC$14337_buildRequest=function(D,C){C.playlistId&&(D.playlistId=C.playlistId);C.params&&(D.params=C.params)};var yi=function(){};
_.h(yi,Pk);yi.prototype.getApiPaths=function(){return RpC};
yi.prototype.getExtension=function(D){return _.r(D,_.gX)||void 0};
yi.prototype.JSC$14337_buildRequest=function(D,C){C.actions&&(D.actions=C.actions);C.params&&(D.params=C.params);C.playlistId&&(D.playlistId=C.playlistId)};var nP=function(){};
_.h(nP,Pk);_.S=nP.prototype;_.S.getApiPaths=function(){return DWN};
_.S.getExtension=function(D){return _.r(D,_.ko)};
_.S.JSC$14337_buildRequest=function(D,C){C.videoId&&(D.playerRequest={videoId:C.videoId},C.playerParams&&(D.playerRequest.params=C.playerParams),C.racyCheckOk&&(D.playerRequest.racyCheckOk=!!C.racyCheckOk),C.contentCheckOk&&(D.playerRequest.contentCheckOk=!!C.contentCheckOk));C.params&&(D.params=C.params);C.inputType&&(D.inputType=C.inputType);D.disablePlayerResponse=!0};
_.S.getRequestConfig=function(D){var C;(D=this.JSC$14344_getStoreKey(D))&&(C={storeStrategy:{storeKey:D}});_.b("web_log_reels_ticks")&&(C=C||{},C.requestTick="r_wrs",C.responseTick="r_wrr");return C};
_.S.JSC$14344_getStoreKey=function(D){D=this.getExtension(D);if(D!=null&&D.videoId){var C={videoId:D.videoId};D.params&&(C.params=D.params);return _.Vy("reel_item_watch",C)}};var wZ=function(){};
_.h(wZ,Pk);_.S=wZ.prototype;_.S.getApiPaths=function(){return C4d};
_.S.getExtension=function(D){return _.r(D,_.ko)};
_.S.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;D.sequenceParams=C.sequenceParams;var c;((c=X)==null?0:c.contentPlaybackContext)&&_.b("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:X.contentPlaybackContext})};
_.S.JSC$14344_getStoreKey=function(D){if(_.b("shorts_controller_retrieve_seedless_sequence_v2")&&(D=this.getExtension(D),D==null?0:D.sequenceParams))return _.Vy("reel_watch_sequence",{sequenceParams:D.sequenceParams})};
_.S.getRequestConfig=function(D){D=this.JSC$14344_getStoreKey(D);var C;D&&(C={storeStrategy:{storeKey:D}});C=C||{};C.requestTick="r_wsrs";C.responseTick="r_wsrr";C.processorTick="r_wsrp";return C};
var F4=function(){};
_.h(F4,Pk);F4.prototype.getApiPaths=function(){return C4d};
F4.prototype.getExtension=function(D){return _.r(D,_.nI)};
F4.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.token&&(D.continuation=C.token);var c;((c=X)==null?0:c.contentPlaybackContext)&&_.b("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:X.contentPlaybackContext})};
F4.prototype.getRequestConfig=function(D){D=this.JSC$14344_getStoreKey(D);var C;D&&(C={storeStrategy:{storeKey:D}});C=C||{};C.requestTick="r_wsrs";C.responseTick="r_wsrr";C.processorTick="r_wsrp";return C};var Zm=function(){};
_.h(Zm,Pk);Zm.prototype.getApiPaths=function(){return uH4};
Zm.prototype.getExtension=function(D){return _.r(D,_.UUN)};
Zm.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.flagAction&&(D.action=C.flagAction);C.flagRequestType&&(D.flagRequestType=C.flagRequestType);C.additionalDetailCheckboxChecked&&(D.additionalDetailCheckboxChecked=C.additionalDetailCheckboxChecked);C.legalCheckboxChecked&&(D.legalCheckboxChecked=C.legalCheckboxChecked);C={};X.flag_issue_type!==void 0&&(C.issue=X.flag_issue_type);X.flag_affiliation!==void 0&&(C.affiliation=X.flag_affiliation);X.flag_full_name&&(C.fullName=X.flag_full_name);
Object.keys(C).length&&(D.legalReportDetails=C);if(X.flag_description||X.text)D.userComments=X.flag_description||X.text;C={};X.minutes!==void 0&&X.seconds!==void 0&&(C.minutes=X.minutes,C.seconds=X.seconds);X.vss_id&&(C.vssId=X.vss_id);Object.keys(C).length&&(D.videoReportDetails=C);C={};X.video_ids&&(C.videoIds=X.video_ids);X.impersonated_channel_url&&(C.impersonatedChannelUrl=X.impersonated_channel_url);Object.keys(C).length&&(D.channelAbuseReportDetails=C)};
_.$a.Object.defineProperties(Zm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ge=function(){};
_.h(Ge,Pk);Ge.prototype.getApiPaths=function(){return hpJ};
Ge.prototype.getExtension=function(D){return _.r(D,wxM)};
Ge.prototype.JSC$14337_buildRequest=function(D,C){C.blockedForKidsContent&&(D.blockedForKidsContent=C.blockedForKidsContent)};var Vi=function(){};
_.h(Vi,Pk);Vi.prototype.getApiPaths=function(){return oMe};
Vi.prototype.getExtension=function(D){return _.r(D,NbJ)};
Vi.prototype.JSC$14337_buildRequest=function(D,C,X){D.params=C.params;X.impersonated_channel_url&&(D.impersonatedChannelUrl=X.impersonated_channel_url)};var Te=function(){};
_.h(Te,Pk);Te.prototype.getApiPaths=function(){return TQ4};
Te.prototype.getExtension=function(D){return _.r(D,_.Fa4)};
Te.prototype.JSC$14337_buildRequest=function(D,C){C.items&&(D.items=C.items);C.kidGaiaId&&(D.kidGaiaId=C.kidGaiaId)};var Hu=function(){};
_.h(Hu,Pk);Hu.prototype.getApiPaths=function(){return rDM};
Hu.prototype.getExtension=function(D){return _.r(D,_.LOC)};
Hu.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params);C.targetId&&(D.targetId=C.targetId)};var Jr=function(){};
_.h(Jr,Pk);Jr.prototype.getApiPaths=function(){return UWe};
Jr.prototype.getExtension=function(D){return _.r(D,nYq)};
Jr.prototype.JSC$14337_buildRequest=function(D,C){C.externalVideoId&&(D.externalVideoId=C.externalVideoId);C.query&&(D.query=C.query);C.sourceTimelines&&(D.sourceTimelines=C.sourceTimelines)};var ze=function(){};
_.h(ze,Pk);ze.prototype.getApiPaths=function(){return gMb};
ze.prototype.getExtension=function(D){return _.r(D,_.nI)||void 0};
ze.prototype.JSC$14337_buildRequest=function(D,C){C.token&&(D.continuation=C.token)};
_.ei1=function(){};
_.h(_.ei1,Pk);_.S=_.ei1.prototype;_.S.getApiPaths=function(){return gMb};
_.S.getExtension=function(D){return _.r(D,_.$o)||void 0};
_.S.isNavigationCommand=function(){return!0};
_.S.JSC$14344_getStoreKey=function(D,C){C=C===void 0?{}:C;if(!C.disableCache&&(D=this.getExtension(D))&&D.query)return C={query:D.query},D.params&&(C.params=D.params),_.Vy("search",C)};
_.S.JSC$14337_buildRequest=function(D,C,X){C.query&&(D.query=C.query);C.params&&(D.params=C.params);if(!_.b("web_forward_suggest_stats_killswitch")){var c=_.r(C,ULg);c&&(D.suggestStats=c)}var W;!_.b("kevlar_searchbox_stats_killswitch")&&((W=X.tempData)==null?0:W.gs_l)&&!_.r(C,ULg)&&(D.webSearchboxStatsUrl="/search?oq="+(X.tempData.oq||"")+"&gs_l="+X.tempData.gs_l);var p;if((p=X.tempData)==null?0:p.entityMid)C=D.suggestionSearchParams||{},C.entityMid=X.tempData.entityMid,D.suggestionSearchParams=C;
if(_.b("enable_desktop_vdcbg_components")||_.b("enable_inline_muted_playback_on_web_search"))C=_.PE().getFlag(186),D.inlineSettingStatus=C?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";X.isFromShorts&&(D.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.S.getRequestConfig=function(D,C){C=C===void 0?{}:C;D=this.JSC$14344_getStoreKey(D,C);var X;D&&(X={storeStrategy:{storeKey:D}});_.b("web_log_search_ticks_ks")||(X=X||{},X.requestTick="sr_s",X.responseTick="sr_r");return X};var ja=function(){};
_.h(ja,Pk);ja.prototype.getApiPaths=function(){return yD5};
ja.prototype.getExtension=function(D){return _.r(D,RSq)};
ja.prototype.JSC$14337_buildRequest=function(D,C){C.serializedGetSharingProviderDataParams&&(D.serializedGetSharingProviderDataParams=C.serializedGetSharingProviderDataParams)};var Mb=function(){};
_.h(Mb,Pk);Mb.prototype.getApiPaths=function(){return nAb};
Mb.prototype.getExtension=function(D){return _.r(D,cfq)};
Mb.prototype.JSC$14337_buildRequest=function(D,C){C.endpoint&&(D.endpoint=C.endpoint);C.action&&(D.action=C.action)};var qb=function(){};
_.h(qb,Pk);qb.prototype.getApiPaths=function(){return vA5};
qb.prototype.getExtension=function(D){return _.r(D,GYk)};
qb.prototype.JSC$14337_buildRequest=function(D,C){D.videoId=C.videoId;C.scheduledRedirectMetadataSourceVideoId&&(D.scheduledRedirectMetadata={sourceVideoId:C.scheduledRedirectMetadataSourceVideoId})};var fP=function(){};
_.h(fP,Pk);fP.prototype.getApiPaths=function(){return A1k};
fP.prototype.getExtension=function(D){return _.r(D,_.Fye)};
fP.prototype.JSC$14337_buildRequest=function(D,C){D.params=C.params;D.correctionText=C.correctionText};var dZ=function(){};
_.h(dZ,Pk);dZ.prototype.getApiPaths=function(){return qcZ};
dZ.prototype.getExtension=function(D){return _.r(D,_.w8q)};
dZ.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params);D.searchQuery=C.searchQuery;D.languageCode=C.languageCode;D.kind=C.kind;D.name=C.name;D.externalVideoId=C.externalVideoId};var RW=function(){};
_.h(RW,Pk);RW.prototype.getApiPaths=function(){return mW5};
RW.prototype.getExtension=function(D){return _.r(D,o95)};
RW.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.params=C.params)};var lD=function(D){this.JSC$18611_storeWithEntities=D};
_.h(lD,Pk);lD.prototype.getApiPaths=function(){return W1c};
lD.prototype.getExtension=function(D){return _.r(D,pwq)||_.r(D,UVq)};
lD.prototype.JSC$14337_buildRequest=function(D,C,X){X.client_data&&(D.clientData=X.client_data);if(C.commerceActionConfig){var c=C.commerceActionConfig;C=c.actionId;c=c.commerceActionParams;C&&(D.actionId=C);c&&(D.commerceActionParams=c)}else{var W=C.actionId,p=C.commerceActionParams;X=C.entityKeys;W&&(D.actionId=W);p&&(D.commerceActionParams=p);var g;C=(c=this.JSC$18611_storeWithEntities)==null?void 0:(g=c.getState())==null?void 0:g.entities;if(X&&C){c=[];g=_.U(X);for(X=g.next();!X.done;X=g.next())if(W=
X.value,X=_.pe(W).entityType,W=_.aI(C,X,W))p={},c.push((p[X]=W,p));D.entityMutationPayloads=c}}};
lD.prototype.getRequestConfig=function(D){var C,X=(C=_.r(D,pwq))==null?void 0:C.requestSequenceType;if(X&&D.clickTrackingParams&&X!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:D.clickTrackingParams,sequenceType:X}}};
lD[kz]=[pn];var Dr=function(){};
_.h(Dr,Pk);Dr.prototype.getApiPaths=function(){return eHe};
Dr.prototype.getExtension=function(D){return _.r(D,_.xVc)};
Dr.prototype.JSC$14337_buildRequest=function(D,C){C.feedbackData&&(D.feedbackData=C.feedbackData);C.params&&(D.itemParams=C.params)};
_.$a.Object.defineProperties(Dr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CA=function(){};
_.h(CA,Pk);CA.prototype.getApiPaths=function(){return EM4};
CA.prototype.getExtension=function(D){return _.r(D,Lbd)};
CA.prototype.JSC$14337_buildRequest=function(D,C,X){X.payments_payload&&(D.paymentsPayload=X.payments_payload);X.offer_params&&(D.offerParams=X.offer_params);C.transactionParams&&(D.transactionParams=C.transactionParams)};var XO=function(){};
_.h(XO,Pk);XO.prototype.getApiPaths=function(){return tw4};
XO.prototype.getExtension=function(D){return _.r(D,_.suq)};
XO.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.buybucketParams&&(D.buybucketData={params:C.buybucketParams},C.stickerParams?D.buybucketData.stickerParams=C.stickerParams:(X.rich_chat_message?D.buybucketData.richChatMessage=X.rich_chat_message:X.chat_message_text&&(D.buybucketData.chatMessageText=X.chat_message_text),X.purchase_price_micros&&(D.buybucketData.purchasePriceMicros=X.purchase_price_micros.toString())));C.donationAmountMicros&&(D.tipAmountMicros=C.donationAmountMicros,
C.tipParams&&(D.tipParams=C.tipParams));C.offerParams&&(D.offerParams=C.offerParams);C.productData&&(D.productData=C.productData);C.transactionParams&&(D.transactionParams=C.transactionParams)};var c$=function(){};
_.h(c$,Pk);c$.prototype.getApiPaths=function(){return NI5};
c$.prototype.getExtension=function(D){return _.r(D,E9N)};
c$.prototype.JSC$14337_buildRequest=function(D,C){C.updateFopParams&&(D.updateFopParams=C.updateFopParams)};var oD=function(){};
_.h(oD,Pk);oD.prototype.getApiPaths=function(){return YK5};
oD.prototype.getExtension=function(D){return _.r(D,_.MH)};
oD.prototype.JSC$14337_buildRequest=function(D,C){C.couponCode&&(D.couponCode=C.couponCode);C.params&&(D.itemParams=C.params)};var W$=function(){};
_.h(W$,Pk);W$.prototype.getApiPaths=function(){return y1e};
W$.prototype.getExtension=function(D){return _.r(D,_.Sgg)};
W$.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;C.params&&(D.params=C.params);X.ctk&&(D.clientToken=X.ctk)};var pA=function(D){this.JSC$18646_storeWithEntities=D};
_.h(pA,Pk);pA.prototype.getApiPaths=function(){return nMd};
pA.prototype.getExtension=function(D){return _.r(D,_.Qc)};
pA.prototype.JSC$14337_buildRequest=function(D,C,X){X.purchase_price_micros&&(D.productData={pdgData:{purchasePriceMicros:X.purchase_price_micros.toString()}},X.rich_chat_message&&(D.productData.pdgData.richChatMessage=X.rich_chat_message),X.currency_code&&(D.productData.pdgData.currencyCode=X.currency_code));C.transactionParams&&(D.transactionParams=C.transactionParams);C.clientLocationContext&&(D.clientLocationContext=C.clientLocationContext);X.payments_payload&&(D.paymentsPayload=X.payments_payload);
X.funds_guarantee_callback_client_data&&(D.fundsGuaranteeCallbackClientData=X.funds_guarantee_callback_client_data);var c,W;X=(c=this.JSC$18646_storeWithEntities)==null?void 0:(W=c.getState())==null?void 0:W.entities;if(C.entityKeys&&X){c=[];C=_.U(C.entityKeys);for(W=C.next();!W.done;W=C.next()){var p=W.value;W=_.pe(p).entityType;if(p=_.aI(X,W,p)){var g={};c.push((g[W]=p,g))}}D.entityMutationPayloads=c}};
pA[kz]=[pn];var SW=function(){};
_.h(SW,Pk);SW.prototype.getApiPaths=function(){return wng};
SW.prototype.getExtension=function(D){return _.r(D,mVJ)};
SW.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;X.backend_analytics&&(D.serializedBackendAnalyticsEvent=X.backend_analytics);C.offerParams&&(D.offerParams=C.offerParams)};var Uj=function(){};
_.h(Uj,Pk);Uj.prototype.getApiPaths=function(){return YK5};
Uj.prototype.getExtension=function(D){return _.r(D,B9J)};
Uj.prototype.JSC$14337_buildRequest=function(D,C){C.params&&(D.itemParams=C.params)};var gb=function(){};
_.h(gb,Pk);gb.prototype.getApiPaths=function(){return F3N};
gb.prototype.getExtension=function(D){return _.r(D,_.Ae5)};
gb.prototype.JSC$14337_buildRequest=function(D,C,X){X.resume_time_ms&&(D.resumeTimeMs=X.resume_time_ms);C.pauseParams&&(D.pauseParams=C.pauseParams)};var aD=function(){};
_.h(aD,Pk);aD.prototype.getApiPaths=function(){return Zje};
aD.prototype.getExtension=function(D){return _.r(D,_.es5)};
aD.prototype.JSC$14337_buildRequest=function(D,C,X){X=X===void 0?{}:X;X.c&&(D.redeemCode=X.c);X.rd&&(D.riskData=X.rd);X.ctk&&(D.clientToken=X.ctk)};var ID=function(){};
_.h(ID,Pk);ID.prototype.getApiPaths=function(){return GGb};
ID.prototype.getExtension=function(D){return _.r(D,_.Pe4)};
ID.prototype.JSC$14337_buildRequest=function(D,C){C.resumeParams&&(D.resumeParams=C.resumeParams)};var Oj=function(D,C){this.clientName=D;this.defaultExpirationDelayMs=C};
Oj.prototype.put=function(D,C){var X=this,c;return _.I(function(W){c=Object.assign({},C.data);c.key=D;c.clientName=X.clientName;c.expireTimestampMs===void 0&&(c.expireTimestampMs=(Math.round((0,_.kh)())+X.defaultExpirationDelayMs).toString());return W.return(X.putInternal(D,c))})};
Oj[kz]=[xk,vXU];var ETU=function(){Oj.apply(this,arguments);this.JSC$18676_responseStore=new Map};
_.h(ETU,Oj);_.S=ETU.prototype;_.S.get=function(D){var C=this;return _.I(function(X){return X.return(Jb(C,D))})};
_.S.putInternal=function(D,C){var X=this,c,W,p;return _.I(function(g){c=X.defaultExpirationDelayMs;C.expireTimestampMs&&(c=Number(C.expireTimestampMs)-Math.round((0,_.kh)()),W=_.BK("mweb_override_response_store_expiration_ms"),W>0&&W<c&&(c=W));p=setTimeout(function(){X.remove(D)},c);
X.JSC$18676_responseStore.set(D,{entryData:C,timer:p});_.t_(g)})};
_.S.remove=function(D){var C=this;return _.I(function(X){tpk(C,D);_.t_(X)})};
_.S.removeAll=function(){var D=this;return _.I(function(C){D.JSC$18676_responseStore.forEach(function(X){clearTimeout(X.timer)});
D.JSC$18676_responseStore.clear();_.t_(C)})};
_.S.has=function(D){return!!this.JSC$18676_responseStore.get(D)};
_.S.getKeys=function(){return this.JSC$18676_responseStore.keys()};
var Jb=function(D,C){if(D=D.JSC$18676_responseStore.get(C))return new _.H9(D.entryData)},tpk=function(D,C){var X=D.JSC$18676_responseStore.get(C);
X&&(clearTimeout(X.timer),D.JSC$18676_responseStore.delete(C))};var ovh;var Sa3=function(D,C,X){Oj.call(this,D,C);this.token=X};
_.h(Sa3,Oj);_.S=Sa3.prototype;_.S.get=function(D){var C=this,X,c;return _.I(function(W){return W.nextAddress==1?W.yield(pNh(C.token),2):W.nextAddress!=3?(X=W.yieldResult,W.yield(X.get("ResponseStore",[D,C.clientName]),3)):(c=W.yieldResult)?W.return(new _.H9(c)):W.return(void 0)})};
_.S.putInternal=function(D,C){var X=this,c;return _.I(function(W){if(W.nextAddress==1)return W.yield(pNh(X.token),2);c=W.yieldResult;return W.yield(c.put("ResponseStore",C),0)})};
_.S.remove=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(pNh(C.token),2);X=c.yieldResult;return c.return(X.delete("ResponseStore",[D,C.clientName]))})};
_.S.removeAll=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return X.yield(pNh(D.token),2);C=X.yieldResult;return X.yield(Myb(C,IDBKeyRange.only(D.clientName)),0)})};
_.S.has=function(){throw Error("jj");};_.At=new _.P6("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Now=function(D){var C;this.stateTagsData=(C=D.responseContext)==null?void 0:C.stateTags},YeP=function(D){var C;
return((C=D.stateTagsData)==null?void 0:C.stateTagsModified)||[]};var yRG;yRG=function(D){this.JSC$18689_responseStore=D};
_.HR=function(D,C,X){if(!_.b("state_tags_killswitch")){var c=new Now(C);if(YeP(c).length>0){var W=D.JSC$18689_responseStore.getKeys();W=_.U(W);for(var p=W.next();!p.done;p=W.next()){p=p.value;var g=Jb(D.JSC$18689_responseStore,p);if(g){var a=_.Cn(g);a:{var O=void 0;g=YeP(c);a=((O=(new Now(a)).stateTagsData)==null?void 0:O.relevantStateTags)||[];O=_.U(a);for(a=O.next();!a.done;a=O.next())if(a=a.value,a.stateTag!=null&&g.includes(a.stateTag)&&a.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){g=
!0;break a}g=!1}g&&tpk(D.JSC$18689_responseStore,p)}}}}var P;c=(P=C.responseContext)==null?void 0:P.maxAgeSeconds;X&&c&&Number(c)>0&&(C=gU(C,c),D.JSC$18689_responseStore.put(X,new _.H9(C)))};
yRG.prototype.handleResponse=function(D,C){if(!C)throw Error("kj");var X,c;C=(X=C.config)==null?void 0:(c=X.storeStrategy)==null?void 0:c.storeKey;_.HR(this,D,C)};
yRG[kz]=[_.Tc];_.LDo=new _.P6("STORE_RESPONSE_PROCESSOR_TOKEN");var nTX=function(D){this.JSC$18692_responseStore=D};
nTX.prototype.handleResponse=function(D,C){if(C.input.match(_.dJ(C4d))){var X;if(D==null?0:(X=D.entries)==null?0:X.length)for(D=_.U(D.entries),C=D.next();!C.done;C=D.next()){X=C.value.command;var c=void 0;C=(c=_.r(X,_.ko))==null?void 0:c.unserializedPrefetchData;if(!X||!C)break;c=(new nP).JSC$14344_getStoreKey(X);var W=_.r(C,IYc),p=void 0,g=void 0,a=void 0,O=void 0,P=void 0,k=void 0,u=((p=W)==null?0:(g=p.responseContext)==null?0:g.maxAgeSeconds)&&Number((a=W)==null?void 0:(O=a.responseContext)==null?
void 0:O.maxAgeSeconds)>0?Number((P=W)==null?void 0:(k=P.responseContext)==null?void 0:k.maxAgeSeconds):600;c&&u>0&&(W=gU(W,u),this.JSC$18692_responseStore.put(c,new _.H9(W)));X=(new d_).JSC$14344_getStoreKey(X);C=_.r(C,q7N);O=a=g=p=W=c=void 0;P=((c=C)==null?0:(W=c.responseContext)==null?0:W.maxAgeSeconds)&&Number((p=C)==null?void 0:(g=p.responseContext)==null?void 0:g.maxAgeSeconds)>0?Number((a=C)==null?void 0:(O=a.responseContext)==null?void 0:O.maxAgeSeconds):600;X&&P>0&&(C=gU(C,P),this.JSC$18692_responseStore.put(X,
new _.H9(C)))}}};
nTX[kz]=[_.Tc];var wIG=function(D,C){this.innertubeTransportService=D;this.JSC$18695_commandHandler=C};
wIG.prototype.submitForm=function(D,C,X,c,W){var p=this,g,a,O,P,k,u;return _.I(function(Q){if(Q.nextAddress==1)return g={submitId:D,formData:C,submitBehavior:X,params:c},a=_.dJ(P44),Q.yield(_.vV(p.innertubeTransportService,g,a,W),2);O=Q.yieldResult;if(!O)return Q.return(Promise.reject(new _.Zf("Submit API returned an undefined response. Submit ID: "+D)));P=O;(u=(k=P)==null?void 0:k.onResponseReceived)&&p.JSC$18695_commandHandler.resolveCommand(u);return Q.return(P)})};
wIG[kz]=[_.Bl,_.uX];var P$=function(){this.scheduler=_.s3()},Fv6;
P$.prototype.pause=function(){throw Error("lj");};
P$.prototype.resume=function(){throw Error("lj");};
P$.prototype.queue=function(D){var C=this,X=_.zr(),c=_.Zo(this.scheduler,function(){try{var W;if(_.I3.instance)var p=_.I3.instance;else{var g=new _.Zf("Error: Unexpected uninitialized CommandHandler.");_.MN(g);p=void 0}(W=p)==null||W.resolveCommand(D.command);X.resolve()}catch(a){X.reject(a)}});
X.promise.thenCatch(function(W){W instanceof _.wE&&C.scheduler.cancelJob(c)});
return X.promise};
P$.prototype.queueAll=function(D){var C=new Map;D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,C.set(X.id,this.queue(X));return C};var Gy1=function(D,C){var X=this;this.taskModel=D;this.onTaskCancelledCallback=C;this.resolver=_.zr();D=D.proto.prefetchConfig;if(!D)throw Error("mj");if(!D.prefetchAction)throw Error("nj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(c){c instanceof _.wE&&(ZF1(X,X.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),X.onTaskCancelledCallback(X.taskModel.id,X.jobId),X.tick("pcc"));
throw c;});
this.timerName=this.taskModel.id;_.Lt(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Gy1.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var ZF1=function(D,C){_.hZ({prefetchInfo:{cancellationReason:C}},D.timerName)};
Gy1.prototype.tick=function(D){_.sp(D,void 0,this.timerName)};var v$=function(){var D=this;this.scheduler=_.s3();this.maxInflightTasks=_.BK("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.BK("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new xoJ;this.onTaskCancelled=function(C,X){X&&D.scheduler.cancelJob(X);Vpw(D,C);$I(D,3)}},ToP=function(){v$.instance||(v$.instance=new v$);
return v$.instance};
v$.prototype.pause=function(){this.prefetchCoordinatorState=0};
v$.prototype.resume=function(){$I(this,0)};
v$.prototype.queue=function(D){D=HFp(this,D);$I(this,1);return D};
v$.prototype.queueAll=function(D){var C=new Map;D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,C.set(X.id,HFp(this,X));$I(this,1);return C};
var HFp=function(D,C){var X=D.allPrefetchTasks.get(C.id);if(X)return X.cancellablePromise;try{var c=new Gy1(C,D.onTaskCancelled)}catch(p){return _.x7(p)}X=c;X.tick("pcq");var W={prefetchInfo:{taskId:X.taskModel.id,isPrefetch:!0,fetchAction:X.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:X.taskModel.command.clickTrackingParams}};X.taskModel.csn&&(W.clientScreenNonce=X.taskModel.csn);_.hZ(W,X.timerName);D.allPrefetchTasks.set(C.id,c);D.drainingHeap.insert(-c.getPriority(),c);return c.cancellablePromise},
$I=function(D,C){D.prefetchCoordinatorState===C&&(D.prefetchCoordinatorState=2,JRG(D))},JRG=function(D){for(var C={};D.prefetchCoordinatorState!==0;C={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(D.inflightPrefetchTasks.size>=D.maxInflightTasks){D.prefetchCoordinatorState=3;break}C.prefetchTask$jscomp$1=D.drainingHeap.remove();if(!C.prefetchTask$jscomp$1){D.prefetchCoordinatorState=1;break}C.taskId$jscomp$3=C.prefetchTask$jscomp$1.taskModel.id;if(D.allPrefetchTasks.has(C.taskId$jscomp$3)){var X=-1;D.coordinatorTimeoutMs>0&&(X=_.Zo(D.scheduler,function(c){return function(){ii(D,c.taskId$jscomp$3,Error("oj"))}}(C),D.coordinatorTimeoutMs));
D.inflightPrefetchTasks.set(C.taskId$jscomp$3,X);if(!D.JSC$18712_commandHandler){if(!_.I3.instance){ii(D,C.taskId$jscomp$3,Error("pj"));continue}D.JSC$18712_commandHandler=_.I3.instance}a:switch(C.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":X=1;break a;default:X=0}C.prefetchTask$jscomp$1.jobId=D.scheduler.addJob(function(c){return function(){c.prefetchTask$jscomp$1.tick("pcr");try{D.JSC$18712_commandHandler.resolveCommand(c.prefetchTask$jscomp$1.taskModel.command)||
ii(D,c.taskId$jscomp$3,Error("qj"))}catch(W){ii(D,c.taskId$jscomp$3,W)}}}(C),X,0)}}},ziw=function(D,C){(C=Vpw(D,C))!=null&&(C.resolver.resolve(),C.tick("pce"));
$I(D,3)},ii=function(D,C,X){(C=Vpw(D,C,X))!=null&&(C.resolver.reject(X),C.tick("pcc"),ZF1(C,"CANCELLATION_REASON_ERROR"),Math.random()<=_.BK("prefetch_coordinator_error_logging_sampling_rate")&&(X=new _.Zf("Prefetch Command failed.",C.taskModel.id,X.message),_.MN(X)));
$I(D,3)},Vpw=function(D,C,X){var c=D.allPrefetchTasks.get(C);
c?((X=D.inflightPrefetchTasks.get(C))&&X!==-1&&D.scheduler.cancelJob(X),D.inflightPrefetchTasks.delete(C),D.allPrefetchTasks.delete(C)):_.fQ(new _.Zf("Unexpected missing prefetch task when deleting task.",C,X==null?void 0:X.message));return c};var jho=function(D,C,X,c,W){this.id=D;this.triggerOn=C;this.cancelOn=X;this.command=c;this.proto=W};
_.$a.Object.defineProperties(jho.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Mpw=function(){this.JSC$18717_prefetchCoordinator=ToP();Fv6||(Fv6=new P$);this.defaultCoordinator=Fv6},qeY;
Mpw.getInstance=function(){qeY||(qeY=new Mpw);return qeY};
Mpw.prototype.get=function(D){switch(D){case 0:return this.JSC$18717_prefetchCoordinator;default:return this.defaultCoordinator}};var kI=function(){this.coordinatorSupplier=Mpw.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},RiN=function(D){var C=_.LN()||void 0,X=Object.keys(f1G)[0];
if(X){var c=D.taskIdByTriggerId.get(X);if(c!=null){D.taskIdByTriggerId.delete(X);X=[];c=_.U(c);for(var W=c.next();!W.done;W=c.next())if(W=D.tasks.get(W.value))C!=="UNDEFINED_CSN"&&(W.csn=C),X.push(W);X=ayo(X);C=[];X=_.U(X);for(c=X.next();!c.done;c=X.next()){W=_.U(c.value);c=W.next().value;W=W.next().value;c=D.coordinatorSupplier.get(c).queueAll(W);c=_.U(c);var p=c.next();for(W={};!p.done;W={taskId$jscomp$9:void 0},p=c.next()){var g=_.U(p.value);p=g.next().value;g=g.next().value;W.taskId$jscomp$9=
p;p=g;C.push(W.taskId$jscomp$9);D.queuedPromisesByTask.set(W.taskId$jscomp$9,_.ZZ(p,function(a){return function(){ddG(D,a.taskId$jscomp$9)}}(W)))}}}}else _.fQ(new _.Zf("Unexpected malformed TriggerEvent."))};
kI.prototype.trigger=function(D,C){var X=this,c=this.tasks.get(D);if(!c||this.queuedPromisesByTask.has(D))return!1;l1t(this,D,c.triggerOn);C!=="UNDEFINED_CSN"&&(c.csn=C);C=this.coordinatorSupplier.get(c.taskType).queue(c);this.queuedPromisesByTask.set(D,_.ZZ(C,function(){ddG(X,D)}));
return!0};
kI.prototype.cancel=function(D){var C=this.queuedPromisesByTask.get(D);if(C)C.cancel();else return ddG(this,D)};
var ddG=function(D,C){D.queuedPromisesByTask.delete(C);var X=D.tasks.get(C);if(!X)return!1;D.tasks.delete(C);l1t(D,C,X.triggerOn);(X=gvm(X.cancelOn))&&(D=D.taskIdByCancelId.get(X))&&D.delete(C);return!0},l1t=function(D,C,X){(X=Object.keys(X)[0])&&(D=D.taskIdByTriggerId.get(X))&&D.delete(C)};var f1G={taskRegistered:{}},ui=function(){kI.instance||(kI.instance=new kI);this.JSC$18726_taskManager=kI.instance};
_.h(ui,bB);
ui.prototype.resolveCommand=function(D){var C=this,X,c;return _.I(function(W){X=_.r(D,gc5);if((c=X)==null||!c.tasks){var p=new _.Zf("RegisterTasksCommand is missing tasks.");_.MN(p);return W.return()}p=C.JSC$18726_taskManager;for(var g=_.U(X.tasks),a=g.next();!a.done;a=g.next())if(a=a.value,a=a.id&&a.triggerOn&&a.cancelOn&&a.command?new jho(a.id,a.triggerOn,a.cancelOn,a.command,a):void 0,a){var O=Object.keys(a.triggerOn)[0];if(O){var P=gvm(a.cancelOn);P?(p.tasks.set(a.id,a),p.taskIdByTriggerId.has(O)||p.taskIdByTriggerId.set(O,
new Set),p.taskIdByTriggerId.get(O).add(a.id),p.taskIdByCancelId.has(P)||p.taskIdByCancelId.set(P,new Set),p.taskIdByCancelId.get(P).add(a.id)):_.fQ(new _.Zf("Unexpected malformed cancelOn field."))}else _.fQ(new _.Zf("Unexpected malformed triggerOn field."))}else _.fQ(new _.Zf("Unexpected malformed Task proto."));RiN(C.JSC$18726_taskManager);_.t_(W)})};var Dmw={},ChG=(Dmw.rendered={priority:_.b("web_adaptive_early_init")?8:0,callback:function(){var D={};D.numCpu=navigator.hardwareConcurrency;var C={};C.ramGb=_.co.navigator.deviceMemory;var X={staticContext:{}};C.ramGb&&kFm(C.ramGb)&&(X.staticContext.memoryTotalKbytes=(C.ramGb*1048576).toString());D.numCpu&&kFm(D.numCpu)&&(X.staticContext.cpuCores=D.numCpu);if(_.b("web_enable_adaptive_appl_signal")){D={};C=bod();C=C.length>0?C[0]:void 0;var c,W=(c=_.Ep("rses_dpj"))!=null?c:C==null?void 0:C.tick.rses_dpj,
p;c=(p=_.Ep("rsef_dpj"))!=null?p:C==null?void 0:C.tick.rsef_dpj;W&&Number(W)>0&&c&&Number(c)>0&&(p=Math.ceil(Number(c)-Number(W)),p>0&&(D.loadLatency=p));D.loadLatency&&kFm(D.loadLatency)&&(X.appL=D.loadLatency.toString())}_.zu("applicationStarted",X);uP5=X;_.b("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",QyZ)}},Dmw);var XeU=new _.P6("WINDOW_ON_ERROR"),cwp=new _.P6("ERROR_WEIGHT_MAPS"),oUU=new _.P6("INIT_ERROR");var W5G={},peN=(W5G.initialized={priority:10,callback:function(D){D.injector.resolve(oUU)()}},W5G);var Szo=function(){},Um6=function(){var D=_.Df("meta_logger_impl");
D||(D=new Szo,_.$h("meta_logger_impl",D));return D},gU3=function(){Um6().csiSubscriptionKey=TLm("meta_logging_csi_event",function(D){var C=D.timerName;
if(D=D.timelineData){_.Lt(C,{startTime:D.startTime},C);D.infos&&_.hZ(D.infos,C);for(var X=_.U(Object.keys(D.ticks)),c=X.next();!c.done;c=X.next())c=c.value,_.sp(c,D.ticks[c],C)}})};
Szo.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&zc3(this.csiSubscriptionKey)};var aHN={},IHP=(aHN.initialized={priority:10,callback:function(){gU3()}},aHN);var Oi6=function(D,C){this.innertubeClientName=D;this.JSC$18737_prefCookie=C};
Oi6.prototype.record=function(){if(_.b("web_li_record_binary_eval_tick")){var D=_.Ep("rsef_dpj");var C=_.Ep("rses_dpj");D=D!==void 0&&C!==void 0?Math.round(D-C):void 0;if(D!==void 0&&D>0){C=_.KH(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var X=this.poolSize;if(!(C.valuesSeen>=1E9)){if(C.valuesSample.length<X)C.valuesSample.push(D);else{var c=Math.floor(Math.random()*(C.valuesSeen+1));c<X&&(C.valuesSample[c]=D)}C.valuesSeen+=1}_.rL(this.storagePrefix+"-"+this.innertubeClientName,
C,2592E3);D=C.valuesSample;C=Iym(D);D=D.length<this.poolSize?void 0:C<400?1:C<1700?2:3;D!==void 0&&(this.JSC$18737_prefCookie.set(this.cookiePrefix+this.innertubeClientName,D),this.JSC$18737_prefCookie.save())}}else _.h9(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18737_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18737_prefCookie.save()};
Oi6[kz]=[xk,O5];var AwN=function(){Oi6.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.h(AwN,Oi6);var PhU=new _.P6("PAGE_LOAD_TIME_TOKEN");var $mG=function(D){this.signal=D;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;D.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Zo(_.qX,this.disableLoggingAndSendPayload,1E4)};
$mG.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.qX.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),vUG(this))};
var vUG=function(D){var C=_.xr();if(C){var X={webClientComponentsData:{components:Array.from(D.ids,function(c){return{id:c}})}};
D.ids.clear();_.iO().visualElementStateChanged(C,X)}};var ii6=e5({a11y:Mle});_.k33=EI(ii6)(ii6.a11y,{ephemeralActionSelector:function(D){return D.ephemeralAction||null}});var ugo=e5({continuation:l85});var QAN=EI(ugo)(ugo.continuation,{continuationCommandSelector:function(D){return D.continuationCommand}});var B8Y=new _.P6("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var QH=function(D,C){this.JSC$18766_storeWithEntities=D;this.JSC$18766_commandHandler=C;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
QH.prototype.start=function(){this.JSC$18766_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
QH.prototype.observeDownloadingEntities=function(){var D=_.Z_m(this.JSC$18766_storeWithEntities.getState().entities).map(function(c){return G0F(c)});
if(D.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var C={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Cvt()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Ce(_.I7("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18766_commandHandler.resolveCommand(C)}this.downloadingEntities=D}else if(this.downloadingEntities.length){var X=FHm(this.JSC$18766_storeWithEntities.getState().entities).map(function(c){return G0F(c)});
this.downloadingEntities.filter(function(c){return X.includes(c)}).length&&(D={openPopupAction:Tfm()},this.JSC$18766_commandHandler.resolveCommand(D));
this.downloadingEntities=[]}};
QH[kz]=[pn,_.uX];var biN;_.B$=function(D,C,X,c,W,p,g,a){this.JSC$18769_playerApiPromise=D;this.JSC$18769_commandHandler=C;this.JSC$18769_screenManager=X;this.offlineWebClientEligibility=c;this.JSC$18769_prefStorage=W;this.JSC$18769_actionRouter=p;this.entityTypeMap=g;this.JSC$18769_persistentStorePromiseAccessor=a;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
biN=function(){var D=_.iX().resolve(_.B$),C;_.I(function(X){if(X.nextAddress==1)return D.downloadFailureListenerBound?X.return():X.yield(D.JSC$18769_playerApiPromise,2);C=X.yieldResult;C.addEventListener("onOfflineOperationFailure",function(c){if(c.failureReason&&c.entityKey&&c.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(c.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var W=_.pe(c.entityKey).entityId;W&&D.JSC$18769_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
W)}else if(_.b("kevlar_woffle")){W=D.JSC$18769_commandHandler;var p=W.resolveCommand;c=c.failureReason;var g=_.I7("TRANSFER_FAILED",void 0,"Download failed");c==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(g=_.I7("STORAGE_FULL",void 0,"Storage full"));p.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ce(g),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
D.downloadFailureListenerBound=!0;_.t_(X)})};
_.B$.prototype.deleteVideo=function(D,C){var X=this,c,W,p;return _.I(function(g){if(g.nextAddress==1)return g.yield(X.JSC$18769_playerApiPromise,2);c=g.yieldResult;p={offlineLoggingData:{offlineDeleteReason:(W=C)!=null?W:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return g.yield(c.queueOfflineAction(D,X.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",p),0)})};
_.B$.prototype.pauseVideoDownload=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.JSC$18769_playerApiPromise,2);X=c.yieldResult;X.pauseVideoDownload(D);_.t_(c)})};
_.B$.prototype.resumeVideoDownload=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.JSC$18769_playerApiPromise,2);X=c.yieldResult;return c.yield(X.resumeVideoDownload(D),0)})};
_.B$[kz]=[_.pT,_.uX,_.X5,B8Y,vW,mQ,Jok,Mr];var rww=new _.P6("DOWNLOAD_STATE_STORE_TOKEN");var K5N=function(D,C){this.JSC$18790_persistentStorePromiseAccessor=D;this.store=C;this.upliftCompletionResolver=new _.gL},L5G=function(){var D=_.iX().resolve(hPU),C;
_.I(function(X){switch(X.nextAddress){case 1:if(D.upliftImplPromise)return X.return(D.upliftImplPromise);_.KK(X,2);D.upliftImplPromise=xmt(D);return X.yield(D.upliftImplPromise,4);case 4:D.upliftCompletionResolver.resolve();_.SR(X,3);break;case 2:throw C=_.Eu(X),D.upliftCompletionResolver.reject(C),C;case 3:return X.return(D.upliftImplPromise)}})},xmt=function(D){var C,X,c;
return _.I(function(W){switch(W.nextAddress){case 1:return _.dq("LOGGED_IN")?W.yield(D.JSC$18790_persistentStorePromiseAccessor(),2):W.return();case 2:C=W.yieldResult;if(!C)return _.sp("vdeur"),W.return();_.sp("vdeus");_.KK(W,3);return W.yield(sAG(C),5);case 5:X=W.yieldResult;D.store.dispatch(KHr(X));C.observe(function(p){hbF(D.store,p)});
_.SR(W,4);break;case 3:throw c=_.Eu(W),_.sp("vdeur"),c;case 4:_.sp("vdeuc"),_.t_(W)}})},sAG=function(D){var C;
return _.I(function(X){if(X.nextAddress==1)return X.yield(ia5(D),2);C=X.yieldResult;return X.return(C.reduce(function(c,W){if(!W.data||!W.key||!W.entityType)return c;c[W.entityType]||(c[W.entityType]={});c[W.entityType][W.key]=W.data;return c},{}))})};
K5N[kz]=[Mr,_.gp];var hPU;hPU=new _.P6("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.bi=new _.P6("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var rb=function(D,C){this.JSC$18793_persistentStorePromiseAccessor=D;this.transportService=C};
rb.prototype.refresh=function(){var D=this,C,X,c,W;return _.I(function(p){if(p.nextAddress==1)return _.dq("LOGGED_IN")?p.yield(D.JSC$18793_persistentStorePromiseAccessor(),2):p.return();if(p.nextAddress!=3)return(C=p.yieldResult)?p.yield(q8m(C),3):p.return();if((X=p.yieldResult)&&!(Number(X.data.refreshTimestampMs||0)<(0,_.kh)()))return p.return();c={browseId:"SPaccount_downloads"};W=_.dJ(jb);_.vV(D.transportService,c,W).then(function(g){var a;if(C&&(g==null?void 0:(a=g.responseContext)==null?void 0:
a.maxAgeSeconds)!==0){var O;a=(g==null?void 0:(O=g.responseContext)==null?void 0:O.maxAgeSeconds)||604800;O=String(Math.floor((0,_.kh)())+a*1E3);C.put("service:downloads_settings:fallback",new _.H9({innertubeResponse:g,refreshTimestampMs:O}))}});
_.t_(p)})};
rb[kz]=[_.At,_.Bl];var KA=function(D,C){this.JSC$18797_playerPromise=D;this.store=C;this.started=!1};
KA.prototype.start=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return D.started?X.return():X.yield(D.JSC$18797_playerPromise,2);C=X.yieldResult;C.addEventListener("onOrchestrationBecameLeader",D.updateIsLeader.bind(D,!0));C.addEventListener("onOrchestrationLostLeader",D.updateIsLeader.bind(D,!1));if(C.isOrchestrationLeader)D.updateIsLeader(C.isOrchestrationLeader());else{var c=new _.Zf("Function isOrchestrationLeader is undefined",{"player.isReady":C.isReady(),"player.playVideo":C.playVideo?
"defined":"undefined"});_.MN(c);D.updateIsLeader(!1)}D.started=!0;_.t_(X)})};
KA.prototype.updateIsLeader=function(D){this.store.dispatch(_.oI({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:D}}))};
KA[kz]=[_.pT,_.gp];var mmN=function(D,C){this.networkStatusManager=D;this.JSC$18800_prefStoragePromise=C;this.redirectsToPreload=["https://youtube.com"]},ePY=function(){var D=_.iX().resolve(mmN),C,X,c,W,p,g;
_.I(function(a){switch(a.nextAddress){case 1:return a.yield(D.JSC$18800_prefStoragePromise,2);case 2:C=a.yieldResult;if(!(X=C)){a.jumpTo(3);break}return a.yield(C.get("yt-redirect-prefetch-id"),4);case 4:X=a.yieldResult;case 3:if(X||!D.networkStatusManager.isNetworkAvailable())return a.return();c={cache:"reload",redirect:"manual"};W=_.U(D.redirectsToPreload);p=W.next();case 5:if(p.done){if(!C){a.jumpTo(0);break}return a.yield(C.set("yt-redirect-prefetch-id",!0,86400),0)}g=p.value;_.KK(a,8);return a.yield(_.co.fetch(g,
c),10);case 10:_.SR(a,6);break;case 8:_.Eu(a);case 6:p=W.next(),a.jumpTo(5)}})};var EUG=function(D){this.JSC$18806_pageManager=D},tn3=function(D){var C=[];
Bhd(["videoId","contentId"],D.JSC$18806_pageManager.data,new Set,C);return C},N8p=function(D){return tn3(D).filter(function(C){return C.contentType==="video"}).map(function(C){return C.contentId}).filter(function(C){return C!==void 0})};
EUG[kz]=[_.lu];var YzY=new _.P6("PAGE_CONTENT_EXTRACTOR_TOKEN");var ht=function(D){D?(this.container=D,this.containerWasInjected=!0):this.containerWasInjected=!1};
ht.prototype.openDialog=function(D,C,X){var c=this,W;return _.I(function(p){(W=c.container)==null||W.openDialog(D,C,X);_.t_(p)})};
ht.prototype.closeDialog=function(){var D=this,C;return _.I(function(X){(C=D.container)==null||C.closeDialog();_.t_(X)})};
ht.prototype.isDialogOpen=function(){var D=this,C,X;return _.I(function(c){return c.return((X=(C=D.container)==null?void 0:C.isDialogOpen())!=null?X:!1)})};
ht[kz]=[_.vK(Uae)];_.ywG=new _.P6("POPUP_CONTROLLER_TOKEN");var nUX=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
nUX.prototype.registerPanel=function(D,C){if(D){this.panelMap.set(D,C);var X=this.pendingPanelResolvers.get(D);X&&(X.resolve(C),this.pendingPanelResolvers.delete(D))}};
nUX.prototype.getPanel=function(D){var C=this,X;return _.I(function(c){return(X=C.panelMap.get(D))?c.return(X):c.return(weN(C,D))})};
var weN=function(D,C){var X,c;return _.I(function(W){if(X=D.pendingPanelResolvers.get(C))return W.return(X.promise);c=new _.gL;D.pendingPanelResolvers.set(C,c);return W.return(c.promise)})},F5P=function(D,C){nUX.call(this);
var X=this;this.popupController=D;this.persistentPanelController=C;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return X.panelMap.size}}};
_.h(F5P,nUX);_.S=F5P.prototype;_.S.getReloadContinuation=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.getPanel(D),2);X=c.yieldResult;return c.return(X.getReloadContinuation())})};
_.S.showPanel=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B;return _.I(function(K){if(K.nextAddress==1){X=D;c=X.identifier;W=X.panelContents;p=X.config;g=X.extras;a=X.panelUpdatableFields;O=X.updatePanelContinuationData;P=D.target;O&&C.updatePanelContinuationDatas.set(c,O);if((k=p)==null?0:(u=k.engagementPanelPopupPresentationConfig)==null?0:u.popupType)if(Q=p.engagementPanelPopupPresentationConfig.popupType,P===void 0&&(P=document.body),Q==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!C.persistentPanelController)return _.fQ(new _.Zf("Persistent panel controller is not available.")),
K.return();var L=C.persistentPanelController;L.persistentPanelIdentifiers.has(c)||(L.persistentPanelWrapper.appendChild(L.engagementPanelElement({panelIdentifier:c},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),L.persistentPanelIdentifiers.add(c));a:switch(_.TU.currentPageSubTypeSelector(L.store.getState())){case "watch":var t="WATCH";break a;default:t="APP"}_.Zi6(L,t);L.store.dispatch(f8q(!0))}else{if(Q==="PANEL_POPUP_TYPE_DIALOG"||Q==="PANEL_POPUP_TYPE_DROPDOWN"){L=K.return;t=C.popupController;
var Y=t.openPopup;a:switch(Q){case "PANEL_POPUP_TYPE_DIALOG":var y="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":y="DROPDOWN";break a;default:throw Error("sj`"+Q);}return L.call(K,Y.call(t,c,W,y,P))}_.fQ(new _.Zf("Popup type "+Q+" not supported in PanelController."))}return K.yield(C.getPanel(c),2)}B=K.yieldResult;(W||a)&&B.updatePanel(W,!1,g,a);B.showPanel(g);_.t_(K)})};
_.S.hidePanel=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return X=D,c=X.identifier,g.yield(C.getPanel(c),2);W=g.yieldResult;W.hidePanel();C.popupController.closePopup(c);(p=C.persistentPanelController)!=null&&p.persistentPanelIdentifiers.has(c)&&p.store.dispatch(f8q(!1));_.t_(g)})};
_.S.isVisible=function(D,C){var X=this,c;return _.I(function(W){if(W.nextAddress==1)return C&&!X.panelMap.has(D)?W.return(!1):W.yield(X.getPanel(D),2);c=W.yieldResult;return W.return(c.isVisible())})};
_.S.updatePanel=function(D){var C=this,X,c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1){X=D;c=X.identifier;W=X.panelContents;p=X.shouldFocus===void 0?!1:X.shouldFocus;g=X.extras;a=X.panelUpdatableFields;O=X.updatePanelContinuationData;if(!W&&!a)return k.return();O&&C.updatePanelContinuationDatas.set(c,O);_.b("enable_ai_companion")&&c==="PAai_companion"&&_.QX.remove("youchat_messages_section");return k.yield(C.getPanel(c),2)}P=k.yieldResult;P.updatePanel(W,p,g,a);W&&_.b("enable_ai_companion")&&
C.registerPanelContent(c,W);_.t_(k)})};
_.S.registerPanelContent=function(D,C){D&&this.panelContentMap.set(D,C)};
_.S.unregisterPanelContent=function(D){this.panelContentMap.delete(D)};
_.S.getPanelContent=function(D){return this.panelContentMap.get(D)};
_.S.getUpdatePanelContinuationData=function(D){return this.updatePanelContinuationDatas.get(D)};
F5P[kz]=[_.ywG,_.vK(_.gu)];var xI=function(D,C){this.innertubeTransportService=D;this.JSC$18825_screenManager=C},G3w=function(D){var C;
return!((C=D.panelLoadingStrategy)==null||!C.requestTemplate)};
xI.prototype.makeRequest=function(D){var C=this,X,c;return _.I(function(W){switch(W.nextAddress){case 1:if(!G3w(C)){W.jumpTo(2);break}_.KK(W,3);return W.yield(_.Jl(C.innertubeTransportService,D),5);case 5:return X=W.yieldResult,X?W.return(X.content):(_.MN(Error("tj")),W.return(void 0));case 3:c=_.Eu(W),_.MN(c);case 2:return W.return(void 0)}})};
xI.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
xI.prototype.execute=function(D){var C=this,X,c,W,p,g,a,O,P,k,u;return _.I(function(Q){if(Q.nextAddress==1){X=D;c=X.data;W=X.fallbackVe;p=X.parentVe;g=X.createScreenConfig;a=X.renderFn;O=X.command;C.panelLoadingStrategy=c;var B,K,L=((B=C.panelLoadingStrategy)==null?0:B.screenVe)?(K=C.panelLoadingStrategy)==null?void 0:K.screenVe:W;L&&_.Gm(C.JSC$18825_screenManager,L,p,g);return(P=C.getContent())?Q.yield(a(P),2):Q.jumpTo(2)}return Q.nextAddress!=4?G3w(C)?Q.yield(C.makeRequest(O),4):Q.return():(u=k=
Q.yieldResult)?Q.yield(a(u),0):Q.return()})};
xI[kz]=[_.Bl,_.X5];var VnY;VnY=function(D,C){this.engagementPanelElement=D;this.store=C;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.Zi6=function(D,C){var X=D.persistentPanelContainerMap.get(C);X?X.contains(D.persistentPanelWrapper)||(D=D.persistentPanelWrapper,_.lO=!0,_.D5.set(D,!0),X.insertBefore(D,null),_.D5.delete(D),_.lO=!1):_.fQ(new _.Zf("Persistent panel container not found for surface "+C+"."))};
VnY[kz]=[gqM,_.gp];var LA=function(){var D=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){D.isHovered=!0;var C;(C=D.hoverEnterCallback)==null||C.call(D)};
this.onHoverLeft=function(){D.isHovered=!1;var C;(C=D.hoverLeaveCallback)==null||C.call(D)}};
LA.prototype.getContainer=function(){return _.qF()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
LA.prototype.openSheet=function(D,C){var X=this,c,W,p,g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:return c={stack:[],error:void 0,hasError:!1},_.KK(k,2,3),W=IA,k.yield(X.isSheetOpen(),5);case 5:p=k.yieldResult;kJf(c,BDF(W));if(!p){k.jumpTo(6);break}if(!X.shouldPreventClosingWhileHovered){if(!_.b("delay_sheet_open_killswitch")){if(_.b("web_close_sheet_if_same_target_killswitch")&&C&&X.currentTarget===C)return(g=X.getContainer())==null||g.closeSheet(),k.return();X.pendingData={data:D,
target:uEX(X,C)};return k.return()}k.jumpTo(6);break}if(X.currentTarget===C)return k.return();T8t(X);return k.yield((a=X.getContainer())==null?void 0:a.closeSheet(),6);case 6:if(D.viewModel&&(D={viewModel:D.viewModel,sheetPosition:D.sheetPosition,expandToFullWidth:D.expandToFullWidth}),(O=X.getContainer())==null||O.openSheet(D,C),X.currentTarget=C,X.shouldPreventClosingWhileHovered){var u;(u=X.currentTarget)==null||u.addEventListener("mouseenter",X.onHoverEntered);var Q;(Q=X.currentTarget)==null||
Q.addEventListener("mouseleave",X.onHoverLeft);var B;u=(B=X.getContainer())==null?void 0:B.getSheetContainerElement();u==null||u.addEventListener("mouseenter",X.onHoverEntered);u==null||u.addEventListener("mouseleave",X.onHoverLeft);X.onHoverEntered()}case 3:_.xF(k);udM(c);_.es(k,0);break;case 2:P=_.Eu(k),c.error=P,c.hasError=!0,k.jumpTo(3)}})};
LA.prototype.closeSheet=function(){var D=this;return _.I(function(C){return D.hideDelayMs?(setTimeout(function(){return _.I(function(X){return X.yield(HiX(D),0)})},D.hideDelayMs),C.return()):C.yield(HiX(D),0)})};
var HiX=function(D){var C;return _.I(function(X){if(X.nextAddress==1){if(D.shouldPreventClosingWhileHovered){if(D.isHovered)return X.return();T8t(D)}return X.yield((C=D.getContainer())==null?void 0:C.closeSheet(),2)}if(X.nextAddress!=4)return D.shouldPreventClosingWhileHovered=!1,D.currentTarget=void 0,!D.pendingData||_.b("delay_sheet_open_killswitch")?X.jumpTo(0):X.yield(D.openSheet(D.pendingData.data,D.pendingData.target),4);D.pendingData=void 0;_.t_(X)})};
LA.prototype.isSheetOpen=function(){var D=this,C,X;return _.I(function(c){return c.return((X=(C=D.getContainer())==null?void 0:C.isSheetOpen())!=null?X:!1)})};
var T8t=function(D){var C;(C=D.currentTarget)==null||C.removeEventListener("mouseenter",D.onHoverEntered);var X;(X=D.currentTarget)==null||X.removeEventListener("mouseleave",D.onHoverLeft);var c;C=(c=D.getContainer())==null?void 0:c.getSheetContainerElement();C==null||C.removeEventListener("mouseenter",D.onHoverEntered);C==null||C.removeEventListener("mouseleave",D.onHoverLeft)},uEX=function(D,C){if(!_.b("web_parent_target_for_sheets"))return C;
var X,c;return(c=(X=D.getContainer())==null?void 0:X.getParentTarget(C))!=null?c:C};var U3=window.documentPictureInPicture;var eZh=_.q8(["dark"]),Evm=_.q8(["system-icons"]),t43=_.q8(["typography"]),Nhn=_.q8(["lang"]),YaZ=_.q8(["style"]),x1Z=_.q8(["dir"]),Lhh=_.q8(["rounded-container"]),s$j=_.q8(["style"]),nvj=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],sj=function(D){this.JSC$18843_clientRoot=D;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
sj.prototype.openWindow=function(D){var C=this,X,c;return _.I(function(W){switch(W.nextAddress){case 1:if(!window.documentPictureInPicture||!_.mr()||C.currentPipWindow)return W.return(!1);_.KK(W,2);return W.yield((c=U3?U3:null)==null?void 0:c.requestWindow(D),4);case 4:X=W.yieldResult;_.SR(W,3);break;case 2:return _.Eu(W),W.return(!1);case 3:if(!X)return W.return(!1);X.addEventListener("pagehide",function(){JwY(C)});
X.addEventListener("resize",C.handlePipWindowResize);yaF(X);FhR(X);uV5(X);return W.yield(hZ5(X),5);case 5:if(!bar())return W.return(!1);C.currentPipWindow=X;C.JSC$18843_eventForwarder=wNj(X,C.JSC$18843_clientRoot);C.pipWindowResizeDelay=new _.ka(function(){C.currentPipWindow&&_.DS(C.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.me(C.currentPipWindow.innerWidth,C.currentPipWindow.innerHeight)])},X);
C.pipWindowResizeDelay.start();return W.return(!0)}})};
sj.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var JwY=function(D){if(D.currentPipWindow){var C,X;(C=U3?U3:null)==null||(X=C.window)==null||X.close();D.currentPipWindow.removeEventListener("resize",D.handlePipWindowResize);var c;(c=D.pipWindowResizeDelay)==null||c.dispose();D.pipWindowResizeDelay=void 0;var W;(W=D.JSC$18843_eventForwarder)==null||W.stop();D.JSC$18843_eventForwarder=void 0;C=_.U(D.onCloseCallbacks);for(X=C.next();!X.done;X=C.next())X=X.value,X();D.onCloseCallbacks=[];D.currentPipWindow=null}};
sj.prototype.getWindow=function(){return this.currentPipWindow};
var zPN=function(D,C){var X;(X=D.onCloseCallbacks)==null||X.push(C)};
sj.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.mr()};
_.$a.Object.defineProperties(sj.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
sj[kz]=[hhN];var jAG=new _.P6("PICTURE_IN_PICTURE_CONTROLLER");var Za5=function(D,C){this.lengthY=this.lengthX=0;this.lengthX=C.x-D.x;this.lengthY=C.y-D.y};var Mnt=function(){},eew=function(D,C){var X;
(X=D.headerElement)==null||X.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:C}))};var qzt=function(){};
qzt.prototype.openPopup=function(D,C,X,c){var W=this,p;return _.I(function(g){if(!W.container)return g.return();p={openPopupAction:{popup:C,popupType:X,uniqueId:D}};return g.return(W.container.handleOpenPopupAction(p,c))})};
qzt.prototype.closePopup=function(D){this.container&&this.container.closePopup(D)};var fHk=function(){this.openTunnels=new Map},KTR=function(D,C,X){if(zZF(X)){var c=_.DH(X,"gclid");
X={handleEvent:function(a){C&&!C.closed&&typeof C.postMessage==="function"&&a&&a.origin&&a.source===C&&a.data&&a.data.action==="gcl_setup"&&C.postMessage(Object.assign({},{action:"gcl_transfer"},c&&{gclid:c},{gadSource:2}),a.origin)}};
for(var W=_.U(D.openTunnels),p=W.next();!p.done;p=W.next()){var g=_.U(p.value);p=g.next().value;g=g.next().value;if(p.closed)try{window.removeEventListener("message",g),D.openTunnels.delete(p)}catch(a){_.MN(a)}}C&&D.openTunnels.size<15&&(D.openTunnels.set(C,X),window.addEventListener("message",X))}};var dmt=function(){this.clientParams=new Map},I6p=function(D){for(var C=_.U(D.clientParams.keys()),X=C.next();!X.done;X=C.next())X=X.value,X.startsWith("yt-mini-app-share")&&D.clientParams.delete(X)};var RPP=function(D,C){_.nF.call(this);var X=this;this.shortsController=D;this.storeWithShorts=C;D=_.dX(this.storeWithShorts,_.jjt,function(c){if(c){var W,p=(W=X.shortsController.getRoot())==null?void 0:W.getPlayer(),g;(W=(g=X.shortsController.alternativePlayerContainerElement)==null?void 0:g.getPlayerContainer())&&(p==null||p.appendTo(W))}else{var a;g=(a=X.shortsController.alternativePlayerContainerElement)==null?void 0:a.getPlayerContainer().querySelector("#player");W=X.shortsController.activeIndex;
(a=(p=X.shortsController.getRoot())==null?void 0:p.querySelector('ytd-reel-video-renderer[id="'+W+'"] #player-container'))&&(g==null||g.appendTo(a,void 0,!0))}});
this.addOnDisposeCallback(D)};
_.h(RPP,_.nF);var mf=function(D,C,X,c){var W=this;this.storeWithShorts=D;this.ephemeralResponseStore=C;this.innertubeTransportService=X;this.innertubeTransportLoader=c;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.uu(_.o9);this.isShortsPipActive=_.uu(_.WC);this.nextReelVe=_.Ia(56921);this.prevReelVe=_.Ia(56922);this.backButtonVe=_.Ia(22156);this.TEST_ONLY={getActiveModules:function(){return W.activeModules}}},lHt=function(D){D.unsubscribeFromStore=
_.dX(D.storeWithShorts,_.z0R,function(C){D.initOrDisposeActiveModules(C);
!C&&D.storeWithShorts.getState().shorts.isFullscreen&&(_.fN(document.documentElement),D.storeWithShorts.dispatch(_.DBf(!1)))});
D.initOrDisposeActiveModules(_.z0R(D.storeWithShorts.getState()))},uJ3,QhX,D66;
mf.prototype.initOrDisposeActiveModules=function(D){D?this.activeModules.push(new RPP(this,this.storeWithShorts)):(_.go(this.activeModules),this.activeModules.length=0)};
mf.prototype.registerRootElement=function(D){this.rootElement=D;lHt(this)};
mf.prototype.getRoot=function(){return this.rootElement};
mf.prototype.setActiveIndex=function(D){this.activeIndex=D};
_.Pc3=function(D,C){var X,c,W,p,g,a,O;return _.I(function(P){switch(P.nextAddress){case 1:return X=new nP,(c=X.JSC$14344_getStoreKey(C))&&D.ephemeralResponseStore.has(c)?P.yield(D.ephemeralResponseStore.get(c),7):P.yield(D66(D,C),4);case 4:W=P.yieldResult;if(!c){P.jumpTo(3);break}p=gU(W,3600);return P.yield(D.ephemeralResponseStore.put(c,new _.H9(p)),3);case 7:W=(g=P.yieldResult)==null?void 0:_.Cn(g);case 3:return((a=W)==null?0:a.replacementEndpoint)&&(O=_.r(W.replacementEndpoint,_.ko))&&W.sequenceContinuation&&
(O.sequenceParams=W.sequenceContinuation),P.return(W)}})};
uJ3=function(D,C){C=(new wZ).JSC$14344_getStoreKey(C);return!!C&&D.ephemeralResponseStore.has(C)};
QhX=function(D,C,X){var c,W,p,g,a;_.I(function(O){if(O.nextAddress==1){c=new wZ;W=c.JSC$14344_getStoreKey(C);if(!W)return O.return();if(X.reelWatchSequenceResponse)return p=gU(X.reelWatchSequenceResponse,3600),D.ephemeralResponseStore.put(W,new _.H9(p)),O.jumpTo(0);if(!D.ephemeralResponseStore.has(W))return O.jumpTo(0);a=X;return O.yield(D.ephemeralResponseStore.get(W),4)}a.reelWatchSequenceResponse=(g=O.yieldResult)==null?void 0:_.Cn(g);_.t_(O)})};
D66=function(D,C){var X=X===void 0?{}:X;var c,W,p;return _.I(function(g){switch(g.nextAddress){case 1:if(D.innertubeTransportService){c=D.innertubeTransportService;g.jumpTo(2);break}if(!D.innertubeTransportLoader){_.Re(Error("vj"));g.jumpTo(2);break}return g.yield(D.innertubeTransportLoader(),4);case 4:c=g.yieldResult;case 2:return g.yield((W=c)==null?void 0:_.Jl(W,C,X),5);case 5:return p=g.yieldResult,g.return(p)}})};
_.$a.Object.defineProperties(mf.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
mf[kz]=[SeG,_.Tc,_.vK(_.Bl),_.vK(Yxx)];_.Cqt=new _.P6("STORAGE_MANAGER_TOKEN");var $Eh=["touchmove","scroll"];var X23=!1;var RZd=!1;var Pxr={onSpanEnd:function(D){D.parentId==null&&(X23||(fyZ(),setInterval(fyZ,6E5),X23=!0),DEt(D,"web_tracing_action"))}};var W4Z=URL.createObjectURL;var OpR,cUk={traceAllComponents:_.b("web_tracing_all_components"),exportToCsi:_.b("web_tracing_export_to_csi"),enabledSpansArray:_.rT("web_tracing_enabled_spans"),exportToDevTools:_.b("web_tracing_export_to_devtools"),maxBreadcrumbs:_.BK("tel_max_breadcrumbs",0)};OpR=new osW(cUk);var AHr=_.b("web_shorts_enable_tracing");var oQt=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Wxt;
oQt.prototype.enqueue=function(D,C){C===1?this.currentPersistentToast=D:this.queue.push(D);this.openToast()};
oQt.prototype.openToast=function(){var D;(D=this.currentToast)!=null&&D.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.eW=new _.P6("TOAST_MANAGER_TOKEN");var p2U=new _.P6("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var SOt=new _.P6("VIEW_TRANSITION_COORDINATOR_TOKEN");var U6w=function(D){this.config=D;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;D=_.U(D.transitionConfigs);for(var C=D.next();!C.done;C=D.next())C=_.U(C.value).next().value,this.transitionTasksMap.set(C,[])};
U6w.prototype.registerElement=function(D,C,X){X=X===void 0?!1:X;for(var c=_.U(Object.keys(C)),W=c.next(),p={};!W.done;p={viewTransitionName:void 0},W=c.next()){W=W.value;p.viewTransitionName=C[W];var g=this.elementTasksMap.get(D),a=void 0;if((a=g)==null?0:a.has(W)){_.qN(new _.Zf("Element already registered for transition",D.tagName,W));break}g=g||new Map;g.set(W,{beforeTransition:function(O){return function(){D.style.viewTransitionName=O.viewTransitionName}}(p),
afterTransition:function(){D.style.viewTransitionName&&(D.style.viewTransitionName="")},
runOnce:X});this.elementTasksMap.set(D,g)}};
_.wU=function(D,C){var X=D.elementTasksMap.get(C);X&&(X.clear(),X.size===0&&D.elementTasksMap.delete(C))};
U6w[kz]=[p2U];var aht=_.F(function(D){var C=_.aX("yt-expandable-metadata-header-view-model"),X=_.I_(function(c){_.V6(_.iO(),{data:D.data()});if(!_.er(_.mY(c),C.value,["A".toString(),"BUTTON".toString()])){var W;(W=D.expandedCallback)==null||W.call(D,!1)}});
return _.A("yt-expandable-metadata-header-view-model",{el:C,class:"ytExpandableMetadataHeaderViewModelHost"},_.A(_.v,{cond:function(){return D.expanded()},
then:function(){return _.A("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":X},_.A("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.A(_.v,{cond:function(){return D.data().expandedTitleImage},
then:function(c){return _.A("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.A(_.M_,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:c}))}}),_.A("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.A("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.A(_.QG,{text:function(){return D.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.A(_.QG,{text:function(){return D.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.A(_.QG,{text:function(){return D.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.A("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.A(_.BX,{data:function(){return D.data().infoButton}},{buttonViewModel:_.Ze}),_.A(_.BX,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
onClick:function(){var W;(W=D.expandedCallback)==null||W.call(D,!1)}})}})))},
else:function(){return _.A(gQX,Object.assign({},D))}}))},"rg"),IhG=_.F(function(D){return _.A("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.A(_.v,{cond:function(){return D.data().collapsedLabelImage},
then:function(C){return _.A("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.A(_.M_,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:C,alt:""}))}}),_.A(_.QG,{text:function(){return D.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"sg"),gQX=_.F(function(D){return _.A("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.I_(function(){_.V6(_.iO(),{data:D.data()});var C;(C=D.expandedCallback)==null||C.call(D,!0)})},_.A("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.A(_.v,{cond:function(){return D.data().collapsedImage},
then:function(C){return _.A("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.A(_.M_,{height:20,preserveHeight:!0,preserveWidth:!0,data:C,alt:""}))}}),_.A(_.v,{cond:function(){return D.data().showLeadingCollapsedLabel},
then:function(){return _.A(IhG,Object.assign({},D))}}),_.A("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.A(_.QG,{text:function(){return D.data().collapsedTitle}}))),_.A("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.A(_.v,{cond:function(){return!D.data().showLeadingCollapsedLabel},
then:function(){return _.A(IhG,Object.assign({},D))}}),_.A(_.BX,{data:function(){return D.data().infoButton}},{buttonViewModel:_.Ze}),_.A(_.BX,{data:function(){return D.data().expandButton}},{buttonViewModel:function(C){var X=C.data;
return _.A(_.Ze,{data:X,onClick:function(){_.V6(_.iO(),{data:X});var c;(c=D.expandedCallback)==null||c.call(D,!0)}})}})))},"tg");_.O7G=_.F(function(D){var C=_.U(_.d2(function(){return D.data().initiallyExpanded})),X=C.next().value,c=C.next().value,W,p=(W=_.iX().resolve(_.vK(_.Hc)))==null?void 0:W(),g=function(){var a=D.data().colorData;
if(a)return p?a==null?void 0:a.darkColorPalette:a==null?void 0:a.lightColorPalette};
return _.A("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.P0({"background-color":function(){var a=g();return(a==null?0:a.section2Color)?_.e_(a.section2Color):""}})},_.A(_.BX,{data:function(){return D.data().header}},{expandableMetadataHeaderViewModel:function(a){return _.A(aht,{data:a.data,
expanded:function(){return!!X()},
expandedCallback:function(O){c(O)}})}}),_.A(_.v,{cond:function(){return X()},
then:function(){return _.A("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.A(_.BX,{data:function(){return D.data().expandedContent}},{horizontalShelfViewModel:function(a){return _.A(_.KZ,{data:a.data,
includeMargin:!0,forceNarrowLayout:!0,palette:g})},
videoSummaryContentViewModel:function(a){return _.A(gH5,{data:a.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(a){return _.A(_.jx,{data:a.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(a){return _.A(_.uM,{data:a.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.A(_.BX,{data:function(){return D.data().expandedBottomButtons}},{buttonViewModel:function(a){return _.A("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.A(_.Ze,{data:a.data}))}}))}}))},"ug");var AUt=_.F(function(D){var C=D.text;var X=D.marqueeSpacing;var c=D.scrollDelay;var W=D.scrollDuration;var p=D.enableMarqueeScroll;D=D.large;var g=_.U(_.Li(!1,void 0,"WyNYFf")),a=g.next().value,O=g.next().value,P=_.U(_.Li(0,void 0,"OoTdhe"));g=P.next().value;var k=P.next().value,u=_.aX("marquee-scroll");P=_.aX("div");var Q=_.aX("span"),B=_.iX().resolve(_.z2);_.Jw(function(){if(p()){var t=Q.value.getBoundingClientRect().width,Y=u.value.getBoundingClientRect().width;if(t>Y){var y=(B==="ltr"?-1:1)*(t+
(X?X():16));Promise.resolve().then(function(){O(!0);k(y)})}}},"dv0Anf");
var K={},L={};return _.A("marquee-scroll",{class:_.g$("ytMarqueeScrollHost",(K.ytMarqueeScrollHostLarge=D,K)),el:u},_.A("div",{id:"marquee-scroll-inner-container",class:_.g$("ytMarqueeScrollInnerContainer",(L.ytMarqueeScrollAnimationEnabled=function(){return a()},L)),
el:P,style:_.P0({gap:X?(0,_.iM)(X):"16px","animation-duration":W?vRd(W):"16s","animation-delay":c?vRd(c):"3s","--marquee-translate":(0,_.iM)(g)})},_.A("span",{el:Q,dir:"auto"},_.A(_.QG,{text:C,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.A(_.v,{cond:a,then:function(){return _.A("span",{"aria-hidden":"true",dir:"auto"},_.A(_.QG,{text:C,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"wg");_.Pqt=_.F(function(D){var C=D.data;var X=D.overlayDensity;D=_.I_(function(){C().onTapCommand&&_.FV(C().onTapCommand);return!1});
var c=_.V2t(),W=function(){return(X==null?void 0:X())===1?22:16},p={};
return _.A("reel-sound-metadata-view-model",{class:_.g$("ytReelSoundMetadataViewModelHost",(p.ytReelSoundMetadataViewModelHostLarge=function(){return(X==null?void 0:X())===1},p)),
"on:click":D,tabindex:0,role:"button","on:keydown":c},_.A("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.A(_.v,{cond:function(){return C().musicIcon},
then:function(g){return _.A(_.M_,{data:g,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:W})}}),_.A("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.A(AUt,{text:function(){return C().soundMetadata},
enableMarqueeScroll:function(){return!!C().enableMarqueeScroll},
large:function(){return(X==null?void 0:X())===1}}))))},"xg");var $6t,vQw,Ej,QeY,b7Y,urU,hj1,KxN;$6t=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];vQw=_.BK("wil_icon_max_concurrent_fetches",Infinity);
Ej=function(D,C,X){var c=this;this.iconSet=D;this.appDirection=C;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.co.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.b("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.b("wil_icon_network_first");this.renderWhenIdle=_.b("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.b("wil_icon_load_immediately");this.isPurging=!1;D=function(){c.cacheStorageAvailable&&(c.cacheStorageAsync=_.co.caches.open("yt-icons").then(function(p){return c.cacheStorageSync=p}).catch(function(){c.cacheStorageAvailable=!1}))};
X=(X==null?void 0:X())||{};X=_.U(Object.entries(X));for(C=X.next();!C.done;C=X.next()){var W=_.U(C.value);C=W.next().value;W=W.next().value;W=EO(W);i7w(W);this.iconCache[C]=W.cloneNode(!0)}this.isPurging=k4t(this);this.isPurging instanceof Promise?this.isPurging.then(D):D()};
_.Gej=function(D,C){var X=D.resolveIcon(C);return X?D.renderingMode===1?urU(D,X,D.renderingMode):(C=D.iconCache[X.url])?(C=C.cloneNode(!0),QeY(D,C),urU(D,X,D.renderingMode,C)):_.Bq3(D,X).then(function(c){var W=c?0:1;QeY(D,c);return urU(D,X,W,c)}):(_.qN(new _.Zf("Icon not found",{iconShape:C})),function(){})};
QeY=function(D,C){if(C){D.counter+=1;D="_yt"+D.counter;C=[C].concat(_.VB(C.getElementsByTagName("*")));C=_.U(C);for(var X=C.next();!X.done;X=C.next())if(X=X.value,X.tagName==="style"&&X.textContent)X.textContent=b7Y(X.textContent,D,!0);else for(var c=_.U(X.attributes),W=c.next();!W.done;W=c.next()){W=W.value;W.name==="id"&&(W.value+=D);["mask","fill","clip-path"].includes(W.name)&&(W.value=b7Y(W.value,D));if(W.name==="style"){var p=X.style;try{p.cssText=b7Y(p.cssText,D,!0)}catch(k){var g=void 0,a=
void 0,O=void 0,P=void 0;tt({error:((g=k)==null?void 0:(O=(a=g).toString)==null?void 0:O.call(a))||"",el:X.outerHTML,style:!!p,cssText:(P=p)==null?void 0:P.cssText})}}W.name==="xlink:href"&&(W.value=W.value.replace(/#(.*)/,"#$1"+D))}}};
b7Y=function(D,C,X){var c=/url\(["']?#(.*?)["']?\)/;(X===void 0?0:X)&&(c=/url\(["']?#(.*?)["']?\)/g);return D.replace(c,"url(#$1"+C+")")};
urU=function(D,C,X,c){return function(W,p){var g;var a=Object.assign({},{iconWidth:C.size+"px",iconHeight:C.size+"px",iconDisplay:"block"},p,{iconColor:(g=p==null?void 0:p.iconColor)!=null?g:"currentcolor"});g=_.mv("DIV");p=a.iconColor;var O=a.iconFilter;a="width: "+a.iconWidth+"; height: "+a.iconHeight+"; display: "+a.iconDisplay+";";O&&(a+=" filter: "+O+";");X===0&&(a+=" fill: "+p+";");X===1&&(O=C.url,a+=" -webkit-mask: url("+O+") no-repeat center / cover; mask: url("+(O+") no-repeat center / cover; background-color: ")+
p);C.allowMirroring&&D.appDirection==="rtl"&&(a+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",a);X===0&&c&&g.appendChild(c);W.appendChild(g)}};
_.Bq3=function(D,C){var X,c,W;return _.I(function(p){X=function(g){return RH(g)};
c=C.url;if(!rU6(c))throw Error("yj");W=KxN(D,c);return p.return(W.then(function(g){return g.clone().text()}).then(function(g){var a=X(g);
g=C.size;var O=_.mv("DIV");_.aG(O,a);a=_.ep(O.firstElementChild!==void 0?O.firstElementChild:_.heq(O.firstChild,!0));g=i7w(a,g);D.iconCache[c]=g.cloneNode(!0);delete D.responsePromises[c];return g}).catch(function(){}))})};
hj1=function(D){var C,X=(C=D.requestAninmationFrameResolver)==null?void 0:C.promise;X||(D.requestAninmationFrameResolver=new _.gL,X=D.requestAninmationFrameResolver.promise,_.co.requestAnimationFrame(function(){var c;(c=D.requestAninmationFrameResolver)==null||c.resolve();D.requestAninmationFrameResolver=null}));
return X};
KxN=function(D,C){var X,c;return _.I(function(W){if(W.nextAddress==1)return D.waitForAnimationFrame?W.yield(hj1(D),2):W.jumpTo(2);X=D.responsePromises[C];X||(c=function(){var p,g,a;return _.I(function(O){switch(O.nextAddress){case 1:if(!D.cacheStorageAvailable){p=void 0;O.jumpTo(2);break}if(g=D.cacheStorageSync){O.jumpTo(3);break}return O.yield(D.cacheStorageAsync,4);case 4:g=O.yieldResult;case 3:p=g;case 2:return a=p,D.isNetworkFirstStrategy?O.return(D.fetchAndUpdateCache(C,a).catch(D.getCacheStorageResponse.bind(D,
C,a))):O.return(D.getCacheStorageResponse(C,a).catch(D.fetchAndUpdateCache.bind(D,C,a)))}})},X=D.renderWhenIdle?new Promise(function(p,g){_.Zo(_.qX,function(){c().then(p).catch(g)},10)}):c(),D.responsePromises[C]=X);
return W.return(X.catch(function(p){delete D.responsePromises[C];tt({error:(p==null?0:p.toString)?p.toString():"",url:C});throw p;}))})};
Ej.prototype.fetchAndUpdateCache=function(D,C){var X=this;return _.I(function(c){return c.return(x6X(X,D).then(function(W){LxY(X,D,W,C);return W}))})};
var x6X=function(D,C){var X;return _.I(function(c){if(D.numFetches<vQw)return D.numFetches+=1,c.return(seG(D,C).finally(function(){--D.numFetches;if(Object.keys(D.queuedResponseResolvers).length){var W=Object.keys(D.queuedResponseResolvers)[0],p=D.queuedResponseResolvers[W];delete D.queuedResponseResolvers[W];p.resolve(x6X(D,W))}}));
X=new _.gL;D.queuedResponseResolvers[C]=X;return c.return(X.promise)})},seG=function(D,C,X){X=X===void 0?2:X;
var c;return _.I(function(W){c={credentials:"same-origin",priority:"low"};return W.return(_.co.fetch(C,c).then(function(p){return p.ok?p:Promise.reject(Error("zj`"+p.status+"`"+p.statusText))}).catch(function(p){if(X>0)return seG(D,C,X-1);
throw p;}))})},LxY=function(D,C,X,c){_.I(function(W){return c?W.return(new Promise(function(p){_.Zo(_.qX,function(){var g,a;
return _.I(function(O){switch(O.nextAddress){case 1:if(!D.isNetworkFirstStrategy){g=void 0;O.jumpTo(2);break}return O.yield(c.match(C).catch(function(){}),3);
case 3:g=O.yieldResult;case 2:if(a=g){O.jumpTo(4);break}return O.yield(c.put(C,X.clone()).catch(function(P){tt({error:(P==null?0:P.toString)?P.toString():"",url:C})}),4);
case 4:p(),_.t_(O)}})},50)})):W.return()})};
Ej.prototype.getCacheStorageResponse=function(D,C){return _.I(function(X){return C?X.return(C.match(D).then(function(c){return c&&c.ok?c:Promise.reject()})):X.return(Promise.reject())})};
var i7w=function(D,C){C===void 0||D.getAttribute("viewBox")||D.setAttribute("viewBox","0 0 "+C+" "+C);D.setAttribute("focusable","false");D.setAttribute("aria-hidden","true");C=_.b("killswitch_remove_icon_fill_color");D.getAttribute("fill")!=="currentcolor"&&D.getAttribute("fill")!=="currentColor"||C||D.removeAttribute("fill");try{D.style.pointerEvents="none",D.style.display="inherit",D.style.width="100%",D.style.height="100%"}catch(W){var X;tt({error:((X=W)==null?0:X.toString)?W.toString():""});
try{D.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(p){var c;tt({error:((c=p)==null?0:c.toString)?p.toString():""})}}return D},rU6=function(D){for(var C=_.U($6t),X=C.next();!X.done;X=C.next())if(D.startsWith(X.value)&&D.endsWith(".svg"))return!0;
return!1};
Ej.prototype.resolveIcon=function(D){return this.iconSet.resolveIcon(D)};
var tt=function(D){_.fQ(new _.Zf("Error in IconManager",D))},k4t=function(D){if(_.b("wil_icons_cache_purge_killswitch"))return!1;
try{var C=_.co.localStorage}catch(p){return!1}if(!C||!D.cacheStorageAvailable)return!1;var X=function(p){try{var g;(g=C)==null||g.setItem("yt-icons-last-purged",p.toString())}catch(O){var a;tt({error:((a=O)==null?0:a.toString)?O.toString():""})}},c=Number(C.getItem("yt-icons-last-purged"));
if(!c)return c=new Date,c=c.setDate(c.getDate()-Math.floor(Math.random()*90+1)),X(c),!1;if(function(p,g){p=new Date(p);g=new Date(g);return g.getMonth()-p.getMonth()+12*(g.getFullYear()-p.getFullYear())}(c,Date.now())<3)return!1;
try{return _.co.caches.delete("yt-icons").then(function(p){p&&X(Date.now());return p}).catch(function(){return!1}).finally(function(){D.isPurging=!1})}catch(p){var W;
tt({error:((W=p)==null?0:W.toString)?p.toString():""});return!1}};
Ej[kz]=[jGp,_.z2,_.vK(fNt)];_.NT=function(D,C){this.iconManager=D;this.iconsToFetch=C};
_.NT[kz]=[_.a3,_.vK(quU)];var m6X=function(){};var ejX=function(D,C,X){this.requestKey=D;this.aB3=C;this.qNQ=X;this.nz4=function(){return new XMLHttpRequest};
this.hXf=void 0;this.m6m=[]};
ejX.prototype.getLatestChallengeResponse=function(){return this.qNQ};
var mGM=function(D,C,X){var c,W,p,g;return _.I(function(a){if(a.nextAddress==1){_.Lt("attestation_challenge_fetch");_.sp("att_fs",void 0,"attestation_challenge_fetch");if(!D.hXf)throw new _.Vg(9,"Missing fetcher");return a.yield(D.hXf(C,X),2)}c=a.yieldResult;p=(W=c)==null?void 0:W.bgChallenge;if(!p)throw new _.Vg(15,"Missing field");D.qNQ=c;D.m6m.forEach(function(O){O(c)});
g=Hx5(p);_.sp("att_fc",void 0,"attestation_challenge_fetch");xC("attestation_challenge_fetch");return a.return(g)})},lfg=function(D,C){var X,c,W,p,g;
return _.I(function(a){switch(a.nextAddress){case 1:X=new uc(100,3E5,.25,2),c=void 0;case 2:if(!(X.currBackoffCount_<10)){a.jumpTo(4);break}_.KK(a,5);if(!(X.currBackoffCount_>0)){a.jumpTo(7);break}return a.yield(ip5(X.getValue()),7);case 7:return a.yield(EQo(D,C),9);case 9:return W=a.yieldResult,a.return(W);case 5:p=_.Eu(a);p instanceof _.Vg?c=p:(g=p instanceof Error?p.message:"Unknown",c=new _.Vg(9,g));F5c(X);a.jumpTo(2);break;case 4:if(c)throw c;throw new _.Vg(9,"Unknown error");}})},EQo=function(D,
C){C=iCx(kVe(new vzb,C),D.requestKey);
var X=new _.gL,c=D.nz4();c.open("POST",D.aB3);c.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");c.setRequestHeader("Content-Type","application/json+protobuf");c.onload=function(){if(_.aS3(c)){var W=spC(c.responseText);X.resolve(W)}else X.reject(new _.Vg(_.afh(_.KC(c)),c.statusText))};
c.onerror=function(){X.reject(new _.Vg(_.afh(_.KC(c)),c.statusText))};
c.send(C.serialize());return X.promise};var Nqw=function(D){this.networkStatusManager=D;this.isDownloaded=fL3===void 0?function(){return!1}:fL3;
this.isReady=!1;this.zBa=tjN(this)},tjN=function(D){var C;
return _.I(function(X){if(X.nextAddress==1)return X.yield(H7F(),2);if(X.nextAddress!=3)return C=X.yieldResult,X.yield(Vpq(C),3);D.nK=X.yieldResult;ubW(D.nK).then(function(){D.isReady=!0});
return X.return(D.nK)})},YO6=function(D,C,X){D.nK?(D=D.nK.mjn({m1:X,
dZm:!0,ccQ:!0}),C.serviceIntegrityDimensions={poToken:D}):_.MN(Error("Bj"))};
Nqw.prototype.processContext=function(D){var C=this;if(!D.input.match(_.dJ(d0N)))return _.KU();var X=D.innerTubeRequest,c=X.videoId;return!c||this.isDownloaded(X)||this.networkStatusManager&&!this.nK&&!this.networkStatusManager.isNetworkAvailable()||_.b("webpo_exit_on_net_err")&&!this.nK&&(window.bgens===1||window.bgens===3)?_.KU():this.nK?this.isReady?(YO6(this,X,c),_.KU()):new rX(ubW(this.nK).then(function(){YO6(C,X,c)})):new rX(this.zBa.then(function(W){return _.I(function(p){if(p.nextAddress==
1)return p.yield(ubW(W),2);
YO6(C,X,c);_.t_(p)})}))};var yUk=new _.P6("WEB_PO_CONTEXT_PROCESSOR");var nQX=function(D,C){var X=this;this.gVi=0;var c;this.nin=(c=C==null?void 0:C.nin)!=null?c:window;this.networkStatusManagerPromise=C==null?void 0:C.networkStatusManagerPromise;var W;this.requestKey=(W=C==null?void 0:C.requestKey)!=null?W:_.bX("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var p;this.yTj=(p=C==null?void 0:C.yTj)!=null?p:function(O){return new q$(O)};
var g;c=(g=C==null?void 0:C.rFa)!=null?g:function(O,P,k){return new ejX(O,P,k)};
this.bgChallenge=Hx5(D.bgChallenge);this.ttlSeconds=Jkm(HC(D.challenge||""));this.tJ=c(this.requestKey,_.b("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.co.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",D);this.txu=C==null?void 0:C.txu;kxd(this.tJ);var a;this.qzr=(a=C==null?void 0:C.qzr)!=null?a:function(O){_.Kb(X.nin.document,"visibilitychange",
function(){X.nin.document.visibilityState==="visible"&&O()})}},FxG=function(D){if(!D.vm){var C={maxAttempts:5,
pcB:D.ttlSeconds*1E3};Q0r(D.nin);D.vm=D.yTj({tJ:D.tJ,bHi:{disable:_.b("html5_web_po_disable_remote_logging"),s0:"aGIf",ham:WUo("html5_web_po_experiment_ids"),cgI:_.b("wpo_dis_lfdms")?0:1E3,uxJ:function(c){var W=CMb.get(c);W||(W=new D2M(c),W=new xT(W),CMb.set(c,W));return W}},
rnw:C,oyr:D.bgChallenge,sno:BG3});D.gVi=Date.now();hGd(D.vm,function(){D.gVi=Date.now()});
D.nin.bgevmc={p:function(){var c;(c=D.vm)==null||c.pause()},
r:function(){var c;(c=D.vm)==null||c.resume()},
cr:function(){var c,W;return(W=(c=D.vm)==null?void 0:c.checkForRefresh())!=null?W:Promise.resolve()}};
Mjo(D.vm,function(){return _.I(function(c){return c.return(w2t(D))})});
var X=D.jaz.bind(D);D.networkStatusManagerPromise&&D.ttlSeconds>0&&D.networkStatusManagerPromise.then(function(c){c.listen("publicytnetworkstatus-online",X)});
D.qzr(X)}};
nQX.prototype.jaz=function(){if(Date.now()>this.gVi+this.ttlSeconds*1E3){var D;(D=this.vm)==null||KCk(D)}};
var w2t=function(D){if(D.fra)return D.fra;if(!D.vm)throw Error("Cj");D.fra=new Ds({vm:D.vm,tJ:D.tJ,vr4:!0,onError:BG3,rnw:D.txu});return D.fra},rHW=function(D,C){D=new nQX(D,C);
FxG(D);(C==null?0:C.tYM)||w2t(D)};var Z7N=_.k33.ephemeralActionSelector,YI=function(D,C){this.store=D;this.queue=[];C==null||C.addEventListener("yt-navigate-start",this.reset.bind(this))};
YI.prototype.enqueue=function(D){var C=D.command,X=D.durationMs,c=D.elementToFocus;var W=D.label;var p=D.elementToFocus;D.command?W=_.I7("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:W,shortcut:_.I7("SHIFT_PLUS_ENTER")}):p&&(D=W+". "+_.I7("SHIFT_PLUS_ENTER")+" for more information.",W=_.I7("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:W,shortcut:_.I7("SHIFT_PLUS_ENTER")},D));X={announcement:W,durationMs:X!=null?X:8E3};C?X.command=C:c&&(c.classList.add("ephemeral-action-focusable-element"),X.selector=c.tagName+
".ephemeral-action-focusable-element");this.queue.push(X);G4G(this)};
YI.prototype.activate=function(D){var C=Z7N(this.store.getState());if(C){if(C==null?0:C.command)_.yK(C.command),this.store.dispatch(jfd(null));if(C==null?0:C.selector)C=document.querySelector(C.selector),_.zGo(C);D.preventDefault()}};
var G4G=function(D){if(!Z7N(D.store.getState())&&D.queue.length){var C=D.queue.shift();C&&(D.previousAnnouncement===C.announcement&&(C.announcement+="\u00a0"),D.store.dispatch(jfd(C)),D.previousAnnouncement=C.announcement,D.JSC$18965_timeoutId=setTimeout(function(){if(C.selector){var X;(X=document.querySelector(C.selector))==null||X.classList.remove("ephemeral-action-focusable-element")}D.store.dispatch(jfd(null));G4G(D)},C.durationMs))}};
YI.prototype.reset=function(){this.JSC$18965_timeoutId&&clearTimeout(this.JSC$18965_timeoutId);this.store.dispatch(jfd(null));this.queue.length=0;this.JSC$18965_timeoutId=void 0};
YI[kz]=[_.gp,_.vK(_.HV)];_.yH=new _.P6("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Vj1=new _.P6("AUTH_SERVICE_TOKEN");var xEm=_.q8(["about:blank"]),hum;var Tqp=new _.P6("API_IFRAME_TOKEN");var Eh4;Eh4=new _.P6("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.H7U=new _.P6("MISC_UI_SHARED_FLAGS_TOKEN");var JUo=function(){};
JUo.prototype.getFlag=function(D){if(D.configType!==2)throw Error("Dj");return zjG(D)};
var zjG=function(D){switch(D.flagType){case "bool":return _.b(D.flagName);case "int":return _.Fe(_.BK(D.flagName));case "double":return _.BK(D.flagName);case "string":return _.bX(D.flagName);case "int32_list":return WUo(D.flagName);case "int64_list":return WUo(D.flagName).map(function(C){return _.Fe(C)});
case "string_list":return _.rT(D.flagName);default:throw Error("Ej");}};var nA=function(D,C,X){C=C===void 0?{}:C;M4.call(this,X===void 0?"uninitialized":X);this.env=D;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];C.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=C.shouldWaitOnAsyncImmediate)};
_.h(nA,M4);nA.prototype.init=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?c.yield(D(C.env),2):(D(C.env),c.jumpTo(2));if(c.nextAddress!=4)return C.jobSet?c.yield(C.jobSet.completedResolver.promise,4):c.jumpTo(4);X=_.uP();X.parkOrScheduleJob(function(){C.transition("rendering")},10,"ci");
_.t_(c)})};
nA.prototype.initialRender=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?c.yield(D(C.env),2):(D(C.env),c.jumpTo(2));if(c.nextAddress!=4)return C.jobSet?c.yield(C.jobSet.completedResolver.promise,4):c.jumpTo(4);X=_.uP();X.parkOrScheduleJob(function(){C.transition("rendered")},10,"cr");
_.t_(c)})};
nA.prototype.afterRenderImmediate=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?c.yield(D(C.env),2):(D(C.env),c.jumpTo(2));if(c.nextAddress!=4)return C.jobSet?c.yield(C.jobSet.completedResolver.promise,4):c.jumpTo(4);X=_.uP();X.parkOrScheduleJob(function(){C.transition("after-render-deferred")},10,"carml");
_.t_(c)})};
nA.prototype.afterRenderDeferred=function(D){var C=this;return _.I(function(X){D(C.env);_.t_(X)})};_.M6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var je6={},Mjp=(je6.rendered={priority:0,callback:function(D){P8d(D.injector.resolve(Gu))}},je6);var riJ=new _.P6("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),qOY=new _.P6("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var fhp=function(D){this.callbackFnMap=D;this.configMap={}};
fhp.prototype.handleResponse=function(D){var C;if(D=(C=D.responseContext)==null?void 0:C.serviceTrackingParams)for(C=_.U(D),D=C.next();!D.done;D=C.next()){D=D.value;var X=D.params,c=D.service;if(X&&c){this.configMap[c]||(this.configMap[c]=new BZe);D=this.configMap[c];var W=void 0,p=(W=this.callbackFnMap)==null?void 0:W[c];X=_.U(X);for(c=X.next();!c.done;c=X.next())W=c.value,c=W.key,W=W.value,c&&W&&(D.set(c,W),p&&p(c,W))}}};
fhp.prototype.getConfig=function(D){return this.configMap[D]||void 0};
fhp[kz]=[_.vK(qOY)];var d63=!1,YiF=0,euj=null,NGm=null;var RjN=new _.P6("NETWORK_SLI_TOKEN");var lh3=function(D){this.networkSli=D};
lh3.prototype.fetch=function(D,C,X){var c=this,W;return _.I(function(p){W=DGG(c,D,C);return p.return(fetch(W).then(function(g){return c.handleResponse(g,X)}).catch(function(g){_.fQ(g);
if((X==null?0:X.expectJsonStrict)&&g instanceof Dx&&g.errorType===1)return Promise.reject(g)}))})};
var NZc=function(D,C,X,c){var W,p,g,a,O,P,k;return _.I(function(u){switch(u.nextAddress){case 1:return W=DGG(D,C,X),_.KK(u,2),u.yield(fetch(W),4);case 4:p=u.yieldResult;_.SR(u,3);break;case 2:throw _.Eu(u),new Dx(2,"Failed to parse streaming response",W.url);case 3:if(!p.redirected&&!p.ok)throw(g=D.networkSli)==null||g.failure(),new _.Zf("Streaming fetch request not ok",W.url);if(!p.body)throw new _.Zf("No response body in streaming response",W.url);a={};if(_.b("web_streaming_fast"))return O=p.body.getReader(),
u.return(CXt(D,O,a,c));P=p.body.pipeThrough(new TextDecoderStream).getReader();k=new _.xY;return u.return(XKt(D,P,k,Pin,a,c))}})},DGG=function(D,C,X){if(D.networkSli){var c=_.mC(_.MF(C,"key"))||"/UNKNOWN_PATH";
D.networkSli.start(c)}D=X;_.b("wug_networking_gzip_request")&&(D=vn3(X));return new window.Request(C,D)},CXt=function(D,C,X,c){var W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q,R,ph,Om,xj,Bo,r5,Fd,GJ,jZ,Ac,ib,d5;
return _.I(function(ub){switch(ub.nextAddress){case 1:W=new TextDecoder("utf-8"),p=[],a=g=0,_.KK(ub,2,3);case 5:return ub.yield(C.read(),8);case 8:O=ub.yieldResult;P=O.value;if(k=O.done){u=0;if(p.length>g)for(u=p[g].length-a,Q=g+1;Q<p.length;Q++)u+=p[Q].length;u>0&&(B=yH5(p,u,g,a),K=B.indexOf(123),L=B.lastIndexOf(125),K!==-1&&L!==-1&&L>K&&(t=B.subarray(K,L+1),Y=JSON.parse(W.decode(t)),Pin(X,Y),y=void 0,(y=c)==null||y(X,Y)));J=void 0;(J=D.networkSli)==null||J.success();return ub.return(X)}p.push(P);
T=g;for(H=a;T<p.length;)if(q=p[T],R=q.indexOf(10,H),R===-1){if(T===p.length-1)break;T++;H=0}else{ph=T;Om=R+1;xj=0;if(g===ph)xj=Om-a;else{xj=p[g].length-a;for(Bo=g+1;Bo<ph;Bo++)xj+=p[Bo].length;xj+=Om}r5=yH5(p,xj,g,a,ph,Om);Fd=r5.indexOf(123);GJ=r5.lastIndexOf(125);if(Fd!==-1&&GJ!==-1&&GJ>Fd){jZ=r5.subarray(Fd,GJ+1);try{Ac=JSON.parse(W.decode(jZ)),Pin(X,Ac),ib=void 0,(ib=c)==null||ib(X,Ac)}catch(L5){throw new Dx(1,"Failed to parse streaming response object",W.decode(jZ));}}g=T;H=a=R+1;a===q.length&&
(g++,a=0,T=g,H=0)}ub.jumpTo(5);break;case 3:_.xF(ub);C.releaseLock();_.es(ub,0);break;case 2:d5=_.Eu(ub);if(d5 instanceof Dx)throw d5;throw new Dx(1,"Failed to process streaming response");}})},XKt=function(D,C,X,c,W,p){var g,a,O,P,k,u,Q,B,K;
return _.I(function(L){if(L.nextAddress==1)return L.yield(C.read(),2);g=L.yieldResult;a=g.value;if(O=g.done)return(P=D.networkSli)==null||P.success(),L.return(W);try{k=X.parse(a)}catch(t){throw new Dx(1,"Failed to parse streaming response",a);}if(k!=null)for(u=_.U(k),Q=u.next();!Q.done;Q=u.next())B=Q.value,c(W,B),K=void 0,(K=p)==null||K(W,B);return L.return(XKt(D,C,X,c,W,p))})};
lh3.prototype.handleResponse=function(D,C){var X=D.text().then(function(c){if((C==null?0:C.jspbResponseCtor)&&D.ok)return qBW(C.jspbResponseCtor,c);c=c.replace(")]}'","");if((C==null?0:C.expectJsonStrict)&&c)try{var W=JSON.parse(c)}catch(g){throw new Dx(1,"JSON parsing failed after fetch");}var p;return(p=W)!=null?p:JSON.parse(c)});
D.redirected||D.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),X=X.then(function(c){_.fQ(new _.Zf("Error: API fetch failed",D.status,D.url,c));return Object.assign({},c,{errorMetadata:{status:D.status}})}));
return X};
lh3[kz]=[_.vK(RjN)];var cgt=new _.P6("NETWORK_MANAGER_TOKEN");var ozo=[1,2,4,8,16,30],pK3=function(D){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=D.maxTimeMs;this.maxFrameCount=D.maxFrameCount===void 0?Math.ceil(60*D.maxTimeMs/1E3):D.maxFrameCount;D=_.U(ozo);for(var C=D.next();!C.done;C=D.next())this.brokenFrameSummarizers.push(new WCG(C.value/60*1E3))},SYX=function(D){var C=D.frameCountInternal>=D.maxFrameCount;
return D.elapsedTimeMs>=D.maxTimeMs||C};
pK3.prototype.summarize=function(){for(var D=[],C=_.U(this.brokenFrameSummarizers),X=C.next();!X.done;X=C.next())X=X.value,X=X.brokenFrameCount!==0?{severityMs:Math.round(X.targetFrameTimeMs),eventCount:X.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(X.averageDurationBetweenEventsMs)}:void 0,X&&D.push(X);return{summaries:D,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.$a.Object.defineProperties(pK3.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 WCG=function(D){this.targetFrameTimeMs=D;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.$a.Object.defineProperties(WCG.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UGw=function(){};
UGw.prototype.start=function(D,C){var X=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var c=new pK3({maxTimeMs:D});this.monitor=c;this.lastSummaryInternal=void 0;this.metadataToLog=C;return new Promise(function(W){var p=function(g){if(g===void 0)X.stop(),W(void 0);else if(X.monitor!==c)g=Object.assign({},c.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),W(g);else{var a=X.monitor;if(!SYX(a)){a.frameCountInternal++;if(a.prevTime===
void 0)a.startTime=g;else for(var O=g-a.prevTime,P=_.U(a.brokenFrameSummarizers),k=P.next();!k.done;k=P.next()){k=k.value;var u=k.currTimeMs;k.currTimeMs+=O;O>k.targetFrameTimeMs+2&&(k.brokenFrameCount++,k.timeOfFirstBrokenFrameMs===void 0&&(k.timeOfFirstBrokenFrameMs=u),k.timeOfLastBrokenFrameMs=u)}a.prevTime=g}SYX(X.monitor)?W(X.stop()):_.qX.addJob(p,5,0)}};
_.qX.addJob(p,5,0)})};
UGw.prototype.stop=function(D){if(!this.monitor)return this.lastSummaryInternal;var C=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(C.monitoringDurationMs){D=D!=null?D:this.metadataToLog;var X={droppedFramesSummary:C,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};D&&(X[D.type]=D.data);_.zu("manualSmoothnessMeasurement",X)}this.monitor=void 0;this.lastSummaryInternal=C;this.metadataToLog=void 0;return C};_.gzo=new _.P6("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var af1;af1=function(D){this.JSC$19007_expiringStorage=new V3(D)};
_.IfN=function(D){if(_.nsJ()&&(D=_.j7F(_.wT()+"::"+D)))return new af1(D)};
af1.prototype.set=function(D,C,X){X=X!==void 0?Date.now()+X:void 0;this.JSC$19007_expiringStorage.set(D,C,X)};
af1.prototype.get=function(D){return this.JSC$19007_expiringStorage.get(D)};
af1.prototype.remove=function(D){this.JSC$19007_expiringStorage.remove(D)};_.wb=function(){};
_.wb.getInstance=function(){var D=_.Df("ytglobal.storage_");D||(D=new _.wb,_.$h("ytglobal.storage_",D));return D};
_.wb.prototype.estimate=function(){var D,C,X;return _.I(function(c){D=navigator;return((C=D.storage)==null?0:C.estimate)?c.return(D.storage.estimate()):((X=D.webkitTemporaryStorage)==null?0:X.queryUsageAndQuota)?c.return(wij()):c.return()})};
_.$h("ytglobal.storageClass_",_.wb);var JH5=0;var Ruh=!1;var OCo=_.q8(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Agw=_.q8(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Moo={"/":_.fU,"/?feature=ytca":_.fU,"/feed/downloads":_.dKJ};var PXX=QAN.continuationCommandSelector,iT=function(D,C,X){this.JSC$19023_upliftPromise=D;this.store=C;this.JSC$19023_persistentStorePromiseAccessor=X};
iT.prototype.shouldPreferLocalResponse=function(D){return D.browseId==="FEdownloads"||D.browseId==="FEsmart_downloads"&&_.b("kevlar_modern_downloads_page")?!0:!1};
iT.prototype.localInnertubeResponse=function(D){var C=this;return _.I(function(X){return D.browseId==="FEdownloads"?_.b("kevlar_modern_downloads_page")?X.return($GG(C)):X.return(vz6(C)):D.browseId==="FEsmart_downloads"&&_.b("kevlar_modern_downloads_page")?X.return(iC3(C)):X.return(Promise.reject(Error("Gj")))})};
iT.prototype.canProvideFallbackResponse=function(){return!0};
iT.prototype.localFallbackInnertubeResponse=function(D){var C=this,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return p.yield(C.JSC$19023_persistentStorePromiseAccessor(),2);case 2:X=p.yieldResult;if(D.browseId!=="SPaccount_downloads"||!X){p.jumpTo(3);break}return p.yield(q8m(X),4);case 4:if(c=p.yieldResult)return p.return(_.Cn(c));case 3:return D.browseId==="FEwhat_to_watch"?p.return(kVt(C)):(W=_.b("web_offline_continuation_automatic_retry")||_.b("web_offline_continuation_retry_button"))&&
D.continuation?p.return(uLt(C)):p.return(QQP(C))}})};
var kVt=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$19023_upliftPromise,2);C=_.i4Z(D.store.getState().entities);return C.length?X.return(BT1(D,C)):X.return(QQP(D))})},vz6=function(D){var C,X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$19023_upliftPromise,2);if(c.nextAddress!=3)return C=bCY([{offlineItemSectionRenderer:{}}]),c.yield(rgN(D,C),3);X=c.yieldResult;X.onResponseReceivedActions=[$f("REFRESH_DOWNLOADS")];return c.return(X)})},$GG=function(D){var C,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t;
return _.I(function(Y){if(Y.nextAddress==1)return Y.yield(D.JSC$19023_upliftPromise,2);if(Y.nextAddress!=3)return C=D.store.getState(),X=C.entities,c=_.xP(X),W=_.Le(X),p=_.q7J(C),g=_.MOR(C),a=_.feJ(C),O=_.Qsr(X),P=_.QZ(c),k=_.s1(X),u=_.KVF(X),Q=_.Rfm(C),B=_.Nh(C),K={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.OSm(c,W,O,u,p,g,P,k,a,Q,B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},L="",_.b("kevlar_modern_downloads_skip_downloads_title")||
(L=_.I7("DOWNLOADS",void 0,"Downloads")),Y.yield(KCG(D,K,L),3);t=Y.yieldResult;t.onResponseReceivedActions=[$f("REFRESH_DOWNLOADS")];return Y.return(t)})},iC3=function(D){var C,X,c,W,p,g,a,O,P;
return _.I(function(k){if(k.nextAddress==1)return k.yield(D.JSC$19023_upliftPromise,2);if(k.nextAddress!=3)return C=D.store.getState(),X=C.entities,c=_.xP(X),W=_.QZ(c),p=_.s1(X),g={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Pv3(c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},a=_.I7("SMART_DOWNLOADS",void 0,"Smart downloads"),O=a_F(W,p),k.yield(KCG(D,g,a,O),3);P=k.yieldResult;P.onResponseReceivedActions=
[$f("REFRESH_DOWNLOADS")];return k.return(P)})},QQP=function(D){var C,X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(Dt(D.JSC$19023_upliftPromise,D.store),2);C=c.yieldResult;X=bCY([JOm(C)]);return c.return(rgN(D,X))})},uLt=function(D){var C,X,c,W;
return _.I(function(p){if(p.nextAddress==1)return C={},X=PXX(D.store.getState()),_.mp(C,_.nI,X),p.yield(Dt(D.JSC$19023_upliftPromise,D.store,C,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);c=p.yieldResult;W={};_.mp(W,_.TWg,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:c}}}],targetId:"browse-feedFEwhat_to_watch"});return p.return({responseContext:{},onResponseReceivedActions:[W]})})},bCY=function(D){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:D}}}}]}}},BT1=function(D,C){var X,c;
return _.I(function(W){var p={contents:vC(C)};X=p&&p.contents?p:{};_.b("kevlar_modern_downloads_page")&&(X=Object.assign({},_.$pt(C),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:X}}}]}};return W.return(rgN(D,c))})},rgN=function(D,C){var X,c;
return _.I(function(W){if(W.nextAddress==1)return W.yield(D.JSC$19023_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return X=W.yieldResult,W.yield(WR(X),3);c=W.yieldResult;return W.return({responseContext:{},contents:C,topbar:c})})},KCG=function(D,C,X,c){var W,p;
return _.I(function(g){if(g.nextAddress==1)return g.yield(D.JSC$19023_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3)return W=g.yieldResult,g.yield(WR(W),3);p=g.yieldResult;var a=g.return;var O=X;var P=c;O=O===void 0?"":O;P=P===void 0?"":P;O={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:O}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.I7("SETTINGS",void 0,"Settings"),accessibilityText:_.I7("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:_.l5("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:P}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:O};
return a.call(g,{responseContext:{},contents:C,topbar:p,header:{pageHeaderRenderer:O}})})};var hGX=function(){this.moduleRegistry={};this.fetchCount=0};
hGX.prototype.isFetching=function(){return this.fetchCount>0};
var G_=function(D,C){D.moduleRegistry[C.toString()]={asyncId:C,isFetching:!1};return D};
hGX.prototype.JSC$19034_loadModules=function(){for(var D=this,C=new Map,X=[],c=_.U(_.MJ.apply(0,arguments)),W=c.next();!W.done;W=c.next()){W=W.value;var p=this.moduleRegistry[W];p?p.resolver?C.set(W,p.resolver):(p.resolver=new _.gL,C.set(W,p.resolver),X.push(p.asyncId),p.isFetching=!0):(p=new _.gL,C.set(W,p),p.resolve(void 0))}X.length&&(this.fetchCount+=1,_.ZZ(_.A$.getMultipleAsync.apply(_.A$,_.VB(X)).then(function(g){for(var a=0;a<X.length;a++){var O=g[a],P=D.moduleRegistry[X[a].toString()];P.isFetching=
!1;P.resolver.resolve(O)}}).catch(function(g){for(var a=_.U(X),O=a.next();!O.done;O=a.next()){O=O.value;
var P=D.moduleRegistry[O.toString()];P.resolver=void 0;P.isFetching=!1;C.get(O.toString()).reject(g)}}),function(){--D.fetchCount}));
return Promise.all([].concat(_.VB(C.values())).map(function(g){return g.promise}))};_.Vs=new _.P6("MODULE_REGISTRY_TOKEN");var xGU={},LCX=(xGU.rendered={priority:0,callback:function(D){a:{var C=void 0;try{var X;b:{if(_.H9m()){var c=_.Jg(_.wT()+"::pom");if(c){var W=new qk(c);break b}}W=void 0}var p=(X=W)==null?void 0:X.get("role_text");if(!p)break a;C={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:p}]}}}}}}catch(O){}C&&D.injector.resolve(_.uX).resolveCommand(C)}try{var g=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(g){var a=JSON.parse(g);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
a&&D.injector.resolve(_.uX).resolveCommand(a)}}catch(O){}}},xGU);var sQo,mGp={},eG6=(mGp.initialized={priority:10,callback:function(){sQo=xw()}},mGp.rendering={callback:function(D){var C;
return _.I(function(X){if(X.nextAddress==1)return X.yield(sQo,2);C=X.yieldResult;if(!C.endpoint)throw Error("Ij`"+_.co.location.href);eX(D,C);_.t_(X)})}},mGp);var EzP={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.VB(_.b("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(D){var C=D.stack;if(C.includes("chrome://")||C.includes("chrome-extension://")||D.message.includes("chrome-extension://")||C.includes("moz-extension://")||
C.includes("local.adguard.org")||C.includes("auctioneer3.50million.club")||C.includes("youtubedownloader")||C.includes("youtube_home_page")||C.includes("is_youtube_video_no_longer_available")||C.includes("switchScreenSizeHack")||C.includes("yt_main_big_banner.js")||C.includes("YouTubeCenter.js")||C.includes("/mytube.js")||C.includes("JSON.parseWrapper")||C.includes("/inj_js/common.js")||C.includes("firebug-lite")||C.includes(".repl.co/")||C.includes("linkfix")||C.includes("playAfterAd")||D.message.includes("Access is denied for this document")&&
C.includes("<anonymous>")||D.fileName==="user-script"||D.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&C.includes("<anonymous>"))return!0;if(C.includes("https://www.youtube.com"))return!1;D=C.split("\n");if(!D.length)return!1;if(D.length<=3&&C.includes("s.onloadeddata"))return!0;C=0;for(var X=_.U(D),c=X.next();!c.done;c=X.next())c=c.value,(c.includes("https://")||c.includes("http://"))&&C++;return C/D.length>.95},
weight:0},{callback:function(D){return D.message==="Unknown Error"&&D.name.indexOf("NS_")===0},
weight:100},{callback:function(D){if(!_.g1)return!1;var C=D.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||D.message.includes("available to complete this operation"),X=D.stack.includes("webcomponents")&&D.message==="Object doesn't support this action";D=D.message.includes("object that does not implement interface Element");return C||X||D},
weight:0},{callback:function(D){return D.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(D){return D.message==="Operation is not supported"&&(D.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(D){return D.stack.includes("eval code (eval (code:1:1)")||D.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(D){return D.message.includes("Permission denied")&&D.stack.includes("this.domHandler")?!0:D.name.includes("TypeError")&&D.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(D){if(!D.stack)return!1;var C=D.stack.trim().split("\n");C.length&&C[0].endsWith("Error: "+D.message)&&C.shift();C.length&&C[C.length-1].includes("at window.onerror (")&&C.pop();if(!C.length)return!0;if(D.message==="Script error.")return C[0].includes("www.youtube.com")||C.length>=2&&C[0].startsWith("at new")&&C[1].startsWith("at window.onerror");if(D.message==="Unexpected token")return!0;D=_.U(C);for(C=D.next();!C.done;C=D.next())if(C=C.value,!(C.includes("<anonymous>")||
C.startsWith("load@")||C.startsWith("global code@")||C.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(D){return D.message==="Cannot read property 'experiments'"&&D.stack.includes("/s/player/")},
weight:500},{callback:function(D){return D.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(D){return D.stack.includes("/embed.js")?(D.params&&D.params&&(D.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.b("use_error_suppression"))var D=_.q6("SUPPRESS_CLIENT_ERRORS",!1);else{if(D=_.PT)D=/Chrome\/(\d+)/.exec(_.kj()),D=(D?parseFloat(D[1]):NaN)>=66;D=!(D||_.Au&&_.OG(65)||_.Di&&_.OG(12.1)||AC&&_.OG(79))}return D},
weight:500}]};var tq1={},NT1=(tq1.initialized={priority:10,callback:function(D){D.injector.addProvider({provide:hhN,useValue:D.root});D.injector.addProvider({provide:XeU,useValue:V5d});D.injector.addProvider({provide:cwp,useValue:EzP});var C={};D.injector.addProvider((C.provide=oUU,C.useFactory=function(X,c){return function(){P_W(X,c)}},C[kz]=[XeU,
cwp],C));D.injector.addProvider({provide:qx,useClass:qx})}},tq1);var YY3={},ygX=(YY3.initialized={priority:3,callback:function(){var D;if(D=Zto()){D=D.replace("/",".");var C=_.PE();C.set("tz",D);C.save();D=!0}else D=!1;D||(D=_.PE(),D.set("utco",-Math.floor((new Date).getTimezoneOffset())),D.save())}},YY3);var nzk={},wKU=(nzk.initialized={priority:10,callback:function(D){D.injector.resolve(qx).start();D=_.Th();var C=_.dq("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.dq("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.dq("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.dq("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.O3(_.sCd(),{mainAppWeb:Object.assign({},D,{pageType:C})});_.O3(eXo(),{mainAppWeb:Object.assign({},D,{pageType:C})});
_.O3(EYn(),{mainAppWeb:D});_.O3(tB5(),{mainAppWeb:D});hkg(function(){_.AT(EYn(),"FAILURE");_.AT(tB5(),"FAILURE")});
OkZ();AVJ();Nz5()}},nzk);var FCY={},ZCX=(FCY.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.sp("dl"),_.uP().processSignal("pcl");else{var D=function(){_.sp("dl");_.uP().processSignal("pcl");window.removeEventListener("load",D)};
window.addEventListener("load",D)}}},FCY);var GVY={},Vqo=(GVY.rendering={priority:0,callback:function(){var D=_.uP();D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor",5E3)}},GVY);var TT3=function(){};
_.h(TT3,bB);
TT3.prototype.resolveCommand=function(D,C){var X,c,W,p,g,a,O,P;return _.I(function(k){W=(X=_.r(D,_.Ied))==null?void 0:(c=X.dialog)==null?void 0:c.commentReplyDialogRenderer;if(!W)throw new _.Zf("No dialog in createCommentReplyDialogEndpoint");g=(p=C.form)==null?void 0:p.event;if(!g)throw new _.Zf("Event not passed in when resolving command");a=_.U(g.composedPath());for(O=a.next();!O.done;O=a.next())if(P=O.value,P.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||P.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return P.showReplyDialog(W),k.return();
_.t_(k)})};var FO=function(){};
_.h(FO,bB);FO.prototype.resolveCommand=function(D){var C,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return C=_.r(D,b0b),(X=C)!=null&&X.externalChannelId?g.yield((0,_.pCJ)("NSzT5"),2):g.return();c=_.HCt;p=(W=C.forceInstall)!=null?W:!1;return g.yield(c(C.externalChannelId,p),0)})};var Zr=function(D){this.JSC$19052_pageRequestService=D;this.JSC$19052_prefetchCoordinator=ToP()};
_.h(Zr,bB);Zr.prototype.resolveCommand=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1){X=_.r(D,Jyf);if((c=X)==null||!c.taskId)throw Error("Jj");W=X.taskId;_.KK(g,2);return g.yield(_.iFN(C.JSC$19052_pageRequestService,D,{},"").then(function(a){if(!a)throw Error("Kj");},function(a){throw Error("Lj`"+a);
}),4)}if(g.nextAddress!=2)return ziw(C.JSC$19052_prefetchCoordinator,W),_.SR(g,0);
p=_.Eu(g);ii(C.JSC$19052_prefetchCoordinator,W,p);_.t_(g)})};
Zr[kz]=[_.hT];var GB=function(D,C){this.innertubeTransportService=D;this.JSC$19056_commandHandler=C};
_.h(GB,bB);GB.prototype.resolveCommand=function(D){var C=this,X,c,W;return _.I(function(p){if(p.nextAddress==1){X=_.r(D,J$C);if(X.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||X.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")c=X.boolValue?2:1,_.em.getInstance().setState(c,!0,!0);return p.yield(_.Jl(C.innertubeTransportService,D),2)}W=p.yieldResult;JgX(C,W);_.t_(p)})};
var JgX=function(D,C){C.actions&&C.actions.forEach(function(X){D.JSC$19056_commandHandler.resolveCommand(X)})};
GB[kz]=[_.Bl,_.uX];var VH={},TB=(VH.addToPlaylistEndpoint=R7(eQ),VH.addToToastAction=R7(GM),VH.adsControlFlowOpportunityReceivedCommand=R7(SQ),VH.audioTrackSelectActionCommand=R7(z$),VH.backgroundAudioPlaybackCommand=R7(q7),VH.captionLanguageSelectActionCommand=R7(fD),VH.captionPickerEndpoint=R7(dC),VH.changeMiniAppPlayStateCommand=R7(Eb),VH.changeTimelyActionVisibilityCommand=R7(Z2),VH.channelCreationFormEndpoint=R7(b3),VH.clearLocationCommand=R7(LD),VH.clearUrlParamCommand=R7(t4),VH.copyLinkCommand=R7(WW),VH.copyTextEndpoint=
R7(A4),VH.createCommentReplyDialogEndpoint=tm3(TT3),VH.createPlaylistServiceEndpoint=R7(pY),VH.dismissDialogEndpoint=R7(Yk),VH.dismissPlayerOverlayCommand=R7(Rn),VH.entityUpdateCommand=R7($k),VH.feedbackEndpoint=R7(kk),VH.getAnswerCommand=R7(k4),VH.getPaymentsClientTokenCommand=R7(zM),VH.getTranscriptEndpoint=R7(VS),VH.googlePaymentBillingCommand=R7(jS),VH.googlePaymentPurchaseManagerCommand=R7(M9),VH.hideEngagementPanelEndpoint=R7(yY),VH.hideSheetCommand=R7(nD),VH.hideSnackbarCommand=R7(tE),VH.insertRichSectionCommand=
R7(KD),VH.listMutationCommand=R7(h4),VH.logGtmCommand=R7(rC),VH.notifyDropdownOptionSelectedCommand=R7(N7),VH.openAdAllowlistInstructionCommand=R7(_.Ub),VH.openOnePickAddVideoModalCommand=R7(SS),VH.persistSubscriptionsDisplayPreferencesCommand=R7(AE),VH.pingingEndpoint=R7(gC),VH.playlistEditEndpoint=R7(g_),VH.playlistVotingRefreshPopupCommand=R7(aM),VH.profileCardCommand=R7(pD),VH.refreshPanelEndpoint=R7(wC),VH.saveImageToDeviceEndpoint=R7(PQ),VH.scrollToSectionEndpoint=tm3(EXt),VH.seekToVideoTimestampCommand=
R7(l3),VH.selectCountryCommand=R7(PW),VH.setCookieCommand=R7($4),VH.setLocalStorageCommand=R7(Y4),VH.setPrefStorageEntryCommand=R7(ig),VH.setSettingEndpoint=R7(GB),VH.sfvAudioItemPlaybackCommand=R7(D2),VH.shareImageCommand=R7(ug),VH.sharingProviderDataCommand=R7(QS),VH.showAudioTrackPickerActionCommand=R7(CY),VH.showCaptionLanguageSelectActionCommand=R7(XS),VH.showCreatorChatbotEngagementPanelCommand=R7(FO),VH.showDialogCommand=R7(G$),VH.showEngagementPanelEndpoint=R7(VY),VH.showFullscreenPlayerControlsCommand=
R7(cW),VH.showSheetCommand=R7(T$),VH.showSnackbarCommand=R7(N9),VH.showTransientPlayerScrimOverlayCommand=R7(oM),VH.submitFormWithValidationFlowCommand=R7(BQ),VH.talkToRecsDeselectCommand=R7(yS),VH.talkToRecsNextCommand=R7(nY),VH.talkToRecsSelectCommand=R7(w_),VH.talkToRecsUpdateTextCommand=R7(FS),VH.toggleEngagementPanelCommand=R7(HQ),VH.undoFeedbackEndpoint=R7(QY),VH.updateEngagementPanelContentCommand=R7(J4),VH.updateUrlParamCommand=R7(TM),VH.updateVideoMetadataCommand=R7(JE),VH.verifyCommand=
R7(b3),VH.webNativeShareCommand=R7(BW),VH.webSubmitFormCommand=R7(IM),VH.ACK_PLAYABLES_3P_DATA_CONSENT=R7(bg),VH.CANCEL_NAVIGATION=R7(r_),VH.COPY_SHARE_URL=R7(KY),VH.MINI_APP_EXIT_DIALOG_SEEN=R7(x4),VH.MINI_APP_OPEN_URL=R7(hE),VH.REQUEST_MINI_APP_FULLSCREEN=R7(LY),VH.RESUME_NAVIGATION=R7(s5),VH.SHARE_PLAYABLE_WITH_HIGH_SCORE=R7(mu),VH.TELL_US_WHY=R7(u3),VH);_.b("web_enable_prefetching_videos_on_home")&&(TB.prefetchWatchCommand=R7(Zr),TB.registerTasksCommand=R7(ui));
_.b("enable_share_panel_navigation_logging_fix_on_web")&&(TB.shareEntityServiceEndpoint=R7(Fh));_.b("web_use_flow_state_manager")&&(TB.deleteFlowStepsCommand=R7(RF),TB.flowNextStepCommand=R7(lm),TB.flowPrevStepCommand=R7(D3),TB.getFlowCommand=R7(CD),TB.updateFlowCommand=R7(Xh));_.b("enable_ai_companion")&&(TB.updateConversationIdCommand=R7(Ob),TB.formDataDecoratorCommand=R7(In));var coM=Object.assign({},TB);var zGp={},jQk=(zGp.initialized={priority:10,callback:k6m},zGp);var Mqo={},qYG=(Mqo.initialized={callback:function(D){var C={},X={};oVj().install((C.document_disposed={callback:function(){_.b("finalize_all_timelines")?qM3():Kt();Eso("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.BNJ();var c=D.injector.resolve(qx);c.intervalId!==void 0&&(c.intervalId&&_.qX.cancelJob(c.intervalId),c.intervalId=void 0,--c.currentPartitionIndex,c=IUd(c),c>0&&VxN({mainAppWeb:_.Th(),survivalSli:{partitionMinute:c,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Nzx(Bj);bs!=null&&
bs.flush();oE&&oE.snapshotAndFlush();c=_.U(CMb.values());for(var W=c.next();!W.done;W=c.next())W.value.snapshotAndFlush()}},C),(X.flush_logs={callback:function(){_.je()}},X))}},Mqo);var ffN={},dG1=(ffN.rendered={priority:0,callback:function(){var D=new ghM;D.increment("STARTED");if(_.q6("LOGGED_IN")&&!_.q6("IS_DBSC",!1)&&_.q6("SERVER_VERSION")!=="test"&&_.q6("SERVER_VERSION")!=="dev"&&!J_g()&&!HKc()){D.increment("EXECUTING");var C=document.createElement("iframe");C.style.display="none";_.X7(C,2,_.Hv("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.q6("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(C);D.increment("DONE")}}},
ffN);var RGN={},lft=(RGN.rendered={callback:function(){ToP().resume()}},RGN);var DXt={acknowledgeChannelTouStrikeCommand:w$(sD),addToPlaylistServiceEndpoint:w$(EP),addToPlaylistEndpoint:w$(EP),addUpcomingEventReminderEndpoint:w$(fc),browseEndpoint:w$(xdt),channelCreationFormEndpoint:w$(BS),channelCreationServiceEndpoint:w$(bZ),claimLegacyYoutubeChannelEndpoint:w$(UD),clearSearchHistoryEndpoint:w$(Tq),clearWatchHistoryEndpoint:w$(HS),commerceActionCommand:FA(lD),createBackstagePostEndpoint:w$(Xq),createBroadcastCommand:w$(ds),createCommentEndpoint:w$(iZ),createCommentReplyEndpoint:w$(vS),
createLiveChatPollEndpoint:w$(Rx),createPlaylistServiceEndpoint:w$(tr),crossAccountChannelTransferEndpoint:w$(jI),deleteLiveChatMessageCommand:w$(lZ),deletePlaylistEndpoint:w$(Nb),deleteVideoEndpoint:w$(qb),dismissalEndpoint:w$(nc),feedbackEndpoint:w$(ws),flagEndpoint:w$(Zm),getAccountSwitcherEndpoint:w$(zq),verifyCommand:w$(Cc),getAccountsListInnertubeEndpoint:w$(q5),getCommentsFromInboxCommand:w$(Pu),getDownloadActionCommand:w$(Bu),getFlowCommand:FA(VQ),getKidsBlocklistPickerCommand:w$(Ge),getNotificationMenuEndpoint:w$(mdX),
getPaymentInstrumentsParamsCommand:w$(W$),getPaymentsClientTokenCommand:FA(lD),getPdgBuyFlowCommand:w$(mq),getReportFormEndpoint:w$(Vi),getSearchInVideoCommand:w$(Jr),getAnswerCommand:w$(Hu),getSurveyCommand:w$(Mb),getTranscriptEndpoint:w$(dZ),getPostVideoPreviewEndpoint:w$(ox),decorateMessageEndpoint:w$(cS),likeEndpoint:w$(rs),liveChatActionEndpoint:w$(cu),liveChatEndpoint:w$(X4),liveChatItemContextMenuEndpoint:w$(Dm),liveChatPurchaseMessageEndpoint:w$(oW),liveChatReplayEndpoint:w$(CP),manageLiveChatUserEndpoint:w$(pP),
metadataUpdateCommand:w$(OP),moderateLiveChatEndpoint:w$(Sa),modifyChannelNotificationPreferenceEndpoint:w$(k0),notificationOptOutEndpoint:w$(uD),openSuperStickerBuyFlowCommand:w$(Wu),performCommentActionEndpoint:w$(Aj),playlistEditEndpoint:w$(yi),playlistEditorEndpoint:w$(Y0),recordNotificationInteractionsEndpoint:w$(Qi),reelWatchEndpoint:w$(nP),refreshPanelEndpoint:w$(rZ),removeUpcomingEventReminderEndpoint:w$(UP),resolveLocationCommand:w$(IW),revealBusinessEmailCommand:w$(gs),searchEndpoint:w$(_.ei1),
sendLiveChatMessageEndpoint:w$(gZ),sendLiveChatVoteEndpoint:w$(aW),setSettingEndpoint:w$(Kc),shareEntityServiceEndpoint:FA(Lc),sharingProviderDataCommand:w$(ja),showEngagementPanelEndpoint:w$(KP),showMoreDrawerCommand:w$(x0),showSheetCommand:w$(LP),showDialogCommand:w$(hr),subscribeEndpoint:w$(hj),transcriptSubmitCaptionCorrectionCommand:w$(fP),undoFeedbackEndpoint:w$(Zx),unsubscribeEndpoint:w$(x8),updateBackstagePostEndpoint:w$(pc),updateCommentEndpoint:w$(uZ),updateCommentReplyEndpoint:w$(k8),updateCommentsSettingsEndpoint:w$(QQ),
updateCreatorChannelInnertubeCommand:w$(Ix),updateKidsBlacklistEndpoint:w$(Te),updateEngagementPanelContentCommand:w$(sP),updatePdgFeatureEnablementCommand:w$(ea),updatedMetadataEndpoint:w$(Ar),validateChannelHandleCommand:w$(OD),updateChannelPageSettingsEndpoint:w$(ax),verifyAgeEndpoint:w$(Gq),watchEndpoint:FA(d_),whitelistEditEndpoint:w$(RW),ypcCancelRecurrenceEndpoint:w$(Dr),ypcCompleteTransactionEndpoint:w$(CA),ypcFixInstrumentEndpoint:w$(c$),ypcGetCartEndpoint:w$(XO),ypcGetOffersEndpoint:w$(oD),
ypcHandleTransactionEndpoint:FA(pA),ypcLogWalletAnalyticDataEndpoint:w$(SW),ypcOffersEndpoint:w$(Uj),ypcPauseSubscriptionCommand:w$(gb),ypcRedeemCodeEndpoint:w$(aD),ypcResumeSubscriptionCommand:w$(ID),ypcUpdateFopEndpoint:w$(c$)},H$={},ClG=(H$.GET_ACCOUNT_MENU=w$(M5),H$.GET_NOTIFICATIONS_MENU=w$(shp),H$.GET_NOTIFICATIONS_INBOX=w$($0),H$.GET_UNSEEN_NOTIFICATION_COUNT=w$(iD),H$.GET_USER_MENTION_SUGGESTIONS=w$(WS),H$.LOAD_GUIDE=w$(Lvo),H$.SUBMIT_FEEDBACK=w$(Fq),H$),Jt={},Xzt=(Jt.CONTINUATION_REQUEST_TYPE_BROWSE=
w$(SI),Jt.CONTINUATION_REQUEST_TYPE_SEARCH=w$(ze),Jt.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=w$(M7),Jt.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=w$(Jj),Jt.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=w$($8),Jt.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=w$(PS),Jt.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=w$(F4),Jt.CONTINUATION_REQUEST_TYPE_GET_PANEL=w$(bD),Jt),cCG={player:FA(d_),watchNext:w$(jQ)},ohk={player:FA(d_),reelItemWatch:w$(nP),reelWatchSequence:w$(wZ)},WIo={watchEndpoint:FA(RM)},pzt=
{commandEndpointMap:DXt,signalEndpointMap:ClG,continuationEndpointMap:Xzt,watchEndpointMap:cCG,reelWatchEndpointMap:ohk,streamingEndpointMap:WIo};var SHY,UXp,ghp;_.aio=((UXp=(SHY=window).matchMedia)==null?void 0:(ghp=UXp.call(SHY,"(prefers-reduced-motion: reduce)"))==null?void 0:ghp.matches)||!document.startViewTransition;var Iik={},Oq6={disableAllTransitions:_.aio,ignoredErrors:(Iik.DOCUMENT_HIDDEN=!0,Iik.WINDOW_SIZE_CHANGED=!0,Iik.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,Iik),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var ACN=_.q8("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),$XG=function(D){var C=this;this.viewTransitionCoordinator=
D;this.disableTransitionsForUltraHigh=_.b("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=Plk();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.bX("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.b("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.b("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.b("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.bX("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.b("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.qX.addJob(function(){C.registerRootElement();if(C.isAnyTransitionEnabled){var X=
_.BK("web_page_transition_exit_ms"),c=_.BK("web_page_transition_wait_ms"),W=_.BK("web_page_transition_enter_fast_ms"),p=_.BK("web_page_transition_watch_exit_ms"),g=_.BK("web_page_transition_watch_wait_ms"),a=_.BK("web_page_transition_watch_enter_ms"),O=_.BK("web_page_transition_watch_next_exit_ms"),P=_.BK("web_page_transition_watch_next_wait_ms"),k=_.BK("web_page_transition_watch_next_enter_fast_ms"),u=_.BK("web_page_transition_enter_ms"),Q=_.BK("web_page_transition_watch_next_enter_ms");C.enableFasterTransitions&&
C.isUltraHighBucketDevice&&(u=W,Q=k);isNaN(X)&&isNaN(c)&&isNaN(u)&&isNaN(p)&&isNaN(g)&&isNaN(a)&&isNaN(O)&&isNaN(P)&&isNaN(Q)||!(X=wdn(ACN,X,c,u,p,g,a,O,P,Q))||(c=document.createElement("style"),c.textContent=iKZ(X),document.head.appendChild(c))}},8)},Plk=function(){var D=_.co.navigator.deviceMemory;
return D>=8||D===void 0?!0:!1};
$XG.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var D={};this.viewTransitionCoordinator.registerElement(document.documentElement,(D.slide="root-slide",D["lockup-to-watch"]="root-lockup-to-watch",D["learning-journey"]="root-learning-journey",D))}};
_.RZe=function(D,C){D.isLockupToWatchTransitionEnabled&&D.isLockupThumbnailRegistrationEnabled&&(D.registeredLockupThumbnail?D.lockupThumbnailRegisteredFromWatchEndpoint?_.fQ(new _.Zf("Lockup thumbnail registration order is incorrect.")):_.fQ(new _.Zf("Lockup thumbnail already registered.")):(D.registeredLockupThumbnail=C,_.vhk(D,C)))};
_.vhk=function(D,C){var X={};D.viewTransitionCoordinator.registerElement(C,(X["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",X),!0)};
$XG[kz]=[SOt];var upj={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 BaR=["videoPrimaryInfoRenderer","title"],bkW=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var iq1;iq1=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.kb1=_.F(function(D){D=_.Ro(D,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var C=D.data,X=D.playlistData,c=D.expanded,W=D.onExpandClick,p=D.isReadyToResume,g=function(){var k;return!((k=X())==null||!k.contents)},a=function(){var k=X();
return k&&k.totalVideos&&k.currentIndex!==void 0?k.currentIndex+1+" / "+k.totalVideos:""};
D=_.I_(function(){_.zB(_.iX().resolve(_.wB));return!1});
var O=_.I_(function(){g()&&W&&W()}),P={};
return _.A("ytd-miniplayer-info-bar",{class:_.g$("ytdMiniplayerInfoBarHost",(P.ytdMiniplayerInfoBarHasPlaylistData=g,P)),"on:click":O},_.A("div",{class:"ytdMiniplayerInfoBarContent"},_.A("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":D},_.A(_.QG,{text:function(){var k=C();var u=X();if(u==null?0:u.contents){var Q;k=(Q=_.lQd(u))==null?void 0:Q.title}else k=k==null?void 0:k.miniplayerTitle;return KLo(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.A("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.A(_.v,{cond:p,then:function(){return _.A(Lkq,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:iq1})}}),_.A("h1",null,_.A(_.QG,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var k=C();var u=X();k=p()?{simpleText:_.I7("CONTINUE_WATCHING",void 0,"Continue watching")}:(u==null?0:u.contents)?u.titleText:k==null?void 0:k.miniplayerSubtitle;return KLo(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.A(_.v,{cond:function(){return!!a()&&!p()},
then:function(){return _.A("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.A("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.A("span",null,a))}}))),_.A(_.v,{cond:g,
then:function(){return _.A("div",{class:"ytdMiniplayerInfoBarExpand"},_.A(_.FC,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(k){W&&(W(),k.stopPropagation())}}},
iconName:function(){return c()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"zg");var usG;usG=_.F(function(D){return _.A("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.A(_.FC,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:D.onTap}},
iconName:"yt-icons:close"}))},"Ag");
_.QpN=_.F(function(D){D=_.Ro(D,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var C=D.size,X=D.playabilityStatus,c=D.isDisabled,W=D.isPictureInPicture,p=_.aX("div");D=_.U(_.Li(void 0,void 0,"w4RAU"));var g=D.next().value,a=D.next().value;D=_.uu(_.WC);var O=!1,P=function(){return C().height<=0};
_.Jw(function(){var B=C(),K=P(),L=g();L&&!K&&L.setInternalSize(B.width,B.height)},"BHFc2b");
_.H2(function(){var B,K,L;return _.I(function(t){if(t.nextAddress==1){B=_.iX().resolve(_.wB);K=B.getPlayerElement();if(!B.isMiniplayerActive()||!K||!p.value)return t.return();K.appendTo(p.value);return t.yield(K.getPlayerPromise(),2)}L=t.yieldResult;W()||L.setSizeStyle(!1,!0);a(L);_.t_(t)})});
_.z3(function(){k()});
_.Jw(function(){var B=g();if(B)if(c()){var K=B.getPlayerState();(O=K===-1||K===1||K===3)&&B.pauseVideo()}else k()},"Invykd");
var k=function(){if(O){O=!1;var B;(B=g())==null||B.playVideo()}},u=_.I_(function(){_.zB(_.iX().resolve(_.wB))}),Q={};
return _.A("ytd-miniplayer-player-container",{class:_.g$("ytdMiniplayerPlayerContainerHost",(Q.ytdMiniplayerPlayerContainerHidden=P,Q.ytdMiniplayerPlayerContainerHostShortsPip=D,Q)),style:_.P0({width:function(){return C().width+"px"},
height:function(){return C().height+"px"}})},_.A("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:p}),_.A(_.v,{cond:function(){return!!X()&&!_.ThW(X())},
then:function(){return _.A(CGk,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var B;return((B=X())==null?void 0:B.errorScreen)||null},
status:function(){var B;return((B=X())==null?void 0:B.status)||null}})}}),_.A(_.v,{cond:c,
then:function(){return _.A("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":u},_.A(usG,{onTap:function(){_.iX().resolve(_.wB).close()}}))}}))},"Eg");_.BDU=_.F(function(D){var C=D.toastData;var X=_.aX("ytd-miniplayer-toast");D=_.U(_.d2(function(){return!!C()}));
var c=D.next().value,W=D.next().value;D=_.U(_.Li(!1,void 0,"BvfNQe"));var p=D.next().value,g=D.next().value,a=function(){var k;return _.Mh((k=C())==null?void 0:k.data.title)};
_.JU(function(){_.aZ.requestAvailability();C()&&W(!1)});
var O,P;_.Jw(function(){c()&&(_.lE(X.value,"iron-announce",{text:C().label+" "+a()}),O&&_.qX.cancelJob(O),O=_.qX.addLowPriorityJob(function(){g(!0)},2500))},"no1dZb");
_.Jw(function(){p()&&(P&&_.qX.cancelJob(P),P=_.qX.addLowPriorityJob(function(){W(!1);g(!1)},300))},"G3yPNe");
D={};return _.A("ytd-miniplayer-toast",{el:X,class:_.g$("ytdMiniplayerToastHost",(D.ytdMiniplayerToastOpening=function(){return c()},D.ytdMiniplayerToastClosing=function(){return p()},D))},_.A(_.v,{cond:function(){var k;
return(k=C())==null?void 0:k.data},
then:function(k){return _.A(nme,{className:"ytdMiniplayerToastThumbnail",data:k,width:78})}}),_.A("div",{class:"ytdMiniplayerToastInfo"},_.A("div",{class:"ytdMiniplayerToastLabel"},function(){var k;
return(k=C())==null?void 0:k.label}),_.A("div",{class:"ytdMiniplayerToastTitle"},a)))},"Hg");var YJJ;var wyd=null;var rCG=_.F(function(D){var C=D.progressState;var X=D.multiMarkersPlayerBarRenderer;var c=D.progressBarWidth;var W=function(){return VgR(X())},p=function(){return JVm(C())},g=function(){return c()*(C().playedTime/C().videoDuration)};
return _.A("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.A(_.Zh,{each:W},function(a,O){return _.A(bqN,{modifiedProps:p,chapters:W,index:O,playedProgressWidth:g,backgroundGradientPosition:function(){var P=p(),k=W(),u=O(),Q=g();return(P.playedTime-ys(_.r(k[u],Yw)))/P.playedTime*Q}})}))},"Ig"),bqN=_.F(function(D){var C=D.modifiedProps;
var X=D.chapters;var c=D.index;var W=D.playedProgressWidth;var p=D.backgroundGradientPosition;D={};D=_.g$("ytChapteredProgressBarChapteredPlayerBarChapter",(D.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return g().isScrubbing},D.ytChapteredProgressBarHoveredMacroMarker=function(){return g().scrubberHovering},D.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return g().videoPosition==="seen"},D));
var g=function(){return z1h(C(),X(),c())},a=function(){var O=C();
var P=X(),k=c();if(z1h(O,P,k).videoPosition!=="active")O=0;else{var u=ys(_.r(P[k],Yw));O=(O.playedTime-u)/((ys(_.r(P[k+1],Yw))||O.videoDuration)-u)}return O};
return _.A("div",{class:D,style:_.P0({width:function(){var O=C(),P=X(),k=c(),u=_.r(P[k],Yw);P=_.r(P[k+1],Yw);return(P?ys(P)-ys(u):O.videoDuration-ys(u))/O.videoDuration*100+"%"},
"background-color":function(){a:{var O=g();switch(O.videoPosition){case "pending":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:O=""}}return O},
"background-size":function(){return(jUZ(g())?W():"")+"px"},
"background-position-x":function(){return(jUZ(g())?p():"")+"px"}})},_.A("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var O=C(),P=X(),k=c();if(z1h(O,P,k).videoPosition==="seen")var u=0;else u=ys(_.r(P[k],Yw)),P=ys(_.r(P[k+1],Yw))||O.videoDuration,O=O.videoDuration*O.percentLoaded,u=P<=O?1:u>=O?0:(O-u)/(P-u);return"width: "+u*100+"%"}}),_.A("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.P0({width:function(){return a()*100+"%"},
"background-size":function(){return(jUZ(g(),a())?W():"")+"px"},
"background-position-x":function(){return(jUZ(g(),a())?p():"")+"px"}})}))},"Jg");var KIG=function(D,C){C=C===void 0?JTb:C;var X,c=[],W,p=!1;return function(){var g=_.MJ.apply(0,arguments);if(p&&X===this&&C(g,c))return W;W=D.apply(this,g);p=!0;X=this;c=g;return W}}(function(D){var C=D.heatMarkers,X=D.minHeightDp===void 0?0:D.minHeightDp,c=D.maxHeightDp===void 0?60:D.maxHeightDp;
var W=W===void 0?!1:W;var p=1E3/C.length;D=[];D.push({x:0,y:100});for(var g=0;g<C.length;g++){var a=void 0,O=((a=_.r(C[g],fQe))==null?void 0:a.heatMarkerIntensityScoreNormalized)||0;a=(g+.5)*p;O=100-_.N8(O*100,X/321*100,c/321*100);g!==0||W||D.push({x:0,y:O});D.push({x:a,y:O});g===C.length-1&&D.push({x:1E3,y:O})}D.push({x:1E3,y:100});C="";for(X=0;X<D.length;X++)W=D[X],X===0?W="M "+W.x.toFixed(1)+","+W.y.toFixed(1):(c=GQJ(D[X-1],D[X-2],W),p=GQJ(W,D[X-1],D[X+1],!0),W=" C "+(c.x.toFixed(1)+","+c.y.toFixed(1)+
" "+p.x.toFixed(1)+","+p.y.toFixed(1)+" "+W.x.toFixed(1)+","+W.y.toFixed(1))),C+=W;return C});var hxX=_.F(function(D){var C=D.progressBarProps;var X=D.config;var c={};D=_.g$("ytHeatSeekerHost",(c.ytHeatSeekerHighContrast=D.highContrast,c));var W=function(){return mSR(X().chapterData)};
return _.A("yt-progress-bar-heatseeker",{class:D,style:function(){var p;return"height: 320px; display: "+(C().isDragging&&((p=W())==null?0:p.heatMarkers)?"block":"none")}},_.A(_.v,{cond:W,
then:function(p){return _.A(_.v,{cond:function(){return p().heatMarkers},
then:function(){return _.A("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.A("path",{d:function(){return KIG(p())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Kg");var xXw=_.F(function(D){var C=D.progressBarProps;var X=D.config;D={};D=_.g$("ytProgressBarLineProgressBarLine",(D.ytProgressBarLineProgressBarLineRounded=function(){return X().rounded},D.ytProgressBarLineProgressBarLineBottomInset=function(){return X().position===2},D));
return _.A("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.A("div",{class:D},_.A("div",{class:"ytProgressBarLineProgressBarBackground"}),_.A("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+C().percentLoaded*100+"%"}}),_.A("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var c=C();return"width: "+(c.videoDuration?_.N8(c.hoveredTime/c.videoDuration,0,1):0)*100+"%"}}),_.A("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+xSZ(C())*100+"%"}})))},"Lg");
xXw.idomCompat=!0;var LIw=_.F(function(D){var C=D.progressBarProps;var X=D.playheadData;var c=D.interpolateDotPosition;var W=D.hidePlayhead;D={};var p=_.g$("ytProgressBarPlayheadProgressBarPlayheadDot",(D.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return C().isDragging},D.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!C().isDragging&&W()},D));
return _.A("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.P0({"margin-left":function(){return LLj(C())*100+"%"},
transform:function(){return"translateX(-"+(c()?LLj(C())*12:6)+"px)"}})},_.A(_.v,{cond:function(){var g;
return(g=_.di(X)())==null?void 0:g.playheadImage},
then:function(g){var a={};return _.A("div",{class:_.g$("ytProgressBarPlayheadProgressBarPlayheadCustom",(a.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return C().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!C().isDragging&&W()},a)),
style:_.P0({"transform-origin":function(){return(c()?LLj(C())*20:10)+"px center"}})},_.A(_.M_,{data:g,
alt:"","aria-hidden":"true"}))},
else:function(){return _.A("div",{class:p,style:_.P0({"transform-origin":function(){return(c()?LLj(C())*12:6)+"px center"}})})}}))},"Mg");
LIw.idomCompat=!0;var jW=function(D,C,X,c,W,p){this.getProgressBarRect=D;this.updateProgressBarRect=C;this.getFilmstripYPosition=X;this.setFineScrubbingDraggedTime=c;this.updateFilmStripDraggedYDistance=W;this.resetFilmStripYOffset=p;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Al(this.onThrottledSeek,100,this)},spN=function(D,C,X){return function(c){D.handleClick(c,C(),X())}},Eho=function(D,C){return function(X){mXk(D,
X,ex6(X),C())}},tRk=function(D,C){return function(X){mXk(D,X,{x:X.clientX,
y:X.clientY},C())}},YHY=function(D,C,X){return function(c){var W=C(),p=X();
NDG(D,c,ex6(c),W,p,!0);if(p.onTouchMove)p.onTouchMove(W)}},nhN=function(D,C,X){return function(c){yCt(D,c,C(),X())}},wz3=function(D,C){return function(){D.handleMouseLeave(C())}},FIG=function(D,C,X){return function(){var c=C(),W=X();
MT(D,c,W);if(W.onTouchEnd)W.onTouchEnd(c)}},ZqG=function(D,C,X){return function(){var c=C(),W=X();
MT(D,c,W);if(W.onTouchEnd)W.onTouchEnd(c)}},GbP=function(D,C,X){return function(){MT(D,C(),X())}},VRU=function(D){return function(C){if(C.keyCode===39||C.keyCode===38){var X,c;
(X=D())==null||(c=X.playerApi)==null||c.seekBy(5,void 0,void 0,72)}else if(C.keyCode===37||C.keyCode===40){var W,p;(W=D())==null||(p=W.playerApi)==null||p.seekBy(-5,void 0,void 0,71)}}},TDG=function(D,C,X){return function(c){!X().disableScrubbing&&D.startPosition&&yCt(D,c,C(),X())}},Hqt=function(D,C,X){return function(){if(!X().disableScrubbing)if(D.startPosition){var c=C(),W=X();
MT(D,C(),X());if(W.onTouchEnd)W.onTouchEnd(c)}else C().setState({isDragging:!1})}},ex6=function(D){D=D.touches[0];
return{x:D.clientX,y:D.clientY}},yCt=function(D,C,X,c){if(C.buttons!==1){if(C.movementX||C.movementY)C.preventDefault(),C.stopPropagation(),D=JCt(D,X,C.clientX),X.setState({isHovering:!0,
hoveredTime:D*X.videoDuration})}else zxG(X),NDG(D,C,{x:C.clientX,y:C.clientY},X,c,!1)};
jW.prototype.handleMouseLeave=function(D){zxG(D)};
var zxG=function(D){D.isHovering&&D.setState({isHovering:!1,hoveredTime:0})},mXk=function(D,C,X,c){D.startPosition||(D.startPosition=X,D.updateProgressBarRect(),D.controlsWereVisibleBeforeDragging=c.controlsVisible,C.stopPropagation(),_.b("medium_progress_bar_modification")||C.preventDefault())},NDG=function(D,C,X,c,W,p){if(D.startPosition)if(p&&W.isInlinePlayback&&D.startPosition&&!D.hasDraggedTheMinimumDistance&&Math.abs(X.y-D.startPosition.y)>Math.abs(X.x-D.startPosition.x))MT(D,c,W);
else if(C.preventDefault(),C.stopPropagation(),c.videoDuration&&(D.startPosition&&!D.hasDraggedTheMinimumDistance&&(D.hasDraggedTheMinimumDistance=Math.abs(X.x-D.startPosition.x)>=1),W.enableFineScrubbing&&(D.startPosition&&(D.isDraggedForFineScrubbing=-(X.y-D.startPosition.y)>=60),!D.startPosition||X.y>=D.startPosition.y||(c.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Mg3(c.draggedTime,c,W.chapterData)}),D.setFineScrubbingDraggedTime(c.draggedTime),D.updateFilmStripDraggedYDistance(D.startPosition.y,
X.y,c))),D.hasDraggedTheMinimumDistance)){C=JCt(D,c,X.x);if(D.isDraggedForFineScrubbing){var g;(g=c.playerApi)==null||g.pauseVideo();c.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:c.draggedTime,filmStripXDistance:Mg3(C*c.videoDuration,c,W.chapterData)})}W.enableFineScrubbing&&(!W.enableFineScrubbing||D.getFilmstripYPosition(c)<68)||c.setState({draggedTime:C*c.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:D.controlsWereVisibleBeforeDragging});var a;(a=
W.cancelAutohideControlsFn)==null||a.call(W)}},MT=function(D,C,X){var c=X.enableFineScrubbing&&C.fineScrubbingActiveState!=="off";
if(C.isDragging||c){c={isDragging:!1,playedTime:C.draggedTime,controlsVisible:D.controlsWereVisibleBeforeDragging};X.enableFineScrubbing&&C.fineScrubbingActiveState!=="on"&&(D.resetFilmStripYOffset(),c.fineScrubbingActiveState="off");var W=W===void 0?wyd:W;var p=_.LN(0);if(p&&W){var g=Math.round(C.playedTime*1E3),a=Math.round(C.draggedTime*1E3);g>2147483647||a>2147483647||_.JZ(p,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(g),endMediaTimeMs:String(a),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}C.setState(c);
D.seekThrottle.fire(C.draggedTime,C,7);_.b("mweb_new_progress_bar_play_on_seek")&&D.resumeVideo(C);X.unmuteOnSeek&&(X=C.playerApi,C.volumeMuted&&(X==null||X.unMute()))}else C.setState({controlsVisible:!C.controlsVisible}),(p=X.triggerAutohideControlsAfterDelayFn)==null||p.call(X);D.startPosition=null;D.hasDraggedTheMinimumDistance=!1;D.isDraggedForFineScrubbing=!1;D.controlsWereVisibleBeforeDragging=!1};
jW.prototype.handleClick=function(D,C,X){this.updateProgressBarRect();D.stopPropagation();D=JCt(this,C,D.clientX)*C.videoDuration;C.setState({playedTime:D});if(C.playerState!==2){var c;(c=X.triggerAutohideControlsAfterDelayFn)==null||c.call(X)}this.seekThrottle.fire(D,C,7)};
var JCt=function(D,C,X){D=D.getProgressBarRect(C);return _.N8(0,(X-D.left)/D.width,1)};
jW.prototype.resumeVideo=function(D){if(D.draggedTime<D.videoDuration){var C;(C=D.playerApi)==null||C.playVideo()}};
jW.prototype.onThrottledSeek=function(D,C,X){if(C=C.playerApi){var c;if((c=C.getVideoData())==null?0:c.isLive)c=this.getProgressState(C),D+=(c==null?void 0:c.seekableStart)||0;C.seekTo(D,void 0,void 0,void 0,X)}};
jW.prototype.getProgressState=function(D){var C=D==null?void 0:D.getPresentingPlayerType();return D==null?void 0:D.getProgressState(C)};var qHG,MR1,fi6,RxU,jpP,lip,DNG,CwN,XLG;qHG=_.F(function(D){var C=D.progressBarProps;var X=D.config;var c=D.progressBarWidthPx;var W=D.chapterData;var p=lWh(C,function(){return X().isShortsPage}),g=function(){return!C().isHovering&&!X().isShortsPage};
D={};var a=_.g$("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(D.ytPlayerStoryboardHostMwebShorts=function(){return X().isShortsPage&&!1},D));
return _.A("yt-player-storyboard",null,_.A(_.v,{cond:function(){return C().isDragging||C().isHovering},
then:function(){return _.A(_.v,{cond:p,then:function(O){return _.A(_.v,{cond:g,then:function(){return _.A("div",{class:a,"aria-hidden":"true"},_.A(jpP,{props:C,config:X,isBigboard:!0,chapterData:W}))},
else:function(){return _.A(MR1,{props:C,frame:O,config:X,progressBarWidthPx:c,chapterData:W})}})}})}}))},"Ng");
_.dXo=_.F(function(D){var C=D.progressBarProps;var X=lWh(C,D.isShortsPage);return _.A("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.A(_.v,{cond:function(){return C().isDragging||C().isHovering},
then:function(){return _.A(_.v,{cond:X,then:function(c){return _.A(fi6,{frame:c,props:C,isBigboard:!0})}})}}))},"Og");
MR1=_.F(function(D){var C=D.props;var X=D.frame;var c=D.config;var W=D.progressBarWidthPx;D=D.chapterData;var p={};p=_.g$("ytPlayerStoryboardHost",(p.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},p.ytPlayerStoryboardHostInlinePlayer=function(){return c().isInlinePlayer},p.ytPlayerStoryboardHostFadeIn=function(){return c().useFadeInAnimation},p));
return _.A("div",{class:p,"aria-hidden":"true",style:function(){var g=C(),a=qJj(X()),O=W();g=fW3(g)/g.videoDuration;var P=O*g,k=a/2+6;a=O-(a/2+6);return"left: "+(P<=k?k/O*100:P>=a?a/O*100:g*100)+"%"}},_.A(_.v,{cond:function(){var g=C();
return!(c().isShortsPage&&g.videoDuration<15)},
then:function(){return _.A(fi6,{frame:X,props:C,isBigboard:!1})}}),_.A(jpP,{props:C,
config:c,isBigboard:!1,chapterData:D}))},"Pg");
fi6=_.F(function(D){var C=D.frame;var X=D.props;var c=D.isBigboard;var W=function(){var a,O;return(O=(a=X().playerApi)==null?void 0:a.getVideoContentRect())!=null?O:{width:0,height:0}},p=function(){return qJj(C())},g=function(){var a=C();
return a?a.height/a.rows:0};
D={};D=_.g$((D.ytPlayerStoryboardBigboardImageWrapper=c,D.ytPlayerStoryboardStoryboardImageWrapper=function(){return!c()},D));
return _.A("div",{class:D,style:function(){return"width: "+(c()?W().width:p())+"px; height: "+(c()?W().height:g())+"px;"}},_.A(RxU,{frame:C,
storyboardWidth:p,storyboardHeight:g,storyboardScale:function(){return(c()?W().width:p())/p()}}))},"Qg");
RxU=_.F(function(D){var C=D.frame;var X=D.storyboardWidth;var c=D.storyboardHeight;var W=D.storyboardScale;var p=function(){var g=C().row,a=C().column,O=X(),P=c(),k=W();return{left:-a*O*k,top:-g*P*k}};
return _.A("img",{src:function(){return C().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+p().left+"px; top: "+p().top+"px; width: "+C().width*W()+"px; height: "+C().height*W()+"px;"}})},"Rg");
jpP=_.F(function(D){var C=D.props;var X=D.config;var c=D.isBigboard;var W=D.chapterData;D={};D=_.g$("ytPlayerStoryboardMetadata",(D.ytPlayerStoryboardMetadataBigboard=c,D));return _.A("div",{class:D},_.A(_.v,{cond:c,then:function(){return _.A(_.kQ,null,_.A(lip,{props:C,config:X}),_.A(_.v,{cond:function(){a:{var p=C();var g=X(),a=W(),O;if((g==null?0:g.activeChapter)&&((O=_.r(g==null?void 0:g.activeChapter,Yw))==null?0:O.title))p=!0;else{g=_.U(e1m(a));for(g=g.next();!g.done;g=g.next()){p=(g=_.r(g.value,
RNN))&&dSh(p,g);break a}p=!1}}return p},
then:function(){return _.A(DNG,{props:C,config:X,isBigboard:!0,chapterData:W})}}))},
else:function(){return _.A(_.kQ,null,_.A(DNG,{props:C,config:X,isBigboard:!0,chapterData:W}),_.A(lip,{props:C,config:X}))}}))},"Sg");
lip=_.F(function(D){var C=D.props;var X=D.config;D={};D=_.g$("ytPlayerStoryboardTimestamp",(D.ytPlayerStoryboardTimestampShorts=function(){return X().isShortsPage},D.ytPlayerStoryboardTimestampIsHovering=function(){return C().isHovering||X().isShortsPage&&!0},D));
return _.A("div",{class:D},_.A(_.kQ,null,function(){return _.R1o(fW3(C()))}))},"Tg");
DNG=_.F(function(D){var C=D.props;var X=D.config;var c=D.isBigboard;var W=D.chapterData;D={};c=_.g$("ytPlayerStoryboardTitle",(D.ytPlayerStoryboardTitleBigboard=c,D));return _.A("div",{class:c},_.A(_.v,{cond:function(){return!X().isShortsPage},
then:function(){return _.A(CwN,{props:C,activeChapter:function(){return X().activeChapter},
chapterData:W})}}))},"Ug");
CwN=_.F(function(D){var C=D.props;var X=D.activeChapter;var c=D.chapterData;return _.A(_.kQ,null,_.A(_.Zh,{each:function(){return e1m(c())},
keyBy:"INDEX"},function(W){return _.A(_.kQ,null,_.A(_.v,{cond:function(){return _.r(W(),RNN)&&dSh(C(),_.r(W(),RNN))},
then:function(){return _.A(XLG,{timedMarker:function(){return _.r(W(),RNN)}})}}))}),_.A(_.v,{cond:function(){var W;
return X()&&((W=_.r(X(),Yw))==null?void 0:W.title)},
then:function(W){return _.A(_.QG,{text:W,noPreWrap:!0})}}))},"Vg");
XLG=_.F(function(D){var C=D.timedMarker;return _.A(_.kQ,null,_.A("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.A(_.$_,{icon:function(){return C().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.A(_.QG,{text:function(){return C().label},
noPreWrap:!0}))},"Wg");_.cYY=_.F(function(D){var C=D.progressBarProps;var X=D.playheadData;var c=D.config;D=_.aX("yt-progress-bar");var W=_.aX("div"),p=_.aX("div"),g=_.U(_.Li({width:0,left:0},void 0,"XjZjde")),a=g.next().value,O=g.next().value,P=function(){p.value&&O(p.value.getBoundingClientRect())},k=function(){a().width<=0&&P();
return a()};
_.vf("resize",P);var u=new jW(k,function(){},function(){return 0},function(){},function(){},function(){}),Q=function(){return C()};
g=_.U(_.Li(!1,void 0,"uZlOJc"));var B=g.next().value,K=g.next().value;g=_.I_(function(){K(!0);c().position===2?setTimeout(function(){P()},100):P()});
var L=_.I_(function(){K(!1);wz3(u,Q)()}),t=_.I_(function(GJ){(c().doSeekOnClick||_.b("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&GJ instanceof PointerEvent&&GJ.pointerType==="mouse")&&spN(u,Q,c)(GJ);
return!1}),Y=_.I_(function(GJ){Eho(u,Q)(GJ);
return!1}),y=_.I_(function(GJ){tRk(u,Q)(GJ);
return!1}),J=_.I_(function(GJ){YHY(u,Q,c)(GJ);
return!1}),T=_.I_(function(GJ){nhN(u,Q,c)(GJ);
return!1}),H=_.I_(function(){FIG(u,Q,c)();
return!1}),q=_.I_(function(){ZqG(u,Q,c)();
return!1}),R=_.I_(function(){GbP(u,Q,c)();
return!1}),ph=_.I_(function(GJ){VRU(Q)(GJ);
return!1});
_.vf("mousemove",TDG(u,Q,c));_.vf("mouseup",Hqt(u,Q,c));_.JU(function(){FLZ(W.value);K(!1);P();Hqt(u,Q,c)()});
var Om={};Om=_.g$("ytPlayerProgressBarHost",function(){return c().className},(Om.ytPlayerProgressBarHostReadOnly=function(){return c().disableScrubbing},Om.ytPlayerProgressBarHostHidden=function(){return c().hideProgressBar&&!B()},Om.ytPlayerProgressBarHostLowerPlayer=function(){return c().position===0},Om.ytPlayerProgressBarHostBottomEdge=function(){return c().position===1},Om.ytPlayerProgressBarHostBottomInset=function(){return c().position===2},Om.ytPlayerProgressBarHostCustom=function(){return c().position===
3},Om));
var xj={},Bo=_.g$("ytPlayerProgressBarBackground",(xj.ytPlayerProgressBarBackgroundHide=function(){return c().position===2&&!B()&&!C().isDragging},xj));
xj={};xj=_.g$("ytPlayerProgressBarDragContainer",(xj.ytPlayerProgressBarDragContainerBottomEdge=function(){return c().position===1},xj));
var r5={};r5=_.g$("ytPlayerProgressBarProgressBar",(r5.ytPlayerProgressBarProgressBarInset=function(){return c().position===2},r5.ytPlayerProgressBarProgressBarInsetMinimized=function(){return c().position===2&&!B()&&!C().isDragging},r5));
var Fd=function(){return Math.floor(xSZ(C())*100)};
return _.A("yt-progress-bar",{el:D,class:Om},_.A(_.v,{cond:function(){return c().position===2},
then:function(){return _.A("div",{class:Bo})}}),_.A("div",{el:W,
"on:click":t,"on:touchstart":Y,"on:touchmove":J,"on:mouseenter":g,"on:mousedown":y,"on:mouseleave":L,"on:mousemove":T,"on:mouseup":q,"on:touchend":H,"on:touchcancel":R,"on:keydown":ph,class:xj,role:"slider","aria-valuenow":Fd,"aria-valuetext":function(){return Fd()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return C().videoDuration},
draggable:_.b("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.I7("SEEK_SLIDER")},_.A("div",{el:p,class:r5},_.A(hxX,{progressBarProps:C,config:c,highContrast:function(){return!!c().isInlinePlayback}}),_.A(_.v,{cond:function(){return c().chapterData&&EDF(c().chapterData)},
then:function(){return _.A(rCG,{progressState:C,multiMarkersPlayerBarRenderer:function(){return c().chapterData},
progressBarWidth:function(){return a().width}})},
else:function(){return _.A(xXw,{progressBarProps:C,config:c})}}),_.A(LIw,{progressBarProps:C,
playheadData:X,interpolateDotPosition:function(){return c().position!==2},
hidePlayhead:function(){return c().playheadDotBehavior===1&&!B()}}))),_.A(qHG,{progressBarProps:C,
config:function(){return{activeChapter:Hkm(C(),c().chapterData),getProgressBarWidthPx:function(){return k().width},
isShortsPage:!!c().isShortsPage,isInlinePlayer:!!c().isInlinePlayback,useFadeInAnimation:!!c().isInlinePlayback}},
progressBarWidthPx:function(){return a().width},
chapterData:function(){return c().chapterData}}))},"Xg");
_.cYY.idomCompat=!0;Object.assign({},_.tgd(),{setState:function(){},
domMeasurements:{},appApi:_.h1t(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var olX;
_.WMp=_.F(function(){var D,C=(D=_.nn(Dtm().playerApi))!=null?D:void 0;D=_.U(_.Li(!1,void 0,"Z9NQ1b"));var X=D.next().value,c=D.next().value;D=_.U(_.Li(!1,void 0,"HoVJXe"));var W=D.next().value,p=D.next().value;D=_.U(_.Li(!1,void 0,"DWCY3"));var g=D.next().value,a=D.next().value;D=_.U(_.Li(!1,void 0,"g4C2Zd"));var O=D.next().value,P=D.next().value;D=_.U(_.Li(0,void 0,"lmVfFb"));var k=D.next().value,u=D.next().value;D=_.U(_.Li(0,void 0,"mFLbzb"));var Q=D.next().value,B=D.next().value;D=_.U(_.Li(!1,void 0,
"hQN4Wb"));var K=D.next().value,L=D.next().value;D=_.U(_.Li(0,void 0,"WWU0fb"));var t=D.next().value,Y=D.next().value;D=_.U(_.Li(0,void 0,"MJ7LMd"));var y=D.next().value,J=D.next().value;D=_.U(_.Li("",void 0,"hnomOe"));var T=D.next().value,H=D.next().value;D=_.U(_.Li(-1,void 0,"ARe3pf"));var q=D.next().value,R=D.next().value,ph=_.tw(function(){var Om={controlsVisible:X(),isOverlayHidden:W(),shouldWaitToHideControls:g(),isDragging:O(),isHovering:K(),videoDuration:t(),playedTime:y(),videoId:T(),draggedTime:Q(),
hoveredTime:k(),playerState:q()};return Object.assign({},_.tgd(),Om,{domMeasurements:{},setState:function(xj){xj.controlsVisible!==void 0&&c(xj.controlsVisible);xj.isOverlayHidden!==void 0&&p(xj.isOverlayHidden);xj.shouldWaitToHideControls!==void 0&&a(xj.shouldWaitToHideControls);xj.isDragging!==void 0&&P(xj.isDragging);xj.isHovering!==void 0&&L(xj.isHovering);xj.draggedTime!==void 0&&B(xj.draggedTime);xj.hoveredTime!==void 0&&u(xj.hoveredTime);xj.videoDuration!==void 0&&Y(xj.videoDuration);xj.playedTime!==
void 0&&J(xj.playedTime);xj.videoId!==void 0&&H(xj.videoId);xj.playerState!==void 0&&R(xj.playerState)},
appApi:_.h1t(),playerApi:C})},void 0,"Au4PIf");
_.H2(function(){C==null||C.addEventListener("onVideoProgress",nDF(ph));C==null||C.addEventListener("onVideoDataChange",yVh(ph));C==null||C.addEventListener("onStateChange",NaJ(ph))});
_.z3(function(){if(C==null?0:C.isReady())C==null||C.removeEventListener("onVideoProgress",nDF(ph)),C==null||C.removeEventListener("onVideoDataChange",yVh(ph)),C==null||C.removeEventListener("onStateChange",NaJ(ph))});
return _.A("desktop-shorts-player-controls",null,_.A(olX,{playerControlsProps:ph}))},"Zg");
olX=_.F(function(D){var C=D.playerControlsProps;return _.A("div",{class:"desktopShortsPlayerControlsHost"},_.A(_.cYY,{progressBarProps:C,config:function(){return{isShortsPage:!0,hideProgressBar:C().videoDuration<30&&C().playerState!==2&&!C().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"$g");_.pLU=_.F(function(D){function C(Om){Om!==0||u()?Om>50&&(u()||!B())?(Q(!1),K(!0)):Om<=50&&(u()||B())&&(Q(!1),K(!1)):Q(!0)}
function X(Om,xj){var Bo;return _.I(function(r5){if(r5.nextAddress==1)return r5.yield(_.ON(),2);Bo=r5.yieldResult;xj&&Bo?(Bo.unMute(!0),Om&&(X5d(Om,Bo.getVolume()),t(Bo.getVolume()))):Bo&&(Bo.mute(!0),Om&&X5d(Om,0));_.t_(r5)})}
function c(Om){var xj,Bo;return _.I(function(r5){if(r5.nextAddress==1)return r5.yield(_.ON(),2);xj=r5.yieldResult;Bo=50;xj&&(Bo=xj.getVolume(),xj.isMuted()?X5d(Om,0):X5d(Om,Bo));t(Bo);_.t_(r5)})}
var W=D.orientation;D=_.aX("desktop-shorts-volume-controls");var p=_.aX("button"),g=_.IX("input"),a=_.U(_.Li(!1,void 0,"RuD0I")),O=a.next().value,P=a.next().value,k=_.U(_.Li(!1,void 0,"YbWwwb"));a=k.next().value;k=k.next().value;var u=a,Q=k;k=_.U(_.Li(!0,void 0,"F7Esub"));a=k.next().value;k=k.next().value;var B=a,K=k;a=_.U(_.Li(50,void 0,"QFGbod"));var L=a.next().value,t=a.next().value;a=_.tw(function(){var Om=u();return _.b("web_shorts_keyboard_enable_mute_shortcut")?Om?_.I7("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.I7("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Om?_.I7("UNMUTE_VOLUME",void 0,"Unmute"):_.I7("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
k=_.tw(function(){var Om=u(),xj=B();return{sources:[{clientResource:{imageName:Om?_.b("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":xj?_.b("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.b("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var Y=_.tw(function(){var Om=L();return u()?Om+"% volume muted":Om+"% volume"},void 0,"QaT2u"),y=_.tw(function(){return W()==="vertical_down"},void 0,"LkJ9ac");
_.JU(function(){function Om(){P(!0)}
function xj(){P(!1)}
g&&g.value&&(g.value.addEventListener("focus",Om),g.value.addEventListener("focusout",xj),c(g.value).then(function(){C(Number(ciZ(g.value)))}));
p&&p.value&&(p.value.addEventListener("focus",Om),p.value.addEventListener("focusout",xj));_.z3(function(){var Bo;g==null||(Bo=g.value)==null||Bo.removeEventListener("focus",Om);var r5;g==null||(r5=g.value)==null||r5.removeEventListener("focusout",xj);var Fd;p==null||(Fd=p.value)==null||Fd.removeEventListener("focus",Om);var GJ;p==null||(GJ=p.value)==null||GJ.removeEventListener("focusout",xj)})});
var J=_.I_(function(){if(g&&g.value){var Om=Number(ciZ(g.value));C0t(Om);t(Om);g.value.style.setProperty("--gradient-percent",Om+"%");C(Om)}return!1}),T=_.I_(function(){g&&g.value&&(X(g.value,u()),Q(!u()));
return!1}),H={},q={},R={},ph={};
return _.A("desktop-shorts-volume-controls",{"on:pointerleave":_.I_(function(){P(!1)}),
"on:pointerenter":_.I_(function(){P(!0)}),
class:_.g$("ytdDesktopShortsVolumeControlsHost",(H.ytdDesktopShortsVolumeControlsHostVertical=y,H.ytdDesktopShortsVolumeControlsHostModern=_.b("web_shorts_modern_controls"),H.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.b("web_shorts_modern_controls")&&O()},H)),
el:D},_.A(_.v,{cond:function(){return!y()},
then:function(){var Om={};return _.A("div",{class:_.g$("ytdDesktopShortsVolumeControlsBackgroundScrim",(Om.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=O,Om.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.b("web_shorts_modern_controls")&&O()},Om))})}}),_.A("div",{class:_.g$((q.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=y,q))},_.A("button",{"aria-label":a,
title:a,el:p,"on:click":T,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},k?_.A(_.M_,{data:k,alt:a,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.A("div",{class:_.g$("ytdDesktopShortsVolumeControlsSliderContainer",(R.ytdDesktopShortsVolumeControlsSliderContainerExpanded=O,R.ytdDesktopShortsVolumeControlsSliderContainerVertical=y,R.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=y,R.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return O()&&
y()},R))},_.A("input",{"aria-label":_.I7("VOLUME"),
title:_.I7("VOLUME"),el:g,"on:input":J,type:"range",class:_.g$("ytdDesktopShortsVolumeControlsNativeSlider",(ph.ytdDesktopShortsVolumeControlsNativeSliderModern=_.b("web_shorts_modern_controls"),ph)),id:"volume-input",role:"slider","aria-valuenow":L,"aria-valuetext":Y,"aria-valuemin":0,"aria-valuemax":100})))},"ah");var SUw=_.F(function(D){var C=D.data;var X=D.overlayDensity;D={};return _.A("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.A(_.BX,{data:function(){return C().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(c){var W=c.data;
return _.A(_.Og,{data:function(){return(X==null?void 0:X())===1?Object.assign({},W(),{avatar:{avatarViewModel:Object.assign({},_.r(W().avatar,_.yX),{avatarImageSize:"AVATAR_SIZE_M"})}}):W()}})}}),_.A(_.BX,{data:function(){return C().avatarStackViewModel}},{avatarStackViewModel:function(c){return _.A(_.Ae,{data:c.data})}}),_.A(_.QG,{className:_.g$("ytReelChannelBarViewModelChannelName",(D.ytReelChannelBarViewModelChannelNameLarge=function(){return(X==null?void 0:X())===1},D)),
text:function(){return C().channelName},
linkInheritColor:!0,userInput:!0}),_.A("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.A(_.BX,{data:function(){return C().subscribeButtonViewModel}},{subscribeButtonViewModel:function(c){var W=c.data;
return _.A(_.I4,{data:function(){return(X==null?void 0:X())===1?Object.assign({},W(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},W().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):W()},
isOverlay:!1})},
buttonViewModel:_.Ze})),_.A("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.A(_.BX,{data:function(){var c,W;return(W=_.r((c=C())==null?void 0:c.sponsorButtonViewModel,aYb))==null?void 0:W.sponsorButton}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"bh");var UNt=_.F(function(D){var C=function(){var W;return((W=D.overlayDensity)==null?void 0:W.call(D))===1},X=function(){return C()?22:16},c={};
return _.A("yt-reel-multi-format-link-view-model",{class:_.g$("ytReelMultiFormatLinkViewModelHost",(c.ytReelMultiFormatLinkViewModelHostTall=!0,c.ytReelMultiFormatLinkViewModelHostLarge=function(){return C()},c))},_.A(_.ty,{ariaLabel:function(){return D.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return D.data().command}},_.A("h3",{class:function(){return C()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.A(_.v,{cond:function(){return D.data().icon},
then:function(W){return _.A(_.M_,{data:W,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:X})}}),_.A(_.QG,{text:function(){return D.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ch");
UNt.idomCompat=!0;var glt=_.F(function(D){var C=D.data;var X=D.overlayDensity;var c=D.extractOverlay;var W=_.aX("yt-shorts-suggested-action-view-model");D=_.U(_.Li(!1,void 0,"S60Hzc"));var p=D.next().value,g=D.next().value;D=_.U(_.Li(!1,void 0,"O76chf"));var a=D.next().value,O=D.next().value,P=function(){return C().isMultiLineSa},k=_.ku(Bsh,function(){var H,q;
return(q=(H=C().toggleableContent)==null?void 0:H.entityKey)!=null?q:""}),u=function(){var H,q,R;
return(R=C().toggleableContent)!=null&&R.entityKey?(q=(H=k())==null?void 0:H.value)!=null?q:!1:!1},Q=function(){var H,q,R,ph,Om,xj,Bo,r5,Fd,GJ,jZ;
return C().toggleableContent?u()?(H=C().toggleableContent)==null?void 0:H.toggledData:(q=C().toggleableContent)==null?void 0:q.untoggledData:{primaryText:(r5=(R=C().defaultContent)==null?void 0:R.primaryText)!=null?r5:C().text,secondaryText:(ph=C().defaultContent)==null?void 0:ph.secondaryText,onTapCommand:(Fd=(Om=C().defaultContent)==null?void 0:Om.onTapCommand)!=null?Fd:C().onTapCommand,icon:(GJ=(xj=C().defaultContent)==null?void 0:xj.icon)!=null?GJ:C().icon,image:(jZ=(Bo=C().defaultContent)==null?
void 0:Bo.image)!=null?jZ:C().image}},B=function(){return P()?C().trailingTapTarget:void 0},K=function(H,q){return function(){return p()?q:H}},L=function(){return{leadingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(X==null?void 0:X())===1?K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:K("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
D={};D=_.g$((D.ytShortsSuggestedActionViewModelStaticHost=function(){return!P()},D.ytShortsSuggestedActionViewModelDynamicHost=P,D.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return P()&&a()},D.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return P()&&!a()},D.ytShortsSuggestedActionViewModelExtractOverlay=function(){return c==null?void 0:c()},D));
_.JU(function(){if(P()){var H=0,q;if((q=C().animationParams)==null?0:q.shouldExpand){var R,ph;H=((ph=(R=C().animationParams)==null?void 0:R.expansionDelaySecs)!=null?ph:0)*1E3}var Om,xj=((Om=C().animationParams)==null?0:Om.shouldExpand)?setTimeout(function(){g(!0)},H):void 0,Bo,r5;
H=((Bo=C().animationParams)==null?0:Bo.visibilityDelaySecs)?((r5=C().animationParams)==null?NaN:r5.visibilityDelaySecs)*1E3:0;var Fd=setTimeout(function(){O(!0)},H);
_.z3(function(){xj&&clearTimeout(xj);clearTimeout(Fd)})}});
var t=function(H){_.FV(H,Object.assign({},{form:{element:W.value}}))},Y=_.I_(function(){var H,q=(H=Q())==null?void 0:H.onTapCommand;
q&&t(q)}),y=_.I_(function(){var H,q;
if(H=(q=B())==null?void 0:q.onTapCommand)return t(H),!1}),J=_.P0({"vertical-align":"bottom",
"border-radius":function(){var H;return P()?((H=C().defaultContent)==null?0:H.isCircleImage)?"50%":"4px":"0px"},
width:function(){var H,q,R;return P()&&((H=C().defaultContent)==null?0:H.imageSize)?((R=(q=C().defaultContent)==null?void 0:q.imageSize)!=null?R:24)+"px":null},
height:function(){var H,q,R;return P()&&((H=C().defaultContent)==null?0:H.imageSize)?((R=(q=C().defaultContent)==null?void 0:q.imageSize)!=null?R:24)+"px":null}}),T={};
return _.A("yt-shorts-suggested-action-view-model",{class:D,el:W},_.A("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.A("button",{class:_.g$(function(){return P()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var H;
return(H=C().useFullRoundedBorder)!=null&&H?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!B()&&P()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":P()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var H;
return(H=C().disableFixedHeight)!=null&&H?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(T.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(X==null?void 0:X())===1},T.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return c==null?void 0:c()},T)),
"on:click":Y},_.A(_.NL,{model:{color:4}}),_.A("div",{class:_.g$(function(){return P()?L().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.A(_.v,{cond:function(){var H;
return(H=Q())==null?void 0:H.image},
then:function(H){return _.A(_.M_,{data:H,alt:"",className:function(){return P()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:J})}}),_.A(_.v,{cond:function(){var H,q;
return(H=Q())==null?void 0:(q=H.icon)==null?void 0:q.iconType},
then:function(H){return _.A(_.$_,{icon:H,active:u,className:function(){return P()?p()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.A("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.A(_.v,{cond:function(){var H;
return(H=Q())==null?void 0:H.primaryText},
then:function(H){var q={};return _.A("div",{class:_.g$("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(q.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(X==null?void 0:X())===1},q))},_.A(_.QG,{text:H}))}}),_.A(_.v,{cond:function(){var H;
return(H=Q())==null?void 0:H.secondaryText},
then:function(H){return _.A("div",{class:function(){return L().secondaryText()}},_.A(_.QG,{text:H}))}}))),_.A(_.v,{cond:B,
then:function(H){return _.A("div",{class:_.g$(function(){return L().trailingSection()},function(){var q,R;
return(c==null?void 0:c())&&((R=(q=L()).trailingSectionExtractOverlay)==null?void 0:R.call(q))||""}),
"aria-label":function(){var q;return(q=H().a11yLabel)!=null?q:""},
"on:click":y,role:"button",tabindex:0},_.A(_.NL,{model:{color:4}}),_.A(_.$_,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"dh");var aoN=_.F(function(D){var C=D.data;var X=D.overlayDensity;var c=_.aX("yt-shorts-video-title-view-model");D=_.I_(function(g){if(_.er(_.mY(g),c.value,["A".toString()]))return!1;(g=C().truncatedTextOnTapCommand)&&_.FV(g);return!1});
var W={},p={};return _.A("yt-shorts-video-title-view-model",{el:c,class:_.g$("ytShortsVideoTitleViewModelHost",(W.ytShortsVideoTitleViewModelHostClickable=function(){return!!C().truncatedTextOnTapCommand},W)),
"on:click":D},_.A("h2",{class:_.g$("ytShortsVideoTitleViewModelShortsVideoTitle",(p.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(X==null?void 0:X())===1},p.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.b("enable_shorts_declutter_ui")},p))},_.A(_.QG,{text:function(){return C().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(X==null?void 0:X())===1}})))},"eh");_.Iok=_.F(function(D){var C=D.data;var X=D.overlayDensity;var c=D.extractOverlay;var W=function(){return(X==null?void 0:X())===1};
return _.A("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.A(_.BX,{data:function(){return C().metadataItems}},{badgeViewModel:function(p){p=p.data;
return _.A("div",{class:_.g$(function(){return W()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.A(_.ex,{data:p}))},
playerDisclosureViewModel:function(p){p=p.data;return _.A("div",{class:_.g$(function(){return W()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.A(_.UJY,{data:p,
extractOverlay:c}))},
shortsSuggestedActionViewModel:function(p){p=p.data;return _.A("div",{class:_.g$(function(){return W()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.A(glt,{data:p,
overlayDensity:X,extractOverlay:c}))},
reelChannelBarViewModel:function(p){p=p.data;var g={};return _.A("div",{class:_.g$("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return W()},g))},_.A(SUw,{data:p,
overlayDensity:X}))},
reelMultiFormatLinkViewModel:function(p){p=p.data;var g={};return _.A("div",{class:_.g$("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return W()},g))},_.A(UNt,{data:p,
overlayDensity:X}))},
shortsVideoTitleViewModel:function(p){p=p.data;var g={};return _.A("div",{class:_.g$("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return W()},g))},_.A(aoN,{data:p,
overlayDensity:X}))},
reelSoundMetadataViewModel:function(p){p=p.data;var g={};return _.A("div",{class:_.g$("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return W()},g))},_.A(_.Pqt,{data:p,
overlayDensity:X}))},
toggleButtonViewModel:function(p){p=p.data;var g={};return _.A("div",{class:_.g$("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return W()},g))},_.A(_.o1,{data:p}))}}))},"fh");var OQw=_.F(function(D){var C=_.Ro(D,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),X=C.size,c=C.onTap,W=C.disabled,p=C.tooltipText;return _.A("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.A(_.FC,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:X(),disabled:W(),tooltipText:p(),onTap:c}},
iconName:D.iconType}))},"gh"),AY6=_.F(function(D){function C(k){k.stopPropagation();
k.code==="ArrowUp"?(k.preventDefault(),ShZ(a.value)):k.code==="ArrowDown"?(k.preventDefault(),Ut3(a.value)):k.code==="KeyM"?oRh():(k.code==="KeyK"||k.code==="Space")&&WDm(O())}
var X=_.Ro(D,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});D=X.previousButtonDisabled;var c=X.nextButtonDisabled,W=X.data,p=X.playabilityStatus,g=X.previewThumbnail,a=_.aX("ytd-shorts-miniplayer-overlay"),O=_.uu(_.nZd),P;_.H2(function(){(P=_.Hd(a.value))&&P.addEventListener("keydown",C)});
_.z3(function(){var k;(k=P)==null||k.removeEventListener("keydown",C)});
X=function(){var k,u;var Q=_.r((k=W())==null?void 0:(u=k.reelPlayerOverlayRenderer)==null?void 0:u.buttonBar,pke);if(Q){var B;k=Object.assign({},Q,{buttonViewModels:(B=Q.buttonViewModels)==null?void 0:B.filter(p5m)})}else k=void 0;return k};
return _.A("ytd-shorts-miniplayer-overlay",{el:a,class:"ytdShortsMiniplayerOverlayHost"},_.A("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.P0({"background-image":function(){var k=g();return k?'url("'+_.c0(k.thumbnails)+'")':""}})}),_.A("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.A("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.A(OQw,{iconType:function(){var k=O();
return k===2||k===-1||k===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){WDm(O())},
tooltipText:function(){var k=O();return k===1||k===3?_.I7("PLAYER_LABEL_PAUSE"):_.I7("PLAYER_LABEL_PLAY")}}),_.A(_.pLU,{orientation:"horizontal_right"})),_.A("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.A(OQw,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:D,onTap:function(){ShZ(a.value)},
tooltipText:_.I7("PREVIOUS_VIDEO_LABEL")}),_.A(OQw,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:c,onTap:function(){Ut3(a.value)},
tooltipText:_.I7("NEXT_VIDEO_LABEL")}),_.b("web_shorts_pip_like_button")?_.A(_.v,{cond:X,then:function(k){return _.A("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.A(_.pJN,{data:k,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.A("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.A(_.v,{cond:function(){var k,u;
return _.r((k=W())==null?void 0:(u=k.reelPlayerOverlayRenderer)==null?void 0:u.metapanel,Swe)},
then:function(k){return _.A("div",{class:_.g$("ytdShortsMiniplayerOverlayInteractive")},_.A(_.Iok,{data:k}))}})),_.A("div",{class:_.g$("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var k;return!((k=W())==null||!k.adsOverlay)||p()&&!V4R(p())}},_.A("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.A(_.WMp,null)))),_.A(_.v,{cond:function(){var k=W(),u,Q;
k=_.r(k==null?void 0:(u=k.adsOverlay)==null?void 0:(Q=u.fulfillmentContent)==null?void 0:Q.fulfilledLayout,VGe);return _.r(k==null?void 0:k.renderingContent,MGJ)},
then:function(k){return _.A("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.A(Icc,{data:k}))}}))},"ih");var gRJ=_.F(function(){var D=_.U(_.Li(new _.me(NaN,NaN),void 0,"hq9Bjf")),C=D.next().value,X=D.next().value;D=_.U(_.Li(!1,void 0,"Mu3aZc"));var c=D.next().value,W=D.next().value,p=_.U(_.Li(!1,void 0,"LGtoFb"));D=p.next().value;var g=p.next().value,a=_.iX().resolve(_.wB).miniplayerPropSignalMap[0],O=a.data,P=a.shortsData,k=a.nextButtonDisabled,u=a.shortsPreviewThumbnail,Q=a.previousButtonDisabled,B=a.externalPlaylistData;p=a.toastData;var K=a.playabilityStatus,L=a.isDisabled,t=a.playerVe,Y=a.closeVe;
a=_.uu(_.WC);_.g0("yt-pip-window-resized",function(H){X(H)});
_.g0("yt-activate-pip-miniplayer",function(){return _.I(function(H){g(!0);_.t_(H)})});
var y=function(){var H;return!((H=B())==null||!H.contents)&&c()},J=function(){var H=C(),q=!!O(),R=y();
H=H.clone();q&&(H.height-=76);R&&(H.height-=285);return H},T=function(){W(!c())};
_.Jw(function(){var H=t(),q=_.LN(11),R=_.xr(11);q&&R&&H&&(_.F_(q,R,H),R=Y())&&(_.ZS(q,H,[R]),_.VP(q,[R]))},"fHkmfb");
return _.A("ytd-pip-container",{class:"ytdPipContainerHost"},_.A(_.v,{cond:D,then:function(){return _.A(_.QpN,{isDisabled:L,playabilityStatus:K,size:J,isPictureInPicture:!0})}}),_.A(_.v,{cond:O,
then:function(){return _.A(_.kb1,{data:O,expanded:c,onExpandClick:T,playlistData:B})}}),_.A(_.v,{cond:y,
then:function(){return _.A("div",{class:"ytdPipContainerPlaylistPanel"},_.A(_.Nj1,{data:B,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.A(_.v,{cond:a,
then:function(){return _.A(AY6,{data:P,nextButtonDisabled:k,previousButtonDisabled:Q,playabilityStatus:K,previewThumbnail:u})}}),_.A("div",{class:"ytdPipContainerToast"},_.A(_.BDU,{toastData:p})))},"kh");var qT=function(D,C,X){var c=this;this.pipController=D;this.JSC$19190_clientRoot=C;this.JSC$19190_pageRequestService=X;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=QUo();this.watchPipEnabled=_.b("web_watch_pip");this.shortsPipEnabled=_.b("web_shorts_pip");this.JSC$19190_watchWhileEnabled=_.b("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;_.dX(_.fe(),EZF,function(W){c.isSingleOptionSurveyActive=W});
this.JSC$19190_onPlayerPlayVideo=this.JSC$19190_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);_.p2(_.Wf.getInstance(),this.miniplayerServiceActionMap,this.JSC$19190_clientRoot);D.pictureInPictureSupported()&&_.zu("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},ehf,ku6,haX,Qit,xN1,LMX,DSf;
qT.prototype.handleMediaSessionPipActivation=function(){var D=this,C;return _.I(function(X){_.qg().mediaSessionPipActivation=!0;C=_.iX().resolve(_.lu);return C.isOnWatch()&&D.watchPipEnabled?(_.qg().watchPipActivation=!0,_.Pw6(D,C.data),X.jumpTo(0)):C.isOnShorts()&&D.shortsPipEnabled?(_.qg().shortsPipActivation=!0,_.$NU(D),X.jumpTo(0)):D.isMiniplayerActive()&&D.watchPipEnabled&&!D.watchWhileMode?X.yield(vl3(D),0):X.jumpTo(0)})};
var vl3=function(D){var C,X,c,W;return _.I(function(p){if(p.nextAddress==1)return C=!D.miniplayerToPipMode,X=D.playerElement,c=D.miniplayerData,W=D.watchResponse,p.yield(D.deactivate(),2);if(p.nextAddress!=3)return C?(_.qg().mediaSessionPipActivation=!0,_.qg().watchPipActivation=!0):_.qg().miniplayerButtonActivation=!0,p.yield(D.activate(X,c,W),3);D.miniplayerToPipMode=C;_.t_(p)})};
qT.prototype.onDownloadedVideoDeleted=function(D){var C,X=_.r((C=this.miniplayerData)==null?void 0:C.watchEndpoint,_.TC),c,W;X&&((c=this.watchResponse)==null?void 0:(W=c.playerResponse)==null?void 0:W.offlineState)!==void 0&&(C=X.videoId)&&D&&C===D&&this.close()};
qT.prototype.onShowMiniplayerCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q;return _.I(function(B){switch(B.nextAddress){case 1:return X=_.r(D,zre),W=(c=X)==null?void 0:c.miniplayerCommand,p=_.r(W,_.TC),W&&p&&!C.active?B.yield(_.oc.getInstance(),2):B.return();case 2:return g=B.yieldResult,B.yield((a=g)==null?void 0:a.get("yt-miniplayer-shown-video-id"),3);case 3:O=B.yieldResult;P=p.videoId;if(!P||O===P)return B.return();k=_.iX().resolve(_.lu);if(k.isOnWatch())return _.fQ(Error("Uj")),B.return();
u={channelItem:{externalId:btoa(P)}};C.readyToResumeVe=_.Ia(121253,void 0,void 0,u);_.qg().showMiniplayerCommandActivation=!0;return B.yield(_.Cd5(C,W,!0),4);case 4:return C.active&&(_.fA(C,{readyToResumeVe:C.readyToResumeVe,isReadyToResume:!0}),C.isReadyToResume=!0),B.yield((Q=g)==null?void 0:Q.set("yt-miniplayer-shown-video-id",p.videoId),5);case 5:C.readyToResumeVe=void 0,_.t_(B)}})};
qT.prototype.init=function(D){this.miniplayerEl?_.fQ(new _.Zf("MiniplayerService already initialized.")):this.miniplayerEl=D};
qT.prototype.isInitialized=function(){var D=!!this.miniplayerEl;D||_.fQ(new _.Zf("MiniplayerService used before initialized."));return D};
_.Pw6=function(D,C){if(D.isInitialized()){var X=_.rVm(C.response,C.playerResponse),c=_.iX().resolve(_.lu).getPlayerFromWatch();_.qg().currentEndpoint=X.watchEndpoint||null;D.activate(c,X,C)}};
_.$NU=function(D){if(D.isInitialized()){var C=_.iX().resolve(_.lu).getPlayerFromShorts();D.activate(C)}};
ehf=function(D,C){var X;(X=!D.isInitialized())||(X=_.iX().resolve(_.lu).isOnWatch()&&D.watchPipMode,X=!(D.isMiniplayerActive()&&(_.qg().userActivation||_.qg().lockupActivation||X)));if(X)return!1;iQt(D,C)?_.zB(D):DSf(D,C);return D.watchPipMode?!_.iX().resolve(_.lu).isOnWatch():!0};
qT.prototype.isMiniplayerActive=function(){return this.active};
var iQt=function(D,C){var X;C=(X=_.r(C,_.TC))==null?void 0:X.videoId;var c,W;D=(W=_.r((c=D.miniplayerData)==null?void 0:c.watchEndpoint,_.TC))==null?void 0:W.videoId;return C!=null&&C===D};
qT.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.lE(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.DS(this.miniplayerEl,"yt-navigate-home-action"))};
_.Cd5=function(D,C,X,c){X=X===void 0?!1:X;var W,p,g;return _.I(function(a){switch(a.nextAddress){case 1:if(D.active){a.jumpTo(2);break}W=_.iX().resolve(_.lu);if(g=(p=D.playerElement)!=null?p:W.getPlayerFromWatch()){a.jumpTo(3);break}return a.yield(_.iX().resolve(_.pT),4);case 4:g=W.getPlayerFromWatch();case 3:if(!g){_.fQ(Error("Wj"));a.jumpTo(2);break}return a.yield(D.activate(g,c),2);case 2:return D.active?a.yield(DSf(D,C,X),7):a.return();case 7:setTimeout(function(){var O;(O=D.getPlayerElement())==
null||O.focusOnPlayer()},100),_.t_(a)}})};
qT.prototype.activate=function(D,C,X){var c=this,W,p,g,a,O,P,k,u;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!c.isInitialized())return Q.return();if(!D)return _.fQ(Error("Wj")),Q.return();if(ku6(c))return Odk(),Q.return();W=_.qg().mediaSessionPipActivation;p=_.qg().shortsPipActivation;g=_.qg().watchPipActivation;O=(a=_.qg().watchWhileActivation)||g;P=g||p;if(!c.pictureInPictureEnabled()||!P){Q.jumpTo(2);break}return Q.yield(u36(c,W),3);case 3:if(!Q.yieldResult)return _.fQ(Error("Vj")),
Odk(),Q.return();case 2:return c.setActive(!0),c.watchResponse=X,c.playerElement=D,c.updateMiniplayerData(C),Q.yield(Qit(c,D),4);case 4:if(!c.active)return _.fQ(new _.Zf("miniplayer deactivated during activation")),c.removePlayerListeners(),Q.return();BO3(c);Odk();c.JSC$19190_watchWhileEnabled&&_.bQY(c,a);c.pictureInPictureEnabled()&&c.shortsPipEnabled&&(c.shortsPipMode=p,_.fe().dispatch(C$d(c.shortsPipMode)));c.pictureInPictureEnabled()&&c.watchPipEnabled&&(c.watchPipMode=g,_.Khj(c.handleMediaSessionPipActivation));
c.player&&(k=c.player.getPlayerState(),u=k===1,_.fe().dispatch(IOd(k)),_.Ct(c.miniplayerEl,"yt-miniplayer-play-state-changed",[u]),_.qg().isVideoPlaying=u);_.Ct(c.miniplayerEl,"yt-miniplayer-endpoint-changed");rY3(c);_.KMX(c);return c.shortsPipMode||c.watchPipMode?Q.yield(_.X_(c.miniplayerEl,"yt-activate-pip-miniplayer"),6):Q.yield(_.X_(c.miniplayerEl,"yt-activate-miniplayer",[O]),6);case 6:c.watchResponse&&ulm(c.getScreenLayer()),haX(c),xN1(c,!0),setTimeout(function(){var B;(B=c.getPlayerElement())==
null||B.focusOnPlayer()},100),_.t_(Q)}})};
qT.prototype.updateMiniplayerData=function(D){this.miniplayerData=D;_.fA(this,{data:D})};
_.KMX=function(D){var C,X,c=((C=D.miniplayerData)==null?void 0:(X=C.miniplayerRenderer)==null?void 0:X.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";C=D.watchWhileMode||D.watchPipMode?c&&!_.iX().resolve(_.lu).isOnWatch():c;_.fA(D,{isDisabled:C});var W,p;X=_.r((W=D.miniplayerData)==null?void 0:(p=W.miniplayerRenderer)==null?void 0:p.minimizedEndpoint,_.fo);C&&X&&_.iX().resolve(_.S0).openSheet({openPopupActionCommand:{openPopupAction:X}},D.miniplayerEl)};
ku6=function(D){if(_.Ao5()||D.isMiniplayerActive())return!0;var C=_.qg().watchPipActivation||_.qg().watchWhileActivation;return _.iX().resolve(_.lu).isOnWatch()&&!C?(_.fQ(new _.Zf("miniplayer activated on watch page")),!0):_.qg().watchWhileActivation?D.userDeactivatedWatchWhile||!!document.pictureInPictureElement||bar():!1};
haX=function(D){if(D.watchResponse&&!LMX(D)){var C,X=(C=D.watchResponse.playerResponse)==null?void 0:C.trackingParams;X&&(_.fA(D,{expandVe:_.Ia(35989),closeVe:_.Ia(34699),readyToResumeCloseVe:_.Ia(131070),repositionVe:_.Ia(226204),resizeVe:_.Ia(226205)}),_.fA(D,{playerVe:_.bO(X)}))}};
Qit=function(D,C){return _.I(function(X){if(X.nextAddress==1)return C.preparePlayer(),X.yield(C.getPlayerPromise(),2);D.player=X.yieldResult;D.player&&(D.player.addEventListener("onPlayVideo",D.JSC$19190_onPlayerPlayVideo),D.player.addEventListener("onCloseMiniplayer",D.onPlayerCloseMiniplayer),D.player.addEventListener("onExpandMiniplayer",D.onPlayerExpandMiniplayer),D.player.addEventListener("onStateChange",D.onPlayerStateChange));_.t_(X)})};
qT.prototype.JSC$19190_onPlayerPlayVideo=function(D){var C=D.sessionData&&"autonav"in D.sessionData,X;D.sessionData&&D.sessionData.itct&&(X=D.sessionData.itct);var c=D.watchEndpoint;C=c&&C?_.VWt(c,X):_.D7(D.videoId,D.listId||void 0,X);D.sessionData&&_.jc(_.r(C.commandMetadata,_.ge).url,D.sessionData);DSf(this,C)};
qT.prototype.onPlayerExpandMiniplayer=function(){_.zB(this)};
qT.prototype.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
qT.prototype.onPlayerStateChange=function(){if(this.player){var D=this.player.getPlayerState(),C=D===1;_.fe().dispatch(IOd(D));_.fe().dispatch(_.P$q(D));_.Ct(this.miniplayerEl,"yt-miniplayer-play-state-changed",[C]);_.qg().isVideoPlaying=C;if(D===0){C=!_.em.getInstance().isAutoplaySetExplicitly();var X,c,W,p,g,a,O=(X=this.watchResponse.response)==null?void 0:(c=X.contents)==null?void 0:(W=c.twoColumnWatchNextResults)==null?void 0:(p=W.autoplay)==null?void 0:(g=p.autoplay)==null?void 0:(a=g.autoplayExplicitChoiceDialogRenderer)==
null?void 0:a.confirmDialogRenderer;C&&O&&this.player.setAutonavState(1)}D===0&&this.watchWhileMode&&this.deactivate()}};
var BO3=function(D){var C=_.iX().resolve(_.iP);C.addEventListener("yt-navigate",_.Pr(D,D.onPlaylistNavigate));C.addEventListener("yt-playlist-data-updated",_.Pr(D,D.JSC$19190_onPlaylistDataUpdated));D.JSC$19190_onPlaylistDataUpdated()};
qT.prototype.onPlaylistNavigate=function(D,C){var X=this,c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1){if(!_.r(C.endpoint,_.TC))return k.return();_.qg().currentEndpoint=C.endpoint;_.Ct(X.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.iX().resolve(_.lu).isOnWatch()&&(X.watchWhileMode||X.watchPipMode))return k.return();D.stopPropagation();(p=(W=_.r((c=C.endpoint)==null?void 0:c.commandMetadata,_.ge))==null?void 0:W.url)&&C.tempData&&!_.ZI.isEmpty(C.tempData)&&_.jc(p,C.tempData);g={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};a=new PM5(function(){return X.getPlayerElement()},g,{layer:X.getScreenLayer()});
O=function(u){a.processChunk({endpoint:C.endpoint,data:u})};
si3(X);X.miniplayerFetchRequest=mN3(X,C.endpoint,O);_.KK(k,2);return k.yield(X.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return P=k.yieldResult,eaN(X,P),_.SR(k,0);_.Eu(k);_.t_(k)})};
qT.prototype.JSC$19190_onPlaylistDataUpdated=function(){var D=_.iX().resolve(_.iP).getPlaylistData();this.hasPlaylistData=!!D;_.fA(this,{externalPlaylistData:D||{}})};
qT.prototype.close=function(D){if(this.isInitialized())if(D){if(!((this.watchWhileMode||this.watchPipMode)&&_.iX().resolve(_.lu).isOnWatch()||this.shortsPipMode)){var C;(C=this.getPlayerElement())==null||C.stop()}this.deactivate()}else _.bP().closeMiniplayer(this.miniplayerEl)};
qT.prototype.deactivate=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1){if(!C.isInitialized()||!C.active)return g.return();C.setActive(!1);si3(C);(X=!!D&&iQt(C,D))&&C.isSingleOptionSurveyActive&&_.DS(C.miniplayerEl,"yt-show-watch-page-survey",[C.isSingleOptionSurveyActive]);return g.yield(ElP(C),2)}if(g.nextAddress!=3){xN1(C,!1);C.isReadyToResume=!1;C.watchResponse=void 0;C.updateMiniplayerData(void 0);C.shortsPipMode&&(C.shortsPipMode=!1,_.fe().dispatch(C$d(C.shortsPipMode)),
JwY(C.pipController),(c=C.player)==null||c.setInternalSize(NaN,NaN));C.watchPipMode&&(C.watchPipMode=!1,JwY(C.pipController));(W=C.watchWhileMode)&&_.bQY(C,!1);C.removePlayerListeners();var a=_.iX().resolve(_.iP);a.removeEventListener("yt-navigate",_.Pr(C,C.onPlaylistNavigate));a.removeEventListener("yt-playlist-data-updated",_.Pr(C,C.JSC$19190_onPlaylistDataUpdated));_.qg().currentEndpoint=null;_.Ct(C.miniplayerEl,"yt-miniplayer-endpoint-changed");C.playerElement=null;Odk();return C.shortsPipMode||
C.watchPipMode?g.jumpTo(3):g.yield(_.X_(C.miniplayerEl,"yt-deactivate-miniplayer",[X,W]),3)}(p=C.player)==null||p.setInternalSize(NaN,NaN);C.player=null;_.t_(g)})};
var ElP=function(D){var C;return _.I(function(X){C=_.iX().resolve(_.lu);return D.shortsPipMode?X.yield(C.movePlayerToShorts(D.playerElement),0):X.yield(C.movePlayerToWatch(D.playerElement),0)})};
qT.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19190_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
qT.prototype.setActive=function(D){this.active=D;this.isSingleOptionSurveyActive?_.DS(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.DS(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.fe().dispatch(_.oI({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.bQY=function(D,C){D.watchWhileMode=C;_.fA(D,{watchWhile:C})};
xN1=function(D,C){if(!LMX(D))if(D.shortsPipMode||D.watchPipMode){var X;(X=D.player)==null||X.setDocumentPictureInPicture(C)}else{var c;(c=D.player)==null||c.setMinimized(C)}};
LMX=function(D){return D.watchWhileMode&&_.b("kevlar_watch_while_counterfactual")};
_.zB=function(D){var C;return _.I(function(X){switch(X.nextAddress){case 1:if(!D.isInitialized())return X.return();_.KK(X,2);return X.yield(D.miniplayerFetchRequest,4);case 4:_.SR(X,3);break;case 2:_.Eu(X);case 3:D.watchResponse&&D.miniplayerData&&D.miniplayerData.watchEndpoint?(C={url:D.watchResponse.url,endpoint:D.miniplayerData.watchEndpoint,data:D.watchResponse,miniplayer:!0},_.lE(D.miniplayerEl,"yt-navigate-cache",C)):D.miniplayerData&&D.miniplayerData.watchEndpoint&&_.lE(D.miniplayerEl,"yt-navigate",
{endpoint:D.miniplayerData.watchEndpoint}),_.t_(X)}})};
DSf=function(D,C,X){var c,W,p,g;return _.I(function(a){if(a.nextAddress==1){if(iQt(D,C))return a.return();_.qg().currentEndpoint=C;_.Ct(D.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Ct(D.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.qg().isVideoPlaying=!1;c={clientParams:{miniplayer:!0,autoSaveToQueue:!X}};W=new PM5(function(){return D.getPlayerElement()},c,{layer:D.getScreenLayer(),
parentLayer:0},void 0,D.readyToResumeVe);p=function(O){var P,k,u=Object.assign({},(P=O.playerResponse)==null?void 0:(k=P.playerConfig)==null?void 0:k.playbackStartConfig,{startPaused:!0}),Q;X&&((Q=O.playerResponse)==null?0:Q.playerConfig)&&(O.playerResponse.playerConfig.playbackStartConfig=u);W.processChunk({endpoint:C,data:O})};
si3(D);D.miniplayerFetchRequest=mN3(D,C,p);_.KK(a,2);return a.yield(D.miniplayerFetchRequest,4)}if(a.nextAddress!=2)return g=a.yieldResult,eaN(D,g),_.SR(a,0);_.Eu(a);_.t_(a)})};
qT.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var si3=function(D){D.miniplayerFetchRequest&&(D.miniplayerFetchRequest.cancel&&D.miniplayerFetchRequest.cancel("Active request obsolete"),D.miniplayerFetchRequest=null)},mN3=function(D,C,X){var c,W=(c=_.r(C.commandMetadata,_.ge))==null?void 0:c.url,p;
c=!W||_.CG("disable_miniplayer_tempdata")?{}:(p=DUW(W))!=null?p:{};return T_(D.JSC$19190_pageRequestService,C,c,window.location.href,"watch",function(g,a){X(a)},function(g){return g!==D.miniplayerFetchRequest})},eaN=function(D,C){var X;
_.I(function(c){if(!C)return c.return();D.watchResponse=C;haX(D);rY3(D);X=_.rVm(C.response,C.playerResponse);if(D.isMiniplayerActive()){C.response&&(D.playerElement.watchNextData=C.response);var W=_.ZI.getValueByKeys.apply(_.ZI,[C].concat(_.VB(KAf)));_.ZI.getValueByKeys.apply(_.ZI,[C].concat(_.VB(mBN)))&&W&&_.iX().resolve(_.iP).setAutoplayRenderer(W);if(W)if(_.b("kevlar_is_pupi_enabled")){var p,g,a,O,P,k=((p=C.response)==null?0:(g=p.playerOverlays)==null?0:(a=g.playerOverlayRenderer)==null?0:(O=a.autonavToggle)==
null?0:(P=O.autoplaySwitchButtonRenderer)==null?0:P.enabled)?2:1;_.em.getInstance().setState(k,!1,!1)}else p=Afr()?2:1,(k=D.player)==null||k.setAutonavState(p);D.updateMiniplayerData(X);_.KMX(D)}_.t_(c)})},rY3=function(D){var C,X,c=(C=D.watchResponse)==null?void 0:(X=C.playerResponse)==null?void 0:X.playabilityStatus,W;
C=c==null?void 0:(W=c.miniplayer)==null?void 0:W.miniplayerRenderer;(C==null?void 0:C.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&C.minimizedEndpoint&&_.cE(D.miniplayerEl,[C.minimizedEndpoint]);_.fA(D,{playabilityStatus:c})};
qT.prototype.openToast=function(D,C){_.fA(this,{toastData:{data:D,label:C}})};
_.fA=function(D,C){(0,D.miniplayerPropSignalMap[1])(C)};
qT.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var D;return this.playerElement?this.playerElement:(D=_.SY(this.miniplayerEl).querySelector("#player-container"))==null?void 0:D.firstElementChild};
qT.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var u36=function(D,C){C=C===void 0?!1:C;var X,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1){if(!D.pictureInPictureSupported()||!IAd()&&!C)return O.return(!1);X=tep(D);c=X.width;W=X.height;return O.yield(D.pipController.openWindow({width:c,height:W}),2)}p=O.yieldResult;g=D.pipController.getWindow();if(!g||!p)return O.return(!1);g.document.body.style.overflow="hidden";a=aAm(g);zPN(D.pipController,function(){NOt(D);a()});
return O.return(!0)})},tep=function(D){var C=_.qg().shortsPipActivation,X,c;
D=C?.5625:(c=(X=D.player)==null?void 0:X.getVideoAspectRatio())!=null?c:16/9;X=Math.min(window.innerWidth,window.innerHeight)/2;C=C?0:76;return D>1?new _.me(X,C+X/D):new _.me(X*D,C+X)},NOt=function(D){var C;
_.I(function(X){C=_.iX().resolve(_.lu);return C.isOnWatch()&&D.watchPipMode||C.isOnShorts()&&D.shortsPipMode?X.yield(D.deactivate(),0):D.miniplayerToPipMode?X.yield(vl3(D),0):D.watchPipMode?X.yield(_.zB(D),0):X.jumpTo(0)})};
qT.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.$a.Object.defineProperties(qT.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
qT[kz]=[jAG,hhN,_.hT];var YUU="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(" "),
yYG="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(" "),nlG="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
wLN="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var FMX=function(D,C,X){_.nF.call(this);this.store=D;this.panelController=C;this.pageContentExtractor=X;this.isInitialized=!1};
_.h(FMX,_.nF);
FMX.prototype.init=function(D){var C=this;this.isInitialized||(this.isInitialized=!0,this.environment=D!=null?D:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.TU.currentPageSubTypeSelector(this.store.getState()),D=_.dX(this.store,_.TU.currentPageSubTypeSelector,function(X){a:if(_.ZQ1(C))switch(X){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var c=!0;break a;default:c=!1}else c=!1;c&&C.panelController.hidePanel({identifier:"PAai_companion"});
C.pageSubtype!==X&&(C.pageSubtype=X)}),this.addOnDisposeCallback(D))};
_.SFG=function(D,C){if(_.ZQ1(D))switch(C){case "watch":var X,c;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(X=_.AG())==null?void 0:(c=X.getVideoData())==null?void 0:c.video_id};case "search":var W,p,g;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(p=(W=D.pageContentExtractor)==null?void 0:N8p(W))!=null?p:[],entityId:(g=(new URLSearchParams(window.location.search)).get("search_query"))!=null?g:void 0};case "companion-canvas":var a,O;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(O=(a=
D.pageContentExtractor)==null?void 0:N8p(a))!=null?O:[]};default:var P,k;D={videoIds:(k=(P=D.pageContentExtractor)==null?void 0:N8p(P))!=null?k:[]};return _.b("enable_ai_companion_default_page_context")?D:void 0}};
_.ZQ1=function(D){return D.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
FMX[kz]=[_.gp,_.p6,_.vK(YzY)];var Gup=_.F(function(D){return _.A("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.A(_.xe,{text:function(){return D.data().text||""},
wrapCodeBlocks:D.shouldWrapCodeBlock}))},"mh");_.VeX=_.F(function(D){return _.A("yt-ai-companion-attachment-view-model",{el:_.fb(_.NH(function(){return D.data().rendererContext})),
class:_.g$("ytAiCompanionAttachmentViewModelHost",D.className)},_.A("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.A(_.v,{cond:function(){return D.data().title},
then:function(C){return _.A("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return C().content}},_.A(_.QG,{text:C}))}}),_.A(_.v,{cond:function(){return _.VX(D.data().trailingTitleIcon)},
then:function(C){return _.A("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.A(_.M_,{data:C,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.A(_.v,{cond:function(){return D.data().description},
then:function(C){return _.A("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.A(_.QG,{text:C}))}}),_.A(_.v,{cond:function(){return D.data().bottomItem},
then:function(C){return _.A("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.A(_.BX,{data:C},{tableViewModel:V8J}))}}))},"nh");_.TOX=_.F(function(D){return _.A("yt-channel-attribution-view-model",{class:_.g$("ytChannelAttributionViewModelHost",D.className)},_.A("div",{class:"ytChannelAttributionViewModelUpper"},_.A(_.BX,{data:function(){return D.data().avatar}},{decoratedAvatarViewModel:_.Og}),_.A("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.A(_.QG,{text:function(){return D.data().title}}))),_.A("div",{class:"ytChannelAttributionViewModelBottom"},_.A(_.QG,{text:function(){return D.data().subtitle}})))},"oh");var HQX=_.F(function(D){var C=_.U(_.Li(!1,void 0,"MFRKRb")),X=C.next().value,c=C.next().value,W=function(){return D.data().activeRenderer},p=function(){return D.data().inactiveRenderer};
return _.A("yt-channel-disclosure-view-model",{"on:mouseleave":_.I_(function(){c(!1)}),
"on:mouseover":_.I_(function(){c(!0)}),
class:_.g$("ytChannelDisclosureViewModelHost",D.className)},_.A(_.v,{cond:function(){return X()},
then:function(){return _.A(_.BX,{data:W},{channelAttributionViewModel:_.TOX})},
else:function(){return _.A(_.BX,{data:p},{decoratedAvatarViewModel:_.Og})}}))},"ph");var JYk=null;var zaP={},jiN=(zaP.initialized={priority:10,callback:function(D){var C=_.iX();C.addProvider({provide:Eh4,useClass:JUo});C.addProvider({provide:_.H7U,useFactory:function(){return new tRN}});
C.addProvider({provide:xk,useValue:_.q6("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});C.addProvider({provide:vXU,useValue:5184E6});C.addProvider({provide:VoG,useValue:_.s3()});C.addProvider({provide:PhU,useClass:hyc});C.addProvider({provide:K3,useClass:K3});C.addProvider({provide:_.pT,useFactory:function(){return X3J.promise}});
C.addProvider({provide:_.oBx,useFactory:function(){return _.cNN.promise}});
C.addProvider({provide:nV5,useValue:function(){var O;return((O=_.CT())==null?void 0:O.getPlayer())||null}});
var X={};C.addProvider((X.provide=_.At,X.useFactory=function(O,P){return function(){return U1R(O,P)}},X[kz]=[xk,
vXU],X));X={};C.addProvider((X.provide=_.Tc,X.useClass=ETU,X[kz]=[xk,vXU],X));X={};C.addProvider((X.provide=_.LDo,X.useClass=yRG,X[kz]=[_.Tc],X));C.addProvider({provide:i3,useFactory:_.fe});C.addProvider({provide:pn,useFactory:_.fe});C.addProvider({provide:rww,useFactory:_.fe});C.addProvider({provide:_.P7d,useFactory:function(){var O;return((O=_.CT())==null?void 0:O.getPlayer())||null}});
C.addProvider({provide:SeG,useFactory:_.fe});C.addProvider({provide:_.gp,useFactory:_.fe});C.addProvider({provide:Mr,useValue:_.AX});C.addProvider({provide:Vj1,useClass:f7t});C.addProvider({provide:nFG,useClass:y_3});C.addProvider({provide:lD,useClass:lD});C.addProvider({provide:d_,useClass:d_});C.addProvider({provide:jQ,useClass:jQ});C.addProvider({provide:RM,useClass:RM});C.addProvider({provide:pA,useClass:pA});C.addProvider({provide:VQ,useClass:VQ});C.addProvider({provide:Lc,useClass:Lc});C.addProvider({provide:_.fY,
useValue:pzt});X={};C.addProvider((X.provide=XIp,X.useFactory=function(O){return O.watchEndpointMap||{}},X[kz]=[_.fY],X));
X={};C.addProvider((X.provide=cRk,X.useFactory=function(O){return O.reelWatchEndpointMap||{}},X[kz]=[_.fY],X));
C.addProvider({provide:_.X5,useFactory:_.iO});C.addProvider({provide:O5,useFactory:_.PE});X={};C.addProvider((X.provide=gDt,X.useFactory=function(O){return function(P){var k={automatedLogEventSource:5};k=k===void 0?{}:k;var u,Q,B=(Q=_.r((u=P.endpoint)==null?void 0:u.commandMetadata,_.ge))==null?void 0:Q.rootVe;if(B){var K,L;if(u=P.previousCsn||((L=_.r((K=P.endpoint)==null?void 0:K.commandMetadata,hSk))==null?void 0:L.parentCsn)){var t=t===void 0?{}:t;if(u!==_.LN(t.layer)||B!==AnF(t.layer))kEW(u,t.cttAuthInfo,
t.layer||0),IKj(u,t.layer||0),K=t.layer||0,_.M6(O0W(K===void 0?0:K),B);k.parentCsn=u}P.endpoint&&u?fDd(O,P.endpoint,k):_.Gm(O,B,void 0,k);var Y;((Y=P.response)==null?0:Y.trackingParams)&&O.graftServerVe(P.response.trackingParams);var y;((y=P.playerResponse)==null?0:y.trackingParams)&&O.graftServerVe(P.playerResponse.trackingParams);var J;((J=P.reelWatchSequenceResponse)==null?0:J.trackingParams)&&O.graftServerVe(P.reelWatchSequenceResponse.trackingParams)}}},X[kz]=[_.X5],X));
X={};C.addProvider((X.provide=hPU,X.useClass=K5N,X[kz]=[Mr,_.gp],X));X={};C.addProvider((X.provide=KA,X.useClass=KA,X[kz]=[_.pT,_.gp],X));X={};C.addProvider((X.provide=QH,X.useClass=QH,X[kz]=[pn,_.uX],X));C.addProvider({provide:_.ywG,useClass:qzt});X={};C.addProvider((X.provide=_.p6,X.useClass=F5P,X[kz]=[_.ywG,_.vK(_.gu)],X));C.addProvider({provide:_.HW,useClass:Fe6});X={};C.addProvider((X.provide=JE,X.useClass=JE,X[kz]=[_.HW,_.pT,_.Bl,_.uX],X));C.addProvider({provide:_.S0,useClass:LA});C.addProvider({provide:_.NVG,
useClass:m6X});C.addProvider({provide:_.U_,useClass:ht});_.b("enable_ai_companion")&&(C.addProvider({provide:_.gu,useClass:VnY}),C.addProvider({provide:_.r5b,useClass:HSq}),C.addProvider({provide:YzY,useClass:EUG}),C.addProvider({provide:Ob,useClass:Ob}),C.addProvider({provide:In,useClass:In}),C.addProvider({provide:h9g,useValue:HQX}),C.addProvider({provide:_.xKk,useValue:_.VeX}),C.addProvider({provide:L9b,useValue:Gup}));_.b("enable_ai_chat_controller")&&C.addProvider({provide:_.an,useClass:FMX});
X={};C.addProvider((X.provide=_.U5,X.useClass=Mnt,X[kz]=[_.U5],X));C.addProvider({provide:_.zf,useClass:mAG});C.addProvider({provide:b3,useClass:b3});C.addProvider({provide:q7,useClass:q7});C.addProvider({provide:eQ,useClass:eQ});X={};C.addProvider((X.provide=pD,X.useClass=pD,X[kz]=[_.uX,_.Bl],X));C.addProvider({provide:Z3,useClass:xI});X={};C.addProvider((X.provide=T$,X.useClass=T$,X[kz]=[_.S0,Z3],X));X={};C.addProvider((X.provide=nD,X.useClass=nD,X[kz]=[_.S0],X));X={};C.addProvider((X.provide=kk,
X.useClass=kk,X[kz]=[i3,vQ,_.uX],X));C.addProvider({provide:vQ,useClass:gXN});_.b("web_enable_feedback_endpoint_resolver_batch_2")&&(X={},C.addProvider((X.provide=QY,X.useClass=QY,X[kz]=[i3],X)),X={},C.addProvider((X.provide=u3,X.useClass=u3,X[kz]=[vQ],X)));X={};C.addProvider((X.provide=G$,X.useClass=G$,X[kz]=[_.U_,Z3],X));X={};C.addProvider((X.provide=Yk,X.useClass=Yk,X[kz]=[_.U_],X));X={};C.addProvider((X.provide=VY,X.useClass=VY,X[kz]=[_.Bl,_.p6],X));X={};C.addProvider((X.provide=Fh,X.useClass=
Fh,X[kz]=[_.Bl,_.X5],X));C.addProvider({provide:ug,useClass:ug});X={};C.addProvider((X.provide=IM,X.useClass=IM,X[kz]=[i3],X));C.addProvider({provide:N9,useClass:N9});C.addProvider({provide:tE,useClass:tE});X={};C.addProvider((X.provide=yS,X.useClass=yS,X[kz]=[i3],X));X={};C.addProvider((X.provide=nY,X.useClass=nY,X[kz]=[_.Bl,i3],X));X={};C.addProvider((X.provide=w_,X.useClass=w_,X[kz]=[i3],X));X={};C.addProvider((X.provide=FS,X.useClass=FS,X[kz]=[i3],X));X={};C.addProvider((X.provide=yY,X.useClass=
yY,X[kz]=[_.p6],X));X={};C.addProvider((X.provide=KY,X.useClass=KY,X[kz]=[_.X5],X));X={};C.addProvider((X.provide=eS,X.useClass=eS,X[kz]=[vW],X));X={};C.addProvider((X.provide=E5,X.useClass=E5,X[kz]=[vW],X));C.addProvider({provide:LY,useClass:LY});C.addProvider({provide:s5,useClass:s5});C.addProvider({provide:r_,useClass:r_});X={};C.addProvider((X.provide=HQ,X.useClass=HQ,X[kz]=[_.p6,_.uX],X));C.addProvider({provide:h4,useClass:h4});X={};C.addProvider((X.provide=wC,X.useClass=wC,X[kz]=[_.Bl,_.p6],
X));C.addProvider({provide:Eb,useClass:Eb});X={};C.addProvider((X.provide=g_,X.useClass=g_,X[kz]=[i3,_.Bl,_.U5],X));X={};C.addProvider((X.provide=pY,X.useClass=pY,X[kz]=[_.Bl,_.uX],X));C.addProvider({provide:uTc,useValue:Pkm});C.addProvider({provide:s8x,useValue:l2F});C.addProvider({provide:SS,useClass:SS});X={};C.addProvider((X.provide=WW,X.useClass=WW,X[kz]=[i3],X));X={};C.addProvider((X.provide=aM,X.useClass=aM,X[kz]=[_.zf,_.uX],X));X={};C.addProvider((X.provide=BQ,X.useClass=BQ,X[kz]=[_.uX],X));
X={};C.addProvider((X.provide=$k,X.useClass=$k,X[kz]=[pn],X));C.addProvider({provide:ERr,useFactory:_.Vt.getInstance});X={};C.addProvider((X.provide=LD,X.useClass=LD,X[kz]=[xk,ERr,_.uX],X));C.addProvider({provide:rC,useClass:rC});C.addProvider({provide:SQ,useClass:SQ});C.addProvider({provide:gC,useClass:gC});C.addProvider({provide:_.Ub,useClass:_.Ub});C.addProvider({provide:VS,useClass:VS});X={};C.addProvider((X.provide=D2,X.useClass=D2,X[kz]=[pn],X));X={};C.addProvider((X.provide=z$,X.useClass=z$,
X[kz]=[_.uX],X));X={};C.addProvider((X.provide=CY,X.useClass=CY,X[kz]=[_.uX],X));X={};C.addProvider((X.provide=XS,X.useClass=XS,X[kz]=[_.uX],X));_.b("web_enable_prefetching_videos_on_home")&&(C.addProvider({provide:ui,useClass:ui}),C.addProvider({provide:Zr,useClass:Zr}));X={};C.addProvider((X.provide=GM,X.useClass=GM,X[kz]=[_.uX],X));C.addProvider({provide:A4,useClass:A4});X={};C.addProvider((X.provide=QS,X.useClass=QS,X[kz]=[_.Bl,_.uX],X));X={};C.addProvider((X.provide=PQ,X.useClass=PQ,X[kz]=[_.uX],
X));X={};C.addProvider((X.provide=GB,X.useClass=GB,X[kz]=[_.Bl,_.uX],X));C.addProvider({provide:FO,useClass:FO});C.addProvider({provide:dC,useClass:dC});X={};C.addProvider((X.provide=fD,X.useClass=fD,X[kz]=[pn,_.uX],X));C.addProvider({provide:Rn,useClass:Rn});X={};C.addProvider((X.provide=jS,X.useClass=jS,X[kz]=[pn,_.uX,_.Bl],X));X={};C.addProvider((X.provide=M9,X.useClass=M9,X[kz]=[_.uX],X));X={};C.addProvider((X.provide=zM,X.useClass=zM,X[kz]=[_.uX,_.Bl],X));X={};C.addProvider((X.provide=k4,X.useClass=
k4,X[kz]=[_.uX,_.Bl],X));X={};C.addProvider((X.provide=oM,X.useClass=oM,X[kz]=[_.pT],X));X={};C.addProvider((X.provide=cW,X.useClass=cW,X[kz]=[_.pT],X));X={};C.addProvider((X.provide=l3,X.useClass=l3,X[kz]=[_.pT],X));C.addProvider({provide:$4,useClass:$4});C.addProvider({provide:ig,useClass:ig});C.addProvider({provide:Y4,useClass:Y4});C.addProvider({provide:BW,useClass:BW});C.addProvider({provide:PW,useClass:PW});C.addProvider({provide:t4,useClass:t4});C.addProvider({provide:AE,useClass:AE});_.b("kevlar_enable_mss_lazy_load")&&
C.addProvider({provide:_.Vs,useClass:hGX});C.addProvider({provide:_.lg,useClass:mf});C.addProvider({provide:mQ,useFactory:function(){return _.Wf.getInstance()}});
C.addProvider({provide:B8Y,useFactory:Q$j});C.addProvider({provide:vW,useFactory:function(){return _.oc.getInstance()}});
C.addProvider({provide:Jok,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});X={};C.addProvider((X.provide=_.B$,X.useClass=_.B$,X[kz]=[_.pT,_.uX,_.X5,B8Y,vW,mQ,Jok,Mr],X));C.addProvider({provide:_.Mx,useClass:S0d});C.addProvider({provide:_.kvo,useClass:iyY});X={};C.addProvider((X.provide=N7,X.useClass=N7,X[kz]=[_.kvo],X));X={};C.addProvider((X.provide=_.bi,X.useFactory=function(O){return O.upliftCompletionResolver.promise},X[kz]=[hPU],X));
X=_.dq("IS_SHELL_LOAD")?"aa":"eocs";var c=_.dq("IS_SHELL_LOAD")?3:2;_.uP().parkOrScheduleJob(function(){L5G()},c,X);
_.uP().parkOrScheduleJob(function(){_.iX().resolve(KA).start()},2,"eocs");
_.uP().parkOrScheduleJob(function(){biN()},2,"eocs");
_.uP().parkOrScheduleJob(function(){_.iX().resolve(QH).start()},2,"eocs");
_.b("kevlar_debug_data_app_registration_ks")||aMZ();C.addProvider({provide:_.B0,useValue:new wvt(D.root)});C.addProvider({provide:cf,useValue:new AGd});C.addProvider({provide:_.zvt,useValue:new Hf6(D.root)});C.addProvider({provide:_.Qt,useValue:new J2X});C.addProvider({provide:_.HV,useClass:lC});C.addProvider({provide:jAG,useClass:sj});_.b("kevlar_network_sli_killswitch")||C.addProvider({provide:RjN,useValue:IzN});C.addProvider({provide:Tqp,useFactory:L4o});X={};C.addProvider((X.provide=ze6,X.useFactory=
pyh,X[kz]=[_.bi,i3,_.At],X));X={};C.addProvider((X.provide=JpN,X.useClass=q9,X[kz]=[ze6],X));C.addProvider({provide:hi3,useClass:Bo1});C.addProvider({provide:GvN,useClass:TVt});X=[].concat(_.VB(j5));_.b("web_continuation_response_processing")&&X.push(_.nI);X.push(pwq);_.b("enable_share_panel_navigation_logging_fix_on_web")&&X.push(_.uCJ);C.addProvider({provide:mTm,useValue:X});C.addProvider({provide:YhR,useClass:ZyG});C.addProvider({provide:cgt,useClass:lh3});X={};C.addProvider((X.provide=e5m,X.useClass=
c_p,X[kz]=[pn],X));_.qX.addLowPriorityJob(function(){Ycn()});
X={};C.addProvider((X.provide=Ltd,X.useFactory=function(O){return function(P){var k,u=(k=_.r(P.commandMetadata,_.ge))==null?void 0:k.url;if(!u)throw new _.Zf("No URL for PBJ Command",P);u=Mcm(u,{pbj:"1"});k=P5t(u,{})||{};k=Object.assign({},k,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.q6("STS").toString()});P=_.EY({command:JSON.stringify(P),session_token:_.q6("XSRF_TOKEN")});return O.fetch(u,{method:"POST",headers:k,body:P})}},X[kz]=[cgt],X));
C.addProvider({provide:qOY,useFactory:function(){var O={};return O.CSI=mEm(),O.ECATCHER=s05(),O}});
C.addProvider({provide:riJ,useClass:fhp});X=[];X.push(C.resolve(GvN));c={};c=(c.client_location=_.Vt.getInstance(),c.consistency=_.O33(),c.entities=C.resolve(nFG),c.response_received_commands=C.resolve(YhR),c.store=C.resolve(_.LDo),c.tokens=C.resolve(GvN),c.service_params=C.resolve(riJ),c);if(_.b("web_shorts_prefetch_service_enabled")){var W=new nTX(C.resolve(_.Tc));c.shorts_prefetch=W}c.adblock_detection=C.resolve(e5m);C.addProvider({provide:_.Se,useClass:_.Se});W=C.resolve(_.fY);var p=[];_.b("PremiumClientSharedConfig__enable_att_context_processor")&&
(C.addProvider({provide:QGp,useClass:iKN}),p.push(C.resolve(QGp)));if(_.b("owl_pl_await")){var g={};C.addProvider((g.provide=yUk,g.useFactory=function(O){return new Nqw(O)},g[kz]=[_.Se],g));
p.push(C.resolve(yUk))}sWN(W,C.resolve(cgt),C.resolve(Vj1),c,C.resolve(_.Tc),X,p,C.resolve(JpN),C.resolve(hi3));C.addProvider({provide:_.Bl,useValue:_.Tr.instance});_.b("start_client_gcf")&&C.addProvider({provide:Gu,useValue:I7g()});C.addProvider({provide:mmN,useFactory:function(){return new mmN(_.iX().resolve(_.Se),_.oc.getInstance())}});
_.uP().parkOrScheduleJob(function(){ePY()},1,"eocs");
X={};C.addProvider((X.provide=rb,X.useClass=rb,X[kz]=[_.At,_.Bl],X));C.addProvider({provide:_.Cqt,useFactory:_.wb.getInstance});_.uP().parkOrScheduleJob(function(){_.iX().resolve(rb).refresh()},0,"eocs");
C.addProvider({provide:_.hT,useClass:a1N});_.b("kevlar_signal_collection_killswitch")||(X={},C.addProvider((X.provide=AwN,X.useClass=AwN,X[kz]=[xk,O5],X)),_.uP().parkOrScheduleJob(function(){_.iX().resolve(AwN).record()},1,"eocs"));
_.b("web_debug_handler_registration_killswitch")||_.uP().parkOrScheduleJob(function(){Ujm("DOWNLOAD_PES",uGJ);_.b("offline_client_state_export_ks")||Ujm("OFFLINE_CLIENT_STATE",vvW)},0,"eocs");
_.b("kevlar_prevent_polymer_dynamic_font_load")&&_.uP().parkOrScheduleJob(function(){var O=[_.kX(OCo),_.kX(Agw)];O=_.U(O);for(var P=O.next();!P.done;P=O.next()){P=P.value;var k=document.createElement("link");_.Ou(k,P,"stylesheet");document.head.appendChild(k)}},1,"eocs");
X=D.injector.resolve(_.Bl);_.u71.instance=new _.u71(X);MM5(aNp(new kLw(X)));X={};D.injector.addProvider((X.provide=iV,X.useFactory=function(O){(O=O==null?void 0:O.getCurrentPage())?O=O.visibilityObserver:(JYk||(JYk=Aeh()),O=JYk);return O},X[kz]=[_.vK(_.lu)],X.skipCache=!0,X));
C.addProvider({provide:_.wB,useClass:qT});C.addProvider({provide:RL,useClass:iwJ});D.injector.addProvider({provide:I2M,useValue:nNt});C.addProvider({provide:X1f,useValue:XtN});C.addProvider({provide:gqM,useValue:UQR});C.addProvider({provide:_.Hc,useValue:QgR});D=C.addProvider;Wxt||(Wxt=new oQt);D.call(C,{provide:_.eW,useValue:Wxt});C.addProvider({provide:_.z2,useValue:_.q6("HTML_DIR")==="rtl"?"rtl":"ltr"});C.addProvider({provide:jGp,useClass:oXt});C.addProvider({provide:_.a3,useClass:Ej});_.iX().addProvider({provide:quU,
useValue:_.b("enable_web_delhi_icons")?yYG.concat(wLN):YUU.concat(nlG)});C.addProvider({provide:_.NT,useClass:_.NT});C.addProvider({provide:_.gzo,useValue:new UGw});C.addProvider({provide:yPU,useClass:NHw});C.addProvider({provide:bg,useClass:bg});C.addProvider({provide:hE,useClass:hE});D={};C.addProvider((D.provide=J4,D.useClass=J4,D[kz]=[_.Bl,_.p6],D));C.addProvider({provide:TM,useClass:TM});C.addProvider({provide:DJX,useClass:dmt});C.addProvider({provide:mu,useClass:mu});C.addProvider({provide:PxJ,
useValue:lyg});C.addProvider({provide:_.e1,useClass:Yut});_.b("enable_payments_purchase_manager")&&C.addProvider({provide:K$U,useClass:BHt});C.addProvider({provide:U31,useFactory:function(){return function(O){return _.IfN(O)}}});
C.addProvider({provide:_.ypk,useClass:nXw});D={};C.addProvider((D.provide=Z2,D.useClass=Z2,D[kz]=[_.ypk],D));C.addProvider({provide:x4,useClass:x4});C.addProvider({provide:qmU,useValue:xJk});C.addProvider({provide:w1J,useValue:_.O7G});C.addProvider({provide:htW,useClass:fHk});C.addProvider({provide:p2U,useValue:Oq6});D={};C.addProvider((D.provide=SOt,D.useClass=U6w,D[kz]=[p2U],D));D={};C.addProvider((D.provide=_.c3,D.useClass=$XG,D[kz]=[SOt],D));D={};C.addProvider((D.provide=_.yH,D.useClass=YI,D[kz]=
[_.gp,_.HV],D));if(_.b("web_explore_hub_on_hover")||_.b("web_client_explore_hub_on_hover"))D={},C.addProvider((D.provide=KD,D.useClass=KD,D[kz]=[_.Bl,mQ],D));if(_.b("web_enable_renderer_logger")){var a=new jan;Wam(function(){a.abort()});
C.addProvider({provide:yQn,useValue:new $mG(a.signal)})}C.addProvider({provide:Aj4,useValue:tam});C.addProvider({provide:vWn,useClass:wIG});_.b("web_use_flow_state_manager")&&(C.addProvider({provide:_.dn,useClass:wtk}),D={},C.addProvider((D.provide=RF,D.useClass=RF,D[kz]=[_.dn],D)),D={},C.addProvider((D.provide=lm,D.useClass=lm,D[kz]=[_.gp,_.dn],D)),D={},C.addProvider((D.provide=D3,D.useClass=D3,D[kz]=[_.gp,_.dn,_.uX],D)),D={},C.addProvider((D.provide=CD,D.useClass=CD,D[kz]=[_.Bl,_.uX],D)),D={},C.addProvider((D.provide=
Xh,D.useClass=Xh,D[kz]=[_.dn,_.uX],D)))}},zaP);var MeN={},qU6=(MeN.initialized={priority:10,callback:function(){if(!d63){B2F();Eso("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.LC(_.AZ(Eso,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.b("log_heartbeat_with_lifecycles")){var D={};sA.instance||(sA.instance=new sA);sA.instance.install((D.document_visible={callback:tir,priority:10},D.document_hidden={callback:tir,priority:10},D))}else _.$l(document,"visibilitychange",tir);d63=!0}(D=_.LN())&&D!=="UNDEFINED_CSN"&&gYo(D)}},MeN);var foP={},dNt=(foP.initialized={callback:function(D){var C=_.Ia(232091),X=D.injector.resolve(_.X5);_.Vc(X,C);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?OvF()&&_.Hj(X,C):(D=D.injector.resolve(U31)("refresh_detector"))&&(D.get("first_tab_load")?_.Hj(X,C):D.set("first_tab_load","1"))}},foP);var RaG={},loU=(RaG.initialized={priority:10,callback:QtJ},RaG);var DIG={},CVp=(DIG.initialized={priority:0,callback:function(){var D=new UXM,C="other";_.PT?C="chrome":_.Au?C="firefox":_.Di?C="safari":AC&&(C="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(X){D.increment(_.nC(),X,C)}).catch(function(){D.increment(_.nC(),!1,C)}):D.increment(_.nC(),!1,C)}},DIG);var XfG={},cIU=(XfG.rendering={priority:8,callback:Bcn},XfG);var ob6={},WR6=(ob6.rendering={priority:10,callback:nRh},ob6.rendered={callback:yih},ob6),pfw={},S6N=(pfw.rendering={callback:nRh},pfw.rendered={callback:yih},pfw);var UIp=!1,gbN={},a0X=(gbN.initialized={priority:10,callback:function(){UIp||(jSo({didPatch:function(D){D.el&&HpW(D.el,D.props)},
didUnmount:function(D){ViJ(D.el)}}),UIp=!0)}},gbN);var I0N=/^\/shorts\/?$/;_.M6("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:{}}}}}}});_.b("kevlar_use_common_module_manager_ks")?(_.qYr(new w5r),SWd()):FDJ();
(function(){var D=document.querySelector("ytd-app");if(!D)throw Error("Yj");D=new nA({root:D,injector:_.iX()});D.install(qU6);var C={};D.install((C.initialized={priority:10,callback:oAh},C));_.b("wp_lat_b")&&(C={},D.install((C.initialized={priority:10,callback:function(){K4W()}},C)));
C={};D.install((C.rendered={priority:0,callback:CBr},C));C={};D.install((C.rendered={priority:0,callback:function(){_.qX.addLowPriorityJob(function(){_.WeG>1&&(Mxr(),lX5())},4E4)}},C));
D.install(ZCX);D.install(dNt);D.install(a0X);CdF();D.install(qYG);D.install(NT1);D.install(wKU);D.install(peN);D.install(IHP);D.install(jQk);D.install(jiN);_.b("kevlar_enable_mss_lazy_load")&&D.install(loU);D.install(ygX);D.install(CVp);if(!_.dq("IS_SHELL_LOAD")||_.b("kevlar_fetch_initial_data_promise_client")||_.b("sw_nav_preload_pbj")){var X=_.mC(window.location.href);C=X&&X==="/watch";X=X&&X.match(I0N);C?D.install(S6N):X?D.install(cIU):D.install(WR6)}else D.install(eG6);D.install(Vqo);_.b("web_enable_prefetching_videos_on_home")&&
D.install(lft);_.b("start_client_gcf")&&D.install(Mjp);D.install(ChG);(new ghM).increment("INSTALLED");D.install(dG1);D.install(LCX);D.transition("initialized");vsF();pio()})();
_.U2=[[["b3NhNmkxeGxraW5kI3J2c20=","dGVzZDFqdmFsdWUjeDJkaWRh"],"aHU1cGJyQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjYzR5bzFu"]];_.S_=["cyMyOHc0cmtxNzdjYzhnbG9iYWxDYWxsYmFjaw==","Nm5zdXhya2x4b25BYm5vcm1hbGl0eURldGVjdGVkI3J0","b25BZFNraXAjb3h3NmQ0eHg0ZWxu","OHp0ZXF0Zml0ZXJhd19wbGF5ZXJfcmVzcG9uc2UjOWs=","bDdoYmFkU2xvdHMjZm52eWhnbQ=="];_.hh="cyMyOHc0cmtxNzdjYzhnbG9iYWxDYWxsYmFjaw== Nm5zdXhya2x4b25BYm5vcm1hbGl0eURldGVjdGVkI3J0 b25BZFNraXAjb3h3NmQ0eHg0ZWxu OHp0ZXF0Zml0ZXJhd19wbGF5ZXJfcmVzcG9uc2UjOWs= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3Mjbnl5YzhvN28wM2w1d2ViX3BsYQ== YWJfc2FfZWYjZjVnY3l2M2NtaXBk bDdoYmFkU2xvdHMjZm52eWhnbQ==".split(" ");
_._ModuleManager_initialize=function(D,C){if(!_.Gy){if(!_.Ty)return;_.qYr(_.Ty())}_.Gy.setAllModuleInfoString(D,C)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var xIp,LRt;_.C$=function(D){return!!D.getOptions("captions")};
_.hLp=function(D){return(D=D.getOption("captions","track"))?!!D.displayName:!1};
_.XP=function(D,C){_.Lm(C,D,function(){return xIp[C]},function(X){xIp[C]=X;
if(!_.b("mweb_player_ve_show_ks")){var c=_.LN(0);c&&X&&_.Go(c,X)}})};
_.c4=function(D){(D=xIp[D])&&_.Hj(_.iO(),D)};
xIp={};var sXX;/*

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
*/
_.mZ({_template:function(){if(sXX!==void 0)return sXX;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;LRt===void 0&&(LRt=document.createElement("template"));var c=LRt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return sXX=D},
is:"tp-yt-paper-checkbox",behaviors:[_.OW5],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.A0(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var D=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),C="px",X=D.match(/[A-Za-z]+$/);X!==null&&(C=X[0]);D=parseFloat(D);X=8/3*D;C==="px"&&(X=Math.floor(X),X%2!==D%2&&X++);this.updateStyles({"--paper-checkbox-ink-size":X+
C})}})},
_computeCheckboxClass:function(D,C){var X="";D&&(X+="checked ");C&&(X+="invalid");return X},
_computeCheckmarkClass:function(D){return D?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.aZb._createRipple.call(this)}});var mIk=new _.A7("radioButtonSurveyOptionRenderer"),eLt=new _.A7("checkboxSurveyOptionRenderer");var Ebt;var tfY;var N0G=0,oy=function(){var D=_.w.call(this)||this;D.selected=!1;D.isOverlay=!1;D.inputId="toggle-option-"+N0G;N0G++;return D};
_.h(oy,_.w);oy.prototype.onTap=function(){_.lE(this.hostElement,"ytd-toggle-option-clicked")};
_.V([_.n(),_.z("design:type",String)],oy.prototype,"label",void 0);_.V([_.n(),_.z("design:type",String)],oy.prototype,"inputId",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oy.prototype,"selected",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oy.prototype,"isOverlay",void 0);_.V([_.yj({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.z("design:paramtypes",[])],oy);
_.G(oy,"ytd-toggle-option-renderer",function(){if(tfY!==void 0)return tfY;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return tfY=D},{mode:1});var W4=function(){var D=_.w.apply(this,arguments)||this;D.isToggleOption=!1;D.isOverlay=!1;return D};
_.h(W4,_.w);W4.prototype.onTap=function(D){D.preventDefault();this.data&&(D=!this.data.checked,this.set("data.checked",D),_.lE(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:D,value:this.data.value}))};
_.$a.Object.defineProperties(W4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
W4.prototype.onTap=W4.prototype.onTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],W4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],W4.prototype,"isToggleOption",void 0);_.V([_.n(),_.z("design:type",Object)],W4.prototype,"isOverlay",void 0);_.V([_.e("data.responseText"),_.z("design:type",String),_.z("design:paramtypes",[])],W4.prototype,"label",null);
_.V([_.$n("ytd-toggle-option-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],W4.prototype,"onTap",null);_.V([_.yj({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],W4);
_.G(W4,"ytd-checkbox-survey-option-renderer",function(){if(Ebt!==void 0)return Ebt;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ebt=D},{mode:1});var Y6t;var yI3;var p$=function(){var D=_.w.apply(this,arguments)||this;D.checked=!1;D.isToggleOption=!1;return D};
_.h(p$,_.w);p$.prototype.onTap=function(){this.data&&(this.checked?_.DS(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.DS(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
p$.prototype.onTap=p$.prototype.onTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],p$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],p$.prototype,"checked",void 0);_.V([_.n(),_.z("design:type",Object)],p$.prototype,"isToggleOption",void 0);_.V([_.$n("ytd-toggle-option-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],p$.prototype,"onTap",null);
_.V([_.yj({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],p$);
_.G(p$,"ytd-radio-button-survey-option-renderer",function(){if(yI3!==void 0)return yI3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return yI3=D},{mode:1});var SF=function(){var D=_.w.apply(this,arguments)||this;D.disableAnimation=!1;D.isToggleOption=!0;D.followUpSurveyCommand=null;D.selectedRatingEndpoint=null;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.styleOverrideAttribute=!0;D.isDarkMode=!1;D.isSubmitted=!1;D.roundedContainer=!0;D.improveShortsResponseRate=_.b("web_improve_shorts_response_rate");D.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 D};
_.h(SF,_.w);_.S=SF.prototype;
_.S.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"}}}}};
_.S.attached=function(){var D=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(X){var c;if((c=X[0])!=null&&c.isIntersecting){_.Pc().reportShown(D.hostElement);var W;(W=D.intersectionObserver)==null||W.unobserve(D.hostElement)}},{rootMargin:"0px",
threshold:.6});var C;(C=this.intersectionObserver)==null||C.observe(this.hostElement)};
_.S.onDarkModeToggledAction=function(D){this.isDarkMode=D};
_.S.dataChanged=function(){var D;if(((D=this.data)==null?void 0:D.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var C;((C=this.data)==null?void 0:C.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var X,c,W,p;this.darkColorPalette=(X=this.data)==null?void 0:(c=X.inlineContent)==null?void 0:(W=c.compactVideoRenderer)==null?void 0:(p=W.thumbnail)==null?
void 0:p.darkColorPalette;var g,a,O,P;this.lightColorPalette=(g=this.data)==null?void 0:(a=g.inlineContent)==null?void 0:(O=a.compactVideoRenderer)==null?void 0:(P=O.thumbnail)==null?void 0:P.lightColorPalette;var k,u;if(((k=this.data)==null?0:(u=k.inlineContent)==null?0:u.compactVideoRenderer)&&this.isShortsStyle){var Q,B,K,L;D=_.c0((Q=this.data)==null?void 0:(B=Q.inlineContent)==null?void 0:(K=B.compactVideoRenderer)==null?void 0:(L=K.thumbnail)==null?void 0:L.thumbnails);_.Os(this.hostElement,
{"--yt-background-url":"url("+D+")"})}};
_.S.handleRequestCompletion=function(){this.hostElement.hidden&&_.lE(this.hostElement,"yt-dismissible-item-dismissed")};
_.S.onPopupClosed=function(D){var C;((C=D.detail)==null?void 0:C.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.DS(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.S.handleInlineSurveyRatingSelect=function(D,C){var X=this;this.selectedRatingEndpoint=D;this.followUpSurveyCommand=C;this.expanded=!!D;this.getOptionRenderers().forEach(function(c,W){X.notifyPath("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked");X.set("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),D=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.DS(this.hostElement,"yt-reel-non-video-content-dismissal-command",[D]))};
_.S.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.DS(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var D,C=(D=this.data)==null?void 0:D.dismissalEndpoint;C&&this.ytComponentBehavior.resolveCommand(C)}};
_.S.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.DS(this.hostElement,"yt-close-popup-action"))};
_.S.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var D=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{D=this.getOptionRenderers().filter(function(c){return c.checked});
if(D.length===0)return;D=D.map(function(c){return c.responseEndpoint})}var C=[];
D.forEach(function(c,W){W!==0&&(c=_.r(c,_.tT))&&c.feedbackToken&&C.push(c.feedbackToken)});
if(D=D[0]){var X={};C.length>0&&(X.extra_feedback_tokens=C);this.ytComponentBehavior.resolveCommand(D,{form:X})}}};
_.S.getOptionRenderers=function(){var D=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(C){D.isSingleSelect=!!_.r(C,mIk);return D.isSingleSelect?_.r(C,mIk):_.r(C,eLt)}):[]};
_.S.handleInlineSurveyOptionSelect=function(D){D=this.optionSelector.indexOf(D);D!==-1&&this.optionSelector.selectIndex(D)};
_.S.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.S.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
_.S.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D=D&&this.maybeGetBackgroundColor(D);this.dismissibleEl.style.backgroundColor=!D||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.mW(D)};
_.$a.Object.defineProperties(SF.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
SF.prototype.colorPaletteChanged=SF.prototype.colorPaletteChanged;SF.prototype.onPopupClosed=SF.prototype.onPopupClosed;SF.prototype.handleRequestCompletion=SF.prototype.handleRequestCompletion;SF.prototype.dataChanged=SF.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],SF.prototype,"actionHandlerBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],SF.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.kn("#follow-up-survey-options"),_.z("design:type",Object)],SF.prototype,"optionSelector",void 0);_.V([_.n(),_.z("design:type",Object)],SF.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],SF.prototype,"disableAnimation",void 0);_.V([_.n(),_.z("design:type",Object)],SF.prototype,"isToggleOption",void 0);_.V([_.n(),_.z("design:type",Object)],SF.prototype,"followUpSurveyCommand",void 0);_.V([_.n(),_.z("design:type",Object)],SF.prototype,"selectedRatingEndpoint",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],SF.prototype,"expanded",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],SF.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],SF.prototype,"isShortsStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],SF.prototype,"styleOverrideAttribute",void 0);_.V([_.n(),_.z("design:type",Boolean)],SF.prototype,"isSingleSelect",void 0);_.V([_.n(),_.z("design:type",Object)],SF.prototype,"isDarkMode",void 0);
_.V([_.n(),_.z("design:type",Object)],SF.prototype,"lightColorPalette",void 0);_.V([_.n(),_.z("design:type",Object)],SF.prototype,"darkColorPalette",void 0);_.V([_.e("selectedRatingEndpoint","isShortsStyle"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SF.prototype,"isOptionSelected",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],SF.prototype,"roundedContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],SF.prototype,"improveShortsResponseRate",void 0);_.V([_.kn("#dismissible"),_.z("design:type",HTMLElement)],SF.prototype,"dismissibleEl",void 0);_.V([_.kn("#dismiss-button yt-icon-button"),_.z("design:type",HTMLElement)],SF.prototype,"dismissButtonEl",void 0);_.V([_.kn("#inline-survey-header yt-icon-button"),_.z("design:type",HTMLElement)],SF.prototype,"inlineHeaderDismissButtonEl",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SF.prototype,"dataChanged",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SF.prototype,"handleRequestCompletion",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],SF.prototype,"onPopupClosed",null);
_.V([_.vr("darkColorPalette","lightColorPalette","isDarkMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SF.prototype,"colorPaletteChanged",null);_.V([_.yj({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],SF);
_.G(SF,"ytd-inline-survey-renderer",function(){if(Y6t!==void 0)return Y6t;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Y6t=D},{mode:1});var nb6=["en-CA","en","es-MX","fr-CA"];_.wft=_.F(function(D){var C=_.Ro(D,{isOverlay:!1,isModern:!1}),X=C.captionIconType,c=C.onClick;D=C.ariaLabel;var W=C.ariaPressed,p=C.isOverlay,g=C.isModern;C=_.aX("button",function(P){_.XP(P,127299)});
var a=_.I_(function(P){_.c4(127299);c==null||c(P);return!1}),O={};
return _.A("ytm-closed-captioning-button",{class:_.g$("ytmClosedCaptioningButtonHost",(O.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return X()===-1&&p()},O.ytmClosedCaptioningButtonIconDisabled=function(){return X()===-1&&!p()},O))},_.A("button",{el:C,
class:"ytmClosedCaptioningButtonButton",title:D,"aria-label":D,"aria-pressed":W,"on:click":a},_.A(_.$_,{icon:function(){var P="",k=g();var u=k?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";k=k?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Q=_.PE().get("hl");u=!Q||nb6.includes(Q)?u:k;k=X();switch(k){case -1:case 0:P=u;break;case 1:P=u+"_FILLED";break;default:_.qf(k)}return P}})))},"qh");
_.wft.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.db=function(D,C,X,c,W){var p={};C&&(p[C]=X);c?p.errorType=c:W&&(p.errorReason=W);_.zu(D,p);_.je()};
_.RD=function(D){var C=_.uP();return _.nBq(C,D,1)};
_.mZ({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 D=this.query;D&&(this.full||D[0]==="("||(D="("+D+")"),this._mq=window.matchMedia(D),this._add(),this.queryHandler(this._mq))},
queryHandler:function(D){this._setQueryMatches(D.matches)}});var k5p;var ufo;var QXG=function(){};
_.S=QXG.prototype;_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._noinkChanged=function(){};
_.S._focusedChanged=function(){};
_.S._createRipple=function(){};
_.S.registered=function(){};
_.S._invalidChanged=function(){};
_.S.hasValidator=function(){};
_.S.validate=function(){};
_.S._getValidity=function(){};
_.S._requiredChanged=function(){};
_.S._valueChanged=function(){};
_.S._checkedChanged=function(){};
_.S._buttonStateChanged=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
QXG=_.mZ({is:"tp-yt-paper-radio-button",_template:function(){if(ufo!==void 0)return ufo;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;k5p===void 0&&(k5p=document.createElement("template"));var c=k5p;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return ufo=D},
behaviors:[_.OW5],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(){_.A0(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var D=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),C=Math.floor(3*D);C%2!==D%2&&C++;this.updateStyles({"--paper-radio-button-ink-size":C+"px"})}})}});var B0U;var b2P;_.mZ({_template:function(){if(b2P!==void 0)return b2P;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;B0U===void 0&&(B0U=document.createElement("template"));var c=B0U;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return b2P=D},
is:"tp-yt-paper-radio-group",behaviors:[_.WXe],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(D){var C=this._valueToItem(D);if(!C||!C.hasAttribute("disabled")){if(this.selected){C=this._valueToItem(this.selected);if(this.selected==D)if(this.allowEmptySelection)D="";else{C&&(C.checked=!0);return}C&&
(C.checked=!1)}_.zA.select.apply(this,[D]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(D){this._focusPrevious();D.preventDefault();this._activateFocusedItem()},
_onDownKey:function(D){this._focusNext();D.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(D){_.o5d._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(D){_.o5d._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.zA._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.RC._resetTabindices.apply(this,arguments);this.items.forEach(function(D){D.removeAttribute("aria-selected")},this)}});var rIG;_.sI("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var li=function(){return _.w.apply(this,arguments)||this};
_.h(li,_.w);_.S=li.prototype;_.S.computeHasPrimaryIcon=function(D){return!(!D.icon&&!D.thumbnail)};
_.S.computeHasSecondary=function(D){return!(!D.secondaryIcon&&!D.secondaryNotificationText)};
_.S.computeHideSecondaryString=function(D){return!_.b("disable_hide_empty_secondary_string")&&!D.secondaryNotificationText};
_.S.computeCompactLinkStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeHasFitHeight=function(D){return D==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.S.isActiveEndpoint=function(D){return(D=this.get("commandMetadata.webCommandMetadata.url",D))?_.mC(window.location.href)!=="/account_transfer_channel"&&_.mC(window.location.href)!=="/gaia_link"&&_.mC(window.location.href)!=="/channel_switcher"||D!=="/account"?_.mC(window.location.href)===D:!0:!1};
_.S.onTap=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.cE(this.hostElement,[this.data.serviceEndpoint])};
li.prototype.onTap=li.prototype.onTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],li.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.z("design:type",Boolean)],li.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.z("design:type",String)],li.prototype,"compactLinkStyle",void 0);
_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],li.prototype,"icon",void 0);_.V([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.z("design:type",Object)],li.prototype,"secondaryIcon",void 0);_.V([_.n({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],li.prototype,"hasSecondary",void 0);_.V([_.n({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],li.prototype,"hideSecondaryString",void 0);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],li.prototype,"onTap",null);_.V([_.yj({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],li);
_.G(li,"ytd-compact-link-renderer",function(){if(rIG!==void 0)return rIG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rIG=D},{mode:1});var KRw;_.sI("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var DM=function(){var D=_.w.apply(this,arguments)||this;D.role="link";D.tabindex="0";D.actionMap=_.b("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 D};
_.h(DM,_.w);_.S=DM.prototype;_.S.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.FU()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.S.getCurrentTheme=function(){return _.Zg()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.FU()};
_.S.onThemeSelected=function(D,C){var X=D||C?D:_.wL(),c=(X&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!X&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.gAR(_.mC(window.location.href));_.$C(0,165,D);_.$C(0,174,C);this.prefs.save();c&&_.DS(this.hostElement,"yt-dark-mode-toggled-action",[X]);_.DS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.S.onTap=function(){this.data.serviceEndpoint&&_.cE(this.hostElement,[this.data.serviceEndpoint])};
_.S.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.S.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.S.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
DM.prototype.onTap=DM.prototype.onTap;DM.prototype.dataChanged=DM.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],DM.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.kO),_.z("design:type",Object)],DM.prototype,"paperItemBehaviors",void 0);_.V([_.n(),_.z("design:type",Object)],DM.prototype,"data",void 0);_.V([_.n({value:function(){return _.PE()}}),
_.z("design:type",_.v6)],DM.prototype,"prefs",void 0);_.V([_.n(),_.z("design:type",Object)],DM.prototype,"label",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],DM.prototype,"role",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],DM.prototype,"tabindex",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DM.prototype,"dataChanged",null);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DM.prototype,"onTap",null);_.V([_.yj({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],DM);
_.o3()(DM,"ytd-toggle-theme-compact-link-renderer",function(){if(KRw===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);KRw=D}D=KRw;return D},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var FRY,Z2X,G5t,T0N,H23,JIk,zLp,jXw,MfY,q66,XHX,ay,CQw,dI6,DOY,l0t,RL1,f0o,c0k,oa1,WFG,pH3,Iy,SrG,UOP,Olo,AJ,a4U,$V,OR,P4,I4G,gat,A0U,PQ3,$Op,vat,ilP,kTk,QS6,Brt,blp,r0t,KF3,h2G,xOP,LFY,sSX,mO1,Ea1,tkG,Nrt,y0t,wHw,ZlP,GTG,VkX,TrX,J0w,z2o,jSp,Mko,qrX,f4t,dOU,l4U,c8G,X7G,DF6,or3,CEo,WPw,auN,grw,SnU,UFt,v4,Iuw,A8N,PE1,$Ft,QB3,BlG,bNN,r81,KPX,hI6,xF6,LPp,sB6,eI1,ErP,tcP,Nlt,Yno,y8X,nrw,w73,GCt,vrG;
_.UR=function(D){var C=new _.Zf("Error accessing DB");return _.kOR().then(function(X){return new Promise(function(c,W){try{var p=X.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(D);p.onsuccess=function(){var g=p.result;c(g?g.value:null)};
p.onerror=function(){C.params={key:D,source:"onerror"};W(C)}}catch(g){C.params={key:D,
thrownError:String(g)},W(C)}})},function(){return null})};
FRY=function(D,C){return _.aI(D.entities,"inlineExpansionEntity",C)};
Z2X=function(D,C){return _.aI(D.entities,"flowStateEntity",C)};
G5t=function(D,C){if(D&&C){var X=_.uK();X().set(D,C);_.$Z3(X())}};
_.VfP=function(D,C){if(D&&C){var X=_.uK();X().set(D,C);_.$Z3(X())}};
T0N=function(D,C){return _.aI(D.entities,"contextNoteUserRatingEntityPayload",C)};
H23=function(D){return _.Yj(D,function(C){return C.languageCode==="en"})};
JIk=function(D){var C=gN;if(_.hLp(D))D.setOption("captions","stickyLoading",{}),D.setOption("captions","track",{});else{var X=_.Yj(_.hqd(D),function(c){return c.displayName===C});
D.setOption("captions","track",X)}};
zLp=function(D){if(!D)return 0;var C=D.getPresentingPlayerType(),X=D.getVideoData();return X&&X.isLive?(D=D.getProgressState(C),D.seekableEnd-D.seekableStart):D.getDuration(C)};
jXw=function(D,C){for(var X=_.U(Object.keys(D)),c=X.next();!c.done;c=X.next())if(c=c.value,D[c]!==C[c])return!1;return!0};
MfY=function(){return document.getElementById("player-control-overlay")};
q66=function(D){D!==-1&&!_.b("player_controls_log_creation_killswitch")&&MfY()&&(_.sp("pcu_cs",D),_.sp("pcu_ce"))};
XHX=function(D,C){var X=_.di(D,{}),c=f0o("top",C),W=f0o("bottom",C),p=f0o("left",C),g=f0o("right",C);return _.P0({top:function(){return ay(X().position,c)},
bottom:function(){return ay(X().position,W)},
left:function(){return ay(X().position,p)},
right:function(){return ay(X().position,g)},
position:function(){return ay(X().positionType,dI6)},
height:function(){return ay(X().height,Iy)},
width:function(){return ay(X().width,Iy)},
"min-width":function(){return ay(X().minWidth,Iy)},
"min-height":function(){return ay(X().minHeight,Iy)},
"max-width":function(){return ay(X().maxWidth,Iy)},
"max-height":function(){return ay(X().maxHeight,Iy)},
"aspect-ratio":function(){return ay(X().aspectRatio,String)},
"margin-top":function(){return ay(X().margin,c)},
"margin-bottom":function(){return ay(X().margin,W)},
"margin-left":function(){return ay(X().margin,p)},
"margin-right":function(){return ay(X().margin,g)},
"padding-top":function(){return ay(X().padding,c)},
"padding-bottom":function(){return ay(X().padding,W)},
"padding-left":function(){return ay(X().padding,p)},
"padding-right":function(){return ay(X().padding,g)},
"flex-direction":function(){return ay(X().flexDirection,RL1)},
"justify-content":function(){return ay(X().justifyContent,l0t)},
"align-items":function(){return ay(X().alignItems,DOY)},
"flex-grow":function(){return ay(X().flexGrow,String)},
"flex-shrink":function(){return ay(X().flexShrink,String)},
"flex-basis":function(){return ay(X().flexBasis,Iy)},
"align-self":function(){return ay(X().alignSelf,DOY)},
"flex-wrap":function(){return ay(X().flexWrap,CQw)},
"align-content":function(){return ay(X().alignContent,DOY)}})};
ay=function(D,C){return D!==void 0?C(D):void 0};
CQw=function(D){switch(D){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
dI6=function(D){switch(D){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
DOY=function(D){switch(D){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"}};
l0t=function(D){switch(D){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"}};
RL1=function(D){switch(D){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"}};
f0o=function(D,C){var X=C==="rtl";switch(D){case "top":var c=c0k;break;case "bottom":c=oa1;break;case "left":c=WFG;break;default:c=pH3}return function(W){return ay(c(W,X),Iy)}};
c0k=function(D){var C=D.top;var X=D.vertical;D=D.all;var c;return(c=C!=null?C:X)!=null?c:D};
oa1=function(D){var C=D.bottom;var X=D.vertical;D=D.all;var c;return(c=C!=null?C:X)!=null?c:D};
WFG=function(D,C){var X=D.left;var c=D.end;var W=D.start;var p=D.horizontal;D=D.all;var g,a;return(a=(g=X!=null?X:C?c:W)!=null?g:p)!=null?a:D};
pH3=function(D,C){var X=D.right;var c=D.end;var W=D.start;var p=D.horizontal;D=D.all;var g,a;return(a=(g=X!=null?X:C?W:c)!=null?g:p)!=null?a:D};
Iy=function(D){var C=D.value;switch(D.unit){case "YPC_DIMENSION_UNIT_POINT":return C+"px";case "YPC_DIMENSION_UNIT_FRACTION":return C+"%";default:return""+C}};
SrG=function(D){switch(D){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"}};
UOP=function(D){var C=D!=null?D:{};D=C.fontRole;var X=C.fontSize;C=C.fontWeight;if(D!==null&&X!==null)switch(D){case "YPC_FONT_ROLE_DISPLAY":switch(X){case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(X){case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return C===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(X){case "YPC_FONT_SIZE_XL":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Olo=function(D,C,X){function c(u){return Object.values(u).map(function(Q){var B=Q.productId;Q=Q.pricingOptionIndex;return OR(W(B).pricingOptions,Q).pricingOptionId})}
function W(u){return O().get(u)}
function p(u){u=c(u);X(u)}
function g(u,Q){return Array.from(AJ(u.pricingOptions)).filter(function(B){B=_.U(B);B.next();B=B.next().value;return P4(B.pricingGroupAttributes,Q)}).map(function(B){return _.U(B).next().value})}
var a=gat([D,C],function(u,Q){var B=u==null?void 0:u.selectedPricingOptions;u={};var K=!0;if(B&&Q.length)for(var L=_.U(Q),t=L.next();!t.done;t=L.next()){t=t.value;var Y=a4U(t.pricingOptions,function(T){a:{T=T.pricingOptionId;for(var H=_.U(B),q=H.next();!q.done;q=H.next())if(q.value===T){T=!0;break a}T=!1}return T});
if(Y>=0){K=!1;var y=OR(t.pricingOptions,Y),J=void 0;u[t.groupId]={productId:t.productId,pricingOptionIndex:Y,pricingGroupAttributes:(J=y)==null?void 0:J.pricingGroupAttributes}}}K&&Q.length&&(K=OR(Q[0].pricingOptions,0),u[Q[0].groupId]={productId:Q[0].productId,pricingOptionIndex:0,pricingGroupAttributes:K==null?void 0:K.pricingGroupAttributes});return u}),O=gat([C],function(u){return new Map(u.map(function(Q){return[Q.productId,
Q]}))}),P=gat([C],function(u){var Q=new Map;
u=_.U(u);for(var B=u.next();!B.done;B=u.next()){var K=B.value;B=K.groupId;var L=K.productId;K=_.U(AJ(K.pricingOptions));for(var t=K.next();!t.done;t=K.next()){var Y=_.U(t.value);t=Y.next().value;Y=Y.next().value;Q.set(Y.pricingOptionId,{groupId:B,productId:L,index:t,pricingOption:Y,pricingGroupAttributes:Y.pricingGroupAttributes})}}return Q}),k=gat([C],function(u){var Q=new Map;
u=_.U(u);for(var B=u.next();!B.done;B=u.next()){var K=B.value;B=K.groupId;var L=K.productId,t=void 0;K=_.U(AJ((t=K.pricingGroups)!=null?t:[]));for(t=K.next();!t.done;t=K.next()){var Y=_.U(t.value);t=Y.next().value;Y=Y.next().value;Q.set(Y.pricingGroupId,{groupId:B,productId:L,index:t,pricingGroup:Y,pricingGroupAttributes:Y.pricingGroupAttributes})}}return Q});
return{getProductById:W,isProductSelected:function(u){var Q=W(u);if(!Q)return!1;var B;return((B=a()[Q.groupId])==null?void 0:B.productId)===u},
getSelectedPricingOptions:function(){return Object.values(a()).map(function(u){var Q=u.productId;u=u.pricingOptionIndex;return OR(W(Q).pricingOptions,u)})},
getSelectedPricingGroupAttributesByGroupId:function(u){var Q;return(u=(Q=a()[u])==null?void 0:Q.pricingGroupAttributes)?Array.from(u):void 0},
getSelectedProductByGroupId:function(u){var Q;return(u=(Q=a()[u])==null?void 0:Q.productId)?W(u):void 0},
onProductSelected:function(u){var Q=W(u);if(Q){var B=a(),K;if(((K=B[Q.groupId])==null?void 0:K.productId)!==u){var L=(K=(L=B[Q.groupId])==null?void 0:L.productId)?W(K):void 0;var t;K=(t=B[Q.groupId])==null?void 0:t.pricingGroupAttributes;var Y;t=(Y=B[Q.groupId])==null?void 0:Y.pricingOptionIndex;if(L&&t!==void 0)if(K){Y=g(L,K).indexOf(t);if(Y===-1)throw Error("Zj`"+t+"`"+L.productId);t=g(Q,K);Y=Y<t.length?t[Y]:t.length>0?t[0]:0}else Y=t<$V(Q.pricingOptions)?t:0;else Y=0;$V(Q.pricingOptions)<=Y&&(Y=
0);t=OR(Q.pricingOptions,Y);var y;L={};p(Object.assign({},B,(L[Q.groupId]={productId:u,pricingOptionIndex:Y,pricingGroupAttributes:(y=t==null?void 0:t.pricingGroupAttributes)!=null?y:[]},L)))}}},
onPricingOptionSelected:function(u){var Q=P().get(u);if(Q){u=Q.groupId;var B=Q.productId;Q=Q.index;var K=a(),L,t;if(((L=K[u])==null?void 0:L.productId)!==B||((t=K[u])==null?void 0:t.pricingOptionIndex)!==Q){var Y,y;L={};p(Object.assign({},K,(L[u]={productId:B,pricingOptionIndex:Q,pricingGroupAttributes:(y=(Y=K[u])==null?void 0:Y.pricingGroupAttributes)!=null?y:[]},L)))}}},
onPricingGroupSelected:function(u){var Q=k().get(u);if(Q){u=Q.groupId;var B=Q.productId,K=Q.pricingGroup.pricingGroupAttributes,L=W(B);if(L){Q=a();var t=Q[u].pricingGroupAttributes,Y;if(((Y=Q[u])==null?void 0:Y.productId)!==B||!P4(I4G(t,$V(K)),K)){Y=Array.from(K);for(K=$V(K);K<$V(t);K++){var y="",J=!1,T=Array.from(Y);T.push(OR(t,K));for(var H=_.U(L.pricingGroups),q=H.next();!q.done;q=H.next())if(q=q.value,P4(q.pricingGroupAttributes,T)){Y.push(OR(t,K));J=!0;break}else y===""&&$V(q.pricingGroupAttributes)===
T.length&&P4(I4G(q.pricingGroupAttributes,Y.length),Y)&&(y=OR(q.pricingGroupAttributes,K));J||Y.push(y)}y=Q[u].pricingOptionIndex;K=[];J=new Map;T=0;L=_.U(AJ(L.pricingOptions));for(H=L.next();!H.done;H=L.next())q=_.U(H.value),H=q.next().value,q=q.next().value,P4(q.pricingGroupAttributes,Y)&&K.push(H),P4(q.pricingGroupAttributes,t)&&J.set(H,T++);K.length===0?t=0:(t=J.get(y),t=t!==void 0&&t<K.length?K[t]:K[0]);L={};p(Object.assign({},Q,(L[u]={productId:B,pricingOptionIndex:t,pricingGroupAttributes:Y},
L)))}}}},
onClearGroupSelected:function(u){var Q=a();Q[u]&&(Q=Object.fromEntries(Object.entries(Q).filter(function(B){return _.U(B).next().value!==u})),p(Q))}}};
AJ=function(D){return function X(){var c,W,p,g,a;return _.a2(X,function(O){switch(O.nextAddress){case 1:_.m$(O,2),c=0,W=_.U(D),p=W.next();case 4:if(p.done){O.jumpTo(2);break}g=p.value;a=_.I2;return O.yield([c++,g],7);case 7:a(O.yieldResult);p=W.next();O.jumpTo(4);break;case 2:_.xF(O),_.es(O,0)}})}()};
a4U=function(D,C){D=_.U(AJ(D));for(var X=D.next();!X.done;X=D.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;if(C(c))return X}return-1};
$V=function(D){var C=0;for(D=D[Symbol.iterator]();!D.next().done;)++C;return C};
OR=function(D,C){D=_.U(AJ(D));for(var X=D.next();!X.done;X=D.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;if(X===C)return c}};
P4=function(D,C){if(!D&&!C)return!0;if(!D||!C)return!1;D=Array.from(D);C=Array.from(C);if(D.length!==C.length)return!1;for(var X=0;X<D.length;X++)if(D[X]!==C[X])return!1;return!0};
I4G=function(D,C){C=C===void 0?Infinity:C;var X=[];D=_.U(AJ(D));for(var c=D.next();!c.done;c=D.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;if(c>=C)break;c>=0&&X.push(W)}return X};
gat=function(D,C){var X,c;return function(){for(var W=D.map(function(g){return g()}),p=0;p<W.length;p++)if(!X||W[p]!==X[p]){X=W;
c=C.apply(null,_.VB(W));break}return c}};
A0U=function(D,C,X){var c=[];D=_.U(D);for(var W=D.next();!W.done;W=D.next()){W=W.value;var p=void 0;((p=C)==null?0:p.length)&&!P4(W.pricingGroupAttributes,C)||c.push({pricingOption:W,isSelected:X.includes(W.pricingOptionId)})}return c};
PQ3=function(D,C){return _.aI(D.entities,"pdpStateEntity",C)};
$Op=function(D){var C,X;return!!(D.productId&&D.groupId&&((C=D.pricingOptions)==null?0:C.length)&&D.pricingOptions.every(function(c){return c.pricingOptionId})&&((X=D.pricingGroups)==null||!X.length||Array.isArray(D.pricingGroups)&&D.pricingGroups.every(function(c){return c.pricingGroupId&&c.pricingGroupAttributes&&c.pricingGroupAttributes.length>0})))};
vat=function(D,C,X){return Olo(D,gat([C],function(c){return c.filter($Op)}),X)};
ilP=function(D,C){return C.length===0?[D]:[D.slice(0,C[0]),D.slice(C[0])].filter(function(X){return X.length>0})};
kTk=function(D){switch(D){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""}};
QS6=function(D,C,X,c){c=Object.assign({},c);_.mp(c,u2p,{selectedOptionId:D,primaryButtonOverride:X});_.qw().dispatch(_.bK("flowStateEntity",C,c))};
Brt=function(D,C,X){!_.r(X,u2p)&&D.noPreselect&&C!==""&&D.defaultButtonOverride&&QS6("default",C,D.defaultButtonOverride,X)};
blp=function(D){switch(D){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
r0t=function(D){switch(D){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
KF3=function(D,C){if(C)return"ytCardViewModelCardSelected";switch(D){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
h2G=function(D,C){C.includes(D)?C=C.filter(function(X){return X!==D}):C.push(D);
return[].concat(_.VB(C))};
xOP=function(D,C){return _.aI(D.entities,"contextNoteFeedEntityPayload",C)};
LFY=function(D,C){switch(D){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return C==null?void 0:C.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return C==null?void 0:C.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return C==null?void 0:C.ratingNotHelpfulText}};
sSX=function(D,C,X){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:X||D.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:D.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:D.deleteDialogTitle}]},dialogMessages:[{runs:[{text:D.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.deleteActionText}]},command:{performCommentActionEndpoint:{action:C}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
mO1=function(D,C,X){var c;if(D&&((c=C())==null?0:c.includes(D))){var W;X((W=C())==null?void 0:W.filter(function(p){return p!==D}))}else X([].concat(_.VB(C()||[]),[D]))};
Ea1=function(D,C){if(D){var X=[];C=_.U((C==null?void 0:C.checkboxes)||[]);for(var c=C.next();!c.done;c=C.next()){c=_.r(c.value,e26);var W=void 0;((W=c)==null?0:W.value)&&D.includes(c.key||"")&&X.push(c.value)}return X}};
tkG=function(D){D.style.height="auto";D.style.height=D.scrollHeight+"px"};
Nrt=function(D){return[D.syncStep,D.asyncStep].filter(function(C){return C!==void 0})};
y0t=function(D){var C,X,c;if(D=(C=D.structuredContextNoteFormSchema)==null?void 0:(X=C.fieldSchemas)==null?void 0:(c=X.noteBody)==null?void 0:c.validationSchema)for(C=_.U(Nrt(D)),X=C.next();!X.done;X=C.next()){X=X.value.rules;if(!X)break;X=_.U(X);for(X=X.next();!X.done;X=X.next())return _.r(X.value,_.Yr3)}};
wHw=function(D){if(D){D=_.U(Nrt(D));for(var C=D.next();!C.done;C=D.next()){C=C.value.rules;if(!C)break;C=_.U(C);for(C=C.next();!C.done;C=C.next())return _.r(C.value,naU)}}};
ZlP=function(D){if(D){D=_.U(Nrt(D));for(var C=D.next();!C.done;C=D.next()){C=C.value.rules;if(!C)break;C=_.U(C);for(C=C.next();!C.done;C=C.next())return _.r(C.value,FFY)}}};
GTG=function(D){D=/^https?:\/\//.test(D)?D:"http://"+D;try{var C=_.Xg(D)}catch(X){return!1}if(C.toString()!==D)return!1;D=C.JSC$10197_domain_.split(".");return D.length>1&&D.every(function(X){return!!X})};
VkX=function(D,C,X,c){var W;c=(W=c.structuredContextNoteData)==null?void 0:W.createCommentEndpoint;if(W=_.r(c,_.Ywf))return W.commentText=_.jV(D),W.videoPositionMention=C,W.sources=X,c};
TrX=function(D){return D==null?void 0:D.stringValue};
J0w=function(D,C,X){D=D.map(function(c,W){return{listItemViewModel:{title:c.title,subtitle:c.subtitle,leadingImage:c.leadingImage,trailingImage:W===C?Hlw:void 0,rendererContext:{commandContext:{onTap:c.onTap}}}}});
return Object.assign({},X&&{header:{panelHeaderViewModel:{title:X}}},{content:{listViewModel:{listItems:D}}})};
z2o=function(D,C){if(D&&C)switch(C){case "SELECTION_TYPE_BOOL":return D.boolValue;case "SELECTION_TYPE_INT":return D.intValue;case "SELECTION_TYPE_STRING":return D.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return D.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return D.timePickerFormatValue}};
jSp=function(D){var C;D=(C=D.options)==null?void 0:C.findIndex(function(X){return X.isSelected});
return D===void 0?-1:D};
Mko=function(D,C,X){var c=function(){return D().label},W={},p=_.g$("ytDropdownViewModelLabel",(W.ytDropdownViewModelLabelError=C,W));
return _.A(_.v,{cond:function(){return D().label&&!(X()===-1&&D().label&&!D().placeholderText)},
then:function(){return _.A("div",{class:p},_.A(_.QG,{text:c}))}})};
qrX=function(D,C){var X={};X=_.g$("ytDropdownViewModelTitle",(X.ytDropdownViewModelTitlePlaceholder=function(){return C()===-1},X));
return _.A("div",{class:X},_.A(_.QG,{text:function(){var c=D();var W=C();if(W===-1)c=c.placeholderText?c.placeholderText:c.label;else{var p,g;c=(p=c.options)==null?void 0:(g=p[W])==null?void 0:g.title}return c}}))};
f4t=function(D,C){var X=function(){return D().hint};
return _.A(_.kQ,null,_.A(_.v,{cond:function(){return X()&&!C()},
then:function(){return _.A("div",{class:_.g$("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.A(_.QG,{text:X,className:"ytDropdownViewModelSupportText"}))}}),_.A(_.v,{cond:C,
then:function(){return _.A("div",{id:"dropdown-view-model-error",role:"alert",class:_.g$("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.A(_.$_,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.A(_.QG,{text:C,className:"ytDropdownViewModelSupportText"}))}}))};
dOU=function(D,C){var X=_.iX().resolve(_.kvo);_.JU(function(){var c=D().id;c&&X!=null&&X.dropdownMap.set(c,C)})};
l4U=function(D){D=_.r(D.scheduleButton,R2X);D=_.r(D==null?void 0:D.primaryButton,_.is);D=_.r(D==null?void 0:D.onTap,_.N_);var C,X,c=((X=_.r(D,_.pt))==null?void 0:X.commands)||[D];X=_.U(c);for(D=X.next();!D.done&&!(C=_.r(D.value,_.E35));D=X.next());var W;C=(W=C)==null?void 0:W.createBroadcastRequest;if(!C)throw Error("fk");return C};
c8G=function(D,C,X){X=X===void 0?{}:X;var c,W;return _.I(function(p){if(c=DF6(C))return p.return(c);(W=CEo(D,C,X))&&X7G(C,W);return p.return(W)})};
X7G=function(D,C){var X=or3(D);X&&C.then(function(c){_.iX().resolve(_.Tc).put(X,new _.H9({innertubeResponse:c}))})};
DF6=function(D){if(D=or3(D)){var C=_.iX().resolve(_.Tc);if(C.has(D))return C.get(D).then(function(X){return X==null?void 0:_.Cn(X)})}return null};
or3=function(D){var C=_.r(D.endpoint,_.TC);if(C!=null&&C.videoId)return C={videoId:C.videoId},_.b("web_imp_player_mute_params")&&(C.mutedAtStart=D.startPlaybackInMutedState),_.Vy("inline_playback",C)};
CEo=function(D,C,X){D=_.Jl(D,C.endpoint,WPw(C,X)).then(function(c){return c});
return Promise.resolve(D)};
WPw=function(D,C){C=_.b("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!D.startPlaybackInMutedState},C):Object.assign({},{vis:5,autonav:"1"},C);var X;C={contentPlaybackContext:_.SX(C,(X=_.r(D.endpoint.commandMetadata,_.ge))==null?void 0:X.url,window.location.href)};_.b("web_imp_player_mute_params")&&(C.overrideMutedAtStart=!D.startPlaybackInMutedState);return C};
auN=function(D,C){var X=window.MutationObserver;X&&(p7t=new X(function(c,W){c=_.U(c);for(var p=c.next();!p.done;p=c.next()){p=p.value;var g;if(g=p.type==="childList"&&p.target)a:{g=D;p=SnU(p.target);g=SnU(g);for(var a=null,O=0;O<p.length;O++)if(g.includes(p[O])){if(O===0){g=!1;break a}a=p[O];break}a?(p=UFt(p,a),g=UFt(g,a),g=p<g):g=!1}if(g){C();W.disconnect();break}}}),(X=grw())&&p7t.observe(X,{childList:!0,
subtree:!0}))};
grw=function(){var D=document.getElementsByTagName("ytd-rich-grid-renderer");if(D.length>0)return D[0];D=document.getElementsByTagName("ytd-section-list-renderer");return D.length>0?D[0]:null};
SnU=function(D){for(var C=[];D;)C.push(D),D=D.parentElement;return C};
UFt=function(D,C){var X=Array.from(C.children);C=D.indexOf(C);return C>0?X.indexOf(D[C-1]):-1};
v4=function(D,C,X){X=X===void 0?{}:X;return _.I7(D,X,C)};
Iuw=function(D){switch(D){case "MUSIC":return!0;default:return!1}};
A8N=function(D){if(D=D==null?void 0:D.find(function(c){var W,p;return((W=_.r(c,ONN))==null?void 0:(p=W.inlinePlaybackBadgeData)==null?void 0:p.replicateAsTimestamp)===!0}))if(D=_.r(D,ONN),D==null?0:D.icon){var C,X;
if((D=(C=_.Wuo(D.icon))==null?void 0:(X=C.clientResource)==null?void 0:X.imageName)&&Iuw(D))return D}};
PE1=function(D){return D==null?void 0:D.filter(function(C){return C.premiereTrailerBadgeRenderer})};
$Ft=function(D){var C,X=D==null?void 0:(C=D.find(function(O){return O.thumbnailOverlayTimeStatusRenderer}))==null?void 0:C.thumbnailOverlayTimeStatusRenderer,c,W;
if((X==null?0:(c=X.icon)==null?0:c.iconType)&&Iuw(X==null?void 0:(W=X.icon)==null?void 0:W.iconType)){var p;return{icon:X==null?void 0:(p=X.icon)==null?void 0:p.iconType}}var g;if(C=D==null?void 0:(g=D.find(function(O){return O.thumbnailOverlayBadgeViewModel}))==null?void 0:g.thumbnailOverlayBadgeViewModel)if(g=A8N(C.thumbnailBadges))return{icon:g};
var a;if(D=D==null?void 0:(a=D.find(function(O){return O.thumbnailBottomOverlayViewModel}))==null?void 0:a.thumbnailBottomOverlayViewModel)if(a=A8N(D.badges))return{icon:a};
return{}};
QB3=function(D,C){var X=new vrG(function(p){W(p)},C);
C=_.U(_.Li(iN6(X),void 0,"D2uee"));var c=C.next().value,W=C.next().value;_.Jw(function(){Promise.resolve().then(function(){var p,g=(p=D())!=null?p:{};X.playerControlsData=g;X.lastSeenPlayerApi=_.nn(g.playerApi);kC6(X)});
_.z3(function(){uop(X)})},"xfRk8b");
return c};
BlG=function(D){return function(C){var X=D(),c={playerState:C};if(C===1){var W;(W=X.playerApi)==null||W.loadModule("captions")}if(C===0){var p;(p=X.playerApi)==null||p.unloadModule("captions")}C!==-1&&X.setState(c)}};
bNN=function(D){return function(C){D().setState({playbackRate:C})}};
r81=function(D){return function(C){var X=D(),c=X.playerApi,W=c==null?void 0:c.getVideoData(),p=(W==null?void 0:W.isLive)||!1;W=W==null?void 0:W.video_id;p={videoDuration:zLp(c||void 0),isLive:p,videoId:W};p.videoId!==X.videoId&&(p=Object.assign({},_.tgd(c),p));if(C==null?0:C.playertype)p.playerType=C.playertype;if(c){p.captionsAvailable=_.C$(c);C=p;var g;W=(g=c.getStoryboardLevel(c.getNumberOfStoryboardLevels()-1))==null?void 0:g.intervalMs;C.storyboardInterval=W?W/1E3:void 0;p.captionsAvailable&&
(p.captionsEnabled=_.hLp(c))}p.volumeMuted=!(c==null||!c.isMuted());X.setState(p)}};
KPX=function(D){return function(C){var X=D(),c=X.playerApi;if(c){var W=c.getPresentingPlayerType();C={playedTime:C||0,percentLoaded:c.getVideoLoadedFraction(),playerType:W};X.playerState===0&&(C.playedTime=X.videoDuration);X.isLive&&(W=c.getProgressState(W),C.playedTime-=W.seekableStart,C.videoDuration=zLp(c));if(X.playerType===1)c=!1;else{var p;if((p=X.uxConfig)==null?0:p.showCuedOverlay){var g;c=!((g=X.playerApi)==null?0:g.getPlayerStateObject(X.playerType).isDomPaused)}else c=!0}c&&delete C.playedTime;
X.setState(C)}}};
hI6=function(D){return function(){var C=D(),X,c,W,p={volume:(W=(X=C.playerApi)==null?void 0:X.getVolume())!=null?W:0,volumeMuted:!((c=C.playerApi)==null||!c.isMuted())};C.setState(p)}};
xF6=function(D){return function(){var C=D(),X=C.playerApi;if(X){var c={captionsAvailable:_.C$(X)};c.captionsAvailable&&(c.captionsEnabled=_.hLp(X));C.setState(c)}}};
LPp=function(D){return{appApi:Object.assign({},_.h1t(),{showCaptionsToggleToast:function(C){var X,c;(c=(X=D()).showCaptionsToggleToast)==null||c.call(X,C)},
openInMiniplayer:function(){var C,X;(X=(C=D()).openInMiniplayer)==null||X.call(C)}})}};
sB6=function(D,C){var X,c,W;return!!(D==null?0:(X=D.playerResponse)==null?0:(c=X.playerConfig)==null?0:(W=c.inlinePlaybackConfig)==null?0:W.showScrubbingControls)&&!(C==null?0:C.hideScrubbingControls)};
_.mF3=function(D){var C=!D.miniplayerIsActive;return[5,2,0].includes(D.miniplayerPlaybackState)||C};
eI1={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};ErP=function(D){this.onStepChangeCallback=function(){};
this.flowRenderer=D};
ErP.prototype.getCurrentStep=function(){var D=this,C;return((C=this.flowRenderer.steps)!=null?C:[]).map(function(X){return _.r(X,_.lJ)}).find(function(X){return X&&X.stepId===D.currentStepId})};
tcP=function(D,C){var X=C.flowStateEntityKey,c=D.flowStates.get(X);if(c)return c;C=new ErP(C);D.flowStates.set(X,C);return C};
Nlt=function(D,C){for(var X=_.U(D.flowStates.entries()),c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;if(W.flowRenderer.targetId===C){D.flowStates.delete(c);break}}};
Yno=function(D,C){D.onStepChangeCallback=C;D.onStepChangeCallback(D.getCurrentStep())};
y8X=function(D,C){var X=D.getCurrentStep();if(X&&X.stepId===C)return!0;var c;return((c=D.flowRenderer.steps)!=null?c:[]).map(function(W){return _.r(W,_.lJ)}).find(function(W){return W&&W.stepId===C})?(D.currentStepId=C,D.onStepChangeCallback(D.getCurrentStep()),!0):!1};
nrw=function(D,C){var X,c,W,p,g;_.I(function(a){if(!C.length)return a.return([]);X=[];c=_.U(C);for(W=c.next();!W.done;W=c.next())p=W.value,(g=D.resolveIcon(p))&&!D.iconCache[g.url]&&X.push(_.Bq3(D,g).then(function(){}).catch(function(){}));
return a.return(Promise.all(X))})};
w73=function(D,C){var X=[];C=(new Set(C)).values();C=_.U(C);for(var c=C.next();!c.done;c=C.next()){c=c.value;for(var W=_.U(Object.values(eI1)),p=W.next();!p.done;p=W.next())X.push({iconName:c,iconStyle:p.value})}nrw(D.iconManager,X)};
_.FPp=function(D,C,X){var c=X!=null?X:D.iconsToFetch;c!=null&&c.length?C!==void 0&&C>=0?_.Zo(_.qX,function(){w73(D,c)},C):w73(D,c):Promise.resolve()};
_.ZNN=_.OB(function(D,C,X){if(D.nextWireType_!==5)return!1;_.Pv(C,X,_.VO(D.decoder_));return!0},function(D,C,X){C=_.BxZ(C);
C!=null&&(_.$N(D,X,5),_.vv(D.encoder_,C))},_.SXd);
GCt=[0,_.qy,_.ZNN,-1];_.VcG=function(){return _.oI({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
vrG=function(D,C){var X=TlP,c=this;this.renderFn=D;this.listeners=X;this.context=C;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var W;this.lastSeenPlayerApi=_.nn((W=this.playerControlsData)==null?void 0:W.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.tgd(),void 0);_.b("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){iN6(c).setState({playerState:-1});c.resetRecentlyNavigatedJobId&&
_.qX.cancelJob(c.resetRecentlyNavigatedJobId);c.recentlyNavigated=!0;c.resetRecentlyNavigatedJobId=_.qX.addJob(function(){c.recentlyNavigated=!1},8,1E4)})};
vrG.prototype.setState=function(D){if(!_.b("mweb_player_skip_no_op_state_changes")||!jXw(D,this.state))if(this.state=Object.assign({},this.state,D),!_.b("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)D=-1,_.b("player_controls_log_creation_killswitch")||MfY()||(D=(0,_.kh)()),_.sp("pcu_s"),_.sp("pcu_se"),_.sp("pcu_rs"),this.renderFn(iN6(this)),_.sp("pcu_re"),q66(D),_.qX.addJob(function(){_.sp("pcu_ap")},8)};
var iN6=function(D){if(D.getPlayerApi)var C=_.nn(D.getPlayerApi());else{var X;C=_.nn((X=D.playerControlsData)==null?void 0:X.playerApi)}return Object.assign({},D.state,{setState:D.boundSetState,domMeasurements:{progressBarLineRect:D.progressBarLineRect},playerApi:C,appApi:D.context.appApi,playerContainer:D.context.playerContainer,playerControlContainer:D.context.playerControlContainer,uxConfig:D.context.uxConfig})},kC6=function(D){D.listeners.forEach(function(C){D.eventListenerCleanupFunctions.push(C.register(function(){return iN6(D)},
function(){return D.getData()}))})},uop=function(D){D.eventListenerCleanupFunctions.forEach(function(C){C()});
D.eventListenerCleanupFunctions.length=0};
vrG.prototype.getData=function(){return this.playerControlsData};var HNp=[0,_.Uf,_.Rk,_.Uf,-1,_.Rk,[0,_.lS,_.CL,-1],_.Uf,-1];var J8U=[0,[1,2,3],_.cq,-2];var zIY=[0,_.Uf];var jBP=new _.A7("crowdsourcedContextUserRatingFormFlowState");var Mcw=new _.A7("noteViewModel");var ir=new _.A7("abuseReportFlowState");var qnP=new _.A7("feedbackFormFlowState");var fut=new _.A7("inputBoxViewModel");_.Yr3=new _.A7("lengthValidationRule");var naU=new _.A7("regexValidationRule");var FFY=new _.A7("selectedValidationRule");var dFU=[0,_.CL,_.Uf,_.OC];var RIo=[0,_.Rk,-2,GCt];var luG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(luG,_.aH);luG.prototype.getFeature=function(){return _.EG(this,6)};
luG.prototype.hasFeature=function(){return _.r3(_.uS(this,6))!=null};var DCt=[0,_.CL];var C53=_.Bv(luG,[0,_.Rk,-2,GCt,_.Rk,_.CL,-1,_.d1,-1,_.CL,-3,_.xYN,_.lS,RIo,_.CL,-1,HNp,_.d1,_.CL,dFU,[0,[0,_.CL,-2,2,_.CL,-1,[0,_.CL],[0,_.Uf,_.CL],[0,_.Uf],[0,_.CL],2,[0,_.Uf,2,[0,_.Uf,-1],[0,_.oK,J8U],1,[0,zIY],1,[0,_.CL]],[0,_.lS],[0,[1,2],_.Wq,[0,_.CL],_.Wq,[0,_.CL,_.S$,-1]],[0,_.Uf],[0,_.CL,[0,[1,2,3,4],_.Wq,[0,[0,_.CL],DCt],_.Wq,[0,[0,_.CL],DCt],_.Wq,[0,DCt],_.Wq,[0,[0,_.CL],DCt]]],[0,_.CL],1,[0,_.CL,_.Uf],1,[0,_.CL],[0,_.lS],[0,_.CL,_.Uf,-1,[0,_.CL,-4]],[0,_.CL],[0,_.CL,-2],1,[0,_.CL],[0,
_.lS],[0,_.lS,_.CL],1,[0,_.lS],[0]],_.CL,_.Uf,_.qy,1,_.pL,_.CL,_.Uf],_.Rk,_.pL,_.Uf,-1,_.Rk]);var XEk=new _.A7("talkToRecsViewModel");var cZG=new _.A7("creatorGoalSetUpFlowDropdownItemViewModel");var oCt=new _.A7("creatorGoalSetUpFlowDropdownViewModel");var ONN=new _.A7("thumbnailBadgeViewModel");var WUp=new _.A7("checkboxGroupViewModel");var e26=new _.A7("checkboxItemViewModel");_.pEw=new _.A7("radioButtonGroupViewModel");var SpU=new _.A7("radioButtonItemViewModel");var R2X=new _.A7("panelFooterViewModel");var UC1=new _.A7("ypcCancelRecurrenceCommand");var gCP=new _.A7("cancellationFlowState");var u2p=new _.A7("premiumPurchaseFlowState");var aSo=new _.A7("surveyAnswerCardRenderer");var ISt=new _.A7("showMoreButtonRenderer");var OtY;var AZp,P56=function(){if(AZp!==void 0)return AZp;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;OtY===void 0&&(OtY=document.createElement("template"));var c=OtY;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return AZp=D};var kV=function(){var D=_.w.apply(this,arguments)||this;D.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";D.goalDescription="";D.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";D.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";D.startButtonId="start-button";D.exampleButtonId="example-button";return D};
_.h(kV,_.w);_.S=kV.prototype;_.S.getGoalDropdownItems=function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.purchaseTargetDropdown,oCt))==null?void 0:C.dropdownItems};
_.S.getTimerDropdownItems=function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.timerDropdown,oCt))==null?void 0:C.dropdownItems};
_.S.getColorDropdownItems=function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.colorDropdown,oCt))==null?void 0:C.dropdownItems};
_.S.getDropdownItemText=function(D){var C;return(C=_.r(D,cZG))==null?void 0:C.itemLabel};
_.S.getDropdownItemValue=function(D){D=_.r(D,cZG);return(D==null?void 0:D.timeLimit)||(D==null?void 0:D.purchaseTarget)||(D==null?void 0:D.eligiblePurchaseType)};
_.S.updateFlowState=function(D){_.DS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:D}])};
_.S.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.S.updateGoalValue=function(D){this.goal=D.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.S.onTextValueChanged=function(D){this.goalDescription=D.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.S.updateTimerValue=function(D){this.timer=D.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.S.updateTierValue=function(D){this.tier=D.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.S.getButtonViewModel=function(D){D=(D==null?void 0:D.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var C,X=_.r((C=this.data)==null?void 0:C.startGoalButton,_.is);return Object.assign({},X,{state:D})};
_.$a.Object.defineProperties(kV,{template:{configurable:!0,enumerable:!0,get:function(){return P56()}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kV.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],kV.prototype,"goal",void 0);_.V([_.n(),_.z("design:type",Object)],kV.prototype,"goalDescription",void 0);_.V([_.n(),_.z("design:type",Object)],kV.prototype,"timer",void 0);_.V([_.n(),_.z("design:type",Object)],kV.prototype,"tier",void 0);
_.V([_.n(),_.z("design:type",Object)],kV.prototype,"startButtonId",void 0);_.V([_.n(),_.z("design:type",Object)],kV.prototype,"exampleButtonId",void 0);_.V([_.Yn({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],kV);_.G(kV,"yt-creator-goal-set-up-flow-view-model",function(){return P56()},{mode:0});var $CP;var vCG;var it6;var ko3=function(){return _.w.apply(this,arguments)||this};
_.h(ko3,_.w);_.V([_.n(),_.z("design:type",Object)],ko3.prototype,"data",void 0);_.V([_.Yn({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],ko3);
_.G(ko3,"yt-survey-answer-card-renderer",function(){if(it6===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;vCG===void 0&&(vCG=document.createElement("template"));var c=vCG;X.call(C,c.content.cloneNode(!0),D.content.firstChild);it6=D}D=it6;return D},{mode:2});var u_1;var Q7t;var ur=function(){return _.w.apply(this,arguments)||this};
_.h(ur,_.w);_.S=ur.prototype;_.S.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.S.selectedItemChanged=function(D){_.DS(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[D.feedbackToken||""]}])};
_.S.surveyAnswerCardRendererClicked=function(D){if(D.target&&_.r(D.model.item,aSo)){var C=D.target;D=_.r(D.model.item,aSo);D.onTapCommand?_.o7(C,[D.onTapCommand],C):this.data.onTapCommand&&_.o7(C,[this.data.onTapCommand],C);this.selectedItemChanged(D)}};
_.S.checkIsCancellationStyle=function(D){return D==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.S.updateSelectedItemFromBinding=function(D){this.selectedItem=D.detail.value};
ur.prototype.onSelectedItemChanged=ur.prototype.onSelectedItemChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ur.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],ur.prototype,"selectedItem",void 0);_.V([_.n({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ur.prototype,"isCancellationStyle",void 0);
_.V([_.vr("selectedItem"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ur.prototype,"onSelectedItemChanged",null);_.V([_.Yn({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],ur);
_.G(ur,"yt-survey-flow-step-renderer",function(){if(Q7t===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;u_1===void 0&&(u_1=document.createElement("template"));var c=u_1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Q7t=D}D=Q7t;return D},{mode:2});var Q7=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return D};
_.h(Q7,_.w);Q7.prototype.handleSurveyFlowStepOptionChanged=function(D){this.ytdReduxBehavior.dispatch(_.oI({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:D}));_.DS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Q7.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Q7.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Q7.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Q7);
_.G(Q7,"ytd-survey-flow-step-renderer",function(){if($CP!==void 0)return $CP;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $CP=D},{mode:1});_.KUw=_.F(function(D){var C=D.data;var X=D.hideDivider;var c=D.isChannelInfoCard;D={};return _.A("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.A("div",{class:_.g$("yt-profile-identity-info-view-model__frame",(D["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!C().channelBanner},D))},_.A(BeG,{profileIdentityInfoData:C}),_.A("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.A("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu})),_.A(btG,{profileIdentityInfoData:C})),_.A(_.v,{cond:function(){return C().channelDescription},
then:function(W){var p={};return _.A("div",{class:_.g$((p["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(c==null||!c())},p["yt-profile-identity-info-view-model__channel-description"]=function(){return!(c==null?0:c())},p))},W)}}),_.A(rZt,{profileIdentityInfoData:C}),_.A(_.v,{cond:function(){return!(X==null?0:X())},
then:function(){return _.A("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"rh");
_.KUw.idomCompat=!0;var rZt=_.F(function(D){var C=D.profileIdentityInfoData;return _.A("div",{class:"yt-profile-identity-info-view-model__buttons"},_.A(_.Zh,{each:function(){return C().subscribeButton?[C().subscribeButton,C().channelAccess]:[C().channelAccess]}},function(X){return _.A("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.A("div",{class:"yt-profile-identity-info-view-model--button"},_.A(_.BX,{data:function(){return X}},{buttonViewModel:_.Ze,
subscribeButtonViewModel:_.I4})))}))},"sh"),btG=_.F(function(D){var C=D.profileIdentityInfoData;
return _.A("div",{class:"yt-profile-identity-info-view-model__trio"},_.A("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.A(hkt,{profileIdentityInfoData:C}),_.A(_.BX,{data:function(){return C().threeDotMenu}},{buttonViewModel:_.Ze})),_.A(xC6,{profileIdentityInfoData:C}))},"th"),hkt=_.F(function(D){var C=D.profileIdentityInfoData;
return _.A("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.A("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return C().channelDisplayName}),_.A(_.v,{cond:function(){return C().verifiedOrOacBadge},
then:function(X){return _.A("div",{class:"yt-profile-identity-info-view-model__badge"},_.A(_.M_,{data:function(){return{thumbnails:[{url:X().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"uh"),BeG=_.F(function(D){var C=D.profileIdentityInfoData;
return _.A("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.A(_.BX,{data:function(){var X=C().channelBanner;if(X)return{imageBannerViewModel:{image:X.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(X){return _.A("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.A(_.hz,{data:X.data,
isPositionRelative:!0}))}}))},"vh"),xC6=_.F(function(D){var C=D.profileIdentityInfoData;
return _.A("div",{class:"yt-profile-identity-info-view-model__metadata"},_.A("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.A("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return C().channelHandle}),_.A(_.v,{cond:function(){return C().channelPronouns&&C().channelHandle},
then:function(){return _.A("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.A("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return C().channelPronouns})),_.A("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.A("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return C().leftOfBulletInfo}),_.A(_.v,{cond:function(){return C().leftOfBulletInfo&&C().rightOfBulletInfo},
then:function(){return _.A("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.A("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return C().rightOfBulletInfo})))},"wh");var LU3;var s73=function(){return _.w.apply(this,arguments)||this};
_.h(s73,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],s73.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],s73.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],s73);
_.G(s73,"ytd-channel-history-renderer",function(){if(LU3!==void 0)return LU3;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return LU3=D},{mode:1});var mCY;var ek1=function(){return _.w.apply(this,arguments)||this};
_.h(ek1,_.w);_.V([_.n(),_.z("design:type",Object)],ek1.prototype,"data",void 0);_.V([_.yj({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ek1);
_.G(ek1,"ytd-feature-enablement-info-renderer",function(){if(mCY!==void 0)return mCY;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mCY=D},{mode:1});var EC6;var tyt;var B4=function(){var D=_.w.apply(this,arguments)||this;D.textBoxMaxLength=_.b("enable_tvod_campaign_code_integration")?15:12;return D};
_.h(B4,_.w);_.S=B4.prototype;_.S.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.S.onSubmit=function(){var D=this.data.serviceEndpoint,C=_.r(D,_.MH);C&&D&&(C.couponCode=this.userInput,_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}}))};
_.S.validate=function(){var D=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=D&&!this.data.errorMessage;this.showErrorMessage=D&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.b("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.S.computeStyle=function(D){return D};
_.S.computeShowValidationBelowInput=function(D){return D!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.S.updateUserInputFromBinding=function(D){this.userInput=D.currentTarget.value};
_.S.updateShowErrorMessageFromBinding=function(D){this.showErrorMessage=D.detail.value};
_.$a.Object.defineProperties(B4.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
B4.prototype.dataChanged=B4.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],B4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],B4.prototype,"userInput",void 0);_.V([_.n(),_.z("design:type",Boolean)],B4.prototype,"disableApplyButton",void 0);_.V([_.n(),_.z("design:type",Boolean)],B4.prototype,"hideApplyButton",void 0);
_.V([_.n(),_.z("design:type",Boolean)],B4.prototype,"hideErrorMessage",void 0);_.V([_.n(),_.z("design:type",Boolean)],B4.prototype,"showTick",void 0);_.V([_.n(),_.z("design:type",Boolean)],B4.prototype,"showErrorMessage",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],B4.prototype,"couponStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.z("design:type",Boolean)],B4.prototype,"showValidationBelowInput",void 0);_.V([_.n(),_.z("design:type",Object)],B4.prototype,"textBoxMaxLength",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B4.prototype,"dataChanged",null);
_.V([_.e("showTick","showErrorMessage","userInput"),_.z("design:type",String),_.z("design:paramtypes",[])],B4.prototype,"validationState",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],B4);
_.G(B4,"ytd-ypc-coupon-renderer",function(){if(tyt!==void 0)return tyt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tyt=D},{mode:1});var br=function(){return _.w.apply(this,arguments)||this};
_.h(br,_.w);br.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"}}}};
br.prototype.computeStyle=function(D){return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],br.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],br.prototype,"buttonStyle",void 0);_.V([_.yj({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],br);
_.G(br,"ytd-flow-bottom-bar-renderer",function(){if(EC6!==void 0)return EC6;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return EC6=D},{mode:1});var Net;var YpX;var yZt;var rN=function(){return _.w.apply(this,arguments)||this};
_.h(rN,_.w);rN.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rN.prototype.focus=function(D){this.title&&_.ai(this.title,D)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rN.prototype,"data",void 0);_.V([_.kn("#title"),_.z("design:type",HTMLElement)],rN.prototype,"title",void 0);_.V([_.yj({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],rN);
_.G(rN,"ytd-flow-top-bar-renderer",function(){if(yZt!==void 0)return yZt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return yZt=D},{mode:1});var nCX;var wEo;var FUU;var K$=function(){return _.w.apply(this,arguments)||this};
_.h(K$,_.w);K$.prototype.freeTextValueChanged=function(){_.DS(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
K$.prototype.updateFreeTextValueFromBinding=function(D){this.freeTextValue=D.detail.value};
_.$a.Object.defineProperties(K$.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(C=(D=this.data)==null?void 0:D.responseMaxLength)!=null?C:500,c;return((c=this.freeTextValue)!=null?c:"").length>=X?"maxed-out":""}}});
K$.prototype.freeTextValueChanged=K$.prototype.freeTextValueChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],K$.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],K$.prototype,"freeTextValue",void 0);_.V([_.kn("#user-input"),_.z("design:type",HTMLTextAreaElement)],K$.prototype,"input",void 0);
_.V([_.e("freeTextValue"),_.z("design:type",Object),_.z("design:paramtypes",[])],K$.prototype,"characterLimitClass",null);_.V([_.vr("freeTextValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K$.prototype,"freeTextValueChanged",null);_.V([_.Yn({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],K$);
_.G(K$,"yt-free-text-input-flow-step-renderer",function(){if(FUU===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;wEo===void 0&&(wEo=document.createElement("template"));var c=wEo;X.call(C,c.content.cloneNode(!0),D.content.firstChild);FUU=D}D=FUU;return D},{mode:2});var hJ=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return D};
_.h(hJ,_.w);hJ.prototype.handleFreeTextFlowStepInputChanged=function(D){_.DS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],hJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],hJ.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hJ.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],hJ);
_.G(hJ,"ytd-free-text-input-flow-step-renderer",function(){if(nCX!==void 0)return nCX;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return nCX=D},{mode:1});var Ztp;var Goo;var VyN=function(){return _.w.apply(this,arguments)||this};
_.h(VyN,_.w);_.V([_.n(),_.z("design:type",Object)],VyN.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],VyN);
_.G(VyN,"ytd-metadata-line-renderer",function(){if(Goo!==void 0)return Goo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Goo=D},{mode:1});var xV=function(){return _.w.apply(this,arguments)||this};
_.h(xV,_.w);xV.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xV.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],xV.prototype,"isMasthead",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],xV);
_.G(xV,"ytd-media-product-renderer",function(){if(Ztp!==void 0)return Ztp;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Ztp=D},{mode:1});var Tek;var L$=function(){return _.w.apply(this,arguments)||this};
_.h(L$,_.w);L$.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
L$.prototype.onBillboardImageLoaded=function(){_.lE(this.hostElement,"yt-refit")};
L$.prototype.onBillboardImageLoaded=L$.prototype.onBillboardImageLoaded;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],L$.prototype,"data",void 0);_.V([_.kn("#billboardImage"),_.z("design:type",Object)],L$.prototype,"billboardImage",void 0);_.V([_.$n("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L$.prototype,"onBillboardImageLoaded",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],L$);
_.G(L$,"ytd-billboard-masthead-renderer",function(){if(Tek!==void 0)return Tek;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Tek=D},{mode:1});var HtN;var sR=function(){var D=_.w.apply(this,arguments)||this;D.smallSize=!1;return D};
_.h(sR,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],sR.prototype,"ytComponentBehaviorType",void 0);_.V([_.n(),_.z("design:type",Object)],sR.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sR.prototype,"smallSize",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],sR);
_.G(sR,"ytd-bullet-formatted-string",function(){if(HtN!==void 0)return HtN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return HtN=D},{mode:1});var JZ3;var mT=function(){return _.w.apply(this,arguments)||this};
_.h(mT,_.w);mT.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],mT.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],mT);
_.G(mT,"ytd-offer-detail-renderer",function(){if(JZ3!==void 0)return JZ3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return JZ3=D},{mode:1});var zkN;var eF=function(){return _.w.apply(this,arguments)||this};
_.h(eF,_.w);eF.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],eF.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],eF);
_.G(eF,"ytd-offer-detail-step-renderer",function(){if(zkN!==void 0)return zkN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return zkN=D},{mode:1});var j7U;var ER=function(){var D=_.w.apply(this,arguments)||this;D.isInOfferModule=!1;return D};
_.h(ER,_.w);_.S=ER.prototype;_.S.computeHasEndpoint=function(){var D;return!((D=this.data)==null||!D.onClickCommand)};
_.S.dataChanged=function(){var D;if((D=this.data)==null?0:D.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")};
_.S.detached=function(){var D;if((D=this.data)==null?0:D.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.S.handleClickEvent=function(){var D;if((D=this.data)==null?0:D.onClickCommand){var C;this.componentBehavior.resolveCommand((C=this.data)==null?void 0:C.onClickCommand)}};
_.S.onContentKeyDown=function(D){D.key==="Enter"?this.handleClickEvent(D):D.key===" "&&D.preventDefault()};
_.S.onContentKeyUp=function(D){D.key===" "&&this.handleClickEvent(D)};
ER.prototype.dataChanged=ER.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ER.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ER.prototype,"data",void 0);_.V([_.n({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ER.prototype,"hasEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ER.prototype,"isInOfferModule",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ER.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],ER);
_.G(ER,"ytd-channel-masthead-renderer",function(){if(j7U!==void 0)return j7U;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return j7U=D},{mode:1});var My6;var tJ=function(){var D=_.w.apply(this,arguments)||this;D.thumbnailObjectFit="CONTAIN";D.thumbnailObjectPosition="LEFT";D.isExpanded=!1;return D};
_.h(tJ,_.w);_.S=tJ.prototype;_.S.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.S.dataChanged=function(){this.resetStates()};
_.S.computeisTapOnOfferInfoContainerEnabled=function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.S.onExpandBtnClick=function(){var D,C=_.r((D=this.data)==null?void 0:D.showMoreButtonRenderer,ISt);C&&_.JF(_.iO(),C.trackingParams);this.isExpanded=!this.isExpanded};
_.S.onOfferInfoClick=function(D){this.isTapOnOfferInfoContainerEnabled&&(_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.R_(_.Mz(D)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.S.onBottomBarClick=function(){this.executeTapCommand()};
_.S.executeTapCommand=function(){var D,C=(D=this.data)==null?void 0:D.tapCommand;C&&this.ytComponentBehavior.resolveCommand(C)};
_.S.resetStates=function(){this.isExpanded=!1};
_.$a.Object.defineProperties(tJ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var D=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),C,X,c;return((C=this.data)==null?void 0:C.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&D&&!!((X=this.data)==null?0:(c=X.benefits)==null?0:c.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((C=_.r((D=this.data)==null?void 0:D.showMoreButtonRenderer,ISt))==null?void 0:C.showMoreButtonTitle)||((X=this.data)==null?void 0:X.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((C=_.r((D=this.data)==null?void 0:D.showMoreButtonRenderer,ISt))==null?void 0:C.showLessButtonTitle)||((X=this.data)==null?void 0:X.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var D;return(D=this.showLessButtonTitle)!=null?D:""}var C;return(C=this.showMoreButtonTitle)!=null?C:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((C=this.data)==null?0:C.footerTitle)||((X=this.data)==null?0:X.footerSubtitle))}}});
tJ.prototype.dataChanged=tJ.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],tJ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",String)],tJ.prototype,"thumbnailObjectFit",void 0);
_.V([_.n(),_.z("design:type",String)],tJ.prototype,"thumbnailObjectPosition",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.z("design:type",Boolean)],tJ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.V([_.n(),_.z("design:type",Object)],tJ.prototype,"isExpanded",void 0);_.V([_.n(),_.z("design:type",Object)],tJ.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.footerIcon)"}),_.z("design:type",String)],tJ.prototype,"icon",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tJ.prototype,"dataChanged",null);_.V([_.e("data.thumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tJ.prototype,"hasThumbnail",null);_.V([_.e("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tJ.prototype,"enableExpandButton",null);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tJ.prototype,"enableOfferContentIcon",null);_.V([_.e("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],tJ.prototype,"showMoreButtonTitle",null);_.V([_.e("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],tJ.prototype,"showLessButtonTitle",null);
_.V([_.e("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.z("design:type",String),_.z("design:paramtypes",[])],tJ.prototype,"expandedBtnText",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tJ.prototype,"enableBottomBar",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],tJ);
_.G(tJ,"ytd-offer-card-renderer",function(){if(My6!==void 0)return My6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return My6=D},{mode:1});var qpw;var Nj=function(){return _.w.apply(this,arguments)||this};
_.h(Nj,_.w);Nj.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"}}}};
Nj.prototype.onClick=function(D){if(!_.d$(D.composedPath()||[],this.hostElement,["A".toString()])){var C,X;if((D=(X=_.r((C=this.data)==null?void 0:C.actionButton,_.AF))==null?void 0:X.command)&&!this.ytComponentBehavior.resolveCommand(D)){var c;(c=_.iO())==null||c.clickCommand(D);_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})}}};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Nj.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Nj.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Nj);
_.G(Nj,"ytd-offer-content-renderer",function(){if(qpw!==void 0)return qpw;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qpw=D},{mode:1});var fSG;var YV=function(){return _.w.apply(this,arguments)||this};
_.h(YV,_.w);YV.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.$a.Object.defineProperties(YV.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.title)||!((C=this.data)==null||!C.description)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],YV.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],YV.prototype,"hasHeaderData",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],YV);
_.G(YV,"ytd-offer-section-renderer",function(){if(fSG!==void 0)return fSG;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return fSG=D},{mode:1});var dCw;var y7=function(){return _.w.apply(this,arguments)||this};
_.h(y7,_.w);
y7.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],y7.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],y7);
_.G(y7,"ytd-offer-selection-step-renderer",function(){if(dCw!==void 0)return dCw;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return dCw=D},{mode:1});var Rkp;var n$=function(){return _.w.apply(this,arguments)||this};
_.h(n$,_.w);n$.prototype.computeStyle=function(D){return D};
n$.prototype.computeImageWidth=function(D){return D==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.V([_.n({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.z("design:type",String)],n$.prototype,"containerStyle",void 0);_.V([_.n({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.z("design:type",String)],n$.prototype,"imageWidth",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],n$.prototype,"data",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],n$);
_.G(n$,"ytd-confirmation-masthead-renderer",function(){if(Rkp!==void 0)return Rkp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Rkp=D},{mode:1});var lSP;var wN=function(){return _.w.apply(this,arguments)||this};
_.h(wN,_.w);wN.prototype.computeStyle=function(D){return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.z("design:type",String)],wN.prototype,"containerStyle",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],wN);
_.G(wN,"ytd-purchase-complete-detail-renderer",function(){if(lSP!==void 0)return lSP;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return lSP=D},{mode:1});var Dh6;var FP=function(){var D=_.w.apply(this,arguments)||this;D.scriptsAppended=!1;return D};
_.h(FP,_.w);FP.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"}}}};
FP.prototype.onDataChanged=function(){var D=this.get("data.gtmId");D&&(_.lP(D,_.q6("GL","")),this.setupConversionTracking())};
FP.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("noscript");D.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(D);this.scriptsAppended=!0}};
FP.prototype.onDataChanged=FP.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FP.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],FP.prototype,"scriptsAppended",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FP.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],FP);
_.G(FP,"ytd-purchase-complete-step-renderer",function(){if(Dh6!==void 0)return Dh6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Dh6=D},{mode:1});var C8k;var ZM=function(){return _.w.apply(this,arguments)||this};
_.h(ZM,_.w);ZM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ZM.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],ZM);
_.G(ZM,"ytd-ypc-transaction-error-message-renderer",function(){if(C8k!==void 0)return C8k;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return C8k=D},{mode:1});var X_G;var cXw;var GF=function(){var D=_.w.apply(this,arguments)||this;D.handlePhoneVerificationSuccess=function(C){if(D.isValidPhoneVerificationCompletionMessageEvent(C)){var X;((X=D.data)==null?0:X.nextStepCommand)&&D.ytComponentBehavior.resolveCommand(D.data.nextStepCommand)}};
return D};
_.h(GF,_.w);GF.prototype.isValidPhoneVerificationCompletionMessageEvent=function(D){if(D.data!=="yt-phone-verification-complete")return!1;D=_.OY(D.origin);return D!==null&&D.includes("youtube.com")};
GF.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
GF.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],GF.prototype,"data",void 0);_.V([_.Yn({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],GF);
_.G(GF,"yt-feature-enablement-soft-entry-renderer",function(){if(cXw===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;X_G===void 0&&(X_G=document.createElement("template"));var c=X_G;X.call(C,c.content.cloneNode(!0),D.content.firstChild);cXw=D}D=cXw;return D},{mode:1});var oPU;var WnX;var p_3;var S1o;var UhU=function(){return _.w.apply(this,arguments)||this};
_.h(UhU,_.w);_.V([_.n(),_.z("design:type",Object)],UhU.prototype,"data",void 0);_.V([_.Yn({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],UhU);
_.G(UhU,"yt-benefits-item-renderer",function(){if(S1o===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;p_3===void 0&&(p_3=document.createElement("template"));var c=p_3;X.call(C,c.content.cloneNode(!0),D.content.firstChild);S1o=D}D=S1o;return D},{mode:2});var gP6;var a71;var V7=function(){return _.w.apply(this,arguments)||this};
_.h(V7,_.w);V7.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
V7.prototype.computeisWithoutPadding=function(){var D;return((D=this.data)==null?void 0:D.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],V7.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.z("design:type",Boolean)],V7.prototype,"isWithoutPadding",void 0);_.V([_.Yn({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],V7);
_.G(V7,"yt-benefits-section-renderer",function(){if(a71===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;gP6===void 0&&(gP6=document.createElement("template"));var c=gP6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);a71=D}D=a71;return D},{mode:2});var TF=function(){return _.w.apply(this,arguments)||this};
_.h(TF,_.w);TF.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
TF.prototype.computeisUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TF.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.z("design:type",Boolean)],TF.prototype,"isUsingLargeWidth",void 0);_.V([_.Yn({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],TF);
_.G(TF,"yt-benefits-flow-step-renderer",function(){if(WnX===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;oPU===void 0&&(oPU=document.createElement("template"));var c=oPU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);WnX=D}D=WnX;return D},{mode:2});var I7t;var OeY;var H4=function(){return _.w.apply(this,arguments)||this};
_.h(H4,_.w);H4.prototype.checkIsUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.n(),_.z("design:type",Object)],H4.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.z("design:type",Boolean)],H4.prototype,"isUsingLargeWidth",void 0);_.V([_.Yn({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],H4);
_.G(H4,"yt-confirmation-flow-step-renderer",function(){if(OeY===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;I7t===void 0&&(I7t=document.createElement("template"));var c=I7t;X.call(C,c.content.cloneNode(!0),D.content.firstChild);OeY=D}D=OeY;return D},{mode:2});var AX6;var P8X;var $ht=function(){return _.w.apply(this,arguments)||this};
_.h($ht,_.w);_.V([_.n(),_.z("design:type",Object)],$ht.prototype,"data",void 0);_.V([_.Yn({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],$ht);
_.G($ht,"yt-info-flow-step-renderer",function(){if(P8X===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;AX6===void 0&&(AX6=document.createElement("template"));var c=AX6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);P8X=D}D=P8X;return D},{mode:2});var vPU;var ieY;var k1P=function(){return _.w.apply(this,arguments)||this};
_.h(k1P,_.w);_.V([_.n(),_.z("design:type",Object)],k1P.prototype,"data",void 0);_.V([_.Yn({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],k1P);
_.G(k1P,"yt-info-list-flow-step-renderer",function(){if(ieY===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;vPU===void 0&&(vPU=document.createElement("template"));var c=vPU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ieY=D}D=ieY;return D},{mode:2});var u$3=_.F(function(D){var C=D.data;return _.A("styled-text-view-model",{class:_.g$("ytStyledTextViewModelHost",function(){return UOP(C().fontAttributes)},function(){return SrG(C().color)})},_.A(_.QG,{text:function(){return C().text},
ariaLabel:function(){var X,c,W;return(W=(X=C().accessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label)!=null?W:""}}))},"xh");
u$3.idomCompat=!0;var QIG=_.F(function(D){var C=function(){var W,p,g,a;return(a=(g=(W=D.alt)==null?void 0:W.call(D))!=null?g:(p=D.data().accessibilityData)==null?void 0:p.label)!=null?a:""},X=function(){return D.data().imageWidth},c=function(){return D.data().imageHeight};
return _.A("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.A(_.v,{cond:function(){var W=D.data();if(W){var p,g,a;var O=((p=_.iX().resolve(_.vK(_.Hc)))==null?0:p())?(g=W.imageDark)!=null?g:W.imageLight:(a=W.imageLight)!=null?a:W.imageDark}else O=void 0;return O},
then:function(W){return _.A(_.M_,Object.assign({},D,{data:W,alt:C,targetWidth:X,targetHeight:c,preserveHeight:!0,preserveWidth:!0}))}}))},"yh");
QIG.idomCompat=!0;var JJ=_.F(function(D){var C=D.data;D=_.di(function(){return C().slots},[]);
var X=_.di(function(){return C().layoutProperties},{}),c=_.iX().resolve(_.z2);
return _.A("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:XHX(X,c)},_.A(_.Zh,{each:D,keyBy:"INDEX"},function(W){return _.A("div",{class:"ytContainerLayoutViewModelSlot",style:XHX(function(){return W().layoutProperties},c)},_.A(_.BX,{data:function(){return W().contents}},{containerLayoutViewModel:JJ,
badgeViewModel:_.ex,buttonViewModel:_.Ze,styledTextViewModel:u$3,contentPreviewImageViewModel:function(p){return _.A(_.ZX,{data:p.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(p){return _.A(QIG,{data:p.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"zh");
JJ.idomCompat=!0;var BJ1=_.F(function(D){var C=D.data;var X=D.stateFns;var c=function(){var P=C(),k=P.productId;return!(!P.clearGroupId&&!k)},W=function(){var P=C(),k=P.clearGroupId;
return(P=P.productId)?X().isProductSelected(P):k?X().getSelectedProductByGroupId(k)==null:!1},p=function(P){var k=C(),u=k.clearGroupId;
if(k=k.productId)X().onProductSelected(k),P==null||P.forEach(function(Q){_.FV(Q)});
else if(u)X().onClearGroupSelected(u)},g=function(){var P=C(),k=P.clearGroupId;
if(P=P.productId){var u;return"group:"+(((u=X().getProductById(P))==null?void 0:u.groupId)||"")}return k?"group:"+k:""},a=_.di(function(){return C().header},[]),O=_.di(function(){return C().body},[]);
return _.A("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.A(_.v,{cond:function(){return a().length>0||c()},
then:function(){return _.A("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.A("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.A(_.BX,{data:a},{containerLayoutViewModel:function(P){return _.A("div",{class:"ytPdpCardSectionViewModelContentItem"},_.A(JJ,{data:P.data}))},
styledTextViewModel:function(P){return _.A("div",{class:"ytPdpCardSectionViewModelContentItem"},_.A(u$3,{data:P.data}))}})),_.A(_.v,{cond:c,
then:function(){return _.A("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.A(_.Qu,{checked:W,name:g,onChange:function(){p(C().onSelect)}}))}}))}}),_.A(_.v,{cond:function(){return O().length>0},
then:function(){return _.A("div",null,_.A(_.BX,{data:O},{containerLayoutViewModel:function(P){return _.A("div",{class:"ytPdpCardSectionViewModelContentItem"},_.A(JJ,{data:P.data}))}}))}}))},"Ah");
BJ1.idomCompat=!0;var be3=_.F(function(D){var C=D.data;var X=D.stateFns;return _.A("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.A(_.v,{cond:function(){return C().banner},
then:function(c){return _.A("div",{class:"ytPdpCardViewModelBanner"},_.A(_.QG,{text:c}))}}),_.A(_.BX,{data:function(){return C().sections}},{pdpCardSectionViewModel:function(c){c=c.data;
var W={};return _.A("div",{class:_.g$("ytPdpCardViewModelSectionContainer",(W.ytPdpCardViewModelShowDividers=function(){return C().showDividers},W))},_.A(BJ1,{data:c,
stateFns:X}))}}))},"Bh");
be3.idomCompat=!0;var rXw=_.F(function(D){var C=D.data;var X=D.isOverlay;D={};return _.A("pdp-masthead-view-model",{class:_.g$("ytPdpMastheadViewModelHost",(D.ytPdpMastheadViewModelIsOverlay=X,D))},_.A(_.BX,{data:function(){return C().image}},{contentPreviewImageViewModel:_.ZX,
themedImageViewModel:function(c){return _.A(QIG,{data:c.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.A(_.v,{cond:function(){return C().title},
then:function(c){return _.A("h1",{class:"ytPdpMastheadViewModelHeading"},_.A(_.QG,{text:c,isOverlay:X}))}}),_.A(_.Zh,{each:function(){var c;
return(c=C().finePrint)!=null?c:[]}},function(c){return _.A("div",{class:"ytPdpMastheadViewModelFinePrint"},_.A(_.QG,{text:c,
isOverlay:X}))}))},"Ch");
rXw.idomCompat=!0;var Kn1=_.F(function(D){var C=D.data;var X=D.stateFns;var c=function(){return"pdp-pricing-group-selector-"+C().pricingGroupAttributeIds},W=_.di(function(){return C().pricingGroupSelectorSectionHeader});
return _.A("pdp-pricing-group-selector-view-model",null,_.A(_.v,{cond:function(){return!!W()},
then:function(){return _.A(_.BX,{data:W},{sectionHeaderViewModel:function(p){p=p.data;var g={};return _.A("div",{class:_.g$("ytPdpPricingGroupSelectorViewModelSectionHeader",(g.ytPdpPricingGroupSelectorViewModelFullBleed=!0,g.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,g))},_.A(_.dM,{data:p}))}})}}),_.A("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.A(_.Zh,{each:function(){var p=X().getSelectedProductByGroupId(C().groupId);
if(!p)return _.qN(Error("$j`"+C().groupId)),[];var g,a=(g=C().pricingGroupAttributeIds)!=null?g:[],O;if((O=p.pricingGroups)==null||!O.length||!a.length)return[];g=p.pricingGroups.filter(function(Q){return a.length?Q.pricingGroupAttributes.every(function(B){return a.includes(B)}):!1});
p=[];if(a.length>0){g=[].concat(_.VB(g));O=_.U(a);for(var P=O.next(),k={};!P.done;k={targetAttrId:void 0},P=O.next())k.targetAttrId=P.value,P=g.findIndex(function(Q){return function(B){return B.pricingGroupAttributes.includes(Q.targetAttrId)}}(k)),P!==-1&&(p.push(g[P]),g.splice(P,1))}var u=X().getSelectedPricingGroupAttributesByGroupId(C().groupId);
return p.map(function(Q){var B=!1;u&&Q.pricingGroupAttributes&&(B=P4(Q.pricingGroupAttributes,u));return{pricingGroup:Q,isSelected:B}})},
keyBy:function(p){return p.pricingGroup.pricingGroupId}},function(p){return _.A("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.A("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.A(_.BX,{data:function(){return p().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:JJ})),_.A("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.A(_.Qu,{checked:function(){return p().isSelected},
name:c,onClick:function(){var g=p().pricingGroup;X().onPricingGroupSelected(g.pricingGroupId);if(g=_.Y7(g.onSelectPricingGroup)){var a;(a=_.iX().resolve(_.uX))==null||a.resolveCommand(g)}}})))})))},"Dh");
Kn1.idomCompat=!0;var hnN=_.F(function(D){var C=D.data;var X=D.stateFns;var c=function(){var g=X().getSelectedPricingOptions().map(function(P){return P.pricingOptionId}),a=X().getSelectedProductByGroupId(C().groupId);
if(!a)return _.qN(Error("ak`"+C().groupId)),[];var O=X().getSelectedPricingGroupAttributesByGroupId(C().groupId);return A0U(a.pricingOptions,O,g)},W=_.di(function(){return C().pricingOptionSelectorSectionHeader}),p=function(){return c().length>1};
return _.A("pdp-pricing-option-selector-view-model",null,_.A(_.v,{cond:function(){return!!W()&&p()},
then:function(){return _.A(_.BX,{data:W},{sectionHeaderViewModel:function(g){g=g.data;var a={};return _.A("div",{class:_.g$("ytPdpPricingOptionSelectorViewModelSectionHeader",(a.ytPdpPricingOptionSelectorViewModelFullBleed=!0,a.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,a))},_.A(_.dM,{data:g}))}})}}),_.A(_.v,{cond:p,
then:function(){return _.A("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.A(_.Zh,{each:c,keyBy:"INDEX"},function(g){return _.A("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.A("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.A(_.BX,{data:function(){return g().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:JJ})),_.A("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.A(_.Qu,{checked:function(){return g().isSelected},
onClick:function(){X().onPricingOptionSelected(g().pricingOption.pricingOptionId);var a=g().pricingOption.onSelectPricingOption;if(a=_.Y7(a)){var O;(O=_.iX().resolve(_.uX))==null||O.resolveCommand(a)}}})))}))}}))},"Eh");
hnN.idomCompat=!0;var xhk=_.F(function(D){var C=D.data;var X=D.stateFns;return _.A("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.A(_.BX,{data:function(){var c,W;return(W=(c=X().getSelectedPricingOptions()[0])==null?void 0:c.primaryButton)!=null?W:C().emptyStateButton}},{buttonViewModel:_.Ze}))},"Fh");
xhk.idomCompat=!0;var LnY=_.F(function(D){var C=D.stateFns;return _.A("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.A(_.BX,{data:function(){return C().getSelectedPricingOptions().flatMap(function(X){return X.summaryLines}).filter(function(X){return!!X})}},{containerLayoutViewModel:function(X){return _.A("div",{class:"ytPdpSummaryViewModelLineItem"},_.A(JJ,{data:X.data}))}}))},"Gh");
LnY.idomCompat=!0;var sIo=_.F(function(D){function C(K){var L=g();_.fG(_.EW("pdpStateEntity",L,{key:L,selectedPricingOptions:K}))}
var X=D.data;var c=D.internalScrolling;var W=D.stateFnsForTesting;var p=_.di(function(){return X().allProducts},[]),g=_.di(function(){return X().pdpStateEntityKey},""),a=_.ku(PQ3,g),O=_.tw(function(){_.Mm(!0);
var K;return(K=W==null?void 0:W())!=null?K:vat(a,p,C)},void 0,"Pzdsic"),P=_.di(function(){return X().body},[]),k=_.di(function(){return X().columnBreakHints},[]),u=function(){return X().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Q=function(){return u()||X().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},B=_.tw(function(){var K=_.VX(X().background),L;
if(K==null?0:(L=K.sources)==null?0:L.length){var t=t===void 0?!0:t;K=_.a2j(void 0,K.sources,void 0,t,t?1E3:void 0,t?void 0:1E3)}else K=null;return K},void 0,"RDPOae");
_.JU(function(){var K=X().onStartCommand;if(K&&(K=_.Y7(K))){var L;(L=_.iX().resolve(_.uX))==null||L.resolveCommand(K)}});
D={};return _.A("pdp-view-model",{class:_.g$("ytPdpViewModelHost",(D.ytPdpViewModelHasBackground=function(){return Q()||!!B()},D.ytPdpViewModelHasDarkBackground=Q,D.ytPdpViewModelHasScrim=u,D.ytPdpViewModelInternalScrolling=c,D.ytPdpViewModelForceSingleColumn=function(){return k().length===0},D)),
style:_.P0({"--pdp-view-model-background":function(){return B()?"url("+B()+")":void 0}})},_.A("div",{class:"ytPdpViewModelColumnContainer"},_.A(_.Zh,{each:function(){return ilP(P(),k())},
keyBy:"INDEX"},function(K){return _.A("div",{class:"ytPdpViewModelColumn"},_.A(_.BX,{data:K},{containerLayoutViewModel:function(L){return _.A(zF,null,_.A(JJ,{data:L.data}))},
dividerViewModel:function(L){return _.A(zF,{fullBleed:!0},_.A(_.P05,{data:L.data}))},
pdpCardViewModel:function(L){return _.A(zF,null,_.A(be3,{data:L.data,stateFns:O}))},
pdpMastheadViewModel:function(L){return _.A(zF,null,_.A(rXw,{data:L.data,isOverlay:Q}))},
pdpPricingGroupSelectorViewModel:function(L){return _.A(zF,null,_.A(Kn1,{data:L.data,stateFns:O}))},
pdpPricingOptionSelectorViewModel:function(L){return _.A(zF,null,_.A(hnN,{data:L.data,stateFns:O}))},
pdpPrimaryButtonViewModel:function(L){return _.A(zF,null,_.A(xhk,{data:L.data,stateFns:O}))},
pdpSummaryViewModel:function(L){return _.A(zF,null,_.A(LnY,{data:L.data,stateFns:O}))},
sectionHeaderViewModel:function(L){return _.A(zF,{fullBleed:!0,noVerticalPadding:!0},_.A(_.dM,{data:L.data}))}}))})))},"Hh");
sIo.idomCompat=!0;var zF=_.F(function(D){var C={};return _.A("div",{class:_.g$("ytPdpViewModelItem",(C.ytPdpViewModelFullBleed=D.fullBleed,C.ytPdpViewModelNoVerticalPadding=D.noVerticalPadding,C))},D.children)},"Ih");_.CI(sIo,"pdp-view-model",{props:{data:_.Bm,stateFnsForTesting:_.R3,internalScrolling:_.R3}});var mhX=_.F(function(D){var C=D.data;var X=D.className;var c=_.ku(_.qo,function(){return C().flowStateEntityKey});
return _.A("ytm-premium-purchase-button-renderer",{class:_.g$("ytPremiumPurchaseButtonRendererHost",X)},_.A(_.BX,{data:function(){var W;return(W=_.r(c(),u2p))==null?void 0:W.primaryButtonOverride}},{buttonRenderer:function(W){return _.A(_.mb,{data:W.data,
className:X})},
buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,className:X})}}))},"Jh");
mhX.idomCompat=!0;var enP=_.F(function(D){var C=D.data;D=D.className;var X=function(){return kTk(C().style)},c=_.g$("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",X),W=_.g$("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",X);
return _.A("yt-flow-bottom-bar-renderer",{class:_.g$("yt-flow-bottom-bar-renderer",D,X)},_.A(_.BX,{data:function(){return C().secondaryButton}},{buttonRenderer:function(p){return _.A(_.mb,{data:p.data,
className:W})},
buttonViewModel:function(p){return _.A(_.Ze,{data:p.data,className:W})},
premiumPurchaseButtonRenderer:function(p){return _.A(mhX,{data:p.data,className:W})}}),_.A(_.BX,{data:function(){return C().primaryButton}},{buttonRenderer:function(p){return _.A(_.mb,{data:p.data,
className:c})},
buttonViewModel:function(p){return _.A(_.Ze,{data:p.data,className:c})},
premiumPurchaseButtonRenderer:function(p){return _.A(mhX,{data:p.data,className:c})}}))},"Kh");
enP.idomCompat=!0;_.CI(enP,"yt-flow-bottom-bar-renderer",{props:{data:_.Bm,className:_.Bm}});var EPw=_.F(function(D){var C=_.g$(D.className,"ytOfferSummaryRendererHost");return _.A("yt-offer-summary-renderer",{class:C},_.A("div",{class:"ytOfferSummaryRendererTextContainer"},_.A("div",{class:"ytOfferSummaryRendererEyebrowText"},_.A(_.QG,{text:function(){return D.data().eyebrowText}})),_.A("div",{class:"ytOfferSummaryRendererTitle"},_.A(_.QG,{text:function(){return D.data().title}})),_.A("div",{class:"ytOfferSummaryRendererSubtitle"},_.A(_.QG,{text:function(){return D.data().subtitle}})),_.A("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.A(_.Zh,{each:function(){var X;
return(X=D.data().featureListData)!=null?X:[]}},function(X){var c;
return _.A("div",{class:"ytOfferSummaryRendererFeatureList"},_.A(_.$_,{icon:(c=X.icon)==null?void 0:c.iconType,active:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(X.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.A("div",{class:"ytOfferSummaryRendererFeatureListText"},_.A(_.QG,{text:X.text,
className:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.A("div",{class:"ytOfferSummaryRendererDescription"},_.A(_.QG,{text:function(){return D.data().description}}))))},"Lh");_.CI(_.F(function(D){var C={};C=_.g$("ytOfferSummaryFlowStepRendererHost",(C.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=D.shouldDisableHeaderTopMargin,C));return _.A("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:C},_.A("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.A("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.A(_.QG,{text:function(){return D.data().header}})),_.A("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.A(_.QG,{text:function(){return D.data().subtitle}}))),_.A("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.A(_.BX,{data:function(){return D.data().offerSummary}},{offerSummaryRenderer:function(X){return _.A(EPw,{data:X.data,
className:D.flowClassName})}})))},"Mh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.R3,
flowClassName:_.R3,flowStateEntityKey:_.R3,shouldDisableHeaderTopMargin:_.R3}});var tVo=_.F(function(D){var C=D.data;var X=D.className;var c=D.flowStateEntityKey;var W=D.selectionStepStyle;D=_.I_(function(O){var P=C(),k=c==null?void 0:c();O.target&&(O.stopPropagation(),O=k||"",k=_.qo(_.qw().getState(),O),P=Object.assign({},k,{premiumPurchaseFlowState:{selectedOptionId:P.optionId,primaryButtonOverride:P.primaryButtonOverride}}),_.qw().dispatch(_.bK("flowStateEntity",O,P)));return!1});
var p=function(){return(c==null?void 0:c())||""},g=_.ku(_.qo,p);
_.JU(function(){var O=C(),P=p(),k=g();O.defaultSelected&&P!==""&&O.primaryButtonOverride&&QS6(O.optionId||"",P,O.primaryButtonOverride,k)});
var a={};return _.A("ytm-option-item-renderer",{"on:click":D,class:_.g$(X,"ytm-option-item-renderer",(a["ytm-option-item-renderer--lp2-style"]=function(){return(W==null?void 0:W())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},a))},_.A("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.A("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var O=C(),P=p(),k=g();k=_.r(k,u2p);return(k?(k==null?void 0:k.selectedOptionId)||"":O.defaultSelected&&P!==""?(O==null?void 0:O.optionId)||"":"")===C().optionId},
name:("input"+_.jP(_.vb)).toString()})),_.A("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.A(_.BX,{data:function(){return C().titleBadge}},{badgeViewModel:function(O){return _.A(_.ex,{data:O.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.A(_.v,{cond:function(){return C().eyebrowText},
then:function(){return _.A("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.A(_.QG,{text:function(){return C().eyebrowText}}))}}),_.A("div",{class:"ytm-option-item-renderer__option-item-title"},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.A(_.QG,{text:function(){return C().subtitle}})),_.A(_.v,{cond:function(){return C().featureListData},
then:function(){return _.A("div",{class:"ytm-option-item-renderer__feature-list-data"},_.A(_.Zh,{each:function(){return C().featureListData||[]}},function(O){var P,k=(P=O.icon)==null?void 0:P.iconType;
a:switch(O.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":P="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":P="ytm-option-item-renderer__feature-list-icon-small";break a;default:P="ytm-option-item-renderer__feature-list-icon-default"}return _.A("div",{class:"ytm-option-item-renderer__feature-list"},_.A(_.$_,{icon:k,className:P,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.A("div",{class:"ytm-option-item-renderer__feature-list-text"},_.A(_.QG,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.A("div",{class:"ytm-option-item-renderer__option-item-description"},_.A(_.QG,{text:function(){return C().description}}))))},"Nh");var NJP=_.F(function(D){var C=D.data;var X=D.flowClassName;var c=D.flowStateEntityKey;var W=D.selectionStepStyle;return _.A("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.A("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.A("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.A(_.QG,{text:function(){return C().title}}),_.A(_.BX,{data:function(){return C().titleBadge}},{badgeViewModel:function(p){return _.A(_.ex,{data:p.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.A(_.v,{cond:function(){return C().subtitle},
then:function(){return _.A("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.A(_.QG,{text:function(){return C().subtitle}}))}}),_.A(_.v,{cond:function(){return C().featureListData},
then:function(p){return _.A("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.A(_.Zh,{each:p},function(g){var a;return _.A("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.A(_.$_,{icon:(a=g.icon)==null?void 0:a.iconType,active:function(){return g.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(g.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.A("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.A(_.QG,{text:g.text,
className:function(){return g.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.A(_.v,{cond:function(){return C().secondaryTitle},
then:function(){return _.A("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.A(_.QG,{text:function(){return C().secondaryTitle}}))}}),_.A(_.Zh,{each:function(){return C().sectionDisclaimers||[]}},function(p){return _.A("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.A(_.QG,{text:p}))})),_.A(_.BX,{data:function(){return C().optionItems}},{optionItemRenderer:function(p){return _.A("div",{class:"ytOptionSectionRendererOptionItem"},_.A(tVo,{data:p.data,
className:X,flowStateEntityKey:c,selectionStepStyle:W}))}}),_.A(_.v,{cond:function(){return C().offerText},
then:function(){return _.A("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.A(_.QG,{text:function(){return C().offerText}}))}}))},"Oh");
NJP.idomCompat=!0;var Y1N=_.F(function(D){var C=D.data;var X=D.flowClassName;var c=D.flowStateEntityKey;D=D.isDesktop;var W=_.aX("div"),p=function(){var k;return(k=C().flowStateEntityKey)!=null?k:c==null?void 0:c()},g=function(){return(p==null?void 0:p())||""},a=function(){return C().style},O=_.ku(_.qo,g);
_.JU(function(){Brt(C(),g(),O());setTimeout(function(){var k;(k=W.value)==null||k.focus()})});
var P={};return _.A("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.g$("ytm-option-selection-flow-step-renderer",(P["ytm-option-selection-flow-step-renderer--desktop"]=D,P["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return C().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},P))},_.A("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"},
_.A("div",{el:W,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.A(_.QG,{text:function(){return C().header}})),_.A("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.A(_.QG,{text:function(){return C().subtitle}}))),_.A(_.BX,{data:function(){return C().optionItems||[]}},{optionItemRenderer:function(k){return _.A("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.A(tVo,{data:k.data,
className:X,flowStateEntityKey:p,selectionStepStyle:a}))},
optionSectionRenderer:function(k){return _.A("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.A(NJP,{data:k.data,flowClassName:X,flowStateEntityKey:p,selectionStepStyle:a}))}}))},"Ph");
Y1N.idomCompat=!0;_.CI(Y1N,"yt-option-selection-flow-step-renderer",{props:{data:_.Bm,flowClassName:_.Bm,flowStateEntityKey:_.Bm,isDesktop:_.Bm}});_.jF=_.F(function(D){var C=_.Ro(D,{type:1,disablePadding:!1,disablePrimaryButton:!1}),X=C.data,c=C.type;D=C.disablePadding;var W=C.disablePrimaryButton,p=C.onClickPrimaryButton,g=function(){return X().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},a=function(){return{disabled:W(),
state:W()?"disabled":"active"}},O=function(){return X().leadingLabel||X().trailingLabel};
C={};return _.A("yt-panel-footer-view-model",{class:_.g$("yt-panel-footer-view-model",(C["yt-panel-footer-view-model--hide-divider"]=function(){return X().shouldHideDivider},C["yt-panel-footer-view-model--disable-padding"]=D,C))},_.A(_.v,{cond:O,
then:function(){var P={},k={};return _.A("div",{class:_.g$("yt-panel-footer-view-model__text-row",(P["yt-panel-footer-view-model--row-bottom-padding"]=function(){var u=X();return!(!u.leadingLabel&&!u.trailingLabel||!u.primaryButton&&!u.secondaryButton)},P))},_.A(_.QG,{text:function(){return X().leadingLabel},
className:_.g$((k["yt-panel-footer-view-model--text-padding"]=O,k))}),_.A(_.QG,{text:function(){return X().trailingLabel}}))}}),_.A(_.v,{cond:g,
then:function(){var P={};return _.A("div",{class:"yt-panel-footer-view-model__button-stack"},_.A("div",{class:_.g$("yt-panel-footer-view-model__primary-button",(P["yt-panel-footer-view-model__button-stack--top-button"]=function(){return X().secondaryButton},P))},_.A(_.BX,{data:function(){return X().primaryButton}},{buttonViewModel:function(k){return _.A(_.Ze,{data:k.data,
buttonOverrides:a,onClick:p})}})),_.A(_.BX,{data:function(){return X().secondaryButton}},{buttonViewModel:_.Ze}))}}),_.A(_.v,{cond:function(){return!g()},
then:function(){var P={},k={},u={};return _.A("div",{class:_.g$("yt-panel-footer-view-model__button-row",(P["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===c()},P))},_.A("div",{class:_.g$("yt-panel-footer-view-model__button-row--left-button",(k["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===c()},k["yt-panel-footer-view-model__button-row--hidden"]=function(){return!X().secondaryButton||0===c()},k["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===c()},k))},_.A(_.BX,{data:function(){return X().secondaryButton}},{buttonViewModel:_.Ze})),_.A("div",{class:_.g$("yt-panel-footer-view-model__primary-button",(u["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===c()||1===c()},u["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===c()},u))},_.A(_.BX,{data:function(){return X().primaryButton}},{buttonViewModel:function(Q){return _.A(_.Ze,{data:Q.data,
buttonOverrides:a,onClick:p})}})))}}))},"Qh");
_.jF.idomCompat=!0;_.yXo=_.F(function(D){D=_.Ro(D,{disablePadding:!1});var C=D.data,X=D.disablePadding;D=_.OB3(function(){return C().formId},void 0,function(){return C().onSubmitSuccess});
var c=D.submitForm,W=D.isValid,p=D.isSubmitting;return _.A("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.A(_.BX,{data:function(){return C().panelFooter}},{panelFooterViewModel:function(g){return _.A(_.jF,{data:g.data,
onClickPrimaryButton:function(){c()},
disablePrimaryButton:function(){return!W()||p()},
disablePadding:X})}}))},"Rh");_.CI(_.yXo,"yt-form-footer-view-model",{props:{data:_.Bm,disablePadding:_.Bm}});var nPN=_.F(function(D){var C=_.b("enable_user_rating_web");return _.A("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.A("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.A(_.v,{cond:function(){var X;return(X=D.data())==null?void 0:X.image},
then:function(X){return _.A(_.M_,{data:X,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.A("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.A(_.QG,{text:function(){var X;
return(X=D.data())==null?void 0:X.title}})),_.A("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.A(_.QG,{text:function(){var X;
return(X=D.data())==null?void 0:X.subtitle}})),_.A(_.v,{cond:function(){return!C},
then:function(){return _.A(_.BX,{data:function(){var X;return(X=D.data())==null?void 0:X.viewTipsButton}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Sh");_.CI(nPN,"yt-contributor-zero-state-view-model",{props:{data:_.Bm}});var w_o=_.F(function(D){var C=function(){var X;return(X=D.data())==null?void 0:X.image};
return _.A("yt-featured-content-item-view-model",{class:_.g$("ytFeaturedContentItemViewModelHost")},_.A("div",{class:_.g$(function(){return C()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.A("div",{class:function(){return C()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.A(_.v,{cond:C,
then:function(){return _.A("div",{class:"ytFeaturedContentItemViewModelImage"},_.A(_.BX,{data:function(){return D.data().image}},{themedImageViewModel:function(X){return _.A(QIG,{data:X.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.A(_.v,{cond:function(){var X;
return!C()&&((X=D.data())==null?void 0:X.iconName)},
then:function(){return _.A("div",{class:"ytFeaturedContentItemViewModelIcon"},_.A(_.$_,{icon:function(){return D.data().iconName}}))}}),_.A("div",{class:"ytFeaturedContentItemViewModelContent"},_.A(_.v,{cond:function(){var X;
return(X=D.data())==null?void 0:X.title},
then:function(){return _.A("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.A(_.QG,{text:function(){return D.data().title}}))}}),_.A(_.v,{cond:function(){var X;
return(X=D.data())==null?void 0:X.body},
then:function(){return _.A("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.A(_.QG,{text:function(){return D.data().body}}))}})))))},"Th");var Fnp=_.F(function(D){var C=function(){var W;return blp((W=D.data())==null?void 0:W.titleFontSize)},X=function(){var W;
return r0t((W=D.data())==null?void 0:W.descriptionFontSize)},c=function(){var W;
return((W=D.data())==null?void 0:W.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.A("yt-landing-page-view-model",{class:_.g$("ytLandingPageViewModelHost",D.className)},_.A("div",{class:"ytLandingPageViewModelHeader"},_.A(_.v,{cond:function(){var W;return(W=D.data())==null?void 0:W.bannerImage},
then:function(W){return _.A("div",{class:"ytLandingPageViewModelHeaderImage"},_.A(_.BX,{data:function(){return W()}},{imageBannerViewModel:function(p){return _.A(_.hz,{data:p.data,
isPositionRelative:!0})}}))}}),_.A(_.v,{cond:function(){var W;
return(W=D.data())==null?void 0:W.bannerAnimation},
then:function(W){return _.A(_.zl,{data:function(){var p=W();if(p==null?0:p.url){var g;p={path:(g=p==null?void 0:p.url)!=null?g:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(p==null?0:p.payload){var a;p={animationData:JSON.parse((a=p==null?void 0:p.payload)!=null?a:""),autoplay:!0,loop:!0,renderer:"svg"}}else p=void 0;return{animationConfig:p}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.A("div",{class:"ytLandingPageViewModelHeaderTitle"},_.A(_.v,{cond:function(){var W;
return(W=D.data())==null?void 0:W.title},
then:function(W){return _.A("div",{class:_.g$("ytLandingPageViewModelHeaderTitleContent",C)},_.A(_.QG,{text:function(){return W()}}))}}),_.A(_.v,{cond:function(){var W;
return(W=D.data())==null?void 0:W.description},
then:function(W){var p={};return _.A(_.QG,{className:_.g$("ytLandingPageViewModelHeaderTitleDescription",X,(p.ytLandingPageViewModelHeaderTitleDescriptionMargin=c,p)),text:function(){return W()}})}}))),_.A(_.v,{cond:function(){var W,p;
return(W=D.data())==null?void 0:(p=W.featuredContentList)==null?void 0:p.length},
then:function(){return _.A("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.A(_.BX,{data:function(){return D.data().featuredContentList}},{featuredContentItemViewModel:function(W){return _.A(w_o,{data:W.data})}}))}}),_.A(_.v,{cond:function(){var W,p;
return(W=D.data())==null?void 0:(p=W.expandableContentList)==null?void 0:p.length},
then:function(){return _.A("div",{class:"ytLandingPageViewModelFaqSection"},_.A(_.BX,{data:function(){return D.data().expandableContentList}},{faqEntryViewModel:function(W){return _.A("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.A(_.dS5,{data:W.data}))}}))}}),_.A("div",{class:"ytLandingPageViewModelFooter"},_.A(_.v,{cond:function(){var W;
return(W=D.data())==null?void 0:W.legalCopy},
then:function(W){return _.A("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.A(_.QG,{text:function(){return W()}}))}}),_.A(_.v,{cond:function(){var W;
return(W=D.data())==null?void 0:W.actions},
then:function(W){return _.A("div",null,_.A(_.BX,{data:function(){return W()}},{flexibleActionsViewModel:function(p){return _.A(_.AS,{data:p.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Uh");_.CI(_.F(function(D){return _.A("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.A("div",{class:"ytLpSectionGroupViewModelContainer"},_.A(_.BX,{data:function(){return D.data().sections}},{landingPageViewModel:function(C){return _.A(Fnp,{data:C.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Vh"),"yt-lp-section-group-view-model",{props:{data:_.Bm}});var ZeX=_.F(function(D){var C=D.data;var X=D.selectedKey;var c=D.onSelected;var W=D.groupName;var p=function(){return C().text},g=function(){return C().attributedText},a=function(){return C().subtext},O=function(){return C().attributedSubtext},P=_.A("div",{class:"ytRadioButtonItemViewModelLabel"},_.A(_.v,{cond:p,
then:function(){return _.A("div",null,p)}}),_.A(_.v,{cond:g,
then:function(){return _.A(_.QG,{text:g})}}),_.A(_.v,{cond:a,
then:function(){return _.A("div",{class:"ytRadioButtonItemViewModelSubText"},a)}}),_.A(_.v,{cond:O,
then:function(){return _.A("div",{class:"ytRadioButtonItemViewModelSubText"},_.A(_.QG,{text:O}))}})),k=function(){if(g()){var Q;
return(Q=g())==null?void 0:Q.content}return p()},u=function(){if(O()){var Q;
return(Q=O())==null?void 0:Q.content}return a()};
D={};return _.A("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.A(_.Qu,{name:W,checked:function(){return!(X==null||!X()||C().key!==(X==null?void 0:X()))},
onChange:function(Q){c==null||c(Q.target,C(),W==null?void 0:W())},
labelRenderable:function(){return P},
ariaLabel:function(){return u()?k()+", "+u():k()},
className:_.g$((D.ytRadioButtonItemViewModelSubTitle=function(){return!!C().subtext},D))}))},"Wh");_.G1G=_.F(function(D){var C=D.data;var X=function(){var c;return _.tG((c=C())==null?void 0:c.rendererContext)};
D={};return _.A("content-list-item-view-model",{el:_.fb(_.NH(function(){return C().rendererContext})),
class:_.g$("ytContentListItemViewModelHost",(D.ytContentListItemViewModelTappable=X,D)),role:function(){return X()?"listitem":void 0},
tabindex:function(){return X()?0:void 0}},_.A("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.A("div",{class:"ytContentListItemViewModelImageContainer"},_.A(_.v,{cond:function(){return C().image},
then:function(c){return _.A(_.M_,{data:c,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.A(_.BX,{data:function(){var c;
return(c=C())==null?void 0:c.avatar}},{avatarViewModel:_.Iu})),_.A("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.A("div",{class:_.g$("ytContentListItemViewModelTitle",function(){a:{switch(C().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var c="ytContentListItemViewModelProminentTitle";
break a}c=void 0}return c})},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytContentListItemViewModelMetadata"},_.A(_.BX,{data:function(){return C().metadata}},{contentMetadataViewModel:function(c){return _.A(_.Vw,{data:c.data,
layout:1})}})))),_.A("div",{class:"ytContentListItemViewModelActionButton"},_.A(_.BX,{data:function(){var c;
return(c=C())==null?void 0:c.actionButton}},{buttonViewModel:_.Ze,
toggleButtonViewModel:_.o1})))},"Xh");var VVt=_.F(function(D){var C=D.data,X=function(){var W;return(W=C())==null?void 0:W.description},c=function(){var W;
return(W=C())==null?void 0:W.title};
return _.A("ytfc-youth-basic-section-header-view-model",{class:_.g$("ytfcYouthBasicSectionHeaderViewModelHost",D.className)},_.A("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.A(_.BX,{data:function(){var W;return(W=C())==null?void 0:W.avatar}},{avatarViewModel:_.Iu}),_.A(_.v,{cond:function(){var W;
return _.VX((W=C())==null?void 0:W.themedImage)},
then:function(W){return _.A(_.M_,{data:W,alt:function(){var p,g;return(g=(p=c())==null?void 0:p.content)!=null?g:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.A("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.A(_.v,{cond:c,
then:function(){return _.A(_.QG,{text:c,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.A("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.A(_.BX,{data:function(){var W;
return(W=C())==null?void 0:W.bottomBadge}},{badgeViewModel:function(W){return _.A("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.A(_.ex,{data:W.data}))}}),_.A(_.v,{cond:X,
then:function(){return _.A(_.QG,{text:X,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Yh");var TJk=_.F(function(D){var C=D.data;return _.A("ytfc-youth-section-body-view-model",{class:_.g$("ytfcYouthSectionBodyViewModelHost",D.className)},_.A(_.BX,{data:function(){var X;return(X=C())==null?void 0:X.topContent}},{avatarStackViewModel:function(X){return _.A(_.Ae,{data:X.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.A(_.QG,{text:function(){var X;
return(X=C())==null?void 0:X.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Zh");var HeN=_.F(function(D){var C=_.U(_.Li(!1,void 0,"SrK51e")),X=C.next().value,c=C.next().value,W=function(){return D.data().inlineExpansionEntityKey},p=_.ku(FRY,W),g=function(){if(D.isSelected!==void 0)return D.isSelected();
if(W()){var O;return(O=p())==null?void 0:O.expanded}return X()};
C={};var a={};return _.A("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.I_(function(){D.isSelected!==void 0||W()||c(!X())})},_.A("div",{class:"ytInlineExpanderViewModelHeader"},_.A(_.BX,{data:function(){return D.data().headerContent}},{youthBasicSectionHeaderViewModel:VVt}),_.A("div",{class:_.g$("ytInlineExpanderViewModelButton",(C.ytInlineExpanderViewModelButtonExpanded=g,C))},_.A(_.FC,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:g(),accessibilityLabel:g()?_.I7("SHOW_LESS",void 0,"Show Less"):_.I7("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.A("div",{class:_.g$("ytInlineExpanderViewModelBody",(a.ytInlineExpanderViewModelBodyExpanded=g,a)),"aria-hidden":function(){return!g()}},_.A("div",{class:"ytInlineExpanderViewModelBodyContent"},_.A(_.BX,{data:function(){return D.data().bodyContent}},{youthSectionBodyViewModel:TJk}))))},"$h");var JXG=new _.P6("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.zn1=_.F(function(D){var C=function(){return D.data().background},X=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},c=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},W=_.iX().resolve(_.vK(JXG)),p={};
return _.A("yt-card-view-model",{el:_.fb(_.NH(function(){return D.data().rendererContext})),
class:_.g$("ytCardViewModelHost",D.className,(p.ytCardViewModelClickable=function(){return _.EN(D.data().rendererContext)},p))},_.A(_.TO,{contentId:function(){return D.data().contentId}},function(){var g={};
return _.A("div",{class:_.g$("ytCardViewModelCardViewModelInner",function(){var a;return KF3(D.data().cardStyle,(a=D.isSelected)==null?void 0:a.call(D))},function(){if(D.isSelected===void 0){var a;
a:{switch((a=D.data().cardState)==null?void 0:a.selectionState){case "CARD_SELECTION_STATE_SELECTED":a="ytCardViewModelSelected";break a}a=void 0}return a}})},_.A(_.BX,{data:C},{cinematicContainerViewModel:function(a){return _.A(_.URp,{data:a.data})}}),_.A("div",{class:"ytCardViewModelContentWrapper"},_.A(_.v,{cond:function(){return!X()},
then:function(){var a={},O={};return _.A("div",{class:"ytCardViewModelTopContentContainer"},_.A("div",{class:_.g$("ytCardViewModelTopContent",(a.ytCardViewModelInnerPadding=function(){return!D.data().disableTopContentPadding&&D.data().topContent},a))},_.A(_.BX,{data:function(){return D.data().topContent}},{contentListItemViewModel:function(P){return _.A(_.G1G,{data:P.data})},
basicContentViewModel:_.uM,linearLayoutViewModel:_.bM})),_.A("div",{class:_.g$("ytCardViewModelInlineTrailingAction",(O.ytCardViewModelInlineCenterTrailingAction=c,O.ytCardViewModelInlineTrailingActionMargin=function(){return D.data().trailingAction},O))},_.A(_.BX,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(P){return _.A(_.Ze,{data:P.data})}})))}}),_.A("div",{class:_.g$((g.ytCardViewModelInnerPadding=function(){return!D.data().disableBodyContentPadding&&D.data().bodyContent},
g))},_.A(_.BX,{data:function(){return D.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.TOX,
contentListItemViewModel:_.G1G,descriptionPreviewViewModel:_.fE,inlineExpanderViewModel:function(a){return _.A(HeN,{data:a.data,isSelected:D.isSelected})},
linearLayoutViewModel:_.bM,listItemViewModel:_.Bb},W&&{contentSectionViewModel:W})))),_.A(_.v,{cond:function(){return X()},
then:function(){return _.A("div",{class:"ytCardViewModelOverlayTrailingAction"},_.A(_.BX,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data})}}))}}))}))},"ai");var jIU=_.F(function(D){var C=D.data,X=D.onSelected,c=D.selectedKey,W=D.groupName;D=D.className;var p=_.U(_.Li(!1,void 0,"mDtSad")),g=p.next().value,a=p.next().value,O=function(){if(c!==void 0){var P=c();return!(!P||C().key!==P)}return g()};
p=_.I_(function(P){X?X(P.currentTarget,C(),W==null?void 0:W()):a(!g())});
return _.A("yt-selectable-item-view-model",{class:_.g$("ytSelectableItemViewModelHost",D,"ytSelectableItemViewModelContainer"),"on:click":p,"prop:checked":O},_.A(_.BX,{data:function(){return C().content}},{cardViewModel:function(P){return _.A(_.zn1,{data:P.data,
isSelected:O})}}))},"bi");_.MVt=_.F(function(D){var C=D.data;var X=D.onSelected;var c=D.selectedKey;var W=D.groupName;var p=function(){return(W==null?void 0:W())||C().key};
return _.A("yt-radio-button-group-view-model",{class:_.g$("ytRadioButtonGroupViewModelHost",D.className)},_.A("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.A(_.BX,{data:function(){return C().radioButtons}},{radioButtonItemViewModel:function(g){return _.A(ZeX,{data:g.data,
onSelected:X,selectedKey:c,groupName:p})},
selectableItemViewModel:function(g){return _.A(jIU,{data:g.data,onSelected:X,selectedKey:c,groupName:p})}})))},"ci");var q1N=_.F(function(D){_.JU(function(){if(D.controlledMode()&&D.data().defaultSelected)_.MN(Error("bk"));else{var p;!D.controlledMode()&&((p=D.selected)==null?0:p.call(D))&&_.MN(Error("ck"))}});
var C=_.U(_.d2(function(){if(!D.controlledMode())return D.data().defaultSelected})),X=C.next().value,c=C.next().value,W=function(){if(!D.controlledMode())return X();
var p;return(p=D.selected)==null?void 0:p.call(D)};
return _.A("yt-checkbox-item-view-model",{class:_.g$("ytCheckboxItemViewModelHost",D.className)},_.A(_.Bb,{data:function(){var p=D.data(),g=W();return{title:p.text,subtitle:p.subtext,superlabel:p.superlabel,isSelected:!!g,isDisabled:p.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!D.controlledMode()&&c(!X());var p,g;(g=D.onTap)==null||g.call(D,!!W(),D.data(),(p=D.groupName)==null?void 0:p.call(D))},
isCompact:D.isCompact}))},"di");var f76=_.F(function(D){var C=D.data;var X=D.controlledMode;var c=D.selectedKeys;var W=D.onItemTap;var p=D.groupName;var g=function(){return(p==null?void 0:p())||C().key};
_.JU(function(){X()&&C().defaultSelectedKeys?_.MN(Error("dk")):!X()&&(c==null?0:c())&&_.MN(Error("ek"))});
D=_.U(_.d2(function(){if(!X())return C().defaultSelectedKeys}));
var a=D.next().value,O=D.next().value,P=function(k,u,Q){k=[];!X()&&u.key&&(k=h2G(u.key,a()||[]),O(k));W==null||W(u,k,Q)};
return _.A("yt-checkbox-group-view-model",{class:_.g$("ytCheckboxGroupViewModelHost")},_.A("fieldset",{class:_.g$("ytCheckboxGroupViewModelFieldset")},_.A("div",{role:"list"},_.A(_.BX,{data:function(){return C().checkboxes}},{checkboxItemViewModel:function(k){var u=k.data;
return _.A(q1N,{data:u,controlledMode:!0,selected:function(){var Q=X()?(c==null?void 0:c())||[]:a()||[],B=u().key;return B?Q.includes(B):!1},
onTap:P,groupName:g})}}))))},"ei");var Mj=_.F(function(D){var C=_.ku(xOP,_.di(function(){var a;return(a=D.data())==null?void 0:a.noteFeedEntityKey},"")),X=_.ku(T0N,_.di(function(){var a;
return(a=D.data())==null?void 0:a.userRatingEntityKey},"")),c=_.b("enable_user_rating_web"),W=function(){var a,O,P;
return((a=C())==null?0:a.contributorNote)?(O=C())==null?void 0:O.contributorNote:(P=D.data())==null?void 0:P.existingNote},p=function(){var a,O;
return!!X()&&!!LFY((a=X())==null?void 0:a.helpfulnessValue,(O=D.data())==null?void 0:O.noteData)};
if(c){var g={};return _.A("yt-note-view-model",{class:_.g$("ytNoteViewModelHostUserRating",(g.ytNoteViewModelHostUserRatingPublishedNote=function(){var a,O,P,k;return((a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPublished)&&!((P=D.data())==null?0:(k=P.noteData)==null?0:k.isUserRatingForm)},g))},_.A("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.A("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.A(_.v,{cond:function(){var a,O;
return(a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPinned},
then:function(){return _.A(_.$_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.A(_.v,{cond:function(){var a,O;return(a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPublished},
then:function(){return _.A(_.$_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.A(_.BX,{data:function(){var a;
return(a=D.data())==null?void 0:a.metadata}},{contentMetadataViewModel:_.Vw}),_.A("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var a,O;
return(O=_.r((a=D.data())==null?void 0:a.metadata,_.Kyx))==null?void 0:O.delimiter}),_.A(_.QG,{text:function(){var a;
return(a=W())==null?void 0:a.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.A(_.v,{cond:function(){var a,O;return!((a=D.data())==null?0:(O=a.noteData)==null?0:O.isUserRatingForm)},
then:function(){return _.A(_.BX,{data:function(){var a,O,P,k,u,Q,B,K=!!((a=D.data())==null?0:(O=a.noteData)==null?0:O.isPinned);a=p();O=(P=D.data())==null?void 0:P.noteData;P=(k=C())==null?void 0:(u=k.contributorNote)==null?void 0:u.deleteAction;k=(Q=D.data())==null?void 0:Q.overflowButtonNoteWithRatingOnTapOverride;Q=(B=D.data())==null?void 0:B.overflowButton;var L;B=(L=_.r(Q,_.is))==null?void 0:L.accessibilityText;return K?sSX(O,P,B):a?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:k,accessibilityText:B}}:Q}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.A("div",{class:"ytNoteViewModelNoteContent"},_.A(_.QG,{text:function(){var a;
return(a=W())==null?void 0:a.text}})),_.A(_.v,{cond:function(){var a,O,P,k;
return!((a=D.data())==null?0:(O=a.noteData)==null?0:O.isPinned)&&!((P=D.data())==null?0:(k=P.noteData)==null?0:k.isUserRatingForm)},
then:function(){return _.A(_.v,{cond:p,then:function(){return _.A("div",{class:"ytNoteViewModelUserRatingContainer"},_.A(_.QG,{text:function(){var a,O;return LFY((a=X())==null?void 0:a.helpfulnessValue,(O=D.data())==null?void 0:O.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.A(_.BX,{data:function(){var a;return(a=D.data())==null?void 0:a.userRatingButton}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.A(_.v,{cond:function(){var a,O,P,k;
return!((a=D.data())==null?0:(O=a.noteData)==null?0:O.ignoreDivider)&&!((P=D.data())==null?0:(k=P.noteData)==null?0:k.isUserRatingForm)},
then:function(){return _.A("div",{class:"ytNoteViewModelDivider"},_.A(_.BX,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(a){return _.A(_.P05,{data:a.data})}}))}}))}return _.A("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.A("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.A("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.A(_.v,{cond:function(){var a,O;return(a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPinned},
then:function(){return _.A(_.$_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.A(_.v,{cond:function(){var a,O;return(a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPublished},
then:function(){return _.A(_.$_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.A(_.v,{cond:function(){return c},
then:function(){return _.A(_.BX,{data:function(){var a;return(a=D.data())==null?void 0:a.metadata}},{contentMetadataViewModel:function(a){return _.A(_.Vw,{data:a.data})}})}}),_.A(_.QG,{text:function(){var a,O;
return(a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.headerText}}),_.A("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.A(_.QG,{text:function(){var a,O;
return(a=D.data())==null?void 0:(O=a.noteData)==null?void 0:O.delimiter}})),_.A(_.QG,{text:function(){var a,O;
return(a=C())==null?void 0:(O=a.contributorNote)==null?void 0:O.publishedTimeText}})),_.A(_.BX,{data:function(){var a,O,P;
return sSX((a=D.data())==null?void 0:a.noteData,(O=C())==null?void 0:(P=O.contributorNote)==null?void 0:P.deleteAction)}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.A("div",{class:"ytNoteViewModelNoteContent"},_.A(_.QG,{text:function(){var a,O;
return(a=C())==null?void 0:(O=a.contributorNote)==null?void 0:O.text}})))},"fi");
Mj.idomCompat=!0;_.CI(_.F(function(D){var C=_.di(function(){var y;return(y=D.data())==null?void 0:y.flowStateEntityKey},""),X=_.ku(_.qo,C),c=_.ku(xOP,_.di(function(){var y;
return(y=D.data())==null?void 0:y.noteFeedEntityKey},"")),W=_.U(_.d2(function(){var y;
return(y=_.r(D.data().helpfulnessValue,_.pEw))==null?void 0:y.defaultSelectedKey})),p=W.next().value,g=W.next().value;
W=_.U(_.d2(function(){var y,J,T;return(T=_.r((y=_.r(D.data().helpfulnessValue,_.pEw))==null?void 0:(J=y.radioButtons)==null?void 0:J.find(function(H){var q;return((q=_.r(H,SpU))==null?void 0:q.key)===p()}),SpU))==null?void 0:T.value}));
var a=W.next().value,O=W.next().value;W=_.U(_.d2(function(){var y;return(y=_.r(D.data().helpfulReasons,WUp))==null?void 0:y.defaultSelectedKeys}));
var P=W.next().value,k=W.next().value;W=_.U(_.d2(function(){var y;return(y=_.r(D.data().notHelpfulReasons,WUp))==null?void 0:y.defaultSelectedKeys}));
var u=W.next().value,Q=W.next().value,B=function(y,J){g(J.key);O(J.value);k([]);Q([])},K=function(){var y,J;
return((y=a())==null?void 0:y.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((J=a())==null?void 0:J.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},L=function(){var y,J;
return((y=a())==null?void 0:y.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((J=a())==null?void 0:J.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},t=function(y){mO1(y.key,P,k)},Y=function(y){mO1(y.key,u,Q)};
_.JU(function(){var y,J,T;G5t((y=D.data())==null?void 0:(J=y.userRatingFormSchema)==null?void 0:J.id,{isValid:function(){return!!p()},
formData:function(){var H=a(),q=Ea1(P(),_.r(D.data().helpfulReasons,WUp)),R=Ea1(u(),_.r(D.data().notHelpfulReasons,WUp));H={helpfulnessValue:H==null?void 0:H.noteHelpfulnessValue};if(q){H.helpfulReasons=[];q=_.U(q);for(var ph=q.next();!ph.done;ph=q.next()){ph=ph.value;var Om=void 0;if((Om=ph)==null?0:Om.noteHelpfulReason)Om=void 0,H.helpfulReasons.push((Om=ph)==null?void 0:Om.noteHelpfulReason)}}if(R)for(H.notHelpfulReasons=[],R=_.U(R),q=R.next();!q.done;q=R.next())if(q=q.value,ph=void 0,(ph=q)==
null?0:ph.noteNotHelpfulReason)ph=void 0,H.notHelpfulReasons.push((ph=q)==null?void 0:ph.noteNotHelpfulReason);return{userRatingFormData:H}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(T=_.r(X(),jBP))==null?void 0:T.submitFormParams},onSubmitResult:function(){var H,q=(H=_.r(X(),jBP))==null?void 0:H.userRatingEntityKey,R;H={key:q,helpfulnessValue:(R=a())==null?void 0:R.noteHelpfulnessValue};q&&_.fG(_.bK("contextNoteUserRatingEntityPayload",q,H));var ph;q=(ph=D.data())==null?void 0:ph.viewNoteFlowStepId;var Om;if((Om=c())==null||!Om.contributorNote){var xj;q=(xj=D.data())==null?void 0:xj.zeroStateFlowStepId}(ph=
Object.assign({},X()))&&q&&(ph.currentStepId=q,ph.stepIdStack=[q],_.fG(_.bK("flowStateEntity",C(),ph)));var Bo;(ph=(Bo=D.data())==null?void 0:Bo.ratingSubmittedSnackbarCommand)&&_.FV(ph)},
disableDuringSubmission:!0})});
return _.A("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.A(_.BX,{data:function(){var y=_.r(X(),jBP);if(y){var J;var T={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:y==null?void 0:(J=y.note)==null?void 0:J.headerText}]}],delimiter:"\u2022"}},existingNote:y.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else T=void 0;return T}},{noteViewModel:function(y){return _.A("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.A(Mj,{data:y.data}))}}),_.A(_.BX,{data:function(){var y;
return(y=D.data())==null?void 0:y.helpfulnessValue}},{radioButtonGroupViewModel:function(y){return _.A("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.A(_.MVt,{data:y.data,
onSelected:B,selectedKey:p}))}}),_.A(_.v,{cond:K,
then:function(){return _.A("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.A("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.A(_.QG,{text:function(){var y;return(y=D.data())==null?void 0:y.helpfulReasonQuestion}})),_.A(_.BX,{data:function(){var y;
return(y=D.data())==null?void 0:y.helpfulReasons}},{checkboxGroupViewModel:function(y){return _.A(f76,{data:y.data,
onItemTap:t,selectedKeys:P,controlledMode:!0})}}))}}),_.A(_.v,{cond:L,
then:function(){return _.A("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.A("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.A(_.QG,{text:function(){var y;return(y=D.data())==null?void 0:y.notHelpfulReasonQuestion}})),_.A(_.BX,{data:function(){var y;
return(y=D.data())==null?void 0:y.notHelpfulReasons}},{checkboxGroupViewModel:function(y){return _.A(f76,{data:y.data,
onItemTap:Y,selectedKeys:u,controlledMode:!0})}}))}}),_.A(_.v,{cond:function(){return!K()&&!L()},
then:function(){return _.A(_.BX,{data:function(){var y;return(y=D.data())==null?void 0:y.helpfulNoteFeatures}},{alertBannerViewModel:function(y){return _.A("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.A(_.QtN,{data:y.data}))}})}}))},"gi"),"yt-note-user-rating-view-model",{props:{data:_.Bm}});_.CI(Mj,"yt-note-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=_.ku(xOP,_.di(function(){var X;return(X=D.data())==null?void 0:X.noteFeedEntityKey},""));
return _.A("yt-notes-wrapper-view-model",{class:_.g$("ytNotesWrapperViewModelHost")},_.A(_.v,{cond:function(){var X,c,W;return!((X=D.data())==null||!X.existingNotes)||!((c=D.data())==null||!c.currentNote)&&!((W=C())==null||!W.contributorNote)},
then:function(){return _.A(_.kQ,null,_.A(_.BX,{data:function(){var X,c,W,p;return((c=_.r((X=D.data())==null?void 0:X.currentNote,Mcw))==null?0:(W=c.noteData)==null?0:W.isPublished)?(p=D.data())==null?void 0:p.currentNote:void 0}},{noteViewModel:function(X){return _.A(Mj,{data:X.data})}}),_.A(_.BX,{data:function(){var X;
return(X=D.data())==null?void 0:X.existingNotes}},{noteViewModel:function(X){var c=X.data;
return _.A(_.v,{cond:function(){var W,p;return(W=c())==null?void 0:(p=W.noteData)==null?void 0:p.isPublished},
then:function(){return _.A(Mj,{data:c})}})}}),_.A(_.BX,{data:function(){var X,c,W,p,g;
return((c=_.r((X=D.data())==null?void 0:X.currentNote,Mcw))==null?0:(W=c.noteData)==null?0:W.isPublished)||(p=C())==null||!p.contributorNote?void 0:(g=D.data())==null?void 0:g.currentNote}},{noteViewModel:function(X){return _.A(Mj,{data:X.data})}}),_.A(_.BX,{data:function(){var X;
return(X=D.data())==null?void 0:X.existingNotes}},{noteViewModel:function(X){var c=X.data;
return _.A(_.v,{cond:function(){var W,p;return!((W=c())==null?0:(p=W.noteData)==null?0:p.isPublished)},
then:function(){return _.A(Mj,{data:c})}})}}))},
else:function(){return _.A(_.BX,{data:function(){var X;return(X=D.data())==null?void 0:X.zeroStateData}},{contributorZeroStateViewModel:nPN})}}))},"hi"),"yt-notes-wrapper-view-model",{props:{data:_.Bm}});var RnP=_.F(function(D){var C=_.Ro(D,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0,hasError:!1}),X=C.label,c=C.text,W=C.placeholder,p=C.hint;D=C.rows;var g=C.overflowStyle,a=C.outline,O=C.disabled,P=C.disableNewLines,k=C.characterLimit,u=C.validation,Q=C.onInput,B=C.timePickerData,K=C.hasError,L=_.aX("textarea");C=_.U(_.d2(function(){return c()}));
var t=C.next().value,Y=C.next().value;C=_.U(_.Li(!1,void 0,"mpbND"));var y=C.next().value,J=C.next().value,T=function(){J(!0)},H=function(){J(!1)};
_.JU(function(){var Ac=L.value,ib=g(),d5=t();ib==="expand-vertically"&&d5&&tkG(Ac);L.value.addEventListener("focusin",T);L.value.addEventListener("focusout",H)});
_.z3(function(){L.value.removeEventListener("focusin",T);L.value.removeEventListener("focusout",H)});
var q=function(){var Ac;return(Ac=u())==null?void 0:Ac.validate(t())},R=function(){return k()&&!q()&&t().length>k().maxChars},ph=function(){return!!q()||R()||K()};
C=_.I_(function(Ac){if(!Ac.currentTarget)return!1;Ac=Ac.currentTarget;Y(Ac.value);g()==="expand-vertically"&&tkG(Ac);Q==null||Q(Ac.value);return!0});
var Om=_.I_(function(Ac){P()&&Ac.key==="Enter"&&Ac.preventDefault();return!1}),xj=_.I_(function(){L.value.focus()}),Bo=function(){return W()||X()},r5={},Fd={},GJ={},jZ={};
return _.A("textarea-shape",{class:_.g$("ytStandardsTextareaShapeHost",(r5.ytStandardsTextareaShapeTimePicker=function(){var Ac;return(Ac=B())==null?void 0:Ac.useTimePickerStyles},r5))},_.A("div",{class:_.g$("ytStandardsTextareaShapeTextareaContainer",(Fd.ytStandardsTextareaShapeTextareaContainerOutline=a,Fd.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=O,Fd.ytStandardsTextareaShapeTextareaContainerOutlineError=ph,Fd)),
"on:click":xj},_.A("label",{class:_.g$("ytStandardsTextareaShapeLabel",(GJ.ytStandardsTextareaShapeLabelFocused=y,GJ.ytStandardsTextareaShapeLabelDisabled=O,GJ.ytStandardsTextareaShapeLabelError=function(){return ph()&&!O()},GJ.ytStandardsTextareaShapeLabelHidden=function(){return!y()&&!t()&&!!Bo()},GJ))},X),_.A("div",{class:_.g$("ytStandardsTextareaShapePlaceholder",(jZ.ytStandardsTextareaShapePlaceholderVisible=function(){return!y()&&!t()},jZ)),
"aria-hidden":"true"},Bo),_.A("textarea",{el:L,class:"ytStandardsTextareaShapeTextarea",rows:D,disabled:O,placeholder:Bo,"prop:value":t,"on:input":C,"on:keydown":Om})),_.A(_.v,{cond:function(){return p()&&!ph()},
then:function(){var Ac={};return _.A("div",{class:_.g$("ytStandardsTextareaShapeHint",(Ac.ytStandardsTextareaShapeHintDisabled=O,Ac))},_.A("div",{class:"ytStandardsTextareaShapeHintHintMessage"},p))}}),_.A(_.v,{cond:q,
then:function(){return _.A(dhp,{disabled:O},_.A("div",{class:"ytStandardsTextareaShapeErrorMessage"},q))}}),_.A(_.v,{cond:k,
then:function(Ac){return _.A(_.v,{cond:R,then:function(){return _.A(dhp,{disabled:O},_.A("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Ac().errorMessage}),_.A("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return t().length+"/"+Ac().maxChars}))}})}}))},"ii");
RnP.idomCompat={callbacks:{onInput:!0}};var dhp=_.F(function(D){var C={};return _.A("div",{class:_.g$("ytStandardsTextareaShapeError",(C.ytStandardsTextareaShapeErrorDisabled=D.disabled,C)),role:"alert"},_.A(_.$_,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),D.children)},"ji");_.l73=_.F(function(D){var C=D.data;return _.A("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.A(RnP,{text:D.text,label:function(){var X;return(X=C().contentProperties)==null?void 0:X.labelText},
placeholder:function(){var X;return(X=C().contentProperties)==null?void 0:X.placeholderText},
hint:function(){var X;return(X=C().contentProperties)==null?void 0:X.hintText},
outline:function(){var X;return!((X=C().displayProperties)==null?0:X.hideBorder)},
overflowStyle:function(){var X;return((X=C().displayProperties)==null?0:X.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:D.disabled,disableNewLines:function(){var X;return(X=C().displayProperties)==null?void 0:X.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var X;return(X=C().displayProperties)==null?void 0:X.rows}}))},"ki");_.DzG=_.F(function(D){var C=D.data;return _.A("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.A(RnP,{text:D.text,label:function(){var X;return(X=C().contentProperties)==null?void 0:X.labelText},
placeholder:function(){var X;return(X=C().contentProperties)==null?void 0:X.placeholderText},
hint:function(){var X;return(X=C().contentProperties)==null?void 0:X.hintText},
outline:function(){var X;return!((X=C().displayProperties)==null?0:X.hideBorder)},
overflowStyle:function(){var X;return((X=C().displayProperties)==null?0:X.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var X;return(X=C().displayProperties)==null?void 0:X.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var X;return(X=C().displayProperties)==null?void 0:X.rows}}))},"li");var Cjt=_.F(function(D){var C=_.U(_.d2(function(){var Om,xj;return((Om=D.data().structuredContextNoteFormSchema)==null?0:(xj=Om.initialValues)==null?0:xj.noteBody)?D.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),X=C.next().value,c=C.next().value;
C=_.U(_.d2(function(){D.data();return!1}));
var W=C.next().value,p=C.next().value;C=_.U(_.d2(function(){D.data();return!1}));
var g=C.next().value,a=C.next().value;C=_.U(_.d2(function(){var Om,xj;return((Om=D.data().structuredContextNoteFormSchema)==null?0:(xj=Om.initialValues)==null?0:xj.timestamp)?D.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var O=C.next().value,P=C.next().value;C=_.U(_.d2(function(){D.data();return!1}));
var k=C.next().value,u=C.next().value;C=_.U(_.d2(function(){var Om,xj;return((Om=D.data().structuredContextNoteFormSchema)==null?0:(xj=Om.initialValues)==null?0:xj.sources)?[D.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Q=C.next().value,B=C.next().value;C=_.U(_.d2(function(){D.data();return!1}));
var K=C.next().value,L=C.next().value;C=_.U(_.d2(function(){return!1}));
var t=C.next().value,Y=C.next().value;_.JU(function(){var Om;_.VfP((Om=D.data().structuredContextNoteFormSchema)==null?void 0:Om.id,{isSubmitting:t,onSubmit:function(){Y(!0);var xj=VkX(X(),O(),Q(),D.data()),Bo=_.iX().resolve(_.uX);xj&&Bo&&Bo.resolveCommand(xj,{commandController:{onSuccess:function(){Y(!1)}}})},
isValid:function(){return W()&&!g()&&!k()&&!K()}})});
var y=function(Om){if(Om!==void 0&&(c(Om),!W()&&Om.length>0&&p(!0),W())){var xj=y0t(D.data());if(xj){var Bo=xj.minLength;xj=xj.maxLength;Bo&&Om.length<Bo?a(!0):xj&&Om.length>xj?a(!0):a(!1)}}},J=function(Om){if(Om!==void 0){P(Om);
if(Om.length>0){var xj,Bo,r5,Fd,GJ=wHw((xj=D.data())==null?void 0:(Bo=xj.structuredContextNoteFormSchema)==null?void 0:(r5=Bo.fieldSchemas)==null?void 0:(Fd=r5.timestamp)==null?void 0:Fd.validationSchema);if(GJ&&(xj=GJ.regex)&&!(new RegExp(xj)).test(Om)){u(!0);return}}u(!1)}},T=function(Om){if(Om!==void 0){var xj=Om.split(/[ \n]/).map(function(Bo){return Bo.trim()});
B(xj);if(Om.length>0)for(Om=_.U(xj),xj=Om.next();!xj.done;xj=Om.next())if(!GTG(xj.value)){L(!0);return}L(!1)}},H=function(){return{validate:function(Om){if(W()){var xj=y0t(D.data());
if(xj){var Bo=xj.minLength;xj=xj.translations;if(Bo&&Om.length<Bo)return xj==null?void 0:xj.minLengthErrorMessage}}}}},q=function(){var Om=y0t(D.data()),xj=Om==null?void 0:Om.maxLength,Bo;
Om=Om==null?void 0:(Bo=Om.translations)==null?void 0:Bo.maxLengthErrorMessage;if(xj&&Om)return{maxChars:xj,errorMessage:Om}},R=function(){return{validate:function(Om){if(Om){var xj,Bo,r5,Fd,GJ=wHw((xj=D.data())==null?void 0:(Bo=xj.structuredContextNoteFormSchema)==null?void 0:(r5=Bo.fieldSchemas)==null?void 0:(Fd=r5.timestamp)==null?void 0:Fd.validationSchema);
if(GJ&&(xj=GJ.regex,GJ=GJ.translations,xj&&!(new RegExp(xj)).test(Om)))return GJ==null?void 0:GJ.regexErrorMessage}}}},ph=function(){return{validate:function(Om){if(Om){var xj,Bo,r5,Fd,GJ=ZlP((xj=D.data())==null?void 0:(Bo=xj.structuredContextNoteFormSchema)==null?void 0:(r5=Bo.fieldSchemas)==null?void 0:(Fd=r5.sources)==null?void 0:Fd.validationSchema);
if(GJ&&(xj=GJ.translations,xj==null?0:xj.selectedErrorMessage))for(Om=Om.split(/[ \n]/).map(function(jZ){return jZ.trim()}),Om=_.U(Om),Bo=Om.next();!Bo.done;Bo=Om.next())if(!GTG(Bo.value))return Om=void 0,(Om=xj)==null?void 0:Om.selectedErrorMessage}}}};
return _.A("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.A("div",{class:"ytStructuredContextNoteViewModelTextField"},_.A(_.BX,{data:function(){var Om;return(Om=D.data())==null?void 0:Om.noteContents}},{textFormFieldViewModel:function(Om){return _.A(_.DzG,{data:Om.data,
onInput:y,validation:H,characterLimit:q})},
textFieldViewModel:function(Om){return _.A(_.l73,{data:Om.data,onInput:y,validation:H,characterLimit:q})}})),_.A("div",{class:"ytStructuredContextNoteViewModelTextField"},_.A(_.BX,{data:function(){var Om;
return(Om=D.data())==null?void 0:Om.noteTimestamp}},{textFormFieldViewModel:function(Om){return _.A(_.DzG,{data:Om.data,
onInput:J,validation:R})},
textFieldViewModel:function(Om){return _.A(_.l73,{data:Om.data,onInput:J,validation:R})}})),_.A("div",{class:"ytStructuredContextNoteViewModelTextField"},_.A(_.BX,{data:function(){var Om;
return(Om=D.data())==null?void 0:Om.noteSources}},{textFormFieldViewModel:function(Om){return _.A(_.DzG,{data:Om.data,
onInput:T,validation:ph})},
textFieldViewModel:function(Om){return _.A(_.l73,{data:Om.data,onInput:T,validation:ph})}})))},"mi");
Cjt.idomCompat=!0;_.CI(Cjt,"yt-structured-context-note-view-model",{props:{data:_.Bm}});var XlX=_.F(function(D){var C=_.U(_.d2(function(){var p;if((p=D.controlled)==null?0:p.call(D))return[];var g;return(((g=D.data())==null?void 0:g.chips)||[]).map(function(a){a=_.r(a,_.kL);if(a==null?0:a.selected)return TrX(a.chipValue)}).filter(function(a){return a!==void 0})})),X=C.next().value,c=C.next().value,W=function(p){var g=TrX(p.chipValue);
if(g!==void 0){var a;if((a=D.controlled)==null?0:a.call(D))return void D.controlled().onTap(g);p=X().includes(g)?[].concat(_.VB(X().filter(function(P){return P!==g}))):[].concat(_.VB(X()),[g]);
c(p);var O;if((O=D.uncontrolled)==null?0:O.call(D))D.uncontrolled().onUpdate(p)}};
return _.A("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.A(_.Zh,{each:function(){return D.data().chips||[]}},function(p){return _.A("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.A(_.Fhf,{data:function(){return _.r(p,_.kL)},
selected:function(){var g;if(g=_.r(p,_.kL)){var a=TrX(g.chipValue);if(a!==void 0){var O;g=((O=D.controlled)==null?0:O.call(D))?D.controlled().selectedValues.includes(a):X().includes(a)}else g=void 0}else g=!1;return g},
callback:W}))}))},"ni");var c9o=_.F(function(D){var C=D.data;var X=function(){var a;return((a=C())==null?void 0:a.flowStateKey)||""},c=_.ku(_.qo,X),W=function(){var a;
return(a=_.r(c(),qnP))==null?void 0:a.chips},p=function(a){if(a!==void 0){var O=W()||[];
O=O.find(function(P){return P===a})?O.filter(function(P){return P!==a}):[].concat(_.VB(O),[a]);
O=Object.assign({},c(),{feedbackFormFlowState:Object.assign({},_.r(c(),qnP),{chips:O})});_.fG(_.bK("flowStateEntity",X(),O))}},g=function(){var a;
return _.r((a=C())==null?void 0:a.inputBox,fut)};
D=_.t6(function(a){var O=g();O=!(O==null?0:O.maxChars)||a.length<=O.maxChars;a=Object.assign({},c(),{feedbackFormFlowState:Object.assign({},_.r(c(),qnP),{detail:a}),abuseReportFlowState:Object.assign({},_.r(c(),ir),{navigationEnabled:O})});_.fG(_.bK("flowStateEntity",X(),a))},150);
return _.A("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.A("div",{class:"ytFeedbackFormViewModelChips"},_.A(_.BX,{data:function(){var a;return(a=C())==null?void 0:a.chipSelection}},{chipSelectionFormFieldViewModel:function(a){return _.A(XlX,{data:a.data,
controlled:function(){return{selectedValues:W()||[],onTap:p}}})}})),_.A("div",{class:"ytFeedbackFormViewModelInputBox"},_.A(RnP,{text:function(){var a;
return(a=_.r(c(),qnP))==null?void 0:a.detail},
placeholder:function(){var a;return((a=g())==null?void 0:a.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var a=g();if(a&&a.maxChars)return{maxChars:a.maxChars,errorMessage:a.maxCharsExceededErrorMessage||""}},
onInput:D})),_.A("div",{class:"ytFeedbackFormViewModelFooterText"},_.A(_.QG,{text:function(){return C().footerText}})))},"oi");
c9o.idomCompat=!0;_.CI(c9o,"yt-feedback-form-view-model",{props:{data:_.Bm}});var oo6=_.F(function(D){var C=D.data;var X=_.ku(Z2X,function(){return C().flowStateKey||""}),c=function(){var W;
_.FV((W=_.r(X(),ir))==null?void 0:W.navigationCommand)};
return _.A("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.A("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.A(_.BX,{data:function(){return C().cancelButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:c})}}),_.A(_.BX,{data:function(){var W;
if(C().navButton){var p=Object;var g=p.assign,a=_.r(C().navButton,_.is),O=((W=_.r(X(),ir))==null?0:W.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",P,k;W=_.r((P=_.r(X(),ir))==null?void 0:P.navigationCommand,_.N_);P=(k=_.r(W,_.oX))==null?void 0:k.url;p={buttonViewModel:g.call(p,{},a,{state:O,iconName:P?"OPEN_IN_NEW":""})}}else p=void 0;return p}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:c})}})))},"pi");
oo6.idomCompat=!0;_.CI(oo6,"yt-report-form-bottom-bar-view-model",{props:{data:_.Bm}});var WW3=_.F(function(D){var C=D.nextStep;return _.A("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.A("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.A(_.$_,{icon:function(){return C().iconName||""}})),_.A("div",null,_.A(_.QG,{text:function(){return C().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"qi"),plY=_.F(function(D){var C=D.data;
var X,c=(X=_.iX().resolve(_.vK(_.Hc)))==null?void 0:X(),W=_.ku(_.qo,function(){return C().flowStateKey||""});
return _.A("yt-report-form-confirmation-page-view-model",{class:function(){var p;return((p=_.r(W(),ir))==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.A("div",{class:function(){var p;
return((p=_.r(W(),ir))==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.A(_.M_,{data:function(){return c&&C().imageDark?C().imageDark:C().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.A("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.A("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return C().confirmationHeader}),_.A("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.A(_.QG,{text:function(){return C().confirmationText}})),_.A("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.A(_.QG,{text:function(){return C().lawEnforcementText}})),
_.A("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return C().whatToExpectHeader}),_.A(_.v,{cond:function(){return C().nextSteps},
then:function(p){return _.A("div",null,_.A(_.Zh,{each:p},function(g){return _.A(WW3,{nextStep:g})}))}}),_.A(_.v,{cond:function(){return C().legalReportText},
then:function(p){return _.A("div",null,_.A(_.QG,{text:p,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"ri");
plY.idomCompat=!0;_.CI(plY,"yt-report-form-confirmation-page-view-model",{props:{data:_.Bm}});var S2k=_.F(function(D){var C=D.data;var X=function(){var p;return((p=_.r(C().inputBox,fut))==null?void 0:p.maxChars)||500},c=function(){return C().flowStateKey||""},W=_.ku(_.qo,c);
D=_.t6(function(p){p=Object.assign({},W(),{flowFormState:{isValid:p.length<=X()},abuseReportFlowState:{userComments:p,navigationEnabled:!(p.length>X()),isReportFormDirty:!0}});_.qw().dispatch(_.EW("flowStateEntity",c(),p))},150);
_.JU(function(){var p=Object.assign({},W(),{flowFormState:{isValid:!0}});_.qw().dispatch(_.EW("flowStateEntity",c(),p))});
return _.A("yt-report-form-details-page-view-model",{class:function(){var p;return((p=_.r(W(),ir))==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.A("h1",{class:function(){var p;
return((p=_.r(W(),ir))==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return C().detailsPageHeader}),_.A("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.A(_.QG,{text:function(){return C().bodyText}})),_.A("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.A(RnP,{label:function(){var p;
return((p=_.r(C().inputBox,fut))==null?void 0:p.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var p;return{errorMessage:((p=_.r(C().inputBox,fut))==null?void 0:p.maxCharsExceededErrorMessage)||"",maxChars:X()}},
onInput:D})))},"si");
S2k.idomCompat=!0;_.CI(S2k,"yt-report-form-details-page-view-model",{props:{data:_.Bm}});var Uz6=_.F(function(D){var C=D.data;var X=function(){return C().flowStateKey||""},c=_.ku(_.qo,X),W=function(){return _.r(c(),ir)};
return _.A("yt-report-form-reason-select-page-view-model",{class:function(){var p;return((p=W())==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.A("h1",{class:function(){var p;
return((p=W())==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return C().pageHeader}),_.A("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.A(_.QG,{text:function(){return C().bodyText}})),_.A("div",{class:function(){var p;
return((p=W())==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.A(_.MVt,{data:function(){return _.r(C().radioButtonGroup,_.pEw)},
onSelected:function(p,g){p=Object.assign({},c(),{abuseReportFlowState:Object.assign({},W(),{reasonKey:g.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:g.command})});_.fG(_.bK("flowStateEntity",X(),p))},
selectedKey:function(){var p;return(p=W())==null?void 0:p.reasonKey},
groupName:"report-form-reason-select-page"})))},"ti");
Uz6.idomCompat=!0;_.CI(Uz6,"yt-report-form-reason-select-page-view-model",{props:{data:_.Bm}});var got=_.F(function(D){var C=D.data;var X,c=(X=_.iX().resolve(_.vK(_.Hc)))==null?void 0:X();return _.A("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.A("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.A(_.M_,{data:function(){return c&&C().imageDark?C().imageDark:C().image},
alt:""})),_.A("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.A("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return C().header}),_.A(_.QG,{text:function(){return C().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ui");
got.idomCompat=!0;_.CI(got,"yt-report-form-sign-in-page-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=_.uu(_.Thc.talkToRecsStateSelector),c=function(){return C().titleSuperscript},W=function(){return C().answersShelf},p=function(){return C().videoShelf},g=function(){var R;
return(R=C().textInputPlaceholder)==null?void 0:R.content},a=function(){return C().showOpenTextInput},O=function(){var R;
return(R=C().textInputValue)==null?void 0:R.content},P=function(){return C().isMultiTurnFlow?C().resetButtonViewModel:void 0},k="",u=function(){return C().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
D=_.U(_.Li("",void 0,"GjDBze"));var Q=D.next().value,B=D.next().value;D=_.U(_.Li(!1,void 0,"cHfsvd"));var K=D.next().value,L=D.next().value,t=function(){return{state:K()||Q()?"active":"disabled",disabled:!(K()||Q())}};
_.H2(function(){if(a()){O()&&B(O());var R;if(!P()&&((R=X())==null?0:R.stepStates)){var ph;R=Object.keys((ph=X())==null?void 0:ph.stepStates);ph=R[R.length-1];var Om,xj;ph=(Om=X().stepStates[ph])==null?void 0:(xj=Om.userQuery)==null?void 0:xj.userQuery;_.fG(_.VcG());ph&&Y(ph)}}});
var Y=function(R){var ph=C().onUpdateText;ph&&_.FV(ph,{form:{userQuery:R}});B(R)},y=_.t6(function(R){Y(R.target.value.trim())},150),J=_.I_(function(R){var ph;
k=(ph=R.target.value)==null?void 0:ph.trim();y(R);return!1}),T=_.I_(function(R){R.key==="Enter"&&(K()||Q())&&(Y(R.target.value.trim()),q());
return!1}),H=function(R,ph){L(ph);
if(ph){if(C().isMultiTurnFlow&&!k){var Om;Y((Om=R==null?void 0:R.text)!=null?Om:"")}C().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&q()}else B(k)},q=function(){var R=_.r(C().nextButtonViewModel,_.is);
if(R==null?0:R.trackingParams){R=_.bO(R.trackingParams);var ph=_.LN();ph&&R&&_.JZ(ph,R,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(R=C().onNextStepCommand)&&_.FV(R)};
D={};return _.A("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.A("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.A(_.BX,{data:function(){return C().topCornerButton}},{buttonViewModel:_.Ze})),_.A("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.A("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.A(_.QG,{text:function(){return C().title}}),_.A(_.v,{cond:c,
then:function(){return _.A("sup",{class:"ytwTalkToRecsSuperScript"},_.A(_.QG,{text:c}))}})),_.A("div",{class:"ytwTalkToRecsSubtitle"},_.A(_.QG,{text:function(){return C().subtitle}})),_.A("div",{class:"ytwTalkToRecsResultsShelf"},_.A(_.v,{cond:W,
then:function(){return _.A(_.BX,{data:W},{chipsShelfViewModel:function(R){return _.A("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.A(_.fd,{data:R.data,callback:H,selectionBehavior:u}))}})}}),_.A(_.v,{cond:p,
then:function(){return _.A(_.BX,{data:p},{horizontalShelfViewModel:function(R){return _.A("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.A(_.KZ,{data:R.data,thumbnailAspectRatio:0}))}})}})),_.A("div",{class:_.g$("ytwTalkToRecsRefinementContainer",(D.ytwTalkToRecsBottomMargin=function(){return C().isMultiTurnFlow},D))},_.A(_.v,{cond:a,
then:function(){return _.A("div",{class:"ytwTalkToRecsUserInputBox"},_.A("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:g,value:Q,"on:input":J,"on:keyup":T,maxlength:200}))}}),_.A(_.BX,{data:function(){return C().isMultiTurnFlow?C().nextButtonViewModel:void 0}},{buttonViewModel:function(R){return _.A("div",{class:"ytwTalkToRecsFlowControlButtons"},_.A(_.Ze,{data:R.data,
buttonOverrides:t}))}}),_.A(_.BX,{data:P},{buttonViewModel:function(R){return _.A("div",{class:"ytwTalkToRecsFlowControlButtons"},_.A(_.Ze,{data:R.data,
onClick:function(){var ph=_.r(C().resetButtonViewModel,_.is);Y(Q());(ph=ph==null?void 0:ph.onTap)&&_.FV(ph)}}))}}))))},"wi"),"yt-talk-to-recs-view-model",{props:{data:_.Bm}});var Hlw={sources:[{clientResource:{imageName:"CHECK"}}]};_.agt=_.F(function(D){var C=_.aX("div");D=_.Ro(D,{error:void 0});var X=D.data,c=D.error,W=D.onSelected;D=D.className;var p=_.U(_.d2(function(){return jSp(X())})),g=p.next().value,a=p.next().value;
dOU(X,function(B){a(B);var K,L,t=z2o((K=X().options)==null?void 0:(L=K[B])==null?void 0:L.value,X().type);W==null||W(t);C.value.focus()});
p=_.I_(function(){if(!X().disabled){var B=X(),K=g(),L=C.value;B.options&&(B=J0w(B.options,K,B.label),_.iX().resolve(_.S0).openSheet({viewModel:B},L))}});
var O=_.TwR(),P=function(){return!!c()},k=function(){return!!X().disabled},u={},Q={};
return _.A("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.A("div",{class:_.g$("ytDropdownViewModelDropdownContainer",D,(u.ytDropdownViewModelDropdownContainerErrorBorder=P,u.ytDropdownViewModelDropdownContainerDisabled=k,u)),"on:click":p,el:C,role:"combobox",tabindex:0,"on:keydown":O,"aria-invalid":P,"aria-disabled":k,"aria-describedby":function(){return P()?"dropdown-view-model-error":void 0}},_.A("div",{class:"ytDropdownViewModelText"},Mko(X,P,g),qrX(X,g)),_.A("div",{class:_.g$("ytDropdownViewModelChevronDown",
(Q.ytDropdownViewModelChevronDownDisabled=k,Q))},_.A(_.$_,{icon:"CHEVRON_DOWN"}))),f4t(X,c))},"xi");_.CI(_.F(function(D){var C=D.data;var X=function(W){var p=l4U(C());p.videoMetadata||(p.videoMetadata={});p.videoMetadata.sponsorshipsMetadata||(p.videoMetadata.sponsorshipsMetadata={});p.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(W)},c=function(W){var p=l4U(C());
p.scheduledRedirectMetadata||(p.scheduledRedirectMetadata={});p.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(W)};
return _.A("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.A("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.A("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.A(_.QG,{text:function(){return C().title}}),_.A(_.$_,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.A(_.QG,{text:function(){return C().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.A(_.BX,{data:function(){return C().tierChoices}},{dropdownViewModel:function(W){return _.A("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.A(_.agt,{data:W.data,
onSelected:X}))}}),_.A(_.BX,{data:function(){return C().startTimeChoices}},{dropdownViewModel:function(W){return _.A("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.A(_.agt,{data:W.data,
onSelected:c}))}}),_.A(_.QG,{text:function(){return C().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.A("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.A(_.BX,{data:function(){return C().scheduleButton}},{panelFooterViewModel:_.jF})))},"yi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;D=D.className===void 0?"":D.className;var X=_.ku(Z2X,function(){return C().flowStateEntityKey||""}),c={};
c=_.g$("ytFlowBottomBarViewModelFlowBottomBarButtons",(c.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},c));
var W={},p=_.g$("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",c,(W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},W));
W={};var g=_.g$("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",c,(W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},W));
c={};c=_.g$("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(c.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},c.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},c.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
c));
D=_.g$("ytFlowBottomBarViewModelHost",D);return _.A("yt-flow-bottom-bar-view-model",{class:D},_.A(_.v,{cond:function(){var a;return(a=C())==null?void 0:a.textSection},
then:function(a){return _.A("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.A(_.QG,{text:a}))}}),_.A("div",{class:c},_.A(_.BX,{data:function(){return C().secondaryButton}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data,
className:g})}}),_.A(_.BX,{data:function(){return C().primaryButton}},{buttonViewModel:function(a){return _.A(_.Ze,{data:a.data,
className:p,buttonOverrides:function(){var O;return{disabled:!((O=X())==null||!O.primaryButtonDisabled)}}})}})))},"zi"),"yt-flow-bottom-bar-view-model",{props:{data:_.Bm,
className:_.R3}});var IgG="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),qj=function(){var D=_.w.apply(this,arguments)||this;D.enableScrollingFix=!0;D.bottomBar=!1;D.fitContent=!1;return D};
_.h(qj,_.w);_.S=qj.prototype;_.S.ready=function(){_.b("enable_pdp_icon_prefetch")&&_.FPp(_.iX().resolve(_.NT),0,IgG)};
_.S.focus=function(D){this.topBar?_.ai(this.topBar,D):this.paperDialog.focus(D)};
_.S.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19560_scroller&&(this.JSC$19560_scroller.dialogElement=this.paperDialog,this.JSC$19560_scroller.attached&&typeof this.JSC$19560_scroller.attached==="function"&&this.JSC$19560_scroller.attached())};
_.S.onDataChanged=function(){var D;this.fitContent=!((D=this.data)==null||!D.fitContent);var C;this.bottomBar=!((C=this.data)==null||!C.bottomBar)};
_.S.onProgressChanged=function(){var D,C,X=((C=(D=this.data)==null?void 0:D.progress)!=null?C:0)*100;this.progressElement.style.width=X+"%"};
_.S.isProgressHidden=function(){var D;return!((D=this.data)==null?0:D.progress)};
_.S.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(D){return D&&!D.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
qj.prototype.onProgressChanged=qj.prototype.onProgressChanged;qj.prototype.onDataChanged=qj.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qj.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qj.prototype,"enableScrollingFix",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qj.prototype,"bottomBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qj.prototype,"fitContent",void 0);_.V([_.kn("#progress"),_.z("design:type",HTMLElement)],qj.prototype,"progressElement",void 0);_.V([_.kn("#scroller"),_.z("design:type",Object)],qj.prototype,"JSC$19560_scroller",void 0);_.V([_.kn("ytd-flow-top-bar-renderer"),_.z("design:type",HTMLElement)],qj.prototype,"topBar",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qj.prototype,"onDataChanged",null);_.V([_.vr("data.progress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qj.prototype,"onProgressChanged",null);_.V([_.yj({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],qj);
_.G(qj,"ytd-flow-step-renderer",function(){if(YpX!==void 0)return YpX;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return YpX=D},{mode:1});var f$=function(D){this.resolveCommand=D;this.steps={}},OHX=function(D,C){C=_.U(C||[]);
for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=Object.values(X)[0],W=void 0;if((W=c)==null?0:W.stepId)D.steps[c.stepId]=X}},PjN=function(D,C){var X,c,W,p,g;
return _.I(function(a){if((X=D.state)==null||!X.currentStepId)return a.return(void 0);c=D.getCurrentStep();if(!c)return a.return(A9G(D));if(W=_.r(c,_.lJ))D.logVEScreen(W),((p=W)==null?0:p.onStepStartCommand)&&D.resolveCommand((g=W)==null?void 0:g.onStepStartCommand,{});W&&C&&(D.logFlowEvent(W,C),C.steps&&!C.steps.includes(c)&&C.steps.push(c));return a.return(c)})};
f$.prototype.back=function(){var D;(D=this.state)!=null&&D.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
f$.prototype.handleUpdateFlowCommand=function(D){D.steps&&OHX(this,D.steps);D.entityUpdateCommand&&this.resolveCommand(D.entityUpdateCommand,{});D.flowContinuationCommand&&(D=D.flowContinuationCommand)&&(this.getFlowContinuationCommand=D);this.awaitFlowContinuation&&(D=this.getCurrentStep(),this.awaitFlowContinuation(D),this.awaitFlowContinuation=void 0)};
f$.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var A9G=function(D){return _.I(function(C){return D.getFlowContinuationCommand?C.return(new Promise(function(X){D.awaitFlowContinuation=X;D.getFlowContinuationCommand&&D.resolveCommand(D.getFlowContinuationCommand,{flow_state:D.state})})):C.return(Promise.resolve(void 0))})};
f$.prototype.getCurrentStep=function(){var D;if((D=this.state)!=null&&D.currentStepId)return this.steps[this.state.currentStepId]};
f$.prototype.logVEScreen=function(D){var C;((C=D.screenLoggingData)==null?0:C.screenVeType)&&_.Gm(_.iO(),D.screenLoggingData.screenVeType)};
f$.prototype.logFlowEvent=function(D,C){var X,c,W,p;((X=C.flowLoggingData)==null?0:X.eventNamespace)&&((c=D.flowEventData)==null?0:c.eventType)&&((W=D.flowEventData)==null?0:W.eventMetadata)&&((p=C.flowLoggingData)==null?0:p.flowType)&&(D=_.aE(C.flowLoggingData.eventNamespace,D.flowEventData.eventType,D.flowEventData.eventMetadata),_.IE().logFlowEvent(D,C.flowLoggingData.flowType))};
_.$a.Object.defineProperties(f$.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.state)==null?void 0:D.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.state)!=null&&D.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(C,X){X.key&&X.value&&(C[X.key]=X.value);return C},{})}}});var dN=function(){var D=_.w.apply(this,arguments)||this;D.flowState=_.b("web_use_flow_state_manager")?void 0:new f$(function(C,X){X=X===void 0?{}:X;_.I3.instance.resolveCommand(C,{form:{form:X,element:D.hostElement}})});
D.JSC$19571_flowStateManager=_.b("web_use_flow_state_manager")?_.iX().resolve(_.dn):void 0;D.currentTargetId="";D.initialState=!0;D.isLoading=!1;D.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"};D.containsTalkToRecs=!1;return D};
_.h(dN,_.w);_.S=dN.prototype;_.S.onPopupClosed=function(D){if(!D||this.hostElement===D.detail.popupRenderer){if(this.JSC$19571_flowStateManager){var C;((C=this.data)==null?0:C.flowStateEntityKey)&&this.JSC$19571_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.S.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.S.focus=function(D){var C=this;_.TA(function(){var X=_.SY(C.hostElement).querySelector("ytd-flow-step-renderer");(X==null?0:X.topBar)?X.focus(D):C.topBar&&_.ai(C.topBar,D)},1)};
_.S.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.S.computeTopBarHidden=function(D){var C;return!((C=_.r(D,_.lJ))==null||!C.topBarOverride)};
_.S.onCurrentFlowChange=function(){if(this.JSC$19571_flowStateManager&&this.data&&this.flow){var D=tcP(this.JSC$19571_flowStateManager,this.data),C;if(D&&((C=this.flow)==null?0:C.currentStepId)){D=y8X(D,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var X;!D&&((X=this.data)==null?0:X.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.S.observeData=function(){var D=this;if(this.JSC$19571_flowStateManager){var C=this.currentTargetId,X,c,W=(c=(X=this.data)==null?void 0:X.targetId)!=null?c:"";C!==W&&C&&Nlt(this.JSC$19571_flowStateManager,C);this.currentTargetId=W;this.data&&Yno(tcP(this.JSC$19571_flowStateManager,this.data),function(p){p&&(D.initialState=!1,D.currentFlowStep={flowStepRenderer:p},D.isLoading=!D.currentFlowStep,D.autofocusAndRefit(),D.updateContainsTalkToRecs(),D.logVEScreen(),D.logFlowEvent())})}};
_.S.dataChanged=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1){if(!D.flowState)return c.return();((C=D.data)==null?0:C.steps)&&OHX(D.flowState,D.data.steps);if((X=D.data)==null?0:X.flowContinuationCommand){var W=D.flowState,p=D.data.flowContinuationCommand;p&&(W.getFlowContinuationCommand=p)}return c.yield(PjN(D.flowState,D.data),2)}D.currentFlowStep=c.yieldResult;_.t_(c)})};
_.S.flowChanged=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1){if(!D.flowState||!D.flow)return X.return();D.flowState.state=D.flow;D.isLoading=!0;return X.yield(PjN(D.flowState,D.data),2)}C=X.yieldResult;if(!C||D.flow.isLoading)return X.return();D.currentFlowStep=C;D.initialState=!1;D.isLoading=!1;D.autofocusAndRefit();D.updateContainsTalkToRecs();_.t_(X)})};
_.S.logVEScreen=function(){var D,C,X=(D=_.r(this.currentFlowStep,_.lJ))==null?void 0:(C=D.screenLoggingData)==null?void 0:C.screenVeType;X&&_.Gm(_.iX().resolve(_.X5),X)};
_.S.logFlowEvent=function(){var D=_.r(this.currentFlowStep,_.lJ),C,X,c,W,p,g;(this==null?0:(C=this.data)==null?0:(X=C.flowLoggingData)==null?0:X.eventNamespace)&&(this==null?0:(c=this.data)==null?0:(W=c.flowLoggingData)==null?0:W.flowType)&&(D==null?0:(p=D.flowEventData)==null?0:p.eventType)&&(D==null?0:(g=D.flowEventData)==null?0:g.eventMetadata)&&(D=_.aE(this.data.flowLoggingData.eventNamespace,D.flowEventData.eventType,D.flowEventData.eventMetadata),_.IE().logFlowEvent(D,this.data.flowLoggingData.flowType))};
_.S.updateContainsTalkToRecs=function(){var D,C=(D=_.r(this.currentFlowStep,_.lJ))==null?void 0:D.content;this.containsTalkToRecs=!!C&&!!_.r(C,XEk)};
_.S.autofocusAndRefit=function(){var D=this,C=_.iX().resolve(_.vK(_.E7)),X=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),c=document.querySelector("yt-report-form-confirmation-page-view-model"),W=document.querySelector("yt-report-form-details-page-view-model"),p=document.querySelector("yt-report-form-reason-select-page-view-model"),g=document.querySelector("yt-contributor-zero-state-view-model"),
a=document.querySelector("yt-structured-context-note-view-model"),O=document.querySelector("yt-note-view-model");(!X&&C&&C.isKeyBoardInUse()||c||!X&&W||!X&&p||!X&&(g||a||O))&&_.Ii(this.hostElement);_.A0(this,function(){_.lE(D.hostElement,"yt-refit")})};
_.S.handleUpdateFlowCommand=function(D){this.flowState?this.data&&(D=_.r(D,_.PJ4),D.targetId===this.data.targetId&&(D.flowContinuationCommand&&(this.data.flowContinuationCommand=D.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(D),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(D)};
_.S.handleFlowNextStepCommand=function(D){this.JSC$19571_flowStateManager?this.ytComponentBehavior.resolveCommand(D):this.data&&this.flow&&this.flow.key&&(D=_.r(D,_.abJ),D.targetId===this.data.targetId&&(D=D.stepId||"",this.ytdReduxBehavior.dispatch(_.EW("flowStateEntity",this.flow.key,{currentStepId:D,stepIdStack:(this.flow.stepIdStack||[]).concat(D)}))))};
_.S.handleFlowPrevStepCommand=function(D){if(this.JSC$19571_flowStateManager)this.ytComponentBehavior.resolveCommand(D);else if(this.data&&this.flow&&this.flow.key&&(D=_.r(D,_.Ib5),D.targetId===this.data.targetId)){var C=[].concat(_.VB(this.flow.stepIdStack||[]));C.length>1?(C.pop(),this.ytdReduxBehavior.dispatch(_.EW("flowStateEntity",this.flow.key,{currentStepId:C[C.length-1],stepIdStack:C}))):D.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(D.onFirstStepCommand)}};
_.S.handleYpcCancelRecurrenceCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.r(D,UC1),D.targetId===this.data.targetId&&D.endpointCommand)){var C=_.r(this.flow,gCP);C&&_.r(D.endpointCommand,_.xVc)&&(_.r(D.endpointCommand,_.xVc).feedbackData=C.surveyFeedback);this.ytComponentBehavior.resolveCommand(D.endpointCommand)}};
_.S.handlePartialUpdateFlowStateEntity=function(D){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.EW("flowStateEntity",this.flow.key,D,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
dN.prototype.flowChanged=dN.prototype.flowChanged;dN.prototype.dataChanged=dN.prototype.dataChanged;dN.prototype.observeData=dN.prototype.observeData;dN.prototype.onCurrentFlowChange=dN.prototype.onCurrentFlowChange;dN.prototype.onPopupClosed=dN.prototype.onPopupClosed;_.V([_.m(_.OA),_.z("design:type",Object)],dN.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],dN.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],dN.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dN.prototype,"initialState",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dN.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Object)],dN.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],dN.prototype,"currentFlowStep",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dN.prototype,"onPopupClosed",null);
_.V([_.n({selectorArgs:["data.flowStateEntityKey"],selector:Z2X}),_.z("design:type",Object)],dN.prototype,"flow",void 0);_.V([_.kn("ytd-flow-top-bar-renderer"),_.z("design:type",HTMLElement)],dN.prototype,"topBar",void 0);_.V([_.vr("data","flow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dN.prototype,"onCurrentFlowChange",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dN.prototype,"observeData",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],dN.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dN.prototype,"containsTalkToRecs",void 0);_.V([_.bH("flow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],dN.prototype,"flowChanged",null);_.V([_.yj({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],dN);
_.$zt=_.o3()(dN,"ytd-flow-root-renderer",function(){if(Net!==void 0)return Net;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Net=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var voU;var p7t=null;_.CI(_.F(function(D){return _.A("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.A("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.A(_.QG,{text:function(){return D.data().text}}),_.A("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ai"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Bm}});var iHP=_.F(function(D){var C=D.playerControlsProps;var X=D.isShortsPage;return _.A("yt-bigboard",null,_.A(_.v,{cond:function(){return C().isDragging},
then:function(){return _.A("div",{class:"ytBigboardStoryboardHost"},_.A(_.dXo,{progressBarProps:C,isShortsPage:X}))}}))},"Bi");
iHP.idomCompat=!0;_.Ry={ACCOUNT_LABEL:v4("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:v4("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:v4("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:v4("AD_BADGE_HINT"),AD_BADGE_TEXT:v4("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:v4("ALL_CHANNELS_LABEL"),AMBIENT_MODE:v4("AMBIENT_MODE"),AMBIENT_MODE_OFF:v4("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:v4("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:v4("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:v4("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:v4("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:v4("APP_UPSELL_TITLE"),AUDIO_TRACK:v4("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:v4("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:v4("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:v4("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:v4("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:v4("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:v4("AUTO_ZOOM","Auto zoom"),BACK:v4("BACK"),CANCEL:v4("CANCEL"),CHANNEL_SWITCHER_LABEL:v4("CHANNEL_SWITCHER_LABEL"),CLOSE:v4("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:v4("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:v4("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:v4("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:v4("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:v4("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:v4("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:v4("COMMENT_MODAL_CONTENT"),CONFIRM_OK:v4("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:v4("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:v4("COPIED_TO_CLIPBOARD"),COPY:v4("COPY"),COPY_DEBUG_INFO:v4("COPY_DEBUG_INFO"),COPY_EMBED_CODE:v4("COPY_EMBED_CODE"),
COPY_LINK_LABEL:v4("COPY_LINK_LABEL"),COPY_VIDEO_URL:v4("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:v4("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:v4("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:v4("DELETE_FROM_DOWNLOADS"),DIALOG:v4("DIALOG"),DONE:v4("DONE"),DOWNLOAD:v4("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:v4("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:v4("FLAG_CONFIRM"),FLAG_CONTENT:v4("FLAG_CONTENT"),FLAG_LABEL:v4("FLAG_LABEL"),FLAG_TITLE:v4("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:v4("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:v4("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:v4("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:v4("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:v4("HIDE_SEARCH_FILTERS_LABEL"),HOME:v4("HOME","Home"),INVALID_RESPONSE_RECEIVED:v4("INVALID_RESPONSE_RECEIVED"),LIBRARY:v4("LIBRARY","Library"),LISTENING:v4("LISTENING"),LOADING:v4("LOADING"),LONG_PRESS_MIC_TO_SPEAK:v4("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:v4("LOOP"),MENU_DESKTOP:v4("MENU_DESKTOP"),
MENU_EXIT:v4("MENU_EXIT"),MENU_FEEDBACK:v4("MENU_FEEDBACK"),MENU_HELP:v4("MENU_HELP"),MENU_IMPRESSUM:v4("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:v4("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:v4("MENU_SETTINGS"),MENU_SIGN_IN:v4("MENU_SIGN_IN"),MENU_TITLE:v4("MENU_TITLE"),MENU_YOUR_DATA:v4("MENU_YOUR_DATA"),MORE_INFO:v4("MORE_INFO"),MORE_OPTIONS:v4("MORE_OPTIONS"),MUTE_VOLUME:v4("MUTE_VOLUME"),NEW_PLAYLIST:v4("NEW_PLAYLIST"),NEXT_VIDEO:v4("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:v4("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:v4("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:v4("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:v4("NOT_FOUND_TITLE"),NO_DOWNLOADS:v4("NO_DOWNLOADS"),NO_MIC_INPUT:v4("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:v4("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:v4("OOPS_MESSAGE"),OPEN_APP:v4("OPEN_APP"),OPEN_YOUTUBE:v4("OPEN_YOUTUBE"),PAUSE:v4("PAUSE"),PLAY:v4("PLAY"),PLAYER_CAPTION:v4("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:v4("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:v4("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:v4("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:v4("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:v4("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:v4("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:v4("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:v4("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:v4("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:v4("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:v4("PLAYER_MINIMIZE"),PLAYER_NEXT:v4("PLAYER_NEXT"),PLAYER_PAUSE:v4("PLAYER_PAUSE"),PLAYER_PLAY:v4("PLAYER_PLAY"),
PLAYER_PREVIOUS:v4("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:v4("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:v4("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:v4("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:v4("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:v4("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:v4("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:v4("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:v4("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:v4("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:v4("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:v4("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:v4("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:v4("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:v4("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:v4("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:v4("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:v4("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:v4("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:v4("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:v4("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:v4("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:v4("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:v4("PLAY_ALL"),PLEASE_FIX_ERRORS:v4("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:v4("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:v4("PREVIOUS_VIDEO"),PRIVACY_POLICY:v4("PRIVACY_POLICY"),RELOAD:v4("RELOAD"),REQUIRED_LABEL:v4("REQUIRED_LABEL"),SAVE_PLAYLIST:v4("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:v4("SCRUB_SLIDE_USER_EDU"),SEARCH:v4("SEARCH","Search"),
SEARCH_APPEND_LABEL:v4("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:v4("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:v4("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:v4("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:v4("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:v4("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:v4("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:v4("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:v4("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:v4("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:v4("SEEK_SLIDER"),SETTINGS_LABEL:v4("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:v4("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:v4("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:v4("SHOW_LESS"),SHOW_MORE:v4("SHOW_MORE"),SHOW_PLAYER_CONTROLS:v4("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:v4("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:v4("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:v4("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:v4("SIGN_IN_ON_WEB"),STABLE_VOLUME:v4("STABLE_VOLUME"),STABLE_VOLUME_OFF:v4("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:v4("STABLE_VOLUME_ON"),STATS_FOR_NERDS:v4("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:v4("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:v4("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:v4("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:v4("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:v4("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:v4("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:v4("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:v4("TIMESTAMP_SECONDS"),TOGGLE_OFF:v4("TOGGLE_OFF"),TOGGLE_ON:v4("TOGGLE_ON"),TRENDING:v4("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:v4("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:v4("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:v4("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:v4("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:v4("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:v4("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:v4("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:v4("VIDEO_LINK_LABEL")};var khG=_.F(function(D){var C=D.playerApi;D=_.aX("button",function(c){_.XP(c,36843)});
var X=v4("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.A("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.A("button",{el:D,class:"ytPlayerControlsJumpForwardButtonButton",title:X,"aria-label":X,"on:click":_.I_(function(){_.c4(36843);C&&C().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.A("span",null,_.A(_.$_,{icon:"FAST_FORWARD"}))))},"Ci");var uUY=_.F(function(D){var C=D.appApi;D=_.aX("button",function(c){_.XP(c,62946)});
var X=v4("OPEN_IN_MINIPLAYER");return _.A("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.A("button",{el:D,class:"ytMiniplayerButtonButton",title:X,"aria-label":X,"on:click":_.I_(function(){_.c4(62946);var c,W;(W=(c=C()).openInMiniplayer)==null||W.call(c);return!1})},_.A(_.$_,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Di");var QEX=_.F(function(D){var C=D.playerApi;D=_.aX("button",function(p){_.XP(p,142812)});
var X=_.U(_.Li(!1,void 0,"eOMRAb")),c=X.next().value,W=X.next().value;X=function(){return v4("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(c()?1:2)})};
return _.A("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.A("button",{el:D,class:"ytPlaybackSpeedButtonButton",title:X,"aria-label":X,"on:click":_.I_(function(){_.c4(142812);if(C){var p=C(),g=c();p.setPlaybackRate(g?1:2);W(!c())}return!1})},_.A("span",null,_.A(_.$_,{icon:function(){return c()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ei");var BLp=_.F(function(D){var C=D.title;var X=D.ariaLabel;var c=D.icon;var W=D.command;var p=D.visualElementId;D=_.aX("button",function(g){p&&_.XP(g,p())});
return _.A("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.A("button",{el:D,class:"ytdThumbnailOverlayButtonButton",title:C,"aria-label":X,"on:click":_.I_(function(){p&&_.c4(p());W&&_.iX().resolve(_.uX).resolveCommand(W())})},_.A(_.$_,{icon:c})))},"Fi");var gN="";var bHP=_.F(function(D){var C=D.playerControlsProps,X=D.onClickFn;D=_.tw(function(){var p=C(),g=-1;p.captionsAvailable&&(g=p.captionsEnabled?1:0);return g},void 0,"MZ0Wqe");
var c=_.tw(function(){var p=C();return p.captionsAvailable?_.I7(p.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.I7("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),W=_.tw(function(){var p=C();
p=p.captionsAvailable?p.captionsEnabled:void 0;return p},void 0,"fhuQRe");
return _.A("yt-closed-captions-toggle-button",null,_.A(_.wft,{captionIconType:D,ariaLabel:c,ariaPressed:W,onClick:function(p){var g=C();if(g.captionsAvailable){var a=g.playerApi;if(a){var O=g.playerApi;if(O){var P=gN;if(P){O=O.getOption("captions","track");var k;gN=(k=O?O.displayName:null)!=null?k:P}else _.C$(O)?(P=_.hqd(O),gN=P.length?(k=H23(P))?k.displayName:P[0].displayName:""):gN=""}JIk(a);_.b("mweb_disable_set_state_captions_killswitch")&&g.setState({captionsEnabled:!g.captionsEnabled})}}var u,
Q;(Q=(u=g.appApi).showCaptionsToggleToast)==null||Q.call(u,g);X==null||X(p)},
isOverlay:!0}))},"Gi");var r9G=_.F(function(D){var C=D.data;return _.A("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.A(_.iI,{data:function(){return{type:17,text:_.nGr(C().label)}}}))},"Hi");var KWN=_.F(function(D){var C=_.g$("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return D.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return D.size()==="small"?D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.A("animated-seek-arrows",{class:_.g$("ytPlayerControlsAnimatedSeekArrowsHost")},_.A("span",{class:C}),_.A("span",{class:C}),_.A("span",{class:C}))},"Ii");
KWN.idomCompat=!0;var hck=_.F(function(){var D=_.I7("PLAYER_SECONDS",{seconds_placeholder:"30"}),C=_.U(_.Li(!1,void 0,"iRJu8c")),X=C.next().value,c=C.next().value,W=_.U(_.Li(!1,void 0,"MPnizf"));C=W.next().value;var p=W.next().value;W={};var g=_.g$("jumpForwardOverlayOverlay",(W.jumpForwardOverlayOverlayHidden=C,W));_.JU(function(){var a=null,O=null,P=function(){a!==null&&_.s3().cancelJob(a);O!==null&&_.s3().cancelJob(O);p(!0);c(!0);_.pI(_.s3(),function(){p(!1)});
a=_.pI(_.s3(),function(){p(!0);O=_.pI(_.s3(),function(){c(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",P);_.z3(function(){window.removeEventListener("jump-forward-clicked",P)})});
return _.A("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.A(_.v,{cond:X,then:function(){return _.A("div",{class:g},_.A(KWN,{direction:1,size:"large"}),_.A("div",null,D))}}))},"Ji");var xz3=_.Ry.MUTE_VOLUME,LWt=_.Ry.UNMUTE_VOLUME,sEp=_.F(function(D){var C=D.muteIconType;var X=D.onClick;var c=D.useOutlineIcon;var W=D.useDelhiIcons;D=_.aX("button",function(a){_.XP(a,28662)});
var p=function(){var a=C(),O=c==null?void 0:c(),P=W==null?void 0:W(),k="",u="";switch(a){case -1:case 0:k=O?"VOLUME_OFF":P?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";u=LWt;break;case 1:k=O?"VOLUME_UP_OUTLINE":P?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";u=xz3;break;case 2:k=O?"VOLUME_DOWN_OUTLINE":P?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";u=xz3;break;default:_.qf(a)}return{iconName:k,ariaLabel:u}},g=function(){return p().ariaLabel};
return _.A("ytm-mute-button",{class:"ytmMuteButtonHost"},_.A("button",{el:D,class:"ytmMuteButtonButton",title:g,"aria-label":g,"on:click":_.I_(function(a){_.c4(28662);X==null||X(a);return!1})},_.A("span",null,_.A(_.$_,{icon:function(){return p().iconName}}))))},"Ki");var mzk=_.F(function(D){var C=D.volumeProps;var X=D.onClickFn;var c=D.useOutlineIcon;var W=D.useDelhiIcons;return _.A("yt-mute-toggle-button",null,_.A(sEp,{muteIconType:function(){var p=C();return p.volumeMuted||p.volume===0?0:p.volume>50?1:2},
onClick:function(p){var g=C().playerApi;g&&(g.isMuted()?g.unMute():g.mute(!1));X==null||X(p)},
useOutlineIcon:function(){return!(c==null||!c())},
useDelhiIcons:function(){return!(W==null||!W())}}))},"Li");
mzk.idomCompat=!0;var ecU=_.F(function(D){var C=D.data;var X=_.aX("ytm-paid-content-overlay-renderer");return _.A("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:X,"on:animationend":_.I_(function(){X.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.A(_.ty,{command:function(){return C().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.A(_.v,{cond:function(){var c;return(c=C().icon)==null?void 0:c.iconType},
then:function(){return _.A("span",null,_.A(_.$_,{icon:function(){var c;return(c=C().icon)==null?void 0:c.iconType}}))}}),_.A("div",{class:"ytmPaidContentOverlayText"},_.A(_.QG,{text:function(){return C().text}})),_.A(_.v,{cond:function(){return C().navigationEndpoint},
then:function(){return _.A(_.$_,{icon:"CHEVRON_RIGHT"})}})))},"Mi");
ecU.idomCompat=!0;var TlP=[].concat(_.VB([{register:function(D){var C=hI6(D),X;(X=D().playerApi)==null||X.addEventListener("onVolumeChange",C);return function(){}}},
{register:function(D){var C=xF6(D);D=D().playerApi;D==null||D.addEventListener("captionschanged",C);D==null||D.addEventListener("captionssettingschanged",C);D==null||D.addEventListener("onCaptionsTrackListChanged",C);return function(){}}}]),[{register:function(D){var C=BlG(D),X;
(X=D().playerApi)==null||X.addEventListener("onStateChange",C);return function(){}}},
{register:function(D){var C=bNN(D),X;(X=D().playerApi)==null||X.addEventListener("onPlaybackRateChange",C);return function(){}}},
{register:function(D){var C=r81(D),X;(X=D().playerApi)==null||X.addEventListener("onVideoDataChange",C);return function(){}}},
{register:function(D){var C=KPX(D),X,c;(X=D())==null||(c=X.playerApi)==null||c.addEventListener("onVideoProgress",C);return function(){}}}]);var EoY=_.F(function(D){var C=D.data;var X=function(){return _.I7("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+C().playbackRate})};
return _.A(_.v,{cond:function(){return C().playbackRate&&C().playbackRate!==1},
then:function(){return _.A("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.A("div",{class:"ytPlaybackRateOverlayOverlay"},_.A(KWN,{direction:1,size:"small"}),_.A("div",{class:"ytPlaybackRateOverlayLabel"},X)))}})},"Oi");var t_t=_.F(function(D){var C=D.data;return _.A("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.A(_.v,{cond:function(){var X,c=(X=C())==null?void 0:X.playerResponse,W;return c==null?void 0:(W=c.paidContentOverlay)==null?void 0:W.paidContentOverlayRenderer},
then:function(X){return _.A(ecU,{data:X})}}))},"Qi"),NL1=_.F(function(D){var C=D.props;
var X=D.data;var c=D.options;var W=function(){var P,k,u,Q;return(P=X())==null?void 0:(k=P.playerResponse)==null?void 0:(u=k.playerConfig)==null?void 0:(Q=u.inlinePlaybackConfig)==null?void 0:Q.showAudioControls},p=function(){var P,k;
if(W()&&((P=c())==null?void 0:(k=P.additionalButton)==null?void 0:k.button)!==void 0){var u,Q,B;P=(u=X())==null?void 0:(Q=u.playerApi)==null?void 0:(B=Q.getSize())==null?void 0:B.height;if(!(P===void 0||P<180)){var K,L;return(K=c())==null?void 0:(L=K.additionalButton)==null?void 0:L.button}}},g=function(){var P,k;
return(P=c())==null?void 0:(k=P.additionalButton)==null?void 0:k.thumbnailOverlayButtonRenderers},a=function(){var P,k;
return(P=c())==null?void 0:(k=P.additionalButton)==null?void 0:k.thumbnailOverlayButtonViewModels},O=function(){var P=[_.A(mzk,{volumeProps:C})],k;
((k=c())==null?0:k.hideCaptionsToggleButton)||P.push(_.A(bHP,{playerControlsProps:C}));p()===1&&P.push(_.A(khG,{playerApi:function(){return C().playerApi}}));
p()===2&&P.push(_.A(uUY,{appApi:function(){return C().appApi}}));
p()===3&&P.push(_.A(QEX,{playerApi:function(){return C().playerApi}}));
k=g();if(p()===4&&k){k=_.U(k);for(var u=k.next(),Q={};!u.done;Q={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$49:void 0,command$jscomp$604:void 0},u=k.next()){u=u.value;Q.tooltip$jscomp$2=u.tooltip;var B=void 0,K=void 0;Q.ariaLabel$jscomp$19=((B=u.accessibility)==null?void 0:(K=B.accessibilityData)==null?void 0:K.label)||Q.tooltip$jscomp$2;B=void 0;Q.icon$jscomp$49=(B=u.icon)==null?void 0:B.iconType;Q.command$jscomp$604=u.command;Q.tooltip$jscomp$2&&Q.ariaLabel$jscomp$19&&Q.icon$jscomp$49&&
P.push(_.A(BLp,{title:function(L){return function(){return L.tooltip$jscomp$2}}(Q),
ariaLabel:function(L){return function(){return L.ariaLabel$jscomp$19}}(Q),
icon:function(L){return function(){return L.icon$jscomp$49}}(Q),
command:function(L){return function(){return L.command$jscomp$604}}(Q)}))}}k=a();
if(p()===4&&k)for(k=_.U(k),u=k.next(),Q={};!u.done;Q={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$605:void 0,trackingParamsVeType:void 0},u=k.next())u=u.value,Q.tooltip$jscomp$3=u.title,Q.ariaLabel$jscomp$20=u.accessibilityText||Q.tooltip$jscomp$3,Q.icon$jscomp$50=u.iconName,Q.command$jscomp$605=_.Y7(u.onTap),K=B=void 0,Q.trackingParamsVeType=((B=u.loggingDirectives)==null?0:B.trackingParams)?(K=C53(_.Dk(u.loggingDirectives.trackingParams)))==null?void 0:
_.PI(K,2):void 0,Q.tooltip$jscomp$3&&Q.ariaLabel$jscomp$20&&Q.icon$jscomp$50&&P.push(_.A(BLp,{title:function(L){return function(){return L.tooltip$jscomp$3}}(Q),
ariaLabel:function(L){return function(){return L.ariaLabel$jscomp$20}}(Q),
icon:function(L){return function(){return L.icon$jscomp$50}}(Q),
command:function(L){return function(){return L.command$jscomp$605}}(Q),
visualElementId:function(L){return function(){return L.trackingParamsVeType}}(Q)}));
return P};
return _.A(_.v,{cond:W,then:function(){return _.A("div",{class:"ytInlinePlayerControlsTopRightControls"},_.A(_.Zh,{each:O},function(P){return _.A("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.A("div",{class:"ytInlinePlayerControlsButtonIcon"},P))}))}})},"Ri"),no3=_.F(function(D){var C=D.props;
var X=D.data;var c=D.options;D={};D=_.g$("ytInlinePlayerControlsBottomRightControls",(D.ytInlinePlayerControlsBottomRightControlsHidden=function(){var W;return sB6(X(),c())&&((W=c())==null?void 0:W.insetProgressBar)&&(C().isHovering||C().isDragging)},D));
return _.A("div",{class:D},_.A(Y2G,{data:X}),_.A(_.v,{cond:function(){var W;return!((W=c())==null?0:W.hideTimeDisplay)},
then:function(){return _.A(y91,{props:C,data:X})}}))},"Si"),Y2G=_.F(function(D){var C=D.data;
return _.A(_.BX,{data:function(){var X;return PE1((X=C())==null?void 0:X.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:r9G})},"Ti"),y91=_.F(function(D){var C=D.props;
var X=D.data;return _.A(_.v,{cond:function(){return C().isLive},
then:function(){return _.A(wlo,{props:C,data:X})},
else:function(){return _.A(FWp,{props:C,data:X})}})},"Ui"),FWp=_.F(function(D){var C=D.props;
var X=D.data;var c=_.tw(function(){var W;return $Ft((W=X())==null?void 0:W.thumbnailOverlays)},void 0,"Pf9uIe");
return _.A("div",{class:_.g$("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Ry.PLAYER_TIME_ELAPSED+" "+_.R1o(C().playedTime)}},_.A(_.iI,{data:function(){var W=_.R1o(C().videoDuration-C().playedTime);
return Object.assign({},{type:17,text:W},c())}}))},"Vi"),ZHk=_.F(function(D){D=D.badgeShapeData;
return _.A("div",{class:_.g$("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.A(_.iI,{data:D}))},"Wi"),wlo=_.F(function(D){var C=D.data;
D=_.tw(function(){if(_.b("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var c,W=_.U(((c=C())==null?void 0:c.thumbnailOverlays)||[]);for(c=W.next();!c.done;c=W.next()){c=c.value;if(c.thumbnailOverlayTimeStatusRenderer||c.thumbnailOverlayBadgeViewModel)return c;var p=void 0;if((p=c.thumbnailBottomOverlayViewModel)==null?0:p.badges)if(c=c.thumbnailBottomOverlayViewModel.badges.find(function(g){return _.r(g,ONN)}))return c}}},void 0,"GPGpgc");
var X=_.tw(function(){var c,W,p,g,a,O;return _.Gq3((c=C())==null?void 0:(W=c.playerApi)==null?void 0:(p=W.getSize())==null?void 0:p.width,(g=C())==null?void 0:(a=g.playerApi)==null?void 0:(O=a.getSize())==null?void 0:O.height)},void 0,"OeIVKe");
return _.A(_.v,{cond:D,then:function(c){return _.A(_.BX,{data:c},{thumbnailOverlayTimeStatusRenderer:function(W){var p=W.data;W=_.tw(function(){return _.mvF(p(),0)},void 0,"skoDC");
return _.A(ZHk,{badgeShapeData:W})},
thumbnailBadgeViewModel:function(W){return _.A(_.sjJ,{data:W.data,class:_.g$("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(W){return _.A(_.YTC,{data:W.data,thumbnailSize:X})}})},
else:function(){var c={type:18,text:_.Ry.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.A(ZHk,{badgeShapeData:function(){return c}})}})},"Xi"),GhY=_.F(function(D){var C=D.props;
var X=D.data;var c=D.options;return _.A(_.cYY,{progressBarProps:C,config:function(){var W,p=_.r((W=X())==null?void 0:W.multiMarkersPlayerBar,_.qA5),g;W=((g=c())==null?0:g.insetProgressBar)?2:1;var a;g=(a=c())==null?void 0:a.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:W,chapterData:p,isInlinePlayback:!0,doSeekOnClick:g,playheadDotBehavior:g?1:0}}})},"Yi");_.CI(_.F(function(D){var C=D.data;var X=D.appApi;var c=D.options;var W=QB3(C,LPp(X));D={};X={};return _.A("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.A("div",{class:_.g$("ytInlinePlayerControlsDarkenedOverlay",(D.ytInlinePlayerControlsDarkenedOverlayShow=function(){return W().isHovering},D))}),_.A(hck,null),_.A(EoY,{data:W}),_.A(t_t,{data:C}),_.A(iHP,{playerControlsProps:W,
isShortsPage:!1}),_.A("div",{class:_.g$((X.ytInlinePlayerControlsControlsHidden=function(){return W().isDragging},X))},_.A(NL1,{props:W,
data:C,options:c}),_.A(no3,{props:W,data:C,options:c})),_.A(_.v,{cond:function(){return sB6(C(),c())},
then:function(){return _.A(GhY,{props:W,data:C,options:c})}}))},"Pi"),"yt-inline-player-controls",{props:{data:_.Bm,
appApi:_.R3,options:_.Bm}});var lr=function(){var D=_.w.apply(this,arguments)||this;D.opts=null;D.playerControlsData=null;D.playerControlsAppApi={openInMiniplayer:function(){D.openInMiniplayer()}};
D.playerControlsOptions={};D.noAnimation=!1;D.playbackIntentTriggered=!1;D.positionData=null;D.hidden=!0;D.active=!1;D.playing=!1;D.persistentPanelVisible=!1;D.videoPreviewDataIndex=0;D.JSC$19614_playerPromise=null;D.player=null;D.enableAudioControls=!1;D.hasBeenUnmuted=!1;D.captionsHaveBeenTurnedOff=!1;D.JSC$19614_playerEvents=new Map;D.videoPreviewFetchRequest=null;D.scheduledPreviewEndJobId=null;D.JSC$19614_preventProgressSaveTimer=null;D.watchEndpointStartTimeUpdaterInterval=null;D.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};D.windowOnBlurFn=function(){D.deactivate()};
return D};
_.h(lr,_.w);_.S=lr.prototype;
_.S.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.S.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19614_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19614_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19614_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19614_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Pr(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Pr(this,this.onScroll))};
_.S.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Pr(this,this.onScroll))};
_.S.onPageTypeChange=function(){this.deactivate()};
_.S.onWindowResized=function(){this.deactivate()};
_.S.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.S.onCaptionsChanged=function(D){D=!!D.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!D);this.setCaptionSize()};
_.S.setCaptionSize=function(){var D;if(this.active&&!this.captionsHaveBeenTurnedOff&&((D=this.player)==null?0:D.getCaptionWindowContainerId())){var C;(C=this.player)==null||C.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.S.currentPageAllowed=function(){return!this.isWatchPage};
_.S.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.b("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var D=this.positionData,C=D.initialTopPosition,X=D.initialHorizontalPosition;_.Os(this.hostElement,{"--ytd-video-preview-translate-left":D.finalHorizontalPosition-X+"px","--ytd-video-preview-translate-top":D.finalTopPosition-C+"px","--ytd-video-preview-original-top-position":C+
"px","--ytd-video-preview-original-horizontal-position":X+"px","--ytd-video-preview-initial-scale":"scale("+D.initialScale+")","--ytd-video-preview-width":D.videoPreviewWidth+"px","--ytd-video-preview-height":D.videoPreviewHeight+"px"});return!0};
_.S.isOutOfBounds=function(D){var C=D.initialHorizontalPosition+12;D=C+D.videoPreviewWidth>window.innerWidth;return C<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&C<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&C<72||D};
_.S.handleOpenVideoPreviewAction=function(D){var C=this,X;return _.I(function(c){if(!C.currentPageAllowed())return c.return(0);C.opts=D;return(X=C.alignVideoPreviewForAnimation(D.thumbnail))?c.return(C.activate()):c.return(0)})};
_.S.onMouseLeave=function(D){var C,X;(C=this.opts)==null||(X=C.mouseleaveCallback)==null||X.call(C);this.shouldDeactivateOnMouseLeave(D)&&this.deactivate()};
_.S.onScroll=function(){var D,C;((D=this.opts)==null?0:D.isAutoplay)&&((C=this.opts)==null?0:C.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.S.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.qX.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.S.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.S.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",lr.JSC$19613_DEFAULT_CLICK_LOCATION_BEHAVIOR,lr.JSC$19613_CLICK_LOCATION_ID_MAP)};
_.S.shouldDeactivateOnMouseLeave=function(D){D=D.relatedTarget;if(!D)return!0;var C;return(C=this.opts)!=null&&C.mediaRenderer?!_.Us(this.opts.mediaRenderer).contains(D):!0};
_.S.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.S.onPlaybackStart=function(){var D=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$19614_preventProgressSaveTimer=
_.pI(_.qX,function(){D.resetPreventProgressSaveTimer()},1E4);
var C;if((C=this.opts)==null?0:C.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.pI(_.qX,function(){D.hasMultipleVideoPreviews()?D.startPlaybackForNextVideo():D.deactivate()},this.opts.videoPreviewDurationMs);
var X;this.player.setGlobalCrop(((X=this.opts)==null?0:X.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.S.getRoundedCornersSize=function(){var D;if((D=this.opts)==null?0:D.roundedCornersSize){var C;return(C=this.opts)==null?void 0:C.roundedCornersSize}var X;if((X=this.opts)==null?0:X.enableRounding){var c;if(((c=this.opts)==null?void 0:c.thumbnailSize)==="small")return 1;var W;if(((W=this.opts)==null?void 0:W.thumbnailSize)==="medium")return 2;var p;if(((p=this.opts)==null?void 0:p.thumbnailSize)==="large")return 3}return _.b("web_imp_inset_progress_bar")?3:0};
_.S.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.S.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.S.onMediaContainerClick=function(D){this.isShortcutClick(D)||(this.navigateToWatch(D),D.preventDefault(),D.stopPropagation())};
_.S.activate=function(){var D=this,C,X,c,W,p,g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:if(!D.currentPageAllowed())return k.return(0);X=(C=D.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint;c=_.Tr.instance;if(!X||!c)return k.return(0);D.playbackIntentTriggered=!0;((W=D.opts)==null?0:W.mediaRenderer)&&((p=D.opts)==null||!p.isAutoplay)&&auN(D.opts.mediaRenderer,function(){D.deactivate()});
_.A0(D,function(){D.revealPreviewUi()});
g={};_.b("enable_unknown_lact_fix_on_html5")&&(_.iX().resolve(_.B0),g.lact=_.kl());D.videoPreviewFetchRequest=c8G(c,D.getInlinePlaybackRequestData(D.videoPreviewData),g);_.KK(k,2);return k.yield(D.videoPreviewFetchRequest,4);case 4:a=k.yieldResult;if(((O=a)==null?void 0:(P=O.playabilityStatus)==null?void 0:P.status)==="OK")return k.return(D.handlePlayerResponse(a));throw Error("gk");case 2:_.Eu(k),D.deactivate();case 3:return k.return(1)}})};
_.S.getInlinePlaybackRequestData=function(D){var C,X=_.b("web_imp_player_mute_params")?((C=this.opts)==null?void 0:C.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:D.inlinePlaybackEndpoint,startPlaybackInMutedState:X}};
_.S.handlePlayerResponse=function(D){var C=this,X,c,W,p,g,a,O,P,k,u,Q,B,K,L;return _.I(function(t){if(t.nextAddress==1){X=C.getInlinePlaybackVideoId();if(!(((c=D)==null?0:(W=c.videoDetails)==null?0:W.videoId)&&C.currentPageAllowed()&&C.playbackIntentTriggered&&C.opts&&X))return C.deactivate(),t.return(0);if(D.videoDetails.videoId!==X)return t.return(0);C.enableAudioControls=!!((p=D.playerConfig)==null?0:(g=p.inlinePlaybackConfig)==null?0:g.showAudioControls);D.trackingParams=C.getInlinePlaybackTrackingParams();
if(!C.inlinePlayer)return t.return(0);a={};if(P=_.r((O=C.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint,_.TC))a.watch_endpoint=P;if(C.videoPreviewData){var Y,y=(Y=_.r(C.videoPreviewData.inlinePlaybackEndpoint,_.TC))==null?void 0:Y.startTimeSeconds;y!==void 0&&(D.playerConfig||(D.playerConfig={}),D.playerConfig.playbackStartConfig||(D.playerConfig.playbackStartConfig={}),D.playerConfig.playbackStartConfig.startPosition||(D.playerConfig.playbackStartConfig.startPosition={}),D.playerConfig.playbackStartConfig.startSeconds=
y,D.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(y*1E3))}C.inlinePlayer.loadVideoWithPlayerResponse(D,a);if(C.JSC$19614_playerPromise)return t.jumpTo(2);C.JSC$19614_playerPromise=C.inlinePlayer.getPlayerPromise();return t.yield(C.JSC$19614_playerPromise,3)}t.nextAddress!=2&&(k=t.yieldResult,k.setInlinePreview(!0),u=!_.b("web_imp_theater_bugfix"),k.setSizeStyle(!1,u),C.ytPlayerListenerBehavior.listenToPlayerEvents(k,C.JSC$19614_playerEvents),C.player=k,_.lE(C.hostElement,
"player-api-ready"));((Q=C.opts)==null?0:Q.showPlayerControls)&&C.videoPreviewData&&C.player&&(C.playerControlsData={playerResponse:D,isInlinePlayback:!0,thumbnailOverlays:C.videoPreviewData.thumbnailOverlays,playerApi:C.player},C.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!C.unroundCornersForPlayback,additionalButton:C.getAdditionalButtonType(C.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(B=C.opts)==null?void 0:B.hideTimeDisplay,hideScrubbingControls:(K=C.opts)==
null?void 0:K.hideScrubber,hideCaptionsToggleButton:(L=C.opts)==null?void 0:L.hideCaptionsToggleButton});return t.return(2)})};
_.S.revealPreviewUi=function(){var D=this;this.playbackIntentTriggered&&_.uNJ(this,function(){D.hasThumbnailPositionChangedSinceTriggered()||(D.updateActiveState(!0),D.noAnimation=!1)})};
_.S.hasThumbnailPositionChangedSinceTriggered=function(){var D=this.positionData,C=this.getThumbnailPositionData();return(D==null?void 0:D.initialTopPosition)!==(C==null?void 0:C.initialTopPosition)||(D==null?void 0:D.initialHorizontalPosition)!==(C==null?void 0:C.initialHorizontalPosition)};
_.S.getThumbnailPositionData=function(){var D,C;if((C=this.opts)==null||!C.thumbnail)return null;C=this.opts.thumbnail;var X=((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?!1:!0;var c=C.getBoundingClientRect();D=c.width;C=c.height;var W=c.top+window.scrollY;c=c.left+window.scrollX;var p=X?Math.ceil(D):D;X=X?Math.ceil(C):C;var g=D/p;D={initialScale:g,initialTopPosition:W-12*g,finalTopPosition:W-12-(X-C)/2,initialHorizontalPosition:c-(12+(p-D)/2),finalHorizontalPosition:c-12-(p-D)/
2,videoPreviewWidth:p,videoPreviewHeight:X};return D};
_.S.updateActiveState=function(D){this.active=D;this.ytdReduxBehavior.dispatch(_.oI({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:D}))};
_.S.stopPlayer=function(D){D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(D)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.qX.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.S.deactivate=function(D){D=D===void 0?{}:D;D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;p7t&&(p7t.disconnect(),p7t=null);this.stopPlayer({resetWatchEndpointStartTime:D});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.S.isValidThumbnailOverlayButton=function(D,C){D=D.thumbnailOverlayButtonRenderer;var X;return!!D&&!!D.tooltip&&!((X=D.icon)==null||!X.iconType)&&C.includes(D.icon.iconType)};
_.S.isValidThumbnailOverlayButtonViewModel=function(D,C){var X;D=_.r((X=D.thumbnailOverlayButtonViewModel)==null?void 0:X.overlayButton,_.is);return!!D&&!!D.title&&!!D.iconName&&C.includes(D.iconName)};
_.S.getAdditionalButtonType=function(D){var C=this;if(_.b("web_imp_fastforward_button"))return{button:1};if(_.b("web_imp_miniplayer_button"))return{button:2};if(_.b("web_imp_playback_speed_button"))return{button:3};var X=["BOX_STACK_3"],c=(D||[]).filter(function(p){return C.isValidThumbnailOverlayButton(p,X)}).map(function(p){return p.thumbnailOverlayButtonRenderer});
if(c.length)return{button:4,thumbnailOverlayButtonRenderers:c};var W=["BOX_STACK_3"];D=(D||[]).filter(function(p){return C.isValidThumbnailOverlayButtonViewModel(p,W)}).map(function(p){return _.r(p.thumbnailOverlayButtonViewModel.overlayButton,_.is)});
if(D.length)return{button:4,thumbnailOverlayButtonViewModels:D}};
_.S.allowCaptions=function(){var D;return!((D=this.opts)==null?0:D.forceCaptionsOff)};
_.S.allowUnmuting=function(){var D;return this.enableAudioControls&&!((D=this.opts)==null?0:D.forceMutedVolume)};
_.S.beginStartTimeUpdater=function(){var D=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.LC(function(){D.updateWatchEndpointStartTime()},1E3)};
_.S.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.S.resetPreventProgressSaveTimer=function(){this.JSC$19614_preventProgressSaveTimer!==null&&(_.qX.cancelJob(this.JSC$19614_preventProgressSaveTimer),this.JSC$19614_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.S.updateWatchEndpointStartTime=function(D){var C=this.videoPreviewData;if(this.player&&C!=null&&C.inlinePlaybackEndpoint&&!this.JSC$19614_preventProgressSaveTimer){D=D?0:Math.floor(this.player.getCurrentTime());var X=_.r(C.navigationEndpoint,_.TC);X&&(X.startTimeSeconds=D);if(C=_.r(C.inlinePlaybackEndpoint,_.TC))C.startTimeSeconds=D}};
_.S.isShortcutClick=function(D){return!!D&&(D.ctrlKey||D.shiftKey||D.metaKey)};
_.S.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.S.openInMiniplayer=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1){X=(C=D.videoPreviewData)==null?void 0:C.navigationEndpoint;if(!X)return c.return();_.qg().lockupActivation=!0;return c.yield(_.Cd5(_.iX().resolve(_.wB),X),2)}_.qg().userActivation=!0;_.t_(c)})};
_.S.navigateToWatch=function(D){var C,X=(C=this.videoPreviewData)==null?void 0:C.navigationEndpoint;if(X){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(X,D,!0);else{var c;_.b("web_thumbnail_to_watch_transition")&&((c=this.opts)==null?0:c.thumbnail)&&_.RZe(_.iX().resolve(_.c3),this.opts.thumbnail);_.lE(this.hostElement,"yt-navigate",{endpoint:X})}this.deactivate()}};
_.S.getInlinePlaybackVideoId=function(){var D,C;return(C=_.r((D=this.videoPreviewData)==null?void 0:D.inlinePlaybackEndpoint,_.TC))==null?void 0:C.videoId};
_.S.getInlinePlaybackTrackingParams=function(){var D,C;return(D=this.videoPreviewData)==null?void 0:(C=D.inlinePlaybackEndpoint)==null?void 0:C.clickTrackingParams};
_.S.hasMultipleVideoPreviews=function(){var D;return!!(((D=this.opts)==null?0:D.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.S.startPlaybackForNextVideo=function(){var D;(D=this.opts)!=null&&D.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())};
_.$a.Object.defineProperties(lr.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null?0:D.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null||!D.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 D;if(Array.isArray((D=this.opts)==null?void 0:D.videoPreviewData)){var C;return(C=this.opts)==null?void 0:C.videoPreviewData[this.videoPreviewDataIndex]}var X;return(X=this.opts)==null?void 0:X.videoPreviewData}}});
lr.prototype.onIsAdsVideoChange=lr.prototype.onIsAdsVideoChange;lr.prototype.onInlinePreviewIsEnabledChange=lr.prototype.onInlinePreviewIsEnabledChange;lr.prototype.optsChanged=lr.prototype.optsChanged;lr.prototype.onMouseLeave=lr.prototype.onMouseLeave;lr.prototype.onPersistentPanelVisibleChange=lr.prototype.onPersistentPanelVisibleChange;lr.JSC$19613_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
lr.JSC$19613_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],lr.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],lr.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],lr.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],lr.prototype,"componentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],lr.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.EA.YtSparklesClickLocationBehavior),_.z("design:type",Object)],lr.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],lr.prototype,"opts",void 0);_.V([_.n(),_.z("design:type",Object)],lr.prototype,"playerControlsData",void 0);_.V([_.n(),_.z("design:type",Object)],lr.prototype,"playerControlsAppApi",void 0);
_.V([_.n(),_.z("design:type",Object)],lr.prototype,"playerControlsOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],lr.prototype,"noAnimation",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],lr.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],lr.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],lr.prototype,"playing",void 0);
_.V([_.n({selector:_.yyt}),_.z("design:type",Boolean)],lr.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.n(),_.z("design:type",String)],lr.prototype,"pagePath",void 0);_.V([_.n({selector:_.tOo}),_.z("design:type",Boolean)],lr.prototype,"isWatchPage",void 0);_.V([_.n({selector:_.TU.persistentPanelVisibleSelector}),_.z("design:type",Object)],lr.prototype,"persistentPanelVisible",void 0);
_.V([_.e("videoPreviewData"),_.z("design:type",Object),_.z("design:paramtypes",[])],lr.prototype,"thumbnailData",null);_.V([_.e("opts","active"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lr.prototype,"hidePlayerControls",null);_.V([_.e("opts"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lr.prototype,"isAdsVideo",null);
_.V([_.e("opts"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lr.prototype,"roundedCornersSmall",null);_.V([_.e("opts"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lr.prototype,"roundedCornersMedium",null);_.V([_.e("opts"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lr.prototype,"roundedCornersLarge",null);
_.V([_.e("opts"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],lr.prototype,"unroundCornersForPlayback",null);_.V([_.e("opts","videoPreviewDataIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],lr.prototype,"videoPreviewData",null);_.V([_.n(),_.z("design:type",Object)],lr.prototype,"videoPreviewDataIndex",void 0);_.V([_.kn("#inline-player"),_.z("design:type",Object)],lr.prototype,"inlinePlayer",void 0);
_.V([_.vr("persistentPanelVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lr.prototype,"onPersistentPanelVisibleChange",null);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],lr.prototype,"onMouseLeave",null);_.V([_.bH("opts"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lr.prototype,"optsChanged",null);
_.V([_.bH("inlinePreviewIsEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lr.prototype,"onInlinePreviewIsEnabledChange",null);_.V([_.vr("isAdsVideo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lr.prototype,"onIsAdsVideoChange",null);_.V([_.yj({is:"ytd-video-preview",disableElementRegistration:!0})],lr);
_.G(lr,"ytd-video-preview",function(){if(voU!==void 0)return voU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return voU=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.AQ=function(D){return function(C,X){var c=D||X.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(C,X,{get:function(){var W;return this.$?this.$[c]:(W=_.iH(this))==null?void 0:W.querySelector("#"+c)},
enumerable:!0,configurable:!0})}};_.PU=function(D){D=D===void 0?!1:D;_.nF.call(this);this.pubSub_=new _.tg(D);_.hR(this,this.pubSub_)};
_.WT(_.PU,_.nF);_.PU.prototype.subscribe=function(D,C,X){return this.isDisposed()?0:this.pubSub_.subscribe(D,C,X)};
_.PU.prototype.unsubscribe=function(D,C,X){return this.isDisposed()?!1:this.pubSub_.unsubscribe(D,C,X)};
_.PU.prototype.unsubscribeByKey=function(D){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(D)};
_.PU.prototype.publish=function(D,C){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var zoD=function(){_.db("ypcRedeemFlowStarted")},jw$=function(D){_.db("ypcRedeemFlowFailed",void 0,void 0,void 0,D)},MNJ=function(D,C,X){C&&X&&(D.videos.forEach(function(c){c.videoId===C&&(c.itemId=X)}),D.recommendedVideos.forEach(function(c){c.videoId===C&&(c.itemId=X)}))};var qXz;var fGz;/*

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
*/
_.mZ({_template:function(){if(fGz!==void 0)return fGz;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;qXz===void 0&&(qXz=document.createElement("template"));var c=qXz;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return fGz=D},
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(D,C){var X=this._resolveSrc(D);X!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",D===""||C?this._setLoading(!1):(this._resolvedSrc=X,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var D=this.$.sizedImgDiv.style,C=this.$.placeholder.style;D.backgroundSize=C.backgroundSize=this.sizing;D.backgroundPosition=C.backgroundPosition=this.sizing?this.position:"";D.backgroundRepeat=C.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(D){D=_.r0(D,this.$.baseURIAnchor.href);D.length>=2&&D[0]==="/"&&D[1]!=="/"&&(D=(location.origin||location.protocol+"//"+location.host)+D);return D}});var dYv;var Roz;_.mZ({_template:function(){if(Roz!==void 0)return Roz;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;dYv===void 0&&(dYv=document.createElement("template"));var c=dYv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Roz=D},
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(D){return D?"false":"true"},
_headingChanged:function(D){var C=this.getAttribute("heading"),X=this.getAttribute("aria-label");typeof X==="string"&&X!==C||this.setAttribute("aria-label",D)},
_computeHeadingClass:function(D){return D?" over-image":""},
_computeAnimated:function(D){return D}});var lGB=new _.A7("addRendererToItemSectionAction");var DJB;var NQ=function(){return _.w.apply(this,arguments)||this};
_.h(NQ,_.w);NQ.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],NQ.prototype,"rendererBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],NQ.prototype,"dismissibleItemBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],NQ.prototype,"rendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],NQ.prototype,"data",void 0);_.V([_.yj({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],NQ);
_.G(NQ,"ytd-comment-history-entry-renderer",function(){if(DJB!==void 0)return DJB;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return DJB=D},{mode:1});var CUN;_.sI("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.sI("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Yp=function(){return _.w.apply(this,arguments)||this};
_.h(Yp,_.w);_.S=Yp.prototype;_.S.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.S.onTap=function(){this.data.recordClickEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var D=this.data.navigationEndpoint;D&&_.r(D,_.Uq)&&_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})};
_.S.readChanged=function(){var D;_.gi(this.hostElement,"unread",!((D=this.data)==null?0:D.read))};
_.S.dataChanged=function(){this.data&&_.gi(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.S.computeThumbnailSize=function(){var D;return((D=this.data)==null?0:D.highPriorityNotification)?32:48};
_.S.getEndpointURL=function(D){return D&&!_.r(D,_.Uq)?this.componentBehavior.computeHref_(D):null};
_.S.getEndpointData=function(D){return D&&!_.r(D,_.Uq)?D:null};
Yp.prototype.computeThumbnailSize=Yp.prototype.computeThumbnailSize;Yp.prototype.dataChanged=Yp.prototype.dataChanged;Yp.prototype.readChanged=Yp.prototype.readChanged;Yp.prototype.onKeyUp=Yp.prototype.onKeyUp;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Yp.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Yp.prototype,"data",void 0);_.V([_.n({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.z("design:type",Number)],Yp.prototype,"thumbnailSize",void 0);_.V([_.$n("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],Yp.prototype,"onKeyUp",null);
_.V([_.vr("data.read"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yp.prototype,"readChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yp.prototype,"dataChanged",null);_.V([_.vr("data.highPriorityNotification"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yp.prototype,"computeThumbnailSize",null);
_.V([_.yj({is:"ytd-notification-renderer",disableElementRegistration:!0})],Yp);
_.G(Yp,"ytd-notification-renderer",function(){if(CUN!==void 0)return CUN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return CUN=D},{mode:1});var Xvv;var y0=function(){return _.w.apply(this,arguments)||this};
_.h(y0,_.w);y0.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"}}}};
y0.prototype.computeActionButtonClass=function(D){return!D.actionButtons||D.actionButtons.length<=1?"single-button":D.description?"vertical-buttons":"horizontal-buttons"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],y0.prototype,"data",void 0);_.V([_.yj({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],y0);
_.G(y0,"ytd-playlist-show-metadata-renderer",function(){if(Xvv!==void 0)return Xvv;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Xvv=D},{mode:1});var c2D;_.sI("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var nx=function(){return _.w.apply(this,arguments)||this};
_.h(nx,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nx.prototype,"data",void 0);_.V([_.yj({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],nx);
_.G(nx,"ytd-purchase-item-renderer",function(){if(c2D!==void 0)return c2D;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return c2D=D},{mode:1});var oNJ;var Wzd={};Wzd.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(D){if(D)return D.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(D){if(D==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.sI("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var wm=function(){return _.w.apply(this,arguments)||this};
_.h(wm,_.w);wm.prototype.onYtNavigate=function(D){var C=this.openPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);C&&(D.stopPropagation(),this.openPopupBehavior.openPopup(C))};
wm.prototype.onYtNavigate=wm.prototype.onYtNavigate;_.V([_.m(Wzd.YtSimpleTextSectionBehavior),_.z("design:type",Object)],wm.prototype,"ytSimpleTextSectionBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],wm.prototype,"openPopupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wm.prototype,"data",void 0);
_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wm.prototype,"onYtNavigate",null);_.V([_.yj({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],wm);
_.G(wm,"ytd-simple-text-section-renderer",function(){if(oNJ!==void 0)return oNJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return oNJ=D},{mode:1});var pvJ;_.sI("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var SBN=function(){return _.w.apply(this,arguments)||this};
_.h(SBN,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SBN.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],SBN.prototype,"data",void 0);_.V([_.yj({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],SBN);
_.G(SBN,"ytd-unlimited-page-feature-info-renderer",function(){if(pvJ!==void 0)return pvJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return pvJ=D},{mode:1});var UJJ;var gNj;var F8=function(){return _.w.apply(this,arguments)||this};
_.h(F8,_.w);F8.prototype.dataChanged=function(){if(this.data){var D=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);D&&(D=_.XA(D,screen.width),this.hostElement.style.backgroundImage="url("+D+")")}};
F8.prototype.dataChanged=F8.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],F8.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F8.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],F8);
_.G(F8,"ytd-post-redemption-section-renderer",function(){if(gNj!==void 0)return gNj;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return gNj=D},{mode:1});var a6B;var Zc=function(){return _.w.apply(this,arguments)||this};
_.h(Zc,_.w);Zc.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Zc.prototype,"data",void 0);_.V([_.yj({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Zc);
_.G(Zc,"ytd-ypc-post-redemption-renderer",function(){if(a6B!==void 0)return a6B;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return a6B=D},{mode:1});_.sI("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Gn=function(){var D=_.w.apply(this,arguments)||this;D.MIN_CODE_LENGTH=12;D.MAX_CODE_LENGTH=24;return D};
_.h(Gn,_.w);_.S=Gn.prototype;_.S.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.S.created=function(){this.riskService=new _.yOo;this.loadPaymentThenable=_.wsW(_.q6("YPC_MB_URL"))};
_.S.ready=function(){var D=this;this.code.addEventListener("keypress",function(C){D.onCodeInputKeypress(C)})};
_.S.dataChanged=function(){var D=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(C){C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,X.type==="attributes"&&X.attributeName==="dark"&&D.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.S.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var D=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+D+")")}};
_.S.computeRedeemButton=function(D){(D=this.get("redeemButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.S.onRedeemButtonTap=function(D){D.stopPropagation();zoD();this.redeemCode()};
_.S.redeemCode=function(){var D=this;this.isLoading=!0;var C=this.riskService.init();_.Fn([C,this.loadPaymentThenable]).then(function(){var X=D.data.redeemButton.buttonRenderer.serviceEndpoint,c=_.nS5(),W=_.R9.payments.business.integration.ClientTokenFactory.createClientToken(_.r(X,_.es5).countryCode,c);c={c:D.code.value.trim(),rd:window.btoa(c),ctk:W};X&&_.iX().resolve(_.uX).resolveCommand(X,{form:Object.assign({},c,{element:D.hostElement})})},function(){D.showGenericError();
jw$("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Re(Error("Qo"))})};
_.S.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isLoading=!1;var C,X;this.errorMessage=(C=D.detail)==null?void 0:(X=C.data)==null?void 0:X.errorMessage;var c,W;this.postRedemptionRenderer=(c=D.detail)==null?void 0:(W=c.data)==null?void 0:W.renderer;var p,g;if(D=(p=D.detail)==null?void 0:(g=p.data)==null?void 0:g.redirectEndpoint)this.isLoading=!0,_.lE(this.hostElement,"yt-navigate",{endpoint:D});this.errorMessage?jw$("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
D)&&_.db("ypcRedeemFlowSucceeded")};
_.S.onYtServiceRequestError=function(D){D.stopPropagation();this.isLoading=!1;if(D=this.get("detail.error.message",D))this.errorMessage=_.jV(D);jw$("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.S.onInvokeInstrumentManagerActionCompleted=function(D){D.stopPropagation();this.redeemCode()};
_.S.onInvokeInstrumentManagerActionError=function(D){D.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",D)){case "instrumentManagerLoadError":this.showGenericError();jw$("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();jw$("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.db("ypcRedeemFlowCancelled")}};
_.S.onInput=function(){var D=this;_.Hr(this,"onInput",function(){var C=D.code.value.trim();D.redeemButtonDisabled=C.length<D.MIN_CODE_LENGTH||C.length>D.MAX_CODE_LENGTH},200)};
_.S.onCodeInputKeypress=function(D){D.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(zoD(),this.redeemCode())};
_.S.computeImageUrl=function(D){return D?_.XA(D.thumbnails,600):null};
_.S.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Gn.prototype.onInvokeInstrumentManagerActionError=Gn.prototype.onInvokeInstrumentManagerActionError;Gn.prototype.onInvokeInstrumentManagerActionCompleted=Gn.prototype.onInvokeInstrumentManagerActionCompleted;Gn.prototype.onYtServiceRequestError=Gn.prototype.onYtServiceRequestError;Gn.prototype.onYtServiceRequestCompleted=Gn.prototype.onYtServiceRequestCompleted;Gn.prototype.dataChanged=Gn.prototype.dataChanged;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Gn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Gn.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Boolean)],Gn.prototype,"redeemButtonDisabled",void 0);
_.V([_.n(),_.z("design:type",Object)],Gn.prototype,"errorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],Gn.prototype,"postRedemptionRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],Gn.prototype,"observer",void 0);_.V([_.kn("#code"),_.z("design:type",HTMLInputElement)],Gn.prototype,"code",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gn.prototype,"dataChanged",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Gn.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Gn.prototype,"onYtServiceRequestError",null);
_.V([_.$n("yt-invoke-instrument-manager-action-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Gn.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.V([_.$n("yt-invoke-instrument-manager-action-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Gn.prototype,"onInvokeInstrumentManagerActionError",null);_.V([_.yj({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Gn);
_.G(Gn,"ytd-redeem-code-renderer",function(){if(UJJ!==void 0)return UJJ;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return UJJ=D},{mode:1});var I6v;_.sI("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var V0=function(){var D=_.w.apply(this,arguments)||this;D.businessEmailDisplayState="HIDE_SECTION";return D};
_.h(V0,_.w);_.S=V0.prototype;_.S.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}}}}}};
_.S.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"};
_.S.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.S.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.yy(_.bp4),this.businessEmailDisplayState="CAPTCHA"))};
_.S.onYtServiceRequestCompleted=function(D){var C;if((C=D.detail.data)==null?0:C.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var X;if((X=D.detail.data)==null?0:X.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.S.computeEmailHref=function(D){return"mailto:"+D};
_.S.computeSafeUrl=function(D){if(D)return _.Hv(D)};
_.S.onBusinessEmailCaptchaSubmit=function(){var D;(D=this.data)!=null&&D.onBusinessEmailRevealClickCommand&&(D=this.JSC$22392_captchaTextarea.value)&&(D={recaptcha_response_token:D,channel_id:this.data.channelId},_.iX().resolve(_.uX).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},D,{element:this.hostElement})}))};
_.S.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.$a.Object.defineProperties(V0.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 D,C;return!((D=this.data)==null||!D.primaryLinks)&&!((C=this.data)==null?0:C.links)&&this.data.primaryLinks.every(function(X){return X.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.primaryLinks)&&!((C=this.data)==null?0:C.links)&&!this.shouldShowNewLinks}}});
V0.prototype.onYtServiceRequestCompleted=V0.prototype.onYtServiceRequestCompleted;V0.prototype.dataChanged=V0.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],V0.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.kn("#g-recaptcha-response"),_.z("design:type",HTMLTextAreaElement)],V0.prototype,"JSC$22392_captchaTextarea",void 0);_.V([_.n(),_.z("design:type",Object)],V0.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],V0.prototype,"businessEmailDisplayState",void 0);_.V([_.n(),_.z("design:type",String)],V0.prototype,"businessEmail",void 0);_.V([_.n(),_.z("design:type",String)],V0.prototype,"businessEmailErrorMessage",void 0);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],V0.prototype,"hideDetailsSection",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V0.prototype,"dataChanged",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],V0.prototype,"shouldShowNewLinks",null);_.V([_.e("data","shouldShowLinks"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],V0.prototype,"shouldShowLegacyLinks",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],V0.prototype,"onYtServiceRequestCompleted",null);_.V([_.yj({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],V0);
_.G(V0,"ytd-channel-about-metadata-renderer",function(){if(I6v!==void 0)return I6v;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return I6v=D},{mode:1});var Off;_.sI("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Tn=function(){return _.w.apply(this,arguments)||this};
_.h(Tn,_.w);Tn.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Tn.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],Tn.prototype,"lockupContainerType",void 0);_.V([_.n(),_.z("design:type",String)],Tn.prototype,"thumbnailFixedWidth",void 0);
_.V([_.yj({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Tn);
_.G(Tn,"ytd-channel-featured-content-renderer",function(){if(Off!==void 0)return Off;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Off=D},{mode:1});var A2j;_.sI("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var HJ=function(){var D=_.w.apply(this,arguments)||this;D.roundContainer=!0;D.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return D};
_.h(HJ,_.w);_.S=HJ.prototype;_.S.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S.dataChanged=function(){this.imageWidth=this.imageHeight=24;var D=this.data;D.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!D.style&&D.image&&D.image.thumbnails.length&&(D=D.image.thumbnails[0],this.imageWidth=D.width||0,this.imageHeight=D.height||0)};
_.S.computeSource=function(D){return D.secondarySource?_.Mh(D.secondarySource):_.Mh(D.source)};
_.S.computeClarifyStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.S.isLargeStyle=function(D){return D==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.S.computeBackgroundStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.S.computeHasActionButton=function(D){return!!D.actionButton};
_.S.computeHasBottomSection=function(D){return!!D.ctaHasBottomSection};
_.S.computeIsSourceMissing=function(D){return D.ctaHasBottomSection===!1?!0:D&&this.computeSource(D)?!1:!0};
_.S.computeSecondaryEndpoint=function(D){return D.secondaryEndpoint||D.endpoint};
HJ.prototype.dataChanged=HJ.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],HJ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],HJ.prototype,"imageWidth",void 0);_.V([_.n(),_.z("design:type",Number)],HJ.prototype,"imageHeight",void 0);
_.V([_.n({computed:"computeSecondaryEndpoint(data)"}),_.z("design:type",Object)],HJ.prototype,"secondaryEndpoint",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.z("design:type",Boolean)],HJ.prototype,"hasActionButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.z("design:type",Boolean)],HJ.prototype,"hasBottomSection",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.z("design:type",Boolean)],HJ.prototype,"missingSource",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],HJ.prototype,"icon",void 0);_.V([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.z("design:type",String)],HJ.prototype,"secondaryIcon",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.z("design:type",String)],HJ.prototype,"clarifyStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.z("design:type",String)],HJ.prototype,"backgroundStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],HJ.prototype,"roundContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],HJ.prototype,"amsterdamEnabled",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HJ.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-clarification-renderer",disableElementRegistration:!0})],HJ);
_.G(HJ,"ytd-clarification-renderer",function(){if(A2j!==void 0)return A2j;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return A2j=D},{mode:1});var PU2;var $J2;var Jk=function(){var D=_.w.apply(this,arguments)||this;D.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return D};
_.h(Jk,_.w);_.S=Jk.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.S.computeIcon=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.S.computeUseContacts=function(D){return!!D.contacts&&D.contacts.length>0};
_.S.computePhoneContact=function(D){var C,X;return(C=D.contacts)==null?void 0:(X=C.find(function(c){var W;return(c==null?void 0:(W=c.icon)==null?void 0:W.iconType)==="PHONE"}))==null?void 0:X.actionText};
_.S.computeSmsContact=function(D){var C,X;return(C=D.contacts)==null?void 0:(X=C.find(function(c){var W;return(c==null?void 0:(W=c.icon)==null?void 0:W.iconType)==="SMS"}))==null?void 0:X.actionText};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Jk.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jk.prototype,"amsterdamEnabled",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.z("design:type",Boolean)],Jk.prototype,"useContacts",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.z("design:type",String)],Jk.prototype,"phoneContact",void 0);_.V([_.yj({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Jk);
_.G(Jk,"ytd-single-action-emergency-support-renderer",function(){if($J2!==void 0)return $J2;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return $J2=D},{mode:1});_.sI("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var zn=function(){var D=_.w.apply(this,arguments)||this;D.roundedContainer=!0;D.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return D};
_.h(zn,_.w);zn.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],zn.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],zn.prototype,"amsterdamEnabled",void 0);
_.V([_.yj({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],zn);
_.G(zn,"ytd-emergency-onebox-renderer",function(){if(PU2!==void 0)return PU2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return PU2=D},{mode:1});var vNf;_.sI("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var jM=function(){return _.w.apply(this,arguments)||this};
_.h(jM,_.w);jM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],jM.prototype,"data",void 0);_.V([_.yj({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],jM);
_.G(jM,"ytd-exploratory-results-renderer",function(){if(vNf!==void 0)return vNf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return vNf=D},{mode:1});var ifH;_.sI("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var MQ=function(){var D=_.w.apply(this,arguments)||this;D.messageData=null;return D};
_.h(MQ,_.w);_.S=MQ.prototype;_.S.onServiceRequestCompleted=function(D,C){D=C.actions||[];C=0;for(var X=D.length;C<X;C++){var c=D[C],W=void 0,p=void 0;if((W=_.r(c,_.zS))==null?0:(p=W.item)==null?0:p.messageRenderer)this.messageData=_.r(c,_.zS).item.messageRenderer}};
_.S.dataChanged=function(){var D=this.data;this.hostElement.hidden=!1;_.gi(this.hostElement,"is-channel",D&&!D.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.S.computeThumbnailWidth=function(D){return D?126:56};
_.S.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.S.onSubmitTap=function(){var D=this.data,C=this.selectedResponseIndex;D!==void 0&&C!==void 0&&(D=D.responses[C],D.responseData&&_.iX().resolve(_.uX).resolveCommand(D.responseData,{form:{element:this.hostElement}}))};
_.S.onDismissTap=function(){this.hostElement.hidden=!0;var D=this.data;D!==void 0&&D.dismissalEndpoint&&_.iX().resolve(_.uX).resolveCommand(D.dismissalEndpoint,{form:{element:this.hostElement}})};
_.S.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
MQ.prototype.onSelectedResponseIndexChange=MQ.prototype.onSelectedResponseIndexChange;MQ.prototype.dataChanged=MQ.prototype.dataChanged;MQ.prototype.onServiceRequestCompleted=MQ.prototype.onServiceRequestCompleted;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],MQ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],MQ.prototype,"messageData",void 0);
_.V([_.n(),_.z("design:type",Number)],MQ.prototype,"selectedResponseIndex",void 0);_.V([_.kn("#submit-button"),_.z("design:type",HTMLButtonElement)],MQ.prototype,"submitButton",void 0);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],MQ.prototype,"onServiceRequestCompleted",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MQ.prototype,"dataChanged",null);
_.V([_.vr("selectedResponseIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MQ.prototype,"onSelectedResponseIndexChange",null);_.V([_.yj({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],MQ);
_.G(MQ,"ytd-feedback-elicitation-single-question-renderer",function(){if(ifH!==void 0)return ifH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ifH=D},{mode:1});var kdD;var qQ=function(){return _.w.apply(this,arguments)||this};
_.h(qQ,_.w);qQ.prototype.computeThumbnailWidth=function(D){return D?602:428};
qQ.prototype.updateWideFromBinding=function(D){this.wide=D.detail.value};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qQ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],qQ.prototype,"wide",void 0);_.V([_.yj({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],qQ);
_.G(qQ,"ytd-newspaper-hero-video-renderer",function(){if(kdD!==void 0)return kdD;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return kdD=D},{mode:1});var umf;var QHm=function(){return _.w.apply(this,arguments)||this};
_.h(QHm,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],QHm.prototype,"rendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],QHm.prototype,"data",void 0);_.V([_.yj({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],QHm);
_.G(QHm,"ytd-newspaper-mini-video-renderer",function(){if(umf!==void 0)return umf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return umf=D},{mode:1});var BjD;_.sI("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var fx=function(){return _.w.apply(this,arguments)||this};
_.h(fx,_.w);fx.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fx.prototype,"data",void 0);_.V([_.yj({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],fx);
_.G(fx,"ytd-newspaper-renderer",function(){if(BjD!==void 0)return BjD;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return BjD=D},{mode:1});var bfU;_.sI("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var dm=function(){var D=_.w.apply(this,arguments)||this;D.isSegment=!1;D.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};D.nextContinuation={continuationType:"playlistVideoListContinuation"};return D};
_.h(dm,_.w);_.S=dm.prototype;_.S.created=function(){var D=this;this.JSC$22425_ytReorderableController=new _.$vk(101,function(C){D.handleDrop(C)})};
_.S.attached=function(){_.iX();var D;(D=_.iX().resolve(_.vK(_.U5)))!=null&&(D.playlistVideoListElement=this.hostElement)};
_.S.detached=function(){var D;(D=_.iX().resolve(_.vK(_.U5)))!=null&&(D.playlistVideoListElement=void 0);D=_.iX().resolve(_.vK(_.zf));_.b("web_enable_voting_animation")&&D&&(D.parentElem=void 0,D.videos=[],D.continuationsPresent=!1,D.showRefreshPill=!1);_.fu(this.JSC$22425_ytReorderableController)};
_.S.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"}}}}}};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.S.dataChanged=function(){var D=_.iX().resolve(_.vK(_.zf));if(_.b("web_enable_voting_animation")&&this.data&&D){var C=_.SY(this.hostElement).querySelector("#contents");C&&(D.parentElem=C);D.addVideos(this.data.contents)}_.fu(this.JSC$22425_ytReorderableController)};
_.S.onRendererstamperFinished=function(){this.canReorder&&_.v2q(this.JSC$22425_ytReorderableController,_.SY(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.S.onPlaylistReloading=function(){this.isReloading=!0};
_.S.onUpdateSetVideoId=function(D){if(D.detail&&this.data&&this.data.contents){var C=D.detail;D=this.data.contents.findIndex(function(W){var p;return((p=W.playlistVideoRenderer)==null?void 0:p.videoId)===C.videoId});
if(!(D<0)&&C.setVideoId&&(this.set("data.contents."+D+".playlistVideoRenderer.setVideoId",C.setVideoId),_.b("web_enable_voting_animation"))){var X;if(D=_.r((X=this.data.contents[D].playlistVideoRenderer)==null?void 0:X.engagementBar,_.XsR)){var c;(c=D.actions)==null||c.forEach(function(W){if(W=_.r(W,_.cOm))W.itemId=C.setVideoId})}(X=_.iX().resolve(_.vK(_.zf)))&&MNJ(X,C.videoId,C.setVideoId)}}};
_.S.computeContentsClass=function(D){return D?"reloading":""};
_.S.computeIsSortable=function(D,C){return D&&C>0&&!this.isSegment&&!_.b("shorts_in_playlists_web")};
_.S.computeIsEditable=function(D){return D};
_.S.computeCanReorder=function(D){return D};
_.S.handlePlaylistRemoveVideosAction=function(D){if(this.get("playlistRemoveVideosAction.setVideoIds",D)&&this.data&&this.data.contents){D=_.r(D,_.MUf).setVideoIds;for(var C=this.data.contents.length-1;C>=0;){var X=this.data.contents[C].playlistVideoRenderer;X&&X.setVideoId&&D.includes(X.setVideoId)&&this.splice("data.contents",C,1);C--}_.DS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.S.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".playlistVideoRenderer.index",_.jV(String(D+1)))};
_.S.handleDrop=function(D){D=D.currDragItem;var C=_.w5(D.parentNode.childNodes,D),X=this.data.contents.splice(Number(_.Mh(D.data.index))-1,1)[0];this.data.contents.splice(C,0,X);C=C?this.get("contents."+(C-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();D=this.buildReorderServiceEndpoint(D.data.setVideoId,C);this.ytComponentBehavior.resolveCommand(D)};
_.S.buildReorderServiceEndpoint=function(D,C){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",D),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",C),this.data.onReorderEndpoint):null};
_.S.handleUpdatePlaylistAction=function(D){var C;(D=_.r((C=_.r(D,_.qy5))==null?void 0:C.updatedRenderer,_.dLc))&&this.canReorder!==D.canReorder&&this.set("data.canReorder",D.canReorder);D&&D.contents&&(this.set("data.contents",D.contents),this.isReloading=!1);D&&D.continuations&&this.set("data.continuations",D.continuations)};
_.S.handleAddRendererToItemSectionAction=function(D){var C,X=(C=_.r(D,lGB))==null?void 0:C.renderer,c;X&&((c=_.r(D,lGB))==null?void 0:c.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,X),D=_.iX().resolve(_.vK(_.zf)),_.b("web_enable_voting_animation")&&D&&(X&&(C=_.Ckt(X))&&D.recommendedVideos.push({itemId:C,videoId:_.oSd(X),voteCount:_.W7Z(X),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.S.isVotingEnabledOnPlaylist=function(D){if(!D)return!1;D=_.U(D);for(D=D.next();!D.done;D=D.next()){var C=void 0;return!!_.r((C=D.value.playlistVideoRenderer)==null?void 0:C.engagementBar,_.XsR)}return!1};
_.S.onAppendContinuationItemsActionFinished=function(){var D;this.isVotingEnabledOnPlaylist((D=this.data)==null?void 0:D.contents)&&(this.updateIndices(),D=_.iX().resolve(_.vK(_.zf)),_.b("web_enable_voting_animation")&&D&&this.data&&D.addVideos(this.data.contents))};
_.S.updateVideoData=function(D){if(D.detail&&this.data&&this.data.contents){var C=D.detail;D=C.toIdx;var X=C.itemId,c=C.newVoteCount,W=C.voteStatus;C=C.hideItem;var p,g,a=(p=this.data)==null?void 0:(g=p.contents)==null?void 0:g.findIndex(function(u){return _.Ckt(u)===X});
if(!(a<0)){p=this.data.contents[a];var O;if((O=p.playlistVideoRenderer)==null?0:O.voteCount)p.playlistVideoRenderer.voteCount=c;var P;if(O=_.r((P=p.playlistVideoRenderer)==null?void 0:P.engagementBar,_.XsR)){var k;(k=O.actions)==null||k.forEach(function(u){(u=_.r(u,_.cOm))&&u.initialState&&(u.initialState.votes=c,u.initialState.status=W)})}this.data.contents.splice(a,1);
C||this.data.contents.splice(D,0,p);this.updateIndices()}}};
dm.prototype.updateVideoData=dm.prototype.updateVideoData;dm.prototype.onAppendContinuationItemsActionFinished=dm.prototype.onAppendContinuationItemsActionFinished;dm.prototype.onUpdateSetVideoId=dm.prototype.onUpdateSetVideoId;dm.prototype.onPlaylistReloading=dm.prototype.onPlaylistReloading;dm.prototype.onRendererstamperFinished=dm.prototype.onRendererstamperFinished;dm.prototype.dataChanged=dm.prototype.dataChanged;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],dm.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.L3.YtNextContinuationBehavior),_.z("design:type",Object)],dm.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.m(_.xA),_.z("design:type",Object)],dm.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],dm.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dm.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],dm.prototype,"isReloading",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dm.prototype,"isSegment",void 0);
_.V([_.n({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.z("design:type",Boolean)],dm.prototype,"isSortable",void 0);_.V([_.n({computed:"computeIsEditable(data.isEditable)"}),_.z("design:type",Boolean)],dm.prototype,"isEditable",void 0);_.V([_.n({computed:"computeCanReorder(data.canReorder)"}),_.z("design:type",Boolean)],dm.prototype,"canReorder",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dm.prototype,"dataChanged",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dm.prototype,"onRendererstamperFinished",null);_.V([_.$n("yt-playlist-reloading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dm.prototype,"onPlaylistReloading",null);
_.V([_.$n("yt-update-set-video-id"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dm.prototype,"onUpdateSetVideoId",null);_.V([_.$n("yt-append-continuation-items-action-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dm.prototype,"onAppendContinuationItemsActionFinished",null);
_.V([_.$n("yt-update-video-data-voting-animation"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dm.prototype,"updateVideoData",null);_.V([_.yj({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],dm);
_.G(dm,"ytd-playlist-video-list-renderer",function(){if(bfU!==void 0)return bfU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bfU=D},{mode:_.Wc("kevlar_poly_si_batch_j047")?1:2});var r2U;var Rg=function(){return _.w.apply(this,arguments)||this};
_.h(Rg,_.w);Rg.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"}}}}};
Rg.prototype.onTextWrapperTap=function(D){var C=this.data&&this.data.navigationEndpoint;C&&!_.d$(_.Mz(D),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.lE(this.hostElement,"yt-navigate",{endpoint:C})};
Rg.prototype.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");D&&D.commandMetadata&&_.r(D.commandMetadata,_.dY)&&_.r(D.commandMetadata,_.dY).fireAutomatically&&_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})};
Rg.prototype.dataChanged=Rg.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.B9),_.z("design:type",Object)],Rg.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],Rg.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],Rg.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Rg.prototype,"leftAligned",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rg.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Rg);
_.G(Rg,"ytd-movie-renderer",function(){if(r2U!==void 0)return r2U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return r2U=D},{mode:1});var KzH;var lL=function(){var D=_.w.apply(this,arguments)||this;D.rounded=!0;D.pageAttachedTo=void 0;D.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return D};
_.h(lL,_.w);lL.prototype.attached=function(){this.pageAttachedTo=_.iX().resolve(_.lu).getCurrentPage();_.lE(this.hostElement,"yt-player-attached",this.player)};
lL.prototype.detached=function(){var D;if((D=this.pageAttachedTo)==null?0:D.hostElement)_.lE(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
lL.prototype.dataChanged=function(){var D;if((D=this.data)==null?0:D.videoId)D={video_id:this.data.videoId,autoplay:!0},!_.b("miniplayer_stop_channel_video_autoplay_killswitch")&&_.iX().resolve(_.wB).isMiniplayerActive()&&(D.pause_at_start=!0,D.autoplay=!1),this.player.loadVideoWithPlayerVars(D)};
lL.prototype.handleSignalActionPausePlayer=function(){_.Xv().pause()};
lL.prototype.dataChanged=lL.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],lL.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],lL.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],lL.prototype,"rounded",void 0);_.V([_.kn("#player"),_.z("design:type",Object)],lL.prototype,"player",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lL.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],lL);
_.G(lL,"ytd-channel-video-player-renderer",function(){if(KzH!==void 0)return KzH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return KzH=D},{mode:1});var hvj;var xJd;var LzJ;var DL=function(){var D=_.w.apply(this,arguments)||this;D.playing=!1;D.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.fh(D);D.active=!1;return D};
_.h(DL,_.w);_.S=DL.prototype;_.S.detached=function(){this.stop()};
_.S.play=function(){var D=this,C,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return D.active=!0,C=D.get("data.inlinePlaybackEndpoint.watchEndpoint"),X=C.videoId||D.data.videoId,c=C.startTimeSeconds||0,W=C.playerParams||null,_.b("kevlar_player_update_killswitch")?g.yield(D.playerEl.update({args:{video_id:X,startSeconds:c,player_params:W}}),2):(D.playerEl.loadVideoWithPlayerVars({video_id:X,startSeconds:c,player_params:W,autoplay:!0}),g.jumpTo(2));if(g.nextAddress!=4)return g.yield(D.playerEl.getPlayerPromise(),
4);p=g.yieldResult;p.unloadModule("annotations_module");p.addEventListener("onStateChange",function(a){D.onPlayerStateChange(a)});
_.t_(g)})};
_.S.onPlayerStateChange=function(D){if(this.active)switch(this.playing=D===1,D){case 1:_.lE(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.lE(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.S.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.S.resize=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D.playerEl.getPlayerPromise(),2);C=X.yieldResult;C.setSize(NaN,NaN);_.t_(X)})};
_.V([_.n(),_.z("design:type",Object)],DL.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],DL.prototype,"playing",void 0);_.V([_.n(),_.z("design:type",Object)],DL.prototype,"playerId",void 0);_.V([_.kn("#player"),_.z("design:type",Object)],DL.prototype,"playerEl",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],DL);
_.G(DL,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(LzJ!==void 0)return LzJ;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return LzJ=D},{mode:1});var sHm;var mJd;var C8=function(){var D=_.w.apply(this,arguments)||this;D.width=0;return D};
_.h(C8,_.w);_.S=C8.prototype;_.S.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Pr(this,this.onEnded));this.mp4El.addEventListener("error",_.Pr(this,this.onError))};
_.S.detached=function(){this.videoEl.removeEventListener("ended",_.Pr(this,this.onEnded));this.mp4El.removeEventListener("error",_.Pr(this,this.onError))};
_.S.play=function(){var D=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var C=this.videoEl.play();C?C.then(function(){D.handleVideoStartPlaying()}).catch(function(){_.lE(D.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.lE(this.hostElement,"yt-video-thumbnail-not-playing")};
_.S.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.S.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.S.dataChanged=function(){var D;if((D=this.data)==null?0:D.thumbnailPlaceholder)D=_.XA(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+D+")";this.stop();this.autoplay&&this.play()};
_.S.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.S.onEnded=function(){this.stop();_.lE(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.S.onError=function(){_.lE(this.hostElement,"yt-video-thumbnail-error")};
_.S.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.S.getVideoThumbnail=function(D){if(D&&D.length)return D[0]};
C8.prototype.dataChanged=C8.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],C8.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],C8.prototype,"animatePlaceholderOnEntrance",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],C8.prototype,"autoplay",void 0);_.V([_.n({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.z("design:type",Object)],C8.prototype,"videoThumbnail",void 0);
_.V([_.n(),_.z("design:type",Boolean)],C8.prototype,"loop",void 0);_.V([_.n(),_.z("design:type",Boolean)],C8.prototype,"isVideoPlaying",void 0);_.V([_.n(),_.z("design:type",Object)],C8.prototype,"width",void 0);_.V([_.kn("#mp4"),_.z("design:type",HTMLElement)],C8.prototype,"mp4El",void 0);_.V([_.kn("#placeholder"),_.z("design:type",HTMLElement)],C8.prototype,"placeholderEl",void 0);_.V([_.kn("#video"),_.z("design:type",HTMLVideoElement)],C8.prototype,"videoEl",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C8.prototype,"dataChanged",null);_.V([_.Yn({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],C8);
_.G(C8,"yt-video-as-thumbnail-details",function(){if(mJd===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;sHm===void 0&&(sHm=document.createElement("template"));var c=sHm;X.call(C,c.content.cloneNode(!0),D.content.firstChild);mJd=D}D=mJd;return D},{mode:2});var Xy=function(){var D=_.w.apply(this,arguments)||this;D.disableGridStateAware=!1;D.animationEnabled=_.b("enable_web_ketchup_hero_animation");D.transitioningOut=!1;D.narrow=!1;D.narrower=!1;D.isCarouselInFeed=!1;D.videoTimeoutJobId=0;D.panelTimeoutJobId=0;D.panelTimeoutJobStartMs=0;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.h(Xy,_.w);_.S=Xy.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.S.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.S.attached=function(){this.onWindowResized()};
_.S.detached=function(){this.clearTimeouts()};
_.S.onWindowResized=function(){this.updateSize()};
_.S.computePanelLayout=function(D){return D&&D.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.S.playVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.play();var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.play()};
_.S.stopVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.stop();var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.stop()};
_.S.transitionOut=function(){var D=this;this.transitioningOut=!0;return new Promise(function(C){var X=function(){_.SY(D.hostElement).querySelector("#action-button").removeEventListener("animationend",X);_.qX.cancelJob(c);C();D.transitioningOut=!1};
var c=_.Zo(_.qX,X,1E3);_.SY(D.hostElement).querySelector("#action-button").addEventListener("animationend",X);D.player&&(D.player.playing=!1)})};
_.S.computeMetadataOrder=function(D){return D&&D.metadataOrder&&D.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?D.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.S.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.S.computeAvatarSize=function(D){return D&&D.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.S.onContentClick=function(D){if(!_.d$(_.Mz(D),this.hostElement,["A".toString(),"BUTTON".toString()])){var C;if((C=this.data)==null?0:C.navigationEndpoint){var X;this.componentBehavior.resolveCommand((X=this.data)==null?void 0:X.navigationEndpoint)}}};
_.S.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.S.setBackgroundImage=function(D){if(D=this.getBackgroundImageUrl(D))_.SY(this.hostElement).querySelector("#hero").style.backgroundImage="url("+D+")"};
_.S.setScrimLayer=function(D){var C=this.getScrimLayerColorStops(D);D=((D==null?void 0:D.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(D=180);_.q6("HTML_DIR")==="rtl"&&(D=-D);C&&(_.SY(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+D+"deg, "+C+")")};
_.S.isNarrower=function(){return this.hostElement.clientWidth<Xy.NARROW_VERSION_SIZE};
_.S.getScrimLayerColorStops=function(){var D,C=(D=this.data)==null?void 0:D.scrimColorValues;if(!C)return null;if(C.length===1)return D=_.e_(C[0]),D+" 0%, "+D+" 100%";if(C.length===3){var X=[0,72,98];return C.map(function(c,W){return _.e_(c)+" "+X[W]+"%"}).join(",")}return null};
_.S.getBackgroundImageUrl=function(D){return D&&D.largeFormFactorBackgroundThumbnail?_.XA((D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.S.onPlaying=function(){this.startVideoTimeout()};
_.S.onEnded=function(){this.rotate()};
_.S.startPanelTimeout=function(){var D=this;if(!this.panelTimeoutJobId){var C=this.get("data.minPanelDisplayDurationMs");C&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Zo(_.qX,function(){D.rotate()},C))}};
_.S.startVideoTimeout=function(){var D=this;if(!this.videoTimeoutJobId){_.qX.cancelJob(this.panelTimeoutJobId);var C=Date.now()-this.panelTimeoutJobStartMs;C=Math.max(0,this.get("data.minPanelDisplayDurationMs")-C);C=Math.max(this.get("data.minVideoPlayDurationMs")||0,C);this.videoTimeoutJobId=_.Zo(_.qX,function(){D.rotate()},C)}};
_.S.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.qX.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.qX.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.S.rotate=function(){this.clearTimeouts();_.lE(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.$a.Object.defineProperties(Xy.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.SY(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.SY(this.hostElement).querySelector("#video")}}});
_.$a.Object.defineProperties(Xy,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Xy.prototype.onEnded=Xy.prototype.onEnded;Xy.prototype.onPlaying=Xy.prototype.onPlaying;Xy.prototype.dataChanged=Xy.prototype.dataChanged;_.V([_.m(_.v9),_.z("design:type",Object)],Xy.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Xy.prototype,"componentBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Xy.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.m(_.O1P),_.z("design:type",Object)],Xy.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Xy.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"disableGridStateAware",void 0);_.V([_.n(),_.z("design:type",Object)],Xy.prototype,"data",void 0);_.V([_.n({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.z("design:type",String)],Xy.prototype,"panelLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"animationEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"transitioningOut",void 0);
_.V([_.n({computed:"computeMetadataOrder(data)"}),_.z("design:type",Boolean)],Xy.prototype,"metadataOrder",void 0);_.V([_.n({computed:"computeByline(data)"}),_.z("design:type",Object)],Xy.prototype,"byline",void 0);_.V([_.n({computed:"computeAvatarSize(data)"}),_.z("design:type",Number)],Xy.prototype,"avatarSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"narrow",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"narrower",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"layoutStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Xy.prototype,"isCarouselInFeed",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xy.prototype,"dataChanged",null);_.V([_.$n("yt-default-promo-panel-renderer-playing"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xy.prototype,"onPlaying",null);
_.V([_.$n("yt-default-promo-panel-renderer-ended"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xy.prototype,"onEnded",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Xy);
_.G(Xy,"ytd-default-promo-panel-renderer",function(){if(xJd!==void 0)return xJd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return xJd=D},{mode:1});_.sI("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var cs=function(){var D=_.w.apply(this,arguments)||this;D.narrower=!1;D.dotMenuVisible=!1;D.paginationThumbnailsVisible=!1;D.active=!0;D.disableGridStateAware=!1;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.h(cs,_.w);_.S=cs.prototype;_.S.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]]"}}}}}};
_.S.attached=function(){document.addEventListener("yt-page-type-changed",_.Pr(this,this.onPageTypeChange));this.currentPageSubtype=_.ceJ(location.pathname);this.onWindowResized()};
_.S.detached=function(){this.jobId&&_.qX.cancelJob(this.jobId);this.updateSizeJobId&&_.qX.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Pr(this,this.onPageTypeChange))};
_.S.onPageTypeChange=function(D){this.active=D.detail.newPageSubtype===this.currentPageSubtype};
_.S.onWindowResized=function(){this.updateSize()};
_.S.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.S.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.S.setCarouselItem=function(D){D>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.qX.cancelJob(this.jobId);var C=this.getCurrentPanelElement();C&&C.stopVideo();this.currentItemIndex=D%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(C||(C=this.getCurrentPanelElement()),C.playVideo()):this.startRotationJob()};
_.S.scrollThumbnails=function(D){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var C=this.getCurrentPaginationElement();if(C){var X=_.SY(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?X.style.transform="translateX(0)":(C=C.offsetWidth+8,X.style.transform="translateX(-"+C*(D-Math.ceil(Math.floor(this.overlay.offsetWidth/C)/2)+1)+"px)")}}};
_.S.onDataChanged=function(){var D=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.$w(_.qX,function(){var C;(C=D.getCurrentPanelElement())==null||C.updateSize();D.updateSize()}))};
_.S.getCurrentPanelElement=function(){return _.SY(_.SY(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.S.getCurrentPaginationElement=function(){return _.SY(_.SY(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.S.getNavigationClass=function(D,C){return D===C?"selected":""};
_.S.getNavigationDurationStyle=function(D){return"animation-duration:"+(this.get("data.carouselItems."+D+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.S.onNavigationTap=function(D){var C=this,X=D.model.index;X!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){C.setCarouselItem(X)}),this.autorotateActive=!1)};
_.S.onVideoThumbnailEnded=function(){var D=this;if(this.shouldRotate()){var C=this.getCurrentPaginationElement();C&&(C.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){C.classList.remove("finished");D.setNextCarouselItem()}))}};
_.S.onVideoThumbnailError=function(){this.startRotationJob()};
_.S.onVideoNotPlaying=function(){this.startRotationJob()};
_.S.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.S.startRotationJob=function(){var D=this;_.qX.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.qX.addLowPriorityJob(function(){D.getCurrentPanelElement().transitionOut().then(function(){D.setNextCarouselItem()})},this.rotationTimeout))};
_.S.computeDotMenuVisible=function(D,C){return!!D&&!!D.carouselItems&&D.carouselItems.length>1&&!D.paginationThumbnails||!!C};
_.S.computePaginationThumbnailsVisible=function(D,C){var X,c;return((c=D==null?void 0:(X=D.paginationThumbnails)==null?void 0:X.length)!=null?c:0)>1&&!C};
_.S.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.S.computePaginatorAlignment=function(D){return(D==null?void 0:D.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.S.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.S.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.S.isNarrower=function(D){return(D!=null?D:0)<Xy.NARROW_VERSION_SIZE};
cs.prototype.activeChanged=cs.prototype.activeChanged;cs.prototype.onVideoNotPlaying=cs.prototype.onVideoNotPlaying;cs.prototype.onVideoThumbnailError=cs.prototype.onVideoThumbnailError;cs.prototype.onVideoThumbnailEnded=cs.prototype.onVideoThumbnailEnded;cs.prototype.onDataChanged=cs.prototype.onDataChanged;_.V([_.m(_.v9),_.z("design:type",Object)],cs.prototype,"ytdGridStateAwareBehavior",void 0);
_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],cs.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],cs.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],cs.prototype,"currentItem",void 0);
_.V([_.n(),_.z("design:type",Number)],cs.prototype,"currentItemIndex",void 0);_.V([_.n(),_.z("design:type",Number)],cs.prototype,"rotationTimeout",void 0);_.V([_.n(),_.z("design:type",Number)],cs.prototype,"loopCount",void 0);_.V([_.n({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.z("design:type",String)],cs.prototype,"paginatorAlignment",void 0);_.V([_.n(),_.z("design:type",Number)],cs.prototype,"jobId",void 0);
_.V([_.n(),_.z("design:type",Number)],cs.prototype,"updateSizeJobId",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],cs.prototype,"isCarouselInFeed",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],cs.prototype,"narrower",void 0);_.V([_.n({computed:"computeDotMenuVisible(data, narrower)"}),_.z("design:type",Object)],cs.prototype,"dotMenuVisible",void 0);
_.V([_.n({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.z("design:type",Object)],cs.prototype,"paginationThumbnailsVisible",void 0);_.V([_.n({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.z("design:type",String)],cs.prototype,"layoutType",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],cs.prototype,"autorotateActive",void 0);_.V([_.n(),_.z("design:type",Object)],cs.prototype,"active",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],cs.prototype,"disableGridStateAware",void 0);_.V([_.kn("#overlay"),_.z("design:type",HTMLElement)],cs.prototype,"overlay",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cs.prototype,"onDataChanged",null);
_.V([_.$n("yt-video-thumbnail-ended"),_.$n("yt-default-promo-panel-renderer-rotate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cs.prototype,"onVideoThumbnailEnded",null);_.V([_.$n("yt-video-thumbnail-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cs.prototype,"onVideoThumbnailError",null);
_.V([_.$n("yt-video-thumbnail-not-playing"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cs.prototype,"onVideoNotPlaying",null);_.V([_.bH("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cs.prototype,"activeChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],cs);
_.G(cs,"ytd-carousel-item-renderer",function(){if(hvj!==void 0)return hvj;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return hvj=D},{mode:2});var evf;var ENU;var tDv;var Njf;var oO=function(){var D=_.w.apply(this,arguments)||this;D.originalQuery=null;D.originalEndpoint=null;return D};
_.h(oO,_.w);oO.prototype.computeShowOriginalQueryWithoutEndpoint_=function(D,C){return!(!D||C)};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],oO.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oO.prototype,"correctedText",void 0);_.V([_.n(),_.z("design:type",Object)],oO.prototype,"correctedQuery",void 0);_.V([_.n(),_.z("design:type",Object)],oO.prototype,"correctedEndpoint",void 0);_.V([_.n(),_.z("design:type",Object)],oO.prototype,"originalText",void 0);_.V([_.n(),_.z("design:type",Object)],oO.prototype,"originalQuery",void 0);
_.V([_.n(),_.z("design:type",Object)],oO.prototype,"originalEndpoint",void 0);_.V([_.n({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.z("design:type",Boolean)],oO.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.V([_.Yn({is:"yt-search-query-correction",disableElementRegistration:!0})],oO);
_.G(oO,"yt-search-query-correction",function(){if(Njf===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;tDv===void 0&&(tDv=document.createElement("template"));var c=tDv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Njf=D}D=Njf;return D},{mode:2});_.sI("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var YBJ=function(){return _.w.apply(this,arguments)||this};
_.h(YBJ,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YBJ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],YBJ.prototype,"data",void 0);_.V([_.Yn({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],YBJ);
_.G(YBJ,"yt-did-you-mean-renderer",function(){if(ENU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;evf===void 0&&(evf=document.createElement("template"));var c=evf;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ENU=D}D=ENU;return D},{mode:2});var y2d;var nNN;_.sI("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var wvm=function(){return _.w.apply(this,arguments)||this};
_.h(wvm,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wvm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wvm.prototype,"data",void 0);_.V([_.Yn({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],wvm);
_.G(wvm,"yt-including-results-for-renderer",function(){if(nNN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;y2d===void 0&&(y2d=document.createElement("template"));var c=y2d;X.call(C,c.content.cloneNode(!0),D.content.firstChild);nNN=D}D=nNN;return D},{mode:2});var Fzj;var ZfB;_.sI("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Ws=function(){return _.w.apply(this,arguments)||this};
_.h(Ws,_.w);Ws.prototype.computeExtraClasses_=function(D,C){var X="";D&&(X+=" "+D.toLowerCase().replace(/_/g,"-"));C&&(X+=" "+C.toLowerCase().replace(/_/g,"-"));return X};
Ws.prototype.computeUrlImg_=function(){var D=this.data;D.image&&(_.SY(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.XA(D.image.thumbnails,Number.MAX_VALUE)+")")};
Ws.prototype.computeUrlImg_=Ws.prototype.computeUrlImg_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ws.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ws.prototype,"computeUrlImg_",null);_.V([_.Yn({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Ws);
_.G(Ws,"yt-music-pass-feature-info-renderer",function(){if(ZfB===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Fzj===void 0&&(Fzj=document.createElement("template"));var c=Fzj;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ZfB=D}D=ZfB;return D},{mode:2});var Gdv;var VDv;_.sI("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var TjH=function(){return _.w.apply(this,arguments)||this};
_.h(TjH,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],TjH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TjH.prototype,"data",void 0);_.V([_.Yn({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],TjH);
_.G(TjH,"yt-no-results-found-showing-results-for-renderer",function(){if(VDv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Gdv===void 0&&(Gdv=document.createElement("template"));var c=Gdv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);VDv=D}D=VDv;return D},{mode:2});var HfU;var J2B;_.sI("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var zvN=function(){return _.w.apply(this,arguments)||this};
_.h(zvN,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zvN.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zvN.prototype,"data",void 0);_.V([_.Yn({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],zvN);
_.G(zvN,"yt-results-without-quotes-renderer",function(){if(J2B===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;HfU===void 0&&(HfU=document.createElement("template"));var c=HfU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);J2B=D}D=J2B;return D},{mode:2});var jH2;var MD$;_.sI("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var qB2=function(){return _.w.apply(this,arguments)||this};
_.h(qB2,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qB2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qB2.prototype,"data",void 0);_.V([_.Yn({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],qB2);
_.G(qB2,"yt-search-no-results-renderer",function(){if(MD$===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;jH2===void 0&&(jH2=document.createElement("template"));var c=jH2;X.call(C,c.content.cloneNode(!0),D.content.firstChild);MD$=D}D=MD$;return D},{mode:2});var f6m;var dJD;_.sI("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Rvv=function(){return _.w.apply(this,arguments)||this};
_.h(Rvv,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rvv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rvv.prototype,"data",void 0);_.V([_.Yn({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Rvv);
_.G(Rvv,"yt-showing-results-for-renderer",function(){if(dJD===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;f6m===void 0&&(f6m=document.createElement("template"));var c=f6m;X.call(C,c.content.cloneNode(!0),D.content.firstChild);dJD=D}D=dJD;return D},{mode:2});var l6H;var DA6;var CGd;var XtD;var p8=function(){var D=_.w.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.h(p8,_.w);p8.prototype.toggleAnswer_=function(D){var C=_.qz(D);C&&C.classList.contains("yt-simple-endpoint")||(D.preventDefault(),D.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
p8.prototype.toggleAnswer_=p8.prototype.toggleAnswer_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],p8.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],p8.prototype,"answerExpanded",void 0);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],p8.prototype,"toggleAnswer_",null);
_.V([_.Yn({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],p8);
_.G(p8,"yt-generic-faq-question-renderer",function(){if(XtD===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;CGd===void 0&&(CGd=document.createElement("template"));var c=CGd;X.call(C,c.content.cloneNode(!0),D.content.firstChild);XtD=D}D=XtD;return D},{mode:2});_.sI("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var SA=function(){return _.w.apply(this,arguments)||this};
_.h(SA,_.w);SA.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],SA.prototype,"data",void 0);_.V([_.Yn({is:"yt-faq-section-renderer",disableElementRegistration:!0})],SA);
_.G(SA,"yt-faq-section-renderer",function(){if(DA6===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;l6H===void 0&&(l6H=document.createElement("template"));var c=l6H;X.call(C,c.content.cloneNode(!0),D.content.firstChild);DA6=D}D=DA6;return D},{mode:2});var c_v;var oFv;_.sI("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var U8=function(){return _.w.apply(this,arguments)||this};
_.h(U8,_.w);
U8.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],U8.prototype,"data",void 0);_.V([_.Yn({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],U8);
_.G(U8,"yt-offer-item-expanded-renderer",function(){if(oFv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;c_v===void 0&&(c_v=document.createElement("template"));var c=c_v;X.call(C,c.content.cloneNode(!0),D.content.firstChild);oFv=D}D=oFv;return D},{mode:2});var W$$;var ptN;_.sI("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var gf=function(){return _.w.apply(this,arguments)||this};
_.h(gf,_.w);
gf.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"}}}}};
gf.prototype.computeFullWidthMode=function(D){return!(!D||!D.fullWidthMode)};
gf.prototype.computeBorderlessMode=function(D){return!(!D||!D.borderlessMode)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gf.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.z("design:type",Boolean)],gf.prototype,"fullWidthMode",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.z("design:type",Boolean)],gf.prototype,"borderlessMode",void 0);_.V([_.Yn({is:"yt-offer-item-renderer",disableElementRegistration:!0})],gf);
_.G(gf,"yt-offer-item-renderer",function(){if(ptN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;W$$===void 0&&(W$$=document.createElement("template"));var c=W$$;X.call(C,c.content.cloneNode(!0),D.content.firstChild);ptN=D}D=ptN;return D},{mode:2});var SuU;var UAm;_.sI("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var aO=function(){return _.w.apply(this,arguments)||this};
_.h(aO,_.w);aO.prototype.computeAriaLevel_=function(D){return this.getLevelID_(D)};
aO.prototype.getLevelID_=function(D){return(D=D.match(/[0-9]+$/))&&D.length==1?D[0]:"1"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],aO.prototype,"data",void 0);_.V([_.n({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.z("design:type",String)],aO.prototype,"ariaLevel",void 0);_.V([_.n({value:"heading",reflectToAttribute:!0}),_.z("design:type",String)],aO.prototype,"role",void 0);
_.V([_.n({value:-1,reflectToAttribute:!0}),_.z("design:type",Number)],aO.prototype,"tabindex",void 0);_.V([_.Yn({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],aO);
_.G(aO,"yt-subscription-product-header-renderer",function(){if(UAm===void 0){var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;SuU===void 0&&(SuU=document.createElement("template"));var c=SuU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);UAm=D}D=UAm;return D},{mode:2});var gF6;var aNv;_.sI("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var IO=function(){return _.w.apply(this,arguments)||this};
_.h(IO,_.w);IO.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:_.ml("menuRenderer"),events:!0}}};
IO.prototype.onStampFinished_=function(){_.SY(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
IO.prototype.onStampFinished_=IO.prototype.onStampFinished_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],IO.prototype,"data",void 0);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IO.prototype,"onStampFinished_",null);
_.V([_.Yn({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],IO);
_.G(IO,"yt-subscription-product-renderer",function(){if(aNv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;gF6===void 0&&(gF6=document.createElement("template"));var c=gF6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);aNv=D}D=aNv;return D},{mode:2});var INz;var OKf;_.sI("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var O8=function(){return _.w.apply(this,arguments)||this};
_.h(O8,_.w);O8.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
O8.prototype.imageScrimColorValuesChanged_=function(){var D,C=(D=this.data)==null?void 0:D.imageScrimColorValues;_.SY(this.hostElement).querySelector("#scrim").style.backgroundColor=C?_.e_(C[0]):"transparent"};
O8.prototype.imageScrimColorValuesChanged_=O8.prototype.imageScrimColorValuesChanged_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],O8.prototype,"data",void 0);
_.V([_.vr("data.imageScrimColorValues"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O8.prototype,"imageScrimColorValuesChanged_",null);_.V([_.Yn({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],O8);
_.G(O8,"yt-subscription-product-upsell-offer-renderer",function(){if(OKf===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;INz===void 0&&(INz=document.createElement("template"));var c=INz;X.call(C,c.content.cloneNode(!0),D.content.firstChild);OKf=D}D=OKf;return D},{mode:2});var A_j;var PGU;var $Af;var vFv;var iKD;var kLH;var AO=function(){return _.w.apply(this,arguments)||this};
_.h(AO,_.w);AO.prototype.onYtServiceRequestError_=function(D){_.JG(this.hostElement,D.detail.error.message)};
AO.prototype.onYtServiceRequestError_=AO.prototype.onYtServiceRequestError_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],AO.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],AO.prototype,"collapsible",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],AO.prototype,"isManageRed",void 0);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],AO.prototype,"onYtServiceRequestError_",null);_.V([_.Yn({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],AO);
_.G(AO,"yt-single-ypc-offer-renderer",function(){if(kLH===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;iKD===void 0&&(iKD=document.createElement("template"));var c=iKD;X.call(C,c.content.cloneNode(!0),D.content.firstChild);kLH=D}D=kLH;return D},{mode:2});var Ps=function(){return _.w.apply(this,arguments)||this};
_.h(Ps,_.w);Ps.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ps.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Ps.prototype,"isManageRed",void 0);_.V([_.Yn({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Ps);
_.G(Ps,"yt-single-ypc-offer-list-renderer",function(){if(vFv===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;$Af===void 0&&($Af=document.createElement("template"));var c=$Af;X.call(C,c.content.cloneNode(!0),D.content.firstChild);vFv=D}D=vFv;return D},{mode:2});var u7f;var QGv;_.sI("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var $S=function(){return _.w.apply(this,arguments)||this};
_.h($S,_.w);$S.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$S.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],$S.prototype,"isManageRed",void 0);_.V([_.Yn({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],$S);
_.G($S,"yt-ypc-offers-list-renderer",function(){if(QGv===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;u7f===void 0&&(u7f=document.createElement("template"));var c=u7f;X.call(C,c.content.cloneNode(!0),D.content.firstChild);QGv=D}D=QGv;return D},{mode:2});_.sI("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var vs=function(){return _.w.apply(this,arguments)||this};
_.h(vs,_.w);
vs.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],vs.prototype,"data",void 0);_.V([_.Yn({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],vs);
_.G(vs,"yt-unlimited-manage-subscription-page-renderer",function(){if(PGU===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;A_j===void 0&&(A_j=document.createElement("template"));var c=A_j;X.call(C,c.content.cloneNode(!0),D.content.firstChild);PGU=D}D=PGU;return D},{mode:2});var BHm;var bKv;var ik=function(){return _.w.apply(this,arguments)||this};
_.h(ik,_.w);_.S=ik.prototype;_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.S.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.onKeypress_=function(D){D.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.S.handleHeaderTap_=function(D){D.preventDefault();D.stopPropagation();this.expandOffers_()};
_.S.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.S.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ik.prototype.dataChanged_=ik.prototype.dataChanged_;_.V([_.m(_.H8),_.z("design:type",Object)],ik.prototype,"ironA11yKeysBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ik.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ik.prototype,"offersVisible_",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ik.prototype,"dataChanged_",null);_.V([_.Yn({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ik);
_.G(ik,"yt-collapsible-ypc-offer-renderer",function(){if(bKv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;BHm===void 0&&(BHm=document.createElement("template"));var c=BHm;X.call(C,c.content.cloneNode(!0),D.content.firstChild);bKv=D}D=bKv;return D},{mode:2});var r_$;var K$$;_.sI("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var kS=function(){return _.w.apply(this,arguments)||this};
_.h(kS,_.w);_.S=kS.prototype;_.S.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.S.dataChanged_=function(){if(this.data.backgroundImage){var D=_.XA(this.data.backgroundImage.thumbnails,screen.width),C=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=C?"linear-gradient(180deg, "+C+"), url("+D+")":"url("+D+")";this.data.gtmId&&_.lP(this.data.gtmId,_.q6("GL",""))}};
_.S.onYtServiceRequestError_=function(D){_.JG(this.hostElement,D.detail.error.message)};
_.S.getScrimLayerColorStops_=function(){var D,C,X=(D=this.data.unlimitedHeaderV2Data)==null?void 0:(C=D.unlimitedHeaderV2Data)==null?void 0:C.scrimLayerColors;if(!X)return null;var c=100/X.length;return X.map(function(W,p){p*=c;return _.e_(W)+" "+p+"%"}).join(",")};
_.S.computeLogoWithPadding=function(D){var C,X,c;return(D=(C=D.unlimitedLogoImage)==null?void 0:(X=C.thumbnails)==null?void 0:(c=X[0])==null?void 0:c.height)&&D%31===0?!0:!1};
kS.prototype.onYtServiceRequestError_=kS.prototype.onYtServiceRequestError_;kS.prototype.dataChanged_=kS.prototype.dataChanged_;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.V([_.n({computed:"computeLogoWithPadding(data)"}),_.z("design:type",Boolean)],kS.prototype,"logoWithPadding",void 0);
_.V([_.n(),_.z("design:type",Object)],kS.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kS.prototype,"dataChanged_",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kS.prototype,"onYtServiceRequestError_",null);_.V([_.Yn({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],kS);
_.G(kS,"yt-unlimited-page-header-renderer",function(){if(K$$===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;r_$===void 0&&(r_$=document.createElement("template"));var c=r_$;X.call(C,c.content.cloneNode(!0),D.content.firstChild);K$$=D}D=K$$;return D},{mode:2});var hKj;var xA2;_.sI("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var uk=function(){return _.w.apply(this,arguments)||this};
_.h(uk,_.w);uk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],uk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],uk.prototype,"data",void 0);_.V([_.Yn({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],uk);
_.G(uk,"yt-unlimited-user-notification-renderer",function(){if(xA2===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;hKj===void 0&&(hKj=document.createElement("template"));var c=hKj;X.call(C,c.content.cloneNode(!0),D.content.firstChild);xA2=D}D=xA2;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var zOX,MYo,fJN,ROG,lJt,Xco;_.i7=function(D){var C=D.clientMessageId;var X=D.playerOffsetMs;var c=D.pageContext;D=D.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:C},!!X&&{playerOffsetMs:X},!!c&&{pageContext:c},!!D&&{userInputText:D})}};
_.JAX=function(D,C,X){C=C===void 0?5:C;if(C!==0){var c=typeof D==="function"?D():document.querySelector(D);c?(X==null?0:X.enableSmartFocus)?_.zGo(c):c.focus():setTimeout(function(){_.JAX(D,C-1,X)},500)}};
zOX=function(D){return String.raw.apply(String,[{raw:D}].concat(_.VB(_.MJ.apply(1,arguments).map(function(C){return C instanceof Array?C.join(""):C}))))};
MYo=function(D){var C=_.MJ.apply(1,arguments),X=C.length;if(!Array.isArray(D)||!Array.isArray(D.raw)||D.length!==D.raw.length||!_.zvg&&D===D.raw||!(_.zvg&&!_.jHc||_.YN(D))||X+1!==D.length)throw new TypeError("$");return new joP(Object.freeze({strings:Object.freeze(D),args:Object.freeze(C)}))};
_.qsN=function(D){return{continuationCommand:{token:D,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
fJN=function(){return _.MJ.apply(0,arguments).flat().filter(function(D){return D}).join(";")};
ROG=function(){return MYo(dw1,fJN.apply(null,_.VB(_.MJ.apply(0,arguments))))};
lJt=function(D,C){if(_.b("web_enable_chat_autoscroll_to_user_turn")&&D&&C)return D-4+"px"};
_.D_X=function(D,C){return _.aI(D.entities,"youchatPendingResponseEntity",C)};
_.COU=function(D){return function(C){_.fG(_.bK("youchatPendingResponseEntity",D,{entityKey:D,isPendingResponse:C}))}};
Xco=function(D){D==null||D.addEventListener("DOMLoaded",function(){D.goToAndPlay(D.totalFrames-48,!0)})};
_.$Q=function(D){this.__isSoyCss=!0;this.css=zOX.apply(null,[D.strings].concat(_.VB(D.args)))};
_.$Q.prototype.toString=function(){return this.css};
var joP=function(){_.$Q.apply(this,arguments)};
_.h(joP,_.$Q);var dw1=_.q8(["",""]);_.cvt=_.F(function(D){var C=_.Ro(D,{numberOfChips:5}).numberOfChips;return _.A("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.A(_.Zh,{each:function(){return Array(C==null?void 0:C())}},function(){return _.A("div",{class:"ytGhostChipShelfChip"})}))},"Zi");var o7t=_.F(function(D){var C=void 0,X=function(){return D.data()},c=function(){return!!_.xf(_.Km(X())).optionColor},W=_.U(_.Li(-1,void 0,"m6Iyqc")),p=W.next().value,g=W.next().value,a=function(Q){return p()===Q},O=function(Q){return X().correctAnswerIndex===Q},P=function(){return p()!==-1};
W=_.U(_.Li("",void 0,"jvMkLd"));var k=W.next().value,u=W.next().value;return _.A("yoututor-quiz-view-model",{class:_.g$("learningQuizComponentHost","learningYoututorQuizHost",D.className),style:_.P0({background:function(){return _.xf(_.Km(X())).backgroundColor}})},_.A("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},k),_.A("div",{class:"learningQuizComponentQuizContainer"},_.A("div",{class:"learningQuizComponentQuiz"},_.A("div",{class:"learningQuizComponentQuizContent"},_.A(_.v,{cond:function(){return!!X().aiGeneratedQuizLabel},
then:function(){return _.A("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.A(_.QG,{text:function(){return X().aiGeneratedQuizLabel}}))}}),_.A("div",{class:"learningQuizComponentQuizHeader"},_.A("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.A("div",{class:"learningYoututorQuizText",
style:_.P0({color:function(){return _.xf(_.Km(X())).primaryTextColor}})},_.A(_.QG,{text:function(){return X().questionHeaderText}}))))),_.A("div",{role:"group",
class:_.g$("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.A(_.Zh,{each:function(){return X().optionsData||[]}},function(Q,B){var K={};
return _.A("button",{class:_.g$("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(K.learningQuizComponentQuizHover=function(){return!P()},K.learningQuizComponentQuizOptionWithCustomColor=c,K.learningYoututorQuizOptionSelectedCorrectOutline=function(){return P()&&O(B())},K.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return p()!==X().correctAnswerIndex&&a(B())},K.learningQuizComponentQuizIncorrectShake=function(){return p()!==
X().correctAnswerIndex&&a(B())},K)),
"on:click":_.I_(function(){_.V6(_.iO(),{data:Q});if(P())return!1;g(B());u(O(B())?X().correctAnswerAriaLabel||"":X().incorrectAnswerAriaLabel||"");return!1}),
style:_.P0({background:"transparent"}),"aria-description":function(){return P()?O(B())?X().correctAnswerAriaLabel:X().incorrectAnswerAriaLabel:""},
"aria-disabled":P,el:_.fb(function(L){_.Lm(271905,L,C,function(t){C=t})}),
"client-ve-type":271905},_.A("div",{class:"learningQuizComponentQuizOptionContainer"},_.A(_.QG,{text:Q.optionText}),_.A(_.v,{cond:function(){var L=B();return P()&&(a(L)||O(L))},
then:function(){var L={};return _.A(_.$_,{className:_.g$("learningYoututorQuizOptionIcon",(L.learningQuizComponentQuizPulse=function(){return p()===X().correctAnswerIndex&&O(B())},L)),
size:24,icon:function(){return O(B())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.A(_.v,{cond:P,
then:function(){return _.A("div",{class:"learningYoututorQuizExplanationContainer"},_.A("div",{class:"learningYoututorQuizExplanationText"},_.A(_.QG,{text:function(){return X().explanationHeaderText}})),_.A(_.QG,{text:function(){return X().optionsData[p()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"$i");
o7t.idomCompat=!0;var Wp6=_.F(function(D){var C=D.thumbsUp,X=D.thumbsDown,c=D.rightAlignThumbs;D=_.U(_.Li(!1,void 0,"OxPsH"));var W=D.next().value,p=D.next().value;D=_.U(_.Li(!1,void 0,"V5vWne"));var g=D.next().value,a=D.next().value;D={};return _.A("div",{class:_.g$("ytwThumbsUpDownThumbs",(D.ytwThumbsUpDownRightAlign=function(){return c==null?void 0:c()},D))},_.A(_.o1,{data:C,
onToggle:function(O){p(O);g()&&a(!1)},
buttonShapeOverrides:function(){return{toggled:W()}}}),_.A(_.o1,{data:X,
onToggle:function(O){a(O);W()&&p(!1)},
buttonShapeOverrides:function(){return{toggled:g()}}}))},"aj");
Wp6.idomCompat=!0;var S4w=_.F(function(D){var C=function(){return D.data().pendingStateEntityKey||""},X=_.ku(_.D_X,C),c=function(){var a;
if(!(a=D.disabled())){var O;a=!((O=X())==null||!O.isPendingResponse)}return a},W=_.U(_.Li(ROG(""),void 0,"Q6q6y")),p=W.next().value,g=W.next().value;
_.H2(function(){requestAnimationFrame(function(){var a=D.data().onShowAnimationMs||0;a=a>0?ROG("--chip-animation-duration: "+a+"ms;"):ROG("");g(a)})});
return _.A("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:p},_.A(_.Zh,{each:function(){return D.data().chipData||[]},
keyBy:"REFERENCE"},function(a){return _.A(pc3,{data:a,disabled:c,pendingStateKey:C,onError:D.onError})}))},"cj"),pc3=_.F(function(D){var C=_.IX("button"),X=_.U(_.Li(!0,void 0,"baSFEf")),c=X.next().value,W=X.next().value,p=function(){return D.data().text.content},g=function(){return D.data().transparentWhenLoading},a=_.uu(_.TU.currentPageSubTypeSelector),O=function(){var k;
return(k=_.iX().resolve(_.vK(_.an)))==null?void 0:_.SFG(k,a())},P=_.I_(function(k){var u,Q,B,K,L,t,Y,y;
return _.I(function(J){switch(J.nextAddress){case 1:k.stopPropagation();if(D.disabled())return J.return();Q=String(Math.floor(((u=_.AG())==null?void 0:u.getCurrentTime())||0)*1E3);B="youchat-"+Date.now();K=function(){_.yK(D.data().onClick||{});var T=_.qsN(D.data().continuation),H=_.i7({clientMessageId:B,playerOffsetMs:Q,pageContext:O()});return new Promise(function(q,R){_.yK(T,{form:{formData:H},commandController:{onSuccess:function(ph,Om){q(Om)},
onServerError:function(ph,Om){R(Om.error)}}})})};
L=_.COU(D.pendingStateKey());L(!0);_.JAX("#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");W(!1);_.KK(J,2);return J.yield(K(),4);case 4:_.SR(J,3);break;case 2:t=_.Eu(J),(y=(Y=D).onError)==null||y.call(Y,t);case 3:L(!1),_.t_(J)}})});
return _.A(_.v,{cond:c,then:function(){return _.A("div",{class:"ytwYouChatChipsDataChipWrapper"},_.A("button",{el:C,class:"ytwYouChatChipsDataChip","data-disabled":D.disabled,"data-transparent-loading":g,"on:click":P,tabindex:0},p))}})},"dj");var U_6=_.F(function(D){var C=D.data;var X=D.initiallyExpanded;var c=function(){var P;return(P=C().conversationResourceData)==null?void 0:P.learningGuideData};
D=_.U(_.d2(function(){var P;return(P=X==null?void 0:X())!=null?P:!1}));
var W=D.next().value,p=D.next().value,g=function(){p(!0)},a=_.tw(function(){var P,k;
return(k=(P=c())==null?void 0:P.sections)!=null?k:[]},void 0,"QxyRyf"),O=_.tw(function(){return a().length>4},void 0,"MEbwoe");
D=_.tw(function(){var P;return!W()&&O()&&(P=c())!=null&&P.expandButton?a().slice(0,4):a()},void 0,"hIE70b");
return _.A("yt-conversation-resource-view-model",{class:_.g$("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.A(_.BX,{data:D},{expandableMetadataViewModel:_.O7G}),_.A(_.v,{cond:function(){return O()&&!W()},
then:function(){return _.A("div",{id:"showMoreButton"},_.A(_.BX,{data:function(){var P;return(P=c())==null?void 0:P.expandButton}},{buttonViewModel:function(P){return _.A(_.Ze,{data:P.data,
onClick:g})}}))}}))},"ej");_.g76=_.F(function(D){var C=function(){var y;return(y=D.data().text)==null?void 0:y.content},X=function(){var y,J;
return(y=D.data().webData)==null?void 0:(J=y.textResult)==null?void 0:J.content},c=_.iX().resolve(_.z2),W=_.PX(),p=function(){return D.data().chatResponseStyle},g=function(){return!D.data().transparentBackground},a=function(){return D.data().rightAlignThumbs},O=function(){return D.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||D.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},P=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:O()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:D.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},k=function(){var y;
return D.data().webData||((y=D.data().text)==null?void 0:y.content)||D.data().videoResultsData||D.data().conversationResourceViewModel||D.data().quiz||D.data().yoututorQuiz||D.data().richContent},u=function(){return!!D.data().sectionHeader||k()},Q=function(){var y;
return(y=D.data().videoResultsData)==null?void 0:y.videoShelf},B=function(){var y;
return(y=D.data().webData)==null?void 0:y.sourcesShelf},K=function(){return p()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||p()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:D.data().thumbsDownViewModel&&D.data().thumbsUpViewModel},L=function(){return _.r(D.data().thumbsUpViewModel,_.us)},t=function(){return _.r(D.data().thumbsDownViewModel,_.us)};
_.H2(function(){requestAnimationFrame(function(){var y;(y=D.shouldAnimateIcon)!=null&&y.call(D)&&Xco(W.lottieEl)})});
var Y={};return _.A("you-chat-item-view-model",{class:_.g$("ytwYouChatItemViewModelYouChatItemViewModel",(Y.ytwYouChatItemViewModelColumnLayout=function(){return O()},Y)),
style:_.P0({"min-height":function(){var y,J;return lJt((y=D.containerHeight)==null?void 0:y.call(D),(J=D.isLastItem)==null?void 0:J.call(D))}}),
"data-target-id":function(){return D.data().id||""}},_.A(_.v,{cond:function(){return D.data().removeIcon?!1:u()},
then:function(){var y={};return _.A("div",{"aria-hidden":"true"},_.A(_.zl,{className:_.g$("ytwYouChatItemViewModelIcon",(y.ytwYouChatItemViewModelRtl=c==="rtl",y.ytwYouChatItemViewModelHidden=function(){return!(D.data().hideIcon||p()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||p()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:u())},y)),
animationName:"YOUCHAT_ICON",data:P,animationRef:W}))}}),_.A(_.v,{cond:u,
then:function(){var y={};return _.A("div",{class:_.g$("ytwYouChatItemViewModelHost",(y.ytwYouChatItemViewModelHostNoPadding=function(){return!!D.data().sectionHeader&&!k()},y.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return p()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return p()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return p()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
y.ytwYouChatItemViewModelGradientBackground=g,y.ytwYouChatItemViewModelHostAlignStart=function(){return!O()},y.ytwYouChatItemViewModelHostDefaultFlex=function(){return!O()},y)),
role:"alert"},_.A(_.v,{cond:C,then:function(J){return _.A(_.xe,{text:J,wrapCodeBlocks:!0})}}),_.A(_.BX,{data:function(){return D.data().sectionHeader}},{sectionHeaderViewModel:function(J){var T={};
return _.A(_.dM,{data:J.data,className:_.g$("ytwYouChatItemViewModelSectionHeader",(T.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!D.data().sectionHeader&&!k()},T)),
forceSmallLayout:!0})}}),_.A(_.v,{cond:X,
then:function(J){return _.A(_.xe,{text:J,wrapCodeBlocks:!0})}}),_.A(_.v,{cond:Q,
then:function(){return _.A("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.A(_.BX,{data:function(){var J;return(J=D.data().videoResultsData)==null?void 0:J.videoShelf}},{horizontalShelfViewModel:function(J){return _.A(_.KZ,{data:J.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.A(_.v,{cond:B,
then:function(){return _.A("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.A(_.BX,{data:function(){var J;return(J=D.data().webData)==null?void 0:J.sourcesShelf}},{horizontalShelfViewModel:function(J){return _.A(_.KZ,{data:J.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.A(_.BX,{data:function(){return D.data().conversationResourceViewModel}},{conversationResourceViewModel:U_6}),_.A(_.BX,{data:function(){return D.data().quiz}},{learningJourneyQuizViewModel:_.MEd}),_.A(_.BX,{data:function(){return D.data().yoututorQuiz}},{yoututorQuizViewModel:o7t}),_.A(_.BX,{data:function(){return D.data().richContent}},{cardViewModel:_.zn1,
linearLayoutViewModel:_.bM}),_.A(_.v,{cond:K,then:function(){return _.A(Wp6,{thumbsUp:L,thumbsDown:t,rightAlignThumbs:a})}}))}}),_.A(_.v,{cond:function(){return D.data().chipsData},
then:function(y){return _.A(S4w,{data:y,disabled:D.pending,onError:D.onError})}}))},"gj");
_.g76.idomCompat={callbacks:{onError:!0,onSend:!0}};_.aRG=_.F(function(D){var C=function(){return D.data().choiceSelectedText},X=function(){return D.data().hasGradientBackground},c={};
return _.A("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.P0({"min-height":function(){var W,p;return lJt((W=D.containerHeight)==null?void 0:W.call(D),(p=D.isLastItem)==null?void 0:p.call(D))}}),
"data-target-id":function(){var W;return(W=D.data().itemTargetId)!=null?W:""}},_.A(_.v,{cond:C,
then:function(){return _.A("div",{class:"ytYouChatUserTurnChoiceSelected"},_.A(_.QG,{text:C}))}}),_.A("div",{class:_.g$("ytYouChatUserTurnUserMessage",(c.ytYouChatUserTurnGradientContainer=X,c.ytYouChatUserTurnDefaultContainer=function(){return!X()},c))},function(){return D.data().text}))},"hj");_.IRG=_.F(function(D){var C=function(){var g;return((g=D.data)==null?void 0:g.call(D).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},X=_.PX(),c=_.iX().resolve(_.z2);
_.H2(function(){requestAnimationFrame(function(){var g;(g=X.lottieEl)==null||g.addEventListener("DOMLoaded",function(){var a;(a=D.onLottieLoaded)==null||a.call(D)})})});
var W=function(){var g;return(g=D.data)==null?void 0:g.call(D).loadingAnimationA11yLabel},p={};
return _.A("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var g;return((g=D.data)==null?void 0:g.call(D).targetId)||""},
"aria-label":function(){return W()||""},
role:function(){return W()?"progressbar":void 0},
style:_.P0({"min-height":function(){var g,a;return lJt((g=D.containerHeight)==null?void 0:g.call(D),(a=D.isLastItem)==null?void 0:a.call(D))}})},_.A(_.zl,{"aria-hidden":"true",
className:_.g$((p.ytChatLoadingViewModelRtl=c==="rtl",p)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:C()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||C()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:C()}}},
animationRef:X}))},"jj");
}catch(e){_._DumpException(e)}
try{
var oQN,Wxm,p2$;oQN=function(D){return _.b("kevlar_watch_cinematics_invisible")||D.fullscreen&&_.b("kevlar_watch_cinematics_invisible_in_fullscreen")||D.theater&&!D.fullscreen&&_.b("kevlar_watch_cinematics_invisible_in_theater")};
Wxm=function(){var D=document.createElement("canvas"),C=D.getContext("2d");if(!C)throw Error("Uo");_.Ms(D,{position:"absolute",width:"100%",height:"100%"});return{element:D,context:C}};
p2$=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.b("kevlar_watch_cinematics_css_blur")};
_.SON=function(D,C,X){return Math.abs(D-C)<=(X||1E-6)};
_.U6H=function(D,C){return D==C?!0:D&&C?D.width==C.width&&D.height==C.height:!1};_.gQB=new _.A7("notificationActionRenderer");var ahN=function(D){var C=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.gL;this.element.addEventListener("load",function(){C.loaded=!0;C.resolver.resolve(C.element)});
this.element.addEventListener("error",function(){C.failed=!0});
this.element.src=D};var Ihz=function(D,C){this.image=D;this.frame=C};
Ihz.prototype.drawToCanvas=function(D,C){var X=this.frame.width/this.frame.columns,c=this.frame.height/this.frame.rows,W=C.offsetX,p=C.offsetY;oQN(C)?(D.fillStyle=C.fullscreen?"#000":"#0f0f0f",D.fillRect(W,p,(C==null?void 0:C.width)||X,(C==null?void 0:C.height)||c)):D.drawImage(this.image,this.frame.column*X,this.frame.row*c,X,c,W,p,(C==null?void 0:C.width)||X,(C==null?void 0:C.height)||c)};
var O76=function(D){this.color=D};
O76.prototype.drawToCanvas=function(D,C){var X=C.offsetX,c=C.offsetY,W=C.width,p=C.height;D.fillStyle=oQN(C)?C.fullscreen?"#000":"#0f0f0f":this.color;D.fillRect(X,c,W,p)};var AH=function(D,C){_.PU.call(this);this.playerApi=C;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.me(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();AUN(this,D);Pqm(this);this.update()};
_.h(AH,_.PU);AH.prototype.addEventListeners=function(){var D=this,C=function(){D.update()},X=function(W){D.paused||(W.type==="newdata"&&(D.mosaics.clear(),$6m(D),Pi(D)),Pqm(D),D.update())},c=function(){D.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",C);this.playerApi.addEventListener("onVideoDataChange",X);this.playerApi.addEventListener("onStateChange",c);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoProgress",C);D.playerApi.removeEventListener("onVideoDataChange",X);D.playerApi.removeEventListener("onStateChange",c)})};
var AUN=function(D,C){D.cinematicContainerRenderer!==C&&(D.cinematicContainerRenderer=C,$6m(D),Pi(D),D.colorStoreUpdateJobId=_.qX.addLowPriorityJob(function(){var X;if((X=D.cinematicContainerRenderer.colorStore)!=null&&X.sampledColors){X=Infinity;for(var c=_.U(D.cinematicContainerRenderer.colorStore.sampledColors),W=c.next();!W.done;W=c.next()){W=W.value;var p=Number(W.key);p!==0&&p<X&&(X=p);p=_.e_(W.value);D.colorStore.set(W.key,p)}D.colorStoreTimeInterval=X}}))},$6m=function(D){D.colorStoreUpdateJobId&&
(_.qX.cancelJob(D.colorStoreUpdateJobId),D.colorStoreUpdateJobId=void 0);
D.colorStore.clear();D.currentStoryboardColor=void 0},vQH=function(D,C){var X;
return(X=D.getStoryboardFrame(C))==null?void 0:X.url};
AH.prototype.onPlayerStateChange=function(){this.update()};
AH.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Pqm=function(D){var C=D.getStoryboardFrame(0);C&&(C=new _.me(C.width/C.columns,C.height/C.rows),_.U6H(D.currentStoryboardSize,C)||(D.currentStoryboardSize=C,D.publish("STORYBOARD_SIZE_CHANGED",D.currentStoryboardSize)))},i7H=function(D,C){D.currentStoryboardIndex=C;
D.pendingStoryboardIndex=NaN;C=D.getStoryboardFrame(D.currentStoryboardIndex);D.currentStoryboard=new Ihz(D.mosaics.get(C.url).element,C);D.publish("STORYBOARD_CHANGED",D.currentStoryboard);D.lastUpdateTime=(0,_.kh)()};
AH.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Pi=function(D){D.currentStoryboardIndex=NaN;D.pendingStoryboardIndex=NaN;D.currentStoryboard&&(D.currentStoryboard=void 0,D.publish("STORYBOARD_CHANGED",void 0));D.lastUpdateTime=NaN};
AH.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Pi(this);else{var D=this.playerApi.getPlayerState(1);if(D===-1||D===5||D===0)Pi(this);else if(isNaN(this.lastUpdateTime)||!((0,_.kh)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(D=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){D=""+Math.round(D*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var C=this.colorStore.get(D);C?C!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=C,this.currentStoryboard=new O76(C),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.kh)()):(_.fQ(new _.Zf("Could not find color for timestamp: "+D,this.cinematicContainerRenderer)),Pi(this))}else Pi(this);else k4N(this,D)}};
var k4N=function(D,C){var X=D.getStoryboardFrameIndex(C);if(X!==D.currentStoryboardIndex&&X!==D.pendingStoryboardIndex){C=vQH(D,X);var c=D.mosaics.get(C);c?c.loaded&&i7H(D,X):(D.pendingStoryboardIndex=X,X=new ahN(C),D.mosaics.set(C,X),X.resolver.promise.then(function(){if(!D.isDisposed()&&!D.paused&&!isNaN(D.pendingStoryboardIndex)){var W=vQH(D,D.pendingStoryboardIndex);if(W){var p;(p=D.mosaics.get(W))!=null&&p.loaded&&i7H(D,D.pendingStoryboardIndex)}else Pi(D)}}))}};
AH.prototype.getStoryboardFrameIndex=function(D){var C=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(D,C)};
AH.prototype.getStoryboardFrame=function(D){var C=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,X,c;return((c=(X=this.playerApi).getStoryboardFrame)==null?void 0:c.call(X,D,C))||null};
AH.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var vi=function(D,C,X,c){c=c===void 0?!1:c;_.nF.call(this);this.cinematicContainerRenderer=C;this.playerApi=X;this.theater=this.fullscreen=!1;var W;this.ambientLightThemeEnabled=!c&&!!(C==null?0:(W=C.config)==null?0:W.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=c)&&!0;this.container=document.createElement("div");D.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);ur$(this);this.backCanvas=
Wxm();this.frontCanvas=Wxm();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new AH(C,this.playerApi);_.hR(this,this.storyboardManager);this.addEventListeners();QeJ(this)?Bqj(this,100+$s(this)*3*2,100+$s(this)*3*2):b7J(this);rUU(this,this.storyboardManager.currentStoryboard)};
_.h(vi,_.nF);
var ur$=function(D){var C=D.playerApi.getVideoAspectRatio();_.Ms(D.container,{"aspect-ratio":""+C,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var X;var c;if((D.fullscreen||D.theater)&&((X=D.cinematicContainerRenderer.config)==null?0:(c=X.watchFullscreenConfig)==null?0:c.colorSourceWidthMultiplier))X=D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var W;X=(W=
D.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?W:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var p,g;if((D.fullscreen||D.theater)&&((p=D.cinematicContainerRenderer.config)==null?0:(g=p.watchFullscreenConfig)==null?0:g.colorSourceHeightMultiplier))W=D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var a;W=(a=D.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?a:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Ms(D.innerContainer,
{"aspect-ratio":""+C,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+X+", "+W+")"});p2$()&&_.Ms(D.innerContainer,"filter","blur("+_.BK("cinematic_watch_css_filter_blur_strength",40)+"px)")};
vi.prototype.setFullscreen=function(D,C){this.fullscreen=D;this.theater=!!C;ur$(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),D=this.storyboardManager.currentStoryboard,KxD(this),D&&hjf(this,D)};
vi.prototype.addEventListeners=function(){var D=this,C=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(W){rUU(D,W)}),X=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){b7J(D)});
this.addOnDisposeCallback(function(){D.storyboardManager.unsubscribeByKey(C);D.storyboardManager.unsubscribeByKey(X)});
var c=function(){ur$(D)};
this.playerApi.addEventListener("onVideoDataChange",c);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoDataChange",c)})};
var b7J=function(D){if(!QeJ(D)){var C=D.storyboardManager.currentStoryboardSize;isNaN(C.width)||isNaN(C.height)||Bqj(D,Number(C.width)+$s(D)*3*2,Number(C.height)+$s(D)*3*2)}},Bqj=function(D,C,X){D.backCanvas.element.width=C;
D.backCanvas.element.height=X;D.frontCanvas.element.width=C;D.frontCanvas.element.height=X},QeJ=function(D){return D.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},rUU=function(D,C,X){X=X===void 0?!1:X;
var c=D.frontCanvas.element.getAnimations()[0];c?(c.pause(),D.backCanvas.context.globalAlpha=Number(getComputedStyle(D.frontCanvas.element).opacity),D.frontCanvas.element.style.opacity="0",c.finish()):D.backCanvas.context.globalAlpha=1;D.backCanvas.context.drawImage(D.frontCanvas.element,0,0,D.backCanvas.element.width,D.backCanvas.element.height);KxD(D);C&&hjf(D,C);C=C?D.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.BK("cinematic_watch_fade_out_duration",500);c=_.BK("cinematic_watch_transition_frame_rate")/
1E3;var W={};c&&(W={easing:"steps("+Math.round(C*c)+")"});(X===void 0?0:X)||D.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:C,iterations:1},W));D.frontCanvas.element.style.opacity="1"},KxD=function(D){var C=D.ambientLightThemeEnabled||D.ambientTheaterModeEnabled,X=D.ambientLightThemeEnabled||D.ambientFullscreenEnabled;
D.frontCanvas.context.fillStyle=D.theater&&C||D.fullscreen&&X?"#000":"#0f0f0f";p2$()||(D.frontCanvas.context.filter="blur(0)");D.frontCanvas.context.fillRect(0,0,D.frontCanvas.element.width,D.frontCanvas.element.height)},hjf=function(D,C){p2$()||(D.frontCanvas.context.filter="blur("+$s(D)+"px)");
D.frontCanvas.context.globalAlpha=D.fullscreen&&D.ambientFullscreenEnabled||D.theater&&D.ambientTheaterModeEnabled?_.BK("cinematic_watch_effect_letterbox_opacity",.4):_.BK("cinematic_watch_effect_opacity",.4);var X={offsetX:$s(D)*3,offsetY:$s(D)*3,theater:D.theater,fullscreen:D.fullscreen};QeJ(D)&&(X.width=100,X.height=100);C.drawToCanvas(D.frontCanvas.context,X);D.frontCanvas.context.globalAlpha=1},$s=function(D){var C;
return(C=D.cinematicContainerRenderer.config.blurStrength)!=null?C:5};
vi.prototype.disposeInternal=function(){_.nF.prototype.disposeInternal.call(this);this.container.remove()};
vi.prototype.clear=function(){rUU(this,void 0,!0)};
vi.prototype.pause=function(){this.storyboardManager.pause()};var x6B;x6B=_.Ef(function(){var D,C,X=!((C=(D=document.createElement("canvas")).getContext)==null||!C.call(D,"2d")),c;D=!((c=CSS)==null||!c.supports("filter: blur(0)"));c=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var W;return X&&D&&c&&!((W=CSS)==null||!W.supports("aspect-ratio: 1 / 1"))});
_.ix=function(D,C){_.PU.call(this);this.container=D;this.playerApi=C;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=LxJ(this);this.update()};
_.h(_.ix,_.PU);_.se6=function(D){var C=document.documentElement.hasAttribute("dark");D.isDarkModeEnabled=C;D.update()};
_.m6B=function(D,C){D.settingEnabled=C;D.update()};
_.ix.prototype.setFullscreen=function(D,C){this.fullscreen=D;this.theater=!!C;this.update()};
_.ejB=function(D,C){D.cinematicContainerRenderer=C;D.cinematicContainerRenderer&&(D.cinematicsVe=_.Ia(D.isShorts()?227858:159022),_.Vc(_.iO(),D.cinematicsVe),D.loggingClientData={watchCinematicContainerData:{presentationStyle:D.cinematicContainerRenderer.presentationStyle}});D.update()};
_.ix.prototype.isShorts=function(){var D,C;return((D=this.cinematicContainerRenderer)==null?void 0:(C=D.config)==null?void 0:C.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.ix.prototype.isAllowed=function(){var D;if(D=x6B()){var C,X,c;D=((X=this.cinematicContainerRenderer)==null?void 0:X.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((c=this.cinematicContainerRenderer)==null||!c.colorStore)||((C=this.cinematicContainerRenderer)==null?void 0:C.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(D)if(_.b("web_cinematics_pausing")){var W,p;D=this.isDarkModeEnabled||!!((W=this.cinematicContainerRenderer)==
null?0:(p=W.config)==null?0:p.enableInLightTheme)}else{var g,a;W=!!((g=this.cinematicContainerRenderer)==null?0:(a=g.config)==null?0:a.enableInLightTheme)&&(_.q6("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);D=this.isDarkModeEnabled||W}if(g=D){var O,P;g=!((P=(O=this.prefersReducedMotionQuery)==null?void 0:O.matches)!=null&&P)}return g};
_.EQv=function(D){var C;(C=D.currentCinematicEffect)==null||C.pause()};
_.tjD=function(D){(D=D.currentCinematicEffect)!=null&&(D=D.storyboardManager,D.paused=!1,Pqm(D),D.update())};
_.ix.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var LxJ=function(D){if(!_.b("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var C=window.matchMedia("(prefers-reduced-motion: reduce)"),X=function(){D.update()};
C.addListener(X);D.addOnDisposeCallback(function(){C.removeListener(X)});
return C}};
_.ix.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var D=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new vi(this.container,D,this.playerApi,this.isDarkModeEnabled),_.hR(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var C=this.currentCinematicEffect;C.cinematicContainerRenderer!==
D&&(C.cinematicContainerRenderer=D,AUN(C.storyboardManager,D),ur$(C));D=_.PE();_.$C(0,194,!0);D.save();D=_.LN();this.cinematicsVe&&D&&_.VP(D,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(D=_.LN(),this.cinematicsVe&&D&&_.To(D,[this.cinematicsVe],!1,this.loggingClientData),_.Ue(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.$a.Object.defineProperties(_.ix.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var ePJ;var EUz;_.mZ({_template:function(){if(EUz!==void 0)return EUz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=
D.content,X=C.insertBefore;ePJ===void 0&&(ePJ=document.createElement("template"));var c=ePJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return EUz=D},
is:"tp-yt-iron-pages",behaviors:[_.lR,_.zA],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var LeD;_.sVv=function(){if(_.b("kevlar_home_skeleton")&&!LeD){var D=document.querySelector("#home-page-skeleton");D&&(_.sp("hgcr"),_.ep(D),LeD=!0)}};
LeD=!1;_.RO=new _.A7("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var L$N=function(D){return _.Tz5(_.VxJ(D&16777215))<.5},sG2=function(D,C,X){var c=X.minimumRowsOfVideosBetweenSections===void 0?1:X.minimumRowsOfVideosBetweenSections;
return D<(X.minimumRowsOfVideosAtStart===void 0?2:X.minimumRowsOfVideosAtStart)||C!==null&&D-C<=c?!1:!0},mAz=function(D,C){var X=0,c=0;
D=_.U(D);for(var W=D.next();!W.done;W=D.next()){var p=W.value;if(p.richItemRenderer)p.richItemRenderer.rowIndex=c,p.richItemRenderer.colIndex=X++,X===C&&(X=0,c++);else if(p.richGroupRenderer&&p.richGroupRenderer.numColumns!==void 0)p.richGroupRenderer.rowIndex=c,p.richGroupRenderer.colIndex=X,X+=p.richGroupRenderer.numColumns,X===C&&(X=0,c++);else if(p.richSectionRenderer){var g=W=void 0;if(p=_.r((W=p)==null?void 0:(g=W.richSectionRenderer)==null?void 0:g.content,_.eXM))p.rowIndex=c++}}},eKv=function(D,
C){var X=C.contentElement;
C=C.rendererToTagNameMap;if(X&&C&&C.size!==0){for(var c=new Map,W=_.U(X.children),p=W.next();!p.done;p=W.next()){p=p.value;var g=p.tagName.toLowerCase(),a=c.get(g);a||(a=[],c.set(g,a));a.push(p)}if(c.size!==0)for(W=Math.min(D.length,X.children.length),p=new Map,g=0;g<W;g++){a=Object.keys(D[g])[0];a=C.get(a);if(!a)break;var O=p.get(a);O===void 0&&(O=0,p.set(a,O));var P=c.get(a);if(!P||O>=P.length)break;p.set(a,O+1);a=P[O];O=X.children[g];O!==a&&(_.lO=!0,_.D5.set(a,!0),X.insertBefore(a,O),_.D5.delete(a),
_.lO=!1)}}},EFd=function(D,C,X,c,W,p,g){c=c===void 0?{}:c;
if(!D||!D.length)return{orderedContent:[]};D=D.slice();var a=[],O=[];W=null;for(var P=0,k=function(J){O.sort(function(q,R){return R.skippedOnRow-q.skippedOnRow});
for(var T,H=(T=O.shift())==null?void 0:T.content;H;)!H.richSectionRenderer&&J||a.push(H),T=void 0,H=(T=O.shift())==null?void 0:T.content},u=void 0,Q=void 0,B=new Set;D.length>0||O.length>0;){for(var K=[],L=C;L>0;){var t=void 0,Y=void 0,y=(Y=O[0]&&O[0].skippedOnRow<P?(t=O.shift())==null?void 0:t.content:void 0)!=null?Y:D.shift();
if(!y)break;if(y.richItemRenderer)t=y.richItemRenderer.targetId,Y=void 0,t&&((Y=g)==null?0:Y.has(t))&&(Y=g.get(t),!u||Y&&Y.timestamp>u.timestamp)&&(u=Y,Q&&B.add(Q),Q=t),K.push(y),L--;else if(y.richGroupRenderer&&y.richGroupRenderer.numColumns!==void 0)y.richGroupRenderer.numColumns<=L?(K.push(y),L-=y.richGroupRenderer.numColumns):L===C&&y.richGroupRenderer.numColumns>C?(K.push({richGroupRenderer:Object.assign({},y.richGroupRenderer,{numColumns:C})}),L=0):O.push({content:y,skippedOnRow:P});else if(y.richSectionRenderer)if(sG2(P,
W,c)&&L===C){a.push(y);W=P;P++;continue}else O.push({content:y,skippedOnRow:P});else if(y.continuationItemRenderer){k(!0);a.push(y);L=0;break}if(L===0)a.push.apply(a,_.VB(K));else if(!X&&D.length===0){k(!1);a.push.apply(a,_.VB(K));L=0;break}}P++;u&&(a.push(u.content),P++);Q=u=void 0}mAz(a,C);p&&eKv(a,p);return{orderedContent:a,pinnedContentNotShownTargetIds:B}},Yum=function(D,C){if(C){var X=_.fe().getState().entities.flowStateEntity,c=tsv(D),W=[C];
c&&c!==C&&W.push(c);var p=!0,g;if(X&&D.flowStateEntityKey&&((g=X[D.flowStateEntityKey])==null?void 0:g.primaryButtonDisabled)!==void 0){var a;p=!((a=X[D.flowStateEntityKey])==null||!a.primaryButtonDisabled)}NHH(D,c!=null?c:C,W,p)}},nFz=function(D){return _.dX(_.fe(),function(C){return C.entities.flowStateEntity},function(C,X){if(D.flowStateEntityKey){var c,W=C==null?void 0:(c=C[D.flowStateEntityKey])==null?void 0:c.currentStepId,p;
X=X==null?void 0:(p=X[D.flowStateEntityKey])==null?void 0:p.currentStepId;p=_.fe().getState().talkToRecs;if(W&&W!==X){var g;C=(C==null?void 0:(g=C[D.flowStateEntityKey])==null?void 0:g.stepIdStack)||Object.keys(p.stepStates);g=!y_j(p==null?void 0:p.stepStates[W]);NHH(D,W,C,g)}}})},F$U=function(D){return _.dX(_.fe(),wtd,function(C){var X=tsv(D);
if(X){var c=Object.keys(C.stepStates);C=!y_j(C==null?void 0:C.stepStates[X]);NHH(D,X,c,C)}})},y_j=function(D){var C=Object.keys((D==null?void 0:D.selectionStates)||{}).reduce(function(p,g){return p||(D==null?void 0:D.selectionStates[g].isSelected)},!1),X,c,W=!!(D==null?0:(X=D.userQuery)==null?0:(c=X.userQuery)==null?0:c.trim());
return C||W},tsv=function(D){if(D.flowStateEntityKey){var C,X,c=(C=_.fe().getState().entities.flowStateEntity)==null?void 0:(X=C[D.flowStateEntityKey])==null?void 0:X.currentStepId;
if(c)return c}},NHH=function(D,C,X,c){_.fe().dispatch(_.bK("flowStateEntity",D.flowStateEntityKey,{currentStepId:C,
stepIdStack:X,key:D.flowStateEntityKey,primaryButtonDisabled:c}))},ZKv;var GLf;_.mZ({_template:function(){if(GLf!==void 0)return GLf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
var C=D.content,X=C.insertBefore;ZKv===void 0&&(ZKv=document.createElement("template"));var c=ZKv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return GLf=D},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var VsH=new _.A7("flowRootRenderer");var TH6=new _.A7("chipsShelfViewModel");var HK2=new _.A7("responsiveContainerConfiguration");_.J_N=new _.A7("engagementPanelSectionListRenderer");var zKd=function(){this.horizontal=!1},jGv=function(D,C){D.horizontal=C};
zKd.prototype.position=function(D,C,X,c){c=c===void 0?1:c;D=this.delta(D)*c+C;c=Math.max(C,X);return D>=Math.min(C,X)&&D<=c?D:X};
zKd.prototype.axis=function(D){D=this.direction(D);return D==="up"||D==="down"?"Y":"X"};var Ne=function(D,C,X){C=C===void 0?_.Mk():C;this.target=D;this.manager=C;this.touchAction=X;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Ne.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(_.VB(this.events)));for(var D=_.U(this.events),C=D.next();!C.done;C=D.next())this.listen(C.value)}};
Ne.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.VB(this.events)));for(var D=_.U(this.events),C=D.next();!C.done;C=D.next())this.unlisten(C.value)}};
Ne.prototype.listen=function(D){this.eventMap[D]&&this.target.addEventListener(D,this.eventMap[D])};
Ne.prototype.unlisten=function(D){this.eventMap[D]&&this.target.removeEventListener(D,this.eventMap[D])};var YS=function(){zKd.apply(this,arguments)};
_.h(YS,zKd);YS.prototype.direction=function(D){var C=D.detail;D=C.deltaY;C=C.deltaX;return D&&!this.horizontal?D>0?"down":"up":C&&this.horizontal?C>0?"right":"left":"none"};
YS.prototype.distance=function(D){return Math.abs(this.delta(D))};
YS.prototype.delta=function(D){var C=this.direction(D),X=D.detail;D=X.deltaX;X=X.deltaY;return C==="up"||C==="down"?X||0:D||0};
YS.prototype.velocity=function(D){var C=this.direction(D),X=D.detail;D=X.velocityX;X=X.velocityY;return Math.abs(C==="up"||C==="down"?X||0:D||0)};_.yV=function(D,C,X,c,W,p){W=W===void 0?new YS:W;p=p===void 0?_.Mk():p;Ne.call(this,C,p,c);var g=this;this.element=D;this.target=C;this.config=X;this.input=W;this.manager=p;this.events=["panstart","panmove","panend"];this.onPanStart=function(){g.config.draggingClass&&g.element.classList.add(g.config.draggingClass);g.config.startAction&&g.config.startAction()};
this.onPanMove=function(a){var O=MsH(g,a);if(O){g.move(a,O);O.fade&&g.fade(a,O);var P=g.input.direction(a);O.moveAction&&O.moveAction(qu$(g,a,O),P)}};
this.onPanEnd=function(a){var O,P,k,u,Q,B;return _.I(function(K){if(K.nextAddress==1){g.animationRequestId&&cancelAnimationFrame(g.animationRequestId);g.animationRequestId=void 0;O=MsH(g,a);if(!O)return K.return();P=O;k=P.triggerAction;u=P.fade;Q=P.disableFinish;B=P.translateBack;var L=g.input.velocity(a),t=g.input.distance(a),Y=g.threshold(O);return L>.3&&t>10||t>Y?Q?K.jumpTo(6):u?K.yield(fNN(g,a),6):K.yield(dAm(g,a,O),6):B?K.yield(g.translateBack(a),3):K.jumpTo(3)}K.nextAddress!=3&&k&&k();g.config.draggingClass&&
g.element.classList.remove(g.config.draggingClass);g.reset();_.t_(K)})};
D=Object.keys(X.triggers);this.directions=new Set(D);jGv(this.input,this.directions.has("right")||this.directions.has("left"))};
_.h(_.yV,Ne);_.yV.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var MsH=function(D,C){C=D.input.direction(C);return D.config.triggers[C]};
_.yV.prototype.move=function(D,C){var X=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var c=X.input.axis(D),W=X.input.position(D,X.config.startPosition,C.endPosition,C.moveRatio||1);X.element.style.transform="translate"+c+"("+W+"px)";X.animationRequestId=void 0}))};
var qu$=function(D,C,X){var c=X.moveRatio||1;X=Math.abs(D.config.startPosition-X.endPosition);return Math.min(D.input.distance(C)*c,X)/X};
_.yV.prototype.fade=function(D,C){var X=C.endOpacity;D=qu$(this,D,C);D>0&&(this.element.style.opacity=""+(((X||0)-1)*D+1))};
_.yV.prototype.threshold=function(D){return D.threshold?D.threshold:Math.abs(D.endPosition-this.config.startPosition)/3};
var dAm=function(D,C,X){var c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1)return c=D.input.delta(C)+D.config.startPosition,W=D.input.axis(C),p=X,g=p.endPosition,a=p.transitionEndPosition,P=(O=a)!=null?O:g,k.yield(D.element.animate([{transform:"translate"+W+"("+c+"px)"},{transform:"translate"+W+"("+P+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+W+"("+P+"px)";_.t_(k)})};
_.yV.prototype.translateBack=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1){if(!C.element.style.transform)return W.return();X=C.input.axis(D);c=C.config.startPosition;return W.yield(C.element.animate([{transform:C.element.style.transform},{transform:"translate"+X+"("+c+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}C.element.style.transform="translate"+X+"("+c+"px)";_.t_(W)})};
var fNN=function(D,C){var X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return X=D.input.delta(C)+D.config.startPosition,c=D.input.axis(C),W=X+70,p=D.element.style.opacity===""?1:D.element.style.opacity,g.yield(D.element.animate([{transform:"translate"+c+"("+X+"px)",opacity:p},{transform:"translate"+c+"("+W+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+c+"("+W+"px)";D.element.style.opacity="0";_.t_(g)})};var n8=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;D.scrollRate=3;D.autoScrollAnimationStart=0;D.autoScrollPaused=!1;D.autoScrollRafId=0;return D};
_.h(n8,_.Qj);_.S=n8.prototype;_.S.created=function(){var D=this;this.boundAutoScrollHandler=function(C){D.autoScroll(C)}};
_.S.detached=function(){this.hostElement.removeEventListener("mouseout",_.Pr(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Pr(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Pr(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.S.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Pr(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Pr(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Pr(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Pr(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Pr(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Pr(this,this.endAutoScroll)),this.endAutoScroll())};
_.S.autoScroll=function(D){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=D);var C;if(C=!this.autoScrollPaused&&this.scrollTarget)C=this.scrollTarget,C=C.scrollHeight-C.scrollTop!==C.clientHeight;C&&(C=1E3/this.scrollRate,D-=this.autoScrollAnimationStart,D>C&&(this.scrollTarget.scrollTop+=Math.ceil(D/C),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.S.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.S.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
n8.prototype.autoScrollEnabledChanged=n8.prototype.autoScrollEnabledChanged;_.V([_.n(),_.z("design:type",Object)],n8.prototype,"scrollRate",void 0);_.V([_.n(),_.z("design:type",Object)],n8.prototype,"scrollTarget",void 0);_.V([_.n(),_.z("design:type",Boolean)],n8.prototype,"autoScrollEnabled",void 0);_.V([_.vr("autoScrollEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],n8.prototype,"autoScrollEnabledChanged",null);_.V([_.Br()],n8);_.RKB=[n8.prototype];var lNU;var wf=function(){var D=_.w.apply(this,arguments)||this;D.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};D.forceDarkTheme=!1;D.forceLightTheme=!1;D.dynamicTextHeight=94;D.hasOverflowButton=!1;D.isInfeedModernization=!1;return D};
_.h(wf,_.w);_.S=wf.prototype;_.S.computeUrlImg=function(D){if(D)return _.c0(D.thumbnails)};
_.S.getLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.S.getLogoClassName=function(D){return this.logoWithPadding(D)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.S.logoWithPadding=function(D){var C,X;return(D=(C=D.thumbnails)==null?void 0:(X=C[0])==null?void 0:X.height)&&D%31===0?!0:!1};
_.S.sendImpressionEndpoints=function(D){D.impressionEndpoints&&_.cE(this.hostElement,D.impressionEndpoints)};
_.S.observeBasicPalette=function(){var D,C,X=(D=this.data)==null?void 0:(C=D.colorData)==null?void 0:C.basicColorPaletteData;X?_.x_(this.hostElement,X):_.x_(this.hostElement,{})};
_.S.observeDataChanged=function(){var D;this.dynamicTextHeight=((D=this.data)==null?0:D.supplementalText)?74:94;var C;this.hasSupplementalText=!((C=this.data)==null||!C.supplementalText);var X,c,W,p;D=(X=this.data)==null?void 0:(c=X.actionButton)==null?void 0:(W=c.buttonRenderer)==null?void 0:(p=W.colorData)==null?void 0:p.basicColorPaletteData;var g,a,O;if(!((g=this.data)==null?0:(a=g.actionButton)==null?0:(O=a.buttonRenderer)==null?0:O.style)&&D){this.computeIsInfeedModernization(this.data)||(D.borderColor=
D.foregroundTitleColor);var P,k;this.set("data.actionButton.buttonRenderer",_.ZI.unsafeClone((P=this.data)==null?void 0:(k=P.actionButton)==null?void 0:k.buttonRenderer))}};
_.S.observeDataForCounterfactual=function(){if(_.b("kevlar_banner_cf_extra_logging")){var D;((D=this.data)==null?0:D.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.S.computeSupplementalStyle=function(){var D;if((D=this.data)!=null&&D.supplementalText){var C,X,c;if((C=this.data)==null?0:(X=C.colorData)==null?0:(c=X.basicColorPaletteData)==null?0:c.foregroundActivatedColor)return D=_.mW(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+D+"; --yt-endpoint-hover-color:"+D+"; --yt-endpoint-visited-color:"+D+"; --yt-formatted-string-bold-font-weight:700;"}};
_.S.computeForcedDarkTheme=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.actionButton)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.style,W,p,g;D=L$N(((W=this.data)==null?void 0:(p=W.colorData)==null?void 0:(g=p.basicColorPaletteData)==null?void 0:g.backgroundColor)||0);return c&&D};
_.S.computeForcedLightTheme=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.actionButton)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.style,W,p,g;D=!L$N(((W=this.data)==null?void 0:(p=W.colorData)==null?void 0:(g=p.basicColorPaletteData)==null?void 0:g.backgroundColor)||0);return c&&D};
_.S.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.S.computeHasTitle=function(D){return!!D.title};
_.S.computeTitleMaxFontSize=function(D){return this.computeHasOverflowButton(D)?28:64};
_.S.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.S.computeIsInfeedModernization=function(){var D,C,X,c,W=(D=this.data)==null?void 0:(C=D.actionButton)==null?void 0:(X=C.buttonRenderer)==null?void 0:(c=X.colorData)==null?void 0:c.basicColorPaletteData;return(W==null?void 0:W.backgroundColor)===452984831||(W==null?void 0:W.backgroundColor)===218103808};
wf.prototype.observeDataForCounterfactual=wf.prototype.observeDataForCounterfactual;wf.prototype.observeDataChanged=wf.prototype.observeDataChanged;wf.prototype.observeBasicPalette=wf.prototype.observeBasicPalette;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],wf.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],wf.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wf.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],wf.prototype,"hasSupplementalText",void 0);_.V([_.n(),_.z("design:type",Object)],wf.prototype,"dismissButtonOverrides",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.z("design:type",Boolean)],wf.prototype,"hasTitle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.z("design:type",Object)],wf.prototype,"forceDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.z("design:type",Object)],wf.prototype,"forceLightTheme",void 0);_.V([_.n(),_.z("design:type",Object)],wf.prototype,"dynamicTextHeight",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.z("design:type",Object)],wf.prototype,"hasOverflowButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.z("design:type",Object)],wf.prototype,"isInfeedModernization",void 0);_.V([_.vr("data.colorData.basicColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wf.prototype,"observeBasicPalette",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wf.prototype,"observeDataChanged",null);_.V([_.vr("data.isVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wf.prototype,"observeDataForCounterfactual",null);_.V([_.yj({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],wf);
_.G(wf,"ytd-banner-promo-renderer",function(){if(lNU!==void 0)return lNU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return lNU=D},{mode:1});var D36;var Co2;var XdN;var cpf=function(){return _.w.apply(this,arguments)||this};
_.h(cpf,_.w);_.V([_.n(),_.z("design:type",Object)],cpf.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cpf.prototype,"ytRendererBehavior",void 0);_.V([_.yj({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],cpf);
_.G(cpf,"ytd-hashtag-grid-tile-renderer",function(){if(XdN!==void 0)return XdN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return XdN=D},{mode:1});var Fy=function(){return _.w.apply(this,arguments)||this};
_.h(Fy,_.w);Fy.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Fy.prototype.updateRichGridTrendingHashtagsVisibility=function(){var D,C;if(((D=this.data)==null||!D.isExpanded)&&(C=this.data)!=null&&C.tiles){D=this.data.tiles.length;C=D>this.richGridItemsPerRow?this.richGridItemsPerRow+1:D;var X=Math.ceil(D/C);this.fullyVisibleRows=D%C===1&&X===2?1:Math.min(X,2);this.isShowMoreVisible=this.fullyVisibleRows<X}};
Fy.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Fy.prototype.updateRichGridTrendingHashtagsVisibility=Fy.prototype.updateRichGridTrendingHashtagsVisibility;_.V([_.n(),_.z("design:type",Object)],Fy.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Number)],Fy.prototype,"fullyVisibleRows",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Fy.prototype,"isShowMoreVisible",void 0);_.V([_.n({selector:_.eV,value:0}),_.z("design:type",Number)],Fy.prototype,"richGridItemsPerRow",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Fy.prototype,"ytdReduxBehavior",void 0);_.V([_.vr("data","richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fy.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.V([_.yj({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Fy);
_.G(Fy,"ytd-hashtag-grid-shelf-renderer",function(){if(Co2!==void 0)return Co2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Co2=D},{mode:1});var oXm;var We6;var ZL=function(){var D=_.w.apply(this,arguments)||this;D.visibleVideos=[];D.hiddenVideos=[];D.modern=_.b("web_modern_buttons");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(ZL,_.w);_.S=ZL.prototype;_.S.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.S.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"}}}};
_.S.dataChanged=function(){var D=this;this.requestElementsPerRow();var C,X;this.currentColorPalette=this.isDarkTheme?(C=this.data)==null?void 0:C.darkColorData:(X=this.data)==null?void 0:X.lightColorData;var c;if((c=this.currentColorPalette)==null?0:c.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.A0(this,function(){D.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.S.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.S.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.S.computeIsFirstFeedItem=function(D){return D};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.S.getCurrentLogo=function(D,C){if(D)return C?D.darkLogoImage:D.lightLogoImage};
_.S.computeTitleStyle=function(D){var C;if((C=this.data)!=null&&C.title&&D&&D.textPrimary!==void 0)return"color:"+_.mW(D.textPrimary)+";"};
_.S.computeSubtitleStyle=function(D){var C;if((C=this.data)!=null&&C.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.mW(D.textSecondary)+";"};
_.S.computeDismissIconStyle=function(D){if(this.data&&this.data.dismissButton&&D&&D.textPrimary!==void 0)return"--yt-button-color:"+_.mW(D.textPrimary)+";"};
_.S.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.mW(D.textPrimary)+";--yt-spec-icon-active-other:"+_.mW(D.textPrimary)+";"};
_.S.computeBackgroundStyle=function(D){if(D&&this.data){var C="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var X=_.c0((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);X&&(C+='background-image:url("'+X+'");')}D.backgroundColor!==void 0&&(C+="background-color:"+_.e_(D.backgroundColor)+";");return C}};
_.S.computeButton=function(){var D,C=Object.assign({},_.r((D=this.data)==null?void 0:D.showMoreButton,_.AF));if(this.modern&&C){C.style="STYLE_MONO_OUTLINE";var X;if(D=(X=this.currentColorPalette)==null?void 0:X.textPrimary)C.colorData={basicColorPaletteData:{foregroundTitleColor:D,borderColor:D}}}return C};
_.S.shouldShowBottomButton=function(D,C){return!(D==null?0:D.header)&&!(D==null||!D.primaryButton)&&C<3};
_.S.checkExpanded=function(D){this.isExpanded=D&&D.content?this.hiddenVideos.length===0:!0};
_.S.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.S.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.S.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.S.computeHasSectionHeader=function(D){return!!D.header};
_.S.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var C;((C=this.data.dismissButton)==null?0:C.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var X,c;((X=this.data)==null?0:(c=X.primaryButton)==null?0:c.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.S.setVisibleVideos=function(D){if(this.data&&this.data.content)if(this.data.content.length){var C=this.data.content.length;this.data.header?D?(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.slimItemsPerRow),C)):(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow),C)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(C,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow),C)):(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow-1),C))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.S.setHasMovieRenderer=function(){var D;if((D=this.data)!=null&&D.content){var C;this.hasMovieRenderer=!!_.r((C=this.data)==null?void 0:C.content[0],_.Z_q)}else this.hasMovieRenderer=!1};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
_.S.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var D=_.U(this.hiddenMediaRenderers),C=D.next();!C.done;C=D.next())C.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(D=_.SY(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&D.focus()}};
_.S.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.S.logoWithPadding=function(D){var C,X,c;return(D=(C=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(X=C.thumbnails)==null?void 0:(c=X[0])==null?void 0:c.height)&&D%31===0?!0:!1};
_.S.onUpdateElementsPerRowAction=function(D,C,X){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D);X&&this.slimItemsPerRow!==X&&(this.slimItemsPerRow=X)};
ZL.prototype.slimItemsPerRowChanged=ZL.prototype.slimItemsPerRowChanged;ZL.prototype.elementsPerRowChanged=ZL.prototype.elementsPerRowChanged;ZL.prototype.dataChanged=ZL.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],ZL.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ZL.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],ZL.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ZL.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],ZL.prototype,"currentColorPalette",void 0);_.V([_.n(),_.z("design:type",Array)],ZL.prototype,"visibleVideos",void 0);_.V([_.n(),_.z("design:type",Array)],ZL.prototype,"hiddenVideos",void 0);
_.V([_.n(),_.z("design:type",Object)],ZL.prototype,"primaryButton",void 0);_.V([_.n({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],ZL.prototype,"elementsPerRow",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ZL.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ZL.prototype,"isExpanded",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ZL.prototype,"largeTitle",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ZL.prototype,"hasMovieRenderer",void 0);_.V([_.n(),_.z("design:type",Number)],ZL.prototype,"slimItemsPerRow",void 0);_.V([_.n(),_.z("design:type",Boolean)],ZL.prototype,"showLightVideoMetadata",void 0);_.V([_.n(),_.z("design:type",Boolean)],ZL.prototype,"showDarkVideoMetadata",void 0);_.V([_.n(),_.z("design:type",Number)],ZL.prototype,"videoMetadataColor",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],ZL.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.z("design:type",Boolean)],ZL.prototype,"isFirstFeedItem",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.z("design:type",Boolean)],ZL.prototype,"hasSectionHeader",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],ZL.prototype,"roundedContainer",void 0);_.V([_.uH("#visible-video-container ytd-rich-grid-media"),_.z("design:type",Array)],ZL.prototype,"visibleMediaRenderers",void 0);_.V([_.uH("#hidden-video-container ytd-rich-grid-media"),_.z("design:type",Array)],ZL.prototype,"hiddenMediaRenderers",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ZL.prototype,"modern",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZL.prototype,"dataChanged",null);_.V([_.vr("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZL.prototype,"elementsPerRowChanged",null);_.V([_.vr("slimItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZL.prototype,"slimItemsPerRowChanged",null);
_.V([_.yj({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],ZL);
_.G(ZL,"ytd-brand-video-shelf-renderer",function(){if(We6!==void 0)return We6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return We6=D},{mode:1});var pdB;var GD=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(GD,_.w);_.S=GD.prototype;_.S.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.S.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"}}}};
_.S.dataChanged=function(){this.requestElementsPerRow();var D,C;this.currentColorPalette=this.isDarkTheme?(D=this.data)==null?void 0:D.darkColorData:(C=this.data)==null?void 0:C.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.S.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.S.computeIsFirstFeedItem=function(D){return D};
_.S.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(D),this.updateButtonPalette())};
_.S.shouldShowThumbnailInMetadata=function(D){return D<=1};
_.S.computeVideoMetadataColor=function(){if(this.data){var D;if((D=this.currentColorPalette)==null?0:D.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.S.computeTitleStyle=function(D){var C;if((C=this.data)!=null&&C.title&&D&&D.textPrimary!==void 0)return"color:"+_.mW(D.textPrimary)+";"};
_.S.computeSubtitleStyle=function(D){var C;if((C=this.data)!=null&&C.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.mW(D.textSecondary)+";"};
_.S.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.mW(D.textPrimary)+";--yt-spec-icon-active-other:"+_.mW(D.textPrimary)+";"};
_.S.computeBackgroundStyle=function(D){if(D&&this.data){var C="";D.backgroundColor!==void 0&&(C+="background-color:"+_.e_(D.backgroundColor)+";");return C}};
_.S.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.S.updateButtonPalette=function(){if(this.data){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer){var C;if((C=this.currentColorPalette)==null?0:C.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var X;((X=this.currentColorPalette)==null?0:X.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
_.S.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.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")};
_.S.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
GD.prototype.elementsPerRowChanged=GD.prototype.elementsPerRowChanged;GD.prototype.dataChanged=GD.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],GD.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],GD.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],GD.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],GD.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],GD.prototype,"currentColorPalette",void 0);_.V([_.n(),_.z("design:type",Object)],GD.prototype,"primaryButton",void 0);
_.V([_.n({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],GD.prototype,"elementsPerRow",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],GD.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],GD.prototype,"titleSize",void 0);_.V([_.n(),_.z("design:type",Number)],GD.prototype,"videoMetadataColor",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],GD.prototype,"miniMode",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.z("design:type",Boolean)],GD.prototype,"isFirstFeedItem",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],GD.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.z("design:type",Boolean)],GD.prototype,"hasOverflowButton",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GD.prototype,"dataChanged",null);_.V([_.vr("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GD.prototype,"elementsPerRowChanged",null);_.V([_.yj({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],GD);
_.G(GD,"ytd-brand-video-singleton-renderer",function(){if(pdB!==void 0)return pdB;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return pdB=D},{mode:_.Wc("kevlar_poly_si_batch_j070")?1:2});var SF6;var U3f=_.F(function(D){var C=D.data;return _.A(_.M_,{data:function(){return C().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(C().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var X=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":X=88;break a;default:X=88}return X},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return C().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"gn"),aIv=_.F(function(D){var C=D.metadataRow;
var X=D.delimiter;return _.A(_.Zh,{each:function(){return C().textParts||[]},
keyBy:"INDEX"},function(c,W){return _.A(_.kQ,null,_.A(_.QG,{text:c,noWrap:!0,userInput:!0}),_.A(gXD,{delimiter:X,max:function(){return C().textParts.length},
index:W}))})},"hn"),gXD=_.F(function(D){var C=D.delimiter;
var X=D.max;var c=D.index;return _.A(_.v,{cond:function(){return(C==null?void 0:C())&&X()-1>c()},
then:function(){return _.A("span",null,C)}})},"jn"),IId=_.F(function(D){var C=D.data;
D={};return _.A("yt-profile-page-header-information-view-model",{class:_.g$("profilePageHeaderInformationViewModelHost",(D.profilePageHeaderInformationViewModelMobile=!1,D))},_.A(_.v,{cond:function(){return C().onTap},
then:function(){return _.A(_.ty,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.Y7(C().onTap)}},_.A(_.BX,{data:function(){return C().thumbnail}},{profilePageHeaderThumbnailViewModel:U3f}))},
else:function(){return _.A("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.A(_.BX,{data:function(){return C().thumbnail}},{profilePageHeaderThumbnailViewModel:U3f}))}}),_.A("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.A(_.v,{cond:function(){return C().onTap},
then:function(){return _.A(_.BX,{data:function(){return C().title}},{profilePageHeaderTitleViewModel:function(X){var c=X.data;
return _.A(_.ty,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.Y7(c().onTap)}},_.A(_.QG,{text:function(){return c().title}}))}})},
else:function(){return _.A(_.BX,{data:function(){return C().title}},{profilePageHeaderTitleViewModel:function(X){var c=X.data;
return _.A(_.QG,{text:function(){return c().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.A(_.BX,{data:function(){return C().metadata}},{profilePageHeaderMetadataViewModel:function(X){var c=X.data;
return _.A(_.v,{cond:function(){return c().metadataRows},
then:function(W){return _.A("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.A(_.Zh,{each:W,keyBy:"INDEX"},function(p,g){return _.A(_.kQ,null,_.A(aIv,{metadataRow:p,delimiter:" \u2022 "}),_.A(gXD,{delimiter:" \u2022 ",max:function(){return W().length},
index:g}))}))}})}})))},"kn");
IId.idomCompat=!0;_.CI(IId,"yt-profile-page-header-information-view-model",{props:{data:_.Bm}});var VV=function(){return _.w.apply(this,arguments)||this};
_.h(VV,_.w);VV.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],VV.prototype,"data",void 0);_.V([_.yj({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],VV);
_.G(VV,"ytd-effect-pivot-header-view-model",function(){if(SF6!==void 0)return SF6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return SF6=
D},{mode:1});var Oyv;var TD=function(){return _.w.apply(this,arguments)||this};
_.h(TD,_.w);TD.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TD.prototype,"data",void 0);_.V([_.yj({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],TD);
_.G(TD,"ytd-source-pivot-header-renderer",function(){if(Oyv!==void 0)return Oyv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Oyv=D},{mode:1});_.CI(_.zn1,"yt-card-view-model",{props:{data:_.Bm,className:_.Bm,isSelected:_.Bm}});var wtd=_.Thc.talkToRecsStateSelector;_.CI(_.F(function(D){var C=function(){return _.r(D.data().flowRoot,VsH)};
_.JU(function(){var X=C(),c=function(){},W=function(){};
if(X){var p,g,a,O=((a=_.r((p=C())==null?void 0:(g=p.steps)==null?void 0:g[0],_.lJ))==null?void 0:a.stepId)||"";Yum(X,O);c=nFz(X);W=F$U(X)}_.z3(function(){var P=C();P&&_.fe().dispatch(_.bK("flowStateEntity",P.flowStateEntityKey));c();c=function(){};
W();W=function(){};
_.fG(_.VcG())})});
return _.A("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.A(_.TO,{contentId:function(){return D.data().contentId}},function(){return _.A("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.A(_.v,{cond:C,
then:function(X){return _.A(_.$zt,{data:X})}}))}))},"ln"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Bm}});_.CI(_.F(function(){return _.A("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.A("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.A("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.A(_.cvt,null)),_.A(_.Xge,{data:{rows:1},isExploreHub:!0}))},"mn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.CI(_.F(function(D){var C=D.data;var X=D.standardUnitMinWidth;D=_.U((0,_.pgq)(C));var c=D.next().value,W=D.next().value,p=function(){var a,O=(a=c())==null?void 0:a.contents;return O==null||O.length===0},g=function(){W(Object.assign({},c(),{contents:[]}))};
return _.A("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.fb(_.kb({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var a=_.r(C().chipsShelf,TH6);if(a!=null&&a!=null&&a.autoselectChipOnVisible){var O,P,k=_.r(a==null?void 0:(O=a.contents)==null?void 0:O[(P=a.autoselectedChipIndex)!=null?P:0],_.kL);k&&k.tapCommand&&_.FV(k.tapCommand)}}}))},_.A(_.TO,{contentId:function(){return C().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.A("div",null,_.A("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.A(_.BX,{data:function(){return C().header}},{sectionHeaderViewModel:function(a){return _.A(_.dM,{data:a.data,
disableHorizontalPadding:!0})}})),_.A("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.A(_.BX,{data:function(){return C().chipsShelf}},{chipsShelfViewModel:function(a){return _.A(_.fd,{data:a.data,
callback:g,selectionBehavior:1})}})),_.A("div",null,_.A(_.v,{cond:p,
then:function(){return _.A("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.A(_.Xge,{data:{rows:1},isExploreHub:!0}))}}),_.A(_.BX,{data:function(){var a;
return(a=c())==null?void 0:a.contents}},{richShelfRenderer:function(a){return _.A(_.ipx,{data:a.data,
isInnerShelf:!0,standardUnitMinWidth:X})}})))}))},"nn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Bm,
standardUnitMinWidth:_.Bm}});var Hs=function(){return _.w.apply(this,arguments)||this};
_.h(Hs,_.w);
Hs.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Hs.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.V([_.m(_.OA),_.z("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],Hs.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Hs.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Number)],Hs.prototype,"standardUnitMinWidth",void 0);_.V([_.yj({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Hs);
_.G(Hs,"ytd-rich-section-renderer",function(){if(oXm!==void 0)return oXm;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return oXm=D},{mode:_.Wc("kevlar_poly_si_batch_j029")?
1:2});_.CI(_.KUw,"yt-profile-identity-info-view-model",{props:{data:_.Bm,hideDivider:_.Bm,isChannelInfoCard:_.Bm}});_.CI(_.vjX,"yt-page-header-view-model",{props:{data:_.Bm,noPadding:_.Bm,enableBanner:_.Bm,cinematicContainerTopbarOffset:_.Bm,allowCinematicContainerOverflow:_.Bm,displayAsSidebar:_.Bm,displayAsPanel:_.Bm,alwaysUseMediumTextDescription:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=function(){var W;return(W=C().numColumns)!=null?W:2},c=function(){return X()>1?3:2};
D={};return _.A("ytd-rich-grid-group",{class:_.g$("ytdRichGridGroupHost",(D.ytdRichGridGroupHostFirstColumn=function(){return C().colIndex===0},D)),
style:_.P0({"--ytd-rich-grid-group-num-columns":X,"--ytd-rich-grid-items-per-group":c})},_.A("div",{class:"ytdRichGridGroupContents"},_.A(_.BX,{data:function(){var W;return(W=C().contents)==null?void 0:W.slice(0,c())}},{richItemRenderer:function(W){return _.A(_.$E5,{data:W.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"on"),"ytd-rich-grid-group",{props:{data:_.Bm}});var JO=function(){var D=_.w.apply(this,arguments)||this;D.resizeOnObserverInit=!1;D.isInlinePreviewDisabled=_.b("web_disable_inline_preview");D.disableStickyFilterBar=!1;D.transparentBackgroundChipsBar=!1;D.hideChipsBar=!1;D.isWatchDefaultLayout=!0;D.continuationShowButton=!1;D.rowReducedHorizontalMargin=!1;D.useCompactList=!1;D.manualDownloadsPresent=!1;D.smartDownloadsPresent=!1;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;
D.elementsPerRow=4;D.typographyBump=!1;D.slimItemsPerRow=1;D.pageLoadingFromNavigation=!1;D.resizeObserver=null;D.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"};D.rendererToTagNameMap=new Map(Object.entries(D.contentMapping()).map(function(C){var X=
_.U(C);C=X.next().value;X=X.next().value;return[C,X.component]}));
D.insertedContent=new Map;return D};
_.h(JO,_.w);_.S=JO.prototype;_.S.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var D=_.U(_.SY(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),C=D.next();!C.done;C=D.next())C.value.useCompactList=this.useCompactList};
_.S.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var D=_.U(_.SY(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),C=D.next();!C.done;C=D.next())C=C.value,C.sizing=this.sizing,C.typographyBump=this.typographyBump};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.S.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]]"}}}};
_.S.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}}};
_.S.attached=function(){document.addEventListener("yt-page-type-changed",_.Pr(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.Pr(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22582_throttledOnResize=new _.Al(this.resizeObserved,_.BK("rich_grid_resize_delay_ms",50),this)};
_.S.detached=function(){var D;(D=this.resizeObserver)==null||D.disconnect();document.removeEventListener("yt-page-type-changed",_.Pr(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.Pr(this,this.onFeedCustomizationScrollUp))};
_.S.insertRichSection=function(D){var C=D.richItemTargetId;D=D.richSectionRendererToInsert;C&&D&&(this.insertedContent.set(C,{content:D,timestamp:Date.now()}),this.reflowContent())};
_.S.computeIsInlinePreviewEnabled=function(D,C,X){return _.b("web_disable_inline_preview")?!1:!X&&_.mF3({miniplayerIsActive:D,miniplayerPlaybackState:C})};
_.S.computeSizing=function(){var D=_.FkF(this.data);if(D||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return D?this.useCompactList?"COMPACT":D:this.miniMode?"COMPACT":"STANDARD"};
_.S.updateItemMinAndMaxWidth=function(){var D=_.BK("rich_grid_max_item_width",500);D>0&&_.Os(this.hostElement,{"--ytd-rich-grid-item-max-width":D+"px"});var C;D=this.getRichItemMinWidth((C=this.hostElement)==null?void 0:C.clientWidth);D>0&&_.Os(this.hostElement,{"--ytd-rich-grid-item-min-width":D+"px"})};
_.S.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.S.resizeObserved=function(){_.Ct(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.S.onPageChange=function(){var D=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Ct(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.qX.addJob(function(){D.pageLoadingFromNavigation=!1;D.setMasthead();D.maybeSetBigYoodle();D.forceRefreshAndLog();D.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.S.dataChanged=function(){var D=this;_.Ct(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.A0(this,function(){D.updateRichItemGridPositions();D.contentsElement&&_.Os(D.hostElement,{"--ytd-rich-grid-content-offset-top":D.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.S.initResizeObserver=function(){var D=this;if(window.ResizeObserver){var C;(C=this.resizeObserver)==null||C.disconnect();var X=!1;this.resizeObserver=new ResizeObserver(function(){if(X){var c;(c=D.resizeObserver)==null||c.disconnect();var W;(W=D.JSC$22582_throttledOnResize)==null||W.fire();requestAnimationFrame(function(){var g;(g=D.JSC$22582_throttledOnResize)==null||g.fire();D.initResizeObserver()})}else if(X=!0,D.resizeOnObserverInit){var p;
(p=D.JSC$22582_throttledOnResize)==null||p.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.S.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Ct(this.hostElement,"ytd-rich-item-index-update-action")};
_.S.updateElementsPerRow=function(){_.Ct(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.oI({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.oI({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.S.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.S.onRichShelfRendererCollapse=function(D){if(this.shownItems){var C=D.detail;D=this.shownItems.findIndex(function(c){var W,p;return((p=_.r(c==null?void 0:(W=c.richSectionRenderer)==null?void 0:W.content,_.eXM))==null?void 0:p.trackingParams)===C});
var X=D+1;D<0||X>=this.contentsElement.children.length||!this.shownItems[X].richItemRenderer||this.contentsElement.children[X].scrollIntoView({behavior:"smooth",block:"start"})}};
_.S.onSoftReloadPage=function(){this.scrollUpToTop()};
_.S.handleRerenderDownloadsData=function(){_.b("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.S.handlePlaylistRemoveVideosAction=function(D){var C;if(((C=_.r(D,_.MUf))==null?0:C.setVideoIds)&&this.data&&this.data.contents){D=_.r(D,_.MUf).setVideoIds;for(C=this.data.contents.length-1;C>=0;){var X=_.r(this.data.contents[C],_.RZ);(X=X&&_.r(X.content,_.Id))&&X.setVideoId&&D.includes(X.setVideoId)&&this.splice("data.contents",C,1);C--}this.updateIndices()}};
_.S.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".richItemRenderer.index",_.jV(String(D+1)))};
_.S.hasTopRowInlinePlayableVideoWithEndorsement=function(D){var C;return!((C=D.slice(0,this.getItemsPerRow()))==null||!C.some(function(X){var c;X=_.r(X==null?void 0:(c=X.richItemRenderer)==null?void 0:c.content,_.$L);var W;return(X==null?void 0:X.inlinePlaybackEndpoint)&&(X==null?void 0:(W=X.thumbnailOverlays)==null?void 0:W.some(function(p){return p.thumbnailOverlayEndorsementRenderer}))}))};
_.S.refreshGridLayoutNew=function(D,C,X,c){var W=c.postsPerRow;var p=c.slimItemsPerRow;var g=c.gameCardsPerRow;c=c.miniGameCardsPerRow;var a;if((a=this.data)==null||!a.contents||!this.containerWidth)return!1;var O;if((O=this.data.responsiveContainerConfiguration)==null?0:O.responsiveSize){var P=_.uw3(this.data.responsiveContainerConfiguration,this.containerWidth,2),k;a=_.Zw(Object.assign({},P,{standardUnitMinWidth:(k=this.data)==null?void 0:k.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&P.isCompactList)}else a=_.Zw({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(P=this.data)==null?void 0:P.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=a.typographyBump;k=!1;if(D||this.elementsPerRow!==a.numItems||this.postsPerRow!==W||this.slimItemsPerRow!==p||this.gameCardsPerRow!==
g||this.miniGameCardsPerRow!==c||this.gutter!==a.gutter)k=this.elementsPerRow!==a.numItems,this.elementsPerRow=a.numItems,this.postsPerRow=W,this.slimItemsPerRow=p,this.gameCardsPerRow=g,this.miniGameCardsPerRow=c,this.gutter=a.gutter,this.itemWidth=a.itemWidth,this.reflowContent(C),_.Os(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.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(_.oI({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:a.maxContainerWidth}));return k};
_.S.refreshGridLayout=function(D,C){var X,c=(X=this.hostElement)==null?void 0:X.clientWidth;this.containerWidth=this.adjustRichGridWidth(c,!0);var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return D&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(D=!0,this.pendingForceReflow=!1);X=this.getRichItemMinWidth(c);var p=this.isShortsPanel?146:194,g=this.getMiniGameCardMinWidth(),a=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.BK("rich_grid_default_max_items_per_row",
6);c=X=this.calcElementsPerRow(X,a);(W=X<=3&&this.miniModeAllowed())&&(X=this.calcElementsPerRow(240,4));var O=this.calcMaxSlimElementsPerRow(X,a,this.isDefaultGrid);a=this.calcElementsPerRow(p,O);var P=this.calcElementsPerRow(this.isCompactGrid?p:154,O);p=this.calcElementsPerRow(this.isCompactGrid?p:g,O);g=!1;if(this.sizing)return this.refreshGridLayoutNew(D,C,W,{postsPerRow:c,slimItemsPerRow:a,gameCardsPerRow:P,miniGameCardsPerRow:p});if(D||this.elementsPerRow!==X||this.postsPerRow!==c||this.slimItemsPerRow!==
a||this.gameCardsPerRow!==P||this.miniGameCardsPerRow!==p)g=this.elementsPerRow!==X,this.elementsPerRow=X,this.postsPerRow=c,this.slimItemsPerRow=a,this.gameCardsPerRow=P,this.miniGameCardsPerRow=p,this.reflowContent(C),this.updateElementsPerRow(),_.Os(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)&&_.Os(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(W);_.Ct(this.hostElement,"yt-rich-grid-layout-refreshed");return g};
_.S.getRichItemMinWidth=function(D){var C=_.BK("rich_grid_min_item_width",310);if(!_.b("kevlar_disable_min_width_override")){var X,c;C=(c=(X=this.data)==null?void 0:X.minItemWidth)!=null?c:C}return C+_.t7r(D)};
_.S.calcMaxSlimElementsPerRow=function(D,C,X){return(X===void 0?0:X)?D===1?2:D%2===0?D/2*3:D+2:C*2};
_.S.adjustRichGridWidth=function(D,C){var X=_.b("disable_rich_grid_guide_compensation");if(!this.isWatch&&!X){X=_.iX().resolve(_.vK(_.iC));var c=X==null?void 0:X.guideElement;if(!(!X||X.getData()||c!=null&&c.opened||X.getMiniGuideVisible()))if(X.canFitPersistentGuide(D)&&X.getGuideExpandsAutomatically()){var W,p,g=Number((W=window.getComputedStyle(this.hostElement))==null?void 0:(p=W.getPropertyValue("--app-drawer-width"))==null?void 0:p.replace("px",""));D-=g||0}else if(X.canFitMiniGuide(D)){var a;
W=Number((g=window.getComputedStyle(this.hostElement))==null?void 0:(a=g.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:a.replace("px",""));D-=W||0}}D>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(D-=C?32:48));return D};
_.S.calcElementsPerRow=function(D,C){var X=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),c=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((X+c)/(D+c))||1,C)};
_.S.reflowContent=function(D){var C=this;if(!this.isReflowing){this.isReflowing=!0;var X,c,W=!!((X=this.data)==null?0:(c=X.contents)==null?0:c.some(function(a){return _.r(a,_.dE)}));
X=this.getItemsPerRow();var p;c=(p=this.data)==null?void 0:p.reflowOptions;D&&(_.sp("rgr_s"),_.A0(this,function(){_.sp("rgr_nrf")}));
D={};(p=_.SY(this.hostElement).querySelector("#contents"))&&(D={contentElement:p,rendererToTagNameMap:this.rendererToTagNameMap});p=(p=this.data.contents)?p.slice():[];W=EFd(p,X,W,c,this.getRichGridStyle(),D,this.insertedContent);var g=W.orderedContent;if(W=W.pinnedContentNotShownTargetIds)for(W=_.U(W),X=W.next();!X.done;X=W.next())this.insertedContent.delete(X.value);W=function(){C.shownItems=g;C.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(g),_.A0(this,W)):W()}};
_.S.getFirstRowItems=function(D){for(var C=[],X=0;X<D.length;X++){var c=void 0,W=void 0,p=void 0,g=void 0,a=void 0,O=void 0;if(((c=D[X])==null?void 0:(W=c.richItemRenderer)==null?void 0:W.rowIndex)===0||((p=D[X])==null?void 0:(g=p.richGroupRenderer)==null?void 0:g.rowIndex)===0||((a=D[X])==null?void 0:(O=a.richSectionRenderer)==null?void 0:O.rowIndex)===0)C.push(D[X]);else break}return C};
_.S.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.S.resetInsertedContentIfNeeded=function(){(_.b("web_explore_hub_on_hover")||_.b("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.S.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.S.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.S.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.S.terminateVideoPreview=function(){_.Ct(this.hostElement,"yt-terminate-video-preview-action")};
_.S.updateRichItemGridPositions=function(){var D={gridData:{gridColumnCount:this.elementsPerRow}},C;((C=this.data)==null?0:C.trackingParams)&&(C=_.LN())&&_.zo(C,_.bO(this.data.trackingParams),D);_.Ct(this.hostElement,"ytd-rich-item-index-update-action")};
_.S.miniModeAllowed=function(){return this.isChannelPage};
_.S.getMiniGameCardMinWidth=function(){return 154};
_.S.updateMiniMode=function(D){this.miniMode=this.miniModeAllowed()&&D;this.ytdReduxBehavior.dispatch(_.oI({type:"SET_RICH_GRID_MINI_MODE",payload:D}))};
_.S.isCurrentPage=function(){return location.pathname===this.pagePath};
_.S.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var D=_.iX().resolve(_.lu).getCurrentPage();D&&D.setScrollTop(0)}};
_.S.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.S.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.S.maybeSetBigYoodle=function(){var D,C=(D=this.data)==null?void 0:D.bigYoodle;this.bigYoodleData!==C&&(this.bigYoodleData=C)};
_.S.setMasthead=function(){var D;((D=this.data)==null?0:D.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.S.getRichGridStyle=function(){var D,C;return(C=(D=this.data)==null?void 0:D.style)!=null?C:"RICH_GRID_STYLE_UNKNOWN"};
_.S.onIsShortsGridChange=function(){var D=this.ytdReduxBehavior,C=D.dispatch,X=this.getRichGridStyle();C.call(D,_.oI({type:"SET_RICH_GRID_STYLE",payload:X}))};
_.S.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.$a.Object.defineProperties(JO.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var D=_.iX().resolve(_.lu).getCurrentPage(),C,X,c;return(((C=this.data)==null?void 0:C.targetId)==="browse-feedFEsfv_audio_pivot"||_.b("web_enable_channel_pivot_panel")&&((X=this.data)==null?void 0:X.targetId)==="browse-feedFEsfv_channel_pivot"||_.b("web_enable_effect_pivot_panel")&&((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_effect_pivot")&&(D==null?void 0:D.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.b("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 D;return!((D=this.data)==null?0:D.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.iX().resolve(_.lu).getCurrentPage())==null?void 0:D.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.iX().resolve(_.lu).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?0:D.enableContentSpecificAspectRatio)||((C=this.data)==null?0:(X=C.responsiveContainerConfiguration)==null?0:X.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.BK("web_continuation_handler_margin",0):0}}});
JO.prototype.onIsShortsGridChange=JO.prototype.onIsShortsGridChange;JO.prototype.onReloadContinuationFinish=JO.prototype.onReloadContinuationFinish;JO.prototype.reflowContent=JO.prototype.reflowContent;JO.prototype.handleRerenderDownloadsData=JO.prototype.handleRerenderDownloadsData;JO.prototype.onRichShelfRendererCollapse=JO.prototype.onRichShelfRendererCollapse;JO.prototype.onRequestElementsPerRow=JO.prototype.onRequestElementsPerRow;JO.prototype.contentLengthChanged=JO.prototype.contentLengthChanged;
JO.prototype.dataChanged=JO.prototype.dataChanged;JO.prototype.onSizingChange=JO.prototype.onSizingChange;JO.prototype.onUseCompactListChange=JO.prototype.onUseCompactListChange;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],JO.prototype,"ironResizableBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],JO.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],JO.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],JO.prototype,"componentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],JO.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],JO.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],JO.prototype,"miniMode",void 0);_.V([_.n({value:[]}),_.z("design:type",Array)],JO.prototype,"shownItems",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],JO.prototype,"isReflowing",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],JO.prototype,"isFilteredFeed",void 0);_.V([_.n({selector:_.efW}),_.z("design:type",Boolean)],JO.prototype,"guideIsExpanded",void 0);
_.V([_.n({selectorArgs:["entitySelectorType"],selector:function(D,C){if(_.b("kevlar_modern_downloads_page")&&C&&C!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(C){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":C=D.entities;var X=_.xP(C),c=_.Le(C),W=_.q7J(D),p=_.MOR(D),g=_.feJ(D),a=_.Qsr(C),O=_.QZ(X),P=_.s1(C);return _.OSm(X,c,a,_.KVF(C),W,p,O,P,g,_.Rfm(D),_.Nh(D));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return D=_.xP(D.entities),_.Pv3(D);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return D=
_.i4Z(D.entities),_.$pt(D);default:_.fQ(new _.Zf("Error: entitySelectorType defined but not matched in selector.",D,C))}}}),
_.z("design:type",Object)],JO.prototype,"entityDrivenRichGridData",void 0);_.V([_.n(),_.z("design:type",Object)],JO.prototype,"resizeOnObserverInit",void 0);_.V([_.n(),_.z("design:type",Object)],JO.prototype,"bigYoodleData",void 0);_.V([_.n(),_.z("design:type",Object)],JO.prototype,"mastheadData",void 0);_.V([_.n(),_.z("design:type",Boolean)],JO.prototype,"isInlinePreviewDisabled",void 0);_.V([_.n(),_.z("design:type",Object)],JO.prototype,"disableStickyFilterBar",void 0);
_.V([_.n(),_.z("design:type",Object)],JO.prototype,"transparentBackgroundChipsBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],JO.prototype,"hideChipsBar",void 0);_.V([_.n(),_.z("design:type",Object)],JO.prototype,"isWatchDefaultLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],JO.prototype,"continuationShowButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],JO.prototype,"rowReducedHorizontalMargin",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],JO.prototype,"useCompactList",void 0);_.V([_.n({selector:function(D){return _.Le(D.entities).length>0}}),
_.z("design:type",Object)],JO.prototype,"manualDownloadsPresent",void 0);_.V([_.n({selector:function(D){return _.xP(D.entities).length>0}}),
_.z("design:type",Object)],JO.prototype,"smartDownloadsPresent",void 0);_.V([_.n({selector:_.Nh}),_.z("design:type",Object)],JO.prototype,"isOnline",void 0);_.V([_.n({selector:_.MOR}),_.z("design:type",Object)],JO.prototype,"shouldRenderDownloadsBanner",void 0);_.V([_.n({selector:_.Rfm}),_.z("design:type",Object)],JO.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.n({selector:_.q7J}),_.z("design:type",Object)],JO.prototype,"hasOptedIntoSmartDownloads",void 0);
_.V([_.vr("useCompactList"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"onUseCompactListChange",null);_.V([_.vr("sizing","typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"onSizingChange",null);_.V([_.n({selector:_.nZd}),_.z("design:type",Number)],JO.prototype,"miniplayerPlaybackState",void 0);_.V([_.n({selector:_.E1}),_.z("design:type",Boolean)],JO.prototype,"miniplayerIsActive",void 0);
_.V([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.z("design:type",Boolean)],JO.prototype,"isInlinePreviewEnabled",void 0);_.V([_.n({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.z("design:type",String)],JO.prototype,"sizing",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],JO.prototype,"elementsPerRow",void 0);
_.V([_.n(),_.z("design:type",Object)],JO.prototype,"typographyBump",void 0);_.V([_.n(),_.z("design:type",Number)],JO.prototype,"itemWidth",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLElement)],JO.prototype,"headerElement",void 0);_.V([_.kn("#contents"),_.z("design:type",HTMLElement)],JO.prototype,"contentsElement",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"dataChanged",null);
_.V([_.bH("data.contents.length"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"contentLengthChanged",null);_.V([_.$n("yt-request-elements-per-row"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"onRequestElementsPerRow",null);
_.V([_.$n("yt-rich-shelf-renderer-collapse"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],JO.prototype,"onRichShelfRendererCollapse",null);_.V([_.bH("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"handleRerenderDownloadsData",null);
_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],JO.prototype,"entitySelectorType",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isSub",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isWatch",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isShortsPanel",null);_.V([_.n({reflectToAttribute:!0}),_.e("isWatch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"reducedTopMargin",null);_.V([_.n({reflectToAttribute:!0}),_.e("data","isWatch","isWatchDefaultLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"noTopMargin",null);
_.V([_.n({reflectToAttribute:!0}),_.e("isInlinePreviewEnabled","shownItems"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"topRowEndorsement",null);_.V([_.e("data.header"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"hideHeader",null);_.V([_.$n("yt-rich-grid-reflow"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],JO.prototype,"reflowContent",null);
_.V([_.$n("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"onReloadContinuationFinish",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isSlimGrid",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isShortsGrid",null);
_.V([_.e("data","isSlimGrid","isShortsGrid"),_.n(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"noRichItemGutterMargins",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isShortsGridSlim",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isCompactGrid",null);
_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"isDefaultGrid",null);_.V([_.e("data.targetId"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"hideChipsBarOnWatch",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JO.prototype,"onIsShortsGridChange",null);
_.V([_.e("data.enableContentSpecificAspectRatio"),_.n(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JO.prototype,"force16By9ThumbnailAspectRatio",null);_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],JO.prototype,"continuationTriggerOffset",null);_.V([_.yj({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],JO);
_.G(JO,"ytd-rich-grid-renderer",function(){if(D36!==void 0)return D36;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return D36=D},{mode:2});var Ap$=_.F(function(D){return _.A("yt-feedback-prompt-view-model",{class:_.g$("ytFeedbackPromptViewModelHost",D.className)},_.A(_.v,{cond:function(){return D.data().text},
then:function(C){return _.A(_.QG,{text:C,className:"ytFeedbackPromptViewModelPrompt"})}}),_.A(_.BX,{data:function(){return D.data().likeButton}},{likeButtonViewModel:function(C){return _.A(_.$d,{data:C.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.A(_.BX,{data:function(){return D.data().dislikeButton}},{dislikeButtonViewModel:_.PO}))},"pn");var Pom=_.F(function(D){var C=_.U((0,_.gK5)(D.data)).next().value,X=function(){var c,W;return(W=(c=C().contents)==null?void 0:c.length)!=null?W:0};
return _.A("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return D.data().targetId||""},
"aria-busy":function(){var c,W;return(W=(c=C().contents)==null?void 0:c.some(function(p){return!!p.chatLoadingViewModel}))!=null?W:!1}},_.A(_.BX,{data:function(){return D.data().header}},{chipBarViewModel:_.Aix,
sectionHeaderViewModel:_.dM}),_.A(_.BX,{data:function(){return C().contents}},{accordionViewModel:_.R55,
alertBannerViewModel:_.QtN,chatLoadingViewModel:function(c,W){return _.A(_.IRG,{data:c.data,containerHeight:D.containerHeight,isLastItem:function(){return W()===X()-1}})},
chatUserTurnViewModel:function(c,W){return _.A(_.aRG,{data:c.data,containerHeight:D.containerHeight,isLastItem:function(){return W()===X()-1}})},
feedbackPromptViewModel:Ap$,gridShelfViewModel:function(c){return _.A(_.ke,{data:c.data,shouldUseOwnContainerSize:!0,marginSettings:D.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.JiM,linearLayoutViewModel:_.bM,lockupViewModel:function(c){return _.A(_.jx,{data:c.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:D.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.dM,videoOverviewViewModel:_.Smo,youChatItemViewModel:function(c,W){return _.A(_.g76,{data:c.data,pending:!1,containerHeight:D.containerHeight,isLastItem:function(){return W()===X()-1}})}}))},"qn");_.CI(_.F(function(D){var C=_.U((0,_.gK5)(D.data)).next().value,X=_.U(_.BC()),c=X.next().value;X=X.next().value;var W=_.fb(X);X=_.U(_.Li(void 0,void 0,"fqbUqd"));var p=X.next().value,g=X.next().value,a=function(){var O;return _.r((O=D.data().sectionListLayoutConfiguration)==null?void 0:O.layoutConfiguration,HK2)};
_.JU(function(){var O,P=(O=W.value)==null?void 0:O.clientWidth;O=a()?_.CAJ(P,a()):void 0;g(O)});
X={};return _.A("yt-section-list-renderer",{class:_.g$("ytSectionListRendererHost",D.className,(X.ytSectionListRendererHostOverscrollContain=function(){var O;return(O=D.overscrollContain)==null?void 0:O.call(D)},X)),
el:W,"data-target-id":function(){return D.data().targetId||""}},_.A(_.BX,{data:function(){return C().contents}},{itemSectionRenderer:function(O){return _.A(Pom,{data:O.data,
containerLayoutConfig:p,marginSettings:D.marginSettings,containerHeight:function(){return c.height()}})}}))},"rn"),"yt-section-list-renderer",{props:{data:_.Bm,
className:_.R3,marginSettings:_.Bm,overscrollContain:_.Bm}});var $3U;var vX$;var iyJ=function(){return _.w.apply(this,arguments)||this};
_.h(iyJ,_.w);_.V([_.n(),_.z("design:type",Object)],iyJ.prototype,"data",void 0);_.V([_.Yn({is:"yt-alert-renderer",disableElementRegistration:!0})],iyJ);
_.G(iyJ,"yt-alert-renderer",function(){if(vX$===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;$3U===void 0&&($3U=document.createElement("template"));var c=$3U;X.call(C,c.content.cloneNode(!0),D.content.firstChild);vX$=D}D=vX$;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var V_t;V_t=function(D,C,X,c){X||(D?c&&(c.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||c.WINDOW_SIZE_CHANGED&&(C.width!==window.innerWidth||C.height!==window.innerHeight)||c.SAFARI_ABORTED_BY_NEW_TRANSITION&&D instanceof DOMException&&D.name==="AbortError"&&D.message.includes("Old view transition aborted by new view transition"))||_.MN(D):_.MN(Error("xj")))};
_.TLX=function(D,C){C=C===void 0?{}:C;var X,c,W,p,g,a,O,P,k,u,Q,B,K;return _.I(function(L){switch(L.nextAddress){case 1:X=C;c=X.shouldWrap===void 0?!0:X.shouldWrap;W=X.skipTransitionTimeoutMs===void 0?300:X.skipTransitionTimeoutMs;p=X.beforeTransition;g=X.afterTransition;if(!c||!document.startViewTransition||document.visibilityState==="hidden")return L.return(D());a={width:window.innerWidth,height:window.innerHeight};O=!1;(P=p)==null||P();_.KK(L,2);k=document.startViewTransition(D);u=setTimeout(function(){k.skipTransition();
O=!0},W);
return L.yield(k.ready,4);case 4:return clearTimeout(u),L.yield(k.finished,5);case 5:clearTimeout(u);(Q=g)==null||Q();_.SR(L,0);break;case 2:B=_.Eu(L),(K=g)==null||K(),V_t(B,a,O,C.ignoredErrors),_.t_(L)}})};
_.HHk=function(D,C){var X=_.aNo(C);X!=="javascript:"&&X!=="data:"&&D.setAttribute("href",C)};
_.Dj=function(){for(var D=Array(36),C=0,X,c=0;c<36;c++)c==8||c==13||c==18||c==23?D[c]="-":c==14?D[c]="4":(C<=2&&(C=33554432+Math.random()*16777216|0),X=C&15,C>>=4,D[c]=_.jKn[c==19?X&3|8:X]);return D.join("")};
_.J9k=function(D,C,X){D.persistentPanelContainerMap.set(X,C)};/*

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 zco=_.q8(['<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>']),
jE1=_.MY4(zco);jE1.setAttribute("style","display: none;");document.head.appendChild(jE1.content);_.CB=_.PlJ(function(D){var C=_.mv("DIV");D&&(C.className=D);C.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";D=_.mv("DIV");_.TVe(D,"200px","200px");C.appendChild(D);document.body.appendChild(C);D=C.offsetWidth-C.clientWidth;_.ep(C);return D});var M_X;var q2w;var XF=function(){var D=_.w.apply(this,arguments)||this;D.icon=null;return D};
_.h(XF,_.w);XF.prototype.dismiss=function(){_.lE(this.hostElement,"yt-live-chat-error-message-dismiss")};
XF.prototype.computeIcon=function(D){return D&&D.iconType?"yt-icons:"+D.iconType.toLowerCase():"yt-icons:close"};
_.V([_.n(),_.z("design:type",Object)],XF.prototype,"data",void 0);_.V([_.n({computed:"computeIcon(data.icon)"}),_.z("design:type",Object)],XF.prototype,"icon",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],XF);
_.G(XF,"yt-live-chat-error-message-renderer",function(){if(q2w===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;M_X===void 0&&(M_X=document.createElement("template"));var c=M_X;X.call(C,c.content.cloneNode(!0),D.content.firstChild);q2w=D}D=q2w;return D},{mode:0});
}catch(e){_._DumpException(e)}
try{
var wK$,FCJ,ZCB,GVJ,HCN,jQd,Mqv,qYz,ffD,dGf,RGD,lfN,DXN,m4,Cl6,Xzm,cCz,ohd,WIv,pzm,SHJ,UXv,ghv,Iid,OqU,ACD,Pld,$X6,vhd,iqf,kbf,usz,QpD,BD$,bqD,rCz,KI6,hxB,spD,exU,tRd,NDz,YHJ,yCm,xXH,LIH,FI6,Zqz,Gb2,VR$,TD6,Hqm,JCm,zxz,nhD;wK$=function(D,C){return _.aI(D.entities,"timedMarkersListSyncEntity",C)};
FCJ=function(D,C){return _.aI(D.entities,"liveReactionsDataEntity",C)};
ZCB=function(D,C){D=_.aI(D.entities,"booleanEntity",C);return!(!D||!D.value)};
GVJ=function(D,C){var X=_.LN();X&&D&&_.F_(X,_.bO(D),C)};
_.Vqv=function(D){return D.watch.isWatchActive};
_.TTj=function(D){return!_.Wfr(D)};
_.si=function(D){return D.watch.watchScrollTop};
HCN=function(D){return D.watch.isLiveChatCollapsed};
_.JgB=function(){_.b("web_watch_log_theater_mode")&&_.slj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.zGv=function(D,C,X){if(!D.includes("START_TIME_PLACEHOLDER")||!D.includes("END_TIME_PLACEHOLDER"))return D;var c=new Date(0),W=new Date(0);c.setUTCMilliseconds(C);W.setUTCMilliseconds(X);return D.replace("START_TIME_PLACEHOLDER",_.H_(c,7)).replace("END_TIME_PLACEHOLDER",_.H_(W,7))};
jQd=function(D){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:D}}]}}}};
Mqv=function(D,C,X){var c=_.b("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;C=Object.assign({},{text:C,hasGradientBackground:X},c&&{itemTargetId:c});c=_.b("web_enable_chat_autoscroll_to_user_turn")&&c?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:c,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:C}],insertByPositionInSection:{sectionTargetId:D,
position:"INSERTION_POSITION_LAST"}}}]},c?{scrollConfig:c}:{})}}};
qYz=function(D,C){return _.aI(D.entities,"booleanEntity",C)};
ffD=function(){return function(D){_.fG(_.bK("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:D}))}};
dGf=function(D){switch(D){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}};
RGD=function(D,C,X){var c=_.Y7(X);D&&C&&c&&D.getPlayerPromise().then(function(W){_.tFt(c)&&_.je();(new _.gQ(W)).executeCommand(c,C);_.b("continue_playback_on_desktop_companion_click")||W.pauseVideo()})};
lfN=function(D){var C=_.CT(),X;if(X=_.Df("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;X=(c=X())==null?void 0:c.layoutId}else X=null;RGD(C,X,D)};
DXN=function(D){var C=_.CT(),X;if(X=_.Df("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;X=(c=X())==null?void 0:c.layoutId}else X=null;RGD(C,X,D)};
m4=function(D,C){var X=D<0?"-":"";D=Math.abs(D);var c=Math.floor(D/3600),W=Math.floor(D)%3600,p=Math.floor(W/60);W=Math.floor(W)%60;var g="";(C===void 0?0:C)&&(g="."+Math.round((D-Math.floor(D))*10));return c>0?X+c+":"+(p<10?"0"+p:""+p)+":"+(W<10?"0"+W:""+W)+g:X+p+":"+(W<10?"0"+W:""+W)+g};
Cl6=function(D){var C=D.match(/[^0-9:\.]/g);if(C&&C.length>0)return null;D=D.split(":");if(D.length===0||D.length>3)return null;C=1;for(var X=0;D.length>0;){var c=D.pop();if(c===void 0)break;var W=Number(c);if(c===""||isNaN(W))return null;X+=W*C;C*=60}return X};
Xzm=function(D,C,X,c){D=Math.max(X,D);C=Math.min(C,c-X);D+C>c?(X=c,D=X-C):X=D+C;return{start:D,end:X}};
cCz=function(D,C,X,c,W,p){D<X?D=X:D+W>c&&(D=c-W);C>c&&(C=c);C=Math.min(D+p,Math.max(D+W,C));return{start:D,end:C}};
ohd=function(D,C,X,c,W,p){C>c?C=c:C-W<X&&(C=X+W);D<X&&(D=X);D=Math.min(C-W,Math.max(C-p,D));return{start:D,end:C}};
WIv=function(D){return _.b("web_transcript_cue_id_killswitch")?String(D):"ytd-transcript-renderer_"+D};
pzm=function(D){return _.b("web_transcript_cue_id_killswitch")?!0:D.startsWith("ytd-transcript-renderer")};
SHJ=function(D){var C=_.CT(),X;if(X=_.Df("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;X=(c=X())==null?void 0:c.layoutId}else X=null;RGD(C,X,D)};
UXv=function(D){D.style.height="auto";D.style.height=Math.min(D.scrollHeight||20,80)+"px"};
ghv=function(){var D;return String(Math.floor(((D=_.AG())==null?void 0:D.getCurrentTime())||0)*1E3)};
Iid=function(D){if(D.onWelcomeCommand)return _.Y7(D.onWelcomeCommand);D=_.r(D.inputComposerViewModel,aiv);if(D==null?0:D.welcomeFeatureContinuation)return _.qsN(D.welcomeFeatureContinuation)};
OqU=function(D){var C=_.CT(),X;X=(X=_.Df("yt.www.ads.eventcache.getLastCompanionData"))?(X=X())&&X.layoutId:null;RGD(C,X,D)};
ACD=function(D){var C=_.CT(),X;X=(X=_.Df("yt.www.ads.eventcache.getLastCompanionData"))?(X=X())&&X.layoutId:null;RGD(C,X,D)};
Pld=function(D){if(D.simpleText)return[{text:D.simpleText}];var C;return(C=D.runs)!=null?C:[]};
$X6=function(D){var C=D.startEndTimeTemplate,X=D.startTimeUtcMillis;D=D.endTimeUtcMillis;if(C&&X&&D)return _.jV(_.zGv(_.Mh(C),Number(X),Number(D)))};
vhd=function(D,C){var X,c,W=D==null?void 0:(X=D.viewCount)==null?void 0:(c=X.videoViewCountRenderer)==null?void 0:c.shortViewCount;if(!C&&W)return W;var p,g;return D==null?void 0:(p=D.viewCount)==null?void 0:(g=p.videoViewCountRenderer)==null?void 0:g.viewCount};
iqf=function(D,C){var X=D==null?void 0:D.relativeDateText;return!C&&X?[X,!0]:[D==null?void 0:D.dateText,!1]};
kbf=function(D,C,X,c,W){c=c===void 0?"":c;W=W===void 0?!1:W;var p=vhd(D,C),g=_.U(iqf(D,C)),a=g.next().value;g=g.next().value;C=C?D==null?void 0:D.sponsorsOnlyFirstTimeLongText:D==null?void 0:D.sponsorsOnlyFirstTimeShortText;var O=[];X&&p&&O.push(p);!X&&g||!a||O.push(a);D=[W?D==null?void 0:D.subtitle:void 0].concat(_.VB(O),[C,D==null?void 0:D.stationName,D==null?void 0:D.rating,D?$X6(D):void 0,D==null?void 0:D.upNextProgramText,D==null?void 0:D.superTitleLink]).filter(function(P){return!!P});
X={runs:[]};for(W=0;W<D.length;W++)X.runs.push.apply(X.runs,_.VB(Pld(D[W]))),W<D.length-1&&X.runs.push({text:" "+c+" "});return X};
usz=function(D){return D.filter(function(C){return!_.r(C,_.Zt)})};
QpD=function(D){var C,X,c,W;if(D=D==null?void 0:(C=D.contents)==null?void 0:(X=C.twoColumnWatchNextResults)==null?void 0:(c=X.results)==null?void 0:(W=c.results)==null?void 0:W.contents){var p,g;return(g=(p=D.find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?void 0:p.videoPrimaryInfoRenderer)==null?void 0:g.updatedMetadataEndpoint}};
BD$=function(D,C){var X;return(X=D.sourceConfigs)==null?void 0:X.find(function(c){return c.videoId===C})};
bqD=function(D){return D==="End of video"||D==="End of playlist"};
rCz=function(D){var C,X,c,W;return(C=D.getWatchNextResponse())==null?void 0:(X=C.contents)==null?void 0:(c=X.twoColumnWatchNextResults)==null?void 0:(W=c.playlist)==null?void 0:W.playlist};
KI6=function(D){var C,X,c,W,p,g;return(C=rCz(D))==null?void 0:(X=C.playlistButtons)==null?void 0:(c=X.menuRenderer)==null?void 0:(W=c.topLevelButtons)==null?void 0:(p=W[0])==null?void 0:(g=p.playlistLoopButtonRenderer)==null?void 0:g.playlistLoopStateEntityKey};
hxB=function(D){var C=_.iX().resolve(_.iP),X;return(C=(X=_.r(C.getAutoplayEndpoint(),_.TC))==null?void 0:X.playlistId)&&C===D};
spD=function(D,C,X,c,W){function p(){_.qX.cancelJob(ei);var g=xXH(C,X/D.getPlaybackRate()),a=g.hours,O=g.minutes;g=(g.seconds*1E3||6E4)/D.getPlaybackRate();D.setVideoTimeLeft(LIH(a,O));c&&D.getPlayerState()!==0&&D.setSleepTimerTimeLeft(LIH(a,O,!0));(a>0||O>0)&&!W&&(ei=_.hG(_.qX,p,g))}
_.qX.cancelJob(ei);ei=_.hG(_.qX,p)};
exU=function(D,C,X){function c(){_.qX.cancelJob(mXd);var W=xXH(C,X),p=W.hours;W=W.minutes;var g=6E4/D.getPlaybackRate();if(p>0||W>0)D.setSleepTimerTimeLeft(LIH(p,W,!0)),mXd=_.hG(_.qX,c,g)}
_.qX.cancelJob(mXd);mXd=_.hG(_.qX,c)};
tRd=function(D,C){var X=D.getVolume()/(C/500),c=function(W){_.qX.cancelJob(Ehv);var p=Math.floor(W-X);D.setVolume(p,!1);p>0&&(Ehv=_.hG(_.qX,function(){c(p)},500))};
_.qX.cancelJob(Ehv);Ehv=_.hG(_.qX,function(){c(D.getVolume())})};
NDz=function(D,C){_.qX.cancelJob(Ehv);C&&D.syncVolume()};
YHJ=function(){var D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.I7("SLEEP_TIMER_DISRUPTED")}}}}};_.iX().resolve(_.uX).resolveCommand(D)};
yCm=function(D){return(D.getDuration()-D.getProgressState().current)*1E3};
xXH=function(D,C){D=D+C-(0,_.kh)();if(D<=0)return{hours:0,minutes:0,seconds:0};var X=new nhD(0,0,0,0,0,0,D);D=X.getHours();C=X.getMinutes();X=X.getSeconds();X!==0&&C++;C!==0&&C%60===0&&(D++,C=0);return{hours:D,minutes:C,seconds:X}};
LIH=function(D,C,X){return D>0&&C>0?X?_.I7("TIME_LEFT_HOURS_MINUTES",{hours:D.toString(),minutes:C.toString()}):_.I7("TIME_HOURS_MINUTES",{hours:D.toString(),minutes:C.toString()}):D>0?X?_.Op("TIME_LEFT_HOURS",D):_.Op("TIME_HOURS",D):X?_.I7("TIME_LEFT_MINUTES",{minutes:C.toString()}):_.I7("TIME_MINUTES",{minutes:C.toString()})};
FI6=function(D,C){if(D.timelyActions)return D.timelyActions.find(function(X){var c;return((c=_.r(X,wzj))==null?void 0:c.cueRangeId)===C})};
Zqz=function(D){var C=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.rt(D);D.keyMap_.forEach(function(X,c){_.Zn(C,c)||this.remove(c)},D)};
Gb2=function(D,C){D.reloadContinuationItemsCommandMatcher=C};
VR$=function(D,C){var X;return _.I(function(c){return c.nextAddress==1?C&&D.lastWelcomeContinuationSent!==C?_.ZQ1(D)?c.yield(D.panelController.isVisible("PAai_companion"),3):c.jumpTo(2):c.return(!1):c.nextAddress==2||(X=c.yieldResult,X)?c.return(!0):c.return(!1)})};
TD6=function(D){var C,X,c,W,p;return _.I(function(g){if(g.nextAddress==1){if(!D.welcomeOptions)return g.return();C=D.welcomeOptions;X=C.command;c=C.setPending;if(X){var a;var O=(a=_.r(X,_.nI))==null?void 0:a.token}else O=void 0;W=O;return g.yield(VR$(D,W),2)}if(!g.yieldResult)return g.return();D.lastWelcomeContinuationSent=W;(p=c)==null||p(!0);O="youchat-"+Date.now();a=(a=_.AG())?String(Math.floor(a.getCurrentTime())*1E3):void 0;_.yK(X,{form:{formData:_.i7({clientMessageId:O,playerOffsetMs:a,pageContext:_.SFG(D,
D.pageSubtype)})}});_.t_(g)})};
Hqm=function(D,C){_.I(function(X){D.welcomeOptions=C;return X.yield(TD6(D),0)})};
_.Ei=function(D,C){D.insertBefore(C,D.childNodes[0]||null)};
JCm=function(D){if(D>=48&&D<=57||D>=96&&D<=106||D>=65&&D<=90||_.Ik&&D==0)return!0;switch(D){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 _.ak;default:return!1}};
zxz=function(D){if(D.altKey&&!D.ctrlKey||D.metaKey||D.keyCode>=112&&D.keyCode<=123)return!1;if(JCm(D.keyCode))return!0;switch(D.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!_.ak;default:return D.keyCode<166||D.keyCode>183}};
nhD=function(D,C,X,c,W,p,g){this.date=typeof D==="number"?new Date(D,C||0,X||1,c||0,W||0,p||0,g||0):new Date(D&&D.getTime?D.getTime():_.ok())};
_.WT(nhD,_.TI);_.S=nhD.prototype;_.S.getHours=function(){return this.date.getHours()};
_.S.getMinutes=function(){return this.date.getMinutes()};
_.S.getSeconds=function(){return this.date.getSeconds()};
_.S.getMilliseconds=function(){return this.date.getMilliseconds()};
_.S.getUTCDay=function(){return this.date.getUTCDay()};
_.S.getUTCHours=function(){return this.date.getUTCHours()};
_.S.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.S.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.S.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.S.setHours=function(D){this.date.setHours(D)};
_.S.setMinutes=function(D){this.date.setMinutes(D)};
_.S.setSeconds=function(D){this.date.setSeconds(D)};
_.S.setMilliseconds=function(D){this.date.setMilliseconds(D)};
_.S.setUTCHours=function(D){this.date.setUTCHours(D)};
_.S.setUTCMinutes=function(D){this.date.setUTCMinutes(D)};
_.S.setUTCSeconds=function(D){this.date.setUTCSeconds(D)};
_.S.setUTCMilliseconds=function(D){this.date.setUTCMilliseconds(D)};
_.S.add=function(D){_.TI.prototype.add.call(this,D);D.hours&&this.setUTCHours(this.date.getUTCHours()+D.hours);D.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+D.minutes);D.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+D.seconds)};
_.S.JSC$11492_toIsoString=function(D){var C=_.TI.prototype.JSC$11492_toIsoString.call(this,D);return D?C+"T"+_.$J(this.getHours(),2)+":"+_.$J(this.getMinutes(),2)+":"+_.$J(this.getSeconds(),2):C+"T"+_.$J(this.getHours(),2)+_.$J(this.getMinutes(),2)+_.$J(this.getSeconds(),2)};
_.S.equals=function(D){return this.getTime()==D.getTime()};
_.S.toString=function(){return this.JSC$11492_toIsoString()};
_.S.clone=function(){var D=new nhD(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.jp2=function(D){return _.oI({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:D}})};var MRf=new _.A7("imageTileRenderer");var qH6=new _.A7("promotedSparklesWebRenderer");var fiU=new _.A7("adGridCardCollectionViewModel");var dXv=new _.A7("carouselTitleViewModel");var Rx$=new _.A7("ctaCarouselItemViewModel");var liv=new _.A7("textFieldViewModel");_.DN6=new _.A7("engagementPanelHeaderShowNavigationButtonCommand");var CwD=new _.A7("hideEngagementPanelScrimAction");var XLz=new _.A7("setActivePanelItemAction");var cYJ=new _.A7("showEngagementPanelScrimAction");var olB=new _.A7("updateEngagementPanelAction");var WMv=new _.A7("updateSearchInVideoResultsAction");var pL$=new _.A7("transcriptCueGroupRenderer");var SUH=new _.A7("transcriptCueRenderer");var UNm=new _.A7("transcriptFooterRenderer");var glm=new _.A7("engagementPanelAdSubtitleRenderer");var aoD=new _.A7("videoDescriptionFantasySectionViewModel");var Iod=new _.A7("deleteClipEngagementPanelCommand");var OQH=new _.A7("loopCommand");var AYU=new _.A7("changeCreatorEndscreenVisibilityCommand");var PwU=new _.A7("liveChatCallForQuestionsRenderer");var $N$=new _.A7("updateTimedMarkersSyncObserverCommand");var wzj=new _.A7("timelyActionViewModel");var vlj=new _.A7("timelyActionsOverlayViewModel");var iQN=new _.A7("repeatChapterCommand");var kuU=new _.A7("watchPlayerOverflowMenuCommand");var u3U=new _.A7("compositeVideoOverlayRenderer");var QiN=new _.A7("sortFilterSubMenuRenderer");var BOj=new _.A7("switchListItemViewModel");var aiv=new _.A7("inputComposerViewModel");var bQJ=new _.A7("transcriptEditSegmentCommand");var rYj=new _.A7("transcriptUpdateSegmentTextCommand");var KMB=new _.A7("transcriptSearchBoxRenderer");var haB=new _.A7("transcriptSegmentListRenderer");var xNf=new _.A7("transcriptSegmentRenderer");_.LMB=new _.A7("updateDateTextAction");var sij=new _.A7("updateTitleAction");var mNj=new _.A7("updateViewershipAction");var eaD=new _.A7("relatedChipCommand");var El2=new _.A7("carouselLockupRenderer");var tH=new _.A7("expandableVideoDescriptionBodyRenderer");var tev=new _.A7("videoDescriptionHeaderRenderer");var NON=new _.A7("videoDescriptionYouchatSectionViewModel");_.NE=_.BK("kevlar_watch_page_horizontal_margin",24);_.YU$=_.BK("kevlar_watch_page_columns_top_padding",24);_.yY6=426+_.NE*2;_.Ys=_.BK("kevlar_watch_two_column_width_threshold",1E3);_.nl6=_.NE*2;_.wLD=_.BK("kevlar_watch_secondary_width",402);_.FMB=_.BK("kevlar_watch_max_player_width",1280);_.ZQf=_.BK("kevlar_watch_flexy_metadata_height",136);_.Guv=_.nl6+310+_.NE;_.VeB=_.nl6+360+_.NE;var TOB={PAUSE_CHAT:18};var HQB;var JYd;var y9=function(){return _.w.apply(this,arguments)||this};
_.h(y9,_.w);y9.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
y9.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var D=_.r(this.data.button,_.is);D&&(D.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.$a.Object.defineProperties(y9,{template:{configurable:!0,enumerable:!0,get:function(){if(JYd===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;HQB===void 0&&(HQB=document.createElement("template"));var c=HQB;X.call(C,c.content.cloneNode(!0),D.content.firstChild);JYd=D}D=JYd;return D}}});
_.V([_.m(_.as),_.z("design:type",Object)],y9.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({selectorArgs:["data.enabledEntityKey"],selector:ZCB,observer:"onEnabledChange"}),_.z("design:type",Boolean)],y9.prototype,"enabled",void 0);_.V([_.n(),_.z("design:type",Object)],y9.prototype,"data",void 0);_.V([_.Yn({is:"yt-disableable-button-view-model",noInjection:!0})],y9);var za2;var jiD;var MeD=["transVert01","transVert02","transVert03"],qUU="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),np=function(){var D=_.w.apply(this,arguments)||this;D.emojiManager=_.Qd;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};D.reactionBuckets=[];D.noEmojiIdentifier="NO_EMOJI";return D};
_.h(np,_.w);_.S=np.prototype;_.S.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.S.desktopFountainEmojiSizePxChanged=function(){_.Os(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.S.createUserReactionAnimation=function(D){this.createEmojiAnimation(D,!0)};
_.S.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var D;((D=this.data)==null?0:D.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.bK("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.VB(this.emojiContainer.children)).forEach(function(C){C.remove()})};
_.S.detached=function(){this.cleanupFountain()};
_.S.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var D;this.reactionBuckets=_.ZI.unsafeClone((D=this.emojiFountainData)==null?void 0:D.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.S.processEmojiBucket=function(D){var C=this;if(this.reactionBuckets&&!(D>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var X=this.reactionBuckets[D];this.generateEmojiAnimations(X);if(D<this.reactionBuckets.length-1){var c;if(X==null?0:(c=X.duration)==null?0:c.seconds)this.emojiBucketTimerId=setTimeout(function(){C.processEmojiBucket(D+1)},Number(X.duration.seconds)*1E3)}}};
_.S.generateEmojiAnimations=function(D){var C=this,X=this.getRandomEmojiIdFromBucketWithOverride(D);if(X&&X!==this.noEmojiIdentifier){var c=0;D.targetEps?(c=this.linearInterpolateBounded(1,20,100,12,D.emojiSizeIndex||0),this.createEmojiAnimation(X,!1,D.emojiAnimationMs,c),c=this.getEmojiDelayMsFromTargetEps(D.targetEps)):(this.createEmojiAnimation(X),c=this.getEmojiDelayMsFromDistribution(D.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){C.generateEmojiAnimations(D)},c)}};
_.S.getRandomEmojiIdFromBucketWithOverride=function(D){if(!(D&&D.reactionsData&&D.reactionsData.length&&D.totalReactions))return this.noEmojiIdentifier;for(var C=D.totalReactions,X=1,c=_.U(D.reactionsData),W=c.next();!W.done;W=c.next())W=W.value,(W.reactionWeightOverride||W.reactionWeightOverride===0)&&W.reactionCount&&(C-=W.reactionCount,X-=W.reactionWeightOverride);c=!0;X<0&&(c=!1,C=D.totalReactions,X=1);if(c&&X>0&&C===0)if(X===1){W=0;for(var p=_.U(D.reactionsData),g=p.next();!g.done;g=p.next())g=
g.value,g.reactionCount&&g.reactionCount>0&&W++;W=1/W;p=_.U(D.reactionsData);for(g=p.next();!g.done;g=p.next())g.value.reactionWeightOverride=W}else for(W=1/(1-X),p=_.U(D.reactionsData),g=p.next();!g.done;g=p.next())g=g.value,g.reactionWeightOverride&&(g.reactionWeightOverride*=W);W=Math.random();p=0;g=_.U(D.reactionsData);for(var a=g.next();!a.done;a=g.next())if(a=a.value,a.reactionCount&&(p=(a.reactionWeightOverride||a.reactionWeightOverride===0)&&c?p+a.reactionWeightOverride:p+X*a.reactionCount/
C,p>W&&(a.reactionCount--,D.totalReactions--,a=this.reactionItemToEmojiString(a),a!==this.noEmojiIdentifier)))return a;return this.noEmojiIdentifier};
_.S.reactionItemToEmojiString=function(D){if(D.unicodeEmojiId)return D.unicodeEmojiId;if(D.emoteId)return D.emoteId;if(D.videoReactionType)switch(D.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.S.createEmojiAnimation=function(D,C,X,c){C=C===void 0?!1:C;this.lastEmojiRequestedForTesting=D;var W=D.startsWith("yt-icons:"),p=_.ki(this.emojiManager,D);if(p||W){var g=document.createElement("emoji");g.classList.add("yt-emoji-fountain-view-model");g.classList.add(MeD[Math.floor(Math.random()*MeD.length)]);var a=document.createElement("div");a.classList.add("yt-emoji-fountain-view-model");a.classList.add("horizontal-container");a.classList.add(qUU[Math.floor(Math.random()*qUU.length)]);C?(X=document.createElement("div"),
X.classList.add("user-reaction-bubble"),X.classList.add("yt-emoji-fountain-view-model"),a.appendChild(X)):(X&&(g.style.animationDuration=X+"ms",a.style.animationDuration=X+"ms"),c&&(g.style.width=c+"px",g.style.height=c+"px"));W?(W=document.createElement("yt-icon"),W.polymerController.icon=D,c&&(W.style.width=c+"px",W.style.height=c+"px"),D=W):D=this.emojiManager.createEmoji(p,!1);D.classList.add("yt-emoji-fountain-view-model");a.appendChild(D);g.appendChild(a);this.emojiContainer.appendChild(g);
g.addEventListener("animationend",function(){g.remove()});
var O,P;if((O=this.data)==null?0:(P=O.loggingDirectives)==null?0:P.trackingParams)C=C?_.Ia(183501):_.Ia(183500),GVJ(this.data.loggingDirectives.trackingParams,C),_.v0n(C);setTimeout(function(){g&&g.remove()},2E3)}};
_.S.getEmojiDelayMsFromDistribution=function(D){return Math.random()*(D||1)*1E3};
_.S.getEmojiDelayMsFromTargetEps=function(D){return Math.random()*2*(1/D)*1E3};
_.S.linearInterpolateBounded=function(D,C,X,c,W){W=Math.min(Math.max(W,D),X);return(C*(X-W)+c*(W-D))/(X-D)};
np.prototype.onEmojiFountainDataEntityUpdate=np.prototype.onEmojiFountainDataEntityUpdate;np.prototype.desktopFountainEmojiSizePxChanged=np.prototype.desktopFountainEmojiSizePxChanged;np.prototype.isActiveChanged=np.prototype.isActiveChanged;_.V([_.n(),_.z("design:type",_.i9)],np.prototype,"emojiManager",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],np.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],np.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],np.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(D,C){return _.aI(D.entities,"emojiFountainDataEntity",C)}}),
_.z("design:type",Object)],np.prototype,"emojiFountainData",void 0);_.V([_.n(),_.z("design:type",Boolean)],np.prototype,"isActive",void 0);_.V([_.vr("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],np.prototype,"isActiveChanged",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],np.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",String)],np.prototype,"lastEmojiRequestedForTesting",void 0);
_.V([_.n({value:function(){return _.BK("desktop_fountain_emoji_size_px",20)}}),
_.z("design:type",Number)],np.prototype,"desktopFountainEmojiSizePx",void 0);_.V([_.vr("desktopFountainEmojiSizePx"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],np.prototype,"desktopFountainEmojiSizePxChanged",null);_.V([_.kn("#emoji-container"),_.z("design:type",HTMLElement)],np.prototype,"emojiContainer",void 0);
_.V([_.vr("emojiFountainData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],np.prototype,"onEmojiFountainDataEntityUpdate",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],np);
_.G(np,"yt-emoji-fountain-view-model",function(){if(jiD===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;za2===void 0&&(za2=document.createElement("template"));var c=za2;X.call(C,c.content.cloneNode(!0),D.content.firstChild);jiD=D}D=jiD;return D},{mode:0});var fo2;var dNm;var wG=function(){return _.w.apply(this,arguments)||this};
_.h(wG,_.w);wG.prototype.onChoiceChanged=function(){this.data&&_.Os(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
wG.prototype.onChoiceChanged=wG.prototype.onChoiceChanged;_.V([_.n(),_.z("design:type",Object)],wG.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wG.prototype,"onChoiceChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],wG);
_.G(wG,"yt-live-chat-banner-poll-choice",function(){if(dNm===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;fo2===void 0&&(fo2=document.createElement("template"));var c=fo2;X.call(C,c.content.cloneNode(!0),D.content.firstChild);dNm=D}D=dNm;return D},{mode:0});var Raz;var lo$;var Fb=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_button_rework_with_live");D.small=!1;return D};
_.h(Fb,_.w);Fb.prototype.computeIsSmall=function(){var D;return((D=this.buttonOverrides)==null?void 0:D.size)==="S"};
Fb.prototype.computeId=function(){return this.data&&this.data.targetId};
_.V([_.m(_.Is.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],Fb.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",String)],Fb.prototype,"id",void 0);_.V([_.n(),_.z("design:type",Object)],Fb.prototype,"buttonOverrides",void 0);_.V([_.n(),_.z("design:type",Object)],Fb.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Fb.prototype,"modern",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.z("design:type",Object)],Fb.prototype,"small",void 0);_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-button"})],Fb);
_.G(Fb,"yt-live-chat-button",function(){if(lo$===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Raz===void 0&&(Raz=document.createElement("template"));var c=Raz;X.call(C,c.content.cloneNode(!0),D.content.firstChild);lo$=D}D=lo$;return D},{mode:0});var DI6;var CVv;var Zv=function(){var D=_.w.apply(this,arguments)||this;D.inCollapsedBanner=!1;D.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};D.questionButtonOverrides={style:"mono",type:"filled"};return D};
_.h(Zv,_.w);_.S=Zv.prototype;_.S.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]]"}}}}}};
_.S.onContextMenuButtonClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
_.S.onYtRendererstamperFinished=function(){this.menuButton=_.SY(this.hostElement).querySelector("#menu-button")};
_.S.dataChanged=function(){var D,C;if((C=_.r((D=this.data)==null?void 0:D.overflowMenuButton,_.AF))==null?0:C.command)this.data.contextMenuEndpoint=_.r(this.data.overflowMenuButton,_.AF).command};
_.S.onButtonClick=function(){var D,C=_.r((D=this.data)==null?void 0:D.askQuestionButton,_.AF);if(C){if(C.trackingParams&&(D=_.bO(C.trackingParams))){var X=_.LN();X&&_.HE(X,D)}_.lE(this.hostElement,"innertube-command",C.command)}};
Zv.prototype.onYtRendererstamperFinished=Zv.prototype.onYtRendererstamperFinished;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],Zv.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],Zv.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n({observer:"dataChanged"}),_.z("design:type",Object)],Zv.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Zv.prototype,"inCollapsedBanner",void 0);_.V([_.n(),_.z("design:type",Object)],Zv.prototype,"buttonOverrides",void 0);_.V([_.n(),_.z("design:type",Object)],Zv.prototype,"questionButtonOverrides",void 0);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zv.prototype,"onYtRendererstamperFinished",null);
_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Zv);
_.G(Zv,"yt-live-chat-call-for-questions-renderer",function(){if(CVv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;DI6===void 0&&(DI6=document.createElement("template"));var c=DI6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);CVv=D}D=CVv;return D},{mode:0});var Xfz={};Xfz.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 D=this;window.requestAnimationFrame(function(){D.restoreFocusNode_||(D.restoreFocusNode_=document.activeElement);var C=_.J6x(D.hostElement);C.length&&C[C.length-1].focus()})},
isAttachedChanged_:function(D,C){D?this.focusChild_():C&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(D){this.hidden||_.Mz(D).indexOf(this.hostElement)!==-1||(D.stopPropagation(),this.focusChild_())}};var cI$;var obU;var Gx=function(){return _.w.apply(this,arguments)||this};
_.h(Gx,_.w);Gx.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Gx.prototype.onClick=function(D){D.target!==this.confirmButton&&D.target!==this.cancelButton&&(this.hidden=!0)};
_.V([_.kn("#confirm_button"),_.z("design:type",Object)],Gx.prototype,"confirmButton",void 0);_.V([_.kn("#cancel_button"),_.z("design:type",Object)],Gx.prototype,"cancelButton",void 0);_.V([_.n(),_.z("design:type",WRU)],Gx.prototype,"data",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Gx.prototype,"hidden",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(Xfz.YtLiveChatDialogBehavior),_.z("design:type",Object)],Gx.prototype,"ytLiveChatDialogBehavior",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Gx);
var WRU=_.G(Gx,"yt-live-chat-dialog-renderer",function(){if(obU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;cI$===void 0&&(cI$=document.createElement("template"));var c=cI$;X.call(C,c.content.cloneNode(!0),D.content.firstChild);obU=D}D=obU;return D},{mode:0});var pfH;var S6D,UIv=function(){if(S6D!==void 0)return S6D;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;pfH===void 0&&(pfH=document.createElement("template"));var c=pfH;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return S6D=D};var gbD;var a0B;var V9=function(){var D=_.w.apply(this,arguments)||this;D.tooltip=null;D.data=null;D.id="";D.active=!1;D.icon="";D.disabled=!1;D.showTooltip=!1;D.useToggledActiveState=!0;D.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return D};
_.h(V9,_.w);_.S=V9.prototype;
_.S.dataChanged=function(){var D;((D=this.data)==null?0:D.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,_.Io)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var C;if((C=this.data)==null?0:C.disabled)this.disabled=!0};
_.S.computeId=function(D){return D};
_.S.computeIcon=function(D,C){if(!D)return"";if(this.useToggledActiveState)return"yt-icons:"+D.toLowerCase();var X,c;return C&&((X=this.data)==null?0:(c=X.toggledIcon)==null?0:c.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+D.toLowerCase()};
_.S.logPDGEntryPoint=function(){_.ldJ(_.aE("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")};
_.S.immediatelyShowTooltip=function(){var D=_.SY(this.hostElement).querySelector("#tooltip");D.animationDelay=0;D.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};D.show()};
_.S.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.S.onClick=function(D){var C;((C=this.data)==null?0:C.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),D.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.lE(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.S.computeShowTooltip=function(D,C){return!!(D&&D.tooltip&&C)};
_.S.maybeUpdateTooltipText=function(){var D=this,C;if((C=this.data)==null?0:C.tooltip){var X=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Io)(D.tooltip).textContent=X},250)}};
_.S.handleLiveChatActions=function(D){var C=this;D.length&&(this.id!=="creator"&&this.id!=="product-picker"||D.forEach(function(X){(X=C.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",X))&&X.durationSec===X.fullDurationSec&&C.startBubble(C.colorFromDecimal(X.startBackgroundColor))}))};
_.S.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.S.startBubble=function(D){_.Os(this.hostElement,{"--yt-live-chat-monetization-button-glow":D});this.hostElement.setAttribute("bubble","")};
_.S.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.S.colorFromDecimal=function(D){typeof D==="string"&&(D=Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
V9.prototype.onAnimationEnd=V9.prototype.onAnimationEnd;V9.prototype.disabledChanged=V9.prototype.disabledChanged;V9.prototype.dataChanged=V9.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Is.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],V9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],V9.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",Object)],V9.prototype,"id",void 0);_.V([_.n({notify:!0,reflectToAttribute:!0}),_.z("design:type",Object)],V9.prototype,"active",void 0);
_.V([_.n({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.z("design:type",Object)],V9.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],V9.prototype,"disabled",void 0);_.V([_.n({computed:"computeShowTooltip(data, disabled)"}),_.z("design:type",Object)],V9.prototype,"showTooltip",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],V9.prototype,"useToggledActiveState",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V9.prototype,"dataChanged",null);_.V([_.vr("disabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V9.prototype,"disabledChanged",null);_.V([_.$n("animationend"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],V9.prototype,"onAnimationEnd",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],V9);
_.G(V9,"yt-live-chat-icon-toggle-button-renderer",function(){if(a0B===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;gbD===void 0&&(gbD=document.createElement("template"));var c=gbD;X.call(C,c.content.cloneNode(!0),D.content.firstChild);a0B=D}D=a0B;return D},{mode:0});var I0D;var O2f;var Tx=function(){return _.w.apply(this,arguments)||this};
_.h(Tx,_.w);Tx.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.n(),_.z("design:type",Object)],Tx.prototype,"data",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Tx);
_.G(Tx,"yt-live-chat-message-input-prompt-header-renderer",function(){if(O2f===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;I0D===void 0&&(I0D=document.createElement("template"));var c=I0D;X.call(C,c.content.cloneNode(!0),D.content.firstChild);O2f=D}D=O2f;return D},{mode:0});var AIv;var PVB;var $Iv;var vb2;var i2m;var k5v;var ufv=function(){return _.w.apply(this,arguments)||this};
_.h(ufv,_.w);_.V([_.n(),_.z("design:type",Object)],ufv.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],ufv);
_.G(ufv,"yt-live-chat-message-subtext-renderer",function(){if(k5v===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;i2m===void 0&&(i2m=document.createElement("template"));var c=i2m;X.call(C,c.content.cloneNode(!0),D.content.firstChild);k5v=D}D=k5v;return D},{mode:0});var Hi=function(){var D=_.w.apply(this,arguments)||this;D.subtextOnBottom=!1;D.buttonOverrides={style:"mono",type:"tonal"};return D};
_.h(Hi,_.w);Hi.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Hi.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Hi.prototype,"subtextOnBottom",void 0);_.V([_.n(),_.z("design:type",Object)],Hi.prototype,"buttonOverrides",void 0);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Hi);
_.G(Hi,"yt-live-chat-message-renderer",function(){if(vb2===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;$Iv===void 0&&($Iv=document.createElement("template"));var c=$Iv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);vb2=D}D=vb2;return D},{mode:0});var QXz;var B0$;var JH=function(){var D=_.w.apply(this,arguments)||this;D.isRemovable=!1;D.hasPrefilledText=!1;D.isInputDirty=!1;D.overCharacterLimit=!1;D.underCharacterLimit=!1;D.showErrorMessage=!1;return D};
_.h(JH,_.w);_.S=JH.prototype;_.S.computeId=function(){return this.data.id};
_.S.computeInputData=function(){return this.data.inputData};
_.S.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.S.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.S.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.S.getLiveChatRichMessageInput=function(){return _.SY(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.S.clearInput=function(){_.SY(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.S.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.S.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.S.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.S.handleTextInputCharCountChanged=function(D){D=D.detail&&D.detail.characterCount;D!==void 0&&(this.characterCount=D,D!==0&&(this.isInputDirty=!0))};
_.S.onInputFocusOut=function(){this.isInputDirty=!0};
_.S.onClickCloseButton=function(){_.lE(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
JH.prototype.handleTextInputCharCountChanged=JH.prototype.handleTextInputCharCountChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],JH.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.id)"}),_.z("design:type",String)],JH.prototype,"id",void 0);_.V([_.n({computed:"computeInputData(data.inputData)"}),_.z("design:type",Object)],JH.prototype,"inputData",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.z("design:type",Object)],JH.prototype,"isRemovable",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.z("design:type",Object)],JH.prototype,"hasPrefilledText",void 0);_.V([_.n({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.z("design:type",Number)],JH.prototype,"charactersRemaining",void 0);
_.V([_.n(),_.z("design:type",Number)],JH.prototype,"characterCount",void 0);_.V([_.n(),_.z("design:type",Object)],JH.prototype,"isInputDirty",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.z("design:type",Object)],JH.prototype,"overCharacterLimit",void 0);_.V([_.n({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.z("design:type",Object)],JH.prototype,"underCharacterLimit",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.z("design:type",Object)],JH.prototype,"showErrorMessage",void 0);_.V([_.$n("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],JH.prototype,"handleTextInputCharCountChanged",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],JH);
_.G(JH,"yt-live-chat-poll-editor-input",function(){if(B0$===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;QXz===void 0&&(QXz=document.createElement("template"));var c=QXz;X.call(C,c.content.cloneNode(!0),D.content.firstChild);B0$=D}D=B0$;return D},{mode:0});var b22;var rI6;var KRH={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},zx=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_button_rework_with_live");D.closeButtonOverrides={iconPosition:"icon-only"};D.startButtonOverrides={style:"mono",type:"filled"};D.addOptionButtonOverrides={style:"mono",type:"text"};return D};
_.h(zx,_.w);_.S=zx.prototype;
_.S.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"}}}}};
_.S.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var D;_.r((D=this.data)==null?void 0:D.startButton,_.AF)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.S.computeId=function(){return this.data&&this.data.id||""};
_.S.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.S.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.S.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.S.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.S.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var D=0;D<this.pollEditorInfoWithDefaults.minPollOptions;D++)this.addPollOptionData()};
_.S.getIsValidPoll=function(){var D=this;if(!this.pollEditorInfoWithDefaults)return!1;var C=this.pollEditorInfoWithDefaults,X=C.minPollOptionChars,c=C.maxPollOptionChars,W=C.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>C.maxPollQuestionChars)return!1;C=_.SY(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(C).every(function(p,g){p=p.characterCount;!p&&W[g]&&(p=D.ytRendererBehavior.getSimpleString(W[g]).length);return p!==void 0&&p>=X&&p<=c})};
_.S.isValidPollChanged=function(){var D;_.r((D=this.data)==null?void 0:D.startButton,_.AF)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.S.addPollOptionData=function(){var D=this.pollEditorInfoWithDefaults,C=D.maxPollOptionChars,X=D.optionPlaceholderText,c=D.customOptionPlaceholderText,W=D.pollOptionData;this.currentNumPollOptions>=D.maxPollOptions||(D={liveChatPollOptionInput:{inputData:{placeholder:c[this.currentNumPollOptions]||X,maxCharacterLimit:C},maxCharacterLimit:C,minCharacterLimit:D.minPollOptionChars,hasPrefilledText:!!c[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=D.minPollOptions}},W.charCountErrorText&&
(D.liveChatPollOptionInput.charCountErrorText=W.charCountErrorText),W.charsRemainingAltLabel&&(D.liveChatPollOptionInput.charsRemainingAltLabel=W.charsRemainingAltLabel),W.removeOptionAltText&&(D.liveChatPollOptionInput.removeOptionAltText=W.removeOptionAltText),this.push("pollOptionsData",D),W=Array.from(_.SY(_.SY(this.hostElement).querySelector("#poll-options")).children),W.forEach(function(p,g){p.polymerController.set("data.id",g)}),_.SY(W[W.length-1]).querySelector("#input").focus())};
_.S.getPollOptionInputValues=function(){var D=this,C=[],X=_.SY(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),c=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(X).forEach(function(W,p){var g=null;W=W.getLiveChatRichMessageInput();var a;(W==null?0:(a=W.textSegments)==null?0:a.length)?g=_.Z5(W):c[p]&&(g=D.formattedStringToLiveChatRichMessageInput(c[p]));C.push(g)});
return C};
_.S.requestCreateAndStartPoll=function(D){var C=this.getPollOptionInputValues();if(!C.some(function(c){return!c})){C={optionText:C};
var X=_.SY(_.SY(this.hostElement).querySelector("#poll-question")).firstChild;X&&X.liveChatRichMessageInput&&(C.questionText=_.Z5(X.liveChatRichMessageInput));_.cE(this.hostElement,[D,C])}};
_.S.selectedChanged=function(){if(this.selected){var D=_.SY(_.SY(this.hostElement).querySelector("#start-button")).firstElementChild;if(D){var C;(C=_.SY(D).querySelector("#button")||_.Us(D).querySelector("button"))==null||C.focus()}}};
_.S.handleTextInputChanged=function(D){var C;((C=D.target)==null?void 0:C.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=D.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.S.handleStartButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),(D=D.detail.args[1])&&this.requestCreateAndStartPoll(D))};
_.S.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.S.handleServiceRequestCompleted=function(D){this.createPollRequestInFlight=!1;(D=D.detail&&D.detail.data)&&D.success&&(_.lE(this.hostElement,"picker-cancelled"),_.DS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.S.onCloseClick=function(){_.lE(this.hostElement,"picker-cancelled");_.DS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.S.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.S.handlePollEditorInputClosed=function(D){var C=this.pollOptionsData.findIndex(function(X){return X.liveChatPollOptionInput.id===D.detail.id});
this.splice("pollOptionsData",C,1);this.isValidPoll=this.getIsValidPoll()};
_.S.onPickerCancelled=function(){this.reset()};
_.S.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var D=_.SY(_.SY(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.setLiveChatRichMessageInput(null);if(D=_.SY(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){D=_.U(Array.from(D));for(var C=D.next();!C.done;C=D.next())C.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.S.formattedStringToLiveChatRichMessageInput=function(D){return D.simpleText?{text_segments:[D.simpleText]}:{text_segments:D.runs}};
_.$a.Object.defineProperties(zx.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(KRH,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
zx.prototype.onPickerCancelled=zx.prototype.onPickerCancelled;zx.prototype.handlePollEditorInputClosed=zx.prototype.handlePollEditorInputClosed;zx.prototype.handleServiceRequestCompleted=zx.prototype.handleServiceRequestCompleted;zx.prototype.handleServiceRequestSent=zx.prototype.handleServiceRequestSent;zx.prototype.handleTextInputChanged=zx.prototype.handleTextInputChanged;zx.prototype.selectedChanged=zx.prototype.selectedChanged;zx.prototype.isValidPollChanged=zx.prototype.isValidPollChanged;
zx.prototype.shouldInitializePollChanged=zx.prototype.shouldInitializePollChanged;zx.prototype.dataChanged=zx.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zx.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],zx.prototype,"modern",void 0);
_.V([_.n(),_.z("design:type",Object)],zx.prototype,"closeButtonOverrides",void 0);_.V([_.n(),_.z("design:type",Object)],zx.prototype,"startButtonOverrides",void 0);_.V([_.n(),_.z("design:type",Object)],zx.prototype,"addOptionButtonOverrides",void 0);_.V([_.n({computed:"computeId(data.id)",reflectToAttribute:!0}),_.z("design:type",String)],zx.prototype,"id",void 0);_.V([_.n({value:function(){return[]}}),
_.z("design:type",Array)],zx.prototype,"pollOptionsData",void 0);_.V([_.e("pollEditorInfoWithDefaults"),_.z("design:type",Object),_.z("design:paramtypes",[])],zx.prototype,"pollQuestionData",null);_.V([_.n({value:0}),_.z("design:type",Number)],zx.prototype,"pollQuestionCharacterCount",void 0);_.V([_.e("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],zx.prototype,"pollQuestionCharactersRemaining",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.z("design:type",Boolean)],zx.prototype,"overQuestionCharacterLimit",void 0);_.V([_.e("data.pollEditorInfo"),_.z("design:type",Object),_.z("design:paramtypes",[])],zx.prototype,"pollEditorInfoWithDefaults",null);_.V([_.n({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.z("design:type",Number)],zx.prototype,"currentNumPollOptions",void 0);
_.V([_.n({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.z("design:type",Boolean)],zx.prototype,"hasMaxNumPollOptions",void 0);_.V([_.e("pollEditorInfoWithDefaults","pollOptionsData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],zx.prototype,"shouldInitializePoll",null);_.V([_.n(),_.z("design:type",Object)],zx.prototype,"isValidPoll",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],zx.prototype,"createPollRequestInFlight",void 0);_.V([_.n(),_.z("design:type",Object)],zx.prototype,"selected",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.z("design:type",Boolean)],zx.prototype,"showQuestionErrorMessage",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zx.prototype,"dataChanged",null);_.V([_.vr("shouldInitializePoll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zx.prototype,"shouldInitializePollChanged",null);_.V([_.vr("isValidPoll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zx.prototype,"isValidPollChanged",null);
_.V([_.vr("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zx.prototype,"selectedChanged",null);_.V([_.$n("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],zx.prototype,"handleTextInputChanged",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zx.prototype,"handleServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],zx.prototype,"handleServiceRequestCompleted",null);
_.V([_.$n("yt-live-chat-poll-editor-input-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],zx.prototype,"handlePollEditorInputClosed",null);_.V([_.$n("picker-cancelled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zx.prototype,"onPickerCancelled",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],zx);
_.G(zx,"yt-live-chat-poll-editor-panel-renderer",function(){if(rI6===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;b22===void 0&&(b22=document.createElement("template"));var c=b22;X.call(C,c.content.cloneNode(!0),D.content.firstChild);rI6=D}D=rI6;return D},{mode:0});var hLv;var xIv;var ji=function(){return _.w.apply(this,arguments)||this};
_.h(ji,_.w);ji.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
ji.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.$a.Object.defineProperties(ji.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var D,C;return(D=this.data)==null?void 0:(C=D.title)==null?void 0:C.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.Y7((D=this.data)==null?void 0:D.onTapCommand)}}});
_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],ji.prototype,"ytEndpointBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ji.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ji.prototype,"itemId",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ji.prototype,"hasPromotion",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ji.prototype,"innertubeCommand",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],ji);
_.G(ji,"yt-live-chat-product-picker-panel-item-view-model",function(){if(xIv===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;hLv===void 0&&(hLv=document.createElement("template"));var c=hLv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);xIv=D}D=xIv;return D},{mode:0});var LRN;var sXB;var ME=function(){var D=_.w.apply(this,arguments)||this;D.id="product-picker";D.selected=!1;D.closeButtonId="close-button";D.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return D};
_.h(ME,_.w);_.S=ME.prototype;_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.S.observeSelected=function(){this.selected&&this.hostElement.focus();var D=_.SY(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");D.length&&D[0].focus()};
_.S.onCloseBuyFlow=function(){_.lE(this.hostElement,"picker-cancelled")};
_.S.onCloseClick=function(){_.lE(this.hostElement,"picker-cancelled");var D;((D=this.data)==null?0:D.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.r(this.data.closeButton,_.is))};
_.S.onCloseEngageWithAudienceEditorPanels=function(){_.lE(this.hostElement,"picker-cancelled")};
ME.prototype.observeSelected=ME.prototype.observeSelected;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ME.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ME.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ME.prototype,"id",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ME.prototype,"selected",void 0);_.V([_.n(),_.z("design:type",Object)],ME.prototype,"closeButtonId",void 0);_.V([_.vr("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ME.prototype,"observeSelected",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],ME);
_.G(ME,"yt-live-chat-product-picker-panel-view-model",function(){if(sXB===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;LRN===void 0&&(LRN=document.createElement("template"));var c=LRN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);sXB=D}D=sXB;return D},{mode:0});var mId;var eLm;var qE=function(){var D=_.w.apply(this,arguments)||this;D.iconId="";D.icon="";D.disabled=!1;D.systemIcons=_.b("kevlar_system_icons");return D};
_.h(qE,_.w);_.S=qE.prototype;_.S.computeIconId=function(D){return D&&D.icon&&D.icon.iconType?D.icon.iconType.toLowerCase():""};
_.S.computeIcon=function(D){return D&&D.icon&&D.icon.iconType?(D=D.icon.iconType.toLowerCase(),(D.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+D):""};
_.S.computeDisabled=function(D){return!!D};
_.S.computeCommand=function(D,C){return C?void 0:D};
_.S.computeTooltip=function(D,C){return C&&D?D:""};
_.S.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.$a.Object.defineProperties(qE.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D="",C,X,c;if((C=this.data)==null?0:(X=C.text)==null?0:(c=X.runs)==null?0:c.length)D=this.data.text.runs[0].text||"";else{var W,p;if((W=this.data)==null?0:(p=W.text)==null?0:p.simpleText)D=this.data.text.simpleText}var g,a,O;if((g=this.data)==null?0:(a=g.subtext)==null?0:(O=a.runs)==null?0:O.length)D&&(D+=". "),D+=this.data.subtext.runs[0].text||"";else{var P,k;if((P=this.data)==null?0:(k=P.subtext)==
null?0:k.simpleText)D&&(D+=". "),D+=this.data.subtext.simpleText}return D}}});
_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],qE.prototype,"ytEndpointBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qE.prototype,"data",void 0);_.V([_.n({computed:"computeIconId(data)",reflectToAttribute:!0}),_.z("design:type",Object)],qE.prototype,"iconId",void 0);
_.V([_.n({computed:"computeIcon(data)",reflectToAttribute:!0}),_.z("design:type",Object)],qE.prototype,"icon",void 0);_.V([_.n({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.z("design:type",Object)],qE.prototype,"disabled",void 0);_.V([_.n({computed:"computeCommand(data.command, disabled)"}),_.z("design:type",Object)],qE.prototype,"command",void 0);_.V([_.n({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.z("design:type",String)],qE.prototype,"tooltip",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qE.prototype,"systemIcons",void 0);_.V([_.e("data.text","data.subtext"),_.n(),_.z("design:type",String),_.z("design:paramtypes",[])],qE.prototype,"ariaLabel",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],qE);
_.G(qE,"yt-live-chat-product-button-renderer",function(){if(eLm===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;mId===void 0&&(mId=document.createElement("template"));var c=mId;X.call(C,c.content.cloneNode(!0),D.content.firstChild);eLm=D}D=eLm;return D},{mode:0});var EbN;var tfJ;var fp=function(){var D=_.w.apply(this,arguments)||this;D.selected=!1;D.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return D};
_.h(fp,_.w);_.S=fp.prototype;_.S.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"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.computeId=function(D){return D.id||""};
_.S.onCloseClick=function(){_.lE(this.hostElement,"picker-cancelled")};
_.S.observeSelected=function(){this.selected&&this.hostElement.focus();var D=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");D.length&&D[0].focus()};
_.S.onCloseBuyFlow=function(){_.lE(this.hostElement,"picker-cancelled")};
_.S.onCloseEngageWithAudienceEditorPanels=function(){_.lE(this.hostElement,"picker-cancelled")};
fp.prototype.observeSelected=fp.prototype.observeSelected;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],fp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fp.prototype,"data",void 0);
_.V([_.n({computed:"computeId(data)",reflectToAttribute:!0}),_.z("design:type",String)],fp.prototype,"id",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],fp.prototype,"selected",void 0);_.V([_.vr("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fp.prototype,"observeSelected",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],fp);
_.G(fp,"yt-live-chat-product-picker-renderer",function(){if(tfJ===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;EbN===void 0&&(EbN=document.createElement("template"));var c=EbN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);tfJ=D}D=tfJ;return D},{mode:0});var N0z;var Y6N;var yIj;var nbU;var dG=function(){return _.w.apply(this,arguments)||this};
_.h(dG,_.w);dG.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()};
dG.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
dG.prototype.created=function(){this.ids={background:_.Dj(),maskOne:_.Dj(),maskTwo:_.Dj(),gradient:_.Dj(),largeBackground:_.Dj(),largeGradientOne:_.Dj(),largeGradientTwo:_.Dj(),largeGradientPath:_.Dj()}};
dG.prototype.maybeLoadAnimationBackground=dG.prototype.maybeLoadAnimationBackground;_.V([_.n({value:!1}),_.z("design:type",Boolean)],dG.prototype,"useLargeBackground",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],dG.prototype,"useAnimationBackground",void 0);_.V([_.n({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.z("design:type",Boolean)],dG.prototype,"useRegularBackground",void 0);
_.V([_.n(),_.z("design:type",Object)],dG.prototype,"ids",void 0);_.V([_.n(),_.z("design:type",Object)],dG.prototype,"lottieAnimation",void 0);_.V([_.kn("#animation-background"),_.z("design:type",HTMLDivElement)],dG.prototype,"animationBackground",void 0);_.V([_.vr("useAnimationBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dG.prototype,"maybeLoadAnimationBackground",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],dG);
_.G(dG,"yt-live-interactivity-component-background",function(){if(nbU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;yIj===void 0&&(yIj=document.createElement("template"));var c=yIj;X.call(C,c.content.cloneNode(!0),D.content.firstChild);nbU=D}D=nbU;return D},{mode:0});var R0=function(){var D=_.w.apply(this,arguments)||this;D.characterCount=0;D.showInputErrorMessage=!1;D.startQnaRequestInFlight=!1;D.modern=_.b("web_button_rework_with_live");D.buttonOverrides={style:"mono",type:"filled"};D.closeButtonOverrides={iconPosition:"icon-only"};D.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return D};
_.h(R0,_.w);_.S=R0.prototype;
_.S.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]]"}}}}}};
_.S.onCharacterCountChanged=function(D){var C,X,c,W,p=(X=_.r(this==null?void 0:(C=this.data)==null?void 0:C.creatorCallForQuestions,PwU))==null?void 0:(c=X.inputField)==null?void 0:(W=c.liveChatTextInputFieldRenderer)==null?void 0:W.maxCharacterLimit,g,a;p!=null&&(D==null?void 0:(g=D.detail)==null?void 0:g.characterCount)!=null&&_.r(this==null?void 0:(a=this.data)==null?void 0:a.startButton,_.AF)&&(C=D.detail.characterCount>p,this.set("data.startButton.buttonRenderer.isDisabled",D.detail.characterCount===
0||C),this.showInputErrorMessage=C)};
_.S.onCloseClick=function(){_.lE(this.hostElement,"picker-cancelled");_.DS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.S.onPickerCancelled=function(){var D=_.SY(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.setLiveChatRichMessageInput(null)};
_.S.handleOpenQnaStartPanel=function(){var D=_.SY(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.focus()};
_.S.handleStartButtonAction=function(D){var C=this;if(D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),D=D.detail.args[1])){var X=_.SY(this.hostElement).querySelector("#qna-creator-text-input-field"),c;(X==null?0:(c=X.liveChatRichMessageInput)==null?0:c.textSegments)&&X.liveChatRichMessageInput.textSegments.length!==0&&(c={rich_message:_.Z5(X.liveChatRichMessageInput)},_.cE(this.hostElement,[D,c]).then(function(){_.lE(C.hostElement,"picker-cancelled")}))}};
_.S.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.S.handleServiceRequestCompleted=function(D){var C;D=D==null?void 0:(C=D.detail)==null?void 0:C.data;(D==null?0:D.actions)&&D.actions.length>0?this.startQnaRequestInFlight=!1:_.DS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.S.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
R0.prototype.handleServiceRequestError=R0.prototype.handleServiceRequestError;R0.prototype.handleServiceRequestCompleted=R0.prototype.handleServiceRequestCompleted;R0.prototype.handleServiceRequestSent=R0.prototype.handleServiceRequestSent;R0.prototype.onPickerCancelled=R0.prototype.onPickerCancelled;R0.prototype.onCharacterCountChanged=R0.prototype.onCharacterCountChanged;_.V([_.n(),_.z("design:type",Object)],R0.prototype,"characterCount",void 0);
_.V([_.n(),_.z("design:type",Object)],R0.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],R0.prototype,"showInputErrorMessage",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],R0.prototype,"startQnaRequestInFlight",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],R0.prototype,"modern",void 0);_.V([_.n(),_.z("design:type",Object)],R0.prototype,"buttonOverrides",void 0);
_.V([_.n(),_.z("design:type",Object)],R0.prototype,"closeButtonOverrides",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],R0.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.m(_.Bk.YtLiveChatItemBehavior),_.z("design:type",_.b9)],R0.prototype,"ytLiveChatItemBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],R0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.$n("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R0.prototype,"onCharacterCountChanged",null);_.V([_.$n("picker-cancelled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R0.prototype,"onPickerCancelled",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R0.prototype,"handleServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R0.prototype,"handleServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R0.prototype,"handleServiceRequestError",null);_.V([_.yj({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],R0);
_.G(R0,"yt-live-chat-qna-start-panel-renderer",function(){if(Y6N===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;N0z===void 0&&(N0z=document.createElement("template"));var c=N0z;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Y6N=D}D=Y6N;return D},{mode:0});var wfN;var FRJ;var lx=function(){return _.w.apply(this,arguments)||this};
_.h(lx,_.w);lx.prototype.dismiss=function(){_.lE(this.hostElement,"yt-live-chat-error-message-dismiss")};
lx.prototype.edit=function(){_.lE(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.V([_.n(),_.z("design:type",Object)],lx.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],lx);
_.G(lx,"yt-live-chat-text-actions-error-message-renderer",function(){if(FRJ===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;wfN===void 0&&(wfN=document.createElement("template"));var c=wfN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);FRJ=D}D=FRJ;return D},{mode:0});var Z2B;var G5m;var Vf2;var T0D;var DW=function(){var D=_.w.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.h(DW,_.w);DW.prototype.sendReaction=function(){var D,C,X=((D=this.data)==null?void 0:D.emojiId)||((C=this.data)==null?void 0:C.emoteId),c;X&&((c=this.data)==null?0:c.shouldTriggerAnimation)&&_.DS(this.hostElement,"yt-create-user-reaction-animation",[X]);var W;(D=_.Y7((W=this.data)==null?void 0:W.onTap))&&_.O4(D,this.hostElement);this.showNewnessDot&&_.DS(this.hostElement,"yt-hide-newness-dot")};
DW.prototype.onClick=function(D){(!D||D.clientX||D.clientY)&&this.sendReaction()};
DW.prototype.onKeyDown=function(D){D.key!=="Enter"&&D.key!==" "||D.repeat||this.sendReaction()};
_.$a.Object.defineProperties(DW.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!(((D=this.data)==null?0:D.emojiId)||((C=this.data)==null?0:C.emoteId))}}});
_.V([_.n(),_.z("design:type",Object)],DW.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",Object)],DW.prototype,"newnessDotEligible",void 0);_.V([_.e("data.maybeShowNewnessDot"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DW.prototype,"showNewnessDot",null);_.V([_.e("data.emojiId","data.emoteId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DW.prototype,"useYtImage",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],DW);
_.G(DW,"yt-reaction-control-panel-button-view-model",function(){if(T0D===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Vf2===void 0&&(Vf2=document.createElement("template"));var c=Vf2;X.call(C,c.content.cloneNode(!0),D.content.firstChild);T0D=D}D=T0D;return D},{mode:0});var H2j;var JId;var Ck=function(){var D=_.w.apply(this,arguments)||this;D.reactionControlPanelExpanded=!1;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.h(Ck,_.w);_.S=Ck.prototype;_.S.expandedButtonsChanged=function(){var D,C;_.Os(this.hostElement,{"--expanded-buttons-height":((C=(D=this.expandedButtonsData)==null?void 0:D.length)!=null?C:0)*36+"px"})};
_.S.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}}};
_.S.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.S.onMouseLeave=function(){var D=this;this.collapseTimer=setTimeout(function(){D.reactionControlPanelExpanded=!1},500)};
_.S.onFocusIn=function(){this.onMouseEnter()};
_.S.onFocusOut=function(){this.onMouseLeave()};
_.S.onCollapsedButtonFocusIn=function(){var D=this;setTimeout(function(){var C;(C=D.expandedButtons.querySelector("button"))==null||C.focus()},100)};
_.S.onCollapsedButtonFocusOut=function(D){D.stopPropagation()};
_.$a.Object.defineProperties(Ck.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var D,C;return _.ZI.unsafeClone((D=this.liveReactionsData)==null?void 0:D.emojiButtonData)||((C=this.data)==null?void 0:C.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((D=this.data)==null||!D.maybeShowNewnessDot)}}});
Ck.prototype.expandedButtonsChanged=Ck.prototype.expandedButtonsChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],Ck.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ck.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ck.prototype,"reactionControlPanelExpanded",void 0);_.V([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:FCJ}),_.z("design:type",Object)],Ck.prototype,"liveReactionsData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ck.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",Object)],Ck.prototype,"newnessDotEligible",void 0);
_.V([_.e("liveReactionsData","data.expandedButtons"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ck.prototype,"expandedButtonsData",null);_.V([_.e("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.n({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],Ck.prototype,"showNewnessDot",null);_.V([_.kn("#expanded-buttons"),_.z("design:type",HTMLElement)],Ck.prototype,"expandedButtons",void 0);
_.V([_.vr("expandedButtonsData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ck.prototype,"expandedButtonsChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Ck);
_.G(Ck,"yt-reaction-control-panel-view-model",function(){if(JId===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;H2j===void 0&&(H2j=document.createElement("template"));var c=H2j;X.call(C,c.content.cloneNode(!0),D.content.firstChild);JId=D}D=JId;return D},{mode:0});var Xp=new _.Do("yt-live-chat"),zLv=Date.parse("2024-7-24"),cy=function(){var D=_.w.apply(this,arguments)||this;D.emojiManager=_.Qd;D.newnessDotEligible=!1;D.newnessDotImpressionCounted=!1;D.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return D};
_.h(cy,_.w);_.S=cy.prototype;_.S.emojiCustomizationEnabledChanged=function(){var D;((D=this.data)==null?0:D.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((D=Xp.getCreationTime("emoji-customization-count"))&&D<zLv&&Xp.set("emoji-customization-count","0"),D=Number(Xp.get("emoji-customization-count"))||0,D<3&&(this.newnessDotEligible=!0,Xp.set("emoji-customization-count",(D+1).toString())),this.newnessDotImpressionCounted=!0)};
_.S.hideNewnessDot=function(){this.newnessDotEligible=!1;Xp.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.S.handleReactionsMute=function(D){var C=_.LN(),X=_.Ia(206221),c={checkboxData:{state:D?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};C&&_.HE(C,X,c);this.reactionsMuted=D};
_.S.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.S.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}}};
_.$a.Object.defineProperties(cy.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return(!((D=this.liveReactionsData)==null||!D.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
cy.prototype.liveReactionsSettingChanged=cy.prototype.liveReactionsSettingChanged;cy.prototype.emojiCustomizationEnabledChanged=cy.prototype.emojiCustomizationEnabledChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.as),_.z("design:type",Object)],cy.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],cy.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],cy.prototype,"data",void 0);_.V([_.n(),_.z("design:type",_.i9)],cy.prototype,"emojiManager",void 0);_.V([_.n(),_.z("design:type",Object)],cy.prototype,"newnessDotEligible",void 0);_.V([_.n(),_.z("design:type",Object)],cy.prototype,"newnessDotImpressionCounted",void 0);
_.V([_.n({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:ZCB}),_.z("design:type",Boolean)],cy.prototype,"liveReactionsSetting",void 0);_.V([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:FCJ}),_.z("design:type",Object)],cy.prototype,"liveReactionsData",void 0);_.V([_.n({value:function(){var D=_.b("enable_lwe_web_mute"),C=Xp.get("allow-reactions");return C===void 0?!1:!C&&D}}),
_.z("design:type",Boolean)],cy.prototype,"reactionsMuted",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],cy.prototype,"liveReactionsEnabled",null);_.V([_.vr("data.emojiCustomizationEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cy.prototype,"emojiCustomizationEnabledChanged",null);
_.V([_.vr("liveReactionsEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cy.prototype,"liveReactionsSettingChanged",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],cy);
_.G(cy,"yt-reaction-control-panel-overlay-view-model",function(){if(G5m===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Z2B===void 0&&(Z2B=document.createElement("template"));var c=Z2B;X.call(C,c.content.cloneNode(!0),D.content.firstChild);G5m=D}D=G5m;return D},{mode:0});var jXH={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(D){var C=this.$.pickers.selected;if(C){_.SY(this.hostElement).removeAttribute(C+"-open");var X="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(X="#picker-buttons",C==="emoji"&&_.SY(this.hostElement).querySelector("#emoji-picker-button")&&(X="#emoji-picker-button"));if(X=_.SY(this.hostElement).querySelector(X).querySelector("#"+C))X.active=!1}X=D;C==D&&(X=null);C!=
D&&_.SY(this.hostElement).setAttribute(D+"-open","");this.$.pickers.selected=X;_.DS(this.hostElement,"yt-live-chat-picker-changed",[X])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var oU=function(){var D=_.w.apply(this,arguments)||this;D.numSentMessages=0;D.timeoutDurationMs=0;D.timeoutMs=0;D.lastTimeoutTimeMs=0;D.pendingMessageId="";D.hasFiredInitialFocusActions=!1;D.isBeforeFocusEnabled=!0;D.id="";D.characterCount=0;D.maxCharacterLimit=0;D.remainingCharacterCount=0;D.inputExpanded=!1;D.buttonOverrides={iconPosition:"icon-only"};D.inReplyPanel=!1;D.countdownRatio=0;D.isTooltipVisible=!1;D.tooltipTimeout=1E4;D.systemIcons=_.b("kevlar_system_icons");D.tallerEmojiPicker=_.b("live_chat_taller_emoji_picker");
D.sendReplyMessageInFlight=!1;D.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"};D.onResize=function(){D.maybeToggleCharacterCount()};
return D};
_.h(oU,_.w);_.S=oU.prototype;
_.S.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"}}}};
_.S.attached=function(){window.addEventListener("resize",this.onResize)};
_.S.detached=function(){window.removeEventListener("resize",this.onResize)};
_.S.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.S.sendMessage=function(){var D=this,C,X,c,W;return _.I(function(p){if(D.sendDisabled)return p.return();D.isTooltipVisible&&_.DS(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(D.data.sendButton&&D.data.sendButton.buttonRenderer){D.input.completeEmojis();C=D.data.sendButton.buttonRenderer.serviceEndpoint;if(!C)return p.return();c=((X=_.r(C,_.xgM))==null?void 0:X.clientIdPrefix)||"";W={client_message_id:c+String(D.numSentMessages++),rich_message:_.Z5(D.input.liveChatRichMessageInput)};
D.pendingMessageId=W.client_message_id;D.inReplyPanel&&(D.sendReplyMessageInFlight=!0);_.cE(D.hostElement,[C,W]);D.input.setLiveChatRichMessageInput(null)}_.t_(p)})};
_.S.handleSendButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),this.sendMessage())};
_.S.onSendCompleted=function(D,C){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(D=this.get("timeoutDurationUsec",C.data))&&this.handleTimeout(Number(D)/1E3);this.errorMessage=this.get("errorMessage",C.data);this.pendingMessageId=""};
_.S.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.DS(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.S.handlePickerButtonToggle=function(D){D=D.detail.targetId;this.ytPickerBehavior.togglePicker_(D);if(D==="emoji")this.input.focus();else if(D==="qna-start-panel"){var C,X;(C=_.SY(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(X=C.querySelector("#qna-creator-text-input-field"))==null||X.focus()}};
_.S.onComponentReplaced=function(D){var C,X;D.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((C=D.replacement.liveChatMessageInputRenderer)==null?0:(X=C.headerRenderer)==null?0:X.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.S.onEmojiSelect=function(D){this.input.focus();this.input.insertEmoji(D.detail)};
_.S.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.S.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.DS(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.DS(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.S.onOpenPopupAction=function(D,C){var X=this;C===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.DS(X.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.S.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.S.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.S.focusChanged=function(){this.maybeToggleCharacterCount()};
_.S.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var D=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",D>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.S.computeId=function(){return this.data&&this.data.targetId||""};
_.S.computeSendDisabled=function(D,C,X,c){D=!!(!D||C&&D>C||c);(C=_.SY(this.hostElement).querySelector("#send-button"))&&C.children.length&&(C.children[0].disabled=D);return D};
_.S.handleTimeout=function(D){this.timeoutDurationMs=this.timeoutMs=D;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.S.updateTimeout=function(D){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(D-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=D,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.S.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.S.onErrorMessageEdit=function(D){this.input.setLiveChatRichMessageInput(D.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.S.errorMessageChanged=function(){var D=this;_.TA(function(){_.DS(D.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.S.computeAuthorNameColor=function(D){var C;if(_.b("live_chat_author_name_color_usernames")&&(D==null?0:(C=D.authorName)==null?0:C.simpleText))return _.$r3(_.v$d(D.authorName.simpleText));if(_.b("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.$r3(_.S6(D.authorSeedColorArgb));if(_.b("live_chat_colored_usernames"))return"#cc0000";var X;return _.b("live_chat_simple_color_usernames")&&(D==null?0:(X=D.authorName)==null?0:X.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.S6(D.authorUsernameColorDark):_.S6(D.authorUsernameColorLight):""};
_.S.onIsTooltipVisibleChanged=function(){var D=_.SY(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){D.hidden=!1;D.setAttribute("role","alert")},0):(D.hidden=!0,D.removeAttribute("role"))};
_.S.onFocusedChanged=function(D){this.inputFocused=D.detail.value};
_.$a.Object.defineProperties(oU.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 D;return!((D=this.data)==null||!D.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.pickers)==null?void 0:C.find(function(X){return X.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return D?this.ytRendererBehavior.getSimpleString(D):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
oU.prototype.onIsTooltipVisibleChanged=oU.prototype.onIsTooltipVisibleChanged;oU.prototype.errorMessageChanged=oU.prototype.errorMessageChanged;oU.prototype.onErrorMessageEdit=oU.prototype.onErrorMessageEdit;oU.prototype.onErrorMessageDismiss=oU.prototype.onErrorMessageDismiss;oU.prototype.focusChanged=oU.prototype.focusChanged;oU.prototype.characterCountChanged=oU.prototype.characterCountChanged;oU.prototype.onEmojiSelect=oU.prototype.onEmojiSelect;oU.prototype.handlePickerButtonToggle=oU.prototype.handlePickerButtonToggle;
oU.prototype.onSendError=oU.prototype.onSendError;oU.prototype.onSendCompleted=oU.prototype.onSendCompleted;oU.prototype.sendMessage=oU.prototype.sendMessage;oU.prototype.dataChanged=oU.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(jXH.YtPickerBehavior),_.z("design:type",Object)],oU.prototype,"ytPickerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Is.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],oU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"hasFiredInitialFocusActions",void 0);
_.V([_.n(),_.z("design:type",Object)],oU.prototype,"isBeforeFocusEnabled",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",Object)],oU.prototype,"id",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"characterCount",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"maxCharacterLimit",void 0);
_.V([_.n(),_.z("design:type",Object)],oU.prototype,"remainingCharacterCount",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oU.prototype,"inputExpanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],oU.prototype,"inputFocused",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],oU.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.V([_.n(),_.z("design:type",_.h$)],oU.prototype,"participantsManager",void 0);
_.V([_.n(),_.z("design:type",Object)],oU.prototype,"buttonOverrides",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oU.prototype,"inReplyPanel",void 0);_.V([_.e("characterCount, maxCharacterLimit, countdownActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oU.prototype,"sendDisabled",null);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"countdownRatio",void 0);
_.V([_.e("countdownRatio"),_.z("design:type",Number),_.z("design:paramtypes",[])],oU.prototype,"countdownStrokeDashOffset",null);_.V([_.e("countdownRatio"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oU.prototype,"countdownActive",null);_.V([_.e("data.interactionMessage"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oU.prototype,"hasInteractionMessage",null);
_.V([_.e("data.emojiPickerButton"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oU.prototype,"hasEmojiPickerButton",null);_.V([_.e("data, characterCount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oU.prototype,"showAvatar",null);_.V([_.e("data.pickers"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oU.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.n(),_.z("design:type",Object)],oU.prototype,"errorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"genericErrorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"isTooltipVisible",void 0);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"tooltipTimeout",void 0);_.V([_.e("data.onInitialFocusCommand"),_.z("design:type",String),_.z("design:paramtypes",[])],oU.prototype,"tooltipMessage",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oU.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],oU.prototype,"tallerEmojiPicker",void 0);_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],oU.prototype,"authorNameColor",null);_.V([_.n(),_.z("design:type",Object)],oU.prototype,"sendReplyMessageInFlight",void 0);_.V([_.kn("#input"),_.z("design:type",_.p$C)],oU.prototype,"input",void 0);
_.V([_.kn("#count"),_.z("design:type",HTMLElement)],oU.prototype,"count",void 0);_.V([_.kn("#input-container"),_.z("design:type",HTMLElement)],oU.prototype,"inputContainer",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"dataChanged",null);_.V([_.$n("yt-live-chat-send-message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],oU.prototype,"sendMessage",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[Event,_.qn]),_.z("design:returntype")],oU.prototype,"onSendCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"onSendError",null);
_.V([_.$n("yt-live-chat-icon-toggle-button-renderer-toggle"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],oU.prototype,"handlePickerButtonToggle",null);_.V([_.$n("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],oU.prototype,"onEmojiSelect",null);
_.V([_.vr("characterCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"characterCountChanged",null);_.V([_.vr("inputFocused"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"focusChanged",null);_.V([_.$n("yt-live-chat-error-message-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"onErrorMessageDismiss",null);
_.V([_.$n("yt-live-chat-error-message-edit"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],oU.prototype,"onErrorMessageEdit",null);_.V([_.vr("errorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"errorMessageChanged",null);_.V([_.vr("isTooltipVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oU.prototype,"onIsTooltipVisibleChanged",null);
_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],oU);
_.G(oU,"yt-live-chat-message-input-renderer",function(){if(PVB===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;AIv===void 0&&(AIv=document.createElement("template"));var c=AIv;X.call(C,c.content.cloneNode(!0),D.content.firstChild);PVB=D}D=PVB;return D},{mode:0});var MfJ;var q6U;var Wy=function(){var D=_.w.apply(this,arguments)||this;D.systemIcons=_.b("kevlar_system_icons");D.firedOnClickCommand=!1;D.inReplyPanel=!1;return D};
_.h(Wy,_.w);
Wy.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"}}}};
Wy.prototype.onButtonToggle=function(D){D.target.disabled||this.ytPickerBehavior.togglePicker_(D.detail.targetId)};
Wy.prototype.onClick=function(){var D=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.DS(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return D.firedOnClickCommand=!1},5E3))};
_.$a.Object.defineProperties(Wy.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.panels)==null?void 0:C.find(function(X){return X.liveChatProductPickerPanelViewModel}))!==void 0}}});
Wy.prototype.onButtonToggle=Wy.prototype.onButtonToggle;_.V([_.m(jXH.YtPickerBehavior),_.z("design:type",Object)],Wy.prototype,"ytPickerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wy.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Wy.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Object)],Wy.prototype,"firedOnClickCommand",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Wy.prototype,"inReplyPanel",void 0);_.V([_.e("data.pickers"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wy.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.$n("yt-live-chat-icon-toggle-button-renderer-toggle"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Wy.prototype,"onButtonToggle",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Wy);
_.G(Wy,"yt-live-chat-restricted-participation-renderer",function(){if(q6U===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;MfJ===void 0&&(MfJ=document.createElement("template"));var c=MfJ;X.call(C,c.content.cloneNode(!0),D.content.firstChild);q6U=D}D=q6U;return D},{mode:0});var pk=function(){var D=_.w.apply(this,arguments)||this;D.genericErrorMessage=_.jV("Error, try again.");D.inReplyPanel=!1;D.hideBorder=!1;return D};
_.h(pk,_.w);pk.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}}}}}};
_.$a.Object.defineProperties(pk,{template:{configurable:!0,enumerable:!0,get:function(){return UIv()}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pk.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],pk.prototype,"genericErrorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],pk.prototype,"inReplyPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],pk.prototype,"hideBorder",void 0);
_.V([_.Yn({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],pk);_.G(pk,"yt-live-chat-engagement-panel-input-renderer",function(){return UIv()},{mode:0});var f0v,dIU;f0v=_.Ia(115994);dIU=_.Ia(115993);_.Sg=function(D,C,X){var c=this;var W=X.dragDownAction;this.layer=0;this.JSC$23187_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.JSC$23187_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.fullscreen=!1;var p=_.iO();_.Tm(p,f0v,this.layer);_.Tm(p,dIU,this.layer);this.dragDownAction=function(){W();_.V6(p,{visualElement:c.fullscreen?f0v:dIU})};
this.gesture=new _.yV(D,C,this.getConfig(!1),"pandown");this.attach()};
_.Sg.prototype.attach=function(){this.gesture.attach()};
_.Sg.prototype.detach=function(){this.gesture.detach()};
_.Sg.prototype.update=function(D){this.fullscreen=D;var C=this.gesture;D=this.getConfig(D);C.config=D};
_.Sg.prototype.getConfig=function(D){return D?this.JSC$23187_watchFullScreenConfig:this.JSC$23187_watchConfig};var RLf={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(D){if(D&&D.length==1&&Array.isArray(D[0].loggingUrls)){D=_.ZI.unsafeClone(D[0]);var C=this.macros||{},X=this.getAdModuleClient_();if(!X)return _.WE();D.loggingUrls.forEach(function(c){if(c.baseUrl){var W=c.baseUrl;var p=C;p=p===void 0?{}:p;W=X.getOptions().includes("replaceUrlMacros")?_.xpd(X,"replaceUrlMacros",{url:W,additionalMapping:p}):W;c.baseUrl=W}},this);
D=[D]}return _.cE(this.hostElement,D)},
getAdModuleClient_:function(){var D=_.CT(this);return D?(D=D.getPlayer())?new _.gQ(D):null:null}}]};var l0m;var DOJ;var UJ=function(){return _.w.apply(this,arguments)||this};
_.h(UJ,_.w);UJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UJ.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],UJ);
_.G(UJ,"ytd-compact-tvfilm-entry-point-renderer",function(){if(DOJ!==void 0)return DOJ;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return DOJ=D},{mode:1});var CQH;var XHB;var c0d;var aU=function(){return _.w.apply(this,arguments)||this};
_.h(aU,_.w);aU.prototype.ready=function(){this.initializeDefs()};
aU.prototype.initializeDefs=function(){var D=this.meta.byKey("yt-icons"),C=_.SY(D).querySelector("#star"),X=_.SY(D).querySelector("#star_half");D=_.SY(D).querySelector("#star_border");C&&this.defs.appendChild(C.cloneNode(!0));X&&this.defs.appendChild(X.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0))};
aU.prototype.percentChanged=function(){for(var D=this.rating;D.firstChild;)D.removeChild(D.firstChild);var C=Math.round(this.percent/10);D=Math.floor(C/2);C%=2;var X=5-D-C;this.appendStars("star",D,0);this.appendStars("star_half",C,D);this.appendStars("star_border",X,D+C)};
aU.prototype.appendStars=function(D,C,X){for(var c=0;c<C;c++){var W=(18+this.spacing)*(c+X),p=document.createElementNS("http://www.w3.org/2000/svg","use");_.HHk(p,"#"+D);p.setAttribute("x",""+W);p.setAttribute("y","0");this.rating.appendChild(p)}};
aU.prototype.percentChanged=aU.prototype.percentChanged;_.V([_.kn("#defs"),_.z("design:type",HTMLElement)],aU.prototype,"defs",void 0);_.V([_.kn("#rating"),_.z("design:type",HTMLElement)],aU.prototype,"rating",void 0);_.V([_.n(),_.z("design:type",Number)],aU.prototype,"percent",void 0);_.V([_.n({value:6}),_.z("design:type",Number)],aU.prototype,"spacing",void 0);_.V([_.n({value:_.Vb.create("iron-meta",{type:"iconset"})}),_.z("design:type",_.qD)],aU.prototype,"meta",void 0);
_.V([_.vr("percent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aU.prototype,"percentChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-ratings"})],aU);
_.G(aU,"ytd-ratings",function(){if(c0d!==void 0)return c0d;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return c0d=D},{mode:1});var oaf=function(){return _.w.apply(this,arguments)||this};
_.h(oaf,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oaf.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oaf.prototype,"data",void 0);_.V([_.yj({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],oaf);
_.G(oaf,"ytd-offer-review-renderer",function(){if(XHB!==void 0)return XHB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return XHB=D},{mode:1});var IU=function(){var D=_.w.apply(this,arguments)||this;D.badges=[{textBadge:{label:_.jV("CC")}}];return D};
_.h(IU,_.w);_.S=IU.prototype;_.S.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.S.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(D&&D.commandMetadata&&_.r(D.commandMetadata,_.dY)&&_.r(D.commandMetadata,_.dY).fireAutomatically)_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}});else{var C;D&&((C=_.r(D,_.dY))==null?0:C.fireAutomatically)&&_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})}};
_.S.isEmptyContent=function(D){return this.isStorefrontEntryPointEmpty(D)&&this.shouldHideOfferModule(D)};
_.S.isStorefrontEntryPointEmpty=function(D){return!D||!D.storefrontEntryPoint};
_.S.shouldHideOfferModule=function(D){return!!D.hideVideoDetails};
_.S.isOfferModuleNavigationInactive=function(D){return!D.navigationEndpoint&&!D.serviceEndpoint};
_.S.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
IU.prototype.dataChanged=IU.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],IU.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.z("design:type",Boolean)],IU.prototype,"hidden",void 0);
_.V([_.n(),_.z("design:type",Object)],IU.prototype,"badges",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IU.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],IU);
_.G(IU,"ytd-movie-offer-module-renderer",function(){if(CQH!==void 0)return CQH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return CQH=D},{mode:1});var WFz;var pHj=function(){return _.w.apply(this,arguments)||this};
_.h(pHj,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],pHj.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pHj.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],pHj);
_.G(pHj,"ytd-media-masthead-renderer",function(){if(WFz!==void 0)return WFz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return WFz=D},{mode:1});var Srz;_.CI(_.Oh3,"course-metadata-view-model",{props:{data:_.R3,isOverlay:_.R3}});var OJ=function(){var D=_.w.apply(this,arguments)||this;D.isMetadataVisible=!1;D.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return D};
_.h(OJ,_.w);_.S=OJ.prototype;
_.S.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"}}}}};
_.S.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.S.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.S.expanderChanged=function(){var D;if((D=this.data)==null?0:D.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.S.isExpandButtonToggled=function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.expandMetadataButton,_.us))==null?void 0:C.isToggled};
_.S.onVisibilityButtonClick=function(){var D;if((D=this.data)==null?0:D.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.S.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
OJ.prototype.expanderChanged=OJ.prototype.expanderChanged;OJ.prototype.dataChanged=OJ.prototype.dataChanged;OJ.prototype.descriptionChanged=OJ.prototype.descriptionChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m([_.Jy.YtActionHandlerBehavior]),_.z("design:type",Object)],OJ.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],OJ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],OJ.prototype,"isMetadataVisible",void 0);_.V([_.kn("#expander"),_.z("design:type",Object)],OJ.prototype,"expander",void 0);_.V([_.vr("data.description"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OJ.prototype,"descriptionChanged",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OJ.prototype,"dataChanged",null);_.V([_.vr("isMetadataVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OJ.prototype,"expanderChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],OJ);
_.G(OJ,"ytd-tvfilm-offer-module-renderer",function(){if(Srz!==void 0)return Srz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Srz=D},{mode:2});var UO2;var AV=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return D};
_.h(AV,_.w);AV.prototype.dataChanged=function(){this.hostElement.hidden=!1};
AV.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
AV.prototype.onThumbnailTap=function(D){this.data&&this.data.serviceEndpoint&&(_.iX().resolve(_.uX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),D.stopPropagation())};
AV.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
AV.prototype.dataChanged=AV.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AV.prototype,"rendererBehaviors",void 0);_.V([_.m([_.Jy.YtActionHandlerBehavior]),_.z("design:type",Object)],AV.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],AV.prototype,"data",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AV.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],AV);
_.G(AV,"ytd-unlimited-offer-module-renderer",function(){if(UO2!==void 0)return UO2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return UO2=D},{mode:1});var gaN;var a4$;var Py=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return D};
_.h(Py,_.w);Py.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Py.prototype.handleRelatedChipCommand=function(D){D=_.r(D,eaD);var C=D.contents;C?_.Ct(this.hostElement,"yt-item-section-replace-action",[C,D.targetSectionIdentifier]):_.Ct(this.hostElement,"yt-item-section-continuation-action",[D.continuationData,D.targetSectionIdentifier])};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Py.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Py.prototype,"data",void 0);_.V([_.Yn({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Py);
_.G(Py,"yt-related-chip-cloud-renderer",function(){if(a4$===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;gaN===void 0&&(gaN=document.createElement("template"));var c=gaN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);a4$=D}D=a4$;return D},{mode:2});var $D=function(){var D=_.w.apply(this,arguments)||this;D.isTwoColumns=!0;D.watchFeedBigThumbs=_.b("kevlar_watch_feed_big_thumbs");D.watchFeedBigThumbsOnLockup=_.b("web_watch_next_big_thumbs");D.watchNextGridHideChips=_.b("kevlar_watch_grid_hide_chips");D.eligibleToSwitchToGrid=!0;D.disableShortsShelfHeightOverride=_.b("web_shorts_wn_shelf_ratio_tuning");D.isWatchNextGrid=!1;D.reuseComponents=!_.b("kevlar_watch_grid");D.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return D};
_.h($D,_.w);_.S=$D.prototype;
_.S.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.b("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}}};
_.S.getItemsPath=function(){return"data.results"};
_.S.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.S.created=function(){this.ytLazyListBehavior.initialCount=1};
_.S.ready=function(){_.Os(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.S.resultsChanged=function(){if(this.data&&this.data.results){for(var D=this.data.results,C=null,X=null,c=0;c<D.length;c++)D[c].relatedChipCloudRenderer?C=D[c].relatedChipCloudRenderer:D[c].itemSectionRenderer&&(X=D[c].itemSectionRenderer);if(C&&X)for(this.set("data.continuations",[]),D=_.r(C.content,_.kY5).chips,C=0;C<D.length;C++)if(c=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",D[C]),c.loadCached||!c.contents){c.contents=X.contents;break}}};
_.S.dataChanged=function(){var D=this,C;if((C=this.data)!=null&&C.results&&this.hasAllowedInstreamAd(this.playerData)){if(C=this.data.results.filter(function(a){return!!a.promotedSparklesWebRenderer})){for(var X=0;X<C.length;X++){var c=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",C[X]);
if(c)for(var W=0;W<c.length;W++)c[W]&&c[W].baseUrl&&_.WL(c[W].baseUrl)}this.set("data.results",this.data.results.filter(function(a){return!a.promotedSparklesWebRenderer}))}if(C=this.data.results.filter(function(a){return!!D.getSparklesAd(a)})){C=_.U(C);
for(W=C.next();!W.done;W=C.next())if(c=X=void 0,W=(X=this.getSparklesAd(W.value))==null?void 0:(c=X.errorCommand)==null?void 0:c.loggingUrls)for(X=_.U(W),c=X.next();!c.done;c=X.next())(c=c.value)&&c.baseUrl&&_.WL(c.baseUrl);var p,g;this.set("data.results",(p=this.data)==null?void 0:(g=p.results)==null?void 0:g.filter(function(a){return!a.adSlotRenderer}))}}};
_.S.getSparklesAd=function(D){var C,X;D=_.r((C=D.adSlotRenderer)==null?void 0:(X=C.fulfillmentContent)==null?void 0:X.fulfilledLayout,_.GZb);return _.r(D==null?void 0:D.renderingContent,qH6)};
_.S.hasAllowedInstreamAd=function(D){D=this.get("adPlacements",D)||[];for(var C=0;C<D.length;C++){var X=this.get("adPlacementRenderer.config.adPlacementConfig",D[C]);if(X&&X.suppressDisplayAd)return!0}return!1};
_.S.computeHideUnlimitedOfferModule=function(D,C){return D&&D.offerModule&&C&&D.offerModule.unlimitedOfferModuleRenderer&&D.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(C)?!0:!1};
_.S.hideUnlimitedOfferModuleChanged=function(){var D=_.SY(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");D&&(D.hidden=this.hideUnlimitedOfferModule)};
_.S.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var C;(C=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||C.forEach(function(X){X.containerType=D})}};
_.S.computeHideTvfilmOfferModule=function(D,C){var X,c;return!!((D==null?0:(X=D.offerModule)==null?0:(c=X.tvfilmOfferModuleRenderer)==null?0:c.clientShouldSuppressIfCompanionAdDisplayed)&&C&&this.hasCompanionAds(C))};
_.S.hideTvfilmOfferModuleChanged=function(){var D=_.SY(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");D&&(D.hidden=this.hideTvfilmOfferModule)};
_.S.hasCompanionAds=function(D){D=this.get("adPlacements",D)||[];for(var C=0;C<D.length;C++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",D[C]))return!0;var X=void 0,c=void 0,W=void 0;if(!_.b("web_watch_top_banner_companion_check_killswitch")&&((X=D[C])==null?0:(c=X.adPlacementRenderer)==null?0:(W=c.renderer)==null?0:W.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.S.hasSuppressedResults=function(D){return D==null?!0:D.filter(function(C){return!C.continuationItemRenderer&&!C.compactPromotedVideoRenderer&&!C.promotedSparklesWebRenderer}).length===0};
_.S.computeShowButton=function(D,C){return this.isWatchNextGrid?D:D||this.hasSuppressedResults(C)};
_.S.showButtonChanged=function(){if(this.isWatchNextGrid){var D=_.SY(this.hostElement).querySelector("ytd-rich-grid-renderer");D&&this.showButton!==null&&(D.continuationShowButton=this.showButton)}else{D=_.SY(this.hostElement).querySelector("yt-next-continuation");var C=_.SY(this.hostElement).querySelector("ytd-continuation-item-renderer"),X=_.SY(this.hostElement).querySelector("ytd-item-section-renderer");D&&(D.showButton=this.showButton);C&&(C.showButton=this.showButton);X&&(X.continuationShowButton=
this.showButton)}};
_.S.continuationTap=function(D){var C;if(((C=this.data)==null?void 0:C.continuations)!=null&&D.target.tagName==="TP-YT-PAPER-BUTTON")for(D=this.data.continuations,C=0;C<D.length;C++)D[C].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(D[C].nextContinuationData||{})};
_.S.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("shown-items-changed",this.shownItems))};
_.$a.Object.defineProperties($D.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.shownItems)==null||!D.some(function(C){return!!C.lockupViewModel||C.compactVideoRenderer}))}}});
$D.prototype.shownItemsChangedForBinding=$D.prototype.shownItemsChangedForBinding;$D.prototype.showButtonChanged=$D.prototype.showButtonChanged;$D.prototype.hideTvfilmOfferModuleChanged=$D.prototype.hideTvfilmOfferModuleChanged;$D.prototype.updateLockupContainerTypes=$D.prototype.updateLockupContainerTypes;$D.prototype.hideUnlimitedOfferModuleChanged=$D.prototype.hideUnlimitedOfferModuleChanged;$D.prototype.dataChanged=$D.prototype.dataChanged;$D.prototype.resultsChanged=$D.prototype.resultsChanged;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],$D.prototype,"ytLazyListBehavior",void 0);_.V([_.m(_.L3.YtNextContinuationBehavior),_.z("design:type",Object)],$D.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.m(_.xA),_.z("design:type",Object)],$D.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],$D.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$D.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],$D.prototype,"playerData",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],$D.prototype,"autoFill",void 0);_.V([_.n({value:60}),_.z("design:type",Number)],$D.prototype,"targetFramerate",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"isTwoColumns",void 0);_.V([_.n(),_.z("design:type",Object)],$D.prototype,"shownItems",void 0);_.V([_.n({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.z("design:type",Boolean)],$D.prototype,"hideUnlimitedOfferModule",void 0);_.V([_.n({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.z("design:type",Boolean)],$D.prototype,"hideTvfilmOfferModule",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"watchFeedBigThumbs",void 0);_.V([_.n(),_.z("design:type",Object)],$D.prototype,"watchFeedBigThumbsOnLockup",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"watchNextGridHideChips",void 0);_.V([_.n(),_.z("design:type",Object)],$D.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"disableShortsShelfHeightOverride",void 0);
_.V([_.n({selector:_.Y_,reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"isGridViewEnabled",void 0);_.V([_.n({selector:_.cto,reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"isSwatcherooActive",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],$D.prototype,"showMoreButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$D.prototype,"isWatchNextGrid",void 0);
_.V([_.n({computed:"computeShowButton(showMoreButton, data.results)"}),_.z("design:type",Boolean)],$D.prototype,"showButton",void 0);_.V([_.bH("data.results.*"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$D.prototype,"resultsChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$D.prototype,"dataChanged",null);
_.V([_.vr("hideUnlimitedOfferModule"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$D.prototype,"hideUnlimitedOfferModuleChanged",null);_.V([_.e("isGridViewEnabled","containsLockups","data"),_.n({reflectToAttribute:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],$D.prototype,"lockupContainerType",null);
_.V([_.vr("lockupContainerType","data"),_.z("design:type",Function),_.z("design:paramtypes",[Number]),_.z("design:returntype")],$D.prototype,"updateLockupContainerTypes",null);_.V([_.vr("hideTvfilmOfferModule"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$D.prototype,"hideTvfilmOfferModuleChanged",null);_.V([_.vr("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$D.prototype,"showButtonChanged",null);
_.V([_.vr("shownItems"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$D.prototype,"shownItemsChangedForBinding",null);_.V([_.e("shownItems"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$D.prototype,"containsLockups",null);
_.G($D,"ytd-watch-next-secondary-results-renderer",function(){if(l0m===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);l0m=D}D=l0m;return D},{mode:1});var I4z;var vy=function(){var D=_.w.apply(this,arguments)||this;D.isCollapsed=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return D};
_.h(vy,_.w);_.S=vy.prototype;_.S.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.onDonateTap=function(){var D=this.get("data.donateButton.buttonRenderer.command");if(D){var C=_.LN(),X=this.get("data.donateButton.buttonRenderer.trackingParams");C&&X&&_.HE(C,_.bO(X));this.ytOpenPopupBehavior.openPopup(D)}};
_.S.onShowMore=function(){this.isCollapsed=!1;var D=_.LN(),C=this.get("data.expandButton.buttonRenderer.trackingParams");D&&C&&_.HE(D,_.bO(C))};
_.S.onShowLess=function(){this.isCollapsed=!0};
_.S.dataChanged=function(){_.Os(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.handleUpdate=function(D){if(D=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",D))this.set("data.startLabel",D.startLabel),this.set("data.endLabel",D.endLabel),this.set("data.progress",D.progress),this.set("data.amountRaisedLabel",D.amountRaisedLabel),this.dataChanged()};
_.S.handleOpenPopupAction=function(D){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",D)&&_.DS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.S.computeHeaderBackgroundUrl=function(D,C){if(D)return C?D.headerBackgroundDarkUrl:D.headerBackgroundUrl};
_.S.isProgressBarVisible=function(D){return!(!D||D.progress===void 0)};
_.S.headerBackgroundClass=function(){return _.q6("HTML_DIR")==="rtl"?"flip":""};
vy.prototype.dataChanged=vy.prototype.dataChanged;_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],vy.prototype,"ytOpenPopupBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],vy.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],vy.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],vy.prototype,"isCollapsed",void 0);_.V([_.n({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.z("design:type",String)],vy.prototype,"headerBackgroundUrl",void 0);_.V([_.n(),_.z("design:type",Boolean)],vy.prototype,"isDarkTheme",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vy.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],vy);
_.G(vy,"ytd-donation-shelf-renderer",function(){if(I4z!==void 0)return I4z;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return I4z=D},{mode:1});var Olv;var A0$=function(){return _.w.apply(this,arguments)||this};
_.h(A0$,_.w);_.V([_.n(),_.z("design:type",Object)],A0$.prototype,"data",void 0);_.V([_.yj({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],A0$);
_.G(A0$,"ytd-donation-unavailable-renderer",function(){if(Olv!==void 0)return Olv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Olv=D},{mode:1});var PQj;var id=function(){return _.w.apply(this,arguments)||this};
_.h(id,_.w);id.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],id.prototype,"data",void 0);_.V([_.yj({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],id);
_.G(id,"ytd-limited-state-message-renderer",function(){if(PQj!==void 0)return PQj;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return PQj=D},{mode:1});var $Ov;var kD=function(){return _.w.apply(this,arguments)||this};
_.h(kD,_.w);kD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
kD.prototype.onTap=function(D){var C=this.data&&this.data.endpoint;C&&!_.d$(_.Mz(D),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.lE(this.hostElement,"yt-navigate",{endpoint:C})};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kD.prototype,"data",void 0);_.V([_.yj({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],kD);
_.G(kD,"ytd-autotagging-metadata-renderer",function(){if($Ov!==void 0)return $Ov;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $Ov=D},{mode:1});var vaN;var ud=function(){return _.w.apply(this,arguments)||this};
_.h(ud,_.w);ud.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ud.prototype,"data",void 0);_.V([_.yj({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ud);
_.G(ud,"ytd-autotagging-metadata-row-renderer",function(){if(vaN!==void 0)return vaN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return vaN=D},{mode:1});var il2;var kTd;var Qm=function(){var D=_.w.apply(this,arguments)||this;D.engagementPanelContent=!1;return D};
_.h(Qm,_.w);Qm.prototype.computeHasDividerLine=function(D,C){return D&&!C};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Qm.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.z("design:type",Boolean)],Qm.prototype,"hasDividerLine",void 0);_.V([_.n(),_.z("design:type",Object)],Qm.prototype,"engagementPanelContent",void 0);
_.V([_.yj({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Qm);
_.G(Qm,"ytd-metadata-row-header-renderer",function(){if(kTd!==void 0)return kTd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return kTd=D},{mode:1});var u2v;var By=function(){return _.w.apply(this,arguments)||this};
_.h(By,_.w);By.prototype.computeHasDividerLine=function(D){return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],By.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.z("design:type",Boolean)],By.prototype,"hasDividerLine",void 0);_.V([_.yj({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],By);
_.G(By,"ytd-metadata-row-renderer",function(){if(u2v!==void 0)return u2v;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return u2v=D},{mode:1});var QSU;var Brm=function(){return _.w.apply(this,arguments)||this};
_.h(Brm,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Brm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Brm.prototype,"data",void 0);_.V([_.yj({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Brm);
_.G(Brm,"ytd-metadata-with-image-row-renderer",function(){if(QSU!==void 0)return QSU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return QSU=D},{mode:1});var blv;var bd=function(){var D=_.w.apply(this,arguments)||this;D.rounded=!0;D.fixie=!1;D.fullWidth=!1;return D};
_.h(bd,_.w);_.S=bd.prototype;_.S.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.onDataChanged=function(){var D=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(C){D.onEndpointLinkKeyPress(C)}))};
_.S.onEndpointLinkKeyPress=function(D){D.target===this.endpointLink&&D.keyCode===13&&_.lE(this.hostElement,"click")};
_.S.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var D;if((D=this.data)==null?0:D.endpoint)_.o7(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.S.onYtNavigate=function(D){this.endpointHref||(D.stopPropagation(),D.preventDefault())};
_.S.onInformationButtonContainerClick=function(D){D.target.id!=="information-button-container"&&(D.stopPropagation(),D.preventDefault())};
_.S.computeStyle=function(D){return D};
_.S.computeIsThumbnailStyle=function(D){return D==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.S.computeThumbnailWidth=function(D){switch(D){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}};
_.S.computeThumbnailObjectFit=function(D){switch(D){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.$a.Object.defineProperties(bd.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
bd.prototype.onYtNavigate=bd.prototype.onYtNavigate;bd.prototype.onClick=bd.prototype.onClick;bd.prototype.onDataChanged=bd.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],bd.prototype,"componentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],bd.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],bd.prototype,"componentStyle",void 0);_.V([_.n({computed:"computeIsThumbnailStyle(data.style)"}),_.z("design:type",Boolean)],bd.prototype,"isThumbnailStyle",void 0);_.V([_.n({computed:"computeThumbnailObjectFit(data.style)"}),_.z("design:type",String)],bd.prototype,"thumbnailObjectFit",void 0);
_.V([_.n({computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],bd.prototype,"thumbnailWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bd.prototype,"rounded",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bd.prototype,"fixie",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bd.prototype,"fullWidth",void 0);_.V([_.kn("#endpoint-link"),_.z("design:type",HTMLAnchorElement)],bd.prototype,"endpointLink",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bd.prototype,"onDataChanged",null);_.V([_.e("data.endpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],bd.prototype,"endpointHref",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],bd.prototype,"onClick",null);
_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],bd.prototype,"onYtNavigate",null);_.V([_.yj({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],bd);
_.G(bd,"ytd-rich-metadata-renderer",function(){if(blv!==void 0)return blv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return blv=D},{mode:_.Wc("kevlar_poly_si_batch_j075")?1:2});var r0N;var ra=function(){var D=_.w.apply(this,arguments)||this;D.fixie=!1;D.fullWidth=!1;return D};
_.h(ra,_.w);ra.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
ra.prototype.computeHasDividerLine=function(D){return D};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ra.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.z("design:type",Boolean)],ra.prototype,"hasDividerLine",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ra.prototype,"fixie",void 0);_.V([_.n(),_.z("design:type",Object)],ra.prototype,"fullWidth",void 0);
_.V([_.yj({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],ra);
_.G(ra,"ytd-rich-metadata-row-renderer",function(){if(r0N!==void 0)return r0N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return r0N=D},{mode:1});var Kk=function(){var D=_.w.apply(this,arguments)||this;D.engagementPanelContent=!1;D.fixie=!1;D.fullWidth=!1;return D};
_.h(Kk,_.w);
Kk.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"}}}};
Kk.prototype.computeCollapsibleItems=function(D,C,X){return D===void 0||C===void 0||X===void 0||X?[]:D.slice(C)};
Kk.prototype.computeAlwaysShownItems=function(D,C){return D&&D.length?D.slice(0,C):[]};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Kk.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Kk.prototype,"collapsed",void 0);
_.V([_.n({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.z("design:type",Array)],Kk.prototype,"alwaysShownItems",void 0);_.V([_.n({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.z("design:type",Array)],Kk.prototype,"collapsibleItems",void 0);_.V([_.n(),_.z("design:type",Object)],Kk.prototype,"engagementPanelContent",void 0);_.V([_.n(),_.z("design:type",Object)],Kk.prototype,"fixie",void 0);
_.V([_.n(),_.z("design:type",Object)],Kk.prototype,"fullWidth",void 0);_.V([_.yj({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Kk);
_.G(Kk,"ytd-metadata-row-container-renderer",function(){if(il2!==void 0)return il2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return il2=D},{mode:1});var KFj;var hV=function(){var D=_.w.apply(this,arguments)||this;D.currentPageUrl="";D.baseUrl="";D.isHiddenByUser=null;D.hidden=!1;D.showAboveScrim=!1;D.watchNextGrid=_.b("kevlar_watch_grid");D.modernButtons=_.b("web_modern_buttons");D.roundedContainer=!0;D.noBorder=!1;D.roundBackground=!_.b("live_chat_round_background_killswitch");D.overflowHideChat=_.b("live_chat_overflow_hide_chat");D.forceDarkTheme=!1;D.theaterWatchWhile=!1;D.isListeningForPlayerProgress=!1;D.JSC$23258_playerEvents=new Map;D.isFrameReady=
!1;D.player=null;D.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 D};
_.h(hV,_.w);_.S=hV.prototype;_.S.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Ct(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.S.created=function(){var D=this;this.handleIframeEventListener=function(C){D.handleIframeEvent(C)};
this.handleKeyboardEventListener=function(C){D.handleKeyboardEvent(C)};
this.JSC$23258_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23258_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23258_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23258_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23258_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.S.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()};
_.S.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};
_.S.computeBaseUrl=function(D){var C="/live_chat";this.isChatReplay()&&(C="/live_chat_replay");return _.kx(_.iF(_.vP(_.Xg(D),C),null),"").toString()};
_.S.dataChanged=function(){_.b("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.S.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var D=this.url;if(this.isChatReplay()&&this.player){var C=Math.floor(this.player.getProgressState().current*1E3);D=_.oA(_.Xg(D),"playerOffsetMs",C.toString()).toString()}C=this.chatframe;try{var X=D==="about:blank"?_.MD5:_.Hv(D),c=C.contentDocument.location,W=_.qJ(X);W!==void 0&&c.replace(W)}catch(p){C.src=D}}};
_.S.collapsedChanged=function(){_.lE(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.S.handleIframeEvent=function(D){if(D&&this.baseUrl.startsWith(D.origin)&&D.source===this.chatframe.contentWindow&&_.MR(D.data))if(D.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(D);else if(D.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(D.data["yt-show-feedback-dialog"]){var C=_.iX().resolve(_.vK(_.zvt));if(C){var X=D.ports,c;X&&X.length&&(c=function(){X[0].postMessage({})});
D=D.data["yt-show-feedback-dialog"];C.showFeedbackDialog(D.customProductData,D.feedbackContent,c,D.bucket)}}else if(D.data["yt-show-survey"])_.lE(this.hostElement,"yt-show-survey",D.data["yt-show-survey"]);else if(D.data["yt-purchase-membership"])_.iX().resolve(_.uX).resolveCommand(D.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(D.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(D.data["yt-tunnel-out-live-service-request"]);else if(D.data["yt-user-activity"])_.iw();
else if(D.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(D.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(D.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(D.data["yt-open-popup"]);else if(D.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(D.data["yt-log-flow-logging-event-command"]);else if(D.data["yt-hide-live-chat"])this.onShowHideChat();else D.data["yt-report-moderation-state-log"]&&
this.player&&(C={cpn:this.player.getVideoData().cpn},_.zu("liveChatBeingModerated",C))};
_.S.attachLiveChatResponseVeTrackingParams=function(D){D=_.bO(D);var C=_.LN(),X=_.Df("liveChatRenderer.trackingParams",this.data);C&&X&&_.F_(C,_.bO(X),D)};
_.S.handleBuyflowMessages=function(D){var C=D.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,X=D.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,c=D.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.GDJ(_.ly(_.j_),C.replace(/-/g,"+").replace(/_/g,"/"),function(W){D.ports[0].postMessage({success:!0,buyFlowResponse:W})},void 0,function(W){D.ports[0].postMessage({success:!1,
error:W&&W.message||"Buyflow rejected without error."})},_.PE().get("hl"),void 0,function(){D.ports[0].postMessage({closed:!0})},X,c)};
_.S.setupPlayerProgressRelay=function(){var D=this;if(!this.isListeningForPlayerProgress){var C=_.Xv();C!=null&&C.getPlayerPromise&&(C.getPlayerPromise().then(function(X){D.playerApiReady(X)}),this.isListeningForPlayerProgress=!0)}};
_.S.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.S.playerApiReady=function(D){this.setPlayer(D)};
_.S.playerProgressHandler=function(){if(this.player){var D=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":D.current})}};
_.S.playerAdStartHandler=function(D){this.postToContentWindow({"yt-player-ad-start":D})};
_.S.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.S.playerStateChangeHandler=function(D){this.postToContentWindow({"yt-player-state-change":D})};
_.S.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23258_playerEvents);D&&(this.player=D,this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$23258_playerEvents),_.lE(this.hostElement,"player-api-ready"))};
_.S.liveChatPageUrl=function(D,C,X,c){return!X||C?"about:blank":X.liveChatRenderer?(C=_.Xg(this.currentPageUrl).JSC$10197_queryData_,Zqz(C),D=_.Xg(D),C.add("continuation",X.liveChatRenderer.continuations[0].reloadContinuationData.continuation),X=_.FU()==="USER_INTERFACE_THEME_DARK",(c||X)&&C.add("dark_theme","true"),_.iF(D,C),c=_.Xg(D.toString()),X=c.JSC$10197_queryData_,"SESSION_INDEX"in _.jj&&(X.add("authuser",_.q6("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.jj&&X.add("pageId",_.q6("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.jj&&X.add("sdc",_.q6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),c.toString()):""};
_.S.isCollapsed=function(D,C){return C!==null?C:this.isChatReplay()||D&&D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!0:D?D.liveChatRenderer?D.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.b("live_chat_hide_premiere_replay_message")||D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.S.isHidden=function(D,C,X){var c=C&&C.conversationBarRenderer&&C.conversationBarRenderer.availabilityMessage,W=C&&C.liveChatRenderer&&C.liveChatRenderer.showHideButton,p=C&&C.liveChatRenderer&&C.liveChatRenderer.showButton;return X&&D&&!c&&!p||!X&&D&&!c&&!W?!0:C&&C.liveChatRenderer&&C.liveChatRenderer.initialDisplayState?C.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.S.computeButtonOverride=function(D,C){if(D&&C)return{type:"outline"}};
_.S.setCollapsedState=function(D){_.r(D,_.TYc)&&((this.isHiddenByUser=!!_.r(D,_.TYc).collapsed)||_.DS(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.S.forwardReduxActionToIframe=function(D){this.postToContentWindow({"yt-live-chat-forward-redux-action":D})};
_.S.onLoopRangeChange=function(D){this.showAboveScrim=!(D==null||!D.postId)};
_.S.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.S.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.S.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.S.sendDarkThemePostMessage=function(D){this.postToContentWindow({"yt-live-chat-set-dark-theme":D})};
_.S.onLiveChatBuyFlowCallback=function(D){this.postToContentWindow({"yt-live-chat-buy-flow-callback":D})};
_.S.handleKeyboardEvent=function(D){(0,_.ZI.containsValue)(TOB,D.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:D.type,keyCode:D.keyCode}})};
_.S.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.S.postToContentWindow=function(D){if(this.isFrameReady)try{var C=window.location.protocol+"//"+window.location.host,X;(X=this.chatframe)!=null&&X.contentWindow?this.chatframe.contentWindow.postMessage(D,C):_.fQ(new _.Zf("Tried posting a message to an iframe with no content window",D))}catch(c){_.MN(c)}};
_.S.shouldHideChatFrame=function(D){return D&&_.b("hide_live_chat_button_when_collapsed")};
_.$a.Object.defineProperties(hV.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.b("live_chat_overflow_hide_chat")||_.b("web_watch_chat_hide_button_killswitch"))return _.b("live_chat_overflow_hide_chat");var D,C,X,c;return!!((D=this.data)==null?0:(C=D.liveChatRenderer)==null?0:(X=C.header)==null?0:(c=X.liveChatHeaderRenderer)==null?0:c.collapseButton)}}});
hV.prototype.collapsedChanged=hV.prototype.collapsedChanged;hV.prototype.urlChanged=hV.prototype.urlChanged;hV.prototype.dataChanged=hV.prototype.dataChanged;hV.prototype.onShowHideChat=hV.prototype.onShowHideChat;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],hV.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],hV.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],hV.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],hV.prototype,"ytOpenPopupBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hV.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],hV.prototype,"currentPageUrl",void 0);
_.V([_.n({computed:"computeBaseUrl(currentPageUrl,data)"}),_.z("design:type",Object)],hV.prototype,"baseUrl",void 0);_.V([_.n({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.z("design:type",String)],hV.prototype,"url",void 0);_.V([_.n(),_.z("design:type",Object)],hV.prototype,"isHiddenByUser",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.z("design:type",Object)],hV.prototype,"hidden",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.z("design:type",Boolean)],hV.prototype,"collapsed",void 0);_.V([_.n({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.z("design:type",Boolean)],hV.prototype,"hideChatFrame",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hV.prototype,"showAboveScrim",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hV.prototype,"watchNextGrid",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],hV.prototype,"modernButtons",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hV.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hV.prototype,"noBorder",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],hV.prototype,"roundBackground",void 0);
_.V([_.n({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.z("design:type",Object)],hV.prototype,"toggleButtonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],hV.prototype,"overflowHideChat",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hV.prototype,"forceDarkTheme",void 0);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hV.prototype,"enableShowWithoutHideChatButton",null);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hV.prototype,"theaterWatchWhile",void 0);_.V([_.kn("#chatframe"),_.z("design:type",HTMLIFrameElement)],hV.prototype,"chatframe",void 0);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hV.prototype,"onShowHideChat",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hV.prototype,"dataChanged",null);
_.V([_.vr("url"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hV.prototype,"urlChanged",null);_.V([_.vr("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hV.prototype,"collapsedChanged",null);_.V([_.yj({is:"ytd-live-chat-frame",disableElementRegistration:!0})],hV);
_.G(hV,"ytd-live-chat-frame",function(){if(KFj!==void 0)return KFj;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return KFj=D},{mode:1});var h2z;var xD=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};return D};
_.h(xD,_.w);xD.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=_.mW(this.data.backgroundColor)))};
xD.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var D=this.getFormattedStringLoggingDirectives(this.data.headline);D&&this.rendererBehavior.logExplicitClick(D)}};
xD.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var D=this.getFormattedStringLoggingDirectives(this.data.description);D&&this.rendererBehavior.logExplicitClick(D)}};
xD.prototype.getFormattedStringLoggingDirectives=function(D){return D&&D.runs&&D.runs.length>0&&D.runs[0]&&D.runs[0].loggingDirectives?D.runs[0].loggingDirectives:null};
xD.prototype.dataChanged=xD.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xD.prototype,"rendererBehavior",void 0);_.V([_.m(RLf.YtMacroReplacementBehavior),_.z("design:type",Object)],xD.prototype,"macroReplacementBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xD.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],xD.prototype,"navigationEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],xD.prototype,"enableColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xD.prototype,"modern",void 0);_.V([_.n(),_.z("design:type",Object)],xD.prototype,"buttonOverrides",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xD.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],xD);
_.G(xD,"ytd-action-basic-immersive-content-renderer",function(){if(h2z!==void 0)return h2z;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return h2z=D},{mode:1});var xO2;var LFJ;var Lk=function(){return _.w.apply(this,arguments)||this};
_.h(Lk,_.w);Lk.prototype.dataChanged=function(){var D;((D=this.data)==null?void 0:D.backgroundColor)!==void 0&&_.Os(this.hostElement,{"--bgu-color":_.mW(this.data.backgroundColor)})};
Lk.prototype.onImageTileClick=function(){var D;((D=this.data)==null?0:D.navigationEndpoint)&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var C;((C=this.data)==null?0:C.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.$a.Object.defineProperties(Lk.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?void 0:D.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 D;return((D=this.data)==null?void 0:D.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var D,C,X;if(((D=this.data)==null?void 0:(C=D.detailsLine)==null?void 0:C.texts)!=null&&((X=this.data)==null?void 0:X.detailsLine.texts.length)>0){var c;return(c=this.data)==null?void 0:c.detailsLine.texts.map(function(W){return W.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var D,C,X;if(((D=this.data)==null?void 0:(C=D.optionalDetailsLine)==null?void 0:C.texts)!=null&&((X=this.data)==null?void 0:X.optionalDetailsLine.texts.length)>0){var c;return(c=this.data)==null?void 0:c.optionalDetailsLine.texts.map(function(W){return W.text}).join("")}return null}}});
Lk.prototype.dataChanged=Lk.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Lk.prototype,"rendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Lk.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Lk.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.backgroundColor"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lk.prototype,"hasBackgroundColor",null);
_.V([_.e("data.objectFit"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lk.prototype,"getObjectFit",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.tileRenderingStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lk.prototype,"hasTileMetadata",null);_.V([_.e("data.detailsLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lk.prototype,"getSecondaryDetails",null);
_.V([_.e("data.optionalDetailsLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lk.prototype,"getOptionalDetails",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lk.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Lk);
_.G(Lk,"ytd-image-tile-renderer",function(){if(LFJ!==void 0)return LFJ;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return LFJ=D},{mode:1});var sSB;var sJ=function(){return _.w.apply(this,arguments)||this};
_.h(sJ,_.w);sJ.prototype.getOpenLinkIcon=function(){return _.b("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
sJ.prototype.onSitelinkTap=function(){_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.b("kevlar_command_handler_migration_killswitch"))_.o7(this.hostElement,this.data.clickCommands,this.hostElement);else for(var D=_.U(this.data.clickCommands),C=D.next();!C.done;C=D.next())this.ytComponentBehavior.resolveCommand(C.value)};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],sJ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sJ.prototype,"rendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sJ.prototype,"data",void 0);_.V([_.yj({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],sJ);
_.G(sJ,"ytd-sitelink-renderer",function(){if(sSB!==void 0)return sSB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return sSB=D},{mode:1});var mL=function(){var D=_.w.apply(this,arguments)||this;D.paddingFix=_.b("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.h(mL,_.w);mL.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"}}}};
mL.prototype.dataChanged=function(){var D=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;D.ytMacroReplacementBehavior.sendServiceRequestAction([C])})};
mL.prototype.shouldHideFooter=function(D){return!(D&&_.b("use_ads_engagement_panel_desktop_footer_cta"))};
_.$a.Object.defineProperties(mL.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((C=this.data)==null?void 0:C.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(X){var c;return(c=_.r(X,MRf))==null?void 0:c.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((C=this.data)==null?void 0:C.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(X){var c;return((c=_.r(X,MRf))==null?void 0:c.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
mL.prototype.dataChanged=mL.prototype.dataChanged;_.V([_.m(RLf.YtMacroReplacementBehavior),_.z("design:type",Object)],mL.prototype,"ytMacroReplacementBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],mL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],mL.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],mL.prototype,"paddingFix",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.imageTileRenderers"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mL.prototype,"removeBorderFromImageTiles",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.imageTileRenderers"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mL.prototype,"useFooteredMetadataRenderingStyle",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mL.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],mL);
_.G(mL,"ytd-action-engagement-panel-content-renderer",function(){if(xO2!==void 0)return xO2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return xO2=D},{mode:1});var mOf;var e2U=_.F(function(D){var C=D.data;var X=D.customCommandResolver;return _.A("ad-grid-card-image-full-metadata-view-model",{class:function(){var c;return((c=C().interaction)==null?0:c.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9}),_.Fv(function(){return C().interaction},X)),
"aria-label":function(){var c,W;return(c=C().interaction)==null?void 0:(W=c.accessibility)==null?void 0:W.label}},_.A("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(c){return _.A(_.Xa,{data:c.data,
customCommandResolver:X})}})),_.A("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.A(_.v,{cond:function(){return C().headline},
then:function(c){return _.A(_.QG,{text:c,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.A(_.v,{cond:function(){return C().detailsLine},
then:function(c){return _.A("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.A(_.BX,{data:c},{adDetailsLineViewModel:function(W){return _.A(_.Je,{data:W.data,customCommandResolver:X,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.A(_.v,{cond:function(){return C().secondaryDetailsLine},
then:function(c){return _.A("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.A(_.BX,{data:c},{adDetailsLineViewModel:function(W){return _.A(_.Je,{data:W.data,customCommandResolver:X,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Kn");var Eaf=_.F(function(D){var C=D.data;var X=D.customCommandResolver;return _.A("ad-grid-card-image-view-model",{class:function(){var c;return((c=C().interaction)==null?0:c.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9}),_.Fv(function(){return C().interaction},X)),
"aria-label":function(){var c,W;return(c=C().interaction)==null?void 0:(W=c.accessibility)==null?void 0:W.label}},_.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(c){return _.A(_.Xa,{data:c.data,
customCommandResolver:X})}}),_.A("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.A(_.BX,{data:function(){return C().adCardBadge}},{adCardBadgeViewModel:_.DQ4})))},"Ln");var tk6=_.F(function(D){var C=D.data;var X=D.customCommandResolver;return _.A("ad-grid-card-text-view-model",{class:function(){var c;return((c=C().interaction)==null?0:c.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9}),_.Fv(function(){return C().interaction},X)),
"aria-label":function(){var c,W;return(c=C().interaction)==null?void 0:(W=c.accessibility)==null?void 0:W.label}},_.A("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.A(_.v,{cond:function(){return C().title},
then:function(c){return _.A(_.QG,{text:c,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.A("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.A(_.Zh,{each:function(){var c;
return((c=C())==null?void 0:c.descriptions)||[]},
keyBy:"INDEX"},function(c){return _.A(_.QG,{text:c,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.A("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.A(_.BX,{data:function(){return C().moreInfoButton}},{adButtonViewModel:function(c){return _.A(_.FZ,{data:c.data,
customCommandResolver:X})}})))},"Mn");var Nrm=_.F(function(D){var C=D.data;var X=D.customCommandResolver;var c=D.adGridCardCollectionStyle;return _.A("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(W){var p,g=(p=C().interaction)==null?void 0:p.onFirstVisible;W&&g&&_.FV(g)},
showOption:_.n9})),style:function(){return"grid-template-columns: repeat("+dGf(c?c():C().style)+", minmax(0, 1fr));"}},_.A(_.BX,{data:function(){var W;
return(W=C())==null?void 0:W.gridCards}},{adGridCardImageViewModel:function(W){return _.A(Eaf,{data:W.data,
customCommandResolver:X})},
adGridCardImageFullMetadataViewModel:function(W){return _.A(e2U,{data:W.data,customCommandResolver:X})},
adGridCardTextViewModel:function(W){return _.A(tk6,{data:W.data,customCommandResolver:X})}}))},"Nn");_.CI(_.F(function(D){var C=D.data;return _.A("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.fb(_.kb({visibilityCallback:function(X){var c,W=(c=C().interaction)==null?void 0:c.onFirstVisible;X&&W&&_.FV(W)},
showOption:_.n9}),_.Fv(function(){return C().interaction},lfN))},_.A("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.A(_.v,{cond:_.Q55("(min-width: "+((0,_.CB)()+_.Ys)+"px)"),
then:function(){return _.A(_.BX,{data:function(){return C().adGridCardCollection}},{adGridCardCollectionViewModel:function(X){return _.A(Nrm,{data:X.data,
customCommandResolver:lfN})}})},
else:function(){return _.A(_.BX,{data:function(){return C().adGridCardCollection}},{adGridCardCollectionViewModel:function(X){return _.A(Nrm,{data:X.data,
customCommandResolver:lfN,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.A("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.A(_.BX,{data:function(){return C().adButton}},{adButtonViewModel:function(X){return _.A(_.FZ,{data:X.data,
customCommandResolver:lfN})}})))},"On"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;return _.A("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.fb(_.kb({visibilityCallback:function(X){var c,W=(c=C().interaction)==null?void 0:c.onFirstVisible;X&&W&&_.FV(W)},
showOption:_.n9}),_.Fv(function(){return C().interaction},DXN))},_.A("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.A(_.BX,{data:function(){if(_.Q55("(min-width: "+((0,_.CB)()+_.Ys)+"px)")())var X=C().adGridCardCollection;
else{X=Object.assign({},_.r(C().adGridCardCollection,fiU));var c;X.gridCards!==void 0&&((c=X.gridCards)==null?void 0:c.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 _.A(Nrm,{data:X.data,
customCommandResolver:DXN})}})),_.A("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.A(_.BX,{data:function(){return C().adButton}},{adButtonViewModel:function(X){return _.A(_.FZ,{data:X.data,
customCommandResolver:DXN})}})))},"Pn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Bm}});var eg=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return D};
_.h(eg,_.w);_.S=eg.prototype;_.S.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"}}}};
_.S.attached=function(){this.getDataFromPlayerAndRender()};
_.S.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.S.getDataFromPlayerAndRender=function(){var D=this,C=_.CT(this.hostElement);C&&C.getPlayerPromise().then(function(X){D.getCachedDataAndListen(X)})};
_.S.getCachedDataAndListen=function(D){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=D)};
_.S.resolveCachedActions=function(){var D=_.Df("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(D=D&&D())&&!_.ZI.isEmpty(D)&&this.sendUpdateEngagementPanelAction(D);(D=(D=_.Df("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&D())&&!_.ZI.isEmpty(D)&&this.sendChangeEngagementPanelVisibilityAction(D);(D=(D=_.Df("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&D())&&!_.ZI.isEmpty(D)&&this.sendScrollToEngagementPanelCommand(D)};
_.S.sendUpdateEngagementPanelAction=function(D){var C;_.DS(this.hostElement,"yt-update-engagement-panel-action",[(C=_.ZI.get(D,"action"))!=null?C:D])};
_.S.sendChangeEngagementPanelVisibilityAction=function(D){_.DS(this.hostElement,"yt-change-engagement-panel-visibility-action",[D])};
_.S.sendScrollToEngagementPanelCommand=function(D){_.DS(this.hostElement,"yt-scroll-to-engagement-panel-command",[D])};
_.S.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.b("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.fQ(Error("dp"))};
eg.prototype.dataChanged=eg.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],eg.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],eg.prototype,"componentBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],eg.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],eg.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],eg.prototype,"player",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eg.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],eg);
_.G(eg,"ytd-ads-engagement-panel-content-renderer",function(){if(mOf!==void 0)return mOf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return mOf=D},{mode:1});var Yrj;var EJ=function(){var D=_.w.apply(this,arguments)||this;D.player=null;D.JSC$23295_playerEvents=new Map;D.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return D};
_.h(EJ,_.w);_.S=EJ.prototype;_.S.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]]"}}}}}};
_.S.created=function(){this.player=null;this.JSC$23295_playerEvents=new Map;this.JSC$23295_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23295_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23295_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23295_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.S.attached=function(){var D=this,C=_.CT();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));C&&C.getPlayerPromise().then(function(X){D.setPlayer(X);D.set("isPageLoad",!1)})};
_.S.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23295_playerEvents);this.set("player",D);D&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$23295_playerEvents),D.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.S.onLoopRangeChange=function(D){var C=_.iX().resolve(_.vK(_.lu));if((!C||C.isOnWatch())&&this.hostElement.clientHeight){var X;!D&&((X=this.data)==null?0:X.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.S.onVideoProgress=function(D){var C,X,c=((C=this.player)==null?void 0:(X=C.getPresentingPlayerType)==null?void 0:X.call(C))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c);var W;if(!c&&(W=this.player)!=null&&W.getLoopRange()){X=this.player.getLoopRange();C=X.startTimeMs;X=X.endTimeMs;c=this.player.getProgressState(1).seekableStart;var p;C<c*1E3&&((p=this.data)==null?0:p.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
D=X<D*1E3;var g;((g=this.player)==null?0:g.getLoopRange())&&D&&this.player.seekTo(C/1E3)}};
_.S.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.S.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.S.onYtDeleteClipEngagementPanelCommand=function(D){_.r(D,Iod).command&&this.ytComponentBehavior.resolveCommand(_.r(D,Iod).command)};
_.$a.Object.defineProperties(EJ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.jV("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],EJ.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],EJ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],EJ.prototype,"isAdPlaying",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],EJ.prototype,"isPageLoad",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],EJ.prototype,"isDarkTheme",void 0);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],EJ.prototype,"voteCount",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],EJ.prototype,"channelEndpoint",null);_.V([_.e("channelEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],EJ.prototype,"channelHref",null);_.V([_.yj({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],EJ);
_.G(EJ,"ytd-clip-attribution-renderer",function(){if(Yrj!==void 0)return Yrj;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Yrj=D},{mode:1});var y0m;var tV=function(){var D=_.w.apply(this,arguments)||this;D.player=null;D.JSC$23300_playerEvents=new Map;return D};
_.h(tV,_.w);_.S=tV.prototype;_.S.created=function(){this.player=null;this.JSC$23300_playerEvents=new Map;this.JSC$23300_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23300_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23300_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.S.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.S.attached=function(){var D=this,C=_.CT();C&&C.getPlayerPromise().then(function(X){D.setPlayer(X);D.set("isPageLoad",!1)})};
_.S.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23300_playerEvents);this.set("player",D);if(D){this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$23300_playerEvents);var C;(D==null?void 0:(C=D.getPresentingPlayerType)==null?void 0:C.call(D))===2&&this.playerAdStartHandler()}};
_.S.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.S.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.S.onVideoProgress=function(){var D,C,X=((D=this.player)==null?void 0:(C=D.getPresentingPlayerType)==null?void 0:C.call(D))===2;this.isAdPlaying!==X&&this.set("isAdPlaying",X)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],tV.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],tV.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],tV.prototype,"isAdPlaying",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],tV.prototype,"isPageLoad",void 0);_.V([_.yj({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],tV);
_.G(tV,"ytd-clip-section-footer-renderer",function(){if(y0m!==void 0)return y0m;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return y0m=D},{mode:1});var na$;var wHH;var FFJ=function(){return _.w.apply(this,arguments)||this};
_.h(FFJ,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FFJ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FFJ.prototype,"data",void 0);_.V([_.yj({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],FFJ);
_.G(FFJ,"ytd-clip-ad-state-renderer",function(){if(wHH!==void 0)return wHH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return wHH=D},{mode:1});var Zl2;var NS=function(){var D=_.w.apply(this,arguments)||this;D.value="";D.valid=!1;D.userChangedValue=!1;D.disabled=!1;D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return D};
_.h(NS,_.w);_.S=NS.prototype;_.S.detached=function(){this.userChangedValue=!1};
_.S.handleKeyDown=function(D){if(_.ak)var C=13;else _.MZk&&_.Ik?C=13:C=13;D.keyCode===C&&D.preventDefault()};
_.S.handleInput=function(){var D=_.SY(this.hostElement).querySelector("#title");if(D){var C=(D.value||"").replace(/\r|\n/g," ");this.set("value",C);D.value=C;this.valid=D.validate();this.userChangedValue=!0}};
_.S.handleBlur=function(){this.valid=_.SY(this.hostElement).querySelector("#title").validate()};
_.S.onValueChanged=function(){_.lE(this.hostElement,"title-changed",{title:this.value})};
_.S.onValidChanged=function(){_.lE(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.S.setInput=function(D,C){var X=_.SY(this.hostElement).querySelector("#title");X&&(X.value=D,this.handleInput(),C&&(X.invalid=!1,this.valid=!0))};
_.S.onClipCreationDisable=function(){this.set("disabled",!0)};
_.S.onClipCreationEnable=function(){this.set("disabled",!1)};
_.S.onClipCreationVisibilityChange=function(D){var C=this;D.visible?requestAnimationFrame(function(){var X;((X=_.SY(C.hostElement).querySelector("#title"))==null?void 0:X.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
NS.prototype.onValidChanged=NS.prototype.onValidChanged;NS.prototype.onValueChanged=NS.prototype.onValueChanged;NS.prototype.handleBlur=NS.prototype.handleBlur;NS.prototype.handleInput=NS.prototype.handleInput;NS.prototype.handleKeyDown=NS.prototype.handleKeyDown;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],NS.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],NS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],NS.prototype,"value",void 0);_.V([_.n(),_.z("design:type",Object)],NS.prototype,"valid",void 0);_.V([_.n(),_.z("design:type",Object)],NS.prototype,"userChangedValue",void 0);_.V([_.n(),_.z("design:type",Object)],NS.prototype,"disabled",void 0);_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],NS.prototype,"handleKeyDown",null);
_.V([_.$n("input"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NS.prototype,"handleInput",null);_.V([_.$n("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NS.prototype,"handleBlur",null);_.V([_.vr("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NS.prototype,"onValueChanged",null);
_.V([_.vr("valid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NS.prototype,"onValidChanged",null);_.V([_.yj({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],NS);
_.G(NS,"ytd-clip-creation-text-input-renderer",function(){if(Zl2!==void 0)return Zl2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Zl2=D},{mode:1});var GTz;var VkB;var TrB;var HlH;var J0H;var YD=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};D.pendingStoryboardImages_={};D.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];D.tickLabelInterval=30;D.mediumTickInterval=5;D.largeTickInterval=15;D.aboveRulerHeight=32;D.rulerHeight=50;D.smallTickHeight=4;D.mediumTickHeight=8;D.largeTickHeight=16;D.mediaListeners_=
{};return D};
_.h(YD,_.w);_.S=YD.prototype;_.S.attached=function(){var D=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(C){C=_.U(["screen and (min-resolution: "+C+")","screen and (max-resolution: "+C+")"]);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=window.matchMedia(X);c&&(D.mediaListeners_[X]=D.updatePixelRatio_.bind(D),c.addEventListener?c.addEventListener("change",D.mediaListeners_[X]):c.addListener?c.addListener(D.mediaListeners_[X]):delete D.mediaListeners_[X])}})};
_.S.detached=function(){this.setPlayer(null);for(var D=_.U(Object.keys(this.mediaListeners_)),C=D.next();!C.done;C=D.next()){var X=C.value;C=this.mediaListeners_[X];(X=window.matchMedia(X))&&(X.removeEventListener?X.removeEventListener("change",C):X.removeListener&&X.removeListener(C))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.S.onVisibilityChangedAction_=function(D){var C=this;D.visible&&!this.player_&&(D=_.CT())&&D.getPlayerPromise().then(function(X){C.setPlayer(X)})};
_.S.setPlayer=function(D){D&&this.set("player_",D)};
_.S.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.S.setUpCanvas_=function(){var D=this.rulerWidth,C=this.devicePixelRatio_,X=this.visible;this.set("canvasReady_",!1);if(X&&C!==0){X=this.aboveRulerHeight+this.rulerHeight;var c=_.SY(this.hostElement).querySelector("#ticks");c.width=D*C;c.height=X*C;c.style.width=D+"px";c.style.height=X+"px";c.getContext("2d").scale(C,C);this.set("canvasReady_",!0)}};
_.S.drawRuler_=function(D,C,X,c,W,p,g,a,O,P,k,u){D&&X&&C&&(D=_.SY(this.hostElement).querySelector("#ticks"),C=D.getContext("2d"),C.clearRect(0,0,D.width,D.height),C.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),C.lineWidth=2,C.beginPath(),C.moveTo(0,this.aboveRulerHeight),C.lineTo(D.width,this.aboveRulerHeight),C.moveTo(0,D.height),C.lineTo(D.width,D.height),C.stroke(),this.drawRulerTicks_(D,p,W,c),this.drawStoryboardImages_(D,X,p,W,c),C.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
C.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(g-p,c,!1),this.rulerHeight),X=this.timeToPixels_(a-p,c,!1),C.fillRect(X,this.aboveRulerHeight,D.width-X,this.rulerHeight),this.drawSpeedLines_(D,p,u))};
_.S.drawRulerTicks_=function(D,C,X,c){var W=D.getContext("2d");W.save();W.lineWidth=1;for(var p=Math.floor(Math.max(0,C-this.tickLabelInterval));p<C+X;p++){W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var g=(p-C)*c;W.beginPath();W.moveTo(g,D.height);var a=this.smallTickHeight;p%this.largeTickInterval===0?a=this.largeTickHeight:p%this.mediumTickInterval===0&&(a=this.mediumTickHeight);W.lineTo(g,D.height-a);W.stroke();p%this.tickLabelInterval===0&&(W.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),W.fillText(m4(p),g+4,12),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.moveTo(g,0),W.lineTo(g,this.aboveRulerHeight),W.stroke())}W.restore()};
_.S.percentToHex_=function(D){D=Math.round(D*255).toString(16);D.length<2&&(D="0"+D);return D};
_.S.drawSpeedLines_=function(D,C,X){var c=D.getContext("2d");c.save();var W=Math.min(25,Math.abs(X)-15)/25,p=D.width*.3*W,g=D.width*-.3,a=D.width*1.3,O=this.aboveRulerHeight;D=D.height;var P=Math.round(4*W),k=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");k.length<7&&(k="#"+k.substring(1,4).repeat(2));var u=this.percentToHex_(.5+W/2);u=k+u;k+="00";if(W>0)for(W=0;W<P;W++){var Q=g+Math.random()*(a-g),B=O+Math.random()*(D-O),K=p+C%p,L=c.createLinearGradient(Q,B,Q+K,B);
X<0?(L.addColorStop(0,u),L.addColorStop(.4,u),L.addColorStop(.9,k)):(L.addColorStop(.1,k),L.addColorStop(.6,u),L.addColorStop(1,u));c.strokeStyle=L;c.lineWidth=1;c.beginPath();c.moveTo(Q,B);c.lineTo(Q+K,B);c.stroke()}c.restore()};
_.S.getStoryboardForTime_=function(D,C,X){X===void 0&&(X=C.getNumberOfStoryboardLevels()-1);D=C.getStoryboardFrameIndex(D,X);return C.getStoryboardFrame(D,X)};
_.S.drawStoryboardImages_=function(D,C,X,c,W){if(!this.disabled){D=D.getContext("2d");var p=this.getStoryboardForTime_(0,C);if(p){var g=p.width/p.columns;p=p.height/p.rows;var a=g/p,O=this.rulerHeight*a;O=this.tickLabelInterval*(a<this.tickLabelInterval*W/this.rulerHeight?1/Math.floor(this.tickLabelInterval*W/O):Math.round(O/(this.tickLabelInterval*W)));var P=O*W,k=this.rulerHeight,u=P/this.rulerHeight,Q=Math.floor(Math.max(0,X-O));for(Q-=Q%O;Q<X+c;Q+=O){var B=this.getStoryboardForTime_(Q,C),K=this.getPreloadedStoryboard_(B.url);
if(K){var L=(Q-X)*W,t=this.aboveRulerHeight,Y=B.column*g,y=B.row*p;if(a<u){var J=k/(P/a);B=g;J*=p;y+=(p-J)/2}else B=P/(k*a)*g,J=p,Y+=(g-B)/2;D.drawImage(K,Y,y,B,J,L,t,P,k)}else this.fetchStoryboardImage_(B)}}}};
_.S.getPreloadedStoryboard_=function(D){return this.storyboardImages_.find(function(C){if(C.src==D)return!0;var X=C.src.indexOf(D);return X!=-1&&X==C.src.length-D.length})};
_.S.fetchStoryboardImage_=function(D){var C=this,X=this.getPreloadedStoryboard_(D.url),c=this.pendingStoryboardImages_[D.url];X||c!==void 0||(X=new Promise(function(W){var p=new Image(D.width,D.height);p.src=D.url;p.onload=function(){W(p)};
p.onerror=function(){W(null)}}),this.pendingStoryboardImages_[D.url]=X,X.then(function(W){W&&C.push("storyboardImages_",W);
return W}).finally(function(){delete C.pendingStoryboardImages_[D.url]}))};
_.S.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.S.timeToPixels_=function(D,C,X){D*=C;return X===void 0||X?D+"px":D};
_.S.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
YD.prototype.drawRuler_=YD.prototype.drawRuler_;YD.prototype.setUpCanvas_=YD.prototype.setUpCanvas_;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],YD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],YD.prototype,"start",void 0);_.V([_.n({value:30}),_.z("design:type",Number)],YD.prototype,"end",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],YD.prototype,"visible",void 0);_.V([_.n(),_.z("design:type",Object)],YD.prototype,"player_",void 0);_.V([_.n(),_.z("design:type",Number)],YD.prototype,"tickSpacing",void 0);_.V([_.n(),_.z("design:type",Number)],YD.prototype,"windowSizeSec",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],YD.prototype,"rulerWidth",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],YD.prototype,"rulerShift",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],YD.prototype,"canvasReady_",void 0);_.V([_.n({value:function(){return[]}}),
_.z("design:type",Array)],YD.prototype,"storyboardImages_",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],YD.prototype,"disabled",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],YD.prototype,"forceRender_",void 0);_.V([_.n({value:1}),_.z("design:type",Number)],YD.prototype,"devicePixelRatio_",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],YD.prototype,"windowSpeed",void 0);
_.V([_.vr("visible","devicePixelRatio_","rulerWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YD.prototype,"setUpCanvas_",null);
_.V([_.vr("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.z("design:returntype")],YD.prototype,"drawRuler_",null);_.V([_.Yn({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],YD);
_.G(YD,"yt-clip-creation-scrubber-canvas",function(){if(J0H===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);J0H=D}D=J0H;return D},
{mode:2});var z2v;var jSv;var ym=function(){var D=_.w.apply(this,arguments)||this;D.start=0;D.end=30;D.visible=!1;D.draggingLeft_=!1;D.draggingRight_=!1;D.draggingRuler_=!1;D.draggingWindow_=!1;D.seekableStart=0;D.seekableEnd=0;D.rulerWidth_=0;D.rulerShift_=0;D.windowSlideSpeed=0;D.disabled=!1;D.initialized=!1;D.durationAccessibilityLabel="";D.activeLoopRange_=!1;D.rulerDragMouseStart_=0;D.rulerDragRulerStart_=0;D.rulerDragStartTime_=0;D.rulerDragEndTime_=0;D.dragMouseLastX_=0;D.scrollInterval_=null;D.scrubberVe_=null;D.boundHandlers_=
{};D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.h(ym,_.w);_.S=ym.prototype;
_.S.created=function(){var D=this;this.JSC$23313_playerEvents=new Map;this.JSC$23313_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23313_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23313_playerEvents.set("onStateChange",this.onStateChange_);var C={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(C).forEach(function(X){D.boundHandlers_[X]=C[X].bind(D)})};
_.S.attached=function(){this.activeLoopRange_=!1;_.SY(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.SY(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Ia(156731)};
_.S.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.SY(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.SY(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.S.onVisibilityChangedAction_=function(D){var C=this;D.visible&&!this.player_&&(D=_.CT())&&D.getPlayerPromise().then(function(X){C.setPlayer(X)})};
_.S.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23313_playerEvents);D&&(this.set("player_",D),this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$23313_playerEvents))};
_.S.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.S.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.S.beginHandleDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=D.clientX,D.target===_.SY(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():D.target===_.SY(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.S.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.S.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.S.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.S.beginRulerDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=D.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.S.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.S.beginWindowScroll_=function(){var D=this;this.scrollInterval_=setInterval(function(){var C=D.windowSlideSpeed;if(C=_.SON(D.start,D.boundedRulerStartLimit_())?C-.1:_.SON(D.end,D.boundedRulerEndLimit_())?C+.1:0){var X=D.capRulerOffset_(D.rulerShift_+C);X==D.rulerShift_?C=0:(D.set("rulerShift_",X),_.lE(D.hostElement,"set-fixed-length-range",{start:D.start+C,duration:D.end-D.start}))}D.set("windowSlideSpeed",C)},33)};
_.S.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.S.endDrag_=function(){this.logClick();var D=void 0;this.draggingRight_?D=this.end-1:this.draggingLeft_&&(D=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,D);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))};
_.S.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.S.updateRulerSize_=function(){this.set("rulerWidth_",_.SY(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.S.handleMouseDrag_=function(D){D.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(D):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(D):this.draggingWindow_&&this.handleWindowDrag_(D))};
_.S.handleRulerDrag_=function(D){D=this.pixelsToTime_(D.clientX-this.rulerDragMouseStart_);D=this.capRulerOffset_(this.rulerDragRulerStart_-D);this.set("rulerShift_",D);var C=this.rulerDragStartTime_-(this.rulerDragRulerStart_-D);_.lE(this.hostElement,"set-fixed-length-range",{start:C,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-D)-C})};
_.S.handleWindowDrag_=function(D){var C=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(C);_.lE(this.hostElement,"set-fixed-length-range",{start:this.start+D,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.S.capRulerOffset_=function(D){var C=this.seekableStart-this.pixelsToTime_(16),X=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(C,D),X)};
_.S.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.S.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.S.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.S.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.S.handleWindowHandleDrag_=function(D){var C=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(C);if(this.draggingLeft_){var X=this.start+D;var c=this.end}else this.draggingRight_&&(X=this.start,c=this.end+D);_.lE(this.hostElement,"set-range",{start:X,end:c,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.S.onVideoProgress_=function(D){this.disabled||(D=this.timeToPixels_(D-this.rulerShift_,this.tickSpacing_),_.SY(this.hostElement).querySelector("#playhead").style.transform="translateX("+D+")")};
_.S.onClipCreationDisable_=function(){this.endDrag_()};
_.S.timeToPixels_=function(D,C,X){D*=C;return X===void 0||X?D+"px":D};
_.S.pixelsToTime_=function(D){return D/this.tickSpacing_};
_.S.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.S.centerRuler_=function(D,C,X){this.set("rulerShift_",this.capRulerOffset_(D+(C-D)/2-X/2))};
_.S.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.S.updateLoopRange_=function(D,C,X,c,W,p,g){D&&(C&&c&&!X?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(D.pauseVideo(),D.seekTo(W,!1,void 0,void 0,50)):this.draggingRight_?(D.pauseVideo(),D.seekTo(p-.1,!1,void 0,void 0,50)):(g!==void 0?D.seekTo(g,!0,void 0,void 0,50):(C=D.getCurrentTime(),C<W||C>p?D.seekTo(W,!0,void 0,void 0,50):D.seekTo(C,!0,void 0,void 0,50)),D.playVideo()),D.setLoopRange({startTimeMs:W*1E3,endTimeMs:p*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(D.getCurrentTime())):
this.activeLoopRange_&&(D.setLoopRange(null),this.activeLoopRange_=!1))};
_.S.updateHandles_=function(){_.SY(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.SY(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.S.updateRuler_=function(){var D=this.end,C=this.start,X=this.draggableStartLimit_(),c=this.draggableEndLimit_();(C<X-.001||D>c+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.S.computeDurationLabel_=function(D,C){return D?D.replace("$clip_length",parseFloat(C).toFixed(1)):""};
_.S.computeDuration_=function(D,C){return this.isValidTime_(D)&&this.isValidTime_(C)&&D<C?C-D:0};
_.S.isValidTime_=function(D){return isNaN(parseFloat(D))||D<0?!1:this.player_?D>=this.seekableStart&&D<=this.seekableEnd:!0};
_.S.computeWindowSizeSec_=function(D,C,X){return Math.min((D||12E4)/1E3,X-C)};
_.S.computeTickSpacing_=function(D,C){return C?C/D:1};
_.S.onDragStateChanged_=function(){_.lE(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.S.centerRangeOnTime_=function(D){var C=this.duration;D=Xzm(D-C/2,C,this.seekableStart,this.seekableEnd);_.lE(this.hostElement,"set-fixed-length-range",{start:D.start,duration:D.end-D.start})};
_.S.nearlyLessThan_=function(D,C,X){return D+(X===void 0?1E-6:X)<C};
_.S.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var D=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(D,this.start)||this.nearlyLessThan_(this.end,D))&&this.centerRangeOnTime_(D)}};
_.S.onStateChange_=function(D){this.visible&&!this.disabled&&D==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.S.computeDragState_=function(D,C,X,c){return D?"left":C?"right":X?"ruler":c?"window":"none"};
_.S.logClick=function(){var D=_.LN(),C=_.xr();D&&C&&this.scrubberVe_&&(_.b("combine_ve_grafts")?_.Vc(_.iO(),this.scrubberVe_,C):_.F_(D,C,this.scrubberVe_),_.HE(D,this.scrubberVe_))};
ym.prototype.onDragStateChanged_=ym.prototype.onDragStateChanged_;ym.prototype.updateRuler_=ym.prototype.updateRuler_;ym.prototype.updateHandles_=ym.prototype.updateHandles_;ym.prototype.onUpdateLoopRange=ym.prototype.onUpdateLoopRange;ym.prototype.onInitializedChanged_=ym.prototype.onInitializedChanged_;ym.prototype.onVisibleChanged_=ym.prototype.onVisibleChanged_;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ym.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",Object)],ym.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"start",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"end",void 0);_.V([_.n({computed:"computeDuration_(start, end)"}),_.z("design:type",Number)],ym.prototype,"duration",void 0);
_.V([_.n(),_.z("design:type",String)],ym.prototype,"lengthTemplate",void 0);_.V([_.n({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.z("design:type",String)],ym.prototype,"durationLabel",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"visible",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"player_",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"draggingLeft_",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"draggingRight_",void 0);
_.V([_.n(),_.z("design:type",Object)],ym.prototype,"draggingRuler_",void 0);_.V([_.n({value:!1}),_.z("design:type",Object)],ym.prototype,"draggingWindow_",void 0);_.V([_.n({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.z("design:type",Number)],ym.prototype,"tickSpacing_",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"seekableStart",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"seekableEnd",void 0);
_.V([_.n(),_.z("design:type",Number)],ym.prototype,"windowSizeMs",void 0);_.V([_.n({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.z("design:type",Number)],ym.prototype,"windowSizeSec_",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"rulerWidth_",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"rulerShift_",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"windowSlideSpeed",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ym.prototype,"disabled",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"initialized",void 0);_.V([_.n(),_.z("design:type",Object)],ym.prototype,"durationAccessibilityLabel",void 0);_.V([_.n({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.z("design:type",String)],ym.prototype,"dragState",void 0);
_.V([_.vr("visible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"onVisibleChanged_",null);_.V([_.vr("initialized"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"onInitializedChanged_",null);_.V([_.vr("player_","visible","disabled","initialized","start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"onUpdateLoopRange",null);
_.V([_.vr("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"updateHandles_",null);_.V([_.vr("start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"updateRuler_",null);
_.V([_.vr("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"onDragStateChanged_",null);_.V([_.Yn({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ym);
_.G(ym,"yt-clip-creation-scrubber-view",function(){if(jSv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;z2v===void 0&&(z2v=document.createElement("template"));var c=z2v;X.call(C,c.content.cloneNode(!0),D.content.firstChild);jSv=D}D=jSv;return D},{mode:2});var nk=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};D.startHighlightTimeout=0;D.endHighlightTimeout=0;return D};
_.h(nk,_.w);_.S=nk.prototype;_.S.attached=function(){var D=this;this.startInput.addEventListener("input",function(C){return D.handleStartInput_(C)});
this.endInput.addEventListener("input",function(C){return D.handleEndInput_(C)});
this.startInput.addEventListener("focusout",function(C){return D.handleStartBlur_(C)});
this.endInput.addEventListener("focusout",function(C){return D.handleEndBlur_(C)})};
_.S.setPlayer=function(D){this.set("player_",D)};
_.S.onSetFixedLengthRange_=function(D){var C=D.detail;D=C.start;var X=C.duration,c=C.startLimit;C=C.endLimit;c||(c=this.seekableStart_);C||(C=this.seekableEnd_);D=Xzm(D,X,c,C);this.start=D.start;this.end=D.end};
_.S.onSetRange_=function(D){var C=D.detail;D=C.start;var X=C.end,c=C.startLimit;C=C.endLimit;c||(c=this.seekableStart_);C||(C=this.seekableEnd_);if(D=cCz(D,X,c,C,this.minLengthSec,this.maxLengthSec))this.start=D.start,this.end=D.end};
_.S.updateInputs_=function(){var D=this.end,C=this.start;this.startInput.focused||(this.startInput.value=m4(C,!0));this.endInput.focused||(this.endInput.value=m4(D,!0))};
_.S.handleStartInput_=function(D){D=Cl6(D.target.value);if(D===null)this.set("startValid",!1);else{var C=this.end,X=cCz(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);X?(this.set("endWillUpdate",X.end!==C),this.set("startValid",X.start===D)):this.set("startValid",!1)}};
_.S.handleEndInput_=function(D){D=Cl6(D.target.value);if(D===null)this.set("endValid",!1);else{var C=this.start,X=ohd(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);X?(this.set("startWillUpdate",X.start!==C),this.set("endValid",X.end===D)):this.set("endValid",!1)}};
_.S.handleStartBlur_=function(D){D=Cl6(D.target.value);D===null?this.startInput.value=m4(this.start,!0):this.forceUpdateInputs_(cCz(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.S.handleEndBlur_=function(D){D=Cl6(D.target.value);D===null?this.endInput.value=m4(this.end,!0):this.forceUpdateInputs_(ohd(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.S.forceUpdateInputs_=function(D){D&&(this.start=D.start,this.end=D.end);this.startInput.value=m4(this.start,!0);this.endInput.value=m4(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.S.initializeClipRange_=function(){var D=this.seekableEnd_,C=this.seekableStart_,X=this.visible_,c=this.player_;if(!c||!X||C===null||!D)this.set("initialized",!1);else if(!this.initialized){var W=c.getCurrentTime(),p=this.getDefaultLengthSec_();X=c.getVideoData();var g=c.getPlayerState()==1,a=X.isLive;p=Math.min(p,D-C);W=Math.max(0,W);D=a?ohd(W-p,W,C,D,this.minLengthSec,this.maxLengthSec):g?Xzm(W-p/2,p,C,D):Xzm(W,p,C,D);this.start=D.start;this.end=D.end;this.set("initialized",!0);X.isLive&&c.seekTo(D.start);
this.startInput.value=m4(this.start,!0);this.endInput.value=m4(this.end,!0)}};
_.S.onStartChanged_=function(){var D=this;_.lE(this.hostElement,"start-changed",{start:this.start});var C;isNaN((C=this.oldStart)!=null?C:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){D.set("highlightStart",!1);D.startHighlightTimeout=0;D.oldStart=D.start},3E3))};
_.S.onEndChanged_=function(){var D=this;_.lE(this.hostElement,"end-changed",{end:this.end});var C;isNaN((C=this.oldEnd)!=null?C:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){D.set("highlightEnd",!1);D.endHighlightTimeout=0;D.oldEnd=D.end},3E3))};
_.S.onVisibilityChangedAction_=function(D){var C=this;this.set("visible_",D.visible);this.visible_&&!this.player_&&(D=_.CT())&&D.getPlayerPromise().then(function(X){C.setPlayer(X)})};
_.S.computeMinLengthSec_=function(D){return D/1E3||5};
_.S.computeMaxLengthSec_=function(D){return D/1E3||60};
_.S.computeDefaultLengthSec_=function(D){return D/1E3};
_.S.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.S.computeSeekableStart_=function(D,C){return D&&C?D.getProgressState(1).seekableStart:0};
_.S.computeSeekableEnd_=function(D,C){return D&&C?D.getProgressState(1).seekableEnd:0};
_.S.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.S.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.S.onDragState_=function(D){this.set("highlightStart",D.detail.startChanging);this.set("highlightEnd",D.detail.endChanging)};
nk.prototype.onDragState_=nk.prototype.onDragState_;nk.prototype.onEndChanged_=nk.prototype.onEndChanged_;nk.prototype.onStartChanged_=nk.prototype.onStartChanged_;nk.prototype.initializeClipRange_=nk.prototype.initializeClipRange_;nk.prototype.updateInputs_=nk.prototype.updateInputs_;nk.prototype.onSetRange_=nk.prototype.onSetRange_;nk.prototype.onSetFixedLengthRange_=nk.prototype.onSetFixedLengthRange_;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],nk.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nk.prototype,"data",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],nk.prototype,"start",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],nk.prototype,"startValid",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],nk.prototype,"startWillUpdate",void 0);_.V([_.n({value:30}),_.z("design:type",Number)],nk.prototype,"end",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],nk.prototype,"endValid",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],nk.prototype,"endWillUpdate",void 0);_.V([_.n({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.z("design:type",Number)],nk.prototype,"minLengthSec",void 0);
_.V([_.n({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.z("design:type",Number)],nk.prototype,"maxLengthSec",void 0);_.V([_.n({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.z("design:type",Number)],nk.prototype,"defaultLengthSec",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],nk.prototype,"visible_",void 0);_.V([_.n(),_.z("design:type",Object)],nk.prototype,"player_",void 0);
_.V([_.n({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.z("design:type",Number)],nk.prototype,"seekableStart_",void 0);_.V([_.n({computed:"computeSeekableEnd_(player_, visible_)"}),_.z("design:type",Number)],nk.prototype,"seekableEnd_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],nk.prototype,"initialized",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],nk.prototype,"disabled",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],nk.prototype,"highlightStart",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],nk.prototype,"highlightEnd",void 0);_.V([_.kn("#start"),_.z("design:type",HTMLInputElement)],nk.prototype,"startInput",void 0);_.V([_.kn("#end"),_.z("design:type",HTMLInputElement)],nk.prototype,"endInput",void 0);
_.V([_.$n("set-fixed-length-range"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nk.prototype,"onSetFixedLengthRange_",null);_.V([_.$n("set-range"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nk.prototype,"onSetRange_",null);_.V([_.vr("start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nk.prototype,"updateInputs_",null);
_.V([_.vr("player_","visible_","seekableStart_","seekableEnd_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nk.prototype,"initializeClipRange_",null);_.V([_.vr("start"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nk.prototype,"onStartChanged_",null);_.V([_.vr("end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nk.prototype,"onEndChanged_",null);
_.V([_.$n("clips-drag-state"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nk.prototype,"onDragState_",null);_.V([_.Yn({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],nk);
_.G(nk,"yt-clip-creation-scrubber-renderer",function(){if(HlH===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;TrB===void 0&&(TrB=document.createElement("template"));var c=TrB;X.call(C,c.content.cloneNode(!0),D.content.firstChild);HlH=D}D=HlH;return D},{mode:2});var wa=function(){var D=_.w.apply(this,arguments)||this;D.player_=null;D.JSC$23327_playerEvents=new Map;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.h(wa,_.w);_.S=wa.prototype;_.S.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"}}}};
_.S.created=function(){this.JSC$23327_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23327_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23327_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23327_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.S.detached=function(){this.setPlayer(null)};
_.S.onVisibilityChangedAction_=function(D){var C=this,X;if((X=this.data)==null?0:X.externalVideoId){var c;this.videoId=(c=this.data)==null?void 0:c.externalVideoId}this.getPlayer().then(function(W){if(D.visible)C.returnTime=W.getCurrentTime(),C.isAtLiveHead=W.getProgressState().isAtLiveHead;else{var p=C.returnTime;C.isAtLiveHead&&(p=Number.POSITIVE_INFINITY);W.seekTo(p,void 0,void 0,void 0,51)}})};
_.S.getPlayer=function(){var D=this;if(!this.player_){var C=_.CT();if(C)return C.getPlayerPromise().then(function(X){D.setPlayer(X);return X})}return Promise.resolve(this.player_)};
_.S.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23327_playerEvents);if(D){this.player_=D;var C;((C=this.data)==null?0:C.externalVideoId)||this.set("videoId",D.getVideoData().video_id||"");var X;(D==null?void 0:(X=D.getPresentingPlayerType)==null?void 0:X.call(D))===2&&(this.set("isAdPlaying",!0),_.DS(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$23327_playerEvents)}};
_.S.ready=function(){_.SY(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.S.onTitleChanged_=function(D){this.set("titleValue",D.detail.title)};
_.S.onStartChanged_=function(D){this.set("start",D.detail.start)};
_.S.onEndChanged_=function(D){this.set("end",D.detail.end)};
_.S.onTitleValidChanged_=function(D){this.set("titleValid",D.detail.valid)};
_.S.onStartValidChanged_=function(D){this.set("startValid",D.detail.valid)};
_.S.onEndValidChanged_=function(D){this.set("endValid",D.detail.valid)};
_.S.onVideoDataChange_=function(){var D;if((D=this.data)==null||!D.externalVideoId){var C;this.set("videoId",((C=this.player_)==null?void 0:C.getVideoData().video_id)||"")}};
_.S.computeFormValid_=function(D,C,X,c){return!!(D&&C&&X&&c)};
_.S.computeCancelButton_=function(D,C,X){return D&&_.r(D,_.AF)?{buttonRenderer:Object.assign({},_.r(D,_.AF),{isDisabled:C||X})}:null};
_.S.computeSubmitButton_=function(D,C,X){return D&&_.r(D,_.AF)?{buttonRenderer:Object.assign({},_.r(D,_.AF),{command:void 0,isDisabled:!this.formValid||C||X})}:null};
_.S.computeSubmitCommand_=function(D){return D||null};
_.S.onSubmit_=function(D){var C=this;D.stopPropagation();D.preventDefault();this.submitCommand_&&(D={},D.comment_text=this.titleValue,D.clip_external_video_id=this.videoId,D.clip_offset_ms=parseInt(this.start*1E3,10),D.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.cE(this.hostElement,[this.submitCommand_,D]).then(function(){C.set("isLoading_",!1)},function(){C.set("isLoading_",!1)}))};
_.S.playerAdStartHandler_=function(){_.DS(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.S.playerAdEndHandler_=function(){_.DS(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.S.onVideoProgress_=function(){var D=this;this.getPlayer().then(function(C){var X,c=(C==null?void 0:(X=C.getPresentingPlayerType)==null?void 0:X.call(C))===2;D.isAdPlaying!==c&&(c?D.playerAdStartHandler_():D.playerAdEndHandler_())})};
wa.prototype.onEndValidChanged_=wa.prototype.onEndValidChanged_;wa.prototype.onStartValidChanged_=wa.prototype.onStartValidChanged_;wa.prototype.onTitleValidChanged_=wa.prototype.onTitleValidChanged_;wa.prototype.onEndChanged_=wa.prototype.onEndChanged_;wa.prototype.onStartChanged_=wa.prototype.onStartChanged_;wa.prototype.onTitleChanged_=wa.prototype.onTitleChanged_;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",Object)],wa.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wa.prototype,"data",void 0);_.V([_.n({value:""}),_.z("design:type",String)],wa.prototype,"titleValue",void 0);
_.V([_.n({value:!1}),_.z("design:type",Boolean)],wa.prototype,"titleValid",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],wa.prototype,"start",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],wa.prototype,"startValid",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],wa.prototype,"end",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],wa.prototype,"endValid",void 0);_.V([_.n({value:""}),_.z("design:type",String)],wa.prototype,"videoId",void 0);
_.V([_.n({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.z("design:type",Boolean)],wa.prototype,"formValid",void 0);_.V([_.n({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.z("design:type",Object)],wa.prototype,"submitButton_",void 0);_.V([_.n({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.z("design:type",Object)],wa.prototype,"submitCommand_",void 0);
_.V([_.n({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.z("design:type",Object)],wa.prototype,"cancelButton_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],wa.prototype,"isLoading_",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],wa.prototype,"isAdPlaying",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],wa.prototype,"returnTime",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],wa.prototype,"isAtLiveHead",void 0);
_.V([_.$n("title-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wa.prototype,"onTitleChanged_",null);_.V([_.$n("start-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wa.prototype,"onStartChanged_",null);_.V([_.$n("end-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wa.prototype,"onEndChanged_",null);
_.V([_.$n("title-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wa.prototype,"onTitleValidChanged_",null);_.V([_.$n("start-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wa.prototype,"onStartValidChanged_",null);_.V([_.$n("end-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],wa.prototype,"onEndValidChanged_",null);
_.V([_.Yn({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],wa);
_.G(wa,"yt-clip-creation-renderer",function(){if(VkB===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;GTz===void 0&&(GTz=document.createElement("template"));var c=GTz;X.call(C,c.content.cloneNode(!0),D.content.firstChild);VkB=D}D=VkB;return D},{mode:2});var Fp=function(){return _.w.apply(this,arguments)||this};
_.h(Fp,_.w);Fp.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"}}}};
Fp.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(D){return D.hasOwnProperty("clipCreationRenderer")})&&_.DS(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Fp.prototype.onPanelContentVisibleChanged=Fp.prototype.onPanelContentVisibleChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.$Z.YtVisibilityBehavior),_.z("design:type",Object)],Fp.prototype,"ytVisibilityBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Fp.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Fp.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Fp.prototype,"panelContentVisible",void 0);_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fp.prototype,"onPanelContentVisibleChanged",null);_.V([_.yj({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Fp);
_.G(Fp,"ytd-clip-section-renderer",function(){if(na$!==void 0)return na$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return na$=D},{mode:1});var Mkv;var ZW=function(){return _.w.apply(this,arguments)||this};
_.h(ZW,_.w);_.S=ZW.prototype;
_.S.onKeyDown=function(D){if(this.snippetElements.length!==0&&(D=D.keyCode,D===38||D===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);D===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.N8(this.highlightedIndex,-1,this.snippetElements.length);D=this.snippetElements.length;var C=this.highlightedIndex%D;this.highlightedIndex=C*D<0?C+D:C;D=this.snippetElements[this.highlightedIndex];this.highlightSnippet(D);this.ensureVisible(D)}};
_.S.onKeyUp=function(D){var C=this;zxz(D)&&(D.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.qX.cancelJob(this.inputTimerId),this.inputTimerId=_.qX.addLowPriorityJob(function(){C.typedValue&&(C.fetchSnippets(C.typedValue),C.logInputGesture(C.data))},1E3))};
_.S.onClick=function(D){(D=_.Feb(D.target,null,"snippet-item"))&&this.selectSnippet(D)};
_.S.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.S.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.S.ready=function(){var D=this;this.inputElement.addEventListener("focus",function(){D.snippetsWrapper.style.removeProperty("display")})};
_.S.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.S.getSourceTimelines=function(){if(!this.data)return[];var D=[];if(this.data.searchInVideoSources)for(var C=_.U(this.data.searchInVideoSources),X=C.next();!X.done;X=C.next())X=X.value,X==="SEARCH_IN_VIDEO_SOURCE_ASR"?D.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):X==="SEARCH_IN_VIDEO_SOURCE_OCR"&&D.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return D};
_.S.fetchSnippets=function(D){var C=_.DS(this.hostElement,"yt-get-current-video-id-action")[0],X=this.getSourceTimelines();D={getSearchInVideoCommand:{externalVideoId:C,query:D!=null?D:"",sourceTimelines:X},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})};
_.S.filterSnippets=function(D,C){var X=this;if(C){this.filteredSnippets=(0,_.ZI.unsafeClone)(D);var c=RegExp(_.e8m(C),"i");this.filteredSnippets=this.filteredSnippets.filter(function(g){return c.test(X.ytRendererBehavior.getSimpleString(g.snippet))});
D=_.U(this.filteredSnippets);for(var W=D.next();!W.done;W=D.next()){W=W.value;var p=this.ytRendererBehavior.getSimpleString(W.snippet);W.snippet={runs:[{text:p.substring(0,p.toLowerCase().indexOf(C))},{text:p.substring(p.toLowerCase().indexOf(C),p.toLowerCase().indexOf(C)+C.length),bold:!0},{text:p.substring(p.toLowerCase().indexOf(C)+C.length,p.length)}]}}}else this.filteredSnippets=D};
_.S.onUpdateSearchInVideoResults=function(D){if(!(this.snippets.length>0)){var C,X,c;if((c=(C=_.r(D,WMv))==null?void 0:(X=C.results)==null?void 0:X.length)!=null&&c){var W;this.filteredSnippets=this.snippets=((W=_.r(D,WMv))==null?void 0:W.results).map(function(p){var g,a,O;return{startMs:p==null?void 0:(g=p.searchInVideoResultRenderer)==null?void 0:g.startMs,startTimeText:p==null?void 0:(a=p.searchInVideoResultRenderer)==null?void 0:a.startTimeText,snippet:p==null?void 0:(O=p.searchInVideoResultRenderer)==
null?void 0:O.snippet}})}}};
_.S.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};
_.S.highlightSnippet=function(D){D.classList.add("highlighted")};
_.S.removeSnippetHighlight=function(D){D.classList.remove("highlighted")};
_.S.selectSnippet=function(D){this.typedValue=String(D.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(D);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.S.ensureVisible=function(D){var C=this.snippetsWrapper.scrollTop,X=C+this.snippetsWrapper.clientHeight,c=D.offsetTop-this.snippetsWrapper.offsetTop;D=c+D.clientHeight;c<C?this.snippetsWrapper.scrollTop-=C-c:D>X&&(this.snippetsWrapper.scrollTop+=D-X)};
_.S.seekPlayer=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1){if(!D)return c.jumpTo(0);C=Number(D.dataset.startOffset);return c.yield(_.Xv().getPlayerPromise(),3)}X=c.yieldResult;X.seekTo(C/1E3,!0);X.wakeUpControls();_.t_(c)})};
_.S.logInputGesture=function(D){var C=_.LN();C&&(D==null?0:D.trackingParams)&&_.JZ(C,_.bO(D.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.S.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("typed-value-changed",this.typedValue))};
_.S.updateTypedValueFromBinding=function(D){this.typedValue=D.currentTarget.value};
ZW.prototype.typedValueChangedForBinding=ZW.prototype.typedValueChangedForBinding;ZW.prototype.dataChanged=ZW.prototype.dataChanged;ZW.prototype.panelContentVisibleChanged=ZW.prototype.panelContentVisibleChanged;ZW.prototype.onClick=ZW.prototype.onClick;ZW.prototype.onKeyUp=ZW.prototype.onKeyUp;ZW.prototype.onKeyDown=ZW.prototype.onKeyDown;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ZW.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ZW.prototype,"data",void 0);_.V([_.n({value:[]}),_.z("design:type",Array)],ZW.prototype,"snippets",void 0);_.V([_.n({value:[]}),_.z("design:type",Array)],ZW.prototype,"filteredSnippets",void 0);_.V([_.n({value:[]}),_.z("design:type",Array)],ZW.prototype,"snippetElements",void 0);
_.V([_.kn("#siv-input"),_.z("design:type",HTMLElement)],ZW.prototype,"inputElement",void 0);_.V([_.kn("#siv-snippets-wrapper"),_.z("design:type",HTMLElement)],ZW.prototype,"snippetsWrapper",void 0);_.V([_.n(),_.z("design:type",String)],ZW.prototype,"typedValue",void 0);_.V([_.n({value:-1}),_.z("design:type",Number)],ZW.prototype,"highlightedIndex",void 0);_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[_.EC]),_.z("design:returntype")],ZW.prototype,"onKeyDown",null);
_.V([_.$n("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[_.EC]),_.z("design:returntype")],ZW.prototype,"onKeyUp",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZW.prototype,"onClick",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ZW.prototype,"panelContentVisible",void 0);
_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZW.prototype,"panelContentVisibleChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZW.prototype,"dataChanged",null);_.V([_.vr("typedValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZW.prototype,"typedValueChangedForBinding",null);
_.V([_.yj({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],ZW);
_.G(ZW,"ytd-search-in-video-renderer",function(){if(Mkv!==void 0)return Mkv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Mkv=D},{mode:1});var qrB;var G6=function(){return _.w.apply(this,arguments)||this};
_.h(G6,_.w);G6.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
G6.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]]"}}}}}};
G6.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,C,X,c,W=(C=_.r((D=this.data)==null?void 0:D.onClickCommand,_.NFC))==null?void 0:(X=C.item)==null?void 0:(c=X.notificationTextRenderer)==null?void 0:c.successResponseText;W&&_.$ud(this.hostElement,W)}};
_.$a.Object.defineProperties(G6.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return this.isProductPlaceholder&&((D=this.data)==null?void 0:(C=D.hiddenProductOptions)==null?void 0:C.showDropCountdown)&&!!((X=this.data)==null?0:(c=X.hiddenProductOptions)==null?0:c.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isProductPlaceholder&&!((D=this.data)==null?0:D.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null?0:D.priceReplacementText)&&!((C=this.data)==null||!C.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],G6.prototype,"componentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],G6.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"useCenterLayoutContainer",null);_.V([_.n({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],G6.prototype,"buttonOverride",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"isProductPlaceholder",null);
_.V([_.e("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"showDropCountdown",null);_.V([_.e("isProductPlaceholder","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"showBrandName",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"showPriceReplacementText",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"showPrice",null);
_.V([_.e("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],G6.prototype,"showMetadata",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],G6);
_.G(G6,"ytd-product-list-item-renderer",function(){if(qrB!==void 0)return qrB;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return qrB=D},{mode:1});var f4N;var Vm=function(){return _.w.apply(this,arguments)||this};
_.h(Vm,_.w);Vm.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Vm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Vm.prototype.panelContentVisibleChanged=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return D.playerApi?X.jumpTo(2):X.yield(_.Xv().getPlayerPromise(),3);X.nextAddress!=2&&(D.playerApi=X.yieldResult);(C=D.playerApi)==null||C.productsInVideoVisibilityUpdated(!!D.panelContentVisible);_.t_(X)})};
Vm.prototype.panelContentVisibleChanged=Vm.prototype.panelContentVisibleChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Vm.prototype,"panelContentVisible",void 0);_.V([_.n(),_.z("design:type",Object)],Vm.prototype,"data",void 0);
_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Vm.prototype,"panelContentVisibleChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Vm);
_.G(Vm,"ytd-product-list-renderer",function(){if(f4N!==void 0)return f4N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return f4N=D},{mode:1});var dO$;var T6=function(){var D=_.w.apply(this,arguments)||this;D.hideTimestamps=!!_.KH("hide-transcript-timestamps");D.currentCueIndex=-1;D.flatCues=[];D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};D.TEST_ONLY={getFlatCues:function(){return D.flatCues}};
return D};
_.h(T6,_.w);_.S=T6.prototype;_.S.hideTimestampsChanged=function(){_.rL("hide-transcript-timestamps",this.hideTimestamps)};
_.S.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.S.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.S.dataChanged=function(){var D;if((D=this.data)!=null&&D.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;D=_.U(this.data.cueGroups);for(var C=D.next();!C.done;C=D.next()){C=_.U(_.r(C.value,pL$).cues);for(var X=C.next();!X.done;X=C.next())this.flatCues.push(Number(_.r(X.value,SUH).startOffsetMs))}}};
_.S.onYtPlayerTimeChanged=function(D){if(!(D<0)){for(var C=this.currentCueIndex,X=C;;){var c=X>=0?this.flatCues[X]/1E3:-1;if(D+.5<c)--X;else if(c=X+1<this.flatCues.length?this.flatCues[X+1]/1E3:Infinity,D+.5>c)X+=1;else break}X!==C&&(C>=0&&((D=this.getCueElement(C))&&D.classList.remove("active"),(C=this.getCueGroupElement(C))&&C.classList.remove("active")),(C=this.getCueElement(X))&&C.classList.add("active"),(C=this.getCueGroupElement(X))&&C.classList.add("active"),this.currentCueIndex=X,this.isHovered||
this.scrollElementToTop(X))}};
_.S.scrollElementToTop=function(D){D=this.getCueElement(D>=3?D-3:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.S.getCueElement=function(D){return _.SY(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[D]+'"]')};
_.S.getCueGroupElement=function(D){return(D=this.getCueElement(D))&&D.parentElement?D.parentElement.parentElement:null};
_.S.onTap=function(D){var C=_.qz(D);D.target.classList.contains("cue")&&this.seekCueElement(C)};
_.S.onKeyPress=function(D){D.keyCode==13&&(D=_.Feb(D.target,null,"cue"))&&this.seekCueElement(D)};
_.S.seekCueElement=function(D){D=Number(D.getAttribute("start-offset"));_.DS(this.hostElement,"yt-transcript-player-seek",[D/1E3])};
_.S.onMouseEnter=function(){this.isHovered=!0};
_.S.onMouseLeave=function(){this.isHovered=!1};
T6.prototype.onMouseLeave=T6.prototype.onMouseLeave;T6.prototype.onMouseEnter=T6.prototype.onMouseEnter;T6.prototype.onKeyPress=T6.prototype.onKeyPress;T6.prototype.onTap=T6.prototype.onTap;T6.prototype.dataChanged=T6.prototype.dataChanged;T6.prototype.hideTimestampsChanged=T6.prototype.hideTimestampsChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],T6.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],T6.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],T6.prototype,"hideTimestamps",void 0);_.V([_.n(),_.z("design:type",Boolean)],T6.prototype,"isHovered",void 0);_.V([_.vr("hideTimestamps"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],T6.prototype,"hideTimestampsChanged",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],T6.prototype,"dataChanged",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],T6.prototype,"onTap",null);_.V([_.$n("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],T6.prototype,"onKeyPress",null);
_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],T6.prototype,"onMouseEnter",null);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],T6.prototype,"onMouseLeave",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],T6);
_.G(T6,"ytd-transcript-body-renderer",function(){if(dO$!==void 0)return dO$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return dO$=D},{mode:1});var R2B;var Hy=function(){var D=_.w.apply(this,arguments)||this;D.darkerPanels=_.b("web_watch_darker_panels");return D};
_.h(Hy,_.w);Hy.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Hy.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Hy.prototype,"darkerPanels",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Hy);
_.G(Hy,"ytd-transcript-footer-renderer",function(){if(R2B!==void 0)return R2B;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return R2B=D},{mode:1});var l4$;var DFU;var JV=function(){var D=_.w.apply(this,arguments)||this;D.systemIcons=_.b("kevlar_system_icons");D.showClearButton=!1;return D};
_.h(JV,_.w);_.S=JV.prototype;_.S.handleInput=function(D){var C=this;D.target.value.length?_.Hr(this,"ytdTranscriptSearchBoxSearch",function(){C.emitSearchEvent(D)},500):(_.BMo(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=D.target.value.length>0};
_.S.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.S.handleClick=function(){var D,C=(D=this.data)==null?void 0:D.trackingParams;C&&_.JF(_.iO(),C)};
_.S.handleClear=function(){_.BMo(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var D,C,X=(C=_.r((D=this.data)==null?void 0:D.clearButton,_.AF))==null?void 0:C.trackingParams;X&&_.JF(_.iO(),X);this.clear()};
_.S.emitSearchEvent=function(D){_.lE(this.hostElement,"yt-transcript-search-box-search",{query:D.target.value});var C,X;(D=(X=_.r((C=this.data)==null?void 0:C.searchButton,_.AF))==null?void 0:X.trackingParams)&&_.JF(_.iO(),D)};
_.S.emitClearEvent=function(){_.lE(this.hostElement,"yt-transcript-search-box-clear")};
_.$a.Object.defineProperties(JV.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.SY(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],JV.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],JV.prototype,"systemIcons",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],JV);
_.G(JV,"ytd-transcript-search-box-renderer",function(){if(DFU!==void 0)return DFU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return DFU=D},{mode:1});var CEv;var X7z;var z6=function(){return _.w.apply(this,arguments)||this};
_.h(z6,_.w);z6.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var D,C;this.sectionHeaderAriaLabel=(D=this.data)==null?void 0:(C=D.accessibility)==null?void 0:C.accessibilityData.label}};
z6.prototype.fireSelectedEvent=function(D){_.lE(this.hostElement,"ytd-transcript-section-header",{startMs:D})};
z6.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
z6.prototype.handleKeyPress=function(D){this.data&&D.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.$a.Object.defineProperties(z6.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.data)==null?void 0:D.enableTappableTranscriptHeader)!=null?C:!1}}});
z6.prototype.dataChanged=z6.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],z6.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],z6.prototype,"sectionHeaderAriaLabel",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],z6.prototype,"enableTappableTranscriptHeader",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],z6.prototype,"dataChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],z6);
_.G(z6,"ytd-transcript-section-header-renderer",function(){if(X7z!==void 0)return X7z;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return X7z=D},{mode:1});var c8z;var orj;var jg=function(){var D=_.w.apply(this,arguments)||this;D.isEditMode=!1;D.touchCaptionsEnabled=!1;D.deleteCaptionCorrectionPopupCommand=null;D.voteCaptionCorrectionPopupCommand=null;D.roundedContainer=!0;D.mouseOver=!1;D.textChanged=!1;D.messages={suggest_correction:_.I7("suggest_correction",void 0,"Edit caption"),suggested_caption:_.I7("suggested_caption",void 0,"Suggested caption"),submit_correction:_.I7("submit_correction",void 0,"Submit for review"),cancel_correction:_.I7("cancel_correction",
void 0,"Cancel"),replay_segment:_.I7("replay_segment",void 0,"Re-play segment"),delete_correction:_.I7("delete_correction",void 0,"Delete correction")};D.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return D};
_.h(jg,_.w);_.S=jg.prototype;_.S.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)};
_.S.handleDelete=function(D){if(this.deleteCaptionCorrectionPopupCommand){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);C&&this.ytdOpenPopupBehavior.openPopup(C);D.stopPropagation()}};
_.S.handleSubmit=function(D){if(this.data&&this.data.submitCaptionCorrectionCommand&&(D.stopPropagation(),this.textChanged)){var C;D=(C=_.r(this.data.submitCaptionCorrectionCommand,_.Fye))==null?void 0:C.params;C=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:D,correctionText:String(this.ironTextAreaElement.value),originalText:_.Mh(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(C);this.isEditMode=!1}};
_.S.handleUpdateSegmentText=function(D){(D=_.r(D,rYj))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&(D.userCorrection&&(this.editedText=D.userCorrection),D.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Mh(this.data.snippet)),D.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=D.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=D.voteCaptionCorrectionPopupCommand?
D.voteCaptionCorrectionPopupCommand:null,D.accessibility&&(this.segmentAriaLabel=D.accessibility.accessibilityData.label))};
_.S.handleCancel=function(D){this.isEditMode=!1;D.stopPropagation();this.logClientVe(159409)};
_.S.handleEditSegmentCommand=function(D){(D=_.r(D,bQJ))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&this.handleEdit()};
_.S.handleEditButtonClick=function(D){this.data&&(this.handleEdit(),D.stopPropagation())};
_.S.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var D;(D=this.ironTextAreaElement.textarea)==null||D.focus();this.logClientVe(159407)}};
_.S.handleMouseEnter=function(){this.mouseOver=!0};
_.S.handleMouseLeave=function(){this.mouseOver=!1};
_.S.handleReplay=function(D){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),D.stopPropagation(),this.logClientVe(159408))};
_.S.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()))};
_.S.handleKeypress=function(D){this.data&&(this.isEditMode?D.stopPropagation():this.isEnterPress(D)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(D)&&this.logClientVe(138758))};
_.S.handleTextboxClick=function(D){D.stopPropagation()};
_.S.handleTextboxKeydown=function(D){this.isControlEnterPress(D)?this.handleSubmit(D):D.key==="Escape"&&this.handleCancel(D)};
_.S.handleTextboxKeyup=function(){this.textChanged=_.Mh(this.latestText)!==String(this.ironTextAreaElement.value)};
_.S.fireSelectedEvent=function(D){_.lE(this.hostElement,"yt-transcript-segment-selected",{startMs:D})};
_.S.fireReplayEvent=function(D,C){_.lE(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(D-100,0),endMs:C})};
_.S.fireEditEvent=function(D,C){_.lE(this.hostElement,"yt-transcript-segment-edit",{startMs:D,endMs:C})};
_.S.isEnterPress=function(D){return D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13?!0:!1};
_.S.isControlEnterPress=function(D){var C=D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13;return(D.ctrlKey||D.metaKey)&&C};
_.S.isCopyPress=function(D){var C=D.ctrlKey;return D.key==="c"&&C};
_.S.logClick=function(){var D,C=(D=this.data)==null?void 0:D.trackingParams;C&&_.JF(_.iO(),C)};
_.S.logClientVe=function(D){_.Hj(_.iO(),_.Ia(D))};
_.$a.Object.defineProperties(jg.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}}});
jg.prototype.handleMouseLeave=jg.prototype.handleMouseLeave;jg.prototype.handleMouseEnter=jg.prototype.handleMouseEnter;jg.prototype.dataChanged=jg.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],jg.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],jg.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],jg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jg.prototype,"isEditMode",void 0);_.V([_.n(),_.z("design:type",Object)],jg.prototype,"touchCaptionsEnabled",void 0);_.V([_.n(),_.z("design:type",Object)],jg.prototype,"editedText",void 0);_.V([_.n(),_.z("design:type",Object)],jg.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.V([_.n(),_.z("design:type",Object)],jg.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.V([_.n(),_.z("design:type",String)],jg.prototype,"segmentAriaLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jg.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jg.prototype,"mouseOver",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jg.prototype,"textChanged",void 0);_.V([_.n(),_.z("design:type",Object)],jg.prototype,"messages",void 0);
_.V([_.kn("#suggestion"),_.z("design:type",Object)],jg.prototype,"ironTextAreaElement",void 0);_.V([_.e("data","editedText"),_.z("design:type",Object),_.z("design:paramtypes",[])],jg.prototype,"latestText",null);_.V([_.e("touchCaptionsEnabled","isEditMode"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jg.prototype,"enableEditButton",null);
_.V([_.e("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jg.prototype,"enableUndoButton",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jg.prototype,"dataChanged",null);_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jg.prototype,"handleMouseEnter",null);
_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jg.prototype,"handleMouseLeave",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],jg);
_.G(jg,"ytd-transcript-segment-renderer",function(){if(orj!==void 0)return orj;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return orj=D},{mode:1});var MS=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};D.isError=!1;D.darkerPanels=_.b("web_watch_darker_panels");D.useParentMaxHeight=_.b("web_watch_transscript_use_parent_max_height");D.segmentOffsets=[];D.segmentIndex=-1;return D};
_.h(MS,_.w);_.S=MS.prototype;_.S.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"}}}}};
_.S.segmentsChanged=function(){this.updateOffsets()};
_.S.onYtPlayerTimeChanged=function(D){for(var C=this.segmentIndex,X=C;;){if(X>=0){var c=this.segmentOffsets[X].start;var W=this.segmentOffsets[X].isAutoScrollable}else c=-1,W=!0;var p=D+.5;if(!W){c=X+1<this.segmentOffsets.length?this.segmentOffsets[X+1].start:Infinity;if(p>=c){X+=1;continue}X=-1;break}if(p<c)c=X-1>=0&&this.segmentOffsets[X-1].isAutoScrollable,W=X===0||c?1:2,X-=W;else if(W=X+1<this.segmentOffsets.length&&this.segmentOffsets[X+1].isAutoScrollable?1:2,c=X+W<this.segmentOffsets.length?
this.segmentOffsets[X+W].start:Infinity,p>c)X+=W;else{if(X<0)break;X<this.segmentOffsets.length&&p>this.segmentOffsets[X].end&&(X=-1);break}}if(C!==X){if(C>=0){var g;(g=this.getSegmentElement(C))==null||g.classList.remove("active")}this.segmentIndex=X;if(!(X<0)){var a;(a=this.getSegmentElement(X))==null||a.classList.add("active");this.isHovered||this.scrollElementToTop(X)}}};
_.S.handleSegmentEdit=function(D){D.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=D.target,_.DS(this.hostElement,"yt-transcript-player-edit",[D.detail.startMs/1E3,D.detail.endMs/1E3]))};
_.S.handleSegmentSelected=function(D){_.DS(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.S.handleSegmentReplay=function(D){_.DS(this.hostElement,"yt-transcript-player-replay",[D.detail.startMs/1E3,D.detail.endMs/1E3])};
_.S.handleSectionHeaderSelected=function(D){_.DS(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.S.onMouseEnter=function(){this.isHovered=!0};
_.S.onMouseLeave=function(){this.isHovered=!1};
_.S.onRetryButtonClick=function(){_.lE(this.hostElement,"transcript-retry-button-click")};
_.S.getSegmentElement=function(D){return _.SY(this.hostElement).querySelector(":nth-child("+(D+1)+")")};
_.S.scrollElementToTop=function(D){D=this.getSegmentElement(D>=2?D-2:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.S.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(D){var C,X=(C=D.transcriptSegmentRenderer)!=null?C:D.transcriptSectionHeaderRenderer;return{start:Number(X.startMs)/1E3,end:Number(X.endMs)/1E3,isAutoScrollable:D.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.S.clearHighlightedSegments=function(){var D=_.SY(this.hostElement);D=_.U(D.querySelectorAll("ytd-transcript-segment-renderer"));for(var C=D.next();!C.done;C=D.next())C.value.classList.remove("active")};
_.$a.Object.defineProperties(MS.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.searchResultSegments)||((C=this.data)==null?void 0:C.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
MS.prototype.onMouseLeave=MS.prototype.onMouseLeave;MS.prototype.onMouseEnter=MS.prototype.onMouseEnter;MS.prototype.handleSectionHeaderSelected=MS.prototype.handleSectionHeaderSelected;MS.prototype.handleSegmentReplay=MS.prototype.handleSegmentReplay;MS.prototype.handleSegmentSelected=MS.prototype.handleSegmentSelected;MS.prototype.handleSegmentEdit=MS.prototype.handleSegmentEdit;MS.prototype.segmentsChanged=MS.prototype.segmentsChanged;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],MS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],MS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],MS.prototype,"isError",void 0);
_.V([_.n(),_.z("design:type",Object)],MS.prototype,"noResultLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],MS.prototype,"darkerPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],MS.prototype,"useParentMaxHeight",void 0);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],MS.prototype,"segments",null);
_.V([_.e("segments","noResultLabel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MS.prototype,"displayNoResults",null);_.V([_.vr("segments"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MS.prototype,"segmentsChanged",null);_.V([_.$n("yt-transcript-segment-edit"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],MS.prototype,"handleSegmentEdit",null);
_.V([_.$n("yt-transcript-segment-selected"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],MS.prototype,"handleSegmentSelected",null);_.V([_.$n("yt-transcript-segment-replay"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],MS.prototype,"handleSegmentReplay",null);
_.V([_.$n("ytd-transcript-section-header"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],MS.prototype,"handleSectionHeaderSelected",null);_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MS.prototype,"onMouseEnter",null);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MS.prototype,"onMouseLeave",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],MS);
_.G(MS,"ytd-transcript-segment-list-renderer",function(){if(c8z!==void 0)return c8z;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return c8z=D},{mode:1});var qS=function(){var D=_.w.apply(this,arguments)||this;D.hideTimestamps=!!_.KH("hide-transcript-timestamps");D.isLoadingTranscripts=!1;D.darkerPanels=_.b("web_watch_darker_panels");D.isError=!1;D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return D};
_.h(qS,_.w);_.S=qS.prototype;_.S.headerChanged=function(){var D,C;this.baseGetTranscriptsCommand=(C=_.r((D=this.data)==null?void 0:D.header,KMB))==null?void 0:C.onTextChangeCommand};
_.S.bodyChanged=function(){var D=this.getBodyRenderer();D&&(D.initialSegments&&(this.initialTranscriptsRenderer=D),D.noResultLabel&&(this.noResultLabel=D.noResultLabel),D.retryLabel&&(this.retryLabel=D.retryLabel))};
_.S.detached=function(){this.clearSearchBoxText()};
_.S.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.S.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"}}}};
_.S.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.S.fireSearch=function(D){var C=this;if(D){var X=D.detail.query;if(this.baseGetTranscriptsCommand){var c;D=(c=_.r(this.baseGetTranscriptsCommand,_.w8q))==null?void 0:c.params;var W;c=_.r((W=this.data)==null?void 0:W.footer,UNm);var p;if((W=(p=_.r(c==null?void 0:c.languageMenu,QiN))==null?void 0:p.subMenuItems)&&W.length>0&&(p=W.find(function(O){return O.selected}))){var g,a;
D=(g=p.continuation)==null?void 0:(a=g.reloadContinuationData)==null?void 0:a.continuation}g=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:D,searchQuery:X}});this.ytComponentBehavior.resolveCommand(g,{commandController:{onServerError:function(){C.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Gb2(this.ytContinuationHandlerBehavior,function(){return X===C.getCurrentSearchBoxText()})}}};
_.S.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.S.onRetryButtonClick=function(){this.isError=!1;var D={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:D}))};
_.S.hideTimestampsChanged=function(){_.rL("hide-transcript-timestamps",this.hideTimestamps)};
_.S.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.S.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.S.handleSignalActionCopyTranscript=function(){var D=this,C=this.getBodyRenderer();C&&(C=((C==null?void 0:C.searchResultSegments)||(C==null?void 0:C.initialSegments)||[]).map(function(X){return _.r(X,xNf)}).filter(function(X){return!!X}).map(function(X){return{snippet:X.snippet||{runs:[{text:""}]},
startTimeText:X.startTimeText||{simpleText:""}}}).map(function(X){var c=(X.snippet.runs||[]).reduce(function(W,p){return W+p.text},"");
return D.hideTimestamps?c:X.startTimeText.simpleText+" "+c}).join("\n"),this.copyToClipboard(C))};
_.S.copyToClipboard=function(D){navigator.clipboard&&navigator.clipboard.writeText(D)};
_.S.getCurrentSearchBoxText=function(){var D;return(D=this.searchBox)==null?void 0:D.value};
_.S.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.S.getBodyRenderer=function(){var D;return _.r((D=this.data)==null?void 0:D.body,haB)};
_.S.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.$a.Object.defineProperties(qS.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.SY(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
qS.prototype.hideTimestampsChanged=qS.prototype.hideTimestampsChanged;qS.prototype.searchCleared=qS.prototype.searchCleared;qS.prototype.fireSearch=qS.prototype.fireSearch;qS.prototype.onReloadContinuationFinish=qS.prototype.onReloadContinuationFinish;qS.prototype.bodyChanged=qS.prototype.bodyChanged;qS.prototype.headerChanged=qS.prototype.headerChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],qS.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],qS.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qS.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qS.prototype,"hideTimestamps",void 0);
_.V([_.n(),_.z("design:type",Object)],qS.prototype,"isLoadingTranscripts",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],qS.prototype,"darkerPanels",void 0);_.V([_.n(),_.z("design:type",Object)],qS.prototype,"isError",void 0);_.V([_.vr("data.header"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qS.prototype,"headerChanged",null);
_.V([_.bH("data.body"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qS.prototype,"bodyChanged",null);_.V([_.$n("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qS.prototype,"onReloadContinuationFinish",null);_.V([_.$n("yt-transcript-search-box-search"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],qS.prototype,"fireSearch",null);
_.V([_.$n("yt-transcript-search-box-clear"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qS.prototype,"searchCleared",null);_.V([_.vr("hideTimestamps"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qS.prototype,"hideTimestampsChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],qS);
_.G(qS,"ytd-transcript-search-panel-renderer",function(){if(CEv!==void 0)return CEv;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return CEv=D},{mode:1});var fk=function(){var D=_.w.apply(this,arguments)||this;D.player=null;D.playerPollJobId=0;return D};
_.h(fk,_.w);_.S=fk.prototype;_.S.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.S.onLoadReloadContinuation=function(D){_.b("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:D.target.data.continuation}}):(D={clickTrackingParams:D.target.data.clickTrackingParams,getTranscriptEndpoint:{params:D.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}}))};
_.S.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"}}}};
_.S.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.S.attached=function(){this.updatePlayerListening()};
_.S.detached=function(){this.updatePlayerListening()};
_.S.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.S.startPlayerListening=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return(C=_.CT())?X.yield(C.getPlayerPromise(),2):X.return();D.player=X.yieldResult;D.playerPollJobId=_.qX.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3);
D.player.addEventListener("onCueRangeEnter",function(c){D.onCueRangeEnter(c)});
D.player.addEventListener("onCueRangeExit",function(c){D.onCueRangeExit(c)});
D.player.addEventListener("onStateChange",function(c){D.onPlayerStateChange(c)});
D.player.addEventListener("SEEK_TO",function(c){D.onPlayerSeek(c)});
_.t_(X)})};
_.S.getPlayerVideoProgress=function(){var D=this;_.qX.cancelJob(this.playerPollJobId);if(this.player){var C=this.player.getCurrentTime();_.DS(this.hostElement,"yt-player-time-changed",[C])}this.playerPollJobId=_.qX.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3)};
_.S.stopPlayerListening=function(){this.player=null;_.qX.cancelJob(this.playerPollJobId)};
_.S.onPlayerStateChange=function(D){D===2&&this.removePendingCue()};
_.S.onPlayerSeek=function(D){var C;if(C=this.pendingReplayCueId)C=this.pendingReplayCueId,C=D===(_.b("web_transcript_cue_id_killswitch")?Number(C):Number(C.split("_")[1]));C||this.removePendingCue()};
_.S.onCueRangeEnter=function(D){pzm(D)&&(this.pendingReplayCueId=D)};
_.S.onCueRangeExit=function(D){pzm(D)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.S.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.S.onYtTranscriptPlayerSeek=function(D){this.player&&this.player.seekTo(D,!0)};
_.S.onYtTranscriptPlayerReplay=function(D,C){this.player&&(this.player.addCueRange(WIv(D),D,C),this.player.seekTo(D,!0),this.player.playVideo())};
_.S.onYtTranscriptPlayerEdit=function(D,C){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(WIv(D),D,C),this.player.seekTo(D,!0))};
fk.prototype.onLoadReloadContinuation=fk.prototype.onLoadReloadContinuation;fk.prototype.panelContentVisibleChanged=fk.prototype.panelContentVisibleChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],fk.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],fk.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fk.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],fk.prototype,"panelContentVisible",void 0);_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fk.prototype,"panelContentVisibleChanged",null);
_.V([_.$n("yt-load-reload-continuation"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],fk.prototype,"onLoadReloadContinuation",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],fk);
_.G(fk,"ytd-transcript-renderer",function(){if(l4$!==void 0)return l4$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return l4$=D},{mode:1});var WPH;var p7N;var da=function(){return _.w.apply(this,arguments)||this};
_.h(da,_.w);da.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.o7(this.hostElement,[this.data.clickCommand],this.hostElement))};
da.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.CB)()+_.Ys)+"px)"};
da.prototype.updateShouldHideFromBinding=function(D){this.shouldHide=D.detail.value};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],da.prototype,"rendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],da.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],da.prototype,"shouldHide",void 0);_.V([_.yj({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],da);
_.G(da,"ytd-ad-engagement-panel-banner-renderer",function(){if(p7N!==void 0)return p7N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return p7N=D},{mode:_.Wc("kevlar_poly_si_batch_j070")?1:2});var Sn$;var RU=function(){var D=_.w.apply(this,arguments)||this;D.buttonUpdate=_.b("web_modern_buttons");D.adsSemanticText=_.b("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.h(RU,_.w);RU.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.V([_.n(),_.z("design:type",Object)],RU.prototype,"data",void 0);_.V([_.n({computed:"computeHideDefaultAdBadge(data)"}),_.z("design:type",Boolean)],RU.prototype,"hideDefaultAdBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],RU.prototype,"buttonUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],RU.prototype,"adsSemanticText",void 0);_.V([_.yj({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],RU);
_.G(RU,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Sn$!==void 0)return Sn$;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Sn$=D},{mode:1});var UFm;var ld=function(){var D=_.w.apply(this,arguments)||this;D.darkerPanels=_.b("web_watch_darker_panels");D.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");D.headerClickListener=function(C){D.onHeaderClick(C)};
D.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return D};
_.h(ld,_.w);_.S=ld.prototype;_.S.computeAdsInfoButton=function(){if(_.b("web_modern_buttons")){var D,C;return(C=_.r((D=this.data)==null?void 0:D.subtitleComplex,glm))==null?void 0:C.adInfoRenderer}};
_.S.updateHeaderClickListener=function(){var D,C,X;((D=this.data)==null?0:D.navigationEndpoint)||((C=this.data)==null?0:C.onClickCommand)||_.r((X=this.data)==null?void 0:X.visibilityButton,_.Pj)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.S.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}}}}}};
_.S.collapsedChanged=function(){var D;(D=this.data)!=null&&D.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.b("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.S.focus=function(D){var C=this;this.titleElement&&_.qX.addJob(function(){_.ai(C.titleElement,D)},0,500)};
_.S.computeTitleAriaLabel=function(D){var C=[];if(D.title){var X,c;C.push(this.ytRendererBehavior.getSimpleString(D.title)||((X=D.title.accessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label))}D.contextualInfo&&C.push(this.ytRendererBehavior.getSimpleString(D.contextualInfo));return C.join(" ")};
_.S.onHeaderClick=function(D){this.shouldTriggerHeaderClick(D)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.o7(this.hostElement,[this.data.onClickCommand],this.hostElement)):(D=this.getVisibilityToggleButton())&&D.click())};
_.S.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var D=_.r(this.data.visibilityButton,_.AF)||_.r(this.data.visibilityButton,_.Pj);D&&this.ytRendererBehavior.logExplicitClick(D)}};
_.S.getVisibilityToggleButton=function(){var D=_.SY(this.hostElement).querySelector("#visibility-button").firstElementChild;return(D==null?void 0:D.is)==="ytd-toggle-button-renderer"?D:null};
_.S.shouldTriggerHeaderClick=function(D){return!_.d$(_.Mz(D),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.S.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(D){D=_.r(D,_.DN6);this.targetId&&(D==null?void 0:D.targetId)===this.targetId&&(D=D.navigationButton)&&this.set("data.navigationButton",D)};
_.$a.Object.defineProperties(ld.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!!(((D=this.entity)==null?0:D.isActionButtonHidden)||this.hideActionButton)}}});
ld.prototype.collapsedChanged=ld.prototype.collapsedChanged;ld.prototype.updateHeaderClickListener=ld.prototype.updateHeaderClickListener;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ld.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],ld.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ld.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],ld.prototype,"targetId",void 0);_.V([_.n(),_.z("design:type",Boolean)],ld.prototype,"collapsed",void 0);_.V([_.n(),_.z("design:type",Boolean)],ld.prototype,"hideActionButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ld.prototype,"shortsPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ld.prototype,"liveChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ld.prototype,"learningChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ld.prototype,"darkerPanels",void 0);_.V([_.kn("#title"),_.z("design:type",HTMLElement)],ld.prototype,"titleElement",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLElement)],ld.prototype,"headerElement",void 0);
_.V([_.n({computed:"computeAdsInfoButton(data)"}),_.z("design:type",Object)],ld.prototype,"adsInfoButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ld.prototype,"enableSqueezebackPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ld.prototype,"enableAnchoredPanel",void 0);_.V([_.n({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(D,C){return _.aI(D.entities,"engagementPanelTitleHeaderEntity",C)}}),
_.z("design:type",Object)],ld.prototype,"entity",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ld.prototype,"adsSemanticText",null);_.V([_.vr("data","data.navigationEndpoint","data.onClickCommand"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ld.prototype,"updateHeaderClickListener",null);
_.V([_.bH("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ld.prototype,"collapsedChanged",null);_.V([_.e("entity","hideActionButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ld.prototype,"isActionButtonHidden",null);_.V([_.yj({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ld);
_.G(ld,"ytd-engagement-panel-title-header-renderer",function(){if(UFm!==void 0)return UFm;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return UFm=D},{mode:1});var grH;var DA=function(){return _.w.apply(this,arguments)||this};
_.h(DA,_.w);DA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DA.prototype,"data",void 0);_.V([_.yj({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],DA);
_.G(DA,"ytd-macro-markers-info-item-renderer",function(){if(grH!==void 0)return grH;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return grH=D},{mode:1});var auD;var Cv=function(D,C,X,c,W,p){_.nF.call(this);var g=this;this.JSC$23427_containerElement=D;this.hostElement=C;this.supportedSyncItems=X;this.syncEntityKey=c;this.options=W;this.renderLazyListItems=p;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;IuH(this);OND(this);this.JSC$23427_scrollAnimation=new _.mi(function(a){D.scrollTop=a});
_.hR(this,this.JSC$23427_scrollAnimation);this.addOnDisposeCallback(function(){A8D(g,!1);g.activeItem&&g.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.h(Cv,_.nF);var IuH=function(D){var C=_.dX(_.iX().resolve(_.gp),function(X){return X.entities.markersEngagementPanelSyncEntity||{}},function(X,c){var W;
if(X[D.syncEntityKey]!==c[D.syncEntityKey]&&((W=X[D.syncEntityKey])==null?void 0:W.activeItemIndex)!==void 0)if(c=X[D.syncEntityKey].activeItemIndex,X=D.getItemByIndex(c)){if(PEf(D,X),D.contentVisible)if(D.browsingMode){var p;((p=D.options)==null?void 0:p.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(p=$FN(D),X.offsetTop<D.JSC$23427_containerElement.clientHeight+D.JSC$23427_containerElement.scrollTop&&p&&!D.activeItemBelowSyncPosition&&A8D(D,!1));vrz(D)}else D.scrollToItem(X)}else _.fQ(new _.Zf("Could not find "+
D.supportedSyncItems+" sync child to set active.",c,D.JSC$23427_containerElement.querySelectorAll(D.supportedSyncItems).length))});
D.unsubscribeFromTimedMarkersListSyncEntity=C;D.addOnDisposeCallback(C);iNU(D)},iNU=function(D){var C=_.iX().resolve(_.gp);
C=_.ic5(C.getState(),D.syncEntityKey);(C==null?void 0:C.activeItemIndex)!==void 0&&(C=D.getItemByIndex(C.activeItemIndex))&&PEf(D,C)},OND=function(D){var C=new _.Al(D.onScroll,50,D);
_.hR(D,C);var X=function(){C.fire()};
D.JSC$23427_containerElement.addEventListener("scroll",X);D.addOnDisposeCallback(function(){D.JSC$23427_containerElement.removeEventListener("scroll",X)})};
Cv.prototype.getItemByIndex=function(D){var C;(C=this.renderLazyListItems)==null||C.call(this,D);C=this.JSC$23427_containerElement.querySelectorAll(this.supportedSyncItems);if(C.length>D)return C[D]};
var PEf=function(D,C){D.activeItem&&D.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));C.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));D.activeItem=C};
Cv.prototype.scrollToItem=function(D){D=this.getScrollPositionForItem(D);this.JSC$23427_containerElement.scrollTop!==D&&this.JSC$23427_scrollAnimation.start(this.JSC$23427_containerElement.scrollTop,D,300)};
Cv.prototype.getScrollPositionForItem=function(D){if(this.JSC$23427_containerElement.querySelectorAll(this.supportedSyncItems)[0]===D)return 0;var C,X=((C=this.options)==null?0:C.percentOffset)?this.JSC$23427_containerElement.clientHeight*this.options.percentOffset:0;D=_.Jp(D).y+this.JSC$23427_containerElement.scrollTop-(_.Jp(this.JSC$23427_containerElement).y+X);return Math.max(0,Math.min(D,this.JSC$23427_containerElement.scrollHeight-this.JSC$23427_containerElement.offsetHeight))};
Cv.prototype.onScroll=function(){this.activeItemBelowSyncPosition=$FN(this);if(this.activeItem&&!this.JSC$23427_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23427_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var D;switch((D=this.options)==null?void 0:D.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":kCU(this,!uov(this));vrz(this);break;default:kCU(this,!0)}}};
var kCU=function(D,C){var X,c;_.I(function(W){if(W.nextAddress==1){if(D.browsingMode)return W.return();D.browsingMode=!0;C&&D.hostElement.classList.add("browsing-mode");D.playerExitBrowsingModeListener=function(){A8D(D,!1)};
return W.yield(_.ON(),2)}X=W.yieldResult;(c=X)==null||c.addEventListener("SEEK_TO",D.playerExitBrowsingModeListener);_.t_(W)})},A8D=function(D,C){C=C===void 0?!0:C;
D.browsingMode&&(D.browsingMode=!1,D.hostElement.classList.remove("browsing-mode"),C&&D.scrollToItem(D.activeItem),QBj(D))},QBj=function(D){var C,X;
_.I(function(c){if(c.nextAddress==1)return D.playerExitBrowsingModeListener?c.yield(_.ON(),3):c.jumpTo(0);C=c.yieldResult;(X=C)==null||X.removeEventListener("SEEK_TO",D.playerExitBrowsingModeListener);D.playerExitBrowsingModeListener=void 0;_.t_(c)})},vrz=function(D){var C;
((C=D.options)==null?void 0:C.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(uov(D)?D.hostElement.classList.remove("browsing-mode"):D.activeItem&&D.hostElement.classList.add("browsing-mode"))},$FN=function(D){if(!D.activeItem)return!1;
var C,X=((C=D.options)==null?0:C.percentOffset)?D.JSC$23427_containerElement.clientHeight*D.options.percentOffset:0;return D.activeItem.offsetTop>=D.JSC$23427_containerElement.scrollTop+X},uov=function(D){if(!D.activeItem)return!1;
var C=D.activeItem.offsetTop+14<=D.JSC$23427_containerElement.scrollTop+D.JSC$23427_containerElement.clientHeight;return D.activeItem.offsetTop+D.activeItem.clientHeight-14>=D.JSC$23427_containerElement.scrollTop&&C};
Cv.prototype.panelContentVisibleChanged=function(D){(this.contentVisible=D)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Bl6=function(D,C){D.syncEntityKey=C;var X;(X=D.unsubscribeFromTimedMarkersListSyncEntity)==null||X.call(D);IuH(D)},bND=function(D,C){D.options=C};var XK=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return D};
_.h(XK,_.w);_.S=XK.prototype;_.S.detached=function(){var D;(D=this.scrollController)==null||D.dispose();this.scrollController=void 0};
_.S.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"}}}};
_.S.dataChanged=function(){var D=this;_.A0(this,function(){if(D.scrollController){var C;(C=D.scrollController)==null||A8D(C,!1);var X,c,W;(c=D.scrollController)==null||Bl6(c,(W=(X=D.data)==null?void 0:X.syncModelEntityKey)!=null?W:"default-macro-markers-list-renderer-entity-key");var p,g,a;(a=D.scrollController)==null||bND(a,{percentOffset:(p=D.data)==null?void 0:p.selectedItemAlignmentPercentOffset,floatingPillType:(g=D.data)==null?void 0:g.floatingPillType})}else{var O,P,k,u;D.scrollController=
new Cv(D.contents,D.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(u=(O=D.data)==null?void 0:O.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key",{percentOffset:(P=D.data)==null?void 0:P.selectedItemAlignmentPercentOffset,floatingPillType:(k=D.data)==null?void 0:k.floatingPillType},function(Q){D.renderLazyListItems(Q)})}D.scrollController.panelContentVisibleChanged(!!D.panelContentVisible)})};
_.S.computeButtonShape=function(){var D=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){D.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.S.renderLazyListItems=function(D){for(var C=this.contents.children,X=0,c=0;c<C.length;c++){var W=void 0;(W=C[c].ytLazyListBehavior)==null||W.fillRemainingListItems();var p=void 0,g=void 0;W=_.r((p=this.data)==null?void 0:(g=p.contents)==null?void 0:g[c],_.bz5);g=p=void 0;if((p=W)==null?0:(g=p.contents)==null?0:g.length)X+=W.contents.length;if(X>=D)break}};
_.S.handleSetActivePanelItemAction=function(D){if((D=_.r(D,XLz))&&this.panelTargetId===D.panelTargetId){D=D.itemIndex;var C,X,c=(X=(C=this.data)==null?void 0:C.syncModelEntityKey)!=null?X:"default-macro-markers-list-renderer-entity-key",W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==D&&this.ytdReduxBehavior.dispatch(_.bK("markersEngagementPanelSyncEntity",c,{key:c,activeItemIndex:D}))}};
_.S.onSyncClick=function(){var D;(D=this.scrollController)==null||A8D(D)};
_.S.panelContentVisibleChanged=function(){var D;(D=this.scrollController)==null||D.panelContentVisibleChanged(!!this.panelContentVisible)};
XK.prototype.panelContentVisibleChanged=XK.prototype.panelContentVisibleChanged;XK.prototype.dataChanged=XK.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],XK.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],XK.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],XK.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],XK.prototype,"useCustomColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],XK.prototype,"panelTargetId",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],XK.prototype,"panelContentVisible",void 0);
_.V([_.kn("#contents"),_.z("design:type",HTMLElement)],XK.prototype,"contents",void 0);_.V([_.n({selectorArgs:["data.syncModelEntityKey"],selector:_.ic5}),_.z("design:type",Object)],XK.prototype,"syncEntity",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XK.prototype,"dataChanged",null);
_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XK.prototype,"panelContentVisibleChanged",null);_.V([_.yj({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],XK);
_.G(XK,"ytd-macro-markers-list-renderer",function(){if(auD!==void 0)return auD;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return auD=D},{mode:1});var r8f;var c5=function(){return _.w.apply(this,arguments)||this};
_.h(c5,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],c5.prototype,"data",void 0);_.V([_.yj({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],c5);
_.G(c5,"ytd-error-corrections-section-item-renderer",function(){if(r8f!==void 0)return r8f;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return r8f=D},{mode:1});var KPB;var ot=function(){return _.w.apply(this,arguments)||this};
_.h(ot,_.w);ot.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ot.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ot.prototype,"data",void 0);_.V([_.yj({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],ot);
_.G(ot,"ytd-error-corrections-section-renderer",function(){if(KPB!==void 0)return KPB;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return KPB=D},{mode:1});var hIU;var W5=function(){return _.w.apply(this,arguments)||this};
_.h(W5,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],W5.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],W5.prototype,"data",void 0);_.V([_.yj({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],W5);
_.G(W5,"ytd-topic-link-renderer",function(){if(hIU!==void 0)return hIU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hIU=D},{mode:1});var xFU;var pv=function(){var D=_.w.apply(this,arguments)||this;D.modernLockupV2=_.b("modernize_structured_description_playlist_lockups_v2");return D};
_.h(pv,_.w);pv.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],pv.prototype,"modernLockupV2",void 0);_.V([_.yj({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],pv);
_.G(pv,"ytd-video-description-course-section-renderer",function(){if(xFU!==void 0)return xFU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return xFU=D},{mode:1});var LPv;var SE=function(){return _.w.apply(this,arguments)||this};
_.h(SE,_.w);SE.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],SE.prototype,"data",void 0);_.V([_.yj({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],SE);
_.G(SE,"ytd-video-description-files-section-renderer",function(){if(LPv!==void 0)return LPv;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return LPv=D},{mode:1});var sBU;var Uh=function(){return _.w.apply(this,arguments)||this};
_.h(Uh,_.w);Uh.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Uh.prototype,"data",void 0);_.V([_.yj({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Uh);
_.G(Uh,"ytd-video-description-gaming-section-renderer",function(){if(sBU!==void 0)return sBU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return sBU=D},{mode:1});var mFj;var at=function(){var D=_.w.apply(this,arguments)||this;D.isExpanded=!1;return D};
_.h(at,_.w);at.prototype.computeHasDefaultMetadataEndpoint=function(D){var C;D=D==null?void 0:(C=D.defaultMetadata)==null?void 0:C.runs;return!(!D||D.length!==1||!D[0].navigationEndpoint)};
at.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.$a.Object.defineProperties(at.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],at.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],at.prototype,"isExpanded",void 0);_.V([_.n({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],at.prototype,"hasDefaultMetadataEndpoint",void 0);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],at.prototype,"isExpandable",null);_.V([_.e("data","isExpandable","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],at.prototype,"showExpandedMetadata",null);_.V([_.yj({is:"ytd-info-row-renderer",disableElementRegistration:!0})],at);
_.G(at,"ytd-info-row-renderer",function(){if(mFj!==void 0)return mFj;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mFj=D},{mode:1});var eIf;var It=function(){var D=_.w.apply(this,arguments)||this;D.currentIndex=0;D.supportComponentResize=!0;D.JSC$23456_lastScrollContainerWidth=NaN;return D};
_.h(It,_.w);_.S=It.prototype;
_.S.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"}}}};
_.S.getItemsPath=function(){return"videoLockups"};
_.S.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.S.onIronResize=function(){this.updateVideoLockupStyles()};
_.S.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.S.updateVideoLockupStyles=function(){var D;this.JSC$23456_scrollContainer!==void 0&&(D=this.videoLockups)!=null&&D.length&&(D=this.JSC$23456_scrollContainer.clientWidth,D!==this.JSC$23456_lastScrollContainerWidth&&(this.JSC$23456_lastScrollContainerWidth=D,_.Os(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(D*.8,415)+"px"}),_.lE(this.hostElement,"iron-resize")))};
_.$a.Object.defineProperties(It.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var D=[],C;if((C=this.data)==null||!C.carouselLockups)return D;C=_.U(this.data.carouselLockups);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0;((c=_.r(X,El2))==null?0:c.videoLockup)&&D.push(_.r(X,El2).videoLockup)}return D}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoLockups)==null||!D.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var D=[],C;if((C=this.data)==null||!C.carouselLockups)return D;var X;return(X=_.r(this.data.carouselLockups[this.scrollCount],El2))==null?void 0:X.infoRows}}});
It.prototype.dataChanged=It.prototype.dataChanged;It.prototype.onIronResize=It.prototype.onIronResize;It.prototype.hiddenChanged=It.prototype.hiddenChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],It.prototype,"componentBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],It.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],It.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],It.prototype,"inlineStructuredDescription",void 0);_.V([_.n({value:2}),_.z("design:type",Number)],It.prototype,"initialCount",void 0);_.V([_.n(),_.z("design:type",Object)],It.prototype,"currentIndex",void 0);
_.V([_.n(),_.z("design:type",Number)],It.prototype,"scrollCount",void 0);_.V([_.n(),_.z("design:type",Object)],It.prototype,"supportComponentResize",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],It.prototype,"contentHidden",void 0);_.V([_.kn("#scroll-container"),_.z("design:type",HTMLDivElement)],It.prototype,"JSC$23456_scrollContainer",void 0);
_.V([_.vr("contentHidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],It.prototype,"hiddenChanged",null);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],It.prototype,"videoLockups",null);_.V([_.e("videoLockups"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],It.prototype,"hasVideoLockups",null);
_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],It.prototype,"onIronResize",null);_.V([_.e("data","scrollCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],It.prototype,"infoRows",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],It.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],It);
_.G(It,"ytd-video-description-music-section-renderer",function(){if(eIf!==void 0)return eIf;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return eIf=D},{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var Er2;var Oh=function(){return _.w.apply(this,arguments)||this};
_.h(Oh,_.w);Oh.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.V([_.n({}),_.z("design:type",Object)],Oh.prototype,"data",void 0);_.V([_.yj({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Oh);
_.G(Oh,"ytd-video-description-transcript-section-renderer",function(){if(Er2!==void 0)return Er2;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Er2=D},{mode:1});var tc2;_.CI(_.F(function(D){var C=_.ku(_.Qlm,function(){return D.data().firstProviderLinkStatusEntityKey}),X=_.ku(_.Qlm,function(){return D.data().secondProviderLinkStatusEntityKey}),c=function(){var W,p;
return((W=C())==null?void 0:W.linked)||((p=X())==null?void 0:p.linked)};
return _.A("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.A(_.QG,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return D.data().sectionTitle}}),_.A(_.QG,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return c()?D.data().connectedMessage:D.data().notConnectedMessage}}),_.A(_.v,{cond:c,
then:function(){return _.A(_.BX,{data:function(){return D.data().connectedButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.A(_.v,{cond:function(){return!c()},
then:function(){return _.A(_.BX,{data:function(){return D.data().notConnectedButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;return _.A("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.A("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.A(_.QG,{text:function(){return C().sectionTitle}})),_.A("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.A(_.QG,{text:function(){return C().bodyHeader}})),_.A("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.A(_.QG,{text:function(){return C().bodyText}})),_.A(_.v,{cond:function(){return C().attributionText},
then:function(){return _.A("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.A(_.QG,{text:function(){return C().attributionText}}))}}))},"Rn"),"how-this-was-made-section-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){return _.A("yt-video-description-youchat-section-view-model",{class:_.g$("ytVideoDescriptionYouchatSectionViewModelHost")},_.A("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.A(_.QG,{text:function(){return D.data().sectionTitle}})),_.A("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.A(_.QG,{text:function(){return D.data().subHeaderText}})),_.A("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.A(_.Ze,{data:function(){return _.r(D.data().primaryButton,
_.is)}})))},"Sn"),"yt-video-description-youchat-section-view-model",{props:{data:_.Bm}});var Ai=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return D};
_.h(Ai,_.w);_.S=Ai.prototype;
_.S.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}}}}}};
_.S.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.S.dataChanged=function(){var D,C;this.hasDescriptionOnly=!(((D=this.data)==null?void 0:(C=D.items)==null?void 0:C.length)!==1||!_.r(this.data.items[0],tH))};
_.S.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.S.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.S.autoFocusDescription=function(){var D;((D=_.iX().resolve(_.vK(_.E7)))==null?0:D.isKeyBoardInUse())&&this.description&&_.Ii(this.description)};
_.S.resize=function(){if(_.b("kevlar_disable_sd_resize"))this.JSC$23464_cardList&&_.lE(this.JSC$23464_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.lE(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.lE(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.S.scrollToSection=function(D){if(D=this.getSectionElement(D))_.DS(this.hostElement,"yt-scroll-to-watch-element",[D]),D.focus()};
_.S.getSectionElement=function(D){switch(D){case "infocards-item-section":var C;return(C=this.infocardsSection)!=null?C:null;case "transcript-item-section":var X;return(X=this.transcriptSection)!=null?X:null;case "how-this-was-made-section-item-section":var c;return(c=this.howThisWasMadeSection)!=null?c:null;case "files-item-section":var W;return(W=this.filesSection)!=null?W:null;default:return null}};
_.S.handleSetActiveItemAction=function(D){var C=_.r(D,XLz),X=C&&(C==null?void 0:C.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23464_cardList;if(C&&X){D=this.currentActiveChapter;var c=this.currentActiveProblem;C=X==null?void 0:X.getItemByIndex(C.itemIndex);var W=X=!0;C&&(C.active=!0,C.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(X=D!==C,W=!1,this.currentActiveChapter=C):(C==null?void 0:C.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(X=!1,W=c!==C,this.currentActiveProblem=C));D&&X&&(D.active=!1);c&&W&&(c.active=!1)}};
_.$a.Object.defineProperties(Ai.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.CG("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Ai.prototype.onYtExpanderMoreTapped=Ai.prototype.onYtExpanderMoreTapped;Ai.prototype.onHiddenChanged=Ai.prototype.onHiddenChanged;Ai.prototype.dataChanged=Ai.prototype.dataChanged;Ai.prototype.panelContentVisibleChanged=Ai.prototype.panelContentVisibleChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Ai.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],Ai.prototype,"ironResizableBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ai.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],Ai.prototype,"panelContentVisible",void 0);_.V([_.n(),_.z("design:type",Boolean)],Ai.prototype,"hasDescriptionOnly",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ai.prototype,"inlineStructuredDescription",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ai.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ai.prototype,"shortsPanel",void 0);_.V([_.n(),_.z("design:type",Object)],Ai.prototype,"videoSummary",void 0);_.V([_.n(),_.z("design:type",Object)],Ai.prototype,"merchShelf",void 0);
_.V([_.e("videoSummary"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ai.prototype,"showVideoSummary",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ai.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ai.prototype,"watchWhileSdp",void 0);_.V([_.kn("ytd-expandable-video-description-body-renderer"),_.z("design:type",Object)],Ai.prototype,"description",void 0);
_.V([_.kn("ytd-horizontal-card-list-renderer"),_.z("design:type",Object)],Ai.prototype,"JSC$23464_cardList",void 0);_.V([_.kn("ytd-horizontal-card-list-renderer[center-items]"),_.z("design:type",Object)],Ai.prototype,"problemWalkthroughCardList",void 0);_.V([_.kn("ytd-shelf-renderer"),_.z("design:type",Object)],Ai.prototype,"shelfSection",void 0);_.V([_.kn("ytd-video-description-music-section-renderer"),_.z("design:type",Object)],Ai.prototype,"musicMetadataSection",void 0);
_.V([_.kn("ytd-video-description-infocards-section-renderer"),_.z("design:type",Object)],Ai.prototype,"infocardsSection",void 0);_.V([_.kn("ytd-video-description-transcript-section-renderer"),_.z("design:type",Object)],Ai.prototype,"transcriptSection",void 0);_.V([_.kn("how-this-was-made-section-view-model"),_.z("design:type",Object)],Ai.prototype,"howThisWasMadeSection",void 0);_.V([_.kn("ytd-video-description-files-section-renderer"),_.z("design:type",Object)],Ai.prototype,"filesSection",void 0);
_.V([_.vr("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ai.prototype,"panelContentVisibleChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ai.prototype,"dataChanged",null);_.V([_.vr("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ai.prototype,"onHiddenChanged",null);
_.V([_.$n("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ai.prototype,"onYtExpanderMoreTapped",null);_.V([_.yj({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Ai);
_.G(Ai,"ytd-structured-description-content-renderer",function(){if(tc2!==void 0)return tc2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tc2=D},{mode:2});var Nlm;var Ynv;var P5=function(){return _.w.apply(this,arguments)||this};
_.h(P5,_.w);P5.prototype.computeAriaLabel=function(D){var C,X;return(D==null?void 0:(C=D.accessibility)==null?void 0:(X=C.accessibilityData)==null?void 0:X.label)||_.I7("LOADING",void 0,"Loading")};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],P5.prototype,"data",void 0);_.V([_.n({computed:"computeAriaLabel(data)"}),_.z("design:type",String)],P5.prototype,"ariaLabel",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],P5);
_.G(P5,"yt-content-loading-renderer",function(){if(Ynv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Nlm===void 0&&(Nlm=document.createElement("template"));var c=Nlm;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Ynv=D}D=Ynv;return D},{mode:1});_.CI(_.F(function(D){var C=_.U(_.Li(!1,void 0,"OZMtVb")),X=C.next().value,c=C.next().value;C=_.U(_.Li(!1,void 0,"qWERsf"));var W=C.next().value,p=C.next().value;_.JU(function(){var O=_.r(D.data().collaboratePlaylistCollaborationSetting,BOj);O&&c(O.switchedOnByDefault);var P=_.r(D.data().allowNewCollaboratorsPlaylistCollaborationSetting,BOj);P&&p(P.switchedOnByDefault);if(!O&&!P||!O&&D.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")c(!0),p(!0)});
var g=function(O){c(O);p(O);var P=D.data().playlistCollaborationEntityKey||"";var k=_.qw().getState();(k=_.aI(k.entities,"playlistCollaborationEntity",P))&&(k==null?void 0:k.isCollaborative)===O||_.qw().dispatch(_.bK("playlistCollaborationEntity",P,Object.assign({},k,{isCollaborative:O})))},a=function(O){p(O)};
return _.A("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.A("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.A(_.BX,{data:function(){return D.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.A(_.ERJ,{data:O.data,
onSwitch:g})}})),_.A(_.v,{cond:X,
then:function(){return _.A(_.kQ,null,_.A("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.A(_.BX,{data:function(){return D.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.A(_.ERJ,{data:O.data,
onSwitch:a,overrideDisabled:!1})}})),_.A(_.v,{cond:W,
then:function(){return _.A("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.A(_.BX,{data:function(){return D.data().copyLinkButton}},{buttonViewModel:_.Ze}))}}),_.A("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.A(_.BX,{data:function(){return D.data().playlistCollaborators}},{contentListItemViewModel:_.G1G})))}}))},"Tn"),"playlist-collaboration-view-model",{props:{data:_.Bm}});var y8B=_.F(function(D){var C=D.data;var X=D.customCommandResolver;return _.A(_.kQ,null,_.A("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.A(_.BX,{data:function(){return C().adAvatar}},{adAvatarViewModel:function(c){return _.A(_.lBx,{data:c.data,
customCommandResolver:X})}})),_.A("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.A(_.v,{cond:function(){return C().headline},
then:function(c){return _.A(_.QG,{text:c,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.A("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.A(_.BX,{data:function(){return C().adBadge}},{adBadgeViewModel:function(c){return _.A(_.Hw,{data:c.data,
hasDot:function(){return C().primaryDetailsLine!==void 0},
customCommandResolver:X,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.A(_.BX,{data:function(){return C().primaryDetailsLine}},{adDetailsLineViewModel:function(c){return _.A(_.Je,{data:c.data,
customCommandResolver:X,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Un"),nrH=_.F(function(D){var C=D.data;
var X=D.customCommandResolver;return _.A("ad-avatar-lockup-view-model",{class:function(){var c;return((c=C().interaction)==null?0:c.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.fb(_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9}),_.Fv(function(){return C().interaction},X)),
"aria-label":function(){var c,W;return(c=C().interaction)==null?void 0:(W=c.accessibility)==null?void 0:W.label}},_.A(_.G4,null,_.A(_.wq,{when:function(){return C().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.A(y8B,{data:C,
customCommandResolver:X})}),_.A(_.Fr,null,function(){return null})))},"Vn");_.CI(_.F(function(D){var C=D.data;var X=D.panelContentVisibility;D=_.kb({visibilityCallback:function(p){var g,a=(g=C().interaction)==null?void 0:g.onFirstVisible;p&&a&&_.FV(a)},
showOption:_.n9});var c=_.Fv(function(){return C().interaction},SHJ);
_.He(function(){var p,g;if(g=_.Df("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var a;g=(a=g())==null?void 0:a.onLayoutVisibleCallback}else g=null;(p=g)==null||p()},"Wn");
var W=function(){return X()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.A("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.fb(D,c)},_.A("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.A("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.A(_.v,{cond:_.Q55("(min-width: "+((0,_.CB)()+_.Ys)+"px) or (max-width: 600px)"),then:function(){return _.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(p){return _.A(_.Xa,{data:p.data,
targetHeight:80,customCommandResolver:SHJ})}})}})),_.A("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.A("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.A(_.BX,{data:function(){return C().adAvatarLockup}},{adAvatarLockupViewModel:function(p){return _.A(nrH,{data:p.data,
customCommandResolver:SHJ})}})),_.A(_.v,{cond:W,
then:function(){return _.A(_.BX,{data:function(){return C().adButton}},{adButtonViewModel:function(p){return _.A(_.FZ,{data:p.data,
customCommandResolver:SHJ})}})},
else:function(){return _.A(_.BX,{data:function(){return C().menu}},{buttonViewModel:_.Ze})}}),_.A("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.A(_.BX,{data:function(){var p=_.r(C().toggleButton,_.us);
return{toggleButtonViewModel:Object.assign({},p,{isTogglingDisabled:!0,isToggled:W()})}}},{toggleButtonViewModel:_.o1})))))},"Xn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Bm,
panelContentVisibility:_.Bm}});_.CI(_.F(function(D){var C=function(){return _.r(D.data().inputComposerViewModel,aiv)},X=_.uu(_.TU.currentPageSubTypeSelector),c=_.uu(_.TU.persistentPanelVisibleSelector),W=_.U(_.Li(!1,void 0,"IASwBb")),p=W.next().value,g=W.next().value;
W=_.U(_.Li(!1,void 0,"GdQ0qf"));var a=W.next().value,O=W.next().value,P=function(){L(!0);var r5;_.FV(((r5=C())==null?void 0:r5.onSubmitCommand)||{})},k=function(){if(c()&&!a()){var r5;
(r5=_.AG())==null||r5.removeCueRange("aic-proactive");g(!1);O(!0);P();_.yK(_.qsN(C().endOfVideoContinuation),{form:{formData:_.i7({clientMessageId:"youchat-"+Date.now(),pageContext:xj()})},commandController:{onSuccess:function(){L(!1)},
onServerError:function(){_.yK(jQd(J()));L(!1)}}})}},u=function(){var r5=_.AG();
if(r5&&!p()&&!a()){var Fd=r5.getDuration();Fd>60&&(r5.addCueRange("aic-proactive",Fd-60,Fd-20),g(!0))}},Q=function(){var r5;
return((r5=C())==null?void 0:r5.youchatPendingResponseEntityKey)||""},B=_.ku(_.D_X,Q),K=function(){var r5;
return!((r5=B())==null||!r5.isPendingResponse)},L=function(r5){_.COU(Q())(r5)};
W=_.U(_.Li(!0,void 0,"n0Jijf"));var t=W.next().value,Y=W.next().value,y=function(){var r5,Fd;var GJ=_.r((Fd=C())==null?void 0:Fd.inputFormField,liv);return GJ==null?void 0:(r5=GJ.contentProperties)==null?void 0:r5.placeholderText},J=function(){return C().sectionTargetId||"youchat_messages_section"};
W=_.IX("yt-chat-input-view-model");var T=_.aX("textarea"),H=_.ku(qYz,"chat_input_view_model_state"),q=ffD(),R=function(){var r5;return!((r5=H())==null||!r5.value)},ph=function(){return D.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Om=function(){var r5;
(r5=_.AG())==null||r5.removeCueRange("aic-proactive");g(!1);O(!1);var Fd;_.b("enable_navigational_proactive_messages_on_ai_companion")&&((Fd=C())==null?0:Fd.navigationContinuation)&&c()&&(P(),_.yK(_.qsN(C().navigationContinuation),{form:{formData:_.i7({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:ghv(),pageContext:xj()})},commandController:{onSuccess:function(){L(!1)},
onServerError:function(){_.yK(jQd(J()));L(!1)}}}))},xj=function(){var r5;
return(r5=_.iX().resolve(_.vK(_.an)))==null?void 0:_.SFG(r5,X())};
_.JU(function(){if(_.b("enable_ai_chat_controller")){var r5;(r5=_.iX().resolve(_.vK(_.an)))==null||r5.init(D.data().environment)}else if(r5=Iid(D.data()),!R()&&r5){var Fd;((Fd=C())==null?0:Fd.setPendingResponseOnWelcome)&&L(!0);_.yK(r5,{form:{formData:_.i7({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:ghv(),pageContext:xj()})}});q(!0)}var GJ=J(),jZ=_.iX().resolve(_.vK(_.HV)),Ac=function(){_.QX.remove(GJ);if(_.b("enable_ai_chat_controller")){var d5;(d5=_.iX().resolve(_.vK(_.an)))!=null&&d5.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(d5.lastWelcomeContinuationSent=void 0)}else q(!1)},ib=function(){_.hw(function(){if(ph()&&(Om(GJ),X()==="watch")){var d5=_.AG();
d5&&(d5.addEventListener("onStateChange",u),d5.addEventListener("onCueRangeEnter",k))}})};
Fd=_.b("enable_ai_companion")?!ph():!0;jZ==null||jZ.addEventListener("yt-navigate-start",Ac,{once:Fd});jZ==null||jZ.addEventListener("yt-navigate-finish",ib,{once:Fd});_.z3(function(){jZ==null||jZ.removeEventListener("yt-navigate-start",Ac);jZ==null||jZ.removeEventListener("yt-navigate-finish",ib);var d5=_.AG();d5&&(d5.removeEventListener("onCueRangeEnter",k),d5.removeEventListener("onStateChange",u),d5.removeCueRange("aic-proactive"))})});
_.Jw(function(){if(_.b("enable_ai_chat_controller")){var r5=Iid(D.data());if(r5){var Fd,GJ=((Fd=C())==null?0:Fd.setPendingResponseOnWelcome)?L:void 0,jZ;(jZ=_.iX().resolve(_.vK(_.an)))==null||Hqm(jZ,{command:r5,setPending:GJ})}}},"Z4XQCb");
var Bo=function(){var r5=T.value.value;T.value.value="";UXv(T.value);var Fd,GJ=((Fd=C())==null?void 0:Fd.enableGradientColorBg)||!1;Fd=Mqv(J(),r5,GJ);_.yK(Fd);P();var jZ,Ac,ib;Fd=(ib=_.Y7((jZ=D.data())==null?void 0:jZ.sendUserQueryCommand))!=null?ib:_.qsN((Ac=C())==null?void 0:Ac.continuation);_.yK(Fd,{form:{formData:_.i7({clientMessageId:"youchat-"+Date.now(),userInputText:r5,playerOffsetMs:ghv(),pageContext:xj()})},commandController:{onSuccess:function(){L(!1)},
onServerError:function(){_.yK(jQd(J()));L(!1)}}})};
return _.A("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:W},_.A("div",{class:"chatInputViewModelChatInputWrapper"},_.A("form",{class:"chatInputViewModelChatInputForm"},_.A("textarea",{class:"chatInputViewModelChatInput",el:T,"on:keydown":_.I_(function(r5){var Fd=K()||!1;UXv(T.value);Fd||r5.key!=="Enter"||r5.shiftKey||(r5.preventDefault(),Bo());return!1}),
"on:keyup":_.I_(function(){Y(T.value.value.length===0);return!1}),
"aria-label":function(){return K()?D.data().loadingAnimationA11yLabel||"":y()},
placeholder:y,rows:1}),_.A(_.Ze,{data:function(){return _.r(D.data().sendButton,_.is)},
onClick:function(r5){r5.preventDefault();Bo();Y(T.value.value.length===0)},
buttonOverrides:function(){return{disabled:t()||K()}}})),_.A(_.QG,{className:"chatInputViewModelChatDisclaimer",
text:function(){var r5;return(r5=_.r(D.data().disclaimer,_.r$b))==null?void 0:r5.text}})))},"Zn"),"yt-chat-input-view-model",{props:{data:_.Bm}});var w7j=["engagement-panel-clip-create","engagement-panel-clip-view"],FPv=0,$R=function(){var D=_.w.apply(this,arguments)||this;var C;D.headerData=(C=D.data)==null?void 0:C.header;D.darkerPanels=_.b("web_watch_darker_panels");D.matchContentTheme=_.b("web_watch_panel_content_match_theme");D.disableAutoFill=!1;D.isFullscreen=!1;D.isTheaterMode=!1;D.liveChatReplyPanel=!1;D.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");D.disableBackdropFilter=_.b("web_disable_backdrop_filter");D.isPersistentPanel=
!1;D.trackEngagementPanelVisibility=_.b("web_watch_track_engagement_panel_visibility");D.overscrollContain=!1;D.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 D};
_.h($R,_.w);_.S=$R.prototype;
_.S.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(D){var C;return(D==null?void 0:(C=D.webComponentHint)==null?void 0:C.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.S.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var D;if((D=this.hostElement.parentElement)==null?0:D.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.S.detached=function(){this.updateTheaterDisablement()};
_.S.showPanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.qX.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.S.maybeScrollToItemSection=function(D){var C=this,X,c=D==null?void 0:(X=D.sectionListEngagementPanelExtras)==null?void 0:X.scrollToItemSectionIdentifier;c&&_.qX.addJob(function(){var W;(W=C.sectionListRendererElement)==null||W.scrollToItemSection(c)},8)};
_.S.hidePanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.qX.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.S.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.S.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.S.updatePanel=function(D,C,X,c){var W=this;if((D=D==null?void 0:D.engagementPanelSectionListRenderer)||c){if(D){c=D.header;var p=D.content,g=D.footer;(D=D.targetId)&&this.set("data.targetId",D);c&&this.set("data.header",c);p&&this.set("data.content",p);g&&this.set("data.footer",g)}else c&&(D=c.content,p=c.secondaryHeaderContent,g=c.targetId,c=c.loggingDirectives,g&&this.set("data.targetId",g),D&&this.set("data.content",D),c&&_.b("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
c),p&&(this.secondaryHeaderData=p));this.updateChildVisibilityProperties();if(C){var a;_.b("kevlar_update_panel_focus_scroll_killswitch")||(a={preventScroll:!0});this.focus(a)}_.A0(this,function(){_.lE(W.hostElement,"yt-refit");W.maybeScrollToItemSection(X)})}};
_.S.computeHeaderData=function(){var D,C=(0,_.ZI.unsafeClone)((D=this.data)==null?void 0:D.header);if(C){D=new _.A7(Object.keys(C)[0]);var X=_.r(C,D),c=_.r(this.secondaryHeaderData,D);c&&_.mp(C,D,Object.assign({},c,X))}return C};
_.S.getReloadContinuation=function(){var D,C,X,c=_.U(((D=this.data)==null?void 0:(C=D.content)==null?void 0:(X=C.sectionListRenderer)==null?void 0:X.continuations)||[]);for(D=c.next();!D.done;D=c.next())if(D=D.value,D.reloadContinuationData)return D.reloadContinuationData.continuation};
_.S.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var D;((D=this.data)==null?0:D.targetId)&&(D=this.contentElement.firstElementChild)&&D.setAttribute("panel-target-id",this.data.targetId)};
_.S.forwardPopupClosedToFlowRootRenderer=function(){var D=_.SY(this.hostElement).querySelector("ytd-flow-root-renderer");if(D&&this.hostElement.closest("ytd-popup-container"))D.onPopupClosed()};
_.S.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var D;if(!w7j.includes((D=this.theaterDisablementPanelIdentifier)!=null?D:""))if(D=_.b("web_watch_imax_theater_mode")&&this.isTheaterMode,D=_.b("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D,_.b("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||D){var C;this.visibility=(C=this.data)==null?void 0:C.visibility;var X;this.trackEngagementPanelVisibility&&((X=this.data)==null?void 0:X.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var c,W,p,g;this.contentEmpty=!!(((c=this.data)==null?0:(W=c.content)==null?0:W.structuredDescriptionContentRenderer)&&Object.keys((p=this.data)==null?void 0:(g=p.content)==null?void 0:
g.structuredDescriptionContentRenderer).length===0);(C=_.iX().resolve(_.p6))&&C.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.S.isTheaterModeChanged=function(){_.b("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.S.isFullscreenChanged=function(){_.b("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.S.focus=function(D){if(this.header)this.header.focus(D);else{var C;(C=_.SY(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||C.focus(D)}};
_.S.visibilityChanged=function(){if(!_.b("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var D=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=c||!this.lastVisibility,p,g,a,O=((p=this.data)==null?void 0:(g=p.identifier)==null?void 0:
g.tag)||((a=this.data)==null?void 0:a.panelIdentifier);if(D&&W){var P;((P=this.data)==null?0:P.onShowCommands)&&_.o7(this.hostElement,this.data.onShowCommands,this.hostElement);O&&_.fe().dispatch(_.oI({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:O}}))}else if(C&&X){var k;((k=this.data)==null?0:k.onHideCommands)&&_.o7(this.hostElement,this.data.onHideCommands,this.hostElement);O&&_.fe().dispatch(_.oI({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:O}}))}D&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*FPv++));_.b("kevlar_watch_focus_on_engagement_panels")&&D&&c&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.S.notifyVisibilityChanged=function(D){var C;_.Ct(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,D,(C=this.data)==null?void 0:C.targetId]);if(_.b("autonav_pause_for_comments_ep")){var X;_.lE(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(X=this.data)==null?void 0:X.targetId})}};
_.S.updateTheaterDisablement=function(){if(!_.b("kevlar_watch_theater_disablement_killswitch")){var D=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&w7j.includes(D)&&!_.b("watch_next_grid_ignore_disallowed_panels")){var C=_.tl(_.fe().getState()),X=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";D!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():X?(this.originalTheaterState===void 0&&(this.originalTheaterState=C,this.theaterDisablementPanelIdentifier=
D),C&&_.DS(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.S.clearTheaterDisablement=function(){_.DS(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.S.updateChildVisibilityProperties=function(){this.hostElement||_.b("kevlar_panel_property_init_killswitch")||this._enableProperties();var D=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=D);var C,X=(C=this.headerElement)==null?void 0:C.firstElementChild;if(X&&!this.adHeaderImageLockupViewModel){C=D==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";X.collapsed=C;X=_.SY(X).querySelector("#visibility-button");if(!X)return;(X=X.firstElementChild)&&
X.polymerController.is==="ytd-toggle-button-renderer"&&X.polymerController.data.isToggled!==C&&X.polymerController.set("data.isToggled",C)}var c;if(C=(c=this.contentElement)==null?void 0:c.firstElementChild)if(D&&D!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")C.removeAttribute("panel-content-visible");else{C.setAttribute("panel-content-visible","");var W;(W=C.markDirty)==null||W.call(C)}};
_.S.onYtChangeEngagementPanelVisibilityAction=function(D){var C=this,X,c=(X=this.data)==null?void 0:X.targetId,W,p,g;X=((W=this.data)==null?void 0:(p=W.identifier)==null?void 0:p.tag)||((g=this.data)==null?void 0:g.panelIdentifier);var a=_.r(D,_.Hr5),O;D=c&&(a==null?void 0:a.targetId)===c||X&&(a==null?void 0:(O=a.panelIdentifier)==null?void 0:O.tag)===X;this.dialog&&D&&(a==null?void 0:a.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(c==="engagement-panel-comments-section"?_.DS(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.DS(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",X]));!_.b("kevlar_use_engagement_panel_management_component")&&D&&(c=a.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!c?_.qX.addJob(function(){C.visibility=a.visibility},2,this.hideDelayMs):this.visibility=a.visibility,a.visibility&&this.notifyVisibilityChanged(a.visibility))};
_.S.onYtScrollToEngagementPanelCommand=function(D){var C,X=(C=this.data)==null?void 0:C.targetId,c,W,p;C=((c=this.data)==null?void 0:(W=c.identifier)==null?void 0:W.tag)||((p=this.data)==null?void 0:p.panelIdentifier);D=_.r(D,_.X8g);var g;(X&&(D==null?void 0:D.targetId)===X||C&&(D==null?void 0:(g=D.panelIdentifier)==null?void 0:g.tag)===C)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.DS(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.S.attachVEs=function(D){var C,X;(D==null?0:(C=D.content)==null?0:(X=C.productListRenderer)==null?0:X.trackingParams)&&_.iO().graftServerVe(D.content.productListRenderer.trackingParams);var c,W;(D==null?0:(c=D.content)==null?0:(W=c.transcriptRenderer)==null?0:W.trackingParams)&&_.iO().graftServerVe(D.content.transcriptRenderer.trackingParams)};
_.S.onYtUpdateEngagementPanelAction=function(D){var C,X=(C=this.data)==null?void 0:C.targetId;D=_.r(D,olB);X&&(D==null?void 0:D.targetId)===X&&(this.updatePanel({engagementPanelSectionListRenderer:{header:D==null?void 0:D.header,content:D==null?void 0:D.content}},!1),this.attachVEs(D))};
_.S.onYtShowEngagementPanelScrimAction=function(D){var C,X=(C=this.data)==null?void 0:C.targetId;D=_.r(D,cYJ);X&&(D==null?void 0:D.engagementPanelTargetId)===X&&(this.scrimmed=!0)};
_.S.onYtHideEngagementPanelScrimAction=function(D){var C,X=(C=this.data)==null?void 0:C.targetId;D=_.r(D,CwD);X&&(D==null?void 0:D.engagementPanelTargetId)===X&&(this.scrimmed=!1)};
_.S.getIdentifier=function(){var D,C,X;return((D=this.data)==null?void 0:D.panelIdentifier)||((C=this.data)==null?void 0:(X=C.identifier)==null?void 0:X.tag)};
_.S.getSurface=function(){var D,C;return(D=this.data)==null?void 0:(C=D.identifier)==null?void 0:C.surface};
_.$a.Object.defineProperties($R.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var D=this.getIdentifier();return D==="engagement-panel-youchat"||D==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
$R.prototype.visibilityChanged=$R.prototype.visibilityChanged;$R.prototype.isFullscreenChanged=$R.prototype.isFullscreenChanged;$R.prototype.isTheaterModeChanged=$R.prototype.isTheaterModeChanged;$R.prototype.dataChanged=$R.prototype.dataChanged;$R.prototype.forwardPopupClosedToFlowRootRenderer=$R.prototype.forwardPopupClosedToFlowRootRenderer;$R.prototype.onYtRendererstamperFinished=$R.prototype.onYtRendererstamperFinished;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],$R.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],$R.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],$R.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"data",void 0);
_.V([_.n({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.z("design:type",Object)],$R.prototype,"headerData",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"secondaryHeaderData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"visibility",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"contentEmpty",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"scrimmed",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"dialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"dropdown",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"darkerPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"matchContentTheme",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"disableAutoFill",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.b("optimal_reading_width_comments_ep")}),_.z("design:type",Boolean)],$R.prototype,"optimalReadingWidthComments",void 0);_.V([_.n(),_.z("design:type",Number)],$R.prototype,"hideDelayMs",void 0);_.V([_.n({selector:_.Nn,reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.tl,reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"isTheaterMode",void 0);
_.V([_.n(),_.z("design:type",Number)],$R.prototype,"showDelayMs",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.targetId"),_.z("design:type",Object),_.z("design:paramtypes",[])],$R.prototype,"targetId",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$R.prototype,"webSize",null);_.V([_.n(),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$R.prototype,"hideFooterBorder",null);
_.V([_.n(),_.z("design:type",Object)],$R.prototype,"isWatch",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"originalTheaterState",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"theaterDisablementPanelIdentifier",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"isWatchWhilePanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"shortsPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"liveChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],$R.prototype,"learningChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"liveChatReplyPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"enableAnchoredPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"disableBackdropFilter",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$R.prototype,"isPersistentPanel",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"trackEngagementPanelVisibility",void 0);_.V([_.n(),_.z("design:type",Object)],$R.prototype,"overscrollContain",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$R.prototype,"isAiCompanionPanel",null);
_.V([_.kn("#header"),_.z("design:type",HTMLElement)],$R.prototype,"headerElement",void 0);_.V([_.kn("#header > *"),_.z("design:type",HTMLElement)],$R.prototype,"header",void 0);_.V([_.kn("ytd-section-list-renderer"),_.z("design:type",Object)],$R.prototype,"sectionListRendererElement",void 0);_.V([_.kn("panel-ad-header-image-lockup-view-model"),_.z("design:type",HTMLElement)],$R.prototype,"adHeaderImageLockupViewModel",void 0);
_.V([_.kn("#content"),_.z("design:type",HTMLElement)],$R.prototype,"contentElement",void 0);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$R.prototype,"onYtRendererstamperFinished",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$R.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.V([_.bH("data","isFullscreen","isTheaterMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$R.prototype,"dataChanged",null);_.V([_.vr("isTheaterMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$R.prototype,"isTheaterModeChanged",null);_.V([_.vr("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$R.prototype,"isFullscreenChanged",null);
_.V([_.vr("visibility"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$R.prototype,"visibilityChanged",null);_.V([_.yj({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],$R);
_.G($R,"ytd-engagement-panel-section-list-renderer",function(){if(WPH!==void 0)return WPH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return WPH=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var ZND;var v5=function(){var D=_.w.apply(this,arguments)||this;D.lastRenderedPanelIds=new Set;D.visiblePanels=[];D.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.h(v5,_.w);_.S=v5.prototype;_.S.dataChanged=function(){if(this.data){for(var D=[],C=_.U(this.data),X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0,W=void 0,p=(c=X)==null?void 0:(W=c.engagementPanelSectionListRenderer)==null?void 0:W.visibility;W=c=void 0;((c=X)==null?0:(W=c.engagementPanelSectionListRenderer)==null?0:W.targetId)&&p!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&D.push(X)}this.visiblePanels=D}else this.visiblePanels=[]};
_.S.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}}};
_.S.withoutVisiblePanelById=function(D){return this.visiblePanels.filter(function(C){var X;return((X=C.engagementPanelSectionListRenderer)==null?void 0:X.targetId)!==D})};
_.S.onYtChangeEngagementPanelVisibilityAction=function(D){var C=this,X=_.r(D,_.Hr5);if(this.data&&(X==null?0:X.targetId)&&(X==null?0:X.visibility)){var c,W=(c=this.data.find(function(g){var a;return((a=g.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===X.targetId}))==null?void 0:c.engagementPanelSectionListRenderer;
if(W){var p=this.withoutVisiblePanelById(X.targetId);X.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(D=this.data.find(function(g){var a;return((a=g.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===X.targetId}))&&(p=[D].concat(_.VB(p)));
this.hideDelayMs&&X.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&p.length===0?_.qX.addJob(function(){W.visibility=X.visibility;C.visiblePanels=p},10,this.hideDelayMs):(W.visibility=X.visibility,this.visiblePanels=p);
_.Ct(this.hostElement,"yt-engagement-panels-visible-changed",[p])}}};
_.S.onRendererstamperFinished=function(){var D=new Set(this.visiblePanels.map(function(C){var X;return(X=C.engagementPanelSectionListRenderer)==null?void 0:X.targetId}));
this.handlePanelVisibilityChange(D,this.lastRenderedPanelIds);this.lastRenderedPanelIds=D};
_.S.handlePanelVisibilityChange=function(D,C){D=D===void 0?new Set:D;C=C===void 0?new Set:C;if(this.data)for(var X=_.U(this.data),c=X.next();!c.done;c=X.next()){c=c.value;var W=void 0,p=void 0,g=(W=c)==null?void 0:(p=W.engagementPanelSectionListRenderer)==null?void 0:p.targetId;if(g&&(W=C.has(g),p=D.has(g),g=void 0,!W&&p?(p=W=void 0,g=(W=c)==null?void 0:(p=W.engagementPanelSectionListRenderer)==null?void 0:p.onShowCommands):W&&!p&&(p=W=void 0,g=(W=c)==null?void 0:(p=W.engagementPanelSectionListRenderer)==
null?void 0:p.onHideCommands),g))for(c=_.U(g),g=c.next();!g.done;g=c.next())this.ytComponentBehavior.resolveCommand(g.value)}};
v5.prototype.onRendererstamperFinished=v5.prototype.onRendererstamperFinished;v5.prototype.dataChanged=v5.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],v5.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],v5.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],v5.prototype,"lastRenderedPanelIds",void 0);_.V([_.n(),_.z("design:type",Number)],v5.prototype,"hideDelayMs",void 0);_.V([_.n(),_.z("design:type",Array)],v5.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Array)],v5.prototype,"visiblePanels",void 0);_.V([_.n(),_.z("design:type",Boolean)],v5.prototype,"isWatchWhilePanel",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],v5.prototype,"dataChanged",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],v5.prototype,"onRendererstamperFinished",null);_.V([_.yj({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],v5);
_.G(v5,"ytd-watch-engagement-panels",function(){if(ZND!==void 0)return ZND;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ZND=D},{mode:1});var GCN;var i0=function(){return _.w.apply(this,arguments)||this};
_.h(i0,_.w);i0.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.aG(_.SY(this.hostElement).querySelector("#text"),_.Coc(_.oXe,this.data.companionLegalText))};
i0.prototype.computeAutoScrollEnabled=function(D,C){return D&&!C};
i0.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
i0.prototype.onToggleTap=function(){this.expanded=!this.expanded};
i0.prototype.expandedChanged=i0.prototype.expandedChanged;i0.prototype.dataChanged=i0.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.RKB),_.z("design:type",Object)],i0.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],i0.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],i0.prototype,"expanded",void 0);
_.V([_.n({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.z("design:type",Boolean)],i0.prototype,"autoScrollEnabled",void 0);_.V([_.n(),_.z("design:type",String)],i0.prototype,"expanderIcon",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i0.prototype,"dataChanged",null);
_.V([_.vr("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],i0.prototype,"expandedChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],i0);
_.G(i0,"ytd-companion-legal-text-renderer",function(){if(GCN!==void 0)return GCN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return GCN=D},{mode:1});var Vc6;var kR=function(){var D=_.w.apply(this,arguments)||this;D.buttonUpdate=_.b("web_modern_buttons");D.kevlarWatchGrid=_.b("kevlar_watch_grid");D.centerAlignDescription=_.b("action_companion_center_align_description");D.truncateDomain=_.b("action_companion_truncate_domain");D.enableMonoStyle=_.b("enable_default_mono_cta_migration_web_client");return D};
_.h(kR,_.w);_.S=kR.prototype;_.S.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.S.getOnLayoutVisibleCallback=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.S.getLayoutId=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.S.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",kR.JSC$23509_DEFAULT_AD_BADGE_RENDERER);var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.S.getButtonRenderer=function(D){return D.actionButton&&_.r(D.actionButton,_.AF)?(delete _.r(D.actionButton,_.AF).navigationEndpoint,_.r(D.actionButton,_.AF)):{}};
_.S.onClick=function(D){var C=this;if((!_.b("web_modern_buttons")||!_.d$(_.Mz(D),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){D=_.CT();var X=this.getLayoutId();D&&X&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(c){(new _.gQ(c)).executeCommand(C.data.navigationEndpoint,X)}):_.b("kevlar_companion_resolve_command_killswitch")?_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.DS(this.hostElement,"yt-companion-ad-clicked",["action-companion",X])}};
_.$a.Object.defineProperties(kR.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?0:(C=D.detailsLine)==null?0:(X=C.adRating)==null?0:X.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return((D=this.data)==null?0:(C=D.detailsLine)==null?0:(X=C.adRating)==null?0:(c=X.ratingIcon)==null?0:c.iconType)?_.g2(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return((D=this.data)==null?0:(C=D.detailsLine)==null?0:(X=C.texts)==null?0:(c=X[0])==null?0:c.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 D,C;return((D=this.data)==null?0:(C=D.description)==null?0:C.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var D=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return D?D.indexOf("/default_banner")!==-1:!0}}});
kR.prototype.onClick=kR.prototype.onClick;kR.prototype.dataChanged=kR.prototype.dataChanged;kR.JSC$23509_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.I7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],kR.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kR.prototype,"rendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kR.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kR.prototype,"buttonUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kR.prototype,"kevlarWatchGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kR.prototype,"centerAlignDescription",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kR.prototype,"truncateDomain",void 0);
_.V([_.n({computed:"computeButtonOverride(buttonUpdate)"}),_.z("design:type",Object)],kR.prototype,"buttonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],kR.prototype,"enableMonoStyle",void 0);_.V([_.e("data.detailsLine.adRating.ratingText"),_.z("design:type",Object),_.z("design:paramtypes",[])],kR.prototype,"getRating",null);_.V([_.e("getRating"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kR.prototype,"computeRatingHidden",null);
_.V([_.e("data.detailsLine.adRating.ratingIcon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],kR.prototype,"iconType",null);_.V([_.e("data.detailsLine.texts.0.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],kR.prototype,"getDetailsLine",null);_.V([_.e("getDetailsLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kR.prototype,"computeDetailsLineHidden",null);
_.V([_.e("data.description.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],kR.prototype,"getDescriptionText",null);_.V([_.e("getDescriptionText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kR.prototype,"computeDescriptionTextHidden",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kR.prototype,"interactionLoggingClientData",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kR.prototype,"hideBanner",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kR.prototype,"dataChanged",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],kR.prototype,"onClick",null);_.V([_.yj({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],kR);
_.G(kR,"ytd-action-companion-ad-renderer",function(){if(Vc6!==void 0)return Vc6;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Vc6=D},{mode:_.Wc("kevlar_poly_si_batch_j067")?1:2});var Tl2;var HNv;var u0=function(){var D=_.w.apply(this,arguments)||this;D.buttonUpdate=_.b("web_modern_buttons");D.hideLegacyBanner=_.b("enable_dsa_one_click_ata_translators_infeed_elements");D.adInfoButtonStyle="mono";D.adInfoButtonType="text";D.noDotAdBadge=!0;return D};
_.h(u0,_.w);_.S=u0.prototype;_.S.getOnLayoutVisibleCallback=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.S.getLayoutId=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.S.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 D=this.data.image.thumbnail.thumbnails[0];this.imageSrc=D.url?_.Hv(D.url):void 0;this.imageWidth=D.width||0;this.imageHeight=D.height||0}this.data.clickthroughEndpoint&&_.r(this.data.clickthroughEndpoint,_.oX)&&(D=_.r(this.data.clickthroughEndpoint,_.oX).url,_.b("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
D||"":D?(D=_.Hv(D),this.clickThroughUrl=_.Z6(D)):this.clickThroughUrl=void 0);(D=this.getOnLayoutVisibleCallback())&&D()}};
_.S.onClick=function(D){_.d$(_.Mz(D),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(D)};
_.S.handleClick=function(){var D=this;this.data&&this.data.clickthroughEndpoint&&(_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(C){D.macroReplacementBehavior.sendServiceRequestAction([C])}),_.DS(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.S.onLoad=function(){_.Ct(this.hostElement,"yt-refit-popups-action")};
_.$a.Object.defineProperties(u0.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
u0.prototype.onLoad=u0.prototype.onLoad;u0.prototype.onClick=u0.prototype.onClick;u0.prototype.dataChanged=u0.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],u0.prototype,"rendererBehavior",void 0);_.V([_.m(RLf.YtMacroReplacementBehavior),_.z("design:type",Object)],u0.prototype,"macroReplacementBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],u0.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],u0.prototype,"buttonUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],u0.prototype,"hideLegacyBanner",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],u0.prototype,"adInfoButtonStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],u0.prototype,"adInfoButtonType",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],u0.prototype,"macros",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],u0.prototype,"interactionLoggingClientData",null);_.V([_.n(),_.z("design:type",String)],u0.prototype,"clickThroughUrl",void 0);_.V([_.n(),_.z("design:type",_.y$)],u0.prototype,"imageSrc",void 0);_.V([_.n(),_.z("design:type",Number)],u0.prototype,"imageWidth",void 0);_.V([_.n(),_.z("design:type",Number)],u0.prototype,"imageHeight",void 0);_.V([_.n(),_.z("design:type",Object)],u0.prototype,"noDotAdBadge",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u0.prototype,"dataChanged",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],u0.prototype,"onClick",null);_.V([_.$n("load"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u0.prototype,"onLoad",null);_.V([_.yj({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],u0);
_.G(u0,"ytd-image-companion-renderer",function(){if(HNv!==void 0)return HNv;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return HNv=D},{mode:_.Wc("kevlar_poly_si_batch_j067")?1:2});var J8$;var QD=function(){return _.w.apply(this,arguments)||this};
_.h(QD,_.w);_.S=QD.prototype;_.S.dataChanged=function(){this.set("data.adBadge",QD.JSC$23518_DEFAULT_AD_BADGE_RENDERER);if(this.data){var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.S.getOnLayoutVisibleCallback=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.S.getLayoutId=function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.S.onCompanionClicked=function(D){this.data&&(D.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.DS(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.S.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var D=_.CT(),C=this.getLayoutId(),X=this.data.clickToAdvSiteEndpoint;D&&C&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(c){(new _.gQ(c)).executeCommand(X,C)}):_.lE(this.hostElement,"yt-navigate",{endpoint:X})}};
_.S.sendTrackingPings=function(D){if(D&&D.length!==0&&D[0].loggingUrls&&(D=D[0].loggingUrls.map(this.getBaseUrl)))for(var C=0;C<D.length;C++)_.WL(D[C])};
_.S.getBaseUrl=function(D){return D.baseUrl||""};
_.$a.Object.defineProperties(QD.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.Df("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
QD.prototype.onCompanionClicked=QD.prototype.onCompanionClicked;QD.prototype.dataChanged=QD.prototype.dataChanged;QD.JSC$23518_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.I7("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],QD.prototype,"data",void 0);_.V([_.kn("#title"),_.z("design:type",HTMLElement)],QD.prototype,"shopTitle",void 0);
_.V([_.bH("data.impressionEndpoints"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QD.prototype,"dataChanged",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],QD.prototype,"interactionLoggingClientData",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],QD.prototype,"onCompanionClicked",null);
_.V([_.yj({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],QD);
_.G(QD,"ytd-shopping-companion-renderer",function(){if(J8$!==void 0)return J8$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return J8$=D},{mode:1});_.CI(_.F(function(D){var C=D.data;D=_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9});var X=_.Fv(function(){return C().interaction},OqU);
_.He(function(){var c,W;W=(W=_.Df("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(c=W)==null||c()},"$n");
return _.A("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.I_(function(c){_.Ct(c.currentTarget,"yt-refit-popups-action")}),
el:_.fb(D,X),"aria-label":function(){var c,W;return(c=C().interaction)==null?void 0:(W=c.accessibility)==null?void 0:W.label}},_.A("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(c){return _.A(_.Xa,{data:c.data,
targetHeight:80,customCommandResolver:OqU})}})),_.A("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.A("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.A(_.BX,{data:function(){return C().adBadge}},{adBadgeViewModel:function(c){return _.A(_.Hw,{data:c.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.A("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.A(_.BX,{data:function(){return C().menu}},{buttonViewModel:_.Ze}))))},"ao"),"banner-image-layout-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;D=_.kb({visibilityCallback:function(c){var W,p=(W=C().interaction)==null?void 0:W.onFirstVisible;c&&p&&_.FV(p)},
showOption:_.n9});var X=_.Fv(function(){return C().interaction},ACD);
_.He(function(){var c,W;W=(W=_.Df("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(c=W)==null||c()},"bo");
return _.A("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.fb(D,X)},_.A("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.A(_.BX,{data:function(){return C().adImage}},{adImageViewModel:function(c){return _.A(_.Xa,{data:c.data,
targetHeight:80,customCommandResolver:ACD})}})),_.A("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.A("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.A(_.BX,{data:function(){return C().adAvatarLockup}},{adAvatarLockupViewModel:function(c){return _.A(nrH,{data:c.data,
customCommandResolver:ACD})}})),_.A(_.BX,{data:function(){return C().adButton}},{adButtonViewModel:function(c){return _.A(_.FZ,{data:c.data,
customCommandResolver:ACD})}}),_.A("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.A(_.BX,{data:function(){return C().menu}},{buttonViewModel:_.Ze}))))},"co"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Bm}});var zIJ={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"},B5=function(){var D=_.w.apply(this,arguments)||this;D.updateCompanionDataJobId=0;D.contentVideoId=null;D.player=null;D.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return D};
_.h(B5,_.w);_.S=B5.prototype;_.S.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:zIJ}}};
_.S.attached=function(){var D=this,C=_.CT();C&&C.getPlayerPromise().then(function(X){D.getCachedDataAndListen(X)})};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.S.updateRendererStamper=function(){var D={};if(this.data)for(var C in zIJ)if(this.data[C]){D[C]=this.data[C];break}if(this.oneofRenderer!=void 0||Object.keys(D).length)this.oneofRenderer=D};
_.S.getCachedDataAndListen=function(D){var C=this.retrieveCachedCompanionData();C&&Object.keys(C).length&&this.receiveCompanionData(C);this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=D};
_.S.retrieveCachedCompanionData=function(){return _.co.yt&&_.co.yt.www&&_.co.yt.www.ads&&_.co.yt.www.ads.eventcache&&_.co.yt.www.ads.eventcache.getLastCompanionData?_.co.yt.www.ads.eventcache.getLastCompanionData():null};
_.S.receiveCompanionData=function(D){D&&Object.keys(D).length?(this.contentVideoId=D.contentVideoId,this.setCompanionData(D)):this.setCompanionData(D)};
_.S.setCompanionData=function(D){this.cancelPendingCompanionAdJobs();if(D){this.updateCompanionDataJobId=0;for(var C in zIJ)zIJ.hasOwnProperty(C)&&(this.data[C]=void 0);D.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",D.shoppingCompanionCarouselRenderer):D.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",D.imageCompanionAdRenderer):D.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",D.actionCompanionAdRenderer),_.Ct(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Ct(this.hostElement,"yt-hide-tvfilm-offer-module")):D.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",D.bannerImageLayoutViewModel):D.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",D.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.S.dataChanged=function(){var D=this,C=_.CT();C?C.getPlayerPromise().then(function(X){D.contentVideoId&&X.getVideoUrl().includes("v="+D.contentVideoId)||(D.cancelPendingCompanionAdJobs(),D.updateRendererStamper())}):_.CC(Error("ep"))};
_.S.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.qX.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.S.handleCompanionAdClicked=function(D,C){this.player.onAdUxClicked(D,C);this.player.pauseVideo()};
B5.prototype.dataChanged=B5.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],B5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],B5.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],B5.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],B5.prototype,"oneofRenderer",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B5.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],B5);
_.G(B5,"ytd-companion-slot-renderer",function(){if(Tl2!==void 0)return Tl2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Tl2=D},{mode:_.Wc("kevlar_poly_si_batch_j067")?
1:2});var jB2;var b0=function(){return _.w.apply(this,arguments)||this};
_.h(b0,_.w);b0.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
b0.prototype.dataChanged=b0.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],b0.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],b0.prototype,"companionSlotData",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b0.prototype,"dataChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],b0);
_.G(b0,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(jB2!==void 0)return jB2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jB2=D},{mode:1});var McH;var rc=function(){var D=_.w.apply(this,arguments)||this;D.skinnyMode=!1;D.COMPACT_EVENT_COUNT=4;D.onShelfToggleButtonTap=function(){D.logTap(D.data);D.showingMore=!D.showingMore};
D.onShelfToggleButtonFocus=function(){D.showingMore||(D.logTap(D.data),D.showingMore=!0,_.A0(D,function(){var C=D.COMPACT_EVENT_COUNT-1,X;(X=_.SY(D.hostElement).querySelector("#event-"+C))==null||X.focus()}))};
return D};
_.h(rc,_.w);_.S=rc.prototype;_.S.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.S.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.S.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Pr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Pr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Pr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Pr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Pr(this.infoTooltip,this.infoTooltip.hide))};
_.S.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Pr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Pr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Pr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Pr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Pr(this.infoTooltip,this.infoTooltip.hide))};
_.S.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)};
_.S.onShowingMoreChanged=function(){var D;this.showingMoreChanged((D=this.showingMore)!=null?D:!1)};
_.S.showingMoreChanged=function(D){var C=this.get("data.events")||[];this.set("restEvents",C.slice(1,D?C.length:this.COMPACT_EVENT_COUNT).map(function(X){return X.ticketEventRenderer}));
C.slice(0,D?C.length:this.COMPACT_EVENT_COUNT).forEach(function(X){var c=_.LN();X=X.ticketEventRenderer.trackingParams;_.xr()&&c&&X&&(X=_.bO(X),c&&_.Go(c,X))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.S.computeAriaLabel=function(D){return D.subtitle1+", "+D.subtitle2};
_.S.logTap=function(D){_.xr()&&this.ytRendererBehavior.logExplicitClick(D)};
_.S.isKeyboardAction=function(D){return this.get("detail.x",D)===0&&this.get("detail.y",D)===0};
_.S.onFirstEventTap=function(D){D.target&&this.handleTap(D.target,this.firstEvent,this.isKeyboardAction(D))};
_.S.onTicketLinkTap=function(D){D.target&&this.handleTap(D.target,D.model.item,this.isKeyboardAction(D))};
_.S.handleTap=function(D,C,X){if(C.buttonCommand)if(C.hasMultipleOffers)Object.assign(_.r(C.buttonCommand,_.fo),{properties:{source:X?"keyboard":"tap"}}),this.logTap(C),this.popupPositionTarget=D,_.o7(this.hostElement,[C.buttonCommand],this.hostElement);else{var c;if((c=_.r(C.buttonCommand,_.oX))==null?0:c.url)this.logTap(C),_.ct(window,_.r(C.buttonCommand,_.oX).url)}};
rc.prototype.onShowingMoreChanged=rc.prototype.onShowingMoreChanged;rc.prototype.dataChanged=rc.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rc.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],rc.prototype,"firstEvent",void 0);_.V([_.n(),_.z("design:type",Object)],rc.prototype,"restEvents",void 0);_.V([_.n(),_.z("design:type",String)],rc.prototype,"imageUrl",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],rc.prototype,"showingMore",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],rc.prototype,"canShowMore",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],rc.prototype,"skinnyMode",void 0);_.V([_.n(),_.z("design:type",HTMLElement)],rc.prototype,"popupPositionTarget",void 0);_.V([_.kn("#banner-info-tooltip"),_.z("design:type",Object)],rc.prototype,"infoTooltip",void 0);
_.V([_.kn("#info-container"),_.z("design:type",HTMLElement)],rc.prototype,"infoContainer",void 0);_.V([_.kn("#shelf-toggler"),_.z("design:type",HTMLElement)],rc.prototype,"shelfToggleButton",void 0);_.V([_.kn("#separator"),_.z("design:type",HTMLDivElement)],rc.prototype,"separator",void 0);_.V([_.n(),_.z("design:type",String)],rc.prototype,"shelfTogglerLabelText",void 0);_.V([_.n(),_.z("design:type",String)],rc.prototype,"shelfTogglerIcon",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rc.prototype,"dataChanged",null);_.V([_.bH("showingMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rc.prototype,"onShowingMoreChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],rc);
_.G(rc,"ytd-ticket-shelf-renderer",function(){if(McH!==void 0)return McH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return McH=D},{mode:1});var qn2;var fuN;var dF$=function(){return _.w.apply(this,arguments)||this};
_.h(dF$,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dF$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dF$.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],dF$);
_.G(dF$,"ytd-comments-entry-point-message-renderer",function(){if(fuN!==void 0)return fuN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fuN=D},{mode:1});var RIv;var Kv=function(){return _.w.apply(this,arguments)||this};
_.h(Kv,_.w);_.$a.Object.defineProperties(Kv.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.teaserAvatar)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Kv.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Kv.prototype,"hasAvatar",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Kv);
_.G(Kv,"ytd-comments-entry-point-teaser-renderer",function(){if(RIv!==void 0)return RIv;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return RIv=D},{mode:1});var lu6;var DCm=function(){return _.w.apply(this,arguments)||this};
_.h(DCm,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DCm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DCm.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],DCm);
_.G(DCm,"ytd-comments-simplebox-renderer",function(){if(lu6!==void 0)return lu6;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return lu6=D},{mode:1});var hi=function(){var D=_.w.apply(this,arguments)||this;D.fullHeight=!_.b("comment_teaser_full_height_kill_switch")&&_.b("kevlar_watch_grid");return D};
_.h(hi,_.w);hi.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"}}}};
hi.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
hi.prototype.onTap=function(){var D=this.tapCommand;D&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(D))};
hi.prototype.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.$a.Object.defineProperties(hi.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.onTap)return this.data.onTap;var C,X;if(((C=this.data)==null?0:C.teaserContent)||((X=this.data)==null?0:X.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
hi.prototype.onKeyUp=hi.prototype.onKeyUp;hi.prototype.onTap=hi.prototype.onTap;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],hi.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hi.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hi.prototype,"fullHeight",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"tapCommand",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"simpleboxPlaceholder",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hi.prototype,"hasSimpleboxPlaceholder",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"simpleboxAvatar",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"teaserContent",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hi.prototype,"hasTeaserContent",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"teaserAvatar",null);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hi.prototype,"hasTeaserAvatar",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"messageText",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],hi.prototype,"contentRenderer",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hi.prototype,"hasContents",null);
_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hi.prototype,"hasContentRenderer",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hi.prototype,"onTap",null);_.V([_.$n("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[_.EC]),_.z("design:returntype")],hi.prototype,"onKeyUp",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],hi);
_.G(hi,"ytd-comments-entry-point-header-renderer",function(){if(qn2!==void 0)return qn2;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qn2=D},{mode:1});var C5j;_.CI(_.MS4,"yt-animated-rolling-number",{props:{numberText:_.Bm,numberValue:_.Bm,heightPx:_.Bm,fontSizeMultiplier:_.Bm,shouldAnimate:_.Bm,forceRollUp:_.Bm}});var XEd=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),cZz={numberText:"",heightPx:2*XEd,shouldAnimate:!1},xR=function(){var D=_.w.apply(this,arguments)||this;D.usingAnimatedComponents=!0;D.wasDetailed=!1;D.JSC$23555_browserSupportsAnimation=_.b("web_supports_animations_api");D.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};D.detailed=!1;D.shouldAnimate=!1;D.viewCountProps=cZz;D.dateTextProps=
cZz;D.metadataBadgesInDescription=_.b("web_metadata_badges_in_description");return D};
_.h(xR,_.w);_.S=xR.prototype;_.S.attached=function(){var D=this;_.iX().resolve(_.HW).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(C){D.set("videoPrimaryInfoRenderer.subtitle",C)})};
_.S.detached=function(){_.iX().resolve(_.HW).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.S.resetAnimationState=function(){this.shouldAnimate=!1};
_.S.updateDynamicMetadata=function(){if(this.JSC$23555_browserSupportsAnimation){if(!this.detailed){var D,C,X,c;var W=(D=this.videoPrimaryInfoRenderer)==null?void 0:(C=D.viewCount)==null?void 0:(X=C.videoViewCountRenderer)==null?void 0:(c=X.extraShortViewCount)==null?void 0:c.simpleText;var p,g,a,O;var P=(p=this.videoPrimaryInfoRenderer)==null?void 0:(g=p.viewCount)==null?void 0:(a=g.videoViewCountRenderer)==null?void 0:(O=a.shortViewCount)==null?void 0:O.simpleText}if(!P){var k,u,Q,B;W=(k=this.videoPrimaryInfoRenderer)==
null?void 0:(u=k.viewCount)==null?void 0:(Q=u.videoViewCountRenderer)==null?void 0:(B=Q.unlabeledViewCountValue)==null?void 0:B.simpleText;var K,L,t,Y;P=(K=this.videoPrimaryInfoRenderer)==null?void 0:(L=K.viewCount)==null?void 0:(t=L.videoViewCountRenderer)==null?void 0:(Y=t.viewCount)==null?void 0:Y.simpleText}var y,J,T;D=Number((y=this.videoPrimaryInfoRenderer)==null?void 0:(J=y.viewCount)==null?void 0:(T=J.videoViewCountRenderer)==null?void 0:T.originalViewCount);var H,q;y=(H=this.videoPrimaryInfoRenderer)==
null?void 0:(q=H.relativeDateText)==null?void 0:q.simpleText;var R;H=!((R=this.videoPrimaryInfoRenderer)==null||!R.relativeDateText);if(W&&P&&D&&(y||!H)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;R=P.split(new RegExp("("+W+")"));W=_.jV(R[0]);var ph;P={numberText:(ph=R[1])!=null?ph:"",numberValue:D,heightPx:2*XEd,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Om;ph=((Om=R[2])!=null?Om:"")+"  ";this.setViewCount(P,W,_.jV(ph));if(!this.detailed&&
H){W=y.split(/(\d+)/);Om=_.jV(W[0]);var xj;ph={numberText:(xj=W[1])!=null?xj:"",heightPx:2*XEd,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Bo;xj=((Bo=W[2])!=null?Bo:"")+"  ";this.setDateText(ph,Om,_.jV(xj))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.S.setViewCount=function(D,C,X){_.Mh(C)!==_.Mh(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=C);this.viewCountProps.numberText!==(D==null?void 0:D.numberText)&&(this.viewCountProps=D||cZz);_.Mh(X)!==_.Mh(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=X)};
_.S.setDateText=function(D,C,X){_.Mh(C)!==_.Mh(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=C);this.dateTextProps.numberText!==(D==null?void 0:D.numberText)&&(this.dateTextProps=D||cZz);_.Mh(X)!==_.Mh(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=X)};
_.S.onYtUpdateViewershipAction=function(D){this.videoPrimaryInfoRenderer&&(_.r(D,mNj).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.r(D,mNj).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.r(D,mNj).viewCount)))};
_.S.onYtUpdateDateTextAction=function(D){if(this.videoPrimaryInfoRenderer){D=_.r(D,_.LMB).dateText;this.shouldAnimate=!0;var C;((C=this.videoPrimaryInfoRenderer)==null?0:C.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",D):this.set("videoPrimaryInfoRenderer.dateText",D)}};
_.$a.Object.defineProperties(xR.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return kbf(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Mh(kbf(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Mh(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Mh(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Mh(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Mh(this.dateTextPostNumberText)].join("")}}});
xR.prototype.updateDynamicMetadata=xR.prototype.updateDynamicMetadata;xR.prototype.resetAnimationState=xR.prototype.resetAnimationState;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],xR.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],xR.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xR.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"detailed",void 0);_.V([_.n(),_.z("design:type",Object)],xR.prototype,"shouldAnimate",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"viewCountPreNumberText",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"viewCountProps",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"viewCountPostNumberText",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"dateTextPreNumberText",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"dateTextProps",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"dateTextPostNumberText",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xR.prototype,"metadataBadgesInDescription",void 0);_.V([_.e("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.z("design:type",Object),_.z("design:paramtypes",[])],xR.prototype,"infoText",null);
_.V([_.e("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.z("design:type",String),_.z("design:paramtypes",[])],xR.prototype,"descriptionInfoTooltipText",null);_.V([_.e("detailed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xR.prototype,"showDescriptionInfoTooltip",null);
_.V([_.e("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.z("design:type",String),_.z("design:paramtypes",[])],xR.prototype,"animatedViewCountAccessibilityLabel",null);_.V([_.e("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.z("design:type",String),_.z("design:paramtypes",[])],xR.prototype,"animatedDateTextAccessibilityLabel",null);
_.V([_.vr("videoPrimaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xR.prototype,"resetAnimationState",null);_.V([_.vr("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xR.prototype,"updateDynamicMetadata",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-watch-info-text"})],xR);
_.G(xR,"ytd-watch-info-text",function(){if(C5j!==void 0)return C5j;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return C5j=D},{mode:1});var oCN;var WUv="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var pEH=_.F(function(D){var C=D.data;var X=D.setTapCommand;_.Jw(function(){var c=_.Y7(C().onTap);X(c)},"CLm0Xe");
return _.A("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu}),_.A("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.A("span",null,function(){return C().simpleboxText})))},"fo");var Sp$=_.F(function(D){return _.A("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.A(_.v,{cond:function(){return _.r(D.data().avatar,_.yX)},
then:function(C){return _.A(_.Iu,{data:C,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.A("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.A(_.QG,{text:function(){return D.data().teaserText}})))},"go");var UCf=_.F(function(D){var C=D.data;var X=D.setTapCommand;_.Jw(function(){var c=_.Y7(C().onTap);X(c)},"qxjCCd");
return _.A("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.A(_.BX,{data:function(){return C().teasers}},{commentsEntryPointTeaserViewModel:Sp$}))},"io");var gC2=_.F(function(D){var C=D.data;var X=D.setTapCommand;_.Jw(function(){var c=_.Y7(C().onTap);X(c)},"CRZByf");
return _.A("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.A(_.QG,{text:function(){return C().messageText}}))},"ko");var aSv=_.F(function(D){var C=D.data;var X=D.setTapCommand;var c=D.isDisabled;_.Jw(function(){var W=(c==null?0:c())?void 0:_.Y7(C().onTap);X(W)},"GZxRqd");
return _.A("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.A(_.$_,{icon:function(){return C().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.A(_.v,{cond:function(){return C().image},
then:function(W){return _.A(_.M_,{data:W,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.A(_.QG,{text:function(){return C().text},
className:function(){return C().image||C().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.A(_.BX,{data:function(){return C().button}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:c==null?void 0:c()}}})}}))},"mo");var ISN=_.F(function(D){var C=D.data;var X=D.itemIndex;var c=D.selectedIndex;var W=D.indexUpdatedCallback;var p=D.observer;D=D.title;var g=_.aX("yt-carousel-item-view-model",function(u){p&&p().observe(u)}),a=function(u){X()===c()&&W(u)},O=_.uu(HCN),P=_.uu(_.p$Z),k=function(){var u,Q,B,K,L;
return((u=C())==null?void 0:u.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!O()||((Q=C())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((B=P())==null?void 0:B.includes("PAposts_by_host"))||((K=C())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((L=P())==null?void 0:L.includes("PAyouchat"))};
return _.A("yt-carousel-item-view-model",{el:g,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":D},_.A(_.BX,{data:function(){var u,Q;return(Q=(u=_.r(C().carouselItem,Rx$))==null?void 0:u.textCarousel)!=null?Q:C().carouselItem}},{textCarouselItemViewModel:function(u){return _.A(aSv,{data:u.data,
setTapCommand:a,isDisabled:k})},
commentTeaserCarouselItemViewModel:function(u){return _.A(UCf,{data:u.data,setTapCommand:a})},
commentInputBoxCarouselItemViewModel:function(u){return _.A(pEH,{data:u.data,setTapCommand:a})},
commentsEntryPointMessageViewModel:function(u){return _.A(gC2,{data:u.data,setTapCommand:a})}}))},"no");var OtJ=_.F(function(D){var C=D.numDots;var X=D.activeIndex;return _.A("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.A(_.Zh,{each:function(){return Array.from({length:C()})},
keyBy:"INDEX"},function(c,W){return _.A("div",{class:function(){var p={};return _.sN("ytCarouselDotsShapeDot",(p.ytCarouselDotsShapeDotActive=W===X(),p))}})}))},"oo");var AZv=_.F(function(D){var C=D.data;var X=D.handleCarouselNavigation;var c=D.numItems;var W=D.selectedIndex;var p=function(){return{disabled:W()===0}},g=function(){return{disabled:W()===c()-1}};
return _.A("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.A("div",null,_.A("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return C().title}),_.A(_.v,{cond:function(){return C().subtitle},
then:function(a){return _.A("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return C().subtitleAccessibilityText}},a)}})),_.A(_.v,{cond:function(){return c()>1},
then:function(){return _.A("div",{class:"ytCarouselTitleViewModelNavigation"},_.A(OtJ,{numDots:c,activeIndex:W}),_.A(_.v,{cond:function(){return C().previousButton},
then:function(a){return _.A(_.BX,{data:a},{buttonViewModel:function(O){return _.A(_.Ze,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return X(-1)},
buttonOverrides:p})}})}}),_.A(_.v,{cond:function(){return C().nextButton},
then:function(a){return _.A(_.BX,{data:a},{buttonViewModel:function(O){return _.A(_.Ze,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return X(1)},
buttonOverrides:g})}})}}))}}))},"po");_.CI(_.F(function(D){var C=D.data;var X,c=_.aX("yt-video-metadata-carousel-view-model"),W=_.aX("div",function(H){var q=function(){var R=H.offsetWidth*L(),ph=24*(L()-1);Q(R+ph)};
q();window.ResizeObserver&&(X=new ResizeObserver(q),X.observe(H))}),p=_.q6("HTML_DIR")==="rtl",g=!1,a=0,O=0;
D=_.U(_.Li(0,void 0,"M49TDf"));var P=D.next().value,k=D.next().value;D=_.U(_.Li(0,void 0,"zLIok"));var u=D.next().value,Q=D.next().value;D=_.U(_.Li(!1,void 0,"bhelhc"));var B=D.next().value,K=D.next().value,L=function(){var H,q,R;return(R=(H=C())==null?void 0:(q=H.carouselTitles)==null?void 0:q.length)!=null?R:0},t=function(){W.value&&W.value.scrollLeft!==a&&k((p?W.value.scrollLeft<a:W.value.scrollLeft>a)?Math.min(P()+1,L()-1):Math.max(P()-1,0))},Y;
window.IntersectionObserver&&(Y=new IntersectionObserver(function(H){H=_.U(H);for(var q=H.next();!q.done;q=H.next())if(q.value.isIntersecting){if(g){g=!1;break}t()}else k(O)},{threshold:.2}));
_.Jw(function(){if(W.value){var H=(p?-1:1)*(u()/L()+12)*(B()&&Y?O:P());typeof W.value.scrollTo==="function"?W.value.scrollTo({left:H,behavior:"smooth"}):W.value.scrollLeft=H;a=H;O=B()&&Y?O:P()}},"s9rbgc");
var y,J=function(H){y=H};
_.z3(function(){var H;(H=X)==null||H.disconnect();var q;(q=Y)==null||q.disconnect()});
var T=function(H){H=P()+H;H>=0&&H<L()&&(g=!0,k(H))};
return _.A("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:c,"on:click":_.I_(function(H){if(_.er(_.mY(H),c.value,["BUTTON".toString()])||!y)return!1;_.iX().resolve(_.uX).resolveCommand(y,{forceClickLogging:!0});return!1}),
"on:touchstart":_.I_(function(){K(!0);return!1}),
"on:touchend":_.I_(function(){Y||t();K(!1);return!1}),
hidden:function(){var H,q;return!((H=C())==null?0:(q=H.carouselItems)==null?0:q.length)}},_.A("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.A(_.v,{cond:function(){return C().carouselTitles},
then:function(H){return _.A(_.BX,{data:function(){return H()[B()&&Y?O:P()]}},{carouselTitleViewModel:function(q){return _.A(AZv,{data:q.data,
handleCarouselNavigation:T,numItems:L,selectedIndex:P})}})}})),_.A("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:W},_.A("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+u()+"px;"}},_.A(_.v,{cond:function(){return C().carouselItems},
then:function(H){return _.A(_.Zh,{each:H},function(q,R){return _.A(_.BX,{data:function(){return q}},{carouselItemViewModel:function(ph){return _.A(ISN,{data:ph.data,
itemIndex:R,selectedIndex:P,indexUpdatedCallback:J,observer:Y,title:function(){a:{var Om=R();var xj,Bo=(xj=C())==null?void 0:xj.carouselTitles;if(Bo&&(Om=Bo[Om])){var r5;Om=(r5=_.r(Om,dXv))==null?void 0:r5.title;break a}Om=void 0}return Om}})}})})}}))))},"ro"),"yt-video-metadata-carousel-view-model",{props:{data:_.Bm}});var P5U=_.b("web_action_buttons_update_owner_width")?32:12,Lv=function(){var D=_.w.apply(this,arguments)||this;D.isHovering=!1;D.enableColorSampling=_.b("web_delhi_colorful_sd");D.metadataBadgesInDescription=_.b("web_metadata_badges_in_description");D.descriptionCollapsed=!0;D.useFadedScrimDescription=_.b("kevlar_enable_faded_scrim_on_description");D.skinnyMode=!1;D.playlist=!1;D.isDark=document.documentElement.hasAttribute("dark");D.disableVideoOwnerOnTap=_.b("swatchie_video_owner_on_tap_ks");D.swatcherooDelayLoad=
_.b("swatcheroo_enable_ghost_cards");D.primaryMenuWidth=0;D.videoId="";D.titleHeadlineXs=_.b("web_watch_typography_title_headline_xs");D.titleHeadlineS=_.b("web_watch_typography_title_headline_s");D.titleHeadlineM=_.b("web_watch_typography_title_headline_m");D.titleHashtagBlackLinkified=_.b("web_title_hashtag_black_linkified");D.titleHashtagGreyLinkified=_.b("web_title_hashtag_grey_linkified");D.actionButtonsUpdateOwnerWidth=_.b("web_action_buttons_update_owner_width");D.shouldForceIconOnly=!1;D.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};D.isFullscreen=!1;D.isTheaterMode=!1;return D};
_.h(Lv,_.w);_.S=Lv.prototype;_.S.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.S.updateOwnerAndDescriptionPosition=function(){_.b("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Ei(this.bottomRowElement,this.ownerElement)):(_.Ei(this.bottomRowElement,this.descriptionElement),_.Ei(this.topRowElement,this.ownerElement)))};
_.S.titleOnTap=function(D){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||this.handleExpandDescriptionCommands()}};
_.S.videoOwnerOnTap=function(D){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.S.detached=function(){var D=this,C;return _.I(function(X){(C=D.resizeObserver)==null||C.disconnect();_.t_(X)})};
_.S.maybeAttachResizeObserver=function(){var D=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Al(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){D.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.S.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var D=this.hostElement.clientWidth,C=Math.max(this.largerItemWrap?400:350,D/2-P5U);_.b("web_action_buttons_update_owner_width")&&(C=this.ownerElement.clientWidth+P5U);this.actionsOnSeparateLine=this.primaryMenuWidth>D-C?!0:!1}};
_.S.stripAttributedDescription=function(D){return{content:D.content.replace(/[\r\n]{2,}/g,"\n")}};
_.S.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.b("web_modern_buttons"),forceIconButton:!_.b("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:_.b("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"}}}};
_.S.videoPrimaryInfoRendererChanged=function(){var D;if((D=this.videoPrimaryInfoRenderer)==null?0:D.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.S.videoSecondaryInfoRendererChanged=function(){var D,C;(D=this.descriptionInlineExpander)==null||(C=D.collapse)==null||C.call(D);this.descriptionExpandClientVe=_.Ia(110509);this.descriptionCollapseClientVe=_.Ia(110510);D=_.LN();C=_.xr();D&&C&&(_.b("combine_ve_grafts")?(_.Vc(_.iO(),this.descriptionExpandClientVe,C),_.Vc(_.iO(),this.descriptionCollapseClientVe,C)):_.ZS(D,C,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.S.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.S.updateTopLevelIconsOnly=function(){var D=this;_.b("top_level_update_killswitch")||this.menu&&_.qX.addLowPriorityJob(function(){D.menu.topLevelIconsOnly=D.skinnyMode},_.BK("swathceroo_delay_flexible_menu_update",100))};
_.S.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.b("web_action_buttons_minimize_subscribe")};
_.S.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.S.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.S.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.S.onYtTextInlineExpanderExpandedChanged=function(){if(!_.b("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var D,C;(C=(D=this.structuredDescriptionContentRendererElement).resize)==null||C.call(D)}};
_.S.onRenderStamperFinished=function(D){(D==null?void 0:D.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.S.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.S.onYtExpanderLessTapped=function(){var D,C=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showLessCommand;C&&this.ytComponentBehavior.resolveCommand(C)};
_.S.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.S.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.S.onDescriptionClick=function(D){if(!_.d$(_.Mz(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.b("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.S.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.S.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.S.logCollapseClick=function(){var D=_.LN();D&&this.descriptionCollapseClientVe&&_.HE(D,this.descriptionCollapseClientVe)};
_.S.logExpandClick=function(){var D=_.LN();D&&this.descriptionExpandClientVe&&_.HE(D,this.descriptionExpandClientVe)};
_.S.collapseDescription=function(){this.descriptionCollapsed=!0};
_.S.scrollToTopOfContainer=function(){_.DS(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.S.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.S.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.S.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.S.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var D,C;(C=(D=this.descriptionInlineExpander).resize)==null||C.call(D)}else _.fQ(new _.Zf("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.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.S.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var D,C,X,c,W=_.b("web_action_buttons_update_owner_width")?(X=(D=_.SY(this.menu).querySelector("#button-shape"))==null?void 0:D.clientWidth)!=null?X:0:(c=(C=_.SY(this.menu).querySelector("#button"))==null?void 0:C.clientWidth)!=null?c:0,p,g;D=((g=(p=_.SY(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:p.clientWidth)!=null?g:0)+8+W;var a,O;W=(O=(a=_.SY(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:a.children.length)!=null?O:2;D<=8*W||(this.primaryMenuWidth=D)}};
_.S.onYtUpdateTitleAction=function(D){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.r(D,sij).title)};
_.S.onYtUpdateDescriptionAction=function(D){if(D=_.r(D,_.HuN)){var C,X=!((C=this.videoSecondaryInfoRenderer)==null||!C.attributedDescription);D.isEmpty||!D.description&&!D.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):D.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",D.attributedDescription):D.description&&(X?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.e6(D.description)):this.set("videoSecondaryInfoRenderer.description",D.description))}};
_.S.onYtDarkModeToggledAction=function(D){this.isDark=D};
_.S.registerPanel=function(){if(!_.b("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var D=_.b("web_watch_imax_theater_mode")&&this.isTheaterMode;D=_.b("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D;var C=_.iX().resolve(_.p6);C&&!D&&C.registerPanel("engagement-panel-structured-description",this)}};
_.S.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.S.parseColorSamplingData=function(){var D;if(_.b("web_delhi_colorful_sd")&&((D=this.structuredDescriptionContentRenderer)==null?0:D.items)&&(D=this.structuredDescriptionContentRenderer.items.find(function(W){return!!_.r(W,tH)}))){var C,X;
this.hoverColor={lightTheme:(C=_.r(D,tH))==null?void 0:C.lightThemeColorPalette,darkTheme:(X=_.r(D,tH))==null?void 0:X.darkThemeColorPalette};var c;this.hoverText=(c=_.r(D,tH))==null?void 0:c.colorSampledDescriptionBodyText}};
_.S.updateHoverColor=function(){if(_.b("web_delhi_colorful_sd")){var D=this.hoverColor,C={},X;D=(X=this.isDark?D==null?void 0:D.darkTheme:D==null?void 0:D.lightTheme)!=null?X:{};X=_.U(WUv);for(var c=X.next();!c.done;c=X.next()){c=c.value;var W=D[c];C["--yt-saturated-"+_.gl(c)]=W?_.e_(W):"initial"}_.Os(this.hostElement,C)}};
_.S.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.S.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.S.showPanel=function(D){this.expandDescription();var C=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;C.resize();var X,c=D==null?void 0:(X=D.sectionListEngagementPanelExtras)==null?void 0:X.scrollToItemSectionIdentifier;c?_.qX.addJob(function(){C==null||C.scrollToSection(c)},8):this.scrollToTopOfContainer()};
_.S.isVisible=function(){return!this.descriptionCollapsed};
_.S.getReloadContinuation=function(){};
_.S.hidePanel=function(){};
_.S.updatePanel=function(){};
_.$a.Object.defineProperties(Lv.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var D;return _.b("web_delhi_colorful_sd")&&(D=this.structuredDescriptionContentRenderer)!=null&&D.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(C){return!_.r(C,tH)&&!_.r(C,tev)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.structuredDescriptionContentRendererComputed)!=null&&D.items){var C;D=_.U((C=this.structuredDescriptionContentRendererComputed)==null?void 0:C.items);for(C=D.next();!C.done;C=D.next())if(C=_.r(C.value,_.n3g))return C}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoPrimaryInfoRenderer)==null?0:D.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!!((D=this.videoSecondaryInfoRenderer)==null?0:(C=D.owner)==null?0:(X=C.videoOwnerRenderer)==null?0:X.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var D,C;if((D=this.videoSecondaryInfoRenderer)==null?0:(C=D.attributedDescription)==null?0:C.content){var X,c;return(c=this.stripAttributedDescription((X=this.videoSecondaryInfoRenderer)==null?void 0:X.attributedDescription))!=null?c:{runs:[]}}}if(_.b("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var W,p,g,a;return(a=(g=(W=this.videoSecondaryInfoRenderer)==
null?void 0:W.description)!=null?g:(p=this.videoSecondaryInfoRenderer)==null?void 0:p.attributedDescription)!=null?a:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.headerRuns)!=null?C:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentsEntryPointHeaderRenderer)==null||!D.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoMetadataCarousel)==null||!D.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.BK("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var D,C,X=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(C=D.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(X&&X.rows&&X.collapsedItemCount!==void 0&&!(X.rows.length<=X.collapsedItemCount))return X.rows=X.rows.slice(X.collapsedItemCount),X.collapsedItemCount=0,X}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var D,C,X=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(C=D.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(X&&X.rows&&X.collapsedItemCount!==void 0)return X.rows=X.rows.slice(0,X.collapsedItemCount),X.collapsedItemCount=X.rows.length,X}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!((D=this.structuredDescriptionContentRendererComputed)==null?0:(C=D.items)==null?0:C.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var D;return(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.videoSecondaryInfoRenderer)==null?0:(C=D.owner)==null?0:(X=C.videoOwnerRenderer)==null?0:X.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return!!((D=this.videoPrimaryInfoRenderer)==null?0:(C=D.videoActions)==null?0:(X=C.menuRenderer)==null?0:(c=X.flexibleItems)==null?0:c.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Jv(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Jv(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var D=this;if(_.b("web_title_hashtag_grey_delinkified")){var C,X=_.ZI.unsafeClone((C=this.videoPrimaryInfoRenderer)==null?void 0:C.title);(C=X==null?void 0:X.runs)&&C.forEach(function(c){if(c==null?0:c.navigationEndpoint)c.textColor=4284506208,D.isDark&&(c.textColor=4289374890)});
return X}return(X=this.videoPrimaryInfoRenderer)==null?void 0:X.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.b("web_title_hashtag_black_delinkified")||_.b("web_title_hashtag_grey_delinkified")}}});
Lv.prototype.updateHoverColor=Lv.prototype.updateHoverColor;Lv.prototype.parseColorSamplingData=Lv.prototype.parseColorSamplingData;Lv.prototype.resetDescriptionState=Lv.prototype.resetDescriptionState;Lv.prototype.registerPanel=Lv.prototype.registerPanel;Lv.prototype.onYtExpanderLessTapped=Lv.prototype.onYtExpanderLessTapped;Lv.prototype.onYtExpanderMoreTapped=Lv.prototype.onYtExpanderMoreTapped;Lv.prototype.onRenderStamperFinished=Lv.prototype.onRenderStamperFinished;
Lv.prototype.onYtTextInlineExpanderExpandedChanged=Lv.prototype.onYtTextInlineExpanderExpandedChanged;Lv.prototype.onYtTextInlineExpanderCollapseClicked=Lv.prototype.onYtTextInlineExpanderCollapseClicked;Lv.prototype.onYtTextInlineExpanderExpandClicked=Lv.prototype.onYtTextInlineExpanderExpandClicked;Lv.prototype.moveActionsElement=Lv.prototype.moveActionsElement;Lv.prototype.updateShouldForceIconOnly=Lv.prototype.updateShouldForceIconOnly;Lv.prototype.updateTopLevelIconsOnly=Lv.prototype.updateTopLevelIconsOnly;
Lv.prototype.structuredDescriptionContentRendererChanged=Lv.prototype.structuredDescriptionContentRendererChanged;Lv.prototype.videoSecondaryInfoRendererChanged=Lv.prototype.videoSecondaryInfoRendererChanged;Lv.prototype.videoPrimaryInfoRendererChanged=Lv.prototype.videoPrimaryInfoRendererChanged;Lv.prototype.maybeUpdateActionsOnSeparateLine=Lv.prototype.maybeUpdateActionsOnSeparateLine;Lv.prototype.updateOwnerAndDescriptionPosition=Lv.prototype.updateOwnerAndDescriptionPosition;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Lv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Lv.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],Lv.prototype,"ytdReduxBehavior",void 0);_.V([_.kn("#above-the-fold"),_.z("design:type",HTMLElement)],Lv.prototype,"aboveTheFoldContainer",void 0);_.V([_.kn("#menu ytd-menu-renderer"),_.z("design:type",Object)],Lv.prototype,"menu",void 0);_.V([_.kn("#description-inline-expander"),_.z("design:type",Object)],Lv.prototype,"descriptionInlineExpander",void 0);
_.V([_.kn("#faded-structured-description"),_.z("design:type",Object)],Lv.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.V([_.kn("#structured-description"),_.z("design:type",Object)],Lv.prototype,"structuredDescriptionContentRendererElement",void 0);_.V([_.kn("#title"),_.z("design:type",HTMLElement)],Lv.prototype,"titleElement",void 0);_.V([_.kn("#description"),_.z("design:type",HTMLElement)],Lv.prototype,"descriptionElement",void 0);
_.V([_.kn("#description-interaction"),_.z("design:type",Object)],Lv.prototype,"descriptionInteraction",void 0);_.V([_.kn("#owner"),_.z("design:type",HTMLElement)],Lv.prototype,"ownerElement",void 0);_.V([_.kn("#top-row"),_.z("design:type",HTMLElement)],Lv.prototype,"topRowElement",void 0);_.V([_.kn("#bottom-row"),_.z("design:type",HTMLElement)],Lv.prototype,"bottomRowElement",void 0);_.V([_.kn("#actions"),_.z("design:type",HTMLElement)],Lv.prototype,"actionsElement",void 0);
_.V([_.kn("#bottom-actions"),_.z("design:type",HTMLElement)],Lv.prototype,"bottomActionsElement",void 0);_.V([_.kn("#ytd-watch-info-text"),_.z("design:type",Object)],Lv.prototype,"watchInfoTextElement",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"videoSecondaryInfoRenderer",void 0);
_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"videoMetadataCarousel",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.e("structuredDescriptionContentRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"structuredDescriptionContentRendererComputed",null);
_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"videoSummary",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"merchShelf",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"infoPanelBelowMetadata",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"hoverColor",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"hoverText",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"isHovering",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"enableColorSampling",void 0);_.V([_.e("structuredDescriptionContentRendererComputed"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"productShelf",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"metadataBadgesInDescription",void 0);_.V([_.e("videoPrimaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"shouldHideBadges",null);
_.V([_.e("productShelf","descriptionCollapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"shouldShowProductShelf",null);_.V([_.n(),_.z("design:type",Boolean)],Lv.prototype,"isWatchFlexy",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"descriptionCollapsed",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lv.prototype,"useFadedScrimDescription",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"skinnyMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("videoSecondaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"largerItemWrap",null);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"playlist",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"clarifyBox",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"playerAds",void 0);
_.V([_.n(),_.z("design:type",Boolean)],Lv.prototype,"isDark",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lv.prototype,"actionsOnSeparateLine",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"disableVideoOwnerOnTap",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"swatcherooDelayLoad",void 0);_.V([_.n(),_.z("design:type",Boolean)],Lv.prototype,"suppressTopLevelMetadataRows",void 0);
_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"primaryMenuWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"videoId",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"titleHeadlineXs",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"titleHeadlineS",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"titleHeadlineM",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"titleHashtagBlackLinkified",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"titleHashtagGreyLinkified",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.V([_.n(),_.z("design:type",Object)],Lv.prototype,"shouldForceIconOnly",void 0);
_.V([_.bH("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"updateOwnerAndDescriptionPosition",null);_.V([_.bH("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.V([_.e("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"descriptionText",null);_.V([_.e("videoSecondaryInfoRenderer.headerRuns"),_.z("design:type",Array),_.z("design:paramtypes",[])],Lv.prototype,"headerRuns",null);
_.V([_.n({value:!1}),_.e("commentsEntryPointHeaderRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"hasTeaser",null);_.V([_.n({value:!1,reflectToAttribute:!0}),_.e("videoMetadataCarousel"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"hasTeaserCarousel",null);_.V([_.n({value:3}),_.e("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"descriptionMaxLines",null);
_.V([_.e("videoSecondaryInfoRenderer.metadataRowContainer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"collapsibleMetadataRows",null);_.V([_.e("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"alwaysVisibleMetadataRows",null);
_.V([_.e("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"hasInlineStructuredDescription",null);_.V([_.e("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"showInlineStructuredDescription",null);
_.V([_.e("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"descriptionExpandCommand",null);_.V([_.e("videoSecondaryInfoRenderer.owner"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"videoOwnerCommand",null);_.V([_.n({reflectToAttribute:!0}),_.e("videoPrimaryInfoRenderer.videoActions"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"flexMenuEnabled",null);
_.V([_.n({selector:_.Nn,reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.tl,reflectToAttribute:!0}),_.z("design:type",Object)],Lv.prototype,"isTheaterMode",void 0);_.V([_.e("descriptionText","useFadedScrimDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"showAttributedStringDescription",null);
_.V([_.e("descriptionText","useFadedScrimDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"showFormattedStringDescription",null);_.V([_.e("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lv.prototype,"showFadedStructuredDescription",null);
_.V([_.bH("videoPrimaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"videoPrimaryInfoRendererChanged",null);_.V([_.e("videoPrimaryInfoRenderer.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"videoTitle",null);_.V([_.e("videoPrimaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lv.prototype,"noEndpoints",null);
_.V([_.bH("videoSecondaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"videoSecondaryInfoRendererChanged",null);_.V([_.vr("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"structuredDescriptionContentRendererChanged",null);
_.V([_.vr("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"updateTopLevelIconsOnly",null);_.V([_.vr("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"updateShouldForceIconOnly",null);_.V([_.vr("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"moveActionsElement",null);
_.V([_.$n("yt-text-inline-expander-expand-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"onYtTextInlineExpanderExpandClicked",null);_.V([_.$n("yt-text-inline-expander-collapse-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.V([_.$n("yt-text-inline-expander-expanded-changed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Lv.prototype,"onRenderStamperFinished",null);
_.V([_.$n("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"onYtExpanderMoreTapped",null);_.V([_.$n("yt-expander-less-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"onYtExpanderLessTapped",null);
_.V([_.vr("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"registerPanel",null);_.V([_.vr("videoSecondaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"resetDescriptionState",null);
_.V([_.vr("structuredDescriptionContentRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"parseColorSamplingData",null);_.V([_.vr("hoverColor","isDark"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lv.prototype,"updateHoverColor",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Lv);
_.G(Lv,"ytd-watch-metadata",function(){if(oCN!==void 0)return oCN;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return oCN=D},{mode:2});_.btz=function(D){_.nF.call(this);this.JSC$23580_watchApi=D;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;$C2(this);vCz(this);itU(this);koj(this);u_f(this);Q7N(this);Bez(this)};
_.h(_.btz,_.nF);var itU=function(D){var C=function(){_.b("kevlar_is_pupi_enabled")||sh(D)};
D.JSC$23580_watchApi.getRoot().addEventListener("yt-player-updated",C);D.addOnDisposeCallback(function(){D.JSC$23580_watchApi.getRoot().removeEventListener("yt-player-updated",C)})},u_f=function(D){if(_.b("kevlar_endscreen_auto_theater_mode")){var C=D.JSC$23580_watchApi.subscribeToActiveChanged(function(){rZm(D)},!1);
D.addOnDisposeCallback(C)}},$C2=function(D){var C,X,c,W,p;
_.I(function(g){if(g.nextAddress==1)return g.yield(D.JSC$23580_watchApi.playerApi,2);C=g.yieldResult;X=function(a){a=!!a;KUH(D)&&(a=a?2:1,_.em.getInstance().setState(a,!0,!1))};
c=function(a){a&&_.TTj(_.fe().getState())&&(_.DS(D.JSC$23580_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),D.temporaryTheaterMode=!0)};
W=function(a){_.b("kevlar_player_update_autonav_on_new_data")&&a.type==="newdata"&&(_.b("kevlar_is_pupi_enabled")||sh(D))};
p=function(a){D.onPlayerStateChange(a)};
_.b("kevlar_endscreen_auto_theater_mode")&&C.addEventListener("onAutonavCancelled",c);C.addEventListener("onAutonavChangeRequest",X);C.addEventListener("onVideoDataChange",W);C.addEventListener("onStateChange",p);D.addOnDisposeCallback(function(){C.removeEventListener("onAutonavChangeRequest",X);C.removeEventListener("onVideoDataChange",W);C.removeEventListener("onStateChange",p);_.b("kevlar_endscreen_auto_theater_mode")&&C.removeEventListener("onAutonavCancelled",c)});
_.t_(g)})},vCz=function(D){D.JSC$23580_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){D.autonavCancelledBySignal=!0;
_.b("kevlar_is_pupi_enabled")||sh(D)});
D.JSC$23580_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(C,X,c){X&&sh(D,c)});
D.JSC$23580_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){KUH(D)&&_.em.getInstance().setState(2,!0,!0)});
D.JSC$23580_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){KUH(D)&&_.em.getInstance().setState(1,!0,!0)});
D.addOnDisposeCallback(function(){D.JSC$23580_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");D.JSC$23580_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");D.JSC$23580_watchApi.unregisterActionHandler("yt-enable-autoplay-command");D.JSC$23580_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},koj=function(D){var C=D.JSC$23580_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Bez(D)}),X=D.JSC$23580_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Q7N(D)});
D.addOnDisposeCallback(function(){D.JSC$23580_watchApi.unsubscribeByKey(C);D.JSC$23580_watchApi.unsubscribeByKey(X)})},Bez=function(D){D.autonavCancelledBySignal=!1;
_.b("kevlar_is_pupi_enabled")||sh(D)},Q7N=function(D){var C=D.JSC$23580_watchApi.getWatchNextResponse(),X,c;
var W=(C=(c=_.r(C==null?void 0:(W=C.playerOverlays)==null?void 0:(X=W.playerOverlayRenderer)==null?void 0:X.autonavToggle,_.MvJ))==null?void 0:c.enabled)?2:1;_.b("kevlar_is_pupi_enabled")?_.em.getInstance().setState(W,!1,!1):sh(D);_.b("web_persist_server_autonav_state_on_client")&&typeof C==="boolean"&&_.PJ3(W===2)},KUH=function(D){if(D.autonavCancelledBySignal)return!1;
var C,X,c,W;return!!((C=D.JSC$23580_watchApi.getWatchNextResponse())==null?0:(X=C.contents)==null?0:(c=X.twoColumnWatchNextResults)==null?0:(W=c.autoplay)==null?0:W.autoplay)};
_.btz.prototype.onPlayerStateChange=function(D){if(D===0){D=!_.em.getInstance().isAutoplaySetExplicitly();var C=this.JSC$23580_watchApi.getWatchNextResponse(),X,c,W,p;C=_.r(C==null?void 0:(X=C.contents)==null?void 0:(c=X.twoColumnWatchNextResults)==null?void 0:(W=c.autoplay)==null?void 0:(p=W.autoplay)==null?void 0:p.autoplayExplicitChoiceDialogRenderer,_.A$f);KUH(this)&&D&&C&&_.I3.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:C},popupType:"DIALOG"}})}else rZm(this)};
var rZm=function(D){D.temporaryTheaterMode&&(D.temporaryTheaterMode=!1,_.DS(D.JSC$23580_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},sh=function(D,C){C=C===void 0?!1:C;
var X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23580_watchApi.playerApi,2);X=c.yieldResult;KUH(D)?X.setAutonavState(_.em.getInstance().getState(),C):X.setAutonavState(1,C);_.t_(c)})};var hkN={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.LUj=function(D){_.nF.call(this);var C=this;this.JSC$23585_watchApi=D;var X=this.JSC$23585_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){xCU(C)});
this.addOnDisposeCallback(function(){C.JSC$23585_watchApi.unsubscribeByKey(X)});
xCU(this)};
_.h(_.LUj,_.nF);var xCU=function(D){var C=D.JSC$23585_watchApi.getPlayerResponse(),X=D.JSC$23585_watchApi.getWatchNextResponse();if(!_.ThW(C==null?void 0:C.playabilityStatus,X==null?void 0:X.playerOverlays)){var c;var W=C==null?void 0:(c=C.playabilityStatus)==null?void 0:c.errorScreen}D.JSC$23585_watchApi.provideRenderingData("ERROR_SCREEN",W)};var s7j=_.F(function(D){return _.A("yt-player-grid-renderer",{class:_.g$("ytPlayerGridRendererHost",D.className)},_.A(_.BX,{data:D.data},{lockupViewModel:function(C){return _.A(_.jx,{data:C.data,useOverlayStyling:!0})}}))},"so");var mCJ=_.F(function(D){var C=D.data;D=_.b("web_watch_video_details_hide_subtitle");var X=_.b("web_watch_video_details_single_line_title"),c=_.I_(function(){var a=C().onTap;a&&_.iX().resolve(_.uX).resolveCommand(a)}),W={},p={},g={};
return _.A("yt-player-overlay-video-details-renderer",{class:_.g$("ytPlayerOverlayVideoDetailsRendererHost",(W.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.b("web_watch_video_details_transparent_background"),W)),"on:click":c,role:"button"},_.A("h2",{class:_.g$("ytPlayerOverlayVideoDetailsRendererTitle",(p.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return X},p))},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:_.g$("ytPlayerOverlayVideoDetailsRendererSubtitle",
(g.ytPlayerOverlayVideoDetailsRendererHideSubtitle=D,g))},_.A(_.QG,{text:function(){return C().subtitle}})))},"to");var mD={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},ekf=_.F(function(D){var C=D.data;var X=_.uu(_.Nn),c=_.b("web_watch_action_bar_resize_buttons"),W=_.b("web_watch_video_action_dsdvb"),p=_.b("delhi_modern_web_player_icons")&&!_.b("enable_web_delhi_icons");D=_.b("delhi_modern_web_player_disable_frosted_glass");var g=_.b("delhi_modern_web_player_compact_video_actions_controls"),
a=_.b("web_player_quick_action_buttons_icon_only"),O=function(){var k=c&&!X(),u={};g?u.size="S":k&&(u.size="M");a&&(u.iconPosition="icon-only");if(Object.keys(u).length!==0)return u},P={};
return _.A("yt-player-quick-action-buttons",{class:_.g$("ytPlayerQuickActionButtonsHost",(P.ytPlayerQuickActionButtonsHostCompactControls=function(){return!X()||g},P.ytPlayerQuickActionButtonsHostDisableBackdropFilter=D,P))},_.A(_.Zh,{each:function(){var k=C();
if(p){k=JSON.parse(JSON.stringify(k));for(var u=_.U(k),Q=u.next();!Q.done;Q=u.next()){var B=Q.value,K=void 0;Q=_.r((K=_.r(B,_.Fx))==null?void 0:K.toggleButtonViewModel,_.us);var L=void 0;K=_.r((L=_.r(B,_.Zt))==null?void 0:L.toggleButtonViewModel,_.us);L=_.r(B,_.is);B=_.r(B,_.us);if(Q)K=_.r(Q.defaultButtonViewModel,_.is),Q=_.r(Q.toggledButtonViewModel,_.is),K&&K.iconName&&(K.iconName=mD[K.iconName]),Q&&Q.iconName&&(Q.iconName=mD[Q.iconName]);else if(K)Q=_.r(K.defaultButtonViewModel,_.is),K=_.r(K.toggledButtonViewModel,
_.is),Q&&Q.iconName&&(Q.iconName=mD[Q.iconName]),K&&K.iconName&&(K.iconName=mD[K.iconName]);else if(L)L.iconName&&(L.iconName=mD[L.iconName]);else if(B){Q=_.r(B.defaultButtonViewModel,_.is);K=_.r(B.toggledButtonViewModel,_.is);B=void 0;if((B=Q)==null?0:B.iconName)Q.iconName=mD[Q.iconName];Q=void 0;if((Q=K)==null?0:Q.iconName)K.iconName=mD[K.iconName]}}}W&&(k=usz(k));return k}},function(k){return _.A(_.BX,{data:function(){return k}},{buttonViewModel:function(u){return _.A(_.Ze,{data:u.data,
buttonOverrides:O})},
likeButtonViewModel:function(u){return _.A(_.$d,{data:u.data,buttonShapeOverrideables:O})},
dislikeButtonViewModel:function(u){return _.A(_.PO,{data:u.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(u){return _.A(_.o1,{data:u.data,buttonShapeOverrides:O})}})}))},"uo");_.tyN=function(D){_.nF.call(this);var C=this;this.JSC$23591_watchApi=D;D=_.U(_.Li({},void 0,"OB6c5e"));this.quickActionsViewModel=D.next().value;this.setQuickActionsViewModel=D.next().value;D=_.U(_.Li({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=D.next().value;this.setPlayerOverlayVideoDetailsRenderer=D.next().value;D=_.U(_.Li([],void 0,"A7tRk"));this.lockupViewModels=D.next().value;this.setLockupViewModels=D.next().value;var X=this.JSC$23591_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ECU(C)});
this.addOnDisposeCallback(function(){C.JSC$23591_watchApi.unsubscribeByKey(X)});
ECU(this)};
_.h(_.tyN,_.nF);
var ECU=function(D){var C,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y;_.I(function(y){if(y.nextAddress==1)return y.yield(D.JSC$23591_watchApi.playerApi,2);C=y.yieldResult;X=D.JSC$23591_watchApi.getWatchNextResponse();p=(c=X)==null?void 0:(W=c.playerOverlays)==null?void 0:W.playerOverlayRenderer;a=_.r((g=p)==null?void 0:g.fullscreenQuickActionsBar,_.MOf);(P=(O=D).setQuickActionsViewModel)==null||P.call(O,a||{});a&&NeN(D,C);Q=(k=p)==null?void 0:(u=k.videoDetails)==null?void 0:u.playerOverlayVideoDetailsRenderer;(K=
(B=D).setPlayerOverlayVideoDetailsRenderer)==null||K.call(B,Q||{});Q&&YpB(D,C);if(_.b("web_player_use_external_grid_component")){var J=[],T,H,q,R,ph=X==null?void 0:(T=X.contents)==null?void 0:(H=T.twoColumnWatchNextResults)==null?void 0:(q=H.secondaryResults)==null?void 0:(R=q.secondaryResults)==null?void 0:R.results;if(ph)for(T=_.U(ph),H=T.next();!H.done;H=T.next())if(H=H.value,H.lockupViewModel)J.push(H);else if(q=void 0,(q=H.itemSectionRenderer)==null?0:q.contents)for(H=_.U(H.itemSectionRenderer.contents),
q=H.next();!q.done;q=H.next())q=q.value,q.lockupViewModel&&J.push(q);L=J;(Y=(t=D).setLockupViewModels)==null||Y.call(t,L||[]);yZm(D,C)}_.t_(y)})},NeN=function(D,C){if(!D.quickActionButtonsContainer)if(C.setFullscreenQuickActions){D.quickActionButtonsContainer=document.createElement("div");
C.setFullscreenQuickActions(D.quickActionButtonsContainer);var X=function(){return D.quickActionsViewModel().quickActionButtons||[]},c=_.T4(D.quickActionButtonsContainer,function(){return _.A(ekf,{data:X})},"vo");
D.addOnDisposeCallback(function(){C.setFullscreenQuickActions(void 0);c()})}else _.fQ(new _.Zf("setFullscreenQuickActions not defined",{playerApi:Object.keys(C),
isReady:C.isReady(),appState:C.getAppState()}))},YpB=function(D,C){if(!D.playerOverlayVideoDetailsRendererContainer)if(C.setPlayerOverlayVideoDetailsRenderer){D.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
C.setPlayerOverlayVideoDetailsRenderer(D.playerOverlayVideoDetailsRendererContainer);var X=_.T4(D.playerOverlayVideoDetailsRendererContainer,function(){return _.A(mCJ,{data:D.playerOverlayVideoDetailsRenderer})},"wo");
D.addOnDisposeCallback(function(){C.setPlayerOverlayVideoDetailsRenderer(void 0);X()})}else _.fQ(new _.Zf("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(C),
isReady:C.isReady(),appState:C.getAppState()}))},yZm=function(D,C){if(!D.gridRendererContainer)if(C.setFullscreenGrid){D.gridRendererContainer=document.createElement("div");
C.setFullscreenGrid(D.gridRendererContainer);var X=_.T4(D.gridRendererContainer,function(){return _.A(s7j,{data:D.lockupViewModels})},"xo");
D.addOnDisposeCallback(function(){C.setFullscreenGrid(void 0);X()})}else _.fQ(new _.Zf("setFullscreenGrid not defined",{playerApi:Object.keys(C),
isReady:C.isReady(),appState:C.getAppState()}))};_.eE=function(D){_.nF.call(this);var C=this;this.JSC$23597_watchApi=D;this.JSC$23597_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;D=_.dX(_.fe(),_.Nn,function(X){C.onFullscreenChanged(X)});
this.addOnDisposeCallback(D);D=_.dX(_.fe(),_.si,function(X){C.onWatchScroll(X)});
this.addOnDisposeCallback(D);_.b("kevlar_watch_while_v2")&&(D=_.dX(_.fe(),_.E1,function(X){nCB(C,X)}),this.addOnDisposeCallback(D));
wEv(this);FU$(this);Ztv();this.onWatchScroll(_.si(_.fe().getState()));_.dq("START_IN_FULL_WINDOW_MODE")&&this.JSC$23597_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.h(_.eE,_.nF);var wEv=function(D){D.JSC$23597_watchApi.registerActionHandler("yt-fullscreen-change-action",function(C){var X=D.JSC$23597_watchApi.isActive();C&&!X||_.fe().dispatch(_.oI({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!C}}))});
D.addOnDisposeCallback(function(){D.JSC$23597_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},FU$=function(D){var C,X;
_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23597_watchApi.playerApi,2);C=c.yieldResult;X=function(){D.onFullerscreenEduClicked()};
C.addEventListener("onFullerscreenEduClicked",X);D.addOnDisposeCallback(function(){C.removeEventListener("onFullerscreenEduClicked",X)});
_.t_(c)})};
_.eE.prototype.onFullscreenChanged=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return C.isFullscreen=!!_.qF(),c.yield(C.JSC$23597_watchApi.playerApi,2);X=c.yieldResult;C.JSC$23597_miniplayerActive||X.setFauxFullscreen(C.isFullscreen);if(D&&(C.JSC$23597_watchApi.focusOnPlayer(),!C.fullerscreenEduButtonShownThisPlayback)){C.fullerscreenEduButtonShownThisPlayback=!0;var W=_.KH("yt-fullerscreen-edu-button-shown-count")||0;_.rL("yt-fullerscreen-edu-button-shown-count",W+1,31536E3);
C.updateFullerscreenEduButtonSubtleModeState()}_.t_(c)})};
var nCB=function(D,C){var X;_.I(function(c){if(c.nextAddress==1)return D.JSC$23597_miniplayerActive=C,c.yield(D.JSC$23597_watchApi.playerApi,2);X=c.yieldResult;X.setFauxFullscreen(!D.JSC$23597_miniplayerActive&&D.isFullscreen);_.t_(c)})};
_.eE.prototype.onWatchScroll=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1)return _.b("external_fullscreen_with_edu")?W.yield(C.JSC$23597_watchApi.playerApi,2):W.return();X=W.yieldResult;c=D<=0;C.shouldShowFullerscreenEdu!==c&&(C.shouldShowFullerscreenEdu=c,X.updateFullerscreenEduButtonVisibility(!C.shouldShowFullerscreenEdu));_.t_(W)})};
_.eE.prototype.onFullerscreenEduClicked=function(){this.JSC$23597_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var D=_.KH("yt-fullerscreen-edu-button-click-count")||0;_.rL("yt-fullerscreen-edu-button-click-count",D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.eE.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var D=this,C,X,c,W,p,g;return _.I(function(a){if(a.nextAddress==1)return C=_.KH("yt-fullerscreen-edu-button-click-count")||0,X=_.KH("yt-fullerscreen-edu-button-shown-count")||0,c=_.BK("external_fullscreen_button_click_threshold"),W=_.BK("external_fullscreen_button_shown_threshold"),p=C>=c||X>=W,a.yield(D.JSC$23597_watchApi.playerApi,2);g=a.yieldResult;g.updateFullerscreenEduButtonSubtleModeState(p);_.t_(a)})};
_.eE.prototype.disposeInternal=function(){_.nF.prototype.disposeInternal.call(this);var D=_.qF();_.b("kevlar_exit_fullscreen_leaving_watch")&&D&&_.fN(D)};
var Ztv=function(){if(_.b("web_watch_add_viewport_meta_tag")){var D=document.querySelector("meta[name=viewport]"),C=document.head;C&&!D&&(D=document.createElement("meta"),D.name="viewport",D.content="width=device-width, initial-scale=1.0, viewport-fit=cover",C.appendChild(D))}};_.VyD=function(D){_.nF.call(this);var C=this;this.JSC$23600_watchApi=D;this.jobId=0;this.pendingRequestId=void 0;var X=this.JSC$23600_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Gov(C)});
this.addOnDisposeCallback(function(){C.JSC$23600_watchApi.unsubscribeByKey(X)});
Gov(this)};
_.h(_.VyD,_.nF);var Ted=function(D){_.qX.cancelJob(D.jobId);D.pendingRequestId=void 0},Gov=function(D){Ted(D);
var C=QpD(D.JSC$23600_watchApi.getWatchNextResponse());if(C){var X=250,c,W=(c=_.r(C,_.j1c))==null?void 0:c.initialDelayMs;_.b("web_watch_updated_metadata_server_initial_delay")&&W&&(X=W);D.jobId=_.qX.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(C)},X)}};
_.VyD.prototype.fetchUpdatedMetadata=function(D,C){var X=this,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y;return _.I(function(y){switch(y.nextAddress){case 1:C&&(c={continuation:C});if(!_.b("web_get_updated_metadata_fantasy_panel_continuation_params")){y.jumpTo(2);break}W=_.iX().resolve(_.p6);p="PAsports_fantasy";return y.yield(W.isVisible(p,!0),3);case 3:y.yieldResult&&(P=(a=(g=W).getUpdatePanelContinuationData)==null?void 0:(O=a.call(g,p))==null?void 0:O.updatePanelContinuationRequest)&&(c||(c={}),c.clientParams=
{panelContinuationParams:{panelContinuation:P}});case 2:k=_.iX().resolve(_.Bl);if(!k)return _.MN(Error("fp")),y.return();u={};X.pendingRequestId=u;return y.yield(_.Jl(k,D,c),4);case 4:Q=y.yieldResult;if(u!==X.pendingRequestId)return y.return();L=(B=Q)==null?void 0:(K=B.continuation)==null?void 0:K.timedContinuationData;((t=L)==null?0:t.continuation)&&((Y=L)==null?0:Y.timeoutMs)&&(X.jobId=_.qX.addLowPriorityJob(function(){return X.fetchUpdatedMetadata(D,L.continuation)},L.timeoutMs));
_.t_(y)}})};
_.VyD.prototype.disposeInternal=function(){_.nF.prototype.disposeInternal.call(this);Ted(this)};var HtD=_.F(function(D){var C=_.I_(function(){var c=D.data().videoId;if(D.active())c=_.D7(c),_.iX().resolve(_.uX).resolveCommand(c);else{var W=D.playerApi(),p=W.getAvailableAudioTracks(),g,a,O=(g=D.sourceVideoConfig().audioTracks)==null?void 0:(a=g.find(function(P){return P.isDefaultForSource}))==null?void 0:a.id;
if(p=p.find(function(P){return P.getLanguageInfo().getId()===O}))W.setAudioTrack(p,!0),W.setCompositeParam({activeVideoId:c}),D.setActiveSourceId(c)}}),X={};
return _.A("ytw-composite-source-video-overlay",{class:_.g$("ytwCompositeSourceVideoOverlayHost",(X.ytwCompositeSourceVideoOverlayActive=D.active,X.ytwCompositeSourceVideoOverlayInteracting=D.interacting,X)),style:_.P0({left:function(){var c;return((c=D.data().topLeftCornerX)!=null?c:0)*100+"%"},
top:function(){var c;return((c=D.data().topLeftCornerY)!=null?c:0)*100+"%"},
width:function(){var c;return((c=D.data().width)!=null?c:0)*100+"%"},
height:function(){var c;return((c=D.data().height)!=null?c:0)*100+"%"}}),
"on:click":C},_.A("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"yo");var JZj=_.F(function(D){var C=_.U(_.d2(function(){var g,a=(g=D.data().sources)==null?void 0:g.find(function(O){return O.isActive});
if(a)return a.videoId})),X=C.next().value,c=C.next().value;
C=_.U(_.Li(!1,void 0,"rmRJ8d"));var W=C.next().value,p=C.next().value;return _.A("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.I_(function(){p(!0)}),
"on:mouseout":_.I_(function(){p(!1)})},_.A(_.v,{cond:function(){return D.data().sources},
then:function(g){return _.A(_.Zh,{each:g},function(a){return _.A(HtD,{data:a,active:function(){return a.videoId===X()},
setActiveSourceId:c,interacting:W,playerApi:D.playerApi,sourceVideoConfig:function(){return BD$(D.compositeVideoConfig(),a.videoId)}})})}}))},"zo");_.MyU=function(D){_.nF.call(this);this.JSC$23615_watchApi=D;D=_.U(_.Li({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=D.next().value;this.setCompositeVideoOverlayRenderer=D.next().value;D=_.U(_.Li({},void 0,"OlaJpc"));this.compositeVideoConfig=D.next().value;this.setCompositeVideoConfig=D.next().value;zkD(this);j7$(this)};
_.h(_.MyU,_.nF);var zkD=function(D){var C=D.JSC$23615_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){j7$(D)});
D.addOnDisposeCallback(function(){D.JSC$23615_watchApi.unsubscribeByKey(C)})},qpH=function(D){var C;
return _.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$23615_watchApi.playerApi,2);C=X.yieldResult;C.setCompositeVideoOverlayRendererComponent(D.container);_.t_(X)})},fS6=function(D){var C;
return _.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$23615_watchApi.playerApi,2);C=X.yieldResult;C.setCompositeVideoOverlayRendererComponent(void 0);_.t_(X)})},dCH=function(D){var C,X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23615_watchApi.playerApi,2);C=c.yieldResult;D.container=document.createElement("div");X=_.T4(D.container,function(){return _.A(JZj,{data:D.compositeVideoOverlayRenderer,compositeVideoConfig:D.compositeVideoConfig,playerApi:C})},"Ao");
D.addOnDisposeCallback(X);_.t_(c)})},j7$=function(D){var C,X,c,W,p,g,a,O;
_.I(function(P){return P.nextAddress==1?(C=D.JSC$23615_watchApi.getPlayerResponse(),p=_.r((X=C)==null?void 0:(c=X.overlay)==null?void 0:(W=c.playerControlsOverlayRenderer)==null?void 0:W.compositeVideoOverlay,u3U),O=(g=C)==null?void 0:(a=g.playerConfig)==null?void 0:a.compositeVideoConfig,p&&D.setCompositeVideoOverlayRenderer(p),O&&D.setCompositeVideoConfig(O),p&&O?D.container?P.jumpTo(6):P.yield(dCH(D),6):Rkv(D)?P.yield(fS6(D),0):P.jumpTo(0)):Rkv(D)?P.jumpTo(0):P.yield(qpH(D),0)})},Rkv=function(D){var C;
return!((C=D.container)==null||!C.parentElement)};
_.MyU.prototype.disposeInternal=function(){Rkv(this)&&fS6(this);_.nF.prototype.disposeInternal.call(this)};_.cXH=function(D){_.nF.call(this);var C=this;this.JSC$23621_watchApi=D;var X=this.JSC$23621_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var c=C.JSC$23621_watchApi.getPlayerResponse();if(c){var W,p;if(c=_.r((W=c.endscreen)==null?void 0:(p=W.endscreenRenderer)==null?void 0:p.hideButton,_.us)){var g;(g=C.setEndscreenHideButton)==null||g.call(C,c);lS2(C)}}});
this.addOnDisposeCallback(function(){C.JSC$23621_watchApi.unsubscribeByKey(X)});
D=_.U(_.Li({},void 0,"ER3tqb"));this.endscreenHideButton=D.next().value;this.setEndscreenHideButton=D.next().value;DhU(this);C8d(this);X_z(this)};
_.h(_.cXH,_.nF);
var lS2=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return D.creatorEndscreenHideButtonContainer?c.return():c.yield(D.JSC$23621_watchApi.playerApi,2);C=c.yieldResult;D.creatorEndscreenHideButtonContainer=document.createElement("div");_.Sn(D.creatorEndscreenHideButtonContainer,!1);C.setCreatorEndscreenHideButton(D.creatorEndscreenHideButtonContainer);X=_.T4(D.creatorEndscreenHideButtonContainer,function(){return _.A(_.o1,{data:D.endscreenHideButton,useOutlinedIcon:!0})},"Bo");
D.addOnDisposeCallback(function(){X();var W;(W=C)==null||W.setCreatorEndscreenHideButton(void 0)});
_.t_(c)})},DhU=function(D){var C,X;
_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23621_watchApi.playerApi,2);C=c.yieldResult;X=function(){D.creatorEndscreenHideButtonContainer&&_.Sn(D.creatorEndscreenHideButtonContainer,!0)};
C.addEventListener("endscreenelementshown",X);D.addOnDisposeCallback(function(){var W;(W=C)==null||W.removeEventListener("endscreenelementshown",X)});
_.t_(c)})},C8d=function(D){var C=function(){D.creatorEndscreenHideButtonContainer&&_.Sn(D.creatorEndscreenHideButtonContainer,!1)},X=D.JSC$23621_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",C),c=D.JSC$23621_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",C);
D.addOnDisposeCallback(function(){D.JSC$23621_watchApi.unsubscribeByKey(X);D.JSC$23621_watchApi.unsubscribeByKey(c)})},X_z=function(D){D.JSC$23621_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(C){var X=_.r(C,AYU);
D.JSC$23621_watchApi.playerApi.then(function(c){c==null||c.setCreatorEndscreenVisibility(!!X.hide)})});
D.addOnDisposeCallback(function(){D.JSC$23621_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.WnB=function(D){_.nF.call(this);this.JSC$23627_watchApi=D;oP$(this)};
_.h(_.WnB,_.nF);var oP$=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23627_watchApi.playerApi,2);C=c.yieldResult;X=function(W){_.fe().dispatch(_.oI({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:W}}))};
C.addEventListener("onRetroModeChanged",X);D.addOnDisposeCallback(function(){C.removeEventListener("onRetroModeChanged",X)});
_.t_(c)})};var mXd=0,ei=0,Ehv=0;var p_j;p_j=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Eh=function(D){_.nF.call(this);this.JSC$23632_watchApi=D;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;S1v(this)};
_.h(_.Eh,_.nF);
var S1v=function(D){var C,X,c;_.I(function(W){if(W.nextAddress==1)return W.yield(D.JSC$23632_watchApi.playerApi,2);C=W.yieldResult;if(D.isDisposed())return W.return();D.sessionStorage=_.IfN("yt-sleep-timer");D.sessionStorage||_.fQ(new _.Zf("SessionStorage for Sleep Timer is undefined."));((X=D.sessionStorage)==null?void 0:X.get("yt-sleep-timer"))==="true"&&(YHJ(),(c=D.sessionStorage)==null||c.remove("yt-sleep-timer"),C.syncVolume());Uh$(D,C);gPU(D,C);a7f(D,C);_.t_(W)})},Uh$=function(D,C){var X=function(P){D.onSleepTimerSettingsChanged(P,
C)},c=function(P){D.onPlayerStateChange(P,C)},W=function(){D.onLoopChange(C)},p=function(){D.onCloseMiniplayer(C)},g=function(){spD(C,(0,_.kh)(),yCm(C),D.selectedOption==="End of video",C.getPlayerState()!==1)},a=function(){D.onSeekComplete(C)},O=function(){_.qX.cancelJob(ei);
var P=C.getCurrentTime()>=C.getDuration(),k=D.selectedOption==="End of video"||D.selectedOption==="End of playlist"&&!hxB(D.playlistId);P&&k&&I7N(D,C)};
C.addEventListener("onSleepTimerSettingsChanged",X);C.addEventListener("onLoopChange",W);C.addEventListener("onLoopRangeChange",W);C.addEventListener("onStateChange",c);C.addEventListener("onCloseMiniplayer",p);C.addEventListener("onSleepTimerFeatureAvailable",g);C.addEventListener("SEEK_COMPLETE",a);C.addEventListener("onAdStart",O);D.addOnDisposeCallback(function(){C.removeEventListener("onSleepTimerSettingsChanged",X);C.removeEventListener("onLoopChange",W);C.removeEventListener("onLoopRangeChange",
W);C.removeEventListener("onStateChange",c);C.removeEventListener("onCloseMiniplayer",p);C.removeEventListener("onSleepTimerFeatureAvailable",g);C.removeEventListener("SEEK_COMPLETE",a);C.removeEventListener("onAdStart",O)})},gPU=function(D,C){var X=D.JSC$23632_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var c=C.getVideoData().video_id,W,p=(W=rCz(D.JSC$23632_watchApi))==null?void 0:W.playlistId;
D.pauseAutonavPlayback&&(C.pauseVideo(),C.syncVolume(),D.pauseAutonavPlayback=!1);if(D.selectedOption==="End of video"&&c!==D.videoId)ti(D,C);else{if(D.selectedOption==="End of playlist"){W=hxB(D.playlistId);if(p!==D.playlistId){ti(D,C);break a}W?W&&OeJ(D,C):AXU(D,C)}D.videoId=c;D.playlistId=p}}});
D.addOnDisposeCallback(function(){D.JSC$23632_watchApi.unsubscribeByKey(X)})},a7f=function(D,C){var X=_.iX().resolve(_.gp),c=_.dX(X,_.NpF,function(p){p&&D.selectedOption!=="Off"&&ti(D,C)}),W=D.JSC$23632_watchApi.subscribeToActiveChanged(function(p){var g,a;
return _.I(function(O){if(O.nextAddress==1)return O.yield(_.qg().navigationFinishPromise,2);g=!_.Ao5();a=_.iX().resolve(_.wB).isMiniplayerActive();p||!bqD(D.selectedOption)||a||g||ti(D,C);_.t_(O)})},!1);
X=_.dX(X,function(p){return p.entities.playlistLoopStateEntity||{}},function(p){p=p===void 0?{}:p;
var g=KI6(D.JSC$23632_watchApi);if(g){var a;((a=p[g])==null?void 0:a.state)==="PLAYLIST_LOOP_STATE_ALL"&&bqD(D.selectedOption)&&ti(D,C)}});
D.addOnDisposeCallback(c);D.addOnDisposeCallback(X);D.addOnDisposeCallback(W)};
_.Eh.prototype.onSleepTimerSettingsChanged=function(D,C){switch(D){case "Off":this.selectedOption!=="Off"&&ti(this,C);break;case "End of video":case "End of playlist":P8B(this,D,C);break;default:P8B(this,D,C,p_j.get(D))}};
_.Eh.prototype.onLoopChange=function(D){(D.getLoopVideo()||D.getLoopRange())&&bqD(this.selectedOption)&&ti(this,D)};
_.Eh.prototype.onCloseMiniplayer=function(D){bqD(this.selectedOption)&&ti(this,D)};
var P8B=function(D,C,X,c){$hm(D,X);D.selectedOption=C;D.videoId=X.getVideoData().video_id;D.playlistId="";var W;(W=D.sessionStorage)==null||W.set("yt-sleep-timer","true");D.adjustmentsCount++;spD(X,(0,_.kh)(),yCm(X),D.selectedOption==="End of video");if(D.selectedOption==="End of video")AXU(D,X),vP$(D,X);else if(D.selectedOption==="End of playlist"){vP$(D,X);var p,g;D.playlistId=(g=(p=rCz(D.JSC$23632_watchApi))==null?void 0:p.playlistId)!=null?g:"";hxB(D.playlistId)||AXU(D,X)}else c&&(D.presetFadeSchedulerId=
_.hG(_.qX,function(){tRd(X,15E3)},c-15E3),D.presetPauseSchedulerId=_.hG(_.qX,function(){I7N(D,X)},c),exU(X,(0,_.kh)(),c))},I7N=function(D,C){if(D.JSC$23632_watchApi.isActive()){var X={dismissDialogEndpoint:{}};
var c={commandExecutorCommand:{commands:[X,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};X={buttonViewModel:{title:_.I7("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:X}}};c={buttonViewModel:{title:_.I7("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:c}}};var W={dialogHeaderViewModel:{headline:{content:_.I7("SLEEP_TIMER_ENDED_TITLE")}}},
p={basicContentViewModel:{paragraphs:[{text:{content:_.I7("SLEEP_TIMER_ENDED_TEXT")}}]}};X={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:W,content:p,footer:{panelFooterViewModel:{primaryButton:X,secondaryButton:c,shouldHideDivider:!0}}}}}}};_.iX().resolve(_.uX).resolveCommand(X,{form:{element:D}})}else YHJ();ieJ(D,!1);k12(D,C);C.pauseVideo();_.em.getInstance().getState()===2&&C.getPlayerState()===5&&(D.pauseAutonavPlayback=!0)},ti=function(D,C){ieJ(D,!0);
k12(D,C);YHJ()},k12=function(D,C){$hm(D,C);
D.selectedOption="Off";D.videoId="";D.playlistId="";D.adjustmentsCount=0;var X;(X=D.sessionStorage)==null||X.remove("yt-sleep-timer");_.qX.cancelJob(mXd);C.resetSleepTimerMenuSettings()},ieJ=function(D,C){C={timer_length_adjustment_times_during_session:D.adjustmentsCount-1,
is_session_cancelled:C};switch(D.selectedOption){case "Off":C.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":C.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":C.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:C.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",C.option_duration_in_minutes=p_j.get(D.selectedOption)/6E4}_.zu("sleepTimerSessionFinishEvent",C)};
_.Eh.prototype.onPlayerStateChange=function(D,C){D===1?spD(C,(0,_.kh)(),yCm(C),this.selectedOption==="End of video"):D===0?(_.qX.cancelJob(ei),C.setVideoTimeLeft(LIH(0,0))):D===2&&_.qX.cancelJob(ei);this.selectedOption==="End of video"?D===0?I7N(this,C):D===2&&NDz(C):this.selectedOption!=="End of playlist"||hxB(this.playlistId)||(D===0?I7N(this,C):D===2&&NDz(C))};
_.Eh.prototype.onSeekComplete=function(D){D.getPlayerState()===2&&spD(D,(0,_.kh)(),yCm(D),this.selectedOption==="End of video",!0)};
_.Eh.prototype.onCueRangeEnter=function(D,C){D==="sleep-timer-fade-audio"&&tRd(C,(C.getDuration()-C.getProgressState().current)*1E3)};
_.Eh.prototype.onCueRangeExit=function(D,C){D==="sleep-timer-fade-audio"&&C.getPlayerState()!==0&&NDz(C,!0)};
var AXU=function(D,C){C.addCueRange("sleep-timer-fade-audio",C.getDuration()-15,C.getDuration());C.addEventListener("onCueRangeEnter",function(X){D.onCueRangeEnter(X,C)});
C.addEventListener("onCueRangeExit",function(X){D.onCueRangeExit(X,C)})},OeJ=function(D,C){C.removeCueRange("sleep-timer-fade-audio");
C.removeEventListener("onCueRangeEnter",function(X){D.onCueRangeEnter(X,C)});
C.removeEventListener("onCueRangeExit",function(X){D.onCueRangeExit(X,C)})},$hm=function(D,C){bqD(D.selectedOption)?OeJ(D,C):(_.qX.cancelJob(D.presetPauseSchedulerId),_.qX.cancelJob(D.presetFadeSchedulerId),D.presetPauseSchedulerId=0,D.presetFadeSchedulerId=0);
NDz(C,!0)},vP$=function(D,C){C.setLoop(!1);
C.setLoopVideo(!1);C.setLoopRange(null);(D=KI6(D.JSC$23632_watchApi))&&_.iX().resolve(_.gp).dispatch(_.bK("playlistLoopStateEntity",D,{key:D,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.rXH=function(D){_.nF.call(this);var C=this;this.JSC$23635_watchApi=D;_.b("web_watch_force_start_in_theater_mode")&&u$j(this,!0,!1);QIz(this);BJf(this);bej(this);var X=this.JSC$23635_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.BK("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.Yz.get("wide",void 0)==="1"&&_.y3("wide","1",_.BK("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){C.JSC$23635_watchApi.unsubscribeByKey(X)});
D=D.getRoot();if(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-grid")D.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.JgB();_.b("web_watch_log_theater_mode_cookie_state")&&_.Yz.get("wide","0")==="1"&&_.slj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.h(_.rXH,_.nF);var QIz=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23635_watchApi.playerApi,2);C=c.yieldResult;X=function(W){u$j(D,!!W)};
C.addEventListener("SIZE_CLICKED",X);D.addOnDisposeCallback(function(){C.removeEventListener("SIZE_CLICKED",X)});
_.t_(c)})},BJf=function(D){D.JSC$23635_watchApi.registerActionHandler("yt-toggle-theater-mode",function(C,X){u$j(D,C,X===void 0?!0:X)});
D.addOnDisposeCallback(function(){D.JSC$23635_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.rXH.prototype.getState=function(){return _.tl(_.fe().getState())};
var u$j=function(D,C,X){X=X===void 0?!0:X;var c,W,p,g=_.b("enable_player_resize_transition")&&!!D.JSC$23635_watchApi.getWatchNextResponse()&&!((c=D.JSC$23635_watchApi.getWatchNextResponse())==null?0:(W=c.contents)==null?0:(p=W.twoColumnWatchNextResults)==null?0:p.conversationBar);_.TLX(function(){_.fe().dispatch(_.oI({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:C}}));_.b("theater_mode_scroll_to_top_killswitch")||D.JSC$23635_watchApi.scrollWatchTo(0,!1);_.qF()&&_.b("external_fullscreen")&&_.fN(document.documentElement);
bej(D);X&&_.y3("wide",C?"1":"0",_.BK("theater_mode_cookie_max_age_seconds",-1));_.DS(D.JSC$23635_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);D.JSC$23635_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:C});C&&_.JgB()},{shouldWrap:g})},bej=function(D){var C;
_.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$23635_watchApi.playerApi,2);C=X.yieldResult;C.setSizeStyle(!0,D.getState());_.t_(X)})};var xhd=function(D){_.nF.call(this);var C=this;this.playerApi=D;this.timeToPanelSyncKeyMap={};var X;if(D==null?0:(X=D.isReady)==null?0:X.call(D)){X=_.dX(_.iX().resolve(_.gp),function(W){return W.entities.timedMarkersListSyncEntity||{}},function(W,p){W=W===void 0?{}:W;
p=p===void 0?{}:p;for(var g=_.U(Object.keys(p)),a=g.next();!a.done;a=g.next())a=a.value,W[a]!==p[a]&&Knf(C,p[a]);p=_.U(Object.keys(W));for(g=p.next();!g.done;g=p.next())g=g.value,a=W[g],C.timeToPanelSyncKeyMap[g]&&hnD(C,a)});
this.addOnDisposeCallback(X);var c=function(W){C.onCueRangeEnter(W)};
D.addEventListener("onCueRangeEnter",c);this.addOnDisposeCallback(function(){var W;(W=D.removeEventListener)==null||W.call(D,"onCueRangeEnter",c)})}};
_.h(xhd,_.nF);
var hnD=function(D,C){var X,c;if((X=D.playerApi)==null?0:(c=X.isReady)==null?0:c.call(X)){var W;if((X=C==null?void 0:(W=C.timedListData)==null?void 0:W.sections)&&C!=null&&C.key)for(W=_.U(X),X=W.next();!X.done;X=W.next())if(X=X.value,X.timedSyncDataList&&X.sectionId)for(c=0;c<X.timedSyncDataList.length;c++){var p=X.timedSyncDataList[c];p.syncItemId&&D.playerApi.addCueRange(X.sectionId+"_"+C.key+"_"+p.syncItemId,Number(p.videoTimeMs)/1E3,c===X.timedSyncDataList.length-1?0x8000000000000:Number(X.timedSyncDataList[c+
1].videoTimeMs)/1E3)}}},Knf=function(D,C){var X,c;
if((X=D.playerApi)==null?0:(c=X.isReady)==null?0:c.call(X)){var W;if((X=C==null?void 0:(W=C.timedListData)==null?void 0:W.sections)&&C!=null&&C.key)for(W=_.U(X),X=W.next();!X.done;X=W.next())if(X=X.value,X.timedSyncDataList&&X.sectionId){c=_.U(X.timedSyncDataList);for(var p=c.next();!p.done;p=c.next())p=p.value,p.syncItemId&&D.playerApi.removeCueRange(X.sectionId+"_"+C.key+"_"+p.syncItemId)}}};
xhd.prototype.onCueRangeEnter=function(D){for(var C=_.U(Object.keys(this.timeToPanelSyncKeyMap)),X=C.next();!X.done;X=C.next()){X=X.value;var c=_.U(D.split("_"+X+"_")),W=c.next().value;c=c.next().value;if(W&&c){D=_.iX().resolve(_.gp);C=this.timeToPanelSyncKeyMap[X];var p=_.ic5(D.getState(),C);X=LnJ(X,W,c);if(X===-1)break;X={activeSyncId:c,activeItemIndex:X,activeSectionInfo:{sectionIdentifier:W}};p?D.dispatch(_.EW("markersEngagementPanelSyncEntity",C,X)):D.dispatch(_.bK("markersEngagementPanelSyncEntity",
C,Object.assign({},{key:C},X)));break}}};
var LnJ=function(D,C,X){var c=_.iX().resolve(_.gp),W,p;D=(W=wK$(c.getState(),D))==null?void 0:(p=W.timedListData)==null?void 0:p.sections;if(!D)return-1;W=0;p=_.U(D);for(D=p.next();!D.done;D=p.next()){D=D.value;c=D.timedSyncDataList||[];if(D.sectionId===C)return C=c.findIndex(function(g){return g.syncItemId===X}),C===-1?C:W+C;
W+=c.length}return-1};_.en2=function(D){_.nF.call(this);var C=this;this.JSC$23648_watchApi=D;this.unresolvedCommands=[];this.JSC$23648_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(X){sIv(C,X)});
this.addOnDisposeCallback(function(){C.JSC$23648_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
mhB(this)};
_.h(_.en2,_.nF);var mhB=function(D){var C;_.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$23648_watchApi.playerApi,2);C=X.yieldResult;if(D.isDisposed())return X.return();D.timedSyncObserver=new xhd(C);D.unresolvedCommands.length&&(D.unresolvedCommands.forEach(function(c){return sIv(D,c)}),D.unresolvedCommands=[]);
_.hR(D,D.timedSyncObserver);_.t_(X)})},sIv=function(D,C){if(D.timedSyncObserver){var X=_.r(C,$N$);
if(X&&X.timedSyncEntityKey&&X.panelSyncEntityKey){D=D.timedSyncObserver;C=X.timedSyncEntityKey;var c=X.panelSyncEntityKey;X=!!X.isEnabled;X=X===void 0?!0:X;var W=_.iX().resolve(_.gp);W=wK$(W.getState(),C);X?D.timeToPanelSyncKeyMap[C]||(D.timeToPanelSyncKeyMap[C]=c,hnD(D,W)):(delete D.timeToPanelSyncKeyMap[C],Knf(D,W))}}else D.unresolvedCommands.push(C)};var EPH=_.F(function(D){var C=D.data,X=D.maybeLogSmartSkipClientData,c=null,W=null,p=_.b("web_enable_auto_focus_for_timely_action_button"),g=function(){c=document.activeElement},a=function(){C().smartSkipMetadata&&(c=document.activeElement,_.JAX(function(){return W}))},O=function(k){if(C().smartSkipMetadata&&(!k||k.key!=="Enter")){c&&c.isConnected&&(_.JAX(function(){return c}),c=null);
var u;(u=W)==null||u.blur()}};
D=_.I_(function(){X==null||X(!0,C());return!1});
var P=_.fb(_.NH(function(){return C().rendererContext},{onTap:function(k,u){u({disableClickTracking:!0})}}),_.kb({visibilityCallback:function(k){if(p)k?W&&C().smartSkipMetadata&&(a(),document.addEventListener("focusin",g)):(document.removeEventListener("focusin",g),O());
else if(k){k=_.EN(C().rendererContext);var u=Number(C().maxVisibleDurationMilliseconds),Q,B=(Q=_.r(C().rendererContext,_.by))==null?void 0:Q.label;k&&u&&B&&(Q={label:B,command:k,durationMs:u},_.iX().resolve(_.yH).enqueue(Q))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.H2(function(){if(p){var k;if((W=(k=P.value)==null?void 0:k.querySelector("button"))&&C().smartSkipMetadata){var u;(u=P.value)==null||u.addEventListener("keydown",O)}}});
_.z3(function(){p&&(W&&C().smartSkipMetadata&&W.removeEventListener("keydown",O),document.removeEventListener("focusin",g),O())});
return _.A("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:P,"on:click":D},_.A(_.BX,{data:function(){return C().content}},{buttonViewModel:_.Ze}))},"Do");var tVv=_.F(function(D){var C=D.data,X=D.playerApi,c=_.iX().resolve(_.ypk);D=_.U(_.d2(function(){C()}));
var W=D.next().value,p=D.next().value,g=function(){return FI6(C(),W())},a=function(P,k){var u,Q,B=(u=_.r(k==null?void 0:k.rendererContext,_.k7))==null?void 0:(Q=u.loggingDirectives)==null?void 0:Q.trackingParams;
if((k=k==null?void 0:k.smartSkipMetadata)&&k.loggingData&&(Q=k.loggingData,k=Q.algorithmId,u=Q.startMilliseconds,Q=Q.endMilliseconds,k&&u!==void 0&&Q!==void 0)){var K,L;P={smartSkipData:Object.assign({},{versionName:k,startMediaTimeMs:u,endMediaTimeMs:Q},P&&{userInteractionMediaTimeMs:(Math.floor(((K=_.CT())==null?void 0:(L=K.getPlayer())==null?void 0:L.getCurrentTime())||0)*1E3).toString()})};K=_.LN();var t;B&&(t=_.bO(B));K&&t&&_.zo(K,t,P)}},O=function(P,k){var u=FI6(C(),P);
if(u){var Q=_.r(u,wzj),B;if(B=k)B=X(),u=_.r(u,wzj),B=u!=null&&u.smartSkipMetadata?!(B==null?0:B.isSameMarkerTypeVisible((u==null?void 0:u.smartSkipMetadata.markerKey)||"")):!0;if(B){var K,L;(Q==null?0:(K=Q.smartSkipMetadata)==null?0:(L=K.loggingData)==null?0:L.isCounterfactual)||(a(!1,Q),p(P))}else k||W()!==P||p(void 0)}};
_.Jw(function(){var P=C().timelyActions;if(P){P=_.U(P);for(var k=P.next();!k.done;k=P.next()){k=_.r(k.value,wzj);var u=void 0;(u=k)!=null&&u.cueRangeId&&c.timelyActionsMap.set(k.cueRangeId,O)}_.z3(function(){c.timelyActionsMap.clear()})}},"l2RtC");
return _.A("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.A(_.BX,{data:g},{timelyActionViewModel:function(P){return _.A(EPH,{data:P.data,maybeLogSmartSkipClientData:function(){a(!0,_.r(g(),wzj))}})}}))},"Fo");_.Y1D=function(D){_.nF.call(this);this.JSC$23660_watchApi=D;D=_.U(_.Li({},void 0,"UN7k5e"));this.timelyActionsOverlay=D.next().value;this.setTimelyActionsOverlay=D.next().value;NJ2(this)};
_.h(_.Y1D,_.nF);var NJ2=function(D){var C,X,c,W;_.I(function(p){if(p.nextAddress==1)return yXv(D),nPD(D),D.timelyActionsContainer=document.createElement("div"),p.yield(D.JSC$23660_watchApi.playerApi,2);C=p.yieldResult;(c=(X=C).insertTimelyActionUi)==null||c.call(X,D.timelyActionsContainer);W=_.T4(D.timelyActionsContainer,function(){return _.A(tVv,{data:D.timelyActionsOverlay,playerApi:C})},"Go");
D.addOnDisposeCallback(W);_.t_(p)})},nPD=function(D){var C=D.JSC$23660_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yXv(D)});
D.addOnDisposeCallback(function(){D.JSC$23660_watchApi.unsubscribeByKey(C)})},yXv=function(D){var C=D.JSC$23660_watchApi.getWatchNextResponse();
if(C){var X,c;if(C=_.r((X=C.playerOverlays)==null?void 0:(c=X.playerOverlayRenderer)==null?void 0:c.timelyActionsOverlayViewModel,vlj)){var W;(W=D.setTimelyActionsOverlay)==null||W.call(D,C)}}};_.Fnv=function(D){_.nF.call(this);this.JSC$23664_watchApi=D;w_v(this)};
_.h(_.Fnv,_.nF);var w_v=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23664_watchApi.playerApi,2);C=c.yieldResult;X=function(W){_.I3.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.r(W,_.gQB)},popupType:"TOAST"}})};
C.addEventListener("onYtShowToast",X);D.addOnDisposeCallback(function(){C.removeEventListener("onYtShowToast",X)});
_.t_(c)})};var ZeB,TJd,MVm,G1z,VVm,jI$,JXz,znf,q1D,dhv;ZeB=!1;_.HeD=function(D){_.nF.call(this);this.JSC$23667_watchApi=D;this.fullscreen=this.theater=!1;G1z(this);VVm(this);TJd(this)};
_.h(_.HeD,_.nF);TJd=function(D){var C,X,c;_.I(function(W){if(W.nextAddress==1)return W.yield(D.JSC$23667_watchApi.playerApi,2);C=W.yieldResult;if(D.isDisposed())return W.return();X=D.JSC$23667_watchApi.getElement("CINEMATICS");if(!X)return W.return();D.JSC$23667_cinematicController=new _.ix(X,C);_.hR(D,D.JSC$23667_cinematicController);_.se6(D.JSC$23667_cinematicController);JXz(D,_.C_n());c=D.JSC$23667_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(p){znf(D,p)});
D.addOnDisposeCallback(function(){D.JSC$23667_watchApi.unsubscribeByKey(c)});
jI$(D);znf(D,D.JSC$23667_cinematicController.isAllowed());MVm(D);q1D(D);_.t_(W)})};
MVm=function(D){D.fullscreen=_.Nn(_.fe().getState());D.theater=_.tl(_.fe().getState());_.f7U(D,D.fullscreen,D.theater);var C=_.dX(_.fe(),_.Nn,function(c){D.fullscreen=c;_.f7U(D,D.fullscreen,D.theater)}),X=_.dX(_.fe(),_.tl,function(c){D.theater=c;
_.f7U(D,D.fullscreen,D.theater)});
D.addOnDisposeCallback(C);D.addOnDisposeCallback(X)};
G1z=function(D){var C=D.JSC$23667_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jI$(D)});
D.addOnDisposeCallback(function(){D.JSC$23667_watchApi.unsubscribeByKey(C)})};
VVm=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23667_watchApi.playerApi,2);C=c.yieldResult;X=function(W){JXz(D,W)};
C.addEventListener("cinematicSettingsToggleChange",X);D.addOnDisposeCallback(function(){C.removeEventListener("cinematicSettingsToggleChange",X)});
_.t_(c)})};
jI$=function(D){var C=D.JSC$23667_watchApi.getWatchNextResponse(),X;C=_.r(C==null?void 0:(X=C.pageVisualEffects)==null?void 0:X[0],_.RO);var c;(c=D.JSC$23667_cinematicController)==null||_.ejB(c,C)};
JXz=function(D,C){var X;(X=D.JSC$23667_cinematicController)==null||_.m6B(X,C);dhv(D)};
znf=function(D,C){var X;_.I(function(c){if(c.nextAddress==1)return _.b("kevlar_watch_cinematics_invisible")&&(C=!1),c.yield(D.JSC$23667_watchApi.playerApi,2);X=c.yieldResult;X.updateCinematicSettings(C);dhv(D);_.t_(c)})};
q1D=function(D){var C=_.PE();if(_.b("kevlar_measure_ambient_mode_idle")&&!C.getFlag(192)&&!ZeB){ZeB=!0;var X=_.Zo(_.qX,function(){_.iX().resolve(_.gzo).start(1E4)},5E3);
D.addOnDisposeCallback(function(){_.qX.cancelJob(X);_.iX().resolve(_.gzo).stop()})}};
_.f7U=function(D,C,X){D.fullscreen=C;D.theater=X;var c;(c=D.JSC$23667_cinematicController)==null||c.setFullscreen(D.fullscreen,D.theater);if(_.b("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(D.theater||D.fullscreen){var W;(W=D.JSC$23667_cinematicController)==null||_.tjD(W)}else{var p;(p=D.JSC$23667_cinematicController)==null||_.EQv(p)}};
dhv=function(D){var C;D.JSC$23667_watchApi.getRoot().toggleCinematicsActive(!((C=D.JSC$23667_cinematicController)==null||!C.isEnabled()))};_.CjN=function(D){_.nF.call(this);var C=this;this.JSC$23670_watchApi=D;this.commentsReady=!1;this.setCommentsJobId=0;D=_.dX(_.fe(),_.si,function(){Rn2(C)});
this.addOnDisposeCallback(D);var X=this.JSC$23670_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){l7j(C)}),c=this.JSC$23670_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){l7j(C)});
this.addOnDisposeCallback(function(){C.JSC$23670_watchApi.unsubscribeByKey(X);C.JSC$23670_watchApi.unsubscribeByKey(c)});
var W=function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Dz6(C,"false")};
this.JSC$23670_watchApi.getRoot().addEventListener("yt-page-data-will-update",W);this.addOnDisposeCallback(function(){C.JSC$23670_watchApi.getRoot().removeEventListener("yt-page-data-will-update",W)});
l7j(this)};
_.h(_.CjN,_.nF);var l7j=function(D){D.commentsReady=!1;_.qX.cancelJob(D.setCommentsJobId);D.setCommentsJobId=_.Zo(_.qX,function(){Rn2(D)},1E3)},Rn2=function(D){if(!D.commentsReady){_.sp("cmi");
_.qX.cancelJob(D.setCommentsJobId);var C,X,c,W,p=(C=D.JSC$23670_watchApi.getWatchNextResponse())==null?void 0:(X=C.contents)==null?void 0:(c=X.twoColumnWatchNextResults)==null?void 0:(W=c.results)==null?void 0:W.results.contents;C=void 0;if(p&&p.length)for(p=_.U(p),X=p.next();!X.done;X=p.next())if(X=X.value,W=c=void 0,((c=X)==null?void 0:(W=c.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"){_.b("web_watch_provide_undefined_comments")?C=X.itemSectionRenderer:D.JSC$23670_watchApi.provideRenderingData("COMMENTS",
X.itemSectionRenderer);Dz6(D,"true");break}_.b("web_watch_provide_undefined_comments")&&D.JSC$23670_watchApi.provideRenderingData("COMMENTS",C);D.commentsReady=!0;D.JSC$23670_watchApi.dispatchEvent("yt-watch-comments-ready")}},Dz6=function(D,C){var X;
(X=D.JSC$23670_watchApi.getElement("COMMENTS"))==null||X.setAttribute("canScheduleJobs",C)};_.plJ=function(D){_.nF.call(this);var C=this;this.JSC$23673_watchApi=D;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.b("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.b("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.b("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.BK("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)XlB(this);
else{var X=this.JSC$23673_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){c9v(C);Nt(C)}),c=this.JSC$23673_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YR(C);
Nt(C)});
this.JSC$23673_watchApi.getRoot().is==="ytd-watch-grid"&&_.b("swatcheroo_pbs_load_grid")&&(ooU(this),WWj(this));this.addOnDisposeCallback(function(){C.JSC$23673_watchApi.unsubscribeByKey(X);C.JSC$23673_watchApi.unsubscribeByKey(c);_.qX.cancelJob(C.provideRichGridJobId)});
c9v(this);YR(this)}};
_.h(_.plJ,_.nF);var XlB=function(D){var C=D.JSC$23673_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){D.providePlayerJobId=_.$w(_.qX,function(){c9v(D);Nt(D)},D.provideAllDataDelayMs)}),X=D.JSC$23673_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){D.provideWatchNextJobId=_.$w(_.qX,function(){YR(D);
Nt(D)},D.provideAllDataDelayMs)}),c=D.JSC$23673_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){D.provideWatchNextJobId=_.$w(_.qX,function(){YR(D);
Nt(D)},D.provideAllDataDelayMs)});
D.JSC$23673_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Zo(_.qX,function(){c9v(D);YR(D);Nt(D)},100)});
D.JSC$23673_watchApi.addPageDisposeJob(function(){_.qX.cancelJob(D.provideWatchNextJobId);_.qX.cancelJob(D.providePlayerJobId)});
D.addOnDisposeCallback(function(){D.JSC$23673_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");D.JSC$23673_watchApi.unsubscribeByKey(C);D.JSC$23673_watchApi.unsubscribeByKey(X);D.JSC$23673_watchApi.unsubscribeByKey(c);_.qX.cancelJob(D.providePlayerJobId);_.qX.cancelJob(D.provideWatchNextJobId)});
c9v(D);YR(D)},c9v=function(D){var C=D.JSC$23673_watchApi.getPlayerResponse(),X,c,W=(c=C==null?void 0:(X=C.playabilityStatus)==null?void 0:X.messageRenderers)!=null?c:[],p,g;
C=(g=C==null?void 0:(p=C.playabilityStatus)==null?void 0:p.messages)!=null?g:[];p=_.U(C);for(g=p.next();!g.done;g=p.next())W.push({alertRenderer:{text:_.jV(g.value),type:"WARNING"}});D.JSC$23673_watchApi.provideRenderingData("ALERTS",W)},YR=function(D){var C=[],X,c,W,p=D.JSC$23673_watchApi.getWatchNextResponse(),g,a,O,P,k=p==null?void 0:(g=p.contents)==null?void 0:(a=g.twoColumnWatchNextResults)==null?void 0:(O=a.results)==null?void 0:(P=O.results)==null?void 0:P.contents;
if(k)for(g=_.U(k),a=g.next();!a.done;a=g.next())if(a=a.value,a.videoPrimaryInfoRenderer)var u=a;else if(a.videoSecondaryInfoRenderer){var Q=a;P=O=void 0;a=Object.assign({},(O=a.videoSecondaryInfoRenderer)==null?void 0:(P=O.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(a.rows&&a.collapsedItemCount!==void 0){a.rows=a.rows.slice(0,a.collapsedItemCount).filter(function(C1){return!!C1.richMetadataRowRenderer});
a.collapsedItemCount=a.rows.length;var B={metadataRowContainerRenderer:a}}}else if(a.merchandiseShelfRenderer)var K=a;else if(a.ticketShelfRenderer)var L=a;else if(a.expandableMetadataRenderer)var t=a;else if(a.itemSectionRenderer)if(O=a.itemSectionRenderer.contents,P=void 0,D.directlyProvideComments&&((P=a.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section")_.sp("cmi"),D.JSC$23673_watchApi.provideRenderingData("COMMENTS",a.itemSectionRenderer);else if(O)for(a=_.U(O),O=
a.next();!O.done;O=a.next())if(O=O.value,O.commentsEntryPointHeaderRenderer)var Y=O;else if(O.clarificationRenderer||O.infoPanelContainerRenderer||O.infoPanelContentRenderer||O.emergencyOneboxRenderer){C.push(O);var y=y||!!Q}else O.limitedStateMessageRenderer?c=O:O.videoMetadataCarouselViewModel&&(W=O);if(_.b("web_watch_merch_in_sd_when_ticket_shelf_present")&&K&&L){var J=K;K=void 0}if(D.provideWatchNextSecondaryResults){var T,H,q;D.JSC$23673_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
p==null?void 0:(T=p.contents)==null?void 0:(H=T.twoColumnWatchNextResults)==null?void 0:(q=H.secondaryResults)==null?void 0:q.secondaryResults)}if(D.JSC$23673_watchApi.getRoot().is==="ytd-watch-grid"){var R,ph;D.JSC$23673_watchApi.provideRenderingData("LIVE_CHAT",p==null?void 0:(R=p.contents)==null?void 0:(ph=R.twoColumnWatchNextResults)==null?void 0:ph.conversationBar)}var Om,xj,Bo,r5;(T=p==null?void 0:(Om=p.contents)==null?void 0:(xj=Om.twoColumnWatchNextResults)==null?void 0:(Bo=xj.secondaryResults)==
null?void 0:(r5=Bo.secondaryResults)==null?void 0:r5.offerModule)&&(T.donationShelfRenderer||T.donationUnavailableRenderer)&&D.JSC$23673_watchApi.getRoot().is!=="ytd-watch-grid"&&(X=T);Om=D.JSC$23673_watchApi.getPlayerResponse();if(!Om||!_.ThW(Om.playabilityStatus,p==null?void 0:p.playerOverlays)){var Fd;if(p==null?0:(Fd=p.contents)==null?0:Fd.singleColumnWatchNextResults){var GJ,jZ;var Ac=p==null?void 0:(GJ=p.contents.singleColumnWatchNextResults.results)==null?void 0:(jZ=GJ.results)==null?void 0:
jZ.contents}else{var ib,d5,ub,L5;Fd=!!(k==null?0:(ib=k[0])==null?0:(d5=ib.itemSectionRenderer)==null?0:(ub=d5.contents)==null?0:(L5=ub[0])==null?0:L5.backgroundPromoRenderer);var Nf,xt;ib=!!(p==null?0:(Nf=p.contents)==null?0:(xt=Nf.twoColumnWatchNextResults)==null?0:xt.secondaryResults);Fd&&!ib&&(Ac=k)}}k=C[0];Nf=C[1];y&&C.length===1&&(Nf=k,k=void 0);D.JSC$23673_watchApi.provideRenderingData("PRIMARY_INFO",u);D.JSC$23673_watchApi.provideRenderingData("SECONDARY_INFO",Q);D.JSC$23673_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
Y);D.JSC$23673_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",W);D.JSC$23673_watchApi.provideRenderingData("CLARIFICATION",k);D.JSC$23673_watchApi.provideRenderingData("RICH_METADATA",B);D.JSC$23673_watchApi.provideRenderingData("MERCH_SHELF",K);_.b("web_watch_merch_in_sd_when_ticket_shelf_present")&&D.JSC$23673_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",J);D.JSC$23673_watchApi.provideRenderingData("TICKET_SHELF",L);D.JSC$23673_watchApi.provideRenderingData("LIMITED_STATE",c);D.JSC$23673_watchApi.getRoot().is!==
"ytd-watch-grid"&&D.JSC$23673_watchApi.provideRenderingData("DONATION_SHELF",X);D.JSC$23673_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Ac);D.JSC$23673_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Nf);D.JSC$23673_watchApi.provideRenderingData("EXPANDABLE_METADATA",t);if(D.swatcherooProvideAllDataOnScheduledJob){var u6,g5,oq,rx,Rq,K5;u=p==null?void 0:(u6=p.contents)==null?void 0:(g5=u6.twoColumnWatchNextResults)==null?void 0:(oq=g5.secondaryResults)==null?void 0:(rx=oq.secondaryResults)==
null?void 0:(Rq=rx.results)==null?void 0:(K5=Rq[0])==null?void 0:K5.richGridRenderer;D.JSC$23673_watchApi.provideRenderingData("RICH_GRID_RENDERER",u)}};
_.plJ.prototype.hasCompanionAds=function(D){var C,X;return(X=D==null?void 0:(C=D.adPlacements)==null?void 0:C.some(function(c){var W,p,g,a;return(c==null?void 0:(W=c.adPlacementRenderer)==null?void 0:(p=W.renderer)==null?void 0:p.actionCompanionAdRenderer)||(c==null?void 0:(g=c.adPlacementRenderer)==null?void 0:(a=g.renderer)==null?void 0:a.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?X:!1};
var Nt=function(D){if(!_.b("swaterdoo_ps_wn_handle_ks")){D.swatcherooProvideAllDataOnScheduledJob||WWj(D,3E3);var C=D.JSC$23673_watchApi.getPlayerResponse(),X,c,W,p,g,a=(X=D.JSC$23673_watchApi.getWatchNextResponse())==null?void 0:(c=X.contents)==null?void 0:(W=c.twoColumnWatchNextResults)==null?void 0:(p=W.secondaryResults)==null?void 0:(g=p.secondaryResults)==null?void 0:g.offerModule;C=D.hasCompanionAds(C);var O,P;X=(a==null?void 0:(O=a.tvfilmOfferModuleRenderer)==null?void 0:O.clientShouldSuppressIfCompanionAdDisplayed)||
(a==null?void 0:(P=a.unlimitedOfferModuleRenderer)==null?void 0:P.suppressIfCompanionAds);O=C&&X;D.JSC$23673_watchApi.getRoot().is==="ytd-watch-grid"&&D.JSC$23673_watchApi.provideRenderingData("OFFER_MODULE",O?void 0:a)}},WWj=function(D,C){_.b("swatcheroo_pbs_load_grid")&&(D.provideRichGridJobId&&_.qX.cancelJob(D.provideRichGridJobId),D.provideRichGridJobId=_.$w(_.qX,function(){D.provideRichGridJobId=0;
var X,c,W,p,g,a,O,P=(X=D.JSC$23673_watchApi.getWatchNextResponse())==null?void 0:(c=X.contents)==null?void 0:(W=c.twoColumnWatchNextResults)==null?void 0:(p=W.secondaryResults)==null?void 0:(g=p.secondaryResults)==null?void 0:(a=g.results)==null?void 0:(O=a[0])==null?void 0:O.richGridRenderer;P&&D.JSC$23673_watchApi.provideRenderingData("RICH_GRID_RENDERER",P)},C))},ooU=function(D){var C,X;
_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23673_watchApi.playerApi,2);C=c.yieldResult;X=function(){D.onPlaybackStart()};
C.addEventListener("onPlaybackStartExternal",X);D.addOnDisposeCallback(function(){C.removeEventListener("onPlaybackStartExternal",X)});
_.t_(c)})};
_.plJ.prototype.onPlaybackStart=function(){WWj(this)};_.UzU=function(D){_.nF.call(this);var C=this;this.JSC$23685_watchApi=D;D.playerApi.then(function(X){C.player=X});
this.gestures=new _.Sg(this.JSC$23685_watchApi.getRoot(),D.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Vqv(_.fe().getState())&&_.si(_.fe().getState())<=0)if(_.Nn(_.fe().getState())){var X;(X=C.player)==null||X.toggleFullscreen()}else _.DS(C.JSC$23685_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
S2d(this)};
_.h(_.UzU,_.nF);var S2d=function(D){var C=_.dX(_.fe(),_.Nn,function(X){D.onFullscreenChanged(X)});
D.addOnDisposeCallback(C);C=_.dX(_.fe(),_.si,function(X){D.gestures&&(X>0?D.gestures.detach():D.gestures.attach())});
D.addOnDisposeCallback(C)};
_.UzU.prototype.onFullscreenChanged=function(D){this.gestures&&this.gestures.update(D)};var gom;gom=["PLAYLIST"];_.Ig6=function(D){_.nF.call(this);var C=this;this.JSC$23688_watchApi=D;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(D.subscribeToActiveChanged(function(X){C.onActiveChanged(X)}));
agN(this)};
_.h(_.Ig6,_.nF);var OHB=function(D){D.pageDisposalDataTypes=Object.values(hkN).filter(function(C){return!gom.includes(C)})},agN=function(D){if(_.b("swatcheroo_enable_ghost_cards")||_.b("web_watch_clear_data_on_page_dispose"))OHB(D),D.JSC$23688_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.qX.cancelJob(D.clearDataJobId);
D.clearDataJobId=0}),D.runPageDisposeJob=function(){var C=_.iX().resolve(_.lu).getDestinationPageType()==="watch";
D.clearDataJobId=_.$w(_.qX,D.runClearDataJob,C?0:_.BK("web_watch_delay_page_dispose_ms",1E4))},D.runClearDataJob=function(){A9z(D)},D.runOnYtNavigateAwayFinish=function(){D.clearDataJobId&&(_.qX.cancelJob(D.clearDataJobId),D.clearDataJobId=0,A9z(D))},document.addEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish),D.JSC$23688_watchApi.addPageDisposeJob(D.runPageDisposeJob),D.addOnDisposeCallback(function(){D.JSC$23688_watchApi.removePageDisposeJob(D.runPageDisposeJob);
D.JSC$23688_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish)})},A9z=function(D){D.pageDisposalDataTypes.forEach(function(C){D.JSC$23688_watchApi.provideRenderingData(C,void 0)});
D.clearDataJobId=0};
_.Ig6.prototype.onActiveChanged=function(D){D&&((D=document.querySelector("#watch-page-skeleton"))&&_.ep(D),PjD(this),document.body.removeAttribute("no-y-overflow"),_.dq("IS_SHELL_LOAD")&&_.sVv())};
var PjD=function(D){_.I(function(C){if(C.nextAddress==1)return C.yield(D.JSC$23688_watchApi.playerApi,2);_.Gt();_.t_(C)})};var $zN;$zN=_.b("kevlar_watch_while_counterfactual")?0:.25;_.uUJ=function(D){_.nF.call(this);this.JSC$23691_watchApi=D;this.JSC$23691_watchWhileEnabled=_.b("kevlar_watch_while_v2");this.pipEnabled=_.b("web_enable_pip_on_miniplayer");vo$(this);iH2(this);khz(this)};
_.h(_.uUJ,_.nF);var vo$=function(D){D.JSC$23691_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){QEB(D)});
D.addOnDisposeCallback(function(){D.JSC$23691_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},iH2=function(D){var C,X;
_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23691_watchApi.playerApi,2);C=c.yieldResult;X=function(){QEB(D)};
C.addEventListener("onCollapseMiniplayer",X);D.addOnDisposeCallback(function(){C.removeEventListener("onCollapseMiniplayer",X)});
_.t_(c)})},khz=function(D){var C=D.JSC$23691_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&C&&D.JSC$23691_watchWhileEnabled&&(D.playerIntersectionObserver=new IntersectionObserver(function(X){D.handleIntersect(X)},{threshold:[$zN]}),D.playerIntersectionObserver.observe(C),D.addOnDisposeCallback(function(){var X;
(X=D.playerIntersectionObserver)==null||X.disconnect()}))},QEB=function(D){var C,X,c;
_.I(function(W){if(W.nextAddress==1){C=_.iX().resolve(_.lu);X=C.data;c=_.rVm(X.response,X.playerResponse);_.qg().miniplayerButtonActivation=!0;if(D.pipEnabled)return _.qg().watchPipActivation=!0,W.jumpTo(2);_.iX().resolve(_.wB).collapse();return W.yield(_.qg().navigationFinishPromise,2)}if(W.nextAddress!=4)return _.qg().currentEndpoint=c.watchEndpoint||null,W.yield(_.iX().resolve(_.wB).activate(D.JSC$23691_watchApi.getElement("PLAYER"),c,X),4);_.qg().userActivation=!0;_.t_(W)})};
_.uUJ.prototype.handleIntersect=function(D){BLv(this,D[D.length-1])};
var BLv=function(D,C){D.watchWhileJobId&&_.qX.cancelJob(D.watchWhileJobId);D.watchWhileJobId=_.qX.addLowPriorityJob(function(){var X,c;return _.I(function(W){if(W.nextAddress==1)return D.watchWhileJobId=void 0,X=_.iX().resolve(_.wB),C.intersectionRatio>$zN?X.isMiniplayerActive()?W.yield(X.deactivate(),0):W.jumpTo(0):(c=!X.isMiniplayerActive())?W.yield(bH2(D),5):W.jumpTo(4);W.nextAddress!=4&&(c=W.yieldResult);if(!c)return W.jumpTo(0);_.qg().watchWhileActivation=!0;return W.yield(r9z(D),0)})},100)},
bH2=function(D){return _.I(function(C){return C.nextAddress==1?_.b("kevlar_watch_while_paused")?C.return(!0):C.yield(D.isPlayerPlaying(),2):C.return(C.yieldResult)})};
_.uUJ.prototype.isPlayerPlaying=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$23691_watchApi.playerApi,2);C=X.yieldResult;return X.return(C.getPlayerStateObject().isPlaying)})};
var r9z=function(D){var C,X;return _.I(function(c){C=_.iX().resolve(_.lu).data;X=_.rVm(C.response,C.playerResponse);_.qg().currentEndpoint=X.watchEndpoint||null;return c.yield(_.iX().resolve(_.wB).activate(D.JSC$23691_watchApi.getElement("PLAYER"),X,C),0)})};_.xzj=function(D){_.nF.call(this);this.JSC$23695_watchApi=D;KWD(this);hcd(this)};
_.h(_.xzj,_.nF);var hcd=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23695_watchApi.playerApi,2);C=c.yieldResult;X=function(W){var p;W.sessionData&&W.sessionData.itct&&(p=W.sessionData.itct);var g=W.watchEndpoint;if(g&&W.sessionData&&W.sessionData.autonav)g=_.VWt(g,p);else{var a;g=_.D7(W.videoId,(a=W.listId)!=null?a:void 0,p)}p={endpoint:g};W.sessionData&&(p.tempData=W.sessionData);D.JSC$23695_watchApi.dispatchEvent("yt-navigate",p)};
C.addEventListener("onPlayVideo",X);D.addOnDisposeCallback(function(){C.removeEventListener("onPlayVideo",X)});
_.t_(c)})},KWD=function(D){var C=function(X){D.onYtNavigate(X)};
D.JSC$23695_watchApi.getRoot().addEventListener("yt-navigate",C);D.addOnDisposeCallback(function(){D.JSC$23695_watchApi.getRoot().removeEventListener("yt-navigate",C)})};
_.xzj.prototype.onYtNavigate=function(D){var C=this,X,c,W,p,g,a,O,P,k;return _.I(function(u){if(u.nextAddress==1){if(!((X=D.detail)==null?0:(c=X.endpoint)==null?0:c.watchEndpoint))return u.return();W=D.detail.endpoint.watchEndpoint;p=C.JSC$23695_watchApi.getWatchNextResponse();a=_.r((g=p)==null?void 0:g.currentVideoEndpoint,_.TC);if(!a)return u.return();if(W.videoId!==a.videoId||W.playlistId&&W.playlistId!==a.playlistId||typeof W.startTimeSeconds!=="number")return u.jumpTo(0);D.stopPropagation();
(O=_.b("kevlar_watch_while_v2")&&!_.b("kevlar_watch_while_counterfactual"))&&_.iX().resolve(_.wB).isMiniplayerActive()||C.JSC$23695_watchApi.scrollWatchTo(0,!0);return u.yield(C.JSC$23695_watchApi.playerApi,3)}P=u.yieldResult;k=W.startTimeSeconds;P.seekTo(k,void 0,void 0,void 0,84);P.wakeUpControls();k<P.getDuration()&&P.playVideo();_.t_(u)})};_.sEv=function(D){_.nF.call(this);var C=this;this.JSC$23698_watchApi=D;var X=this.JSC$23698_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LWN(C)});
this.addOnDisposeCallback(function(){C.JSC$23698_watchApi.unsubscribeByKey(X)});
LWN(this);_.b("enable_ai_companion")&&(D=this.JSC$23698_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.J9k(_.iX().resolve(_.gu),D,"WATCH")};
_.h(_.sEv,_.nF);var LWN=function(D){var C=D.JSC$23698_watchApi.getWatchNextResponse();if(C){var X,c=[].concat(_.VB((X=C==null?void 0:C.engagementPanels)!=null?X:[]));_.b("web_watch_comments_visible_by_default")&&(X=c.find(function(W){var p;return((p=W.engagementPanelSectionListRenderer)==null?void 0:p.targetId)==="engagement-panel-comments-section"}),X==null?0:X.engagementPanelSectionListRenderer)&&(X.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
c.unshift.apply(c,_.VB(mzd(C)));D.JSC$23698_watchApi.provideRenderingData("ENGAGEMENT_PANELS",c)}},ec$=function(D){var C,X,c,W=(C=D.engagementPanels)==null?void 0:(X=C.find(function(B){var K;
return((K=B.engagementPanelSectionListRenderer)==null?void 0:K.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(c=X.engagementPanelSectionListRenderer.content)==null?void 0:c.structuredDescriptionContentRenderer,p;
if(_.r(W==null?void 0:(p=W.items)==null?void 0:p.find(function(B){return!!_.r(B,NON)}),NON))return!0;
var g,a,O,P;if(D=(((g=D.contents)==null?void 0:(a=g.twoColumnWatchNextResults)==null?void 0:(O=a.results)==null?void 0:(P=O.results)==null?void 0:P.contents)||[]).find(function(B){return B.videoPrimaryInfoRenderer})){var k,u,Q;
return(((k=D.videoPrimaryInfoRenderer)==null?void 0:(u=k.videoActions)==null?void 0:(Q=u.menuRenderer)==null?void 0:Q.flexibleItems)||[]).some(function(B){B=_.r(B,_.$MN);if(!B)return!1;var K,L;B=(K=B.topLevelButton)==null?void 0:(L=K.buttonViewModel)==null?void 0:L.onTap;if(!B)return!1;K=_.Y7(B);if(!K)return!1;var t;return((t=_.r(K,_.E3))==null?void 0:t.panelIdentifier)==="PAyouchat"})}return!1},mzd=function(D){var C=[];
if(!_.b("web_watch_inject_placeholder_fantasy_panel_killswitch")){var X,c,W,p=(X=D.engagementPanels)==null?void 0:(c=X.find(function(a){var O;return((O=a.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(W=c.engagementPanelSectionListRenderer.content)==null?void 0:W.structuredDescriptionContentRenderer,g;
_.r(p==null?void 0:(g=p.items)==null?void 0:g.find(function(a){return!!_.r(a,aoD)}),aoD)&&(X=_.b8J("PAsports_fantasy"),X.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C.push(X))}ec$(D)&&(D=_.b8J("PAyouchat"),D.engagementPanelSectionListRenderer.targetId="PAyouchat",D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C.push(D));
return C};_.t_m=function(D){_.nF.call(this);this.JSC$23701_watchApi=D;EoJ(this)};
_.h(_.t_m,_.nF);var EoJ=function(D){D.JSC$23701_watchApi.registerActionHandler("yt-loop-command",function(C){NLf(D,C)});
D.JSC$23701_watchApi.registerActionHandler("yt-repeat-chapter-command",function(C){Y2z(D,C)});
D.addOnDisposeCallback(function(){D.JSC$23701_watchApi.unregisterActionHandler("yt-loop-command");D.JSC$23701_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},NLf=function(D,C){var X;
_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23701_watchApi.playerApi,2);X=c.yieldResult;_.r(C,OQH).loop?(X.setLoopRange({startTimeMs:Number(_.r(C,OQH).startTimeMs),endTimeMs:Number(_.r(C,OQH).endTimeMs),postId:_.r(C,OQH).postId,type:"clips"}),X.playVideo()):X.setLoopRange(null);_.t_(c)})},Y2z=function(D,C){var X,c;
_.I(function(W){if(W.nextAddress==1)return W.yield(D.JSC$23701_watchApi.playerApi,2);X=W.yieldResult;c=_.r(C,iQN).repeat;c==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(X.setLoopRange({startTimeMs:Number(_.r(C,iQN).startTimeMs),endTimeMs:Number(_.r(C,iQN).endTimeMs),type:"repeatChapter"}),X.playVideo()):c==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&X.setLoopRange(null);_.t_(W)})};_.noj=function(D){_.nF.call(this);this.JSC$23706_watchApi=D;y9f(this)};
_.h(_.noj,_.nF);var y9f=function(D){D.JSC$23706_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(C){wlv(D,C)});
D.addOnDisposeCallback(function(){D.JSC$23706_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},wlv=function(D,C){var X,c,W,p,g,a,O,P,k,u,Q;
_.I(function(B){if(B.nextAddress==1)return B.yield(D.JSC$23706_watchApi.playerApi,2);X=B.yieldResult;if(p=(W=(c=_.r(C,kuU))==null?void 0:c.highlightedMenuItemKey)!=null?W:"")(a=(g=X).highlightSettingsMenuItem)==null||a.call(g,p);if(k=(P=(O=_.r(C,kuU))==null?void 0:O.openMenuItemKey)!=null?P:"")(Q=(u=X).openSettingsMenuItem)==null||Q.call(u,k);_.t_(B)})};var FWv=_.gJ("/youtube/app/watch/player_state","playerStateEntity");_.yD=function(D){_.nF.call(this);this.JSC$23709_watchApi=D;ZHd(this)};
_.h(_.yD,_.nF);var GhJ=function(D){switch(D){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"}},ZHd=function(D){var C,X,c,W,p;
_.I(function(g){if(g.nextAddress==1)return g.yield(D.JSC$23709_watchApi.playerApi,2);C=g.yieldResult;if(D.isDisposed())return g.return();X=function(a){D.onPlayerStateChange(a)};
c=function(a){D.onAdStateChange(a)};
W=function(){D.onAdSkip()};
p=function(a){D.onVideoDataChange(a)};
C.addEventListener("onStateChange",X);C.addEventListener("onAdStateChange",c);C.addEventListener("onAdSkip",W);C.addEventListener("onVideoDataChange",p);D.addOnDisposeCallback(function(){C.removeEventListener("onStateChange",X);C.removeEventListener("onAdStateChange",c);C.removeEventListener("onAdSkip",W);C.removeEventListener("onVideoDataChange",p)});
_.t_(g)})},V_N=function(D){var C=_.qw(),X=C.dispatch;
a:switch(D.adsState){case -1:case 0:var c="ADS_STATE_NONE";break a;case 1:case 2:case 3:c="ADS_STATE_PLAYING";break a;default:c="ADS_STATE_UNKNOWN"}X.call(C,_.bK("playerStateEntity",FWv,{key:FWv,playerState:GhJ(D.playerState),adsState:c,videoId:D.videoId}))};
_.yD.prototype.onPlayerStateChange=function(D){var C=this,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(C.JSC$23709_watchApi.playerApi,2);X=c.yieldResult;if(C.isDisposed())return c.return();C.playerState=D;C.videoId=X.getVideoData().video_id;V_N(C);_.t_(c)})};
_.yD.prototype.onAdStateChange=function(D){this.adsState=D;V_N(this)};
_.yD.prototype.onAdSkip=function(){this.adsState=0;V_N(this)};
_.yD.prototype.onVideoDataChange=function(D){D.type==="newdata"&&(this.adsState=-1,V_N(this))};_.HHd=function(D){_.nF.call(this);var C=this;this.JSC$23713_watchApi=D;this.enableExternalPlaylistPanelInPlayer=_.b("delhi_web_player_use_external_playlist_panel");_.iX().resolve(_.iP).setPlayer(this.JSC$23713_watchApi.getElement("PLAYER"));D=this.JSC$23713_watchApi.subscribeToActiveChanged(function(X){C.onActiveChanged(X)});
this.addOnDisposeCallback(D);TLB(this)};
_.h(_.HHd,_.nF);var TLB=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return D.enableExternalPlaylistPanelInPlayer?c.yield(D.JSC$23713_watchApi.playerApi,2):c.return();C=c.yieldResult;X=function(){if(D.playlistPanelElement)D.playlistPanelElement.onToggleExpanded()};
C.addEventListener("onToggleExternalPlaylistPanel",X);D.addOnDisposeCallback(function(){C.removeEventListener("onToggleExternalPlaylistPanel",X)});
_.t_(c)})};
_.HHd.prototype.onActiveChanged=function(D){var C=this,X=_.iX().resolve(_.iP),c=function(){J9d(C)};
D?(this.playlistPanelElement=this.JSC$23713_watchApi.getElement("PLAYLIST_PANEL"))?(X.setPlaylistComponent(this.playlistPanelElement),X.addEventListener("yt-playlist-data-updated",c),this.addOnDisposeCallback(function(){X.removeEventListener("yt-playlist-data-updated",c)}),J9d(this)):_.CC(Error("gp")):(X.removeEventListener("yt-playlist-data-updated",c),X.cancelVideoSkip())};
var J9d=function(D){var C=_.iX().resolve(_.iP);D.JSC$23713_watchApi.provideRenderingData("PLAYLIST",C.getPlaylistData())};_.nv=function(D){_.nF.call(this);var C=this;this.JSC$23716_watchApi=D;this.onPageScroll=function(){C.scrollThrottle.fire();C.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Al(this.onThrottledScroll,200,this);_.hR(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Al(this.onMastheadThrottledScroll,50,this);_.hR(this,this.mastheadScrollThrottle);this.animation=new _.mi(function(X){C.JSC$23716_watchApi.getRoot().setScrollTop(X)});
D=_.dX(_.fe(),_.Nn,function(){C.onFullscreenChanged()});
this.addOnDisposeCallback(D);zcv(this);jEf(this);this.onThrottledScroll()};
_.h(_.nv,_.nF);
_.nv.prototype.onFullscreenChanged=function(){var D=this,C=this.JSC$23716_watchApi.getRoot();!this.pageScrollElement&&C.pageScrollElement?(this.pageScrollElement=C.pageScrollElement,C.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){D.pageScrollElement&&D.pageScrollElement.removeEventListener("scroll",D.onPageScroll)})):this.pageScrollElement&&!C.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var zcv=function(D){window.addEventListener("scroll",D.onPageScroll);D.addOnDisposeCallback(function(){window.removeEventListener("scroll",D.onPageScroll)})},jEf=function(D){D.JSC$23716_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(C){a:{var X;
if(X=D.JSC$23716_watchApi.getRoot().contains(C)&&!D.animation.isAnimating()){X=C.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var c,W,p=(C==null?void 0:(c=C.parentElement)==null?void 0:(W=c.parentElement)==null?void 0:W.id)==="fixed-secondary";X=!(X&&p)}if(X){if(_.b("kevlar_watch_scroll_manager_absolute_offset_killswitch"))c=C.offsetTop;else for(c=0,W=C;W!==null;)c+=W.offsetTop,c-=W.scrollTop,W=W.offsetParent;W=c;c=W-24;C=W+C.offsetHeight+24;W=D.JSC$23716_watchApi.getRoot().getPageScrollingElement();
X=D.JSC$23716_watchApi.getRoot().getScrollTop();p=X+W.clientHeight-56;if(c<X+56)C=c-56;else if(C>p)C-=W.clientHeight;else break a;D.scrollWatchTo(Math.max(0,C),!0)}}});
D.addOnDisposeCallback(function(){D.JSC$23716_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.nv.prototype.onThrottledScroll=function(){var D=_.fe(),C=D.dispatch,X=this.JSC$23716_watchApi.getRoot().getScrollTop();C.call(D,_.oI({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:X}}))};
_.nv.prototype.onMastheadThrottledScroll=function(){this.JSC$23716_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23716_watchApi.getRoot().getScrollTop())};
_.nv.prototype.scrollWatchTo=function(D,C){(C===void 0?0:C)?this.animation.start(this.JSC$23716_watchApi.getRoot().getScrollTop(),Math.max(0,D),500):this.JSC$23716_watchApi.getRoot().setScrollTop(D)};_.fgv=function(D){_.nF.call(this);var C=this;this.JSC$23719_watchApi=D;var X=this.JSC$23719_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){M_B(C)}),c=this.JSC$23719_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){q2H(C)});
this.addOnDisposeCallback(function(){C.JSC$23719_watchApi.unsubscribeByKey(X);C.JSC$23719_watchApi.unsubscribeByKey(c)});
M_B(this);q2H(this)};
_.h(_.fgv,_.nF);
var M_B=function(D){var C,X,c,W=(c=(C=D.JSC$23719_watchApi.getPlayerResponse())==null?void 0:(X=C.videoDetails)==null?void 0:X.title)!=null?c:"";D.JSC$23719_watchApi.dispatchEvent("yt-update-title",W)},q2H=function(D){var C,X,c,W,p,g,a,O=(a=((g=(C=D.JSC$23719_watchApi.getWatchNextResponse())==null?void 0:(X=C.contents)==null?void 0:(c=X.twoColumnWatchNextResults)==null?void 0:(W=c.results)==null?void 0:(p=W.results)==null?void 0:p.contents)!=null?g:[]).find(function(P){return!!P.videoPrimaryInfoRenderer}))==null?
void 0:a.videoPrimaryInfoRenderer;
(C=_.Mh(O==null?void 0:O.title))&&D.JSC$23719_watchApi.dispatchEvent("yt-update-title",C)};_.Rc2=function(D){_.nF.call(this);this.JSC$23722_watchApi=D;dz2(this)};
_.h(_.Rc2,_.nF);var dz2=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23722_watchApi.playerApi,2);C=c.yieldResult;X=function(){D.onYpcContentRequest()};
C.addEventListener("onYpcContentRequest",X);D.addOnDisposeCallback(function(){C.removeEventListener("onYpcContentRequest",X)});
_.t_(c)})};
_.Rc2.prototype.onYpcContentRequest=function(){var D,C,X,c,W,p=(D=this.JSC$23722_watchApi.getWatchNextResponse())==null?void 0:(C=D.contents)==null?void 0:(X=C.twoColumnWatchNextResults)==null?void 0:(c=X.secondaryResults)==null?void 0:(W=c.secondaryResults)==null?void 0:W.offerModule,g,a,O,P;D=(P=(O=(a=(g=p==null?void 0:p.episodeOfferModuleRenderer)!=null?g:p==null?void 0:p.movieOfferModuleRenderer)!=null?a:p==null?void 0:p.unlimitedOfferModuleRenderer)!=null?O:p==null?void 0:p.liveOfferModuleRenderer)!=
null?P:p==null?void 0:p.tvfilmOfferModuleRenderer;var k,u,Q;p=(Q=p==null?void 0:(k=p.tvfilmOfferModuleRenderer)==null?void 0:(u=k.actionButtons)==null?void 0:u.length)!=null?Q:0;u=Math.max(p-1,0);var B,K,L;k=(L=D==null?void 0:(B=D.offerButton)==null?void 0:B.buttonRenderer)!=null?L:D==null?void 0:(K=D.actionButtons)==null?void 0:K[u].buttonRenderer;var t,Y;(B=(Y=(t=k==null?void 0:k.navigationEndpoint)!=null?t:k==null?void 0:k.serviceEndpoint)!=null?Y:k==null?void 0:k.command)&&_.I3.instance.resolveCommand(B)};
}catch(e){_._DumpException(e)}
try{
var NiG,eO3,LZk;_.mw3=function(){var D=_.ZI.clone(xwt),C;return(new _.mM(function(X,c){D.onSuccess=function(W){_.aS3(W)?X(new LZk(W)):c(new _.sok("Request failed, status="+_.KC(W),"net.badstatus",W))};
D.onError=function(W){c(new _.sok("Unknown request error","net.unknown",W))};
D.onTimeout=function(W){c(new _.sok("Request timed out","net.timeout",W))};
C=_.eq("//googleads.g.doubleclick.net/pagead/id",D)})).thenCatch(function(X){if(X instanceof _.wE){var c;
(c=C)==null||c.abort()}return _.x7(X)})};
_.Ent=function(D){a:{var C="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(C="EMBEDDED_PLAYER_MODE_PFL");var X=D.raw_embedded_player_response;if(!X&&(D=D.embedded_player_response))try{X=JSON.parse(D)}catch(W){break a}if(X)b:for(var c in eO3)if(eO3[c]==X.embeddedPlayerMode){C=eO3[c];break b}}return C==="EMBEDDED_PLAYER_MODE_PFL"};
_.tYP=function(){if(_.b("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.qvm())return Error("wf");var D=_.q6("PLAYER_VARS",{});if(_.ZI.get(D,"privembed",!1)=="1")return Error("xf");if(_.Ent(D))return Error("yf")};
NiG=function(D){switch(D){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:_.qf(D,"unknown result type")}};
_.Yso=function(D,C,X){C=_.dlo[C];X={detected:D===0,source:C.ycE,detectionResult:NiG(D),contentCpn:X};_.zu("biscottiBasedDetection",X);_.pb4.increment(C.ycE,D);C.pYl!==void 0&&_.M6("CATSTAT",_.q_j(D,C))};
_.yAG=function(D,C){var X={};X.key=D;X.value=C;return _.kOR().then(function(c){return new Promise(function(W,p){try{var g=c.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(X);g.onsuccess=function(){W()};
g.onerror=function(){p()}}catch(a){p(a)}})})};
_.wrG=function(){var D=_.BK("user_engagement_experiments_rate_limit_ms"),C=nnG.get("last-user-engagement-exp-trigger-timestamp");return!C||(0,_.kh)()>=C+D?(nnG.set("last-user-engagement-exp-trigger-timestamp",(0,_.kh)()),!0):!1};
_.Oo=function(D,C,X,c,W){C=C===void 0?null:C;X=X===void 0?null:X;c=c===void 0?null:c;W=W===void 0?null:W;D={youThereEventType:D};X&&(D.lactThresholdMs=X.lactThresholdMs,D.mediaPosSec=X.promptDelaySec,D.lactServerRequestMs=X.lactServerRequestMs,D.triggerReason=X.triggerReason);W!=null&&(D.renderingMediaPosSec=Math.round(W));C||(C=_.LN());C&&(D.clientScreenNonce=C);c&&(D.clientPlaybackNonce=c);_.zu("youThere",D)};
eO3={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"};LZk=function(D){this.xhr=D};
_.sok=function(D,C,X){_.Dn.call(this,D+", errorCode="+C);this.errorCode=C;this.xhr=X;this.name="PromiseAjaxError"};
_.h(_.sok,_.Dn);var xwt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var nnG=new _.Do("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.hO1=function(D){return _.oI({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:D})};
}catch(e){_._DumpException(e)}
try{
var Tz,LZd,mwj,eOj,EnN,tY2,Ysv,HGf,JAB,zOB,Niz,sod,FZ6,wrz,qsD;_.xwN=function(){var D=window.location.hash;D.charAt(0)==="#"&&(D=D.charAt(1)==="!"?D.substring(2):D.substring(1));return _.Sq(D)};
Tz=function(D,C,X){var c;return _.I(function(W){if(W.nextAddress==1)return W.yield(C(),2);c=W.yieldResult;X(c,D);_.t_(W)})};
LZd=function(){return _.I(function(D){return D.nextAddress==1?D.yield((_.tYP()!==void 0?_.x7(Error("zf")):_.mw3()).then(function(){return 1},function(C){if(C.message==="Biscotti id is disabled")return 3;
_.fQ("Failed fetching bid");return 0}),2):D.return(D.yieldResult)})};
mwj=function(){var D=_.Dg("NTd4dXhkNnd5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjdG1xZQ=="),C=_.Dg("czVqM2lmcmFtZSM0dzZiODNjcw==");return document.querySelector(C+sod+D)?0:1};
eOj=function(){return _.ySd(_.hh)};
EnN=function(){return _.nd3()===0?0:_.wOo()};
tY2=function(){return _.Tun(_.cSj([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Ysv=function(){return _.Lm3(Niz)};
_.yA6=function(D){_.I(function(C){switch(C.nextAddress){case 1:return C.yield(Tz("b.f_",LZd,D),2);case 2:return C.yield(Tz("j.s_",_.hmr,D),3);case 3:return C.yield(Tz("r.s_",_.b6o,D),4);case 4:return C.yield(Tz("e.h_",Ysv,D),5);case 5:if(!_.b("ab_det_sc_inj")){C.jumpTo(6);break}return C.yield(Tz("s.i_",_.Num,D),6);case 6:if(_.b("ab_deg_unex_thr")){C.jumpTo(8);break}return C.yield(Tz("a.o_",_.EdW,D),8);case 8:if(_.b("ks_get_o_pp")){C.jumpTo(10);break}return C.yield(Tz("g.o_",_.emr,D),10);case 10:if(_.b("ks_det_gpbl")){C.jumpTo(12);
break}return C.yield(Tz("p.i_",_.mlR,D),12);case 12:return C.yield(Tz("f.i_",_.Idj,D),14);case 14:return C.yield(Tz("a.b_",_.Q45,D),15);case 15:return C.yield(Tz("p.m_",_.PIm,D),16);case 16:if(!_.b("ab_det_el_h_v2")){C.jumpTo(17);break}return C.yield(Tz("n.h_",tY2,D),17);case 17:return C.yield(Tz("o.p_",eOj,D),19);case 19:return C.yield(Tz("e.i_",mwj,D),20);case 20:if(_.b("ab_det_apm"))return C.yield(Tz("o.a_",EnN,D),0);C.jumpTo(0)}})};
_.nn6=function(D,C){D={videoId:D};C&&(D.playlistId=C);return D};
_.ZGv=function(){if(_.qvm()){var D=_.q6("PLAYER_VARS",{});if(_.ZI.get(D,"privembed",!1)!="1"&&!_.Ent(D)){var C=function(){wrz=!0;"google_ad_status"in window?_.M6("DCLKSTAT",1):_.M6("DCLKSTAT",2)};
try{_.yy(_.ptt,C)}catch(X){}FZ6.push(_.qX.addLowPriorityJob(function(){if(!(wrz||"google_ad_status"in window)){try{_.GEj(_.ptt.toString(),C)}catch(X){}wrz=!0;_.M6("DCLKSTAT",3)}},5E3))}}};
_.GAz=function(D,C,X){X=X===void 0?!1:X;var c=Math.max(D.width,_.yY6);if(_.b("kevlar_watch_feed_big_thumbs")&&D.width>=1550-_.CB()&&D.height>=800)c-=_.VeB;else if(D.width>=_.Ys){var W=_.nl6+_.wLD+_.NE;_.b("kevlar_watch_feed_big_thumbs")&&(W=_.Guv);c-=W}else c-=_.nl6;c=Math.min(c,_.FMB);W=240;X&&(W=380);C<.5624||(!_.b("kevlar_watch_flexy_disable_small_window_sizing")&&(D.height<630&&D.width>=657||D.height>=630&&D.width>=_.Ys&&D.width<1327)?W=360:!_.b("kevlar_watch_flexy_disable_large_window_sizing")&&
D.height>=630&&D.width>=1327&&(W=480));var p=Math.min(c*C,D.height-(56+_.YU$+_.ZQf));p=Math.max(p,W);C<1?c=p/C:D.width>=_.Ys&&(c=_.GAz(D,.5625,X).width);return new _.me(Math.round(c),Math.round(p))};
_.VYU=function(D){var C=0;D.indexOf("h")!=-1&&(D=D.split("h"),C=D[0]*60*60,D=D[1]);D.indexOf("m")!=-1&&(D=D.split("m"),C=D[0]*60+C,D=D[1]);D.indexOf("s")!=-1?(D=D.split("s"),C=D[0]*1+C):C=D*1+C;return C};
_.TiN=function(){_.BK("service_worker_push_logged_out_prompt_watches")!=-1&&_.UR("WatchCount").then(function(D){D>=100||_.yAG("WatchCount",D+1)})};
HGf=function(D){var C=D.externalVideoId||"";return C?D.isShortsEligible?"https://www.youtube.com/shorts/"+C:"https://www.youtube.com/watch?v="+C:""};
JAB=function(D){var C=[];D.viewCount&&C.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:D.viewCount});D.likeCount&&C.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:D.likeCount});return C};
zOB=function(D){var C,X,c={"@context":"https://schema.org","@type":"VideoObject",description:_.Mh(D.description),duration:"PT"+(D.lengthSeconds||"0")+"S",embedUrl:D.embed?D.embed.iframeUrl:"",name:_.Mh(D.title),thumbnailUrl:((C=D.thumbnail)==null?void 0:(X=C.thumbnails)==null?void 0:X.map(function(k){return k&&k.url||""}))||[],
uploadDate:D.publishDate};_.b("mweb_video_schema_id_killswitch")||(c["@id"]=HGf(D));C=JAB(D);C.length&&(c.interactionStatistic=C);D.category&&(c.genre=D.category);D.ownerChannelName&&(c.author=D.ownerChannelName);D.liveBroadcastDetails&&(c.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:D.liveBroadcastDetails.startTimestamp,endDate:D.liveBroadcastDetails.endTimestamp}]);if(D.learningResource){D=D.learningResource;c["@type"]=["VideoObject","LearningResource"];var W;if((W=D.learningResourceType)==
null?0:W.length)c.learningResourceType=D.learningResourceType[0];var p;if((p=D.educationalAlignment)==null?0:p.length)c.educationalAlignment={"@type":"AlignmentObject",targetName:D.educationalAlignment[0]};var g;if((g=D.educationalLevel)==null?0:g.length){W=D.educationalLevel[0];var a;if((a=D.educationalLevelCountry)==null?0:a.length)W+=" ("+D.educationalLevelCountry+")";c.educationalLevel=W}var O,P;if(((O=D.learningResourceType)==null?0:O.length)&&D.learningResourceType[0]==="Problem walkthrough"&&
((P=D.problemDescriptions)==null?0:P.length))for(c.hasPart=[],a=_.U(D.problemDescriptions),O=a.next();!O.done;O=a.next())W=O.value,O=W.problemDescriptionText,P=W.startOffset,W=W.url,O&&P!==void 0&&W&&c.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:O,text:O,startOffset:P,url:W})}return c};
_.jo2=function(D){return _.oI({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:D}})};
Niz=[[["ODBwcmltYXJ5IzE2azN4bHdxdm0=",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjeDUwN3J2bnB6ZTR3eXRkLXR3by1j","c2NvcGUjaGNreXVnNjZrZ3Nqc3R5bGUt"],null],["YWQtYWQjd3dvamNkcjRkZGRtbWFzdGhl",["eXhydHlkeHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjbHRvdms="],null],[null,["czlyaDduNnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjcWtmdGQ=","c2NvcGUjcHRnbmlxczIxOGxxc3R5bGUt"],null],[null,["cXlydXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjcDdicGc0MXU=","c2NvcGUjcTBhdWt5c2RyNWFhc3R5bGUt"],null],[null,["dHJxMXhtazJ4eXRkLWFkLXNsb3QtcmVuZGVyZXIjMmJt"],
null]],[["ZXItYWRzI2Z2OTgzaTlvdnI5ZXBsYXk=",null,null]],[[null,null,"cGIwb3Z5dGxyLWJhbm5lci1jdGEtcmVuZGVyZXIjcHczanJvdA=="]]];sod="#";FZ6=[];wrz=!1;_.MYv=["engagement-panel-ads"];qsD=new _.A7("updateSentimentBarStateCommand");_.fJD=new _.A7("showSurveyCommand");_.H5=new _.A7("changeMarkersVisibilityCommand");var RO6,lJN,cvm,Xcv,CO$,Ji;_.dwf=function(D,C){this.playerProvider_=D;this.actionSenderElement_=C;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.dwf.prototype.reset=function(){RO6(this);this.isUserPredictedAbsent_=!1};
RO6=function(D,C){!D.youThereData_||D.showWarningJob_||C!==void 0&&C||(_.Oo("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.LN(),D.youThereData_,D.clientPlaybackNonce_),_.je());_.qX.cancelJob(D.showWarningJob_);D.showWarningJob_=0;_.qX.cancelJob(D.showBlockingWarningJob_);D.showBlockingWarningJob_=0;_.qX.cancelJob(D.pausePlaybackJob_);D.pausePlaybackJob_=0;D.youThereData_=null;D.clientPlaybackNonce_=void 0;D.inYouThereFlow_=!1};
_.D_B=function(D,C){var X,c,W;_.I(function(p){if(p.nextAddress==1)return D.reset(),p.yield(D.playerProvider_().getPlayerPromise(),2);X=p.yieldResult;D.clientPlaybackNonce_=X.getVideoData().cpn;D.youThereData_=C.configData.youThereData;if(!D.youThereData_)return p.return();if(D.youThereData_.triggerReason&&D.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.wrG())return _.Oo("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.LN(),D.youThereData_,D.clientPlaybackNonce_),p.return();c=D.youThereData_.promptDelaySec;
W=X.getCurrentTime();D.showWarningJob_=_.qX.addLowPriorityJob(function(){return _.I(function(g){D.showWarningJob_=0;return g.yield(lJN(D),0)})},Math.max(c-W,0)*1E3);
_.t_(p)})};
lJN=function(D){var C,X,c,W,p,g;return _.I(function(a){if(a.nextAddress==1)return a.yield(D.playerProvider_().getPlayerPromise(),2);if(a.nextAddress!=3)return C=a.yieldResult,X=C.getCurrentTime(),a.yield(CO$(D),3);c=a.yieldResult;if(!c||!D.youThereData_)return a.return();if(_.b("check_user_lact_at_prompt_shown_time_on_web")&&(W=parseInt(D.youThereData_.lactThresholdMs,10),_.kl()<W))return _.Oo("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.LN(),D.youThereData_,D.clientPlaybackNonce_),a.return();if(D.youThereData_.playbackPauseDelayMs<=
0)return Xcv(D),a.return();!_.b("external_fullscreen")&&(p=_.qF())&&(D.ignoreFullscreenExitUserActivity_=!0,_.qX.addLowPriorityJob(function(){D.ignoreFullscreenExitUserActivity_=!1},2E3),_.fN(p));
D.youThereData_.showToastWarningPrompt&&(Ji(D,D.youThereData_.showWarningActions),D.inYouThereFlow_=!0,_.Oo("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.LN(),D.youThereData_,D.clientPlaybackNonce_,X),_.Oo("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.LN(),D.youThereData_,D.clientPlaybackNonce_,X));g=0;D.youThereData_.blockingPromptDelayMs&&(g=D.youThereData_.blockingPromptDelayMs);D.showBlockingWarningJob_=_.qX.addLowPriorityJob(function(){return _.I(function(O){D.showBlockingWarningJob_=0;return O.yield(cvm(D),
0)})},g);
_.t_(a)})};
cvm=function(D){var C,X,c;return _.I(function(W){if(W.nextAddress==1)return W.yield(CO$(D),2);C=W.yieldResult;if(!D.youThereData_)return W.return();C&&(D.youThereData_.showBlockingWarningAction&&(_.Oo("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.LN(),D.youThereData_,D.clientPlaybackNonce_),(X=_.r(D.youThereData_.showBlockingWarningAction,_.pt))?Ji(D,X.commands):Ji(D,[D.youThereData_.showBlockingWarningAction]),D.inYouThereFlow_=!0),c=D.youThereData_.playbackPauseDelayMs,D.pausePlaybackJob_=
_.qX.addLowPriorityJob(function(){return _.I(function(p){D.pausePlaybackJob_=0;return p.yield(Xcv(D),0)})},c));
_.t_(W)})};
Xcv=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(CO$(D),2);C=X.yieldResult;if(!D.youThereData_)return X.return();C&&(_.Oo("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.LN(),D.youThereData_,D.clientPlaybackNonce_),Ji(D,D.youThereData_.showPausedActions),D.inYouThereFlow_=!0);_.t_(X)})};
_.dwf.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var D=_.r(this.youThereData_.userActiveDuringFlowAction,_.pt);D?Ji(this,D.commands):Ji(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Oo("YOU_THERE_EVENT_TYPE_LACT_RESET",_.LN(),this.youThereData_,this.clientPlaybackNonce_),_.je());RO6(this,!0)}_.o7m(this,!1)};
_.WpU=function(D){_.Oo("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.LN(),D.youThereData_,D.clientPlaybackNonce_)};
CO$=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(D.playerProvider_().getPlayerPromise(),2);C=c.yieldResult;X=C.getPlayerState();return c.return(X==-1||X==1||X==3)})};
_.o7m=function(D,C){var X;_.I(function(c){if(c.nextAddress==1){if(D.isUserPredictedAbsent_==C)return c.jumpTo(0);D.isUserPredictedAbsent_=C;return c.yield(D.playerProvider_().getPlayerPromise(),3)}X=c.yieldResult;X.setUserEngagement(C);C&&_.Oo("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.LN(),D.youThereData_,D.clientPlaybackNonce_);_.t_(c)})};
Ji=function(D,C){if(_.b("handle_service_request_actions")||_.b("kevlar_youthere_service_endpoint_actions_killswitch"))_.o7(D.actionSenderElement_,C,D.actionSenderElement_);else{C=_.U(C);for(var X=C.next();!X.done;X=C.next())X=X.value,X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.sendPost?_.cE(D.actionSenderElement_,[X]):_.o7(D.actionSenderElement_,[X],D.actionSenderElement_)}};var pcj;var S4H;var zz=function(){var D=_.w.apply(this,arguments)||this;D.systemIcons=_.b("kevlar_system_icons");D.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return D};
_.h(zz,_.w);zz.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var D=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(D=this.data.percentIfLiked||0,this.activated=!0):(D=this.data.percentIfIndifferent||0,this.activated=!1);_.SY(this.hostElement).querySelector("#like-bar").style.width=D+"%"}};
zz.prototype.handleUpdateSentimentBarStateCommand=function(D){this.data&&this.set("data.likeStatus",_.r(D,qsD).likeStatus)};
zz.prototype.observeLikeStatus=zz.prototype.observeLikeStatus;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],zz.prototype,"activated",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],zz.prototype,"systemIcons",void 0);_.V([_.vr("data.likeStatus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zz.prototype,"observeLikeStatus",null);_.V([_.yj({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],zz);
_.G(zz,"ytd-sentiment-bar-renderer",function(){if(S4H!==void 0)return S4H;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return S4H=D},{mode:1});var U_U;var jE=function(){var D=_.w.apply(this,arguments)||this;D.small=!0;return D};
_.h(jE,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],jE.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],jE.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jE.prototype,"small",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],jE);
_.G(jE,"ytd-video-view-count-renderer",function(){if(U_U!==void 0)return U_U;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return U_U=D},{mode:_.Wc("kevlar_poly_si_batch_j080")?1:2});var Mt=function(){var D=_.w.apply(this,arguments)||this;D.infoFormattedStrings=[];D.wrapVideoActions=_.b("kevar_watch_wrap_video_actions");D.hideSentimentBar=_.b("kevlar_watch_hide_sentiment_bar");D.actionMap={};return D};
_.h(Mt,_.w);_.S=Mt.prototype;_.S.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.b("web_modern_buttons"),forceIconButton:!_.b("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.S.dataChanged=function(){_.b("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.S.computeInfoFormattedStrings=function(D){if(!D)return[];var C=[];D.dateText&&C.push(D.dateText);D.stationName&&C.push(D.stationName);D.rating&&C.push(D.rating);D.startEndTimeTemplate&&D.startTimeUtcMillis&&D.endTimeUtcMillis&&C.push(_.jV(_.zGv(_.Mh(D.startEndTimeTemplate),Number(D.startTimeUtcMillis),Number(D.endTimeUtcMillis))));D.upNextProgramText&&C.push(D.upNextProgramText);return C};
_.S.scheduleInitialUpdatedMetadataRequest=function(){var D,C=(D=this.data)==null?void 0:D.updatedMetadataEndpoint;if(C){var X;D=Number((X=_.r(C,_.j1c))==null?void 0:X.initialDelayMs);X=isNaN(D)?250:D;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),X)}};
_.S.setSentimentBarWidth=function(){var D=this;_.A0(this,function(){var C=_.SY(D.hostElement).querySelector("ytd-menu-renderer");if(C){C=C.topLevelButtons;for(var X=0,c=0;c<C.length;c++){var W=C[c],p=D.get("toggleButtonSupportedData.toggleButtonIdData.id",W.data);if(p==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||p==="TOGGLE_BUTTON_ID_TYPE_LIKE")X+=W.clientWidth+8;else break}X&&(D.sentiment.style.width=X-8+" px")}})};
_.S.fetchUpdatedMetadata=function(D){var C;D&&(C={continuation:D});var X;(D=(X=this.data)==null?void 0:X.updatedMetadataEndpoint)&&_.iX().resolve(_.uX).resolveCommand(D,{form:Object.assign({},C,{element:this.hostElement})})};
_.S.onYtServiceRequestSent=function(D,C){C.endpoint&&_.r(C.endpoint,_.XI)&&(this.hasUpdateSentimentBarStateCommands()&&!_.b("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.r(C.endpoint,_.XI).status),this.setSentimentBarWidth())};
_.S.hasUpdateSentimentBarStateCommands=function(){var D,C,X,c,W=(c=(D=this.data)==null?void 0:(C=D.videoActions)==null?void 0:(X=C.menuRenderer)==null?void 0:X.topLevelButtons)!=null?c:[];D=_.U(W);for(C=D.next();!C.done;C=D.next()){C=C.value;W=c=X=void 0;var p=(X=C.toggleButtonRenderer)==null?void 0:(c=X.toggleButtonSupportedData)==null?void 0:(W=c.toggleButtonIdData)==null?void 0:W.id;if(p==="TOGGLE_BUTTON_ID_TYPE_LIKE"||p==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){c=X=void 0;C=(c=_.r((X=C.toggleButtonRenderer)==
null?void 0:X.defaultServiceEndpoint,_.pt))==null?void 0:c.commands;if(!C)break;C=_.U(C);for(X=C.next();!X.done;X=C.next())if(_.r(X.value,qsD))return!0}}return!1};
_.S.onYtServiceRequestCompleted=function(D,C){var X;(D=(X=C.data)==null?void 0:X.loggingDirectives)&&_.fvW(_.iO(),D);this.get("continuation.timedContinuationData",C.data)&&this.data&&this.data.updatedMetadataEndpoint&&(C=C.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,C.continuation),C.timeoutMs))};
_.S.computeHasDateText=function(D){return!!D&&!!D.dateText};
_.$a.Object.defineProperties(Mt.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return!((c=(D=this.data)==null?void 0:(C=D.videoActions)==null?void 0:(X=C.menuRenderer)==null?void 0:X.flexibleItems)==null||!c.length)}}});
Mt.prototype.onYtServiceRequestCompleted=Mt.prototype.onYtServiceRequestCompleted;Mt.prototype.onYtServiceRequestSent=Mt.prototype.onYtServiceRequestSent;Mt.prototype.dataChanged=Mt.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.xZ.YtTaskEmitterBehavior),_.z("design:type",Object)],Mt.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Mt.prototype,"data",void 0);_.V([_.n({computed:"computeInfoFormattedStrings(data)"}),_.z("design:type",Array)],Mt.prototype,"infoFormattedStrings",void 0);
_.V([_.n({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Mt.prototype,"hasDateText",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mt.prototype,"wrapVideoActions",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mt.prototype,"hideSentimentBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Mt.prototype,"flexMenuEnabled",null);
_.V([_.kn("#sentiment"),_.z("design:type",Object)],Mt.prototype,"sentiment",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mt.prototype,"dataChanged",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Mt.prototype,"onYtServiceRequestSent",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],Mt.prototype,"onYtServiceRequestCompleted",null);
_.G(Mt,"ytd-video-primary-info-renderer",function(){if(pcj===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);pcj=D}D=pcj;return D},{mode:1});var g7U;var qt=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.h(qt,_.w);_.S=qt.prototype;_.S.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"}}}};
_.S.dataChanged=function(){var D;this.descriptionToggled=!((D=this.data)==null||!D.defaultExpanded);var C;this.collapsed=this.descriptionAlwaysCollapsed||!((C=this.data)==null?0:C.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Ia(110509);this.showLessClientVe=_.Ia(110510);D=_.LN();C=_.xr();D&&C&&_.ZS(D,C,[this.showMoreClientVe,this.showLessClientVe])};
_.S.onYtExpanderMoreTapped=function(){var D,C=(D=this.data)==null?void 0:D.showMoreCommand;C&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(C);(D=_.LN())&&this.showMoreClientVe&&_.HE(D,this.showMoreClientVe)};
_.S.onYtExpanderLessTapped=function(){var D=_.LN();D&&this.showLessClientVe&&_.HE(D,this.showLessClientVe);var C;(D=(C=this.data)==null?void 0:C.showLessCommand)&&this.componentBehavior.resolveCommand(D)};
_.S.handleUpdateDateTextAction=function(D){this.data&&this.data.dateText&&this.set("data.dateText",_.r(D,_.LMB).dateText)};
_.S.handleUpdateDescriptionAction=function(D){if(D=_.r(D,_.HuN))D.isEmpty||!D.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.e6(D.description)):this.set("data.description",D.description)};
_.S.onYtChangeEngagementPanelVisibilityAction=function(D){if(_.b("web_structured_description_show_more")||_.b("web_engagement_panel_open_description")){var C,X=(C=_.r(D,_.Hr5))==null?void 0:C.targetId,c;D=((c=_.r(D,_.Hr5))==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";X==="engagement-panel-structured-description"&&D&&(this.descriptionToggled=!0)}};
_.S.updateCollapsedFromBinding=function(D){this.collapsed=D.detail.value};
_.S.updateDescriptionToggledFromBinding=function(D){this.descriptionToggled=D.detail.value};
_.S.updateCanCollapseFromBinding=function(D){this.canCollapse=D.detail.value};
_.$a.Object.defineProperties(qt.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.data)==null?void 0:(C=D.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer;return!!X&&!!X.rows&&X.rows.length>X.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.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}}});
qt.prototype.onYtExpanderLessTapped=qt.prototype.onYtExpanderLessTapped;qt.prototype.onYtExpanderMoreTapped=qt.prototype.onYtExpanderMoreTapped;qt.prototype.dataChanged=qt.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],qt.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qt.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],qt.prototype,"collapsed",void 0);_.V([_.n(),_.z("design:type",Boolean)],qt.prototype,"descriptionToggled",void 0);
_.V([_.n(),_.z("design:type",Boolean)],qt.prototype,"canCollapse",void 0);_.V([_.n(),_.z("design:type",Object)],qt.prototype,"subscribeButtonData",void 0);_.V([_.n(),_.z("design:type",Number)],qt.prototype,"descriptionCollapsedHeight",void 0);_.V([_.n(),_.z("design:type",Object)],qt.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.n({value:function(){return _.b("web_watch_description_always_collapsed")}}),
_.z("design:type",Boolean)],qt.prototype,"descriptionAlwaysCollapsed",void 0);_.V([_.kn("#description"),_.z("design:type",HTMLDivElement)],qt.prototype,"description",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qt.prototype,"dataChanged",null);_.V([_.$n("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qt.prototype,"onYtExpanderMoreTapped",null);
_.V([_.$n("yt-expander-less-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qt.prototype,"onYtExpanderLessTapped",null);_.V([_.e("data.metadataRowContainer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qt.prototype,"metadataCollapsible",null);_.V([_.e("data","structuredDescriptionContentRenderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qt.prototype,"hasInlineStructuredDescription",null);
_.V([_.e("data.attributedDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qt.prototype,"hasAttributedDescription",null);_.V([_.e("hasInlineStructuredDescription","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qt.prototype,"loadStructuredDescription",null);_.V([_.e("data","structuredDescriptionContentRenderer","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qt.prototype,"showInlineStructuredDescription",null);
_.V([_.e("data","hasInlineStructuredDescription","metadataCollapsible"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qt.prototype,"descriptionAlwaysCollapsible",null);
_.G(qt,"ytd-video-secondary-info-renderer",function(){if(g7U===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);g7U=D}D=g7U;return D},{mode:2});var aRz;var fv=function(){return _.w.apply(this,arguments)||this};
_.h(fv,_.w);fv.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:_.b("web_modern_buttons"),forceIconButton:!_.b("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
fv.prototype.activate=function(D){D.appendTo(this.player);D.getPlayerPromise().then(function(C){C.setMinimized(!0)});
this.active=!0};
fv.prototype.deactivate=function(){var D=this.player.firstElementChild;D.getPlayerPromise().then(function(C){C.setMinimized(!1)});
this.active=!1;return D};
fv.prototype.onScrollUpTap=function(){var D=_.iX().resolve(_.lu).getCurrentPage();D&&D.setScrollTop(0)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],fv.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],fv.prototype,"active",void 0);
_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.z("design:type",Boolean)],fv.prototype,"darkLaunch",void 0);_.V([_.kn("#player"),_.z("design:type",HTMLDivElement)],fv.prototype,"player",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],fv);
_.G(fv,"ytd-miniplayer-bar-renderer",function(){if(aRz!==void 0)return aRz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return aRz=D},{mode:1});_.CI(_.F(function(D){var C=_.aX("script");_.Jw(function(){var X;if(X=JSON)X=zOB(D.data()),X=_.pK(JSON.stringify(X).replace(/</g,"\\u003C"));var c=D.data(),W=_.Mh(c.title).trim().length===0,p=!c.publishDate||c.publishDate.trim().length===0,g,a,O,P,k=!((g=c.thumbnail)==null?0:(a=g.thumbnails)==null?0:a.length)||!((O=c.thumbnail)==null?0:O.thumbnails[0].url)||((P=c.thumbnail)==null?void 0:P.thumbnails[0].url.trim().length)===0;C.value&&X&&!(W||p||k)&&_.Uu(C.value,X)},"Vy9K7b");
return _.A("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.A("script",{el:C,type:"application/ld+json"}))},"Io"),"player-microformat-renderer",{props:{data:_.R3}});
}catch(e){_._DumpException(e)}
try{
var DwD,CHm,cAD;_.lgd=function(D){return D.watch.watchWindowSize};
DwD=function(D,C){var X=document.querySelector(D);X?C(X):setTimeout(function(){DwD(D,C)},1E3)};
CHm=function(D,C,X,c){if(D.isLockupToWatchTransitionEnabled){if(C){var W={};W=(W["watch-next-appears"]="player-watch-next-loaded",W);W["lockup-to-watch"]=D.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";D.viewTransitionCoordinator.registerElement(C,W)}X&&(C={},D.viewTransitionCoordinator.registerElement(X,(C["lockup-to-watch"]="below-lockup-to-watch",C["watch-next-appears"]="below-watch-next-loaded",C)));c&&(X={},D.viewTransitionCoordinator.registerElement(c,
(X["watch-next-appears"]="secondary-watch-next-loaded",X)))}};
_.XrH=function(D){return _.oI({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:D}})};
cAD=new _.A7("webWatchNextResponseExtensionData");var WZv=function(D){_.nF.call(this);var C=this;this.JSC$23726_watchApi=D;this.observer=null;var X=this.JSC$23726_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){onj(C)});
this.addOnDisposeCallback(function(){C.JSC$23726_watchApi.unsubscribeByKey(X);C.observer&&(C.observer.disconnect(),C.observer=null)});
onj(this)};
_.h(WZv,_.nF);
var onj=function(D){var C,X,c,W,p;_.I(function(g){if(g.nextAddress==1){D.observer&&(D.observer.disconnect(),D.observer=null);C=D.JSC$23726_watchApi.getWatchNextResponse();if(!C)return g.return();X=_.r(C,cAD);return((c=X)==null?0:c.enableCreatorChatbot)&&X.creatorChannelId?_.b("enable_creator_chatbot_link_out")?g.yield((0,_.pCJ)("NSzT5"),6):g.yield((0,_.pCJ)("NSzT5"),5):g.jumpTo(0)}if(g.nextAddress!=6)return W=_.prD,W(X.creatorChannelId),DwD("ytd-watch-metadata",function(a){D.observer=new MutationObserver(function(){var O,
P;(O=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(P=O.closest("yt-button-view-model.ytd-menu-renderer"))==null||P.remove()});
D.observer.observe(a,{childList:!0,subtree:!0})}),g.jumpTo(0);
p=_.Ssv;p(X.creatorChannelId);_.t_(g)})};var wc=function(D){_.nF.call(this);this.JSC$23730_watchApi=D;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Uwd(this)};
_.h(wc,_.nF);var Uwd=function(D){_.I(function(C){if(C.nextAddress==1)return C.yield(gnv(D),2);aJB(D);_.t_(C)})},gnv=function(D){var C,X,c,W,p,g,a,O,P;
return _.I(function(k){if(k.nextAddress==1)return k.yield(D.JSC$23730_watchApi.playerApi,2);C=k.yieldResult;D.JSC$23730_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){IJD(D)});
D.JSC$23730_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){D.isShelfVisible?OGU(D):FK(D)});
X=_.fe().subscribe(function(){D.isTheaterMode=_.tl(_.fe().getState());D.isTheaterMode?FK(D):AAz(D)});
c=D.JSC$23730_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aJB(D)});
W=function(u){D.onCueRangeEnter(u)};
C.addEventListener("onCueRangeEnter",W);p=function(u){D.onCueRangeExit(u)};
C.addEventListener("onCueRangeExit",p);g=function(){D.isSeeking=!0};
C.addEventListener("SEEK_TO",g);a=function(){D.onSeekComplete()};
C.addEventListener("SEEK_COMPLETE",a);O=function(){D.onAdStart()};
C.addEventListener("onAdStart",O);P=function(){D.onAdComplete()};
C.addEventListener("onAdComplete",P);D.addOnDisposeCallback(function(){X();D.JSC$23730_watchApi.unsubscribeByKey(c);C.removeEventListener("onCueRangeEnter",W);C.removeEventListener("onCueRangeExit",p);C.removeEventListener("SEEK_TO",g);C.removeEventListener("SEEK_COMPLETE",a);C.removeEventListener("onAdStart",O);C.removeEventListener("onAdComplete",P)});
_.t_(k)})},PH$=function(D){var C,X,c,W,p,g,a,O,P;
return(p=(C=D.contents)==null?void 0:(X=C.twoColumnWatchNextResults)==null?void 0:(c=X.results)==null?void 0:(W=c.results)==null?void 0:W.contents)==null?void 0:(g=p.find(function(k){var u,Q,B;return(u=k.itemSectionRenderer)==null?void 0:(Q=u.contents)==null?void 0:(B=Q[0])==null?void 0:B.shoppingTimelyShelfViewModel}))==null?void 0:(a=g.itemSectionRenderer)==null?void 0:(O=a.contents)==null?void 0:(P=O[0])==null?void 0:P.shoppingTimelyShelfViewModel},aJB=function(D){var C;
_.I(function(X){if(X.nextAddress==1)return(C=D.JSC$23730_watchApi.getWatchNextResponse())?X.yield(IJD(D),2):X.return();D.shoppingTimelyShelfViewModel=PH$(C);$w$(D);vnv(D);_.t_(X)})},$w$=function(D){var C,X=(C=D.shoppingTimelyShelfViewModel)==null?void 0:C.offerIdToVariants;
X&&(C=X.filter(function(c){return c.key&&c.value}).map(function(c){return[c.key,
c.value]}),D.variantsMap=new Map(C))},vnv=function(D){var C,X,c,W,p,g;
_.I(function(a){if(a.nextAddress==1)return(X=(C=D.shoppingTimelyShelfViewModel)==null?void 0:C.cueRanges)?a.yield(D.JSC$23730_watchApi.playerApi,2):a.return();c=a.yieldResult;D.cueRanges=X;W=_.U(X);for(p=W.next();!p.done;p=W.next())g=p.value,g.startTime!==void 0&&g.endTime!==void 0&&g.id!==void 0&&c.addCueRange("shopping_timely_shelf"+g.id,iG$(g.startTime),iG$(g.endTime));_.t_(a)})},iG$=function(D){return Number(D.seconds||0)+(D.nanos||0)/1E9};
wc.prototype.onCueRangeEnter=function(D){if(D.startsWith("shopping_timely_shelf")&&(this.activeCueId=D,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){D=D.substring(21);var C,X,c=(C=this.variantsMap)==null?void 0:(X=C.get(D))==null?void 0:X.shelf;c&&(this.JSC$23730_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",c),OGU(this))}};
wc.prototype.onCueRangeExit=function(D){D.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||FK(this))};
wc.prototype.onSeekComplete=function(){this.isSeeking=!1;AAz(this)};
var OGU=function(D){D.shoppingTimelyShelfViewModel&&(D.isShelfVisible=!0,_.Wf.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},FK=function(D){D.shoppingTimelyShelfViewModel&&D.isShelfVisible&&(D.isShelfVisible=!1,_.Wf.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},IJD=function(D){var C,X,c,W,p;
return _.I(function(g){if(g.nextAddress==1)return g.yield(D.JSC$23730_watchApi.playerApi,2);C=g.yieldResult;if(D.cueRanges)for(X=_.U(D.cueRanges),c=X.next();!c.done;c=X.next())W=c.value,W.id&&(p="shopping_timely_shelf"+W.id,C.removeCueRange(p));D.JSC$23730_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});FK(D);D.shoppingTimelyShelfViewModel=void 0;D.cueRanges=void 0;D.variantsMap=void 0;D.isSeeking=!1;D.activeCueId=void 0;_.t_(g)})};
wc.prototype.onAdStart=function(){this.isAdPlaying=!0;FK(this)};
wc.prototype.onAdComplete=function(){this.isAdPlaying=!1;AAz(this)};
var AAz=function(D){if(D.activeCueId)D.onCueRangeEnter(D.activeCueId);else FK(D)};var bGH=function(D){_.nF.call(this);var C=this;this.JSC$23737_watchApi=D;D=_.dX(_.fe(),_.oIt,function(){kAj(C)});
this.addOnDisposeCallback(D);D=_.dX(_.fe(),_.lgd,function(){kAj(C)});
this.addOnDisposeCallback(D);uzU(this);Qov(this);Bij()};
_.h(bGH,_.nF);var uzU=function(D){var C=function(c){_.fe().dispatch(_.jp2(c.matches))},X=window.matchMedia("(max-width: "+(999+_.CB())+"px)");
X.addListener(C);D.addOnDisposeCallback(function(){X.removeListener(C)});
C(X)},Qov=function(D){D.JSC$23737_watchApi.registerActionHandler("yt-window-resized",function(){Bij()});
D.addOnDisposeCallback(function(){D.JSC$23737_watchApi.unregisterActionHandler("yt-window-resized")})},Bij=function(){var D=_.ij();
_.fe().dispatch(_.oI({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:D.width,height:D.height}}}))},kAj=function(D){var C;
_.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$23737_watchApi.playerApi,2);C=X.yieldResult;C.setSize(NaN,NaN);_.t_(X)})};var rAd=function(D){_.nF.call(this);var C=_.iX().resolve(_.c3);CHm(C,D.getElement("PLAYER_CONTAINER"),D.getElement("BELOW_THE_PLAYER"),D.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var X=D.getElement("PLAYER_CONTAINER"),c=D.getElement("BELOW_THE_PLAYER"),W=D.getElement("SECONDARY");C.isLockupToWatchTransitionEnabled&&(X&&_.wU(C.viewTransitionCoordinator,X),c&&_.wU(C.viewTransitionCoordinator,c),W&&_.wU(C.viewTransitionCoordinator,W))})};
_.h(rAd,_.nF);_.ZA=function(D){_.PU.call(this);var C=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return C.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(X){C.initOrDisposeActiveModules(X)}));
this.onAttached()};
_.h(_.ZA,_.PU);_.S=_.ZA.prototype;_.S.getRoot=function(){return this.rootElement};
_.S.getElement=function(D){return this.rootElement.getElement(D)};
_.S.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.S.getPlayerResponse=function(){return this.playerResponse};
_.S.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.S.getWatchNextResponse=function(){return this.watchNextResponse};
_.S.registerActionHandler=function(D,C){var X=this;if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.p2(_.Wf.getInstance(),(c[D]=C,c),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),c={},_.p2(_.Wf.getInstance(),(c[D]=function(){var W=_.MJ.apply(0,arguments);return(X.actionHandlers.get(D)||[]).map(function(p){return p.apply(null,_.VB(W))})},c),this.getRoot())),this.actionHandlers.get(D).push(C)};
_.S.unregisterActionHandler=function(D){if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.U6(_.Wf.getInstance(),(C[D]=!0,C),this.getRoot())}else(C=this.actionHandlers.get(D))?(C.pop(),C.length===0&&(C={},_.U6(_.Wf.getInstance(),(C[D]=!0,C),this.getRoot()),this.actionHandlers.delete(D))):_.fQ(new _.Zf("Attempted to unregister an action handler which is not registered.",D))};
_.S.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.e35(this.rootElement.pageDisposeJobs,D)};
_.S.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.VF(this.rootElement.pageDisposeJobs,D)};
_.S.dispatchEvent=function(D,C){_.lE(this.rootElement,D,C)};
_.S.provideRenderingData=function(D,C){this.rootElement.provideRenderingData(D,C)};
_.S.scrollWatchTo=function(D,C){var X;(X=this.watchScrollManager)==null||X.scrollWatchTo(D,C)};
_.S.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.A0(D,function(){if(D&&D.firstElementChild){var C=D.querySelector(".html5-video-player");C&&(_.ev(_.iX().resolve(_.B0)),C.focus())}else _.fQ(Error("hp"))})};
_.S.subscribeToActiveChanged=function(D,C){C=C===void 0?!0:C;var X=_.dX(_.fe(),_.Vqv,function(c){D(c)});
C&&D(_.Vqv(_.fe().getState()));return X};
_.S.isActive=function(){return _.Vqv(_.fe().getState())};
_.S.onAttached=function(){var D=_.b("external_fullscreen");_.b("use_unified_flag_accessor")&&(D=_.iX().resolve(_.H7U).retriever.getFlag(_.exb));(D||_.dq("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var KZB=function(D){return D.getRoot().is==="ytd-watch-flexy"||D.getRoot().is==="ytd-watch-grid"},Gz=function(D){return D.getRoot().is==="ytd-watch-fixie"};
_.ZA.prototype.initPersistentModules=function(){if(Gz(this)||KZB(this)&&_.b("kevlar_watch_flexy_theater_manager")){var D=new _.rXH(this);_.hR(this,D)}D=new _.Ig6(this);_.hR(this,D);D=new _.eE(this);_.hR(this,D);D=new _.plJ(this);_.hR(this,D);D=new _.yD(this);_.hR(this,D);D=new _.Eh(this);_.hR(this,D);if(Gz(this)||KZB(this)&&_.b("kevlar_watch_flexy_playlist_manager"))D=new _.HHd(this),_.hR(this,D);_.b("web_thumbnail_to_watch_transition")&&(D=new rAd(this),_.hR(this,D))};
_.ZA.prototype.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.nv(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.xzj(this)),_.b("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new wc(this)),this.activeModules.push(new _.btz(this)),Gz(this)&&this.activeModules.push(new bGH(this)),this.activeModules.push(new _.fgv(this)),this.activeModules.push(new _.uUJ(this)),(Gz(this)||_.b("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.LUj(this)),this.activeModules.push(new _.t_m(this)),(Gz(this)||_.b("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Rc2(this)),(Gz(this)||_.b("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Fnv(this)),_.b("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.HeD(this),this.activeModules.push(this.watchCinematicManager)),_.b("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.noj(this)),_.b("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.UzU(this)),D=_.b("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.b("kevlar_watch_flexy_comments_manager")&&!D&&this.activeModules.push(new _.CjN(this)),_.b("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.VyD(this)),this.activeModules.push(new _.en2(this)),this.activeModules.push(new _.sEv(this)),_.b("web_enable_timely_actions")&&this.activeModules.push(new _.Y1D(this)),_.b("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.cXH(this)),_.b("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.MyU(this)),_.b("web_fullscreen_components")&&this.activeModules.push(new _.tyN(this)),_.b("web_player_rtr_ctrls")&&this.activeModules.push(new _.WnB(this)),(_.b("enable_creator_chatbot")||_.b("enable_creator_chatbot_link_out"))&&this.activeModules.push(new WZv(this))):(_.go(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.ZA.prototype.disposeInternal=function(){_.PU.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.$a.Object.defineProperties(_.ZA.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var eeH,Dy,EXm,tov,YFD,ypd,NV6,nXH;eeH=function(){var D=_.vE();D.info||(D.info={});return D.info};
Dy=function(D){return Math.round(_.QP()+D)};
EXm=function(){var D;if(_.b("csi_use_performance_navigation_timing")){var C,X,c,W=_.u5==null?void 0:(D=_.u5.getEntriesByType)==null?void 0:(C=D.call(_.u5,"navigation"))==null?void 0:(X=C[0])==null?void 0:(c=X.toJSON)==null?void 0:c.call(X);W?(W.requestStart=Dy(W.requestStart),W.responseEnd=Dy(W.responseEnd),W.redirectStart=Dy(W.redirectStart),W.redirectEnd=Dy(W.redirectEnd),W.domainLookupEnd=Dy(W.domainLookupEnd),W.connectStart=Dy(W.connectStart),W.connectEnd=Dy(W.connectEnd),W.responseStart=Dy(W.responseStart),
W.secureConnectionStart=Dy(W.secureConnectionStart),W.domainLookupStart=Dy(W.domainLookupStart),W.isPerformanceNavigationTiming=!0,D=W):D=_.u5.timing}else D=_.b("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.u5.timing)):_.u5.timing;return D};
tov=function(){if(_.u5.getEntriesByType){var D=_.u5.getEntriesByType("paint");if(D=_.Yj(D,function(X){return X.name==="first-paint"}))return Dy(D.startTime)}var C;
_.b("csi_use_performance_navigation_timing")?C=_.u5.getEntriesByType("first-paint")[0].startTime:C=_.u5.timing.msFirstPaint;return C?Math.max(0,C):0};
YFD=function(){var D=window.location.protocol,C=_.u5.getEntriesByType("resource");C=_.Sz(C,function(X){return X.name.indexOf(D+"//fonts.gstatic.com/s/")===0});
(C=NV6(C,function(X,c){return c.duration>X.duration?c:X}))&&C.startTime>0&&C.responseEnd>0&&(_.BE("wffs",Dy(C.startTime)),_.BE("wffe",Dy(C.responseEnd)))};
ypd=function(D,C){D=document.querySelector(D);if(!D)return!1;var X="",c=D.nodeName;c==="SCRIPT"?(X=D.src,X||(X=D.getAttribute("data-timing-href"))&&(X=window.location.protocol+X)):c==="LINK"&&(X=D.href);_.oG(document)&&D.setAttribute("nonce",_.oG(document));return X?(D=_.u5.getEntriesByName(X))&&D[0]&&(D=D[0],X=_.QP(),_.BE("rsf_"+C,X+Math.round(D.fetchStart)),_.BE("rse_"+C,X+Math.round(D.responseEnd)),D.transferSize!==void 0&&D.transferSize===0)?!0:!1:!1};
_.wd6=function(D,C){_.lq(function(){_.kC("").info.actionType=D;C&&_.M6("TIMING_AFT_KEYS",C);_.M6("TIMING_ACTION",D);var X=_.Zod(_.q6("TIMING_INFO",{}));Object.keys(X).length>0&&_.b5(X);X={isNavigation:!0,actionType:_.xUF(_.q6("TIMING_ACTION"))};var c=_.q6("PREVIOUS_ACTION");c&&(X.previousAction=_.xUF(c));if(c=_.q6("CLIENT_PROTOCOL"))X.httpProtocol=c;if(c=_.q6("CLIENT_TRANSPORT"))X.transportProtocol=c;(c=_.LN())&&c!=="UNDEFINED_CSN"&&(X.clientScreenNonce=c);c=_.Fa3();if(c===1||c===-1)X.isVisible=!0;
c=_.kSF().loadType==="cold";var W=eeH();c||(c=W.yt_lt==="cold");if(c){X.loadType="cold";c=eeH();W=EXm();var p=_.QP(),g=_.q6("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!_.b("embeds_web_enable_csi_start_override_killswitch")&&(p=g);p&&(_.BE("srt",W.responseStart),c.prerender!==1&&_.EOd(p));c=tov();c>0&&_.BE("fpt",c);c=EXm();c.isPerformanceNavigationTiming&&_.b5({performanceNavigationTiming:!0},void 0);_.BE("nreqs",c.requestStart,void 0);_.BE("nress",c.responseStart,void 0);_.BE("nrese",c.responseEnd,void 0);
c.redirectEnd-c.redirectStart>0&&(_.BE("nrs",c.redirectStart,void 0),_.BE("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(_.BE("ndnss",c.domainLookupStart,void 0),_.BE("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(_.BE("ntcps",c.connectStart,void 0),_.BE("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=_.QP()&&c.connectEnd-c.secureConnectionStart>0&&(_.BE("nstcps",c.secureConnectionStart,void 0),_.BE("ntcpe",c.connectEnd,void 0));_.u5&&"getEntriesByType"in
_.u5&&YFD();c=[];if(document.querySelector&&_.u5&&_.u5.getEntriesByName)for(var a in nXH)nXH.hasOwnProperty(a)&&(W=nXH[a],ypd(a,W)&&c.push(W));if(c.length>0)for(X.resourceInfo=[],a=_.U(c),c=a.next();!c.done;c=a.next())X.resourceInfo.push({resourceCache:c.value})}_.b5(X);X=_.i5();X.preLoggedGelInfos||(X.preLoggedGelInfos=[]);a=X.preLoggedGelInfos;X=_.QZd();c=void 0;for(W=0;W<a.length;W++)if(p=a[W],p.loadType){c=p.loadType;break}if(_.kSF().loadType==="cold"&&(X.loadType==="cold"||c==="cold")){c=_.ucm();
W=_.i5();W=W.gelTicks?W.gelTicks:W.gelTicks={};for(var O in c)if(!(O in W))if(typeof c[O]==="number")_.BE(O,_.re(O));else if(_.b("log_repeated_ytcsi_ticks"))for(p=_.U(c[O]),g=p.next();!g.done;g=p.next())g=g.value,_.BE(O.slice(1),g);O={};c=!1;a=_.U(a);for(W=a.next();!W.done;W=a.next())c=W.value,_.t8(X,c),_.t8(O,c),c=!0;c&&_.b5(O)}_.VTm(!0);O=_.q6("TIMING_ACTION");_.Df("ytglobal.timingready_")&&O&&_.dU5()&&_.GSm()&&_.nO3()})()};
NV6=function(D,C){return Array.prototype.reduce.call(D,C,{duration:0})};
nXH={'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 FeU={};FeU.YtVisibilityRootBehavior=[_.LKC.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Ue(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.q6("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var D=_.q6("INNERTUBE_CLIENT_NAME")!=="WEB";_.b("kevlar_use_vimio_behavior")&&D&&_.qKd()}}];_.Ca={};_.Ca.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(D){D.detail.contextProvider=this;D.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
FeU.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.zr();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(D){var C=this;this.pageCount+=1;_.b("kevlar_use_vimio_behavior")&&(_.q6("INNERTUBE_CLIENT_NAME")==="WEB"?_.qX.addJob(function(){C.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(D)},
loadPage_:function(D){this.data=D},
ytPageBehaviorActiveObserver_:function(D){var C=this;_.b("kevlar_use_vimio_behavior")&&(D?_.q6("INNERTUBE_CLIENT_NAME")==="WEB"?_.qX.addJob(function(){C.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(D){if(!this.setScrollTopJobId_){var C=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){C.setScrollTopJobId_=0;var X=_.iX().resolve(_.vK(_.B0));X&&_.ev(X);this.getPageScrollingElement().scrollTop=D}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.wd(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var m3B;var lk=function(){var D=_.w.apply(this,arguments)||this;D.playerListenerConfig=null;D.actionMap={"yt-show-watch-page-survey":"openSurvey"};return D};
_.h(lk,_.w);_.S=lk.prototype;_.S.dataChanged=function(){var D=this,C=_.CT();C&&C.getPlayerPromise().then(function(c){D.maybeRemovePlayerListeners(c)});
var X=this.data&&this.data.survey;X&&((X=(X=X.singleOptionSurveyRenderer||X.checkboxSurveyRenderer||X.multiStageSurveyRenderer)&&X.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(C,X):this.openSurvey())};
_.S.triggerWatchPageSurvey=function(D,C){var X=this,c,W,p,g,a,O,P,k,u;return _.I(function(Q){if(Q.nextAddress==1)return D?Q.yield(D.getPlayerPromise(),2):Q.return();X.player=Q.yieldResult;if(!X.player)return Q.return();c={};W=_.U(C);for(p=W.next();!p.done;p=W.next())g=p.value,a=_.U(X.createEventListenerPair(g)),O=a.next().value,P=a.next().value,k=O,u=P,k&&u&&(c[k]=u,X.ytPlayerListenerBehavior.listenToPlayerEvent(X.player,k,u));X.playerListenerConfig=c;_.t_(Q)})};
_.S.createEventListenerPair=function(D){var C=D.playbackEventTrigger;return C?this.handlePlaybackTrigger(C):(D=D.watchTimeTrigger)?this.handleWatchTimeTrigger(D):[void 0,void 0]};
_.S.handleWatchTimeTrigger=function(D){var C=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var X=D.videoWatchFraction,c=D.watchTimeSec;return c&&X?["onVideoProgress",function(){C.player&&C.isWatchTimeConditionMet(C.player,X,c)&&C.showSurvey()}]:[void 0,
void 0]};
_.S.isWatchTimeConditionMet=function(D,C,X){var c=D.getProgressState(),W=c.current-this.lastKnownPlaybackPosition;W<5&&(this.accumulatedMediaTime+=W);this.lastKnownPlaybackPosition=c.current;c=Math.round(this.accumulatedMediaTime/c.duration*1E3)/1E3;return D.getPresentingPlayerType&&D.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>X||c>C)};
_.S.handlePlaybackTrigger=function(D){var C=this;D=D.playbackEvent;if(D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var X="onStateChange";var c=function(W){W===0&&C.showSurvey()}}else D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(X="onVideoProgress",c=function(W){C.player&&C.player.getPresentingPlayerType&&C.player.getPresentingPlayerType()===1&&W&&C.showSurvey()}):D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(X="onAdEnd",c=this.showSurvey);
return[X,c]};
_.S.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.S.openSurvey=function(){var D=this,C=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.hO1(!!C));_.qX.addJob(function(){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:C}})},0,0)};
_.S.maybeRemovePlayerListeners=function(D){if(this.playerListenerConfig){for(var C=_.U(Object.keys(this.playerListenerConfig)),X=C.next();!X.done;X=C.next())X=X.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(D,X,this.playerListenerConfig[X]);this.playerListenerConfig=null}};
lk.prototype.dataChanged=lk.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],lk.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],lk.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],lk.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],lk.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],lk.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],lk.prototype,"playerListenerConfig",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],lk.prototype,"lastKnownPlaybackPosition",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],lk.prototype,"accumulatedMediaTime",void 0);_.V([_.n(),_.z("design:type",Object)],lk.prototype,"player",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lk.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],lk);
_.G(lk,"ytd-survey-trigger-renderer",function(){if(m3B!==void 0)return m3B;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return m3B=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var ObG;_.kW=function(D){var C=document.createElement("link");_.Ou(C,D,"stylesheet");document.head.appendChild(C)};
_.u7=function(D,C){var X,c;return _.I(function(W){X=document.createElement("div");X.id=D.id;D.className&&(X.className=D.className);c=D.element;if(!c)throw Error("hk");if(D.location==="prepend")c.prepend(X);else if(D.location==="appendChild")c.appendChild(X);else if(D.location==="after")c.after(X);else throw Error("ik");return W.return(_.T4(X,C,"lj"))})};
_.QW=function(D){var C;return _.I(function(X){(C=document.getElementById(D))&&C.remove();_.t_(X)})};
_.BU=function(D,C){var X=document.querySelector(D);X?C(X):setTimeout(function(){_.BU(D,C)},1E3)};
_.AvU=function(D,C,X){var c;_.I(function(W){if(W.nextAddress==1)return(c=document.getElementById(D))?W.jumpTo(2):W.yield(ObG(D,C,X),2);if(c=document.getElementById(D))c.style.display="block";_.t_(W)})};
ObG=function(D,C,X){return _.I(function(c){return c.return(new Promise(function(W){_.BU("div #panels",function(p){_.u7({element:p,location:"appendChild",id:D,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+X},C);W()})}))})};_.b7=_.F(function(D){var C=D.text;var X=D.onClick;var c=D.color;var W=D.backgroundColor;var p=D.buttonSize;var g=D.disabled;var a=D.iconName;var O=D.iconSize;var P=D.className;var k=D.iconClassName;D=D.ariaLabel;var u=_.I_(function(B){X(B)}),Q={};
return _.A("button",{class:_.g$("ytpStandardButtonsHost",(Q.ytpStandardButtonsLarge=function(){return(p==null?void 0:p())==="large"},Q),P),
"on:click":u,style:_.P0({color:c,"background-color":W}),disabled:g,"aria-label":D},_.A(_.v,{cond:a,then:function(){return _.A(_.$_,{className:_.g$("ytpStandardButtonsIconContainer",k),icon:a,size:O})}}),C)},"kj");_.PO1=_.F(function(D){var C,X,c={};return _.A("div",{class:_.g$("ytprototypesEngagementPanelComponentHost",(c.ytprototypesEngagementPanelComponentHostMweb=D.isMweb,c),D.className),id:D.id},_.A("div",{class:_.g$("ytprototypesEngagementPanelComponentEngagementPanelHeader",D.headerClassName)},_.A("div",null,D.header()),_.A("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.A("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(C=D.HeaderButton)==null?void 0:C.call(D)),
_.A(_.b7,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var W;(W=D.onHide)==null||W.call(D);var p;if((p=D.preventDefault)==null||!p.call(D))if(W=D.id(),W=document.getElementById(W))W.style.display="none"}}))),_.A("div",{class:_.g$("ytprototypesEngagementPanelComponentEngagementPanelContent",D.contentClassName),
style:function(){var W,p;return"height: "+(((W=D.height)==null?0:W.call(D))||((p=D.isMweb)==null?0:p.call(D))?"100%":"800px")+";"}},D.content()),_.A("div",null,(X=D.Footer)==null?void 0:X.call(D)))},"mj");
}catch(e){_._DumpException(e)}
try{
var kvv=new _.A7("replaceFeedContentAction");var uEB;var QVm;var BVD=function(){return _.w.apply(this,arguments)||this};
_.h(BVD,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],BVD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],BVD.prototype,"data",void 0);_.V([_.yj({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],BVD);
_.G(BVD,"ytd-sub-feed-option-renderer",function(){if(QVm!==void 0)return QVm;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return QVm=D},{mode:1});var byv;var zD=function(){return _.w.apply(this,arguments)||this};
_.h(zD,_.w);zD.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zD.prototype,"ytRendererStamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zD.prototype,"data",void 0);_.V([_.yj({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],zD);
_.G(zD,"ytd-sub-feed-selector-renderer",function(){if(byv!==void 0)return byv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return byv=D},{mode:1});var jA=function(){return _.w.apply(this,arguments)||this};
_.h(jA,_.w);
jA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],jA.prototype,"data",void 0);_.V([_.yj({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],jA);
_.G(jA,"ytd-browse-feed-actions-renderer",function(){if(uEB!==void 0)return uEB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return uEB=D},{mode:1});var rpf;var KeH;var Me=function(){return _.w.apply(this,arguments)||this};
_.h(Me,_.w);Me.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Me.prototype,"data",void 0);_.V([_.yj({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Me);
_.G(Me,"ytd-mini-channel-renderer",function(){if(KeH!==void 0)return KeH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return KeH=D},{mode:1});var heH;var qe=function(){return _.w.apply(this,arguments)||this};
_.h(qe,_.w);qe.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qe.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],qe);
_.G(qe,"ytd-vertical-channel-section-renderer",function(){if(heH!==void 0)return heH;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return heH=D},{mode:1});var f8=function(){return _.w.apply(this,arguments)||this};
_.h(f8,_.w);f8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],f8.prototype,"data",void 0);_.V([_.yj({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],f8);
_.G(f8,"ytd-browse-secondary-contents-renderer",function(){if(rpf!==void 0)return rpf;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return rpf=D},{mode:1});var x3d;var df=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};D.notActive=!1;D.isConstrainedList=!1;D.marginSettings=0;return D};
_.h(df,_.w);_.S=df.prototype;
_.S.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(D){var C;return(D==null?void 0:(C=D.webComponentHint)==null?void 0:C.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.S.getPath=function(D,C){var X="data.tabs.#"+C+".";D.tabs[C].tabRenderer?X+="tabRenderer.":D.tabs[C].expandableTabRenderer&&(X+="expandableTabRenderer.");return X+"content.sectionListRenderer"};
_.S.computeDisplayedContent=function(D){this.unlinkPaths("content");if(D&&D.tabs)for(var C=D.tabs.length,X=0;X<C;X++){var c=D.tabs[X].tabRenderer||D.tabs[X].expandableTabRenderer;if(c.selected&&c.content)return this.linkPaths("content",this.getPath(D,X)),c.content}return null};
_.S.computeHasSecondaryColumnData=function(D){return!!D&&!!D.secondaryContents};
_.S.onRetrieveLocation=function(D,C){C.locationRetrieved(C.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);D.stopPropagation()};
_.S.onYtServiceRequestSent=function(D,C){_.b("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(C)};
_.S.onYtServiceRequestCompleted=function(D,C){_.b("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(C)};
_.S.onReplaceFeedContentAction=function(D){if(!_.b("replace_feed_content_action_killswitch")&&!this.notActive){var C;(D=(C=_.r(D,kvv))==null?void 0:C.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(D)}};
_.S.handleServiceRequestActions=function(D){if(D=D.actions){D=_.U(D);for(var C=D.next();!C.done;C=D.next()){C=C.value;var X=void 0;((X=_.r(C,kvv))==null?0:X.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.r(C,kvv).items)}}};
df.prototype.onYtServiceRequestCompleted=df.prototype.onYtServiceRequestCompleted;df.prototype.onYtServiceRequestSent=df.prototype.onYtServiceRequestSent;df.prototype.onRetrieveLocation=df.prototype.onRetrieveLocation;_.V([_.m(_.v9),_.z("design:type",Object)],df.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],df.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],df.prototype,"data",void 0);_.V([_.n({computed:"computeDisplayedContent(data)"}),_.z("design:type",Object)],df.prototype,"content",void 0);
_.V([_.n({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],df.prototype,"hasSecondaryColumnData",void 0);_.V([_.n({value:function(){return window.outerHeight>1024?3:2}}),
_.z("design:type",Number)],df.prototype,"initialCount",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],df.prototype,"pageSubtype",void 0);_.V([_.kn("ytd-section-list-renderer"),_.z("design:type",Object)],df.prototype,"listRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],df.prototype,"notActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],df.prototype,"isConstrainedList",void 0);
_.V([_.n(),_.z("design:type",String)],df.prototype,"responsiveSizing",void 0);_.V([_.n(),_.z("design:type",Number)],df.prototype,"marginSettings",void 0);_.V([_.$n("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],df.prototype,"onRetrieveLocation",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],df.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],df.prototype,"onYtServiceRequestCompleted",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],df);
_.G(df,"ytd-two-column-browse-results-renderer",function(){if(x3d!==void 0)return x3d;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return x3d=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var IR6=function(D){if((D==null?void 0:D.value)===void 0||D==null||!D.unit)return"initial";a:{switch(D.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var C="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":C="%";break a}C=void 0}return C?""+D.value+C:"initial"};_.CI(_.F(function(D){var C=D.data;D=_.U(_.Li(!1,void 0,"VotqNe"));var X=D.next().value,c=D.next().value;_.JU(function(){_.Wf.getInstance().triggerAction("yt-request-timely-shelf-state")});
var W=_.tw(function(){var P,k,u=(P=_.r(C().rendererContext,_.k7))==null?void 0:(k=P.loggingDirectives)==null?void 0:k.trackingParams;if(u)return _.bO(u)},void 0,"AvMXxb");
_.p2(_.Wf.getInstance(),{"yt-hide-shopping-timely-shelf":function(){c(!1);var P=_.LN(),k=W();P&&k&&_.To(P,[k])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){c(!0);var P=_.LN(),k=W();P&&k&&_.VP(P,[k])})}});
var p=function(){var P;return(P=C().image)==null?void 0:P.image},g=function(){var P,k;
return!!((P=p())==null?0:(k=P.sources)==null?0:k.some(function(u){var Q;return!!(u==null?0:(Q=u.clientResource)==null?0:Q.imageName)}))},a=function(){var P;
return((P=C().image)==null?void 0:P.height)||40},O=function(){var P;
return(P=C().image)==null?void 0:P.backgroundColor};
D={};return _.A("yt-shopping-timely-shelf-content-view-model",{el:_.fb(_.NH(function(){return C().rendererContext})),
class:_.g$("ytShoppingTimelyShelfContentViewModelHost",(D.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(C().image||C().avatar||C().line1)&&X()},D)),
style:_.P0({"--shopping-timely-shelf-content-padding-top":function(){var P;return IR6((P=C().padding)==null?void 0:P.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var P;return IR6((P=C().padding)==null?void 0:P.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var P;return IR6((P=C().padding)==null?void 0:P.start)},
"--shopping-timely-shelf-content-padding-end":function(){var P;return IR6((P=C().padding)==null?void 0:P.end)},
"--yt-shopping-timely-shelf-background-color":function(){return C().backgroundColor!==void 0?_.e_(C().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var P,k;return((k=(P=C().image)==null?void 0:P.cornerRadius)!=null?k:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return O()!==void 0?_.e_(O()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var P;return(((P=C().image)==null?void 0:P.width)||40)+"px"}})},_.A(_.v,{cond:p,
then:function(P){var k={};return _.A(_.M_,{preserveHeight:!0,preserveWidth:!0,height:a,data:P,alt:"",className:_.g$("ytShoppingTimelyShelfContentViewModelImage",(k.ytShoppingTimelyShelfContentViewModelIcon=g,k))})}}),_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu}),_.A("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.A(_.BX,{data:function(){return C().line1}},{shoppingContentLineViewModel:function(P){return _.A(_.sV,{data:P.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.A(_.BX,{data:function(){return C().line2}},{shoppingContentLineViewModel:function(P){return _.A(_.sV,{data:P.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.A("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.A(_.BX,{data:function(){var P;
return(P=C().button)!=null?P:[]}},{buttonViewModel:function(P){var k=P.data;
return _.A(_.Ze,{data:k,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(u){k().onTap&&u.stopPropagation()}})}})))},"Jo"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Bm}});_.Ob6={};
_.Ob6.YtdWatchBehavior=[_.f.YtRendererBehavior,_.rv.YtPlayerListenerBehavior,_.eO.YtRendererstamperBehavior,_.Jy.YtActionHandlerBehavior,_.Ca.YtPageBehavior,_.Hm.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.dq("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.b("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 _.dq("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.b("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.BK("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.BK("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.b("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.b("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.b("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.b("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_enable_ghost_cards")||_.b("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.b("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(D,C,X){return D&&(C||!X)},
computeShowGhostRelated_:function(D,C,X){return D&&(C||!X)},
monitorScroll:!0,configureRendererStamper:function(){var D={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.RD(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.RD(["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"||_.b("swa_prov_panels_ks")?D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},D.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return D},
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 D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.b("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.b("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.b("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.dwf(function(){return _.Dw(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.b("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Ev;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.b("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));_.b("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Pr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.b("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.b("kevlar_watch_while_v2")&&!_.b("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.lE(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var C=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var X;(X=this.watchController)==null||X.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.hZ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sp("nw");this.loading=!1;_.Zo(_.qX,function(){C.initDclkstatus_();var c,W=((c=C.player)==null?void 0:c.getVideoData().cpn)||"";_.yA6(function(p,g){_.Yso(p,g,W)})})},
onPageLoadWithSameData_:function(){_.b("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 D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;if(_.b("kevlar_watch_frame0_loading_state")){var C,X,c;D=(C=this.loadingData)==null?void 0:(X=C.endpoint)==null?void 0:(c=X.watchEndpoint)==null?void 0:c.videoId;var W;D&&(W="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.SY(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.SY(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var C,X;(X=(C=this.watchMetadata).updateSentimentBarWidth)==
null||X.call(C);var c,W;(W=(c=this.watchMetadata).resize)==null||W.call(c)}_.b("kevlar_watch_frame0_loading_state")&&(_.SY(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(D){var C=_.SY(this.hostElement).querySelector(D);C?_.dl(C,!1):_.fQ(new _.Zf("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var C=_.SY(this.hostElement).querySelector(D);C?_.RB(C):_.fQ(new _.Zf("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.b("web_thumbnail_to_watch_transition")&&!_.aio||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.b("web_thumbnail_to_watch_transition")&&!_.aio||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(D){var C=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.qX.addLowPriorityJob(function(){C.onWindowResized_(_.ij(!0))})},
updateTheaterModeState_:function(D){if(!_.b("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.JgB()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var D=this.fullBleedPlayer?_.SY(this.hostElement).querySelector("#player-full-bleed-container"):_.SY(this.hostElement).querySelector("#player-container-inner");var C=this.getPlayerContainer(),X=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip");C.parentElement!==D&&(X&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Dw(this).appendTo(D,C))},
updateErrorScreenLocation:function(){var D=_.SY(this.hostElement).querySelector("#error-screen"),C=this.fullBleedPlayer?_.SY(this.hostElement).querySelector("#player-full-bleed-container"):_.SY(this.hostElement).querySelector("#player");D.parentElement!==C&&C.appendChild(D)},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.iX().resolve(_.wB).deactivate(),2);D.updatePlayerLocation();_.t_(C)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var C=this.getCinematicsLocationContainer();D.parentElement!==C&&C.appendChild(D)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.SY(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.SY(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(D,C,X){var c=document.documentElement.hasAttribute("dark"),W=!c&&this.cinematicLightTheme;return X||D&&c||C&&c||(C||D)&&W},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D=this,C;(C=this.watchController)==null||C.setWatchNextResponse(this.data);_.b("kevlar_watch_flexy_comments_manager")||this.initComments_();_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.iX().resolve(_.iP).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.b("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.qX.addLowPriorityJob(function(){_.Ct(D.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.b("web_watch_start_chat_in_theater_mode")){var X,c,W;if((X=this.data)==null?0:(c=X.contents)==null?0:(W=c.twoColumnWatchNextResults)==null?0:W.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var p,g;((p=this.data)==null?0:(g=p.contents)==null?0:g.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(D){var C;(C=this.watchController)==null||C.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(C=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),C&&!D||_.A0(this,function(){_.sp("pbu")}));
this.setPlayerAds_();_.Ct(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(D,C){if((_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"))&&this.playerData&&C)return this.playerData.videoDetails},
watchPageActiveChanged_:function(D){_.fe().dispatch(_.XrH(this.active));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new _.ZA(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);_.b("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var C=_.Dw(this);_.b("kevlar_disable_prepare_player")||
C.preparePlayer();_.b("kevlar_watch_flexy_playlist_manager")||_.iX().resolve(_.iP).setPlayer(C);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();C={"--ytd-watch-flexy-scrollbar-width":_.CB()+"px"};this.is==="ytd-watch-grid"&&(_.fe().dispatch(_.oI({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),C["--ytd-watch-flexy-sidebar-width"]=_.wLD+"px",C["--ytd-watch-grid-horizontal-page-margins"]=_.NE+"px",C["--ytd-watch-grid-columns-top-margins"]=
_.YU$+"px",C["--ytd-watch-grid-min-player-height-medium"]="360px");!_.BK("kv_pl_mx_sz_ks")&&_.BK("kevlar_watch_max_player_width")&&(C["--ytd-watch-flexy-max-player-width-wide-screen"]=_.FMB+"px");_.BK("kevlar_watch_flexy_metadata_height")&&(C["--ytd-watch-flexy-space-below-player"]=_.ZQf+"px");this.safeUpdateStyles(C);_.b("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Sg(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.SY(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var D=_.CB(),C=_.Ys+D,X=C;this.fixedPanels&&(C+=_.wLD);var c=657+D;D=1327+D;_.SY(this.hostElement).querySelector("#two-column-query").query="(min-width: "+C+"px)";_.SY(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(c+"px), (min-height: 630px) and (min-width: ")+(C+"px) and (max-width: ")+(D+"px)");_.SY(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.SY(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+X+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var D=_.SY(this.hostElement).querySelector("#miniplayer-bar").firstChild,C=this.squeezeback&&!_.b("web_watch_squeezeback_player_size_killswitch");return D&&D.active||this.theater||_.b("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||C||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.me(NaN,NaN):_.GAz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.GAz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ue(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.ij());_.b("browse_skeleton_removal_on_watch_killswitch")||_.dq("IS_SHELL_LOAD")&&_.sVv();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var C=_.Dw(this);C.addEventListener("yt-player-updated",_.Pr(this,this.onPlayerUpdated_));C.getPlayerPromise().then(function(X){D.playerApiReady_(X)});
_.b("kevlar_watch_flexy_playlist_manager")||(C=_.iX().resolve(_.iP),_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&C.addEventListener("yt-navigate",_.Pr(this,this.onYtNavigate_)),C.setPlaylistComponent(_.SY(this.hostElement).querySelector("#playlist")),C.addEventListener("yt-playlist-data-updated",_.Pr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.qX.addLowPriorityJob(function(){_.lE(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Dw(this).removeEventListener("yt-player-updated",_.Pr(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.b("kevlar_watch_flexy_playlist_manager")){var D=_.iX().resolve(_.iP);_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.Pr(this,this.onYtNavigate_));
D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.Pr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.lE(this.hostElement,"yt-autonav-pause-player",!1);D=_.qF();_.b("kevlar_exit_fullscreen_leaving_watch")&&D&&_.fN(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,C){C.hasComments?C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):C.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,C){this.player&&(C?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.wd6("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.SY(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.SY(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.b("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.b("kevlar_unified_player")||_.b("kevlar_player_new_bootstrap_adoption"))&&_.Gt()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,C){C=C===void 0?!0:C;_.qF()&&_.b("external_fullscreen")&&_.fN(document.documentElement);this.theaterRequested_=D;C&&_.y3("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.DS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.lE(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(D){_.dO(D,typeof this.player),this.player&&_.dO(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.DS(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,C){return this.loading?C:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next())C=C.value,C.youThereRenderer&&_.D_B(this.youThereManager_,C.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var C=this.youThereManager_;_.kl()<D.lowEngagementThresholdMs||_.o7m(C,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.DS(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,C,X){return!!D&&!this.isVideoPlayable_(D,X)&&!C},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,C){if(!D)return!1;var X=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",c=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var W;C=C==null?void 0:(W=C.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!X||!!c||!!D||!!C},
hasWatchNextResponseErrorRenderer:function(D){var C=this.getPageContents(D),X,c,W,p,g;return!(D==null?0:(X=D.contents)==null?0:(c=X.twoColumnWatchNextResults)==null?0:c.secondaryResults)&&!!((W=C[0])==null?0:(p=W.itemSectionRenderer)==null?0:(g=p.contents[0])==null?0:g.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,C,X){var c=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.b("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&W.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var p=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);p==void 0&&(p=!0);!X||this.isVideoPlayable_(D,this.getPlayerOverlays_(C))||
c||W||!p||_.iX().resolve(_.iP).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.TiN()},
onPlayerFeedbackStartRequest_:function(D){_.DS(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.DS(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,C,X,c,W,p,g,a,O=((D=this.data)==null?NaN:(C=D.contents)==null?NaN:(X=C.twoColumnWatchNextResults)==null?NaN:(c=X.secondaryResults)==null?NaN:(W=c.secondaryResults)==null?NaN:(p=W.offerModule)==null?NaN:(g=p.tvfilmOfferModuleRenderer)==null?NaN:(a=g.actionButtons)==null?NaN:a.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];C=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(X=C.next();!X.done;X=C.next())for(X=X.value,c=_.U(D),W=c.next();!W.done;W=c.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+X+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.O4(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.lE(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.lE(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.fe().dispatch(_.P$q(D))},
onPlayerSubscribe_:function(D){_.DS(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.DS(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.DS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
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(D){return!_.CG("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.b("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var D,C,X,c;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(C=D.contents)==null?void 0:(X=C.twoColumnWatchNextResults)==null?void 0:(c=X.secondaryResults)==null?void 0:c.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,C=(D=this.data)==null?void 0:D.engagementPanels;if(C==null?0:C.length){D=null;C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0;if(((c=X.engagementPanelSectionListRenderer)==null?void 0:c.targetId)==="engagement-panel-structured-description"){D=X;break}}var W,p,g;D=(W=D)==null?void 0:(p=W.engagementPanelSectionListRenderer)==null?void 0:(g=p.content)==null?void 0:g.structuredDescriptionContentRenderer;if(D==null?0:D.items){W=
[];p=_.U(D.items);for(g=p.next();!g.done;g=p.next()){g=g.value;if(!_.b("sd_horizontal_list_show_nav_killswitch")){var a=c=X=C=D=void 0,O=void 0,P=(D=g.horizontalCardListRenderer)==null?void 0:(C=D.header)==null?void 0:(X=C.richListHeaderRenderer)==null?void 0:(c=X.navigationButton)==null?void 0:(a=c.buttonRenderer)==null?void 0:(O=a.command)==null?void 0:O.commandExecutorCommand;P&&P.commands&&(P.commands=P.commands.filter(function(k){return!_.r(k,_.DN6)}))}(!g.expandableVideoDescriptionBodyRenderer&&
!g.videoDescriptionHeaderRenderer||_.b("web_delhi_colorful_sd"))&&W.push(g)}return{items:W}}}},
constructWarning_:function(D){return{text:_.jV(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.lE(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var C=this.getScrollTop()>0;this.gestures_&&(C?this.gestures_.detach():this.gestures_.attach());C!==this.showFullerscreenEdu_&&_.b("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=C,_.Dw(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.lE(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.qX.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Zo(_.qX,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.b("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sp("cmi");_.qX.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.U(D);for(var C=D.next();!C.done;C=D.next())if(C=C.value,this.get("itemSectionRenderer.sectionIdentifier",C)==="comment-item-section"){this.comments=C.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.lE(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sp("cmc")},
doRemoveComments_:function(){this.comments={};_.b("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.qX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.qX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,C){var X=_.r(C.endpoint,_.TC);X&&(!(C=this.get("data.currentVideoEndpoint.watchEndpoint"))||X.videoId!==C.videoId||X.playlistId&&X.playlistId!==C.playlistId||X.index!==void 0&&X.index!==C.index||typeof X.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.Dw(this).getPlayerPromise().then(function(c){var W=X.startTimeSeconds;c.seekTo(W);c.wakeUpControls();W<c.getDuration()&&c.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.xwN();"t"in D&&(D=_.VYU(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var C,X;(D=_.Mh(D==null?void 0:(C=D[0])==null?void 0:(X=C.videoPrimaryInfoRenderer)==null?void 0:X.title))&&_.lE(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.lE(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,C,X){if(this.active&&this.player){var c=this.player.getVideoData();if(c.video_id===X&&(X=c.list,_.b("polymer_enable_mdx_queue")&&X&&X.startsWith("RQ")&&(X=void 0),c.video_id!==D||X!=C)){var W;_.b("kevlar_player_watch_endpoint_navigation")?W=_.VWt(_.nn6(D,C)):W=this.buildWatchEndpoint_(D,C);_.lE(this.hostElement,"yt-navigate",{endpoint:W,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,C,X){return _.D7(D,C,X)},
initDclkstatus_:function(){_.ZGv()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var C=D.querySelector("#primary-info"),X=D.querySelector("#secondary-info"),c=D.querySelector("#related");C&&_.SY(this.hostElement).querySelector("#info-skeleton").appendChild(C);X&&_.SY(this.hostElement).querySelector("#meta-skeleton").appendChild(X);c&&(_.SY(this.hostElement).querySelector("#related-skeleton").appendChild(c),this.watchNextSkeletonEl_=c);_.ep(D)}},
handlePlayerUpdated_:function(){_.Dw(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,C){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof C!=="undefined"){var X=this.watchNextSkeletonEl_.children,c=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,X.length);C||(c=0,D=X.length);if(!this.ghostCardsEnabled)for(C=c;C<D;C++)X[C].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.b("external_fullscreen")||_.DS(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var C=_.Dw(this);C.getPlayerPromise().then(function(X){X.setFauxFullscreen(!!_.qF())});
this.updateFullBleedElementLocations();D&&(C.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,C){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!C},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,C){return C&&!!D},
computeResponseHasComments:function(D){var C,X,c,W,p;return!!(D==null?0:(C=D.contents)==null?0:(X=C.twoColumnWatchNextResults)==null?0:(c=X.results)==null?0:(W=c.results)==null?0:(p=W.contents)==null?0:p.some(function(g){var a;return(g==null?void 0:(a=g.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,C,X,c){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&c?!1:!!D&&!!Object.keys(D).length&&!C},
identity:_.nh,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var C=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.Dw(this).getPlayerPromise().then(function(X){var c=X.getPlayerState();c!==5&&c!==0&&(X=1/X.getVideoAspectRatio(),C.videoHeightToWidthRatio_!==X&&(C.videoHeightToWidthRatio_=X))})},
schedulePlayerSizeUpdate_:function(D){var C=this,X=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"),c=function(){if(C.watchMetadata){var W,p;(p=(W=C.watchMetadata).resize)==null||p.call(W)}_.Dw(C).getPlayerPromise().then(function(g){if(_.b("kevlar_set_internal_player_size")){if(!X||!C.isMiniplayerActive()){var a=C.calculateCurrentPlayerSize_();g.setInternalSize(a.width,a.height)}}else g.setSize(NaN,NaN);_.b("kevlar_watch_while")&&C.updateWatchWhileScrollThreshold_()})};
D?c():_.$w(_.qX,c)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.r(D,_.fJD).survey)},
onDownloadedVideoDeleted:function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1){if(!C.active||(X=C.playerData)==null||!X.offlineState||C.videoId!==D)return W.return();(c=C.player)==null||c.stopVideo();_.qg().navigatingAwayFromWatchDeletedVideo=!0;_.O4(_.dKJ,C.hostElement);return W.yield(_.qg().navigationFinishPromise,2)}_.qg().navigatingAwayFromWatchDeletedVideo=!1;_.t_(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.N8(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.SY(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var C=this.windowSize_.height>=624,X=this.active?this.getScrollTop():0;!D.active&&C&&X>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!C||X<this.watchWhileScrollThreshold_&&!_.qF())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var D=_.SY(this.hostElement).querySelector("#secondary-inner");if(D){var C=_.SY(this.hostElement).querySelector("#below"),X=_.SY(this.hostElement).querySelector("#secondary"),c=_.SY(this.hostElement).querySelector("#comments");c&&X&&C&&(this.defaultTwoColumnLayout?(D.appendChild(c),X.appendChild(D)):(C.appendChild(c),_.Ei(C,D)))}}},
isTwoColumnsChanged_:function(D,C){if(D!==!0||C!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(D=_.SY(this.hostElement).querySelector("#secondary-inner"))){C=_.SY(this.hostElement).querySelector("#below");var X=_.SY(this.hostElement).querySelector("#secondary"),c=_.SY(this.hostElement).querySelector("#comments");c&&X&&C&&(this.isTwoColumns_?(D.appendChild(c),X.appendChild(D)):(C.appendChild(c),_.Ei(C,D)))}}else{D=!_.b("web_watch_enable_fs_squeezeback_panels");
C=_.SY(this.hostElement).querySelector("#panels");var W=_.SY(this.hostElement).querySelector("#alerts"),p=_.SY(this.hostElement).querySelector("#shopping-timely-shelf");X=_.SY(this.hostElement).querySelector("#playlist");c=_.SY(this.hostElement).querySelector("#related");var g=_.SY(this.hostElement).querySelector("#donation-shelf"),a=_.SY(this.hostElement).querySelector("#comments"),O=_.SY(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(W=_.SY(this.hostElement).querySelector("#secondary-inner"),
D&&(W.appendChild(C),W.appendChild(X),this.aiCompanionEnabled&&O&&W.appendChild(O)),W.appendChild(g),W.appendChild(c)):(D&&(_.Ti(C,W),_.Ti(X,W),this.aiCompanionEnabled&&O&&_.Ti(O,W),_.Ti(p,X)),_.Ti(g,W),a&&_.Ti(c,a));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.b("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.b("web_watch_enable_fs_squeezeback_panels")&&_.b("web_watch_theater_chat")){var D=_.SY(this.hostElement).querySelector("#chat-container"),C=this.theater&&!this.fullscreen||_.b("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&C?(C=_.SY(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==C&&C.append(D),this.fixedPanels=!0):(this.fixedPanels=
!1,C=_.SY(this.hostElement).querySelector("#playlist"),D&&C?_.Hq(D,C):_.fQ(new _.Zf("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!C})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,C){return _.b("sw_metadata_vis_toggle_ks")?!0:!!D||!!C},
computeForceDarkPanelTheme:function(D){return _.b("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.Os(this.hostElement,D)}catch(C){_.fQ(C)}},
videoHeightToWidthRatioChanged_:function(D,C){C&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Dw(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Dw(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.WpU(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var C=_.KH(D)||0;_.rL(D,C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.KH("yt-fullerscreen-edu-button-click-count")||0,C=_.KH("yt-fullerscreen-edu-button-shown-count")||0,X=_.BK("external_fullscreen_button_shown_threshold"),c=D>=_.BK("external_fullscreen_button_click_threshold")||C>=X;_.Dw(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(c)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,C){return C},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.iX().resolve(_.iP).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var D=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.qX.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.qX.addLowPriorityJob(function(){D.fullHeightPanelPositionUpdateJobId=0;var C=_.SY(D.hostElement).querySelector("#secondary"),X=_.SY(D.hostElement).querySelector("#fixed-secondary");C=C.getBoundingClientRect();var c=C.width;D.swatcherooSqueezeback&&
(c+=_.NE);if(D.swatcherooSqueezeback){var W=_.SY(D.hostElement).querySelector("#squeezeback-constraining-container");W.style.width=c+"px";W.style.flex="0 0 "+c+"px"}X.style.width=c+"px";X.style.left=C.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.qX.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.qX.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var C;!D.isTwoColumns_||D.theater||D.fullscreen?C=460:C=D.calculateNormalPlayerSize_().height;var X=C+"px";_.b("live_chat_taller_height")&&!D.theater&&(X="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.b("live_chat_medium_height")&&!D.theater&&(X="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.b("live_chat_scaled_height")&&!D.theater&&(X="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":C+"px","--ytd-watch-flexy-chat-max-height":X,"--ytd-watch-flexy-structured-description-max-height":C+"px","--ytd-watch-flexy-comments-panel-max-height":C+"px","--ytd-comments-engagement-panel-content-height":C+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.o7(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var C=_.SY(this.hostElement).querySelector("#engagement-panel-scrim");D?C.addEventListener("tap",_.Pr(this,this.onEngagementPanelScrimClick_)):C.removeEventListener("tap",_.Pr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var C=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var X=this.getPageScrollingElement(),c=this.getScrollTop(),W=c+X.clientHeight-56;if(C<c+56)C-=56;else if(D>W)C=D-X.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.b("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.eo().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,C,X){if(this.active&&this.trackEngagementPanelVisibility&&!_.MYv.includes(X)){if(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Ct(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var c=_.iX().resolve(_.p6);this.visiblePanelIdentifiers_.forEach(function(W){W!==X&&c.hidePanel({identifier:W})})}this.visiblePanelIdentifiers_.add(X)}C!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(X);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeIsSingleColumn:function(D,C){return C&&!D},
computeFullBleedPlayer:function(D,C,X){return _.b("external_fullscreen")&&D||C||X},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,C){return!D&&C},
updatePanelsLocation:function(){if(_.b("web_watch_enable_fs_squeezeback_panels")){var D=_.SY(this.hostElement).querySelector("#below"),C=_.SY(this.hostElement).querySelector("#panels"),X=_.SY(this.hostElement).querySelector("#playlist"),c=_.SY(this.hostElement).querySelector("#chat-container"),W=_.SY(this.hostElement).querySelector("#panels-full-bleed-container"),p=_.SY(this.hostElement).querySelector("#secondary-inner"),g=_.SY(this.hostElement).querySelector("#shopping-timely-shelf"),a=_.SY(this.hostElement).querySelector("#persistent-panel-container");
if(D&&C&&X&&c&&W&&p&&g&&(this.aiCompanionEnabled?a:1)){var O=this.fullscreen||this.theater&&this.iMaxTheaterMode,P=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;P?(P=_.SY(this.hostElement).querySelector("#columns"),(c==null?void 0:c.parentElement)!==P&&P.append(c),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):O?W.appendChild(c):this.isTwoColumns_?_.Ei(p,c):_.Ei(D,c);O?(W.appendChild(C),W.appendChild(X),
this.aiCompanionEnabled&&a&&W.appendChild(a)):(this.isTwoColumns_?(_.Ei(p,C),_.Ei(p,X),this.aiCompanionEnabled&&a&&_.Ei(p,a)):(_.Ei(D,C),_.Ei(D,X),this.aiCompanionEnabled&&a&&_.Ei(D,a)),_.Ei(D,g))}}},
swatcherooUpdatePanelsLocation:function(D,C,X,c,W,p){if(this.is==="ytd-watch-grid"){C=D&&!C;this.swatcherooSplitScroll&&(C?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));X=_.SY(this.hostElement).querySelector("#panels");var g=_.SY(this.hostElement).querySelector("#playlist"),a=_.SY(this.hostElement).querySelector("#persistent-panel-container"),
O=_.SY(this.hostElement).querySelector("#fixed-secondary"),P=_.SY(this.hostElement).querySelector("#fixed-below"),k=_.SY(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),u=_.SY(this.hostElement).querySelector("#chat-container");p&&(D?(O.appendChild(X),this.aiCompanionEnabled&&a&&O.appendChild(a)):(P.appendChild(X),this.aiCompanionEnabled&&a&&P.appendChild(a)));W?D?O.appendChild(u):P.appendChild(u):_.Hq(u,k);c?D?O.appendChild(g):P.appendChild(g):_.Hq(g,
k);this.swatcherooSplitScroll&&(D=_.SY(this.hostElement).querySelector("#secondary"),c=_.SY(this.hostElement).querySelector("#columns"),W=_.SY(this.hostElement).querySelector("#fixed-columns-secondary"),C?W.appendChild(D):c.appendChild(D))}},
computeMetadataSkinnyMode:function(D,C,X){return this.is!=="ytd-watch-grid"?!1:D?X:C},
computeWatchWhilePanelsActive:function(D,C){return D||C},
computeNoBorderOnChat:function(D){return _.b("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,C){return D&&!C},
computePanelExpanded:function(D,C,X){return D||C||X},
computeSqueezeback:function(D,C,X,c){if(_.b("web_watch_enable_fs_squeezeback_panels")){var W=this.iMaxTheaterMode&&this.theater,p=this.theater&&!this.iMaxTheaterMode;return(D||C||X)&&(W||c)||C&&p}},
computeSwatcherooSqueezeback:function(D,C,X){return this.is!=="ytd-watch-grid"||_.b("ww_squeezeback_killswitch")?!1:D&&C&&X},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(D){_.Dw(this).getPlayerPromise().then(function(C){var X;(X=C.changeMarkerVisibility)==null||X.call(C,_.r(D,_.H5).isVisible||!1,_.r(D,_.H5).entityKeys||[],_.r(D,_.H5).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.fe().dispatch(_.jo2(D.detail));if(!this.liveChatCollapsed&&this.squeezeback){var C=_.iX().resolve(_.p6);this.visiblePanelIdentifiers_.forEach(function(X){C.hidePanel({identifier:X})})}},
onSetPlaylistCollapsed:function(D){_.b("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!D)},
provideRenderingData:function(D,C){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=C;break;case "PRIMARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=C);this.videoPrimaryInfoRendererValue=C==null?void 0:C.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=C);this.videoSecondaryInfoRendererValue=C==null?void 0:C.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
C;break;case "CLARIFICATION":this.clarifyBoxValue=C;break;case "LIVE_CHAT":this.conversationBar=C;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=C;break;case "PLAYLIST":this.externalPlaylistData_=C!=null?C:{};break;case "MERCH_SHELF":this.merchShelfValue=C==null?void 0:C.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=C;break;case "TICKET_SHELF":this.ticket=C;break;case "OFFER_MODULE":this.offerModule=C;break;case "LIMITED_STATE":this.limitedStateValue=
C;break;case "DONATION_SHELF":this.donation=C;break;case "ALERTS":this.alertsValue=C;break;case "COMMENTS":this.comments=C;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=C;break;case "ENGAGEMENT_PANELS":this.engagementPanels=C;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=C;break;case "RICH_GRID_RENDERER":this.richGridRendererData=C;break;case "EXPANDABLE_METADATA":this.expandableMetadata=C;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
C;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=C;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=C}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.iX().resolve(_.wB).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var ZGp;_.FZG=function(D){if(!(0,_.BxC)(D))throw Error("K``"+String(D));};
_.GAG=function(D){return D.findIndex(function(C){return ZGp.indexOf(C.tagName)>-1})>-1};
_.VY6=function(){var D=_.iX().resolve(_.lg);_.IRn(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(D.isFullscreenEnabled()?_.fN(document.documentElement):_.Xxh(document.documentElement))};
ZGp=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.$W=new Map;_.$W.set(32,59972);_.$W.set(27,50765);_.$W.set(70,60102);_.$W.set(76,60221);_.$W.set(77,60222);_.$W.set(74,60223);_.$W.set(84,60224);_.$W.set(38,61941);_.$W.set(40,61942);_.$W.set(73,62521);_.$W.set(67,62522);_.$W.set(80,63390);_.$W.set(78,63397);_.$W.set(75,59972);_.$W.set(188,63385);_.$W.set(190,63384);_.$W.set(36,63387);
_.$W.set(35,63386);_.$W.set(37,63388);_.$W.set(39,63389);_.$W.set(79,63423);_.$W.set(87,63424);_.$W.set(107,63426);_.$W.set(109,63425);_.$W.set(65,63428);_.$W.set(83,63430);_.$W.set(68,63429);_.$W.set(221,63431);_.$W.set(219,63432);_.$W.set(97,63439);_.$W.set(98,63440);_.$W.set(99,63441);_.$W.set(100,63442);_.$W.set(101,63443);_.$W.set(102,63444);_.$W.set(103,63445);_.$W.set(104,63446);_.$W.set(105,63447);_.vU=new Map;_.vU.set(80,63390);_.vU.set(78,63397);_.vU.set(188,63400);_.vU.set(190,63401);
_.vU.set(191,60765);_.vU.set(13,247917);_.Tit=new Map;_.HG1=new Map;
}catch(e){_._DumpException(e)}
try{
var DwN,cAN,on3,WZo;_.fgp=function(D){return D.ui.guideIsVisibleButNotPersistent};
_.dzP=function(D){return D.ui.tabGesturesIsActive};
_.RcP=function(){var D=_.bX("service_worker_scope");try{return navigator.serviceWorker.getRegistration(D)}catch(C){return Promise.reject(C)}};
_.lgk=function(D){return!(!D||!D.pushManager)};
DwN=function(){return _.RcP().then(_.lgk).catch(function(){return!1})};
_.CHt=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?DwN():Promise.resolve(!1)};
_.Xrw=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
cAN=function(){var D,C,X;return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(_.oc.getInstance(),2);case 2:D=c.yieldResult;if(!D){C=void 0;c.jumpTo(3);break}return c.yield(D.get("lmqf"),4);case 4:C=c.yieldResult;case 3:switch((X=C)||(X="SD"),X){case "HD":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return c.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
on3=function(D){var C,X,c;return _.I(function(W){if(W.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.b("disable_av1_setting")){var p=window.localStorage["yt-player-av1-pref"];p=p==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":p==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else p="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(C=D===p)return W.jumpTo(2);c=X=D;return W.yield(cAN(),3)}W.nextAddress!=2&&(C=c===W.yieldResult);return W.return(C)})};var prN;var Ssp=_.jB.IronButtonState,Uwk=(0,_.GI)(HTMLElement);
_.mZ({_template:function(){if(prN!==void 0)return prN;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;WZo===void 0&&(WZo=document.createElement("template"));var c=WZo;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return prN=D},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Ssp,_.Jn,_.MD,_.dP],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(D){var C=(0,_.yo)(this);C.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:D});C.shadowRoot.appendChild(D);return Uwk.prototype._attachDom.call(this,D)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.kr(this.$.content).getDistributedNodes(),C=0,X=D.length;C<X;C++)if(D[C].nodeType===Node.ELEMENT_NODE)return D[C]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var C="";D?C=D.label||D.getAttribute("label")||D.textContent.trim():C="";this.value=C;this._setSelectedItemLabel(C)},
_computeMenuVerticalOffset:function(D,C){return C?C:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",C=this.contentElement;C&&C.setAttribute("aria-expanded",D)}});_.gnp=new _.A7("navigateAction");var aJX=new _.A7("formRenderer");var cU=function(){var D=_.Qj.apply(this,arguments)||this;D.showInput=!1;return D};
_.h(cU,_.Qj);_.S=cU.prototype;_.S.detached=function(){this.showInput&&window.removeEventListener("click",_.Pr(this,this.closeOnOutsideClick_))};
_.S.stopPropagation_=function(D){this.showInput&&D.stopPropagation()};
_.S.closeOnOutsideClick_=function(D){this.closeOnOutsideClickCondition(D)&&(this.showInput=!1,window.removeEventListener("click",_.Pr(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.S.closeOnOutsideClickCondition=function(){return!0};
_.S.closeOnOutsideClickHandler=function(){};
_.S.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Pr(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.S.openOnClickHandler=function(){};
_.S.showInputChanged=function(){};
_.S.setShowInput=function(D){this.showInput=D};
cU.prototype.setShowInput=cU.prototype.setShowInput;cU.prototype.showInputChanged=cU.prototype.showInputChanged;cU.prototype.openOnClickHandler=cU.prototype.openOnClickHandler;cU.prototype.openOnClick_=cU.prototype.openOnClick_;cU.prototype.closeOnOutsideClickHandler=cU.prototype.closeOnOutsideClickHandler;cU.prototype.closeOnOutsideClickCondition=cU.prototype.closeOnOutsideClickCondition;cU.prototype.closeOnOutsideClick_=cU.prototype.closeOnOutsideClick_;cU.prototype.stopPropagation_=cU.prototype.stopPropagation_;
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],cU.prototype,"showInput",void 0);_.V([_.$n("click"),_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],cU.prototype,"stopPropagation_",null);_.V([_.vr("showInput"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],cU.prototype,"showInputChanged",null);_.V([_.Br()],cU);_.IJN=[cU.prototype];var OG6;var AAG;var oT=function(){return _.w.apply(this,arguments)||this};
_.h(oT,_.w);_.S=oT.prototype;_.S.computePreselectedOption=function(D,C){return C===this.itemSelected_?D:void 0};
_.S.dataChanged_=function(){var D=this;this.preselectedSubreason=this.itemSelected_=-1;var C;(C=this.data)!=null&&C.key&&_.A0(this,function(){var X,c=Number((X=D.data)==null?void 0:X.key);!Number.isNaN(c)&&(D.itemSelected_=c,X=(X=(D.data.items||[])[c])&&X.optionSelectableItemRenderer&&X.optionSelectableItemRenderer.preselectedIndex)&&(D.preselectedSubreason=X)})};
_.S.isSubReasonHidden_=function(D,C){return D!=C};
_.S.onTopItemSelected_=function(D,C){for(var X=_.SY(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),c=0,W=X.length;c<W;c++)X[c].select(0);_.DS(this.hostElement,"yt-report-form-update",[C.item.value]);D.stopPropagation()};
_.S.onItemSelected_=function(D,C){_.DS(this.hostElement,"yt-report-form-update",[C.item.value]);D.stopPropagation()};
_.S.getItem_=function(D){return D.serviceItem?D.serviceItem:D.navigationItem?D.navigationItem:D.optionSelectableItemRenderer?D.optionSelectableItemRenderer:null};
_.S.computeText_=function(D){return(D=this.getItem_(D))?this.ytRendererBehavior.getSimpleString(D.text):null};
_.S.validate=function(){return this.itemSelected_!==-1};
_.S.computeAriaLabel_=function(D){var C=_.Mh(D.text);(D=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label)&&(C+=". "+D);return C};
_.S.computeItemSelected_=function(D){return D};
_.S.preventSelection_=function(D){D.stopPropagation();this.tooltipTapped=!0};
_.S.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.S.updateItemSelectedFromBinding=function(D){this.itemSelected_=D.detail.value};
_.S.save=function(){var D;this.validate()&&(D=this.data)!=null&&D.items&&(D=this.data.items[this.itemSelected_],D!=null&&D.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(D.optionSelectableItemRenderer.submitEndpoint)||_.cE(this.hostElement,[D.optionSelectableItemRenderer.submitEndpoint])))};
oT.prototype.onPaperRippleTransitionEnd_=oT.prototype.onPaperRippleTransitionEnd_;oT.prototype.dataChanged_=oT.prototype.dataChanged_;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],oT.prototype,"data",void 0);_.V([_.n({value:-1}),_.z("design:type",Number)],oT.prototype,"itemSelected_",void 0);
_.V([_.n({computed:"computeItemSelected_(itemSelected_)"}),_.z("design:type",Number)],oT.prototype,"value",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],oT.prototype,"restoreFocusOnClose",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],oT.prototype,"tooltipTapped",void 0);_.V([_.n({value:-1}),_.z("design:type",Number)],oT.prototype,"preselectedSubreason",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oT.prototype,"dataChanged_",null);_.V([_.$n("transitionend"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oT.prototype,"onPaperRippleTransitionEnd_",null);_.V([_.Yn({is:"yt-options-renderer",disableElementRegistration:!0})],oT);
_.G(oT,"yt-options-renderer",function(){if(AAG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;OG6===void 0&&(OG6=document.createElement("template"));var c=OG6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);AAG=D}D=AAG;return D},{mode:2});var PHU;var $wU;var vno;var iGU;var kA3;var uz6;var WU=function(){return _.w.apply(this,arguments)||this};
_.h(WU,_.w);WU.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
WU.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
WU.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.X_(this.hostElement,"yt-share-panel-can-select-contact-action"))D&&D.detail&&(D.detail.x||D.detail.y)&&_.SY(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:D?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.DS(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.V([_.n({observer:"onDataChanged"}),_.z("design:type",Object)],WU.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.z("design:type",String)],WU.prototype,"componentTitle",void 0);_.V([_.kn("#thumbnail"),_.z("design:type",Object)],WU.prototype,"thumbnail",void 0);_.V([_.Yn({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],WU);
_.G(WU,"yt-enrolled-contact-renderer",function(){if(uz6===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;kA3===void 0&&(kA3=document.createElement("template"));var c=kA3;X.call(C,c.content.cloneNode(!0),D.content.firstChild);uz6=D}D=uz6;return D},{mode:2});var Qoo;var Bi3;var pB=function(){return _.w.apply(this,arguments)||this};
_.h(pB,_.w);pB.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
pB.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
pB.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.X_(this.hostElement,"yt-share-panel-can-select-contact-action"))D&&D.detail&&(D.detail.x||D.detail.y)&&_.SY(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:D?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.DS(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.V([_.n({observer:"onDataChanged"}),_.z("design:type",Object)],pB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.z("design:type",String)],pB.prototype,"componentTitle",void 0);_.V([_.kn("#thumbnail"),_.z("design:type",Object)],pB.prototype,"thumbnail",void 0);_.V([_.Yn({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],pB);
_.G(pB,"yt-suggested-contact-renderer",function(){if(Bi3===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Qoo===void 0&&(Qoo=document.createElement("template"));var c=Qoo;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Bi3=D}D=Bi3;return D},{mode:2});var SH=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-share-panel-reset-action":"onReset"};return D};
_.h(SH,_.w);SH.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"}}}}}};
SH.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.DS(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
SH.prototype.onReset=function(){for(var D=_.SY(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),C=D.length-1;C>=0;C--)D[C].classList.toggle("selected")};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],SH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({observer:"onDataChanged"}),_.z("design:type",Object)],SH.prototype,"data",void 0);
_.V([_.Yn({is:"yt-contact-section-renderer",disableElementRegistration:!0})],SH);
_.G(SH,"yt-contact-section-renderer",function(){if(iGU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;vno===void 0&&(vno=document.createElement("template"));var c=vno;X.call(C,c.content.cloneNode(!0),D.content.firstChild);iGU=D}D=iGU;return D},{mode:2});var Uo=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return D};
_.h(Uo,_.w);_.S=Uo.prototype;_.S.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"}}}};
_.S.onYtRefreshFormCommand=function(D){var C;(D=_.r((C=_.r(D,_.DDM))==null?void 0:C.formRenderer,aJX))&&this.set("data",D)};
_.S.reset=function(){var D=_.SY(this.hostElement).querySelector("#fields").children;D=_.U(D);for(var C=D.next();!C.done;C=D.next())C=C.value,C.reset&&C.reset()};
_.S.getForm=function(){var D={},C=_.SY(this.hostElement).querySelector("#fields").children;C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;if(!X.validate())return null;D[X.data.key]=X.value}return D};
_.S.submitFormFields=function(){if(this.fields)for(var D=_.U(this.fields),C=D.next();!C.done;C=D.next())C=C.value,C.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?C.save():C.nodeName==="YT-OPTIONS-RENDERER"&&C.save()};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Uo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Uo.prototype,"data",void 0);_.V([_.uH("#fields > *"),_.z("design:type",Array)],Uo.prototype,"fields",void 0);
_.V([_.Yn({is:"yt-form-renderer",disableElementRegistration:!0})],Uo);
_.G(Uo,"yt-form-renderer",function(){if($wU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;PHU===void 0&&(PHU=document.createElement("template"));var c=PHU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);$wU=D}D=$wU;return D},{mode:2});var bGw;var gK=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return D};
_.h(gK,_.w);gK.prototype.onCheckboxChange=function(D){this.data&&(D=(this.checked=_.qz(D).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})};
gK.prototype.handleUpdateCheckboxCommand=function(D){(D=_.r(D,_.i0N))&&this.data&&this.data.id===D.id&&(this.set("data.disabled",D.disabled),this.set("data.title",D.title))};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],gK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gK.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],gK.prototype,"checked",void 0);_.V([_.yj({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],gK);
_.G(gK,"ytd-settings-checkbox-renderer",function(){if(bGw!==void 0)return bGw;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return bGw=D},{mode:1});var rAk;var aT=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return D};
_.h(aT,_.w);aT.prototype.dataChanged=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return D.radio.removeAttribute("checked"),!D.data||!D.data.id||D.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Xrw()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(C=D.data&&D.data.id)?X.yield(on3(D.data.id),4):X.jumpTo(3):(D.set("data.hidden",!0),X.jumpTo(0));X.nextAddress!=3&&(C=X.yieldResult);C&&_.DS(D.hostElement,"yt-select-settings-radio-option",[D.data.id]);_.t_(X)})};
aT.prototype.onButtonChanged=function(D){_.qz(D).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.DS(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
aT.prototype.onSelectOption=function(D){this.data&&this.data.id&&(this.data.id===D?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
aT.prototype.dataChanged=aT.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],aT.prototype,"ytActionHandlerBehavior",void 0);_.V([_.kn("#radio"),_.z("design:type",Object)],aT.prototype,"radio",void 0);_.V([_.n(),_.z("design:type",Object)],aT.prototype,"data",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],aT.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],aT);
_.G(aT,"ytd-settings-radio-option-renderer",function(){if(rAk!==void 0)return rAk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rAk=D},{mode:1});var KZX;var IT=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return D};
_.h(IT,_.w);
IT.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"}}}};
IT.prototype.handleUpdateTextCommand=function(D){(D=_.r(D,_.kEc))&&this.data&&this.data.id===D.id&&this.set("data",D)};
IT.prototype.handleUpdateConnectedAppRendererCommand=function(D){if(_.r(D,_.BPJ)&&this.data){var C,X;if(D=(C=_.r(D,_.BPJ))==null?void 0:(X=C.newConnectedAppRenderer)==null?void 0:X.connectedAppRenderer)this.data=D}};
IT.prototype.computeConnectedAppStyle=function(D){return D.style?D.style.toLowerCase().replace(/_/g,"-"):""};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],IT.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.z("design:type",String)],IT.prototype,"connectedAppStyle",void 0);_.V([_.yj({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],IT);
_.G(IT,"ytd-connected-app-renderer",function(){if(KZX!==void 0)return KZX;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return KZX=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.JR("iuT5Oc");

_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("NSzT5");
var s3f=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.iX().resolve(_.pT),2);(D=C.yieldResult)&&D.pauseVideo();_.t_(C)})};var m_2=_.q8(["https://portraits.google.com"]),eWB=_.q8(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),E7H=_.q8(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),t6H=_.kX(m_2),N2z=_.F(function(D){function C(k){var u;if(k=(u=k.detail)==null?void 0:u.endpoint){u=_.r(k,_.Pl);var Q;u&&((Q=u.browseId)==null?0:Q.startsWith("UC"))&&u.browseId!==W()&&(_.QW("creator-chatbots-panel-persistent"),O.removeEventListener("yt-navigate-start",C))}}
var X=D.usePlayerHeight;var c=D.isPersistentPanel;var W=D.creatorChannelId;D=_.uu(_.Wfr);console.log("isNarrow",D());var p=_.fb(function(k){var u=W();u=_.kX(eWB,u);_.X7(k,1,u)}),g=function(){var k,u,Q;
return _.I(function(B){return B.nextAddress==1?B.yield(_.iX().resolve(_.pT),2):(k=B.yieldResult)?B.return({video_id:(Q=(u=k.getVideoData())==null?void 0:u.video_id)!=null?Q:"",timestamp_sec:k.getCurrentTime().toString()}):B.return({})})};
_.vf("message",function(k){var u,Q,B,K,L,t;return _.I(function(Y){if(Y.nextAddress==1){if((u=c)==null?0:u())return Y.return();if(k.origin!==t6H.toString())return console.warn("Received message from untrusted origin:",k.origin),Y.return();Q=k.data;if(typeof Q!=="object"||Q===null||!Q.action)return Y.return();if(Q.action==="pause")return Y.yield(s3f(),0);if(Q.action!=="getYouTubeContext"||!k.source)return Y.jumpTo(0);B=k.source;K=B.postMessage;L=JSON;t=L.stringify;return Y.yield(g(),7)}K.call(B,t.call(L,
{youTubeContext:Y.yieldResult}),{targetOrigin:k.origin});return Y.jumpTo(0)})});
var a=function(){var k,u;(k=p.value)==null||(u=k.contentWindow)==null||u.postMessage("ep_closed",t6H.toString())};
_.vf("yt-page-type-changed",function(){if(c==null?0:c()){var k;((k=_.iX().resolve(_.lu).getCurrentPage())==null?void 0:k.pageSubtype)!=="channels"&&(k=document.getElementById("creator-chatbots-panel-persistent"))&&(k.style.display="none")}});
var O=_.iX().resolve(_.HV),P;(P=O)==null||P.addEventListener("yt-navigate-start",C);_.z3(function(){var k;(k=O)==null||k.removeEventListener("yt-navigate-start",C)});
P={};return _.A("div",{class:_.g$("ytprotoCreatorChatbotsAppHost",(P.ytprotoCreatorChatbotsAppHostSingleColumn=D,P)),style:_.P0({height:function(){return(X==null?0:X())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.A(_.PO1,{id:function(){return(c==null?0:c())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:a,header:function(){return _.A("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.A("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.A(_.iI,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.A(_.b7,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var k=_.V$("https://portraits.google.com/gallery?ytChannelId="+W());k&&_.ct(window,k,"_blank");a()}})},
content:function(){return _.A("iframe",{el:p,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+t6H.toString()})}}))},"Ko"),Y4H=_.F(function(D){var C=D.creatorChannelId;
D=_.uu(_.Wfr);var X=_.fb(function(p){var g=C();g=_.kX(E7H,g);_.X7(p,1,g)}),c=_.vc(_.iO(),{veType:281629}),W={};
return _.A("div",{class:_.g$("ytprotoCreatorChatbotsAppHost",(W.ytprotoCreatorChatbotsAppHostSingleColumn=D,W)),style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.A(_.PO1,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.A("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.A("div",
{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.A(_.iI,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.A("iframe",{el:X,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.A("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.A(_.b7,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var p=_.V$("https://portraits.google.com/gallery?ytChannelId="+C());p&&_.ct(window,p,"_blank");s3f();c&&_.V6(_.iO(),{visualElement:c})},
"client-ve-type":281629}),_.A("div",null,"This will take you to Google Portraits"))}}))},"Lo");var yvz,n7z,wcH;yvz=_.q8(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);n7z=_.kX(yvz);
_.prD=function(D){D=D===void 0?"":D;_.QW("creator_chatbots-entry-point");_.QW("creator-chatbots-panel");_.kW(n7z);_.BU("ytd-watch-metadata #top-level-buttons-computed",function(C){document.getElementById("creator_chatbots-entry-point")||(_.u7({element:C,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.A(wcH,{creatorChannelId:D})}),_.AvU("creator-chatbots-panel",function(){return _.A(N2z,{usePlayerHeight:!0,
creatorChannelId:D})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.Ssv=function(D){D=D===void 0?"":D;_.QW("creator-chatbots-panel");_.BU("ytd-watch-metadata #top-level-buttons-computed",function(){_.AvU("creator-chatbots-panel",function(){return _.A(Y4H,{creatorChannelId:D})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
wcH=_.F(function(D){var C=D.creatorChannelId;var X=function(){_.AvU("creator-chatbots-panel",function(){return _.A(N2z,{usePlayerHeight:!0,creatorChannelId:C})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.A("div",{class:"ytd-menu-renderer"},_.A(_.FC,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:X}},
icon:function(){return _.A(_.$_,{icon:"SPARK"})}}))},"Mo");
_.HCt=function(D,C){D=D===void 0?"":D;C=C===void 0?!1:C;var X;return _.I(function(c){X=document.getElementById("creator-chatbots-panel-persistent");return!C||X?(!C&&X&&X.style.display==="none"&&(X.style.display="block"),c.jumpTo(0)):c.yield(new Promise(function(W){_.BU("ytd-app",function(p){_.u7({element:p,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.A(N2z,
{isPersistentPanel:!0,creatorChannelId:D})});
W()})}),0)})};
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("L3n37");
var uVj=function(D){return D.watch.isLearningJourneyActive},Q36=_.Ia(115994),B2$=_.Ia(115993),bbv=function(D,C,X){var c=this;
var W=X.dragDownAction;this.layer=0;this.JSC$23805_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.JSC$23805_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return c.dragDownAction()}}}};
this.fullscreen=!1;var p=_.iO();_.Tm(p,Q36,this.layer);_.Tm(p,B2$,this.layer);this.dragDownAction=function(){W();_.V6(p,{visualElement:c.fullscreen?Q36:B2$})};
this.gesture=new _.yV(D,C,this.getConfig(!1),"pandown");this.attach()};
bbv.prototype.attach=function(){this.gesture.attach()};
bbv.prototype.detach=function(){this.gesture.detach()};
bbv.prototype.update=function(D){this.fullscreen=D;var C=this.gesture;D=this.getConfig(D);C.config=D};
bbv.prototype.getConfig=function(D){return D?this.JSC$23805_watchFullScreenConfig:this.JSC$23805_watchConfig};var rvm=function(D){_.PU.call(this);var C=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return C.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(X){C.initOrDisposeActiveModules(X)}));
this.onAttached()};
_.h(rvm,_.PU);_.S=rvm.prototype;_.S.getRoot=function(){return this.rootElement};
_.S.getElement=function(D){return this.rootElement.getElement(D)};
_.S.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.S.getPlayerResponse=function(){return this.playerResponse};
_.S.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.S.getWatchNextResponse=function(){return this.watchNextResponse};
_.S.registerActionHandler=function(D,C){var X=this;if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.p2(_.Wf.getInstance(),(c[D]=C,c),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),c={},_.p2(_.Wf.getInstance(),(c[D]=function(){var W=_.MJ.apply(0,arguments);return(X.actionHandlers.get(D)||[]).map(function(p){return p.apply(null,_.VB(W))})},c),this.getRoot())),this.actionHandlers.get(D).push(C)};
_.S.unregisterActionHandler=function(D){if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.U6(_.Wf.getInstance(),(C[D]=!0,C),this.getRoot())}else(C=this.actionHandlers.get(D))?(C.pop(),C.length===0&&(C={},_.U6(_.Wf.getInstance(),(C[D]=!0,C),this.getRoot()),this.actionHandlers.delete(D))):_.fQ(new _.Zf("Attempted to unregister an action handler which is not registered.",D))};
_.S.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.e35(this.rootElement.pageDisposeJobs,D)};
_.S.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.VF(this.rootElement.pageDisposeJobs,D)};
_.S.dispatchEvent=function(D,C){_.lE(this.rootElement,D,C)};
_.S.provideRenderingData=function(D,C){this.rootElement.provideRenderingData(D,C)};
_.S.scrollWatchTo=function(D,C){var X;(X=this.watchScrollManager)==null||X.scrollWatchTo(D,C)};
_.S.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.A0(D,function(){if(D&&D.firstElementChild){var C=D.querySelector(".html5-video-player");C&&(_.ev(_.iX().resolve(_.B0)),C.focus())}else _.fQ(Error("hp"))})};
var Kp2=function(D){var C=!!D.rootElement.theater,X=!!D.rootElement.fullscreen,c;(c=D.watchCinematicManager)==null||_.f7U(c,X,C)};
_.S=rvm.prototype;_.S.subscribeToActiveChanged=function(D,C){C=C===void 0?!0:C;var X=_.dX(_.fe(),uVj,function(c){D(c)});
C&&D(uVj(_.fe().getState()));return X};
_.S.isActive=function(){return uVj(_.fe().getState())};
_.S.onAttached=function(){var D=_.b("external_fullscreen");_.b("use_unified_flag_accessor")&&(D=_.iX().resolve(_.H7U).retriever.getFlag(_.exb));(D||_.dq("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.S.initPersistentModules=function(){if(_.b("kevlar_watch_flexy_theater_manager")){var D=new _.rXH(this);_.hR(this,D)}D=new _.Ig6(this);_.hR(this,D);D=new _.eE(this);_.hR(this,D);D=new _.plJ(this);_.hR(this,D);D=new _.yD(this);_.hR(this,D);D=new _.Eh(this);_.hR(this,D);_.b("kevlar_watch_flexy_playlist_manager")&&(D=new _.HHd(this),_.hR(this,D))};
_.S.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.nv(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.xzj(this)),this.activeModules.push(new _.btz(this)),this.activeModules.push(new _.fgv(this)),this.activeModules.push(new _.uUJ(this)),_.b("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.LUj(this)),this.activeModules.push(new _.t_m(this)),_.b("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Rc2(this)),
_.b("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Fnv(this)),_.b("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.HeD(this),this.activeModules.push(this.watchCinematicManager),Kp2(this)),_.b("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.noj(this)),_.b("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.UzU(this)),D=_.b("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.b("kevlar_watch_flexy_comments_manager")&&
!D&&this.activeModules.push(new _.CjN(this)),_.b("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.VyD(this)),this.activeModules.push(new _.en2(this)),this.activeModules.push(new _.sEv(this)),_.b("web_enable_timely_actions")&&this.activeModules.push(new _.Y1D(this)),_.b("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.cXH(this)),_.b("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.MyU(this)),_.b("web_fullscreen_components")&&
this.activeModules.push(new _.tyN(this)),_.b("web_player_rtr_ctrls")&&this.activeModules.push(new _.WnB(this))):(_.go(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.S.disposeInternal=function(){_.PU.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.$a.Object.defineProperties(rvm.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var hWd={},x_H=["learning-journey-engagement-panel","PAlearning_chat"];
hWd.YtdLearningJourneyWatchBehavior=[_.f.YtRendererBehavior,_.rv.YtPlayerListenerBehavior,_.eO.YtRendererstamperBehavior,_.Jy.YtActionHandlerBehavior,_.Ca.YtPageBehavior,_.Hm.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 _.dq("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.b("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 _.dq("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 _.b("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.b("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 _.BK("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.BK("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_rounded_player_large")||_.b("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 _.b("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.b("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.RD(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.RD(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.b("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.b("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.b("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.dwf(function(){return _.Dw(D)},
this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.b("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
_.b("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Ev;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;_.b("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.b("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));_.b("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Pr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.b("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.b("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.b("kevlar_watch_while_v2")&&!_.b("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.lE(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var C=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var X;(X=this.watchController)==null||X.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.hZ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sp("nw");this.loading=!1;_.Zo(_.qX,function(){C.initDclkstatus_();var c,W=((c=C.player)==null?void 0:c.getVideoData().cpn)||"";_.yA6(function(p,g){_.Yso(p,g,W)})})},
onPageLoadWithSameData_:function(){_.b("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 D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;var C,X,c;D=(C=this.loadingData)==null?void 0:(X=C.endpoint)==null?void 0:(c=X.watchEndpoint)==null?void 0:c.videoId;var W;D&&(W="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.SY(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.SY(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var C,X;(X=(C=this.watchMetadata).updateSentimentBarWidth)==
null||X.call(C);var c,W;(W=(c=this.watchMetadata).resize)==null||W.call(c)}_.SY(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(D){var C=_.SY(this.hostElement).querySelector(D);C?_.dl(C,!1):_.fQ(new _.Zf("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var C=_.SY(this.hostElement).querySelector(D);C?_.RB(C):_.fQ(new _.Zf("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?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(D){var C=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.qX.addLowPriorityJob(function(){C.onWindowResized_(_.ij(!0))})},
updateTheaterModeState_:function(D){if(!_.b("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.JgB()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var D=this.theater;_.b("external_fullscreen")&&this.fullscreen&&(D=!0);D=D?_.SY(this.hostElement).querySelector("#player-full-bleed-container"):_.SY(this.hostElement).querySelector("#player-container-inner");var C=this.getPlayerContainer(),X=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip");C.parentElement!==D&&(X&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Dw(this).appendTo(D,C),D.appendChild(_.SY(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.iX().resolve(_.wB).deactivate(),2);D.updatePlayerLocation();_.t_(C)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var C=this.getCinematicsLocationContainer();D.parentElement!==C&&C.appendChild(D);var X;(X=this.watchController)==null||Kp2(X)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.SY(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.SY(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(D,C){var X=document.documentElement.hasAttribute("dark"),c=!X&&this.cinematicLightTheme;return D&&X||C&&X||(C||D)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data);_.b("kevlar_watch_flexy_comments_manager")||this.initComments_();_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.iX().resolve(_.iP).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.b("web_watch_start_chat_in_theater_mode")){var C,
X,c;if((C=this.data)==null?0:(X=C.contents)==null?0:(c=X.twoColumnWatchNextResults)==null?0:c.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var W,p;((W=this.data)==null?0:(p=W.contents)==null?0:p.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(D){var C;(C=this.watchController)==null||C.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(C=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),C&&!D||_.A0(this,function(){_.sp("pbu")}));
this.setPlayerAds_();_.Ct(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(D){_.fe().dispatch(_.oI({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new rvm(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.b("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var C=_.Dw(this);_.b("kevlar_disable_prepare_player")||C.preparePlayer();_.b("kevlar_watch_flexy_playlist_manager")||_.iX().resolve(_.iP).setPlayer(C);this.updatePageMediaQueries();C={"--ytd-watch-flexy-scrollbar-width":_.CB()+
"px"};!_.BK("kv_pl_mx_sz_ks")&&_.BK("kevlar_watch_max_player_width")&&(C["--ytd-watch-flexy-max-player-width-wide-screen"]=_.FMB+"px");_.BK("kevlar_watch_flexy_metadata_height")&&(C["--ytd-watch-flexy-space-below-player"]=_.ZQf+"px");this.safeUpdateStyles(C);_.b("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new bbv(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
_.b("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.SY(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var D=_.CB(),C=_.Ys+D,X=C;this.fixedPanels&&(C+=_.wLD);var c=657+D;D=1327+D;_.SY(this.hostElement).querySelector("#two-column-query").query="(min-width: "+C+"px)";_.SY(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(c+"px), (min-height: 630px) and (min-width: ")+(C+"px) and (max-width: ")+(D+"px)");_.SY(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.SY(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+X+"px)"},
calculateCurrentPlayerSize_:function(){var D=_.SY(this.hostElement).querySelector("#miniplayer-bar").firstChild;return D&&D.active||this.theater||_.b("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.me(NaN,NaN):_.GAz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.GAz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ue(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.ij());_.b("browse_skeleton_removal_on_watch_killswitch")||_.dq("IS_SHELL_LOAD")&&_.sVv();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var C=_.Dw(this);C.addEventListener("yt-player-updated",_.Pr(this,this.onPlayerUpdated_));C.getPlayerPromise().then(function(X){D.playerApiReady_(X)});
_.b("kevlar_watch_flexy_playlist_manager")||(C=_.iX().resolve(_.iP),_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&C.addEventListener("yt-navigate",_.Pr(this,this.onYtNavigate_)),C.setPlaylistComponent(_.SY(this.hostElement).querySelector("#playlist")),C.addEventListener("yt-playlist-data-updated",_.Pr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.qX.addLowPriorityJob(function(){_.lE(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Dw(this).removeEventListener("yt-player-updated",_.Pr(this,this.onPlayerUpdated_));if(!_.b("kevlar_watch_flexy_playlist_manager")){var D=_.iX().resolve(_.iP);_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.Pr(this,this.onYtNavigate_));D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.Pr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.b("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.lE(this.hostElement,"yt-autonav-pause-player",!1);D=_.qF();_.b("kevlar_exit_fullscreen_leaving_watch")&&D&&_.fN(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.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(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,C){C.hasComments?C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):C.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,C){this.player&&(C?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.wd6("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.SY(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.SY(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.b("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.b("kevlar_unified_player")||_.b("kevlar_player_new_bootstrap_adoption"))&&_.Gt()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,C){C=C===void 0?!0:C;_.qF()&&_.b("external_fullscreen")&&_.fN(document.documentElement);this.theaterRequested_=D;C&&_.y3("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.DS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.lE(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(D){_.dO(D,typeof this.player),this.player&&_.dO(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.DS(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,C){return this.loading?C:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.U(D);for(var C=D.next();!C.done;C=D.next())C=C.value,C.youThereRenderer&&_.D_B(this.youThereManager_,C.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var C=this.youThereManager_;_.kl()<D.lowEngagementThresholdMs||_.o7m(C,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.DS(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,C,X){return!!D&&!this.isVideoPlayable_(D,X)&&!C},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,C){if(!D)return!1;var X=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",c=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var W;C=C==null?void 0:(W=C.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!X||!!c||!!D||!!C},
hasWatchNextResponseErrorRenderer:function(D){var C=this.getPageContents(D),X,c,W,p,g;return!(D==null?0:(X=D.contents)==null?0:(c=X.twoColumnWatchNextResults)==null?0:c.secondaryResults)&&!!((W=C[0])==null?0:(p=W.itemSectionRenderer)==null?0:(g=p.contents[0])==null?0:g.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,C,X){var c=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.b("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&W.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var p=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);p==void 0&&(p=!0);!X||this.isVideoPlayable_(D,this.getPlayerOverlays_(C))||
c||W||!p||_.iX().resolve(_.iP).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.TiN()},
onPlayerFeedbackStartRequest_:function(D){_.DS(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.DS(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,C,X,c,W,p,g,a,O=((D=this.data)==null?NaN:(C=D.contents)==null?NaN:(X=C.twoColumnWatchNextResults)==null?NaN:(c=X.secondaryResults)==null?NaN:(W=c.secondaryResults)==null?NaN:(p=W.offerModule)==null?NaN:(g=p.tvfilmOfferModuleRenderer)==null?NaN:(a=g.actionButtons)==null?NaN:a.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];C=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(X=C.next();!X.done;X=C.next())for(X=X.value,c=_.U(D),W=c.next();!W.done;W=c.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+X+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.O4(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.lE(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.lE(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.fe().dispatch(_.P$q(D))},
onPlayerSubscribe_:function(D){_.DS(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.DS(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.DS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(D){return!_.CG("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.b("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var D,C,X,c;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(C=D.contents)==null?void 0:(X=C.twoColumnWatchNextResults)==null?void 0:(c=X.secondaryResults)==null?void 0:c.secondaryResults}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,C=(D=this.data)==null?void 0:D.engagementPanels;if(C==null?0:C.length){D=null;C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=void 0;if(((c=X.engagementPanelSectionListRenderer)==null?void 0:c.targetId)==="engagement-panel-structured-description"){D=X;break}}var W,p,g;D=(W=D)==null?void 0:(p=W.engagementPanelSectionListRenderer)==null?void 0:(g=p.content)==null?void 0:g.structuredDescriptionContentRenderer;if(D==null?0:D.items){W=
[];p=_.U(D.items);for(g=p.next();!g.done;g=p.next()){g=g.value;if(!_.b("sd_horizontal_list_show_nav_killswitch")){var a=c=X=C=D=void 0,O=void 0,P=(D=g.horizontalCardListRenderer)==null?void 0:(C=D.header)==null?void 0:(X=C.richListHeaderRenderer)==null?void 0:(c=X.navigationButton)==null?void 0:(a=c.buttonRenderer)==null?void 0:(O=a.command)==null?void 0:O.commandExecutorCommand;P&&P.commands&&(P.commands=P.commands.filter(function(k){return!_.r(k,_.DN6)}))}g.expandableVideoDescriptionBodyRenderer||
g.videoDescriptionHeaderRenderer||W.push(g)}return{items:W}}}},
constructWarning_:function(D){return{text:_.jV(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.lE(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var C=this.getScrollTop()>0;this.gestures_&&(C?this.gestures_.detach():this.gestures_.attach());C!==this.showFullerscreenEdu_&&_.b("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=C,_.Dw(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.lE(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.qX.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Zo(_.qX,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.b("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sp("cmi");_.qX.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.U(D);for(var C=D.next();!C.done;C=D.next())if(C=C.value,this.get("itemSectionRenderer.sectionIdentifier",C)==="comment-item-section"){this.comments=C.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.lE(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sp("cmc")},
doRemoveComments_:function(){this.comments={};_.b("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.qX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.qX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,C){var X=_.r(C.endpoint,_.TC);X&&(!(C=this.get("data.currentVideoEndpoint.watchEndpoint"))||X.videoId!==C.videoId||X.playlistId&&X.playlistId!==C.playlistId||X.index!==void 0&&X.index!==C.index||typeof X.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.Dw(this).getPlayerPromise().then(function(c){var W=X.startTimeSeconds;c.seekTo(W);c.wakeUpControls();W<c.getDuration()&&c.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.xwN();"t"in D&&(D=_.VYU(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var C,X;(D=_.Mh(D==null?void 0:(C=D[0])==null?void 0:(X=C.videoPrimaryInfoRenderer)==null?void 0:X.title))&&_.lE(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.lE(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,C,X){if(this.active&&this.player){var c=this.player.getVideoData();if(c.video_id===X&&(X=c.list,_.b("polymer_enable_mdx_queue")&&X&&X.startsWith("RQ")&&(X=void 0),c.video_id!==D||X!=C)){var W;_.b("kevlar_player_watch_endpoint_navigation")?W=_.VWt(_.nn6(D,C)):W=this.buildWatchEndpoint_(D,C);_.lE(this.hostElement,"yt-navigate",{endpoint:W,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,C,X){return _.D7(D,C,X)},
initDclkstatus_:function(){_.ZGv()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var C=D.querySelector("#primary-info"),X=D.querySelector("#secondary-info"),c=D.querySelector("#related");C&&_.SY(this.hostElement).querySelector("#info-skeleton").appendChild(C);X&&_.SY(this.hostElement).querySelector("#meta-skeleton").appendChild(X);c&&(_.SY(this.hostElement).querySelector("#related-skeleton").appendChild(c),this.watchNextSkeletonEl_=c);_.ep(D)}},
handlePlayerUpdated_:function(){_.Dw(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,C){if(this.watchNextSkeletonEl_&&typeof C!=="undefined"){var X=this.watchNextSkeletonEl_.children,c=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,X.length);C||(c=0,D=X.length);for(C=c;C<D;C++)X[C].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.b("external_fullscreen")||_.DS(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var C=_.Dw(this);C.getPlayerPromise().then(function(X){X.setFauxFullscreen(!!_.qF())});
this.updateFullBleedElementLocations();D&&(C.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,C){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!C},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,C){return C&&!!D},
computeResponseHasComments:function(D){var C,X,c,W,p;return!!(D==null?0:(C=D.contents)==null?0:(X=C.twoColumnWatchNextResults)==null?0:(c=X.results)==null?0:(W=c.results)==null?0:(p=W.contents)==null?0:p.some(function(g){var a;return(g==null?void 0:(a=g.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,C){this.responseHasComments=this.computeResponseHasComments(this.data);return!!D&&!!Object.keys(D).length&&!C},
identity:_.nh,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.b("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var C=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.Dw(this).getPlayerPromise().then(function(X){var c=X.getPlayerState();c!==5&&c!==0&&(X=1/X.getVideoAspectRatio(),C.videoHeightToWidthRatio_!==X&&(C.videoHeightToWidthRatio_=X))})},
schedulePlayerSizeUpdate_:function(D){var C=this,X=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"),c=function(){if(C.watchMetadata){var W,p;(p=(W=C.watchMetadata).resize)==null||p.call(W)}_.Dw(C).getPlayerPromise().then(function(g){if(_.b("kevlar_set_internal_player_size")){if(!X||!C.isMiniplayerActive()){var a=C.calculateCurrentPlayerSize_();g.setInternalSize(a.width,a.height)}}else g.setSize(NaN,NaN);_.b("kevlar_watch_while")&&C.updateWatchWhileScrollThreshold_()})};
D?c():_.$w(_.qX,c)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.r(D,_.fJD).survey)},
onDownloadedVideoDeleted:function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1){if(!C.active||(X=C.playerData)==null||!X.offlineState||C.videoId!==D)return W.return();(c=C.player)==null||c.stopVideo();_.qg().navigatingAwayFromWatchDeletedVideo=!0;_.O4(_.dKJ,C.hostElement);return W.yield(_.qg().navigationFinishPromise,2)}_.qg().navigatingAwayFromWatchDeletedVideo=!1;_.t_(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.N8(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.SY(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var C=this.windowSize_.height>=624,X=this.active?this.getScrollTop():0;!D.active&&C&&X>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!C||X<this.watchWhileScrollThreshold_&&!_.qF())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(D,C){if(D!==!0||C!==void 0){D=!_.b("live_chat_over_engagement_panels");C=_.SY(this.hostElement).querySelector("#chat-container");var X=_.SY(this.hostElement).querySelector("#plj-sidebar"),c=_.SY(this.hostElement).querySelector("#panels"),W=_.SY(this.hostElement).querySelector("#plj-panels"),p=_.SY(this.hostElement).querySelector("#plj-playlist"),g=_.SY(this.hostElement).querySelector("#alerts"),a=_.SY(this.hostElement).querySelector("#playlist"),O=_.SY(this.hostElement).querySelector("#related"),
P=_.SY(this.hostElement).querySelector("#donation-shelf"),k=_.SY(this.hostElement).querySelector("#comments");this.isTwoColumns_?(g=_.SY(this.hostElement).querySelector("#secondary-inner"),g.appendChild(X),X.appendChild(p),p.appendChild(a),X.appendChild(W),D&&g.appendChild(c),_.b("web_watch_theater_chat")||g.appendChild(C),D||g.appendChild(c),g.appendChild(P),g.appendChild(O)):(D&&_.Ti(c,g),_.Ti(a,g),_.b("web_watch_theater_chat")||_.Ti(C,g),D||_.Ti(c,g),_.Ti(P,g),k&&(W&&_.Ti(W,k),_.Ti(O,k)));_.b("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.b("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.b("web_watch_theater_chat")){var D=_.SY(this.hostElement).querySelector("#chat-container"),C=this.theater&&!this.fullscreen||_.b("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&C?_.b("web_watch_theater_chat_beside_player")?(C=_.SY(this.hostElement).querySelector("#panels-full-bleed-container"),(D==null?void 0:D.parentElement)!==C&&C.append(D),this.panelsBesidePlayer=!0):_.b("web_watch_theater_fixed_chat")&&
(C=_.SY(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==C&&C.append(D),this.fixedPanels=!0):(_.b("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.b("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),C=_.SY(this.hostElement).querySelector("#playlist"),D&&C?_.Hq(D,C):_.fQ(new _.Zf("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!C})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,C){return _.b("sw_metadata_vis_toggle_ks")?!0:!!D||!!C},
computeForceDarkPanelTheme:function(D){return _.b("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.Os(this.hostElement,D)}catch(C){_.fQ(C)}},
videoHeightToWidthRatioChanged_:function(D,C){C&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Dw(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Dw(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.WpU(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var C=_.KH(D)||0;_.rL(D,C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.KH("yt-fullerscreen-edu-button-click-count")||0,C=_.KH("yt-fullerscreen-edu-button-shown-count")||0,X=_.BK("external_fullscreen_button_shown_threshold"),c=D>=_.BK("external_fullscreen_button_click_threshold")||C>=X;_.Dw(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(c)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,C){return C},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.iX().resolve(_.iP).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.panelMaxHeightUpdateJob_&&_.qX.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.qX.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var C;!D.isTwoColumns_||D.theater||D.fullscreen?C=460:C=D.calculateNormalPlayerSize_().height;var X=C+"px";_.b("live_chat_taller_height")&&!D.theater&&(X="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.b("live_chat_medium_height")&&
!D.theater&&(X="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.b("live_chat_scaled_height")&&!D.theater&&(X="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":C+"px","--ytd-watch-flexy-chat-max-height":X,"--ytd-watch-flexy-structured-description-max-height":C+"px","--ytd-watch-flexy-comments-panel-max-height":C+"px","--ytd-comments-engagement-panel-content-height":C+"px"})})},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.o7(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var C=_.SY(this.hostElement).querySelector("#engagement-panel-scrim");D?C.addEventListener("tap",_.Pr(this,this.onEngagementPanelScrimClick_)):C.removeEventListener("tap",_.Pr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var C=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var X=this.getPageScrollingElement(),c=this.getScrollTop(),W=c+X.clientHeight-56;if(C<c+56)C-=56;else if(D>W)C=D-X.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.b("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.eo().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,C,X){this.active&&this.trackEngagementPanelVisibility&&!_.MYv.includes(X)&&(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(X),C!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(X),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeFullBleedPlayer:function(D,C){return D||C},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,C){return!D&&C},
computeWatchWhilePanelsActive:function(D,C){return D||C},
computeNoBorderOnChat:function(D){return _.b("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,C){return D&&!C},
computePanelExpanded:function(D,C,X){return D||C||X},
onChangeMarkersVisibility:function(D){_.Dw(this).getPlayerPromise().then(function(C){var X;(X=C.changeMarkerVisibility)==null||X.call(C,_.r(D,_.H5).isVisible||!1,_.r(D,_.H5).entityKeys||[],_.r(D,_.H5).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.fe().dispatch(_.jo2(D.detail))},
provideRenderingData:function(D,C){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=C;break;case "PRIMARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=C);this.videoPrimaryInfoRendererValue=C==null?void 0:C.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=C);this.videoSecondaryInfoRendererValue=C==null?void 0:C.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
C;break;case "CLARIFICATION":this.clarifyBoxValue=C;break;case "LIVE_CHAT":this.conversationBar=C;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=C;break;case "PLAYLIST":this.externalPlaylistData_=C!=null?C:{};break;case "MERCH_SHELF":this.merchShelfValue=C==null?void 0:C.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=C;break;case "OFFER_MODULE":this.offerModule=C;break;case "LIMITED_STATE":this.limitedStateValue=C;break;case "DONATION_SHELF":this.donation=C;break;
case "ALERTS":this.alertsValue=C;break;case "COMMENTS":this.comments=C;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=C;break;case "ENGAGEMENT_PANELS":this.engagementPanels=C;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=C;break;case "RICH_GRID_RENDERER":this.richGridRendererData=C;break;case "EXPANDABLE_METADATA":this.expandableMetadata=C;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=C}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.iX().resolve(_.wB).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(D){return x_H.map(function(C){return D.find(function(X){var c;return(X==null?void 0:(c=X.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===C})}).filter(function(C){return C!==void 0})},
getNonLearningJourneyEngagementPanels:function(D){return D.filter(function(C){var X;return!x_H.includes((C==null?void 0:(X=C.engagementPanelSectionListRenderer)==null?void 0:X.targetId)||"")})}}];var Lp$;var l0=function(){var D=_.w.apply(this,arguments)||this;D.flexy=!0;D.learningJourney=!0;D.viewTransitionEnabled=_.b("enable_player_resize_transition");D.smallerChatMinHeight=_.b("live_chat_smaller_min_height");D.isDarkTheme=document.documentElement.hasAttribute("dark");D.theaterLargerPlayer=_.b("web_watch_theater_larger_player");D.defaultCollapsePlaylist=_.b("web_watch_default_collapse_playlist");D.enableCanvasLayout=_.b("web_enable_canvas_on_learning_journey");return D};
_.h(l0,_.w);_.S=l0.prototype;_.S.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.S.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.S.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.S.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.S.ready=function(){var D=this,C=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.S.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.S.updateIsTwoColumnsFromBinding=function(D){_.b("web_watch_update_narrow_width_killswitch")||_.fe().dispatch(_.jp2(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.S.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.S.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.S.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.S.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.S.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.S.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23814_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23814_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$a.Object.defineProperties(l0.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(D=_.r(this.data.pageVisualEffects[C],_.RO))return C=void 0,(C=D.config)==null?void 0:C.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.learningJourneyEngagementPanels)==null?void 0:D.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var D,C=(D=this.learningJourneyEngagementPanels)==null?void 0:D.find(function(Q){var B;return(Q==null?void 0:(B=Q.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="learning-journey-engagement-panel"});
if(C){var X,c,W,p,g,a,O,P,k;if(D=(P=((O=(g=((p=C==null?void 0:(X=C.engagementPanelSectionListRenderer)==null?void 0:(c=X.content)==null?void 0:(W=c.sectionListRenderer)==null?void 0:W.contents)!=null?p:[])[0])==null?void 0:(a=g.itemSectionRenderer)==null?void 0:a.contents)!=null?O:[])[0])==null?void 0:(k=P.accordionViewModel)==null?void 0:k.onTitleTap){var u=_.Y7(D);if(u)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.I3.instance.resolveCommand(u)}}}}}}});
_.$a.Object.defineProperties(l0,{template:{configurable:!0,enumerable:!0,get:function(){if(Lp$===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);Lp$=D}D=Lp$;return D}}});
l0.prototype.updateMiniplayerIsActiveValue=l0.prototype.updateMiniplayerIsActiveValue;l0.prototype.updateScrollTopValue=l0.prototype.updateScrollTopValue;l0.prototype.updateFullscreenValue=l0.prototype.updateFullscreenValue;l0.prototype.updateTheaterValue=l0.prototype.updateTheaterValue;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],l0.prototype,"ytComponentBehavior",void 0);
_.V([_.m(hWd.YtdLearningJourneyWatchBehavior),_.z("design:type",Object)],l0.prototype,"ytdWatchBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],l0.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],l0.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],l0.prototype,"playerData",void 0);_.V([_.n(),_.z("design:type",Object)],l0.prototype,"browseData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l0.prototype,"flexy",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l0.prototype,"learningJourney",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l0.prototype,"viewTransitionEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l0.prototype,"smallerChatMinHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l0.prototype,"isDarkTheme",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],l0.prototype,"theaterLargerPlayer",void 0);_.V([_.n(),_.z("design:type",Object)],l0.prototype,"defaultCollapsePlaylist",void 0);_.V([_.n(),_.z("design:type",Object)],l0.prototype,"enableCanvasLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("playerData","browseData","enableCanvasLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],l0.prototype,"showBrowseResponse",null);
_.V([_.n({reflectToAttribute:!0}),_.e("playerData","enableCanvasLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],l0.prototype,"showWatchResponse",null);_.V([_.n({selector:_.tl}),_.z("design:type",Object)],l0.prototype,"theaterValue",void 0);_.V([_.n({selector:_.Nn}),_.z("design:type",Object)],l0.prototype,"fullscreenValue",void 0);_.V([_.n({selector:_.si}),_.z("design:type",Object)],l0.prototype,"scrollTopValue",void 0);
_.V([_.n({selector:_.E1}),_.z("design:type",Object)],l0.prototype,"miniplayerIsActiveValue",void 0);_.V([_.kn("#ytd-plj-player"),_.z("design:type",HTMLElement)],l0.prototype,"ytdPlayer",void 0);_.V([_.kn("#playlist"),_.z("design:type",HTMLElement)],l0.prototype,"JSC$23814_ytdPlaylistPanelRenderer",void 0);_.V([_.AQ("ytd-comments"),_.z("design:type",HTMLElement)],l0.prototype,"ytdComments",void 0);_.V([_.kn("#primary"),_.z("design:type",HTMLElement)],l0.prototype,"primary",void 0);
_.V([_.kn("#secondary"),_.z("design:type",HTMLElement)],l0.prototype,"secondary",void 0);_.V([_.kn("#player-container"),_.z("design:type",HTMLElement)],l0.prototype,"playerContainer",void 0);_.V([_.kn("#cinematics"),_.z("design:type",HTMLElement)],l0.prototype,"JSC$23814_cinematics",void 0);_.V([_.vr("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l0.prototype,"updateTheaterValue",null);
_.V([_.vr("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l0.prototype,"updateFullscreenValue",null);_.V([_.vr("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l0.prototype,"updateScrollTopValue",null);_.V([_.vr("miniplayerIsActiveValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l0.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],l0.prototype,"cinematicLightTheme",null);_.V([_.n({reflectToAttribute:!0}),_.e("learningJourneyEngagementPanels"),_.z("design:type",Object),_.z("design:paramtypes",[])],l0.prototype,"hasLearningJourneyPanels",null);_.V([_.e("learningJourneyEngagementPanels"),_.z("design:type",Object),_.z("design:paramtypes",[])],l0.prototype,"backButtonData",null);_.V([_.yj({is:"ytd-watch-learning-journey"})],l0);_.A$.registerService(_.uKW,l0);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("Tm0L3c");
var POf;var $_v;var v7D=function(){return _.w.apply(this,arguments)||this};
_.h(v7D,_.w);_.V([_.yj({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],v7D);
_.G(v7D,"ytd-ghost-comments-renderer",function(){if($_v===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);$_v=D}D=$_v;return D},{mode:1});var ibD;var k2B=function(){return _.w.apply(this,arguments)||this};
_.h(k2B,_.w);_.V([_.yj({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],k2B);
_.G(k2B,"ytd-ghost-watch-metadata-renderer",function(){if(ibD===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);ibD=D}D=ibD;return D},{mode:1});var Rt=function(){var D=_.w.apply(this,arguments)||this;D.ghostGridRenderer={rows:6};D.smallerChatMinHeight=_.b("live_chat_smaller_min_height");D.darkerPanels=_.b("web_watch_darker_panels");D.isDarkTheme=document.documentElement.hasAttribute("dark");return D};
_.h(Rt,_.w);_.S=Rt.prototype;_.S.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.S.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.S.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.S.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.S.ready=function(){var D=this,C=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.S.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.S.updateIsTwoColumnsFromBinding=function(D){this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.S.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.S.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.S.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.S.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.S.updateShownItemsFromBinding=function(D){_.b("swatcheroo_direct_use_rich_grid")||(D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value)};
_.S.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23802_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23802_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$a.Object.defineProperties(Rt.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(D=_.r(this.data.pageVisualEffects[C],_.RO))return C=void 0,(C=D.config)==null?void 0:C.enableInLightTheme;return!1}}});
Rt.prototype.updateMiniplayerIsActiveValue=Rt.prototype.updateMiniplayerIsActiveValue;Rt.prototype.updateScrollTopValue=Rt.prototype.updateScrollTopValue;Rt.prototype.updateFullscreenValue=Rt.prototype.updateFullscreenValue;Rt.prototype.updateTheaterValue=Rt.prototype.updateTheaterValue;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Rt.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.Ob6.YtdWatchBehavior),_.z("design:type",Object)],Rt.prototype,"ytdWatchBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Rt.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rt.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Rt.prototype,"ghostGridRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],Rt.prototype,"playerData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rt.prototype,"smallerChatMinHeight",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rt.prototype,"darkerPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Rt.prototype,"isDarkTheme",void 0);_.V([_.n({selector:_.tl}),_.z("design:type",Object)],Rt.prototype,"theaterValue",void 0);_.V([_.n({selector:_.Nn}),_.z("design:type",Object)],Rt.prototype,"fullscreenValue",void 0);_.V([_.n({selector:_.si}),_.z("design:type",Object)],Rt.prototype,"scrollTopValue",void 0);
_.V([_.n({selector:_.E1}),_.z("design:type",Object)],Rt.prototype,"miniplayerIsActiveValue",void 0);_.V([_.kn("#ytd-player"),_.z("design:type",HTMLElement)],Rt.prototype,"ytdPlayer",void 0);_.V([_.kn("#playlist"),_.z("design:type",HTMLElement)],Rt.prototype,"JSC$23802_ytdPlaylistPanelRenderer",void 0);_.V([_.kn("#ytd-comments"),_.z("design:type",HTMLElement)],Rt.prototype,"ytdComments",void 0);_.V([_.kn("#primary"),_.z("design:type",HTMLElement)],Rt.prototype,"primary",void 0);
_.V([_.kn("#secondary"),_.z("design:type",HTMLElement)],Rt.prototype,"secondary",void 0);_.V([_.kn("#player-container"),_.z("design:type",HTMLElement)],Rt.prototype,"playerContainer",void 0);_.V([_.kn("#cinematics"),_.z("design:type",HTMLElement)],Rt.prototype,"JSC$23802_cinematics",void 0);_.V([_.vr("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rt.prototype,"updateTheaterValue",null);
_.V([_.vr("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rt.prototype,"updateFullscreenValue",null);_.V([_.vr("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rt.prototype,"updateScrollTopValue",null);_.V([_.vr("miniplayerIsActiveValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Rt.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rt.prototype,"cinematicLightTheme",null);
_.G(Rt,"ytd-watch-grid",function(){if(POf===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);POf=D}D=POf;return D},{mode:2});_.A$.registerService(_.kzW,Rt);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("CF909");
var Av$;var dc=function(){var D=_.w.apply(this,arguments)||this;D.viewTransitionEnabled=_.b("enable_player_resize_transition");D.smallerChatMinHeight=_.b("live_chat_smaller_min_height");D.isDarkTheme=document.documentElement.hasAttribute("dark");D.defaultCollapsePlaylist=_.b("web_watch_default_collapse_playlist");D.respectAspectRatio=_.b("web_enable_aspect_ratio_fix");D.retroModeReduxValue=!1;D.persistentPanelVisibleValue=!1;return D};
_.h(dc,_.w);_.S=dc.prototype;_.S.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.S.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.S.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.S.updateRetroModeReduxValue=function(){_.b("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.S.updatePersistentPanelVisibleValue=function(){_.b("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.S.ready=function(){var D=this,C=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.S.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.S.updateIsTwoColumnsFromBinding=function(D){_.b("web_watch_update_narrow_width_killswitch")||_.fe().dispatch(_.jp2(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.S.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.S.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.S.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.S.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.S.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.S.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23797_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23797_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.$a.Object.defineProperties(dc.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(D=_.r(this.data.pageVisualEffects[C],_.RO))return C=void 0,(C=D.config)==null?void 0:C.enableInLightTheme;return!1}}});
_.$a.Object.defineProperties(dc,{template:{configurable:!0,enumerable:!0,get:function(){if(Av$===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);Av$=D}D=Av$;return D}}});
dc.prototype.updatePersistentPanelVisibleValue=dc.prototype.updatePersistentPanelVisibleValue;dc.prototype.updateRetroModeReduxValue=dc.prototype.updateRetroModeReduxValue;dc.prototype.updateScrollTopValue=dc.prototype.updateScrollTopValue;dc.prototype.updateFullscreenValue=dc.prototype.updateFullscreenValue;dc.prototype.updateTheaterValue=dc.prototype.updateTheaterValue;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],dc.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Ob6.YtdWatchBehavior),_.z("design:type",Object)],dc.prototype,"ytdWatchBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],dc.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dc.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],dc.prototype,"playerData",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dc.prototype,"viewTransitionEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dc.prototype,"smallerChatMinHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dc.prototype,"isDarkTheme",void 0);_.V([_.n(),_.z("design:type",Object)],dc.prototype,"defaultCollapsePlaylist",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],dc.prototype,"respectAspectRatio",void 0);
_.V([_.n({selector:_.tl}),_.z("design:type",Object)],dc.prototype,"theaterValue",void 0);_.V([_.n({selector:_.Nn}),_.z("design:type",Object)],dc.prototype,"fullscreenValue",void 0);_.V([_.n({selector:_.si}),_.z("design:type",Object)],dc.prototype,"scrollTopValue",void 0);_.V([_.n({selector:_.E1}),_.z("design:type",Object)],dc.prototype,"miniplayerIsActive",void 0);_.V([_.n({selector:function(D){return D.watch.isWatchRetroMode}}),
_.z("design:type",Object)],dc.prototype,"retroModeReduxValue",void 0);_.V([_.n({selector:_.TU.persistentPanelVisibleSelector}),_.z("design:type",Object)],dc.prototype,"persistentPanelVisibleValue",void 0);_.V([_.AQ("ytd-player"),_.z("design:type",HTMLElement)],dc.prototype,"ytdPlayer",void 0);_.V([_.kn("#playlist"),_.z("design:type",HTMLElement)],dc.prototype,"JSC$23797_ytdPlaylistPanelRenderer",void 0);_.V([_.AQ("ytd-comments"),_.z("design:type",HTMLElement)],dc.prototype,"ytdComments",void 0);
_.V([_.kn("#primary"),_.z("design:type",HTMLElement)],dc.prototype,"primary",void 0);_.V([_.kn("#secondary"),_.z("design:type",HTMLElement)],dc.prototype,"secondary",void 0);_.V([_.kn("#player-container"),_.z("design:type",HTMLElement)],dc.prototype,"playerContainer",void 0);_.V([_.kn("#below"),_.z("design:type",HTMLElement)],dc.prototype,"below",void 0);_.V([_.kn("#cinematics"),_.z("design:type",HTMLElement)],dc.prototype,"JSC$23797_cinematics",void 0);
_.V([_.kn("#persistent-panel-container"),_.z("design:type",HTMLElement)],dc.prototype,"persistentPanelContainer",void 0);_.V([_.vr("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dc.prototype,"updateTheaterValue",null);_.V([_.vr("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dc.prototype,"updateFullscreenValue",null);
_.V([_.vr("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dc.prototype,"updateScrollTopValue",null);_.V([_.vr("retroModeReduxValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dc.prototype,"updateRetroModeReduxValue",null);_.V([_.vr("persistentPanelVisibleValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dc.prototype,"updatePersistentPanelVisibleValue",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],dc.prototype,"cinematicLightTheme",null);_.V([_.yj({is:"ytd-watch-flexy"})],dc);_.A$.registerService(_.ivn,dc);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("nmfa2d");
var hOf;var VD=function(){var D=_.w.apply(this,arguments)||this;D.hidden=!1;D.errorScreen=null;D.playlistData={};return D};
_.h(VD,_.w);_.S=VD.prototype;_.S.getPlayer=function(){return this.ytdPlayer};
_.S.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:_.RD(["aa","eocs"])}}};
_.S.onActiveChanged=function(){_.fe().dispatch(_.XrH(this.ytPageBehavior.active))};
_.S.playerDataChanged=function(){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData)};
_.S.dataChanged=function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)};
_.S.sizeChanged=function(){var D,C;(C=(D=this.metadata).resize)==null||C.call(D)};
_.S.attached=function(){this.watchController=new _.ZA(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.S.detached=function(){_.Ue(this.watchController);this.watchController=void 0};
_.S.getPlayerContainer=function(){return this.playerContainer};
_.S.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.S.provideRenderingData=function(D,C){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=C;break;case "ERROR_SCREEN":this.errorScreen=C!=null?C:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=C;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=C;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=C;break;case "RICH_METADATA":this.richMetadataRowContainer=C;break;case "CLARIFICATION":this.clarificationData=C;break;case "PLAYLIST":this.playlistData=
C!=null?C:{};break;case "MERCH_SHELF":this.merchShelf=C;break;case "TICKET_SHELF":this.ticketShelf=C;break;case "LIMITED_STATE":this.limitedState=C;break;case "DONATION_SHELF":this.donationShelf=C;break;case "ALERTS":this.alerts=C}};
_.$a.Object.defineProperties(VD.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return!this.hidden&&!!((D=this.data)==null?0:(C=D.contents)==null?0:(X=C.twoColumnWatchNextResults)==null?0:X.conversationBar)}}});
VD.prototype.sizeChanged=VD.prototype.sizeChanged;VD.prototype.dataChanged=VD.prototype.dataChanged;VD.prototype.playerDataChanged=VD.prototype.playerDataChanged;VD.prototype.onActiveChanged=VD.prototype.onActiveChanged;_.V([_.m(_.Ca.YtPageBehavior),_.z("design:type",Object)],VD.prototype,"ytPageBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"playerData",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],VD.prototype,"hidden",void 0);_.V([_.kn("#ytd-player"),_.z("design:type",HTMLElement)],VD.prototype,"ytdPlayer",void 0);_.V([_.kn("#player-container"),_.z("design:type",HTMLElement)],VD.prototype,"playerContainer",void 0);_.V([_.kn("#metadata"),_.z("design:type",Object)],VD.prototype,"metadata",void 0);_.V([_.kn("#playlist"),_.z("design:type",HTMLElement)],VD.prototype,"playlistPanel",void 0);
_.V([_.n({selector:_.TTj,reflectToAttribute:!0}),_.z("design:type",Object)],VD.prototype,"fixie",void 0);_.V([_.n({selector:_.Wfr,reflectToAttribute:!0}),_.z("design:type",Object)],VD.prototype,"singleColumn",void 0);_.V([_.n({selector:function(D){return _.tl(D)&&!_.Nn(D)},
reflectToAttribute:!0}),_.z("design:type",Object)],VD.prototype,"theater",void 0);_.V([_.n({selector:_.Nn,reflectToAttribute:!0}),_.z("design:type",Object)],VD.prototype,"fullscreen",void 0);_.V([_.n({selector:_.lgd}),_.z("design:type",Object)],VD.prototype,"windowSize",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"singleColumnContents",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"errorScreen",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"playlistData",void 0);
_.V([_.n(),_.z("design:type",Object)],VD.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"videoSecondaryInfoRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"richMetadataRowContainer",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"clarificationData",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"ticketShelf",void 0);
_.V([_.n(),_.z("design:type",Object)],VD.prototype,"merchShelf",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"donationShelf",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"limitedState",void 0);_.V([_.n(),_.z("design:type",Object)],VD.prototype,"alerts",void 0);_.V([_.e("playlistData"),_.z("design:type",Object),_.z("design:paramtypes",[])],VD.prototype,"hasPlaylistData",null);
_.V([_.e("data","hidden"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],VD.prototype,"hasChat",null);_.V([_.vr("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VD.prototype,"onActiveChanged",null);_.V([_.vr("playerData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VD.prototype,"playerDataChanged",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VD.prototype,"dataChanged",null);_.V([_.vr("windowSize","singleColumn"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VD.prototype,"sizeChanged",null);
_.G(VD,"ytd-watch-fixie",function(){if(hOf===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);hOf=D}D=hOf;return D},{mode:1});_.A$.registerService(_.vRm,VD);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("xwEKAe");
var NqH=function(D){D=D.command;var C=_.r(D,_.ko);return{command:D,reelPlayerOverlayRenderer:_.r(C==null?void 0:C.overlay,_.UMd),thumbnail:C==null?void 0:C.thumbnail,videoId:C.videoId}},YOU=function(D){D=D.command;
var C=_.r(D,_.ad);return{command:D,reelNonVideoContentRenderer:_.r(C==null?void 0:C.renderer,_.Oq)}},yUd=function(D){return D.entries?D.entries.map(function(C){return _.r(C==null?void 0:C.command,_.ko)?NqH(C):YOU(C)}):[]},nQB=function(D){return D.prevEntries?D.prevEntries.map(function(C){return _.r(C==null?void 0:C.command,_.ko)?NqH(C):YOU(C)}):[]},w2N=function(D){return _.OU(D)?D.getAttribute("jsname")==="coFSxe":!1},Fx6=function(D,C){C.id||(C.id="ow"+_.fh(C));
D.setAttribute("jsowner",C.id);D.__owner=C;var X=_.zv(C,w2N);X&&(_.J85.has(X)||_.J85.set(X,[]),_.J85.get(X).push(D));(X=_.HNM.get(C))||_.HNM.set(C,X=[]);X.includes(D)||X.push(D);C.setAttribute("__IS_OWNER",!0)},Z7D=function(){var D=_.QpZ(1);
D=_.Aw(D,_.xXm);if(!(_.usr(D)||D[_.r8h]&&!D.__hasBeenSet))return D.value},G4z=function(D){return(D=_.XWF(D))?_.o4r(D):0},Vjf=function(D){return D.shorts.isSmallScreenSqueezeback},Tqv=function(D){return D.shorts.isPlaybackStarted},H7$=function(D){var C=_.PE();
if(C.getFlag(202))C=C.getFlag(201);else{var X;C=(D==null?void 0:(X=D.config)==null?void 0:X.settingOnByDefault)!==void 0?D.config.settingOnByDefault:!_.CG("web_shorts_cinematics_disabled_by_default")}return C},JUv=function(D){var C=_.PE();
_.$C(0,201,D);_.$C(0,202,!0);C.save()},Mjv=function(D){var C=_.QpZ(2),X=new Set;
_.z3(function(){return void X.forEach(function(c){return void c()})});
return function(c){var W=_.Oz(C);try{var p=zj6(jeU(D),c);X.add(p);return function(){p();X.delete(p)}}finally{_.Oz(W)}}},qOJ=function(D){var C=D.children;
var X=D.root;_.H2(function(){var c=Mjv(X)(C);_.z3(c)});
return document.createTextNode("")},zj6=function(D,C){var X=fhv(D);
(D=Z7D())&&Fx6(X,D);_.hU.setUp();C=_.U(_.zdZ(C,!0));D=C.next().value;var c=C.next().value;C=_.U(D);for(D=C.next();!D.done;D=C.next())X.appendChild(D.value);_.hU.log(X);_.hU.tearDown();return function(){c();X.remove()}},jeU=function(D){if(typeof D==="string")return D=document.querySelector(D),_.FZG(D),D;
if(_.Q2(D)&&D.nodeType===Node.ELEMENT_NODE)return D;if(!D.__value&&!D.__optional){var C=_.hIt.USE_ELEMENT_NOT_ASSIGNED(D.__expectedTagName);D.__hasErrored=!0;throw C;}return D.value},fhv=function(D){var C=document.createElementNS(D.namespaceURI,D.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return D.appendChild(C)},lhj=function(D,C,X,c){if(D)return c=c||D.likeStatus,C?{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:c==="LIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:X},defaultText:c==="LIKE"?D.likeCountWithUnlikeText:D.likeCountText,toggledText:c==="LIKE"?D.likeCountText:D.likeCountWithLikeText,defaultNavigationEndpoint:d6j(D,"LIKE"),defaultServiceEndpoint:RjD(D,"LIKE"),toggledServiceEndpoint:RjD(D,"INDIFFERENT"),defaultTooltip:_.Mh(D.likeCountTooltipText),toggledTooltip:_.Mh(D.likeCountTooltipText),targetId:D.targetId}:{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:c==="DISLIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:X},defaultText:c==="DISLIKE"?D.dislikeCountWithUndislikeText:D.dislikeCountText,toggledText:c==="DISLIKE"?D.dislikeCountText:D.dislikeCountWithDislikeText,defaultNavigationEndpoint:d6j(D,"DISLIKE"),defaultServiceEndpoint:RjD(D,"DISLIKE"),toggledServiceEndpoint:RjD(D,"INDIFFERENT"),defaultTooltip:_.Mh(D.dislikeCountTooltipText),toggledTooltip:_.Mh(D.dislikeCountTooltipText)}},d6j=
function(D,C){if(C==="LIKE")return D.likeCommand;
if(C==="DISLIKE")return D.dislikeNavigationEndpoint},RjD=function(D,C){var X;
return(X=D.serviceEndpoints)==null?void 0:X.find(function(c){var W;return((W=_.r(c,_.XI))==null?void 0:W.status)===C})},DGz=function(D,C,X,c){D=C-D;
X=c-X;return Math.sqrt(D*D+X*X)},CXm=function(D){var C=D>>8&255,X=D&255;
return"#"+(D>>16&255).toString(16).padStart(2,"0")+C.toString(16).padStart(2,"0")+X.toString(16).padStart(2,"0")},XKN=function(D,C){D&&_.iX().resolve(_.uX).resolveCommand(D,{forceClickLogging:!0,
form:{element:C}})},cgm=function(){return _.iX().resolve(_.lg).dismissedIndices},ozv=function(D,C){var X,c,W,p,g,a,O,P,k;
return _.I(function(u){if(u.nextAddress==1){X=_.iX().resolve(_.fY);p=(c=X)==null?void 0:(W=c.reelWatchEndpointMap)==null?void 0:W.reelWatchSequence;a=(g=D.innertubeTransportService)!=null?g:_.iX().resolve(_.Bl);if(!p)return u.jumpTo(2);O=p();return(P=O.JSC$14337_getRequest(C,{}))?u.yield(_.vV(a,P.innerTubeRequest,P.input,C.clickTrackingParams,P.config),4):u.jumpTo(2)}return u.nextAddress!=2?(k=u.yieldResult,u.return(k)):u.return(void 0)})},WC6=function(D,C,X){var c,W=(c=_.r(C,_.ko))==null?void 0:
c.videoId;
c=!(!W||!D.find(function(g){return g.videoId&&g.videoId===W}));
var p=!!D.find(function(g){var a;return((a=_.r(g.command,_.ko))==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
D=!!D.find(function(g){return!!_.r(g.command,_.ad)&&!!_.r(C,_.ad)&&g.command===C});
return X?c||D:c||p||D},pKj=function(D,C,X){var c=[].concat(_.VB(D)),W=0,p=X?yUd(X):[];
X=X?nQB(X):[];C&&!WC6(D,C.command)&&c.unshift(C);p.length&&!WC6(D,p[0].command,!0)&&c.push.apply(c,_.VB(p));C&&X.length&&!WC6(D,X[0].command)&&(c.unshift.apply(c,_.VB(X.reverse())),W=X.length);return{newContentList:c,indexChange:W}},SYB=function(D){var C;
(C=D.currentCinematicEffect)==null||C.clear()},UGH=function(D){return _.oI({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:D}})},gzv=function(D){return _.oI({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:D}})},aff=function(D){return _.oI({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:D}})};var ks=function(D,C){if(D instanceof ks)this.array_=D.array_;else{var X;if(X=_.JW(D))a:{for(var c=X=0;c<D.length;c++){if(!_.JW(D[c])||X>0&&D[c].length!=X){X=!1;break a}for(var W=0;W<D[c].length;W++)if(typeof D[c][W]!=="number"){X=!1;break a}X==0&&(X=D[c].length)}X=X!=0}if(X)this.array_=_.Ho(D);else if(D instanceof _.me)this.array_=IfD(D.height,D.width);else if(typeof D==="number"&&typeof C==="number"&&D>0&&C>0)this.array_=IfD(D,C);else throw Error("Vo");}this.size_=new _.me(this.array_[0].length,
this.array_.length)},OCv=function(D,C,X){for(var c=0;c<D.getSize().height;c++)for(var W=0;W<D.getSize().width;W++)C.call(X,D.array_[c][W],c,W,D)},AgH=function(D,C){var X=new ks(D.getSize());
OCv(D,function(c,W,p){X.array_[W][p]=C.call(void 0,c,W,p,D)});
return X},IfD=function(D,C){for(var X=[],c=0;c<D;c++){X[c]=[];
for(var W=0;W<C;W++)X[c][W]=0}return X};
ks.prototype.add=function(D){if(!_.U6H(this.size_,D.getSize()))throw Error("Wo");return AgH(this,function(C,X,c){return C+D.array_[X][c]})};
ks.prototype.equals=function(D,C){if(this.size_.width!=D.size_.width||this.size_.height!=D.size_.height)return!1;C=C||0;for(var X=0;X<this.size_.height;X++)for(var c=0;c<this.size_.width;c++)if(!_.SON(this.array_[X][c],D.array_[X][c],C))return!1;return!0};
ks.prototype.getSize=function(){return this.size_};
var ux=function(D,C,X){return C>=0&&C<D.size_.height&&X>=0&&X<D.size_.width?D.array_[C][X]:null};
ks.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var PXB=function(D,C,X,c){if(!(C>=0&&C<D.size_.height&&X>=0&&X<D.size_.width))throw Error("Xo`"+C+"`"+X+"`"+D.size_.height+"`"+D.size_.width);D.array_[C][X]=c};
ks.prototype.multiply=function(D){if(D instanceof ks){if(this.size_.width!=D.getSize().height)throw Error("Yo");return $G6(this,D)}if(typeof D==="number")return vzU(this,D);throw Error("Zo");};
var $G6=function(D,C){var X=new ks(D.size_.height,C.getSize().width);OCv(X,function(c,W,p){for(var g=c=0;g<this.size_.width;g++)c+=ux(this,W,g)*ux(C,g,p);PXB(X,W,p,c)},D);
return X},vzU=function(D,C){return AgH(D,function(X){return X*C})};var iCj=new _.A7("inlineSurveyRenderer");var kVm=new _.A7("interstitialViewModel");var uLN=new _.A7("reelNavigateCommand");var QQ2=new _.A7("reelNonVideoContentDismissalCommand");var BTf=new _.A7("showReelsCommentsOverlayCommand");var bCJ=new _.A7("videoInteractionPopUpRenderer");var rgD=new _.A7("pollChoiceData");var KC6;var hGB;var xG$;var Q9=function(){var D=_.w.apply(this,arguments)||this;D.ctaVisualElement=null;D.currentCsn=null;return D};
_.h(Q9,_.w);_.S=Q9.prototype;_.S.onDataChanged=function(){this.maybeLogShows()};
_.S.computeButtonShape=function(){var D=this;if(this.data)return{buttonText:_.Mh(this.data.text),state:"active",onTap:function(){D.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.S.maybeCreateCtaVe=function(){var D;if((D=this.data)!=null&&D.badgeInteractionLogging){var C;if(D=(C=this.data.badgeInteractionLogging)==null?void 0:C.trackingParams)this.ctaVisualElement=_.bO(D)}};
_.S.maybeLogClicks=function(){this.currentCsn=_.LN(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.HE(this.currentCsn,this.ctaVisualElement)};
_.S.maybeLogShows=function(){this.currentCsn=_.LN(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.VP(this.currentCsn,[this.ctaVisualElement])};
_.S.onTap=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var C;this.ytComponentBehavior.resolveCommand((C=this.data)==null?void 0:C.onClickCommand);this.maybeLogClicks()}};
Q9.prototype.onDataChanged=Q9.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.V([_.n({}),_.z("design:type",Object)],Q9.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q9.prototype,"onDataChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Q9);
_.G(Q9,"ytd-shopping-overlay-badge-renderer",function(){if(xG$!==void 0)return xG$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return xG$=D},{mode:1});var LCB;var Bi=function(){return _.w.apply(this,arguments)||this};
_.h(Bi,_.w);Bi.prototype.computeShouldButtonBeVertical=function(D,C){return D||C};
Bi.prototype.onYtServiceRequestSent=function(D,C){(D=_.r(C.endpoint,_.XI))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.bK("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:D.status})):this.handleLikeEndpoint(D))};
Bi.prototype.computelikeStatusEntityKey=function(D){return D==null?void 0:D.likeStatusEntityKey};
Bi.prototype.handleLikeEndpoint=function(D){D.status==="LIKE"?this.JSC$22980_ytdDislikeToggleButtonRenderer.toggle(!1):D.status==="DISLIKE"?this.JSC$22980_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22980_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22980_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.$a.Object.defineProperties(Bi.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var D;return lhj(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(D=this.likeStatusEntity)==null?void 0:D.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var D;if(this.data&&((D=this.data)==null||!D.hideDislikeButton)){var C;return lhj(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(C=this.likeStatusEntity)==null?void 0:C.likeStatus)}}}});
Bi.prototype.onYtServiceRequestSent=Bi.prototype.onYtServiceRequestSent;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Bi.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Bi.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Bi.prototype,"vertical",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Bi.prototype,"textTransform",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Bi.prototype,"useShortsIcon",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Bi.prototype,"underIconLabel",void 0);_.V([_.n({value:"left"}),_.z("design:type",String)],Bi.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.z("design:type",Object)],Bi.prototype,"overrides",void 0);
_.V([_.kn("#like-button"),_.z("design:type",Object)],Bi.prototype,"JSC$22980_ytdLikeToggleButtonRenderer",void 0);_.V([_.kn("#dislike-button"),_.z("design:type",Object)],Bi.prototype,"JSC$22980_ytdDislikeToggleButtonRenderer",void 0);_.V([_.e("data","likeStatusEntity.likeStatus","useShortsIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Bi.prototype,"likeButton",null);
_.V([_.e("data","likeStatusEntity.likeStatus","useShortsIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Bi.prototype,"dislikeButton",null);_.V([_.n({computed:"computelikeStatusEntityKey(data)"}),_.z("design:type",String)],Bi.prototype,"likeStatusEntityKey",void 0);_.V([_.n({selectorArgs:["likeStatusEntityKey"],selector:_.y6}),_.z("design:type",Object)],Bi.prototype,"likeStatusEntity",void 0);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Bi.prototype,"onYtServiceRequestSent",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Bi);
_.o3()(Bi,"ytd-like-button-renderer",function(){if(LCB===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);LCB=D}D=LCB;return D},{mode:1});_.CI(_.Pqt,"reel-sound-metadata-view-model",{props:{data:_.R3,overlayDensity:_.R3}});_.CI(_.UJY,"player-disclosure-view-model",{props:{data:_.Bm,extractOverlay:_.Bm}});_.CI(_.WjM,"pivot-button-view-model",{props:{data:_.R3,className:_.R3}});_.CI(_.pJN,"reel-action-bar-view-model",{props:{data:_.Bm,buttonShapeOverrideables:_.Bm}});_.CI(_.Iok,"yt-reel-metapanel-view-model",{props:{data:_.Bm,overlayDensity:_.Bm,extractOverlay:_.Bm}});var sQv=_.F(function(D){var C=D.children;var X=D.region;D=_.U(_.Li(void 0,void 0,"flxBBc"));var c=D.next().value,W=D.next().value;D=_.U(_.Li("0px",void 0,"IAR7k"));var p=D.next().value,g=D.next().value;D=_.U(_.Li("0px",void 0,"QV4iWb"));var a=D.next().value,O=D.next().value;D=_.U(_.Li(0,void 0,"Q2oK6b"));var P=D.next().value,k=D.next().value;D=_.U(_.Li(0,void 0,"hYKowe"));var u=D.next().value,Q=D.next().value,B=function(){var J=c();if(J){var T;if(((T=_.AG())==null?void 0:T.getPlayerState())!==-1){J.style.display=
"inherit";var H;(H=_.AG())==null||H.removeEventListener("onStateChange",B)}else J.style.display="none";L()}},K=function(){var J;
return(J=_.CT())==null?void 0:J.querySelector("video")},L=function(){var J=K();
if(J){k(J.getBoundingClientRect().width);Q(J.getBoundingClientRect().height);var T;g((J==null?void 0:(T=J.style)==null?void 0:T.left)||"0px");var H;O((J==null?void 0:(H=J.style)==null?void 0:H.top)||"0px")}};
_.Jw(function(){var J=c();if(J){var T,H,q;if(((T=_.AG())==null?void 0:T.getPlayerState())===-1&&Math.round(((q=(H=_.AG())==null?void 0:H.getVideoAspectRatio())!=null?q:0)*100)!==Math.round(P()/u()*100)){J.style.display="none";var R,ph;Q(P()/((ph=(R=_.AG())==null?void 0:R.getVideoAspectRatio())!=null?ph:1))}}},"N29KDe");
var t=function(){L()},Y;
_.H2(function(){L();var J;if(!(X==null?0:(J=X())==null?0:J.transformationMatrix))throw Error("cp");var T;(T=_.AG())==null||T.addEventListener("onStateChange",B);if(window.ResizeObserver){if(J=K())Y=new ResizeObserver(t),Y.observe(J)}else window.addEventListener("resize",L);_.z3(function(){var H;(H=_.AG())==null||H.removeEventListener("onStateChange",B);Y?Y.disconnect():window.removeEventListener("resize",L)})});
var y=function(){var J,T,H=(T=X==null?void 0:(J=X())==null?void 0:J.transformationMatrix)!=null?T:[];J=P();T=u();for(var q=[],R=0,ph=-1;R<H.length;R++)R%3===0&&(ph++,q[ph]=[]),q[ph].push(H[R]);H=new ks(q);q=new ks([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);q=H.multiply(q);H=new ks([[0,0],[0,0],[0,0],[0,0]]);for(R=0;R<q.getSize().width;R++){ph=ux(q,0,R);var Om=ux(q,1,R);if(ph===null||Om===null)throw Error("bp`"+(R+1).toString());PXB(H,R,0,ph*J);PXB(H,R,1,Om*T)}J=ux(H,0,0);R=ux(H,1,0);T=ux(H,0,1);ph=ux(H,1,1);
if(J===null||R===null||T===null||ph===null)throw Error("$o");q=DGz(J,R,T,ph);Om=ux(H,3,0);H=ux(H,3,1);if(Om===null||H===null)throw Error("ap");H=DGz(J,Om,T,H);ph=(Number((ph*-1).toFixed(2))-Number((T*-1).toFixed(2)))/(Number(R.toFixed(2))-Number(J.toFixed(2)));Om=Math.atan(ph)*180/Math.PI;R=ph===Number.POSITIVE_INFINITY?-90:ph===Number.NEGATIVE_INFINITY?90:Object.is(ph,-0)?180:ph===0?0:ph>0?Om*-1:J<R?Om*-1:Math.abs(Om)+180;return"left:calc("+J+"px + "+p()+"); top:calc("+(T+"px + "+a()+"); width:")+
(q+"px; height:")+(H+"px; transform:rotate(")+(R+"deg);\n        --sticker-width:"+q+";")};
return _.A(qOJ,{root:"#sticker-layer"},function(){return _.A("yt-overlay-sticker",{el:_.fb(W),style:y,class:"ytOverlayStickerHost"},C)})},"Cn");var mGv=_.F(function(D){function C(){var B,K,L,t,Y=(K=_.r((B=O())==null?void 0:B.command,_.NFC))==null?void 0:(L=K.item)==null?void 0:(t=L.notificationTextRenderer)==null?void 0:t.successResponseText;if(Y)B=_.RI(Y),_.DS(c.value,"yt-open-popup-action",[B,c.value]);else if(P())XKN(P(),c.value);else{var y;XKN((y=O())==null?void 0:y.command,c.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var X=D.data;var c=_.aX("svg"),W=_.U(_.Li(!1,void 0,"e9onLe"));D=W.next().value;var p=W.next().value,g=_.U(_.Li(!1,void 0,"ptnIQd"));W=g.next().value;var a=g.next().value,O=function(){var B;return _.r((B=X())==null?void 0:B.popUp,bCJ)},P=function(){var B;
return(B=X())==null?void 0:B.command},k=function(){return _.r(P(),_.rU)!==void 0};
g=_.I_(function(){C();return!1});
var u={},Q={};return _.A("svg",{"on:mouseover":_.I_(function(){k()&&p(!0);a(!0);return!1}),
"on:mouseout":_.I_(function(){p(!1);a(!1);return!1}),
"on:keydown":_.I_(function(B){B.key==="Enter"&&C();return!1}),
"on:focus":_.I_(function(){k()&&p(!0);return!1}),
"on:blur":_.I_(function(){k()&&p(!1);return!1}),
el:c,tabindex:0,"aria-label":function(){var B;return(B=X())==null?void 0:B.a11yString},
id:"player-overlay-video-interaction-svg",class:_.g$("ytPlayerOverlayInteractionInteractionsSvg",(u.ytPlayerOverlayInteractionInteractionsSvgHover=D,u),(Q.ytPlayerOverlayInteractionInteractionsSvgHideOutline=W,Q)),role:"button","on:click":g})},"Fn");_.CI(_.F(function(D){var C=D.data;_.H2(function(){var X;if((X=C())==null?0:X.trackingParams){var c;_.iO().graftServerVe((c=C().trackingParams)!=null?c:"")}});
return _.A("yt-player-overlay-interaction",null,_.A(sQv,{region:function(){var X,c;return(X=C())==null?void 0:(c=X.regions)==null?void 0:c[0]}},_.A(mGv,Object.assign({},D))))},"En"),"yt-player-overlay-interaction",{props:{data:_.Bm}});var eGU=_.F(function(D){var C=D.data;var X=D.index;var c=D.selectedChoice;var W=function(){var p;return _.r((p=C())==null?void 0:p.renderer,rgD)};
D={};return _.A("yt-overlay-poll-sticker-choice",{class:_.g$("ytOverlayPollStickerChoiceHost"),style:_.P0({"--displayed-percentage":function(){var p,g,a,O;return""+Math.ceil(Number((c==null?void 0:c())===X()?(p=W())==null?void 0:(g=p.selected)==null?void 0:g.progressBarWidth:(a=W())==null?void 0:(O=a.unselected)==null?void 0:O.progressBarWidth)*100)}})},_.A("div",{class:_.g$("ytOverlayPollStickerChoicePollChoice",(D.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(c==null?void 0:c())!==
void 0},D.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(c==null?void 0:c())===X()},D))},_.A("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var p;
return((p=W())==null?void 0:p.text)||""}),_.A("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(c==null?void 0:c())==="undefined")var p="";
else{var g,a,O,P;p=(c==null?void 0:c())===X()?(g=W())==null?void 0:(a=g.selected)==null?void 0:a.votePercentage:(O=W())==null?void 0:(P=O.unselected)==null?void 0:P.votePercentage}return p})))},"Gn");var Ez2=_.F(function(D){var C=D.data;var X=D.enableDebuggingFeatures;var c=_.uu(function(p){var g,a=((g=C())==null?void 0:g.postPollStateEntityKey)||"";p=_.aI(p.entities,"postPollStateEntity",a);var O;return((O=C())==null?0:O.viewerIsOwner)?Object.assign({},p,{selectedOptionId:-1,voted:!0}):p}),W=_.iX().resolve(_.uX);
D={};return _.A("yt-overlay-poll-sticker",null,_.A(sQv,{region:function(){var p,g;return(p=C())==null?void 0:(g=p.region)==null?void 0:g.interactionRegion}},_.A("div",{class:_.g$("ytOverlayPollStickerHost",(D.ytOverlayPollStickerDebugStyle=function(){return X==null?void 0:X()},D)),
style:_.P0({"--original-height":function(){var p;return""+(((p=C())==null?void 0:p.mainBodyHeight)||1)},
"--original-width":function(){var p;return""+(((p=C())==null?void 0:p.mainBodyWidth)||1)},
"--scaled-width":function(){var p;return""+(((p=C())==null?void 0:p.mainBodyWidth)||1)},
"--primary-surface":function(){var p,g;return CXm(((p=C())==null?void 0:(g=p.theme)==null?void 0:g.primarySurface)||0)},
"--raised-surface":function(){var p,g;return CXm(((p=C())==null?void 0:(g=p.theme)==null?void 0:g.raisedSurface)||0)},
"--secondary-surface":function(){var p,g;return CXm(((p=C())==null?void 0:(g=p.theme)==null?void 0:g.secondarySurface)||0)},
"--primary-text":function(){var p,g;return CXm(((p=C())==null?void 0:(g=p.theme)==null?void 0:g.primaryText)||0)},
"--secondary-text":function(){var p,g;return CXm(((p=C())==null?void 0:(g=p.theme)==null?void 0:g.secondaryText)||0)}})},_.A("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return C().questionText}," "),_.A(_.Zh,{each:function(){return C().pollChoiceConfigs||[]}},function(p,g){return _.A("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.I_(function(){var a=g(),O;if((O=C())==null||!O.viewerIsOwner){var P,k;O=(P=C())==null?void 0:(k=P.pollChoiceConfigs)==null?void 0:k[a];if(k=(O==null?0:O.renderer)?_.r(O.renderer,rgD):void 0){var u;P=((u=c())==null?void 0:u.selectedOptionId)!==a;var Q;if(u=(Q=P?k.selectedPollCommand:k.deselectedPollCommand)==null?void 0:Q.innertubeCommand){W.resolveCommand(u);var B,K;_.qw().dispatch(_.bK("postPollStateEntity",((B=c())==null?void 0:B.key)||"",{key:((K=c())==null?void 0:K.key)||"",selectedOptionId:P?
a:-1,voted:P}))}}}})},_.A(eGU,{data:p,
index:g,selectedChoice:function(){var a,O;return((a=c())==null?0:a.voted)?(O=c())==null?void 0:O.selectedOptionId:void 0}}))}),_.A("div",{class:"ytOverlayPollStickerVoteCount"},function(){var p,g;
return((p=c())==null?0:p.voted)&&((g=c())==null?void 0:g.selectedOptionId)!==-1?C().postVoteCountText:C().preVoteCountText}))))},"Hn");_.CI(_.F(function(D){var C=D.data;return _.A("yt-stickers-layer",null,_.A(_.Zh,{each:function(){var X;return((X=C())==null?void 0:X.stickers)||[]}},function(X){return _.A(_.v,{cond:function(){return _.b("enable_shorts_poll_stickers_web")},
then:function(){return _.A(_.v,{cond:function(){return X==null?void 0:X.pollSticker},
then:function(c){return _.A(Ez2,{data:c,enableDebuggingFeatures:function(){var W;return(W=C())==null?void 0:W.enableDebuggingFeatures}})}})}})}))},"In"),"yt-stickers-layer",{props:{data:_.Bm}});var bx=function(){var D=_.w.apply(this,arguments)||this;D.showScrubber=!1;D.isWatchWhileMode=!1;D.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");D.enablePollStickers=_.b("enable_shorts_poll_stickers_web");D.enableShortsModernControls=_.b("web_shorts_modern_controls");D.anchoredPanelActive=!1;D.enableLivingroomLayout=_.b("reels_enable_livingroom_layout");D.enablePlayerMetadataContainer=_.b("reels_web_enable_metadata_container");D.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");
D.useAspectRatio=_.b("web_use_aspect_ratio");D.isSqueezebackActive=!1;D.smallScreenSqueezeback=!1;D.isPlayerStarted=!1;D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;D.isOverlay=!1;D.isImmersive=!1;D.isImmersiveHorizontal=!1;D.isFullscreen=!1;D.onWindowResized=function(){var C;D.set("isImmersive",((C=window.getComputedStyle(D.hostElement))==null?void 0:C.getPropertyValue("--immersive-mode-on"))==="1");D.set("isImmersiveHorizontal",D.isImmersive&&D.enableLivingroomLayout&&!D.isWatchWhileMode)};
return D};
_.h(bx,_.w);_.S=bx.prototype;_.S.updateIsOverlay=function(D){this.isOverlay=D.detail.value};
_.S.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.S.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.S.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.S.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.S.onOverlayDensityChange=function(){var D=_.SY(this.hostElement).querySelector("ytd-info-panel-container-renderer");D&&(D.set("extractOverlay",this.extractOverlay),D.set("roundedContainer",this.extractOverlay))};
_.S.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.S.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.S.ready=function(){(_.b("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.b("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.bX("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.bX("reels_action_justified_content")||"flex-start")};
_.S.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.S.setFakeLoadingButtons=function(){_.b("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.I7("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.I7("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.I7("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.I7("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.I7("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()};
_.S.setEmptyOverlayMetadata=function(){_.b("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}))};
_.$a.Object.defineProperties(bx.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoPanel)}}});
bx.prototype.onOverlayDensityChange=bx.prototype.onOverlayDensityChange;bx.prototype.onIsActiveChanged=bx.prototype.onIsActiveChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);
_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],bx.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bx.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],bx.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],bx.prototype,"hidden",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],bx.prototype,"useShortsIcon",void 0);
_.V([_.n({value:"left"}),_.z("design:type",String)],bx.prototype,"buttonTooltipPosition",void 0);_.V([_.n({value:_.b("reels_enable_livingroom_layout")?"top":"left"}),_.z("design:type",String)],bx.prototype,"likeButtonTooltipPosition",void 0);_.V([_.n({value:"none"}),_.z("design:type",String)],bx.prototype,"textTransform",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"showScrubber",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"isWatchWhileMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.infoPanel"),_.z("design:type",Object),_.z("design:paramtypes",[])],bx.prototype,"hasInfoPanel",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"enableAnchoredPanel",void 0);_.V([_.n(),_.z("design:type",Object)],bx.prototype,"enablePollStickers",void 0);
_.V([_.n(),_.z("design:type",Object)],bx.prototype,"enableShortsModernControls",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"anchoredPanelActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"enableLivingroomLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],bx.prototype,"enablePlayerMetadataContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"enableSqueezebackPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"useAspectRatio",void 0);_.V([_.n({selector:_.jjt,reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"isSqueezebackActive",void 0);_.V([_.n({selector:Vjf,reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"smallScreenSqueezeback",void 0);
_.V([_.n({selector:Tqv}),_.z("design:type",Object)],bx.prototype,"isPlayerStarted",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"overlayDensity",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"extractOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"extractActionBar",void 0);_.V([_.n(),_.z("design:type",Object)],bx.prototype,"isOverlay",void 0);
_.V([_.n(),_.z("design:type",Object)],bx.prototype,"isImmersive",void 0);_.V([_.n(),_.z("design:type",Object)],bx.prototype,"isImmersiveHorizontal",void 0);_.V([_.n({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.z("design:type",Boolean)],bx.prototype,"isShortsImmersive",void 0);_.V([_.n({computed:"computeButtonOverride(extractActionBar)"}),_.z("design:type",Object)],bx.prototype,"buttonOverride",void 0);
_.V([_.n({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.z("design:type",Object)],bx.prototype,"actionBarButtonOverride",void 0);_.V([_.n({selector:_.o9,reflectToAttribute:!0}),_.z("design:type",Object)],bx.prototype,"isFullscreen",void 0);_.V([_.vr("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bx.prototype,"onIsActiveChanged",null);
_.V([_.vr("extractOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bx.prototype,"onOverlayDensityChange",null);_.V([_.yj({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],bx);
_.G(bx,"ytd-reel-player-overlay-renderer",function(){if(hGB!==void 0)return hGB;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hGB=D},{mode:1});var tqf;var rG=function(){var D=_.w.apply(this,arguments)||this;D.videoDuration=0;D.playedTime=0;D.isActive=!1;D.JSC$23006_playerEvents=new Map;return D};
_.h(rG,_.w);_.S=rG.prototype;_.S.created=function(){this.JSC$23006_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$23006_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.S.attached=function(){this.getPlayerAndInitializeListeners()};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23006_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Pr(this,this.onPageChanged))};
_.S.getPlayerAndInitializeListeners=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return C=_.CT(),C?X.yield(C.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Pr(D,D.onPageChanged)),X.jumpTo(0));D.player=X.yieldResult;D.initializePlayerListeners();_.t_(X)})};
_.S.onPageChanged=function(D){var C=this;return _.I(function(X){if(X.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?X.return():X.yield(_.Xv().getPlayerPromise(),2);C.player=X.yieldResult;C.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Pr(C,C.onPageChanged));_.t_(X)})};
_.S.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23006_playerEvents)};
_.S.onVideoDataChange=function(D){var C=this;return _.I(function(X){if(!C.player||D.type!=="newdata")return X.return();C.videoDuration=_.b("web_shorts_use_progress_state_for_gapless")?C.player.getProgressState(D.playertype).seekableEnd:C.player.getDuration(D.playertype);C.playedTime=0;_.t_(X)})};
_.S.onVideoProgress=function(D){var C=this,X,c;return _.I(function(W){if(!C.player)return W.return();X=C.player.getPresentingPlayerType();c=C.player.getPlayerState();C.videoDuration=_.b("web_shorts_use_progress_state_for_gapless")?C.player.getProgressState(X).seekableEnd:C.player.getDuration(X);C.playedTime=c===0?C.videoDuration:D;_.t_(W)})};
_.S.getPercentPlayed=function(D,C){return D?_.N8(C/D,0,1):0};
_.$a.Object.defineProperties(rG.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 D="";return D=this.videoDuration&&this.playedTime?D+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):D+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],rG.prototype,"componentBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],rG.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rG.prototype,"player",void 0);_.V([_.n(),_.z("design:type",Object)],rG.prototype,"videoDuration",void 0);_.V([_.n(),_.z("design:type",Object)],rG.prototype,"playedTime",void 0);_.V([_.n(),_.z("design:type",Object)],rG.prototype,"isActive",void 0);
_.V([_.e("videoDuration","playedTime"),_.z("design:type",Number),_.z("design:paramtypes",[])],rG.prototype,"percentPlayed",null);_.V([_.e("videoDuration","playedTime"),_.z("design:type",Object),_.z("design:paramtypes",[])],rG.prototype,"percentPlayedStyle",null);_.V([_.e("videoDuration","isActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],rG.prototype,"hideProgressBar",null);
_.G(rG,"ytd-progress-bar-line",function(){if(tqf===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);tqf=D}D=tqf;return D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var NTf;_.CI(_.wft,"ytm-closed-captioning-button",{props:{captionIconType:_.Bm,onClick:_.R3,ariaLabel:_.Bm,ariaPressed:_.Bm,isOverlay:_.R3,isModern:_.R3}});_.CI(_.pLU,"desktop-shorts-volume-controls",{props:{orientation:_.Bm}});var Kp=function(){var D=_.w.apply(this,arguments)||this;D.playerState=null;D.isMuted=!1;D.shortsModernControlsEnabled=_.b("web_shorts_modern_controls");D.volumeControlsOrientationState="horizontal_right";D.isOverlay=!0;D.isAdsOverlay=!1;D.captionIconType=-1;D.ariaLabel="";D.overlayDensity=0;D.JSC$23009_playerEvents=new Map;D.onClosedCaptionsButtonClick=function(){D.player&&_.C$(D.player)&&(D.player.toggleSubtitles(),D.updateCaptionIconType())};
return D};
_.h(Kp,_.w);_.S=Kp.prototype;_.S.created=function(){this.JSC$23009_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$23009_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$23009_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.S.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Ia(28662);this.playPauseButtonClientVE=_.Ia(36842);this.fullscreenButtonToggleOffClientVE=_.Ia(222256);this.fullscreenButtonToggleOnClientVE=_.Ia(222257);var D=_.LN(),C=_.xr();D&&C&&(_.b("combine_ve_grafts")?(_.Vc(_.iO(),this.muteButtonClientVE,C),_.Vc(_.iO(),this.playPauseButtonClientVE,C)):_.ZS(D,C,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.S.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23009_playerEvents),this.player=null)};
_.S.updateCaptionIconType=function(){var D=-1,C=void 0,X=_.I7("CLOSED_CAPTIONS_DISABLED");this.player&&_.C$(this.player)&&(_.hLp(this.player)?(C=!0,X=_.I7("CLOSED_CAPTIONS_ON"),D=1):(C=!1,X=_.I7("CLOSED_CAPTIONS_OFF"),D=0));this.captionIconType=D;this.ariaPressedState=C;this.ariaLabel=X};
_.S.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.S.getPlayerAndInitializeListeners=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return C=_.CT(),C?X.yield(C.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Pr(D,D.onPageChanged)),X.jumpTo(0));D.player=X.yieldResult;D.initializePlayerListeners();_.t_(X)})};
_.S.onPageChanged=function(D){var C=this;return _.I(function(X){if(X.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?X.return():X.yield(_.Xv().getPlayerPromise(),2);C.player=X.yieldResult;C.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Pr(C,C.onPageChanged));_.t_(X)})};
_.S.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23009_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.S.onPlayerStateChange=function(D){this.playerState=D};
_.S.onPlayerVolumeChange=function(D){this.isMuted=D.muted};
_.S.onPlayPauseButtonClick=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(_.Xv().getPlayerPromise(),2);C=c.yieldResult;(X=_.LN())&&D.playPauseButtonClientVE&&_.HE(X,D.playPauseButtonClientVE);C.getPlayerState()!==1?C.playVideo():C.pauseVideo();_.t_(c)})};
_.S.computePlayPauseIcon=function(D){return D===2||D===-1||D===5?_.b("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.b("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.b("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.S.computeFullscreenLabel=function(D){return D?_.I7("FULLSCREEN_EXIT_LABEL"):_.I7("FULLSCREEN_ENTER_LABEL")};
_.S.computePlayPauseLabel=function(D){return D===1||D===3?_.I7("PLAYER_LABEL_PAUSE"):_.I7("PLAYER_LABEL_PLAY")};
_.S.onMuteButtonClick=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(_.Xv().getPlayerPromise(),2);C=c.yieldResult;(X=_.LN())&&D.muteButtonClientVE&&_.HE(X,D.muteButtonClientVE);C.isMuted()?C.unMute(!0):C.mute(!0);_.t_(c)})};
_.S.computeMuteIcon=function(D){return D?"miniplayer:volume-off":"miniplayer:volume-up"};
_.S.computeMuteLabel=function(D){return D?_.I7("PLAYER_LABEL_UNMUTE"):_.I7("PLAYER_LABEL_MUTE")};
_.S.onFullscreenButtonClick=function(){var D=_.LN();D&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.HE(D,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.HE(D,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.VY6()};
_.$a.Object.defineProperties(Kp.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var D=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(){D.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.b("web_shorts_modern_controls")?"player_full_exit_alt":_.b("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.b("web_shorts_modern_controls")?"player_full_enter_alt":_.b("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Kp.prototype,"componentBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],Kp.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Kp.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"player",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"playerState",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"isMuted",void 0);
_.V([_.n({computed:"computePlayPauseIcon(playerState)"}),_.z("design:type",String)],Kp.prototype,"playPauseIcon",void 0);_.V([_.n({computed:"computeMuteIcon(isMuted)"}),_.z("design:type",String)],Kp.prototype,"muteIcon",void 0);_.V([_.n({selector:_.o9}),_.z("design:type",Boolean)],Kp.prototype,"isFullscreen",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Kp.prototype,"shortsModernControlsEnabled",void 0);
_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"volumeControlsOrientationState",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"isOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Kp.prototype,"isAdsOverlay",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"captionIconType",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"ariaLabel",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"ariaPressedState",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Kp.prototype,"overlayDensity",void 0);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"data",void 0);_.V([_.n({computed:"computeActionBarButtonOverride()"}),_.z("design:type",Object)],Kp.prototype,"actionBarButtonOverride",void 0);_.V([_.e("playerState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Kp.prototype,"playPauseButtonData",null);
_.V([_.e("isFullscreen"),_.z("design:type",Object),_.z("design:paramtypes",[])],Kp.prototype,"fullscreenButtonData",null);_.V([_.n(),_.z("design:type",Object)],Kp.prototype,"onClosedCaptionsButtonClick",void 0);_.V([_.e("isFullscreen"),_.z("design:type",String),_.z("design:paramtypes",[])],Kp.prototype,"fullscreenIcon",null);
_.G(Kp,"ytd-shorts-player-controls",function(){if(NTf===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);NTf=D}D=NTf;return D},{mode:1});var YYj;_.CI(_.l6w,"yt-interstitial-view-model",{props:{data:_.Bm}});var ygB=_.F(function(D){var C=D.data;return _.A("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.A("h1",{class:"reelWatchBreakViewModelHostTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A("h2",{class:"reelWatchBreakViewModelHostBody"},_.A(_.QG,{text:function(){return C().body},
isOverlay:!0})),_.A(_.BX,{data:function(){return C().buttons}},{buttonViewModel:function(X,c){return _.A("div",{class:function(){return c()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.A(_.Ze,{data:X.data}))}}))},"Jn");
ygB.idomCompat=!0;_.CI(ygB,"reel-watch-break-view-model",{props:{data:_.Bm}});var hH=function(){return _.w.apply(this,arguments)||this};
_.h(hH,_.w);hH.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}}};
_.$a.Object.defineProperties(hH.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.r((D=this.data)==null?void 0:D.renderer,iCj)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.r((D=this.data)==null?void 0:D.renderer,kVm)}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],hH.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],hH.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hH.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data.renderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hH.prototype,"isSurvey",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.renderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hH.prototype,"isInterstitialViewModel",null);_.V([_.yj({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],hH);
_.G(hH,"ytd-reel-non-video-content-renderer",function(){if(YYj!==void 0)return YYj;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return YYj=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var nzd;_.CI(_.WMp,"desktop-shorts-player-controls",{});var xs=function(){var D=_.w.apply(this,arguments)||this;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.showPlayerControls=!1;D.showScrubber=!1;D.autoHideJobId=0;D.overlayType=_.bX("web_shorts_expanded_overlay_type");D.panelData=void 0;D.isWatchWhileMode=!1;D.hasError=!1;D.panelShowDelayMs=1;D.scrubberComponent={};D.isFullscreen=!1;D.shouldHideOverlay=!1;D.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");D.enablePersistentAnchoredPanel=_.b("desktop_shorts_v2_persistent_anchored_panel");D.hideWatchWhilePanel=
_.b("web_shorts_hide_watch_while_panel");D.useAspectRatio=_.b("web_use_aspect_ratio");D.enableShortsModernControls=_.b("web_shorts_modern_controls");D.isPersistentPanelActive=!1;D.anchoredPanelActive=!1;D.isShortsPipActive=!1;D.smallScreenSqueezeback=!1;D.enableFlexibleOverlay=_.b("web_enable_flexible_overlay");D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;D.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
D.onWindowResized=function(){_.Hr(D,"calculateOverlayDensity",function(){D.calculateOverlayDensity()},100)};
return D};
_.h(xs,_.w);_.S=xs.prototype;_.S.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.S.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.S.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var D=_.iX().resolve(_.p6);this.isWatchWhileMode&&_.qX.addJob(function(){D.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.S.handleShowReelsCommentsOverlayCommand=function(D){D=_.r(D,BTf);this.isActive&&(D==null?0:D.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))};
_.S.updateEngagementPanelVisibility=function(D,C){D&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:C?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:D}})};
_.S.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.S.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.iX().resolve(_.lg).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.S.handleWatchWhilePanelScrimClick=function(){var D=_.iX().resolve(_.p6);this.activeWatchWhilePanel&&(D.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.S.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.S.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.S.handlePlayerClick=function(D){var C=this,X,c;if((c=(X=window).matchMedia)!=null&&c.call(X,"(any-pointer: coarse)").matches||!D)this.showPlayerControls=!0,_.qX.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Zo(_.qX,function(){C.showPlayerControls=!1},4E3)};
_.S.isFirstReel=function(){return this.index===0};
_.S.handleMouseenter=function(){_.qX.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.S.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.S.handleScrubberEnter=function(){this.showScrubber=!0};
_.S.handleScrubberLeave=function(){this.showScrubber=!1};
_.S.maybeLogNonDefaultAspectRatio=function(){var D;(D=this.data)!=null&&D.thumbnail&&this.isActive&&.5625!==G4z(this.data.thumbnail)&&_.slj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.S.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var D=document.querySelector("#shorts-container");if(D){var C=!1,X,c=this.playerContainer.offsetWidth,W=this.playerContainer.offsetHeight;D=D.offsetWidth/2-c/2;D>=368?(D=1,C=X=!0):D>=72?(D=0,X=!0):(D=2,X=!1);c>=600&&W>=840?D=1:window.innerWidth<=599&&(D=2,X=C=!1);this.isPersistentPanelActive&&(D=0,C=!1);this.extractActionBar=X;_.b("web_enable_flexible_overlay")&&(this.overlayDensity=D,this.extractOverlay=
C);var p;(p=this.onOverlayDensityChanged)==null||p.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.S.onOverlayDensityChange=function(){var D;(D=this.onOverlayDensityChanged)==null||D.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(D=_.SY(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))D.set("overlayDensity",this.overlayDensity),D.set("extractOverlay",this.extractOverlay),D.set("extractActionBar",this.extractActionBar);if(D=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))D.overlayDensity=this.overlayDensity,D.extractOverlay=
this.extractOverlay,D.extractActionBar=this.extractActionBar};
_.S.isVideoContent=function(D){_.iX().resolve(_.lg);return!!_.r(D,_.ko)};
_.S.isNonVideoContent=function(D){_.iX().resolve(_.lg);return!!_.r(D,_.ad)};
_.S.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.$a.Object.defineProperties(xs.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var D,C;return _.b("web_enable_format_first")||((D=this.data)==null?void 0:D.adsOverlay)&&_.b("web_enable_format_first_ads_only")||((C=this.data)==null?void 0:C.reelPlayerOverlayRenderer)&&_.b("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.b("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isActive||!this.isPlayerStarted||(D=this.data)!=null&&D.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.command)&&this.isVideoContent(this.data.command)){var C,X;if(((C=this.data)==null?0:C.adsOverlay)&&Object.keys((X=this.data)==null?void 0:X.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var c,W;if(((c=this.data)==null?0:c.reelPlayerOverlayRenderer)&&Object.keys((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
xs.prototype.onOverlayDensityChange=xs.prototype.onOverlayDensityChange;xs.prototype.calculateOverlayDensity=xs.prototype.calculateOverlayDensity;xs.prototype.maybeLogNonDefaultAspectRatio=xs.prototype.maybeLogNonDefaultAspectRatio;xs.prototype.onEngagementPanelsChanged=xs.prototype.onEngagementPanelsChanged;xs.prototype.onScrubberDataChange=xs.prototype.onScrubberDataChange;xs.prototype.updateShouldHideOverlay=xs.prototype.updateShouldHideOverlay;
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],xs.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],xs.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],xs.prototype,"index",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],xs.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],xs.prototype,"isHiddenInDom",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"isPlayerPaused",void 0);_.V([_.n({selector:Tqv}),_.z("design:type",Object)],xs.prototype,"isPlayerStarted",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"showPlayerControls",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"showScrubber",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"autoHideJobId",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"overlayType",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],xs.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],xs.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],xs.prototype,"watchWhileEngagementPanels",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"panelData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"isWatchWhileMode",void 0);_.V([_.n(),_.z("design:type",String)],xs.prototype,"activeWatchWhilePanel",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"hasError",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"panelShowDelayMs",void 0);
_.V([_.n(),_.z("design:type",Object)],xs.prototype,"scrubberComponent",void 0);_.V([_.n({selector:_.o9,reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"isFullscreen",void 0);_.V([_.n(),_.z("design:type",Object)],xs.prototype,"shouldHideOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"enableAnchoredPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"enablePersistentAnchoredPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"hideWatchWhilePanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"useAspectRatio",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"enableShortsModernControls",void 0);_.V([_.n({selector:_.jjt,reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"isPersistentPanelActive",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"anchoredPanelActive",void 0);_.V([_.n({selector:_.WC,reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"isShortsPipActive",void 0);_.V([_.n({selector:Vjf,reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"smallScreenSqueezeback",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.adsOverlay"),_.z("design:type",Object),_.z("design:paramtypes",[])],xs.prototype,"isAdsOverlay",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],xs.prototype,"enableFormatFirst",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"enableFlexibleOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"overlayDensity",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"extractOverlay",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xs.prototype,"extractActionBar",void 0);_.V([_.n(),_.z("design:type",Function)],xs.prototype,"onOverlayDensityChanged",void 0);_.V([_.n(),_.e("isActive","hasError","isPlayerStarted"),_.z("design:type",Object),_.z("design:paramtypes",[])],xs.prototype,"shouldRenderPlayerElements",null);_.V([_.n(),_.e("isActive","isWatchWhileMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],xs.prototype,"watchWhileOrPersistentActive",null);
_.V([_.vr("isActive","hasError","showingExpandedOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xs.prototype,"updateShouldHideOverlay",null);_.V([_.n({reflectToAttribute:!0}),_.e("isActive","isPlayerStarted","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xs.prototype,"shouldRenderScrubber",null);
_.V([_.vr("shouldRenderScrubber"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xs.prototype,"onScrubberDataChange",null);_.V([_.e("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],xs.prototype,"overlayComponent",null);_.V([_.vr("watchWhileEngagementPanels"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xs.prototype,"onEngagementPanelsChanged",null);
_.V([_.kn("#player-container"),_.z("design:type",HTMLElement)],xs.prototype,"playerContainer",void 0);_.V([_.kn("#cinematic-container"),_.z("design:type",HTMLElement)],xs.prototype,"cinematicContainer",void 0);_.V([_.vr("isPersistentPanelActive","data.thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xs.prototype,"maybeLogNonDefaultAspectRatio",null);
_.V([_.vr("isPersistentPanelActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xs.prototype,"calculateOverlayDensity",null);_.V([_.vr("overlayDensity","extractOverlay","extractActionBar"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xs.prototype,"onOverlayDensityChange",null);_.V([_.yj({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],xs);
_.G(xs,"ytd-reel-video-renderer",function(){if(nzd!==void 0)return nzd;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return nzd=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var Lp=function(){var D=_.w.apply(this,arguments)||this;D.isPreviousPageShorts=!1;D.index=0;D.delayedActiveIndex=0;D.playablePreviousIndex=null;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.intersectionObserverThreshold=.6;D.fitToVisibleBounds=!1;D.pageSubtype="shorts";D.enablePreviousContinuation=_.b("shorts_in_playlists_web");D.shortsPipEnabled=_.b("web_shorts_pip");D.isDark=document.documentElement.hasAttribute("dark");D.shortsViewTransitions=_.b("web_shorts_view_transitions");D.isFullscreen=!1;D.isShortsPipActive=
!1;D.buttonOverride={iconPosition:"icon-only",size:"XL"};D.anchoredPanelActive=!1;D.isActive=!1;D.smallScreenPersistentPanel=!1;D.isPersistentPanelActive=!1;D.smallScreenSqueezeBack=!1;D.enableScrollIntoViewCenter=_.b("web_scroll_into_view_center");D.formatFirst=_.b("web_enable_format_first")||_.b("web_enable_format_first_ads_only")||_.b("web_enable_format_first_organic_only");D.enableFlexibleOverlay=_.b("web_enable_flexible_overlay");D.extractOverlay=!1;D.useAspectRatio=_.b("web_use_aspect_ratio");
D.enableShortsSequenceRefactorUnify=_.b("web_enable_shorts_sequence_refactor_unify");D.continuationRequestPending=!1;D.carouselContainers=[];D.isShortsInitialized=!1;D.shortsContentList=[];D.hasDataUpdated=!1;D.playerInPosition=!1;D.hidePreviousButtonImmediately=!1;D.showPreviousButtonImmediately=!1;D.endOfNextContinuation=!1;D.currentPlayerIndex=0;D.nextReelVe=_.Ia(56921);D.prevReelVe=_.Ia(56922);D.loopToggleOffVe=_.Ia(198013);D.loopToggleOnVe=_.Ia(198014);D.ambientModeToggleVe=_.Ia(227860);D.reelPlayerPausedStateRendererVe=
_.Ia(141313);D.storedPlaybackSpeed=null;D.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"};D.onOverlayDensityChanged=function(C,X,c,W){C=D.getActiveReelVideo(C);D.extractOverlay=!!c;C==null||C.setAttribute("overlay-density",String(X));c===void 0||C!=null&&C.toggleAttribute("extract-overlay",
c);W===void 0||C!=null&&C.toggleAttribute("extract-action-bar",W)};
return D};
_.h(Lp,_.w);_.S=Lp.prototype;_.S.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.S.setShortsContentList=function(){var D=this,C=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.VB(this.shortsContentList)):[],X=this.firstShortsData;if(X){var c=this.reelWatchSequenceResponse;if(X=this.shortsController==null?void 0:pKj(C,X,c!=null?c:null)){c=X.newContentList;var W=X.indexChange;if(c.length!==C.length){var p;(p=this.intersectionObserver)==null||p.disconnect();this.shortsContentList=c;W!==0&&(this.index=W,_.$w(_.qX,function(){var g;(g=D.getActiveReelVideo(W))==
null||g.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});D.movePlayerToVideo(W)},100));
_.qX.addLowPriorityJob(function(){D.observeShorts()},500)}}}};
_.S.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.S.onResize=function(){var D=_.fe(),C=D.dispatch,X=this.calculateIsSmallWidth();C.call(D,_.oI({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:X}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.S.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.S.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var D=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,C=D,X=0;D<250&&(C=D+this.shortsInnerContainer.clientWidth,X=24);_.Os(this.hostElement,{"--ytd-shorts-header-width":C+"px","--ytd-shorts-top-spacing":X+"px"})}};
_.S.isFirstShorts=function(D){return D&&!this.enableShortsSequenceRefactorUnify?this.index===-D.length:this.index===0};
_.S.isActiveReel=function(D,C,X){X&&(C=this.calculatePrevIndex(C,X));return D===C};
_.S.onFullscreenChange=function(){_.b("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.iX().resolve(_.wB).close(!0))};
_.S.engagementPanelsChanged=function(){var D;this.watchWhileEngagementPanels=(D=this.data)==null?void 0:D.engagementPanels};
_.S.unregisterPanels=function(){var D=_.iX().resolve(_.p6);if(this.watchWhileEngagementPanels)for(var C=_.U(this.watchWhileEngagementPanels),X=C.next();!X.done;X=C.next()){var c=X.value,W=void 0,p=void 0;X=(W=c.engagementPanelSectionListRenderer)==null?void 0:(p=W.identifier)==null?void 0:p.tag;c=this.getPanelIdentifier(c.engagementPanelSectionListRenderer);D&&(X&&D.panelMap.delete(X),c&&_.b("web_shorts_panel_caching_bugfix")&&(W=X=void 0,(W=(X=D).unregisterPanelContent)==null||W.call(X,c)))}};
_.S.isVideoContent=function(D){return this.isVideoContentCommand(D==null?void 0:D.command)};
_.S.getActiveReelVideo=function(D){return _.SY(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+D+'"]')};
_.S.calculatePrevIndex=function(D,C){return C?D-((C==null?void 0:C.length)||0):-1};
_.S.onKeydown=function(D){var C=_.Mz(D)||[];if(!_.GAG(C))if(D.code==="ArrowUp")D.preventDefault(),this.handlePrevButtonClick();else if(D.code==="ArrowDown")D.preventDefault(),this.handleNextButtonClick();else if(D.code==="KeyM")this.toggleMuteUnmuteVideo();else if(D.code==="KeyK"||D.code==="Space")this.togglePlayPauseVideo();else if((D.code==="KeyA"||D.code==="ArrowLeft")&&_.b("web_shorts_keyboard_enable_seek_shortcuts")){var X;(X=this.player)==null||X.seekBy(-5)}else if((D.code==="KeyD"||D.code===
"ArrowRight")&&_.b("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var c;(c=this.player)==null||c.seekBy(5)}};
_.S.onServiceRequestCompleted=function(D,C){D=C.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,D.continuationEndpoint||D.prevContinuationEndpoint)this.reelWatchSequenceResponse=D}else D.continuationEndpoint&&D.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:D.entries,continuationEndpoint:D.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=D):D.prevContinuationEndpoint&&
D.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:D.prevEntries,prevContinuationEndpoint:D.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.S.handleEngagementPanelVisibilityChanged=function(D,C){var X=_.iX().resolve(_.p6);if(D&&X){var c=this.getPanelIdentifier(D);if(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==c){X.hidePanel({identifier:this.activePanel});var W;this.activePanel=((W=D.identifier)==null?void 0:W.tag)||D.panelIdentifier}else this.isPersistentPanelActive=!0,_.fe().dispatch(UGH(!0)),this.anchoredPanelActive=!0,this.activePanel=c;else C==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===c&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.fe().dispatch(UGH(!1)))}};
_.S.handlePanelScrimClick=function(){var D=_.iX().resolve(_.p6);this.activePanel&&(D.hidePanel({identifier:this.activePanel}),_.fe().dispatch(UGH(!1)))};
_.S.getShortsLoopSetting=function(){var D,C,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return _.b("kevlar_shorts_auto_advance")?p.yield(_.oc.getInstance(),2):p.return(!0);case 2:return(D=p.yieldResult)?p.yield(D.get("sfvles"),3):p.return(!0);case 3:return X=(C=p.yieldResult)!=null?C:!1,p.yield(D.get("sfvle"),4);case 4:return W=(c=p.yieldResult)!=null?c:!0,X?p.return(W):p.return(!0)}})};
_.S.handleSignalActionToggleLoopShortsOff=function(){var D=this,C,X,c;return _.I(function(W){switch(W.nextAddress){case 1:if(!D.player)return W.return();D.player.setLoopVideo(!1);C=_.iO();_.Hj(C,D.loopToggleOffVe);return W.yield(_.oc.getInstance(),2);case 2:return(X=W.yieldResult)?W.yield(X.set("sfvle",!1),3):W.return();case 3:return W.yield(X.set("sfvles",!0),4);case 4:c=_.PE(),_.$C(0,203,!1),_.$C(0,204,!0),c.save(),_.t_(W)}})};
_.S.handleSignalActionToggleLoopShortsOn=function(){var D=this,C,X,c;return _.I(function(W){switch(W.nextAddress){case 1:if(!D.player)return W.return();D.player.setLoopVideo(!0);C=_.iO();_.Hj(C,D.loopToggleOnVe);return W.yield(_.oc.getInstance(),2);case 2:return(X=W.yieldResult)?W.yield(X.set("sfvle",!0),3):W.return();case 3:return W.yield(X.set("sfvles",!0),4);case 4:c=_.PE(),_.$C(0,203,!0),_.$C(0,204,!0),c.save(),_.t_(W)}})};
_.S.handleSignalActionToggleCinematicShortsOn=function(){JUv(!0);var D;(D=this.JSC$23033_cinematicController)==null||_.m6B(D,!0);_.Hj(_.iO(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.S.handleSignalActionToggleCinematicShortsOff=function(){JUv(!1);var D;(D=this.JSC$23033_cinematicController)==null||_.m6B(D,!1);_.Hj(_.iO(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.S.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.S.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.S.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var D=this.overlayContainer.querySelector("#experiment-overlay");D&&_.qX.addLowPriorityJob(function(){D.style.display="unset"},100)}else if(this.overlayContainer){var C;
((C=this.playerElement.getPlayer())==null?void 0:C.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.S.getCurrentShort=function(){if(this.currentEndpoint){var D=this.currentEndpoint;if(this.isNonVideoContentCommand(D)){var C=_.r(D,_.ad);return{reelNonVideoContentRenderer:_.r(C==null?void 0:C.renderer,_.Oq),command:D}}if(this.data){var X;C=(X=_.r(this.currentEndpoint,_.ko))==null?void 0:X.thumbnail;var c;X=(c=this.data.overlay)==null?void 0:c.reelPlayerOverlayRenderer;_.iX().resolve(_.lg);D=this.data;var W,p;c=(W=D.overlay)==null?void 0:(p=W.shortsAdsRenderer)==null?void 0:p.adSlots;if(c!==void 0)c.length===
0?(_.HX("Shorts ads returned no ad slots."),D=void 0):(c.length>1&&_.HX("Shorts ads has more than one ad slots."),D=_.r(c[0],_.TFx));else{var g,a;D=_.r((g=D.overlay)==null?void 0:(a=g.shortsAdsRenderer)==null?void 0:a.overlay,_.TFx)}g=D;D=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.r(this.currentEndpoint,_.ko),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var O;return{reelPlayerOverlayRenderer:X,thumbnail:C,command:D,adsOverlay:g,
videoId:(O=_.r(this.currentEndpoint,_.ko))==null?void 0:O.videoId}}}};
_.S.created=function(){var D=this;this.scrollToVideoThrottle=new _.Al(function(C,X){X=X===void 0?"smooth":X;var c;(c=D.getActiveReelVideo(C))==null||c.scrollIntoView({behavior:X,block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.iX().resolve(_.lg);this.maybeCreateIntersectionObserver()};
_.S.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.S.attached=function(){var D=this;_.iX().resolve(_.lg).registerRootElement(this);this.pageScrollElement=_.SY(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Pr(this,this.processResetAction));_.b("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){D.maybeCreateIntersectionObserver();D.scrollToVideoThrottle.fire(D.activeIndex,"instant");D.shortsContainer.style.overflowY=
"scroll"}))};
_.S.updateReelWatchSequenceResponse=function(){var D=this,C;if(_.b("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((C=_.r(this.currentEndpoint,_.ko))==null?0:C.sequenceParams)&&!this.reelWatchSequenceResponse){var X;(X=this.shortsController)==null||ozv(X,this.currentEndpoint).then(function(c){c&&(D.reelWatchSequenceResponse=c,D.cachedReelWatchSequenceResponse=c,_.qX.addLowPriorityJob(function(){D.observeShorts()}))})}};
_.S.calculateSqueezebackPanelSize=function(){var D=this,C=window.innerWidth-456-(window.innerHeight-106)*.5625;_.qX.addLowPriorityJob(function(){C<360?_.fe().dispatch(gzv(!0)):(D.hostElement.style.setProperty("--anchored-panel-width",Math.min(C,480)+"px"),_.fe().dispatch(gzv(!1)))})};
_.S.detached=function(){var D=_.iX().resolve(_.lg);D.rootElement=void 0;var C;(C=D.unsubscribeFromStore)==null||C.call(D);D.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Pr(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.S.onResizeFinished=function(D,C){var X=this,c=new ResizeObserver(function(){X.shortsContainer.style.overflowY="hidden";_.qX.addLowPriorityJob(function(){C()},100)});
c.observe(D);return c};
_.S.resetDocumentScrollTop=function(){var D,C;if((D=document)==null?0:(C=D.scrollingElement)==null?0:C.scrollTop)document.scrollingElement.scrollTop=0};
_.S.loadPage_=function(D){var C=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),D){var X;if((X=_.r(this.currentEndpoint,_.ko))==null?0:X.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=D;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){C.isPlayerStarted&&
(C.handleOnPlaybackCommand(),C.afterPlayerStarted=function(){})};
this.registerPanel(D)}};
_.S.afterPlayerStarted=function(){};
_.S.handleOnPlaybackCommand=function(){if(_.b("web_shorts_comment_stickers")&&this.isPlayerStarted){var D,C=(D=_.r(this.currentEndpoint,_.ko))==null?void 0:D.onPlaybackCommand;C&&this.ytComponentBehavior.resolveCommand(C)}};
_.S.maybeCreateIntersectionObserver=function(){var D=this,C=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==C){this.intersectionObserverThreshold=C;var X={rootMargin:"0px",threshold:C},c;(c=this.intersectionObserver)==null||c.disconnect();this.intersectionObserver=new IntersectionObserver(function(W){W=_.U(W);for(var p=W.next();!p.done;p=W.next())if(p=p.value,p.intersectionRatio>C){p=Number(p.target.id);if(isNaN(p))break;if(p===D.index)break;
_.MTt();D.loadVideo(p);_.ey("r_vtc")}},X);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.S.observeShorts=function(){var D,C,X,c=this.enableShortsSequenceRefactorUnify?((D=this.shortsContentList)==null?void 0:D.length)||0:(((C=this.shortsProcessedPrevSequence)==null?void 0:C.length)||0)+(((X=this.shortsProcessedSequence)==null?void 0:X.length)||0);if(this.carouselContainers.length<c&&(this.carouselContainers=[].concat(_.VB(_.SY(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(D=_.U(this.carouselContainers),C=D.next();!C.done;C=
D.next())C=C.value,X=void 0,(X=this.intersectionObserver)==null||X.observe(C);if(!this.enableShortsSequenceRefactorUnify)for(D=_.U(this.carouselContainers),C=D.next();!C.done;C=D.next())C=C.value,X=void 0,(X=this.intersectionObserver)==null||X.observe(C)};
_.S.initCsi=function(){_.wd6("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var D={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},C,X;if((C=this.playerData)==null?0:(X=C.cacheMetadata)==null?0:X.isCacheHit)D.isCacheHit=!0;var c;if(C=(c=_.r(this.currentEndpoint,_.ko))==null?void 0:
c.prefetchTaskId)D.prefetchInfo={taskId:C};_.hZ(D)};
_.S.isAd=function(){var D,C;return!!((D=_.r(this.currentEndpoint,_.ko))==null?0:(C=D.adClientParams)==null?0:C.isAd)};
_.S.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.S.getPlayerContainer=function(){var D;return(D=_.SY(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:D.playerContainer};
_.S.onPlayerStateChange=function(D){var C=this;this.isPlayerPaused=D===2;D!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?D===1&&this.index===0&&(this.isPlayerStarted||_.fe().dispatch(aff(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.fe().dispatch(aff(!0)));this.player&&!this.player.getLoopVideo()&&_.qX.addLowPriorityJob(function(){C.getShortsLoopSetting().then(function(X){var c;(c=C.player)==null||c.setLoopVideo(X)})});
this.isPlayerPaused&&_.b("web_shorts_paused_state_logging")&&_.VP(_.LN(),[this.reelPlayerPausedStateRendererVe])};
_.S.isShortPlayable=function(){if(_.b("kevlar_playable_short_killswitch"))return!0;var D;return(D=this.playerData)!=null&&D.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.S.setNormalPlaybackSpeed=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(D.getPlayer().getPlayerPromise(),2);C=c.yieldResult;X=C.getPlaybackRate();X!==1&&(D.storedPlaybackSpeed=X,C.setPlaybackRate(1));_.t_(c)})};
_.S.restorePlaybackSpeed=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1)return D.storedPlaybackSpeed===null?X.jumpTo(0):X.yield(D.getPlayer().getPlayerPromise(),3);C=X.yieldResult;C.setPlaybackRate(D.storedPlaybackSpeed);D.storedPlaybackSpeed=null;_.t_(X)})};
_.S.playerDataChanged=function(){var D=this,C,X,c,W,p,g,a,O,P;return _.I(function(k){if(k.nextAddress==1){C=D.getPlayer();D.enableShortsSequenceRefactorUnify||(X=D.intersectionObserver)==null||X.disconnect();if(D.playerData){if(((c=D.playerData.videoDetails)==null?void 0:c.videoId)!==((W=C.getPlayer())==null?void 0:W.getVideoData().video_id)){p={};if(g=_.r(D.currentEndpoint,_.ko))p.watch_endpoint=g,g.endTimeSeconds&&(p.end=g.endTimeSeconds);C.loadVideoWithPlayerResponse(D.playerData,p)}}else return k.return();
return D.player?k.jumpTo(2):k.yield(C.getPlayerPromise(),3)}k.nextAddress!=2&&(D.player=k.yieldResult,D.JSC$23033_playerStateChangeListener=D.onPlayerStateChange.bind(D),D.player.addEventListener("onStateChange",D.JSC$23033_playerStateChangeListener),_.b("kevlar_client_enable_shorts_player_bootstrap")&&_.Gt(),D.scrollToVideoThrottle.fire(D.index),D.movePlayerToVideo(D.index),_.qX.addLowPriorityJob(function(){D.getShortsLoopSetting().then(function(u){var Q;(Q=D.player)==null||Q.setLoopVideo(u)})}),
_.cNN.resolve(D.player),D.player.syncVolume(),D.getPlayer().focusOnPlayer());
_.qX.addLowPriorityJob(function(){D.observeShorts()},100);
a=D.player.getPlayerState(D.player.getPresentingPlayerType());a!==1||D.isPlayerStarted||_.fe().dispatch(aff(!0));D.updateBackNavContainerWidth();O=_.r(D.currentEndpoint,_.ko);((P=O)==null?0:P.startTimeSeconds)&&D.player.seekTo(O.startTimeSeconds);if(D.JSC$23033_cinematicController||D.cinematicsInitializeJobId)return k.return();D.cinematicsInitializeJobId=_.qX.addLowPriorityJob(function(){D.initCinematicController();D.cinematicsInitializeJobId=void 0});
_.t_(k)})};
_.S.onShortUndoDismiss=function(){var D=this,C=cgm().pop();C!==void 0&&(_.A0(this,function(){D.showCardWithIndex(C)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.S.onShortsDismiss=function(D){if(D=D.detail.reelDismissalActionRenderer)(D=_.r(D.onDismissalCompletionRenderer,_.gQB))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:D}}}),this.scrollAndDismissCard()};
_.S.processReelNonVideoContentDismissalCommand=function(D){var C=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);D=_.r(D,QQ2);this.activeDimissalTimeout=setTimeout(function(){C.scrollAndDismissCard()},Number(D==null?void 0:D.delayMs))};
_.S.scrollAndDismissCard=function(){var D=this,C=this.index;cgm().push(C);_.A0(this,function(){var X=D.getPlayableNextIndex();X!==null&&(D.hideCardWithIndex(C),D.scrollToVideoThrottle.fire(X))})};
_.S.hideCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!0};
_.S.showCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!1};
_.S.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.S.activeChanged=function(D){_.fe().dispatch(_.oI({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:D}}));if(D)document.addEventListener("keydown",_.Pr(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var C;(C=this.player)==null||C.sendAbandonmentPing()}var X;(X=this.player)==null||X.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Pr(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.S.graftClientVisualElements=function(){if(this.data){var D=_.iO();_.lDb(D,_.WE({response:this.reelWatchSequenceResponse}));_.Vc(D,this.nextReelVe);_.Vc(D,this.prevReelVe);_.b("kevlar_shorts_auto_advance")&&(_.Vc(D,this.loopToggleOffVe),_.Vc(D,this.loopToggleOnVe));_.Vc(D,this.ambientModeToggleVe);_.VP(_.LN(),[this.nextReelVe,this.prevReelVe]);_.b("web_shorts_paused_state_logging")&&_.Vc(D,this.reelPlayerPausedStateRendererVe)}};
_.S.graftNvcRenderer=function(){var D,C,X,c,W,p,g=this.enableShortsSequenceRefactorUnify?(D=this.shortsContentList)==null?void 0:(C=D[this.index])==null?void 0:C.command:this.index<0?(X=this.shortsProcessedPrevSequence)==null?void 0:(c=X[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:c.command:(W=this.shortsProcessedSequence)==null?void 0:(p=W[this.index])==null?void 0:p.command;if(g&&this.isNonVideoContentCommand(g)){D=_.r(g,_.ad);var a,O;(D=(a=_.r(D==null?void 0:D.renderer,_.Oq))==
null?void 0:(O=a.loggingDirectives)==null?void 0:O.trackingParams)&&_.iO().graftServerVe(D)}};
_.S.setActiveIndex=function(){_.iX().resolve(_.lg).setActiveIndex(this.index)};
_.S.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.S.lazyUpdateMiniplayerData=function(){var D=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.qX.addLowPriorityJob(function(){D.updateMiniplayerData();D.updateMiniplayerDataJobId=void 0}))};
_.S.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.qX.cancelJob(this.updateMiniplayerDataJobId)};
_.S.updateMiniplayerData=function(){var D,C,X,c=_.iX().resolve(_.wB),W={shortsData:this.getCurrentShort(),previousButtonDisabled:!((D=this.prevButtonData)==null||!D.isDisabled),nextButtonDisabled:!((C=this.nextButtonData)==null||!C.isDisabled),playabilityStatus:(X=this.playerData)==null?void 0:X.playabilityStatus};_.fA(c,W)};
_.S.resetPlayerLocation=function(){var D=this.getPlayer();this.initialPlayerContainer&&D.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.S.movePlayerToVideo=function(D,C){var X=this;C=C===void 0?!0:C;var c=this.getActiveReelVideo(D),W=this.getPlayer();if(c){this.overlayContainer?c.appendChild(this.overlayContainer):(this.overlayContainer=_.SY(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,c.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||W.appendTo(this.overlayContainer.playerContainer,void 0,!0));var p;(p=this.player)==null||p.setSize(NaN,NaN);this.isActive||_.Zo(_.qX,function(){X.isActive=
!0});
W.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.b("reels_web_disable_rtr_tick")||_.b("reels_web_use_pbs_first_shorts")&&D===0||_.sp("r_tr");this.currentPlayerIndex=D;c.appendChild(this.errorScreenContainer);var g;(g=this.JSC$23033_cinematicController)==null||_.tjD(g)}else C?_.qX.addLowPriorityJob(function(){X.movePlayerToVideo(X.index,!1)}):Math.random()<=_.BK("web_shorts_error_logging_threshold")&&_.qN(new _.Zf("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:C,
index:D}))};
_.S.enableFormatFirst=function(D){return _.b("web_enable_format_first")||D.adsOverlay&&_.b("web_enable_format_first_ads_only")||D.reelPlayerOverlayRenderer&&_.b("web_enable_format_first_organic_only")};
_.S.getAspectRatio=function(D){if(this.enableFormatFirst(D))return(D==null?0:D.thumbnail)&&G4z(D.thumbnail)?"--ytd-shorts-player-ratio: "+G4z(D.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.S.getBackgroundImage=function(D){if(D!=null&&D.thumbnail)return(D=_.c0(D.thumbnail.thumbnails))?'background-image:url("'+D+'");':"background-color:black;"};
_.S.onPersistentPanelActiveChanged=function(){var D=this.getCurrentShort();if(D&&this.enableFormatFirst(D)&&(D==null?0:D.thumbnail)&&G4z(D.thumbnail)!==.5625){var C;(C=this.player)==null||C.setSize(NaN,NaN)}};
_.S.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.S.moveCinematicsToVideo=function(){var D=_.SY(this.hostElement).querySelector("ytd-reel-video-renderer");(D==null?0:D.cinematicContainer)&&D.cinematicContainer!==this.shortsCinematicContainer.parentElement&&D.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.S.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.S.updatePrevButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);D?this.prevButtonData=D=Object.assign({},D,{accessibility:{label:_.I7("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.I7("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=D=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.S.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.S.updateNextButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);D&&(this.nextButtonData=D=Object.assign({},D,{accessibility:{label:_.I7("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.I7("NEXT_VIDEO_LABEL")||""}))};
_.S.getPlayablePreviousIndex=function(){for(var D,C=this.index-1;C>=-(((D=this.prevShortsSequence)==null?void 0:D.length)||0);C--)if(!cgm().includes(C))return C;return null};
_.S.getIndexInSequence=function(D,C){return D.findIndex(function(X){var c;return((c=_.r(X.command,_.ko))==null?void 0:c.videoId)===C})};
_.S.handlePrevButtonClick=function(D){var C=this,X,c;return _.I(function(W){X=C.getPlayablePreviousIndex();if(X===null)return W.return();C.gestureType=((c=D)==null?void 0:c.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";X===0&&(C.hidePreviousButtonImmediately=!0);if(C.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){C.scrollToVideoThrottle.fire(X,"auto")}),W.return();
C.scrollToVideoThrottle.fire(X);_.t_(W)})};
_.S.getPlayableNextIndex=function(){for(var D,C,X=this.index+1;X<(this.enableShortsSequenceRefactorUnify?(D=this.shortsContentList)==null?void 0:D.length:((C=this.shortsProcessedSequence)==null?void 0:C.length)||0);X++)if(!cgm().includes(X))return X;return null};
_.S.handleNextButtonClick=function(D,C){var X=this,c,W;return _.I(function(p){c=X.getPlayableNextIndex();if(c===null)return p.return();c===1&&(X.showPreviousButtonImmediately=!0);X.gestureType=((W=D)==null?void 0:W.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";C&&(X.gestureType=C);if(X.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){X.scrollToVideoThrottle.fire(c,"auto")}),p.return();
X.scrollToVideoThrottle.fire(c);_.t_(p)})};
_.S.handleReelNavigateCommand=function(D,C,X){(D=_.r(D,uLN))&&C&&D.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(X)};
_.S.loadVideo=function(D,C){var X=this;C=C===void 0?!1:C;if(D!==this.currentPlayerIndex){_.fe().dispatch(aff(!1));if(this.isAd()&&!C){var c;(c=this.player)==null||c.notifyShortsAdSwipeEvent()}var W;(W=this.JSC$23033_cinematicController)==null||_.EQv(W);var p;(p=this.JSC$23033_cinematicController)==null||SYB(p);c=D>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(c));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var g,a,O,P,k,u;C=this.enableShortsSequenceRefactorUnify?(g=this.shortsContentList)==null?void 0:(a=g[D])==null?void 0:a.command:D<0?(O=this.shortsProcessedPrevSequence)==null?void 0:(P=O[this.shortsProcessedPrevSequence.length+D])==null?void 0:P.command:(k=this.shortsProcessedSequence)==null?void 0:(u=k[D])==null?void 0:u.command;this.index=D;this.gestureType||(this.gestureType=c?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");C&&this.isVideoContentCommand(C)&&(this.ytComponentBehavior.resolveCommand(C,{form:{createScreenConfig:{clickedVisualElement:c?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(C&&this.isNonVideoContentCommand(C)){this.currentEndpoint=C;this.data=void 0;g=_.iO();a=_.r(C,_.ad);var Q,B;(a=(Q=_.r(a==null?void 0:a.renderer,_.Oq))==null?void 0:(B=Q.screenLoggingData)==null?void 0:B.screenVeType)&&_.Gm(g,a);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(Q=this.getActiveReelVideo(D))&&Q.appendChild(this.overlayContainer)}var K,L;Q=this.enableShortsSequenceRefactorUnify?((K=this.shortsContentList)==null?NaN:K.length)-4<=D:((L=this.reelWatchSequenceResponse)==null?void 0:L.entries)&&D===this.reelWatchSequenceResponse.entries.length-1;var t;if(((t=this.reelWatchSequenceResponse)==null?0:t.continuationEndpoint)&&Q){var Y,y,J={contentPlaybackContext:_.SX({},(y=_.r((Y=
this.currentEndpoint)==null?void 0:Y.commandMetadata,_.ge))==null?void 0:y.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.qX.addLowPriorityJob(function(){X.ytComponentBehavior.resolveCommand(X.reelWatchSequenceResponse.continuationEndpoint,{form:J})}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:J})}var T,H;
D=this.enableShortsSequenceRefactorUnify?D===0:D===-(((T=this.reelWatchSequenceResponse)==null?void 0:(H=T.prevEntries)==null?void 0:H.length)||0);var q,R;((q=this.reelWatchSequenceResponse)==null?0:q.prevContinuationEndpoint)&&((R=this.reelWatchSequenceResponse)==null?0:R.prevEntries)&&D&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.S.setMiniplayerPreview=function(D){D=(D===void 0?0:D)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var C,X,c,W,p=_.iX().resolve(_.wB),g={shortsData:void 0,shortsPreviewThumbnail:D?this.enableShortsSequenceRefactorUnify?(C=this.shortsContentList)==null?void 0:(X=C[D])==null?void 0:X.thumbnail:(c=this.shortsProcessedSequence)==null?void 0:(W=c[D])==null?void 0:W.thumbnail:void 0};_.fA(p,g)};
_.S.updateTitle=function(D){var C,X;D=(D==null?0:D.adSlots)?"":(X=D==null?void 0:(C=D.videoDetails)==null?void 0:C.title)!=null?X:"";_.lE(this.hostElement,"yt-update-title",D)};
_.S.registerPanel=function(D){var C=_.iX().resolve(_.p6);if(C){D=_.U(D.engagementPanels||[]);for(var X=D.next();!X.done;X=D.next()){X=X.value;var c=this.getPanelIdentifier(X.engagementPanelSectionListRenderer),W=void 0,p=void 0;(p=(W=C).registerPanelContent)==null||p.call(W,c,X)}}};
_.S.getPanelIdentifier=function(D){var C;return(D==null?void 0:(C=D.identifier)==null?void 0:C.tag)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:D.targetId)};
_.S.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.fe().dispatch(aff(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.fe().dispatch(UGH(!1));var D;(D=this.shortsController)!=null&&(D.dismissedIndices=[]);var C;(C=this.shortsController)!=null&&C.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.iX().resolve(_.wB).close(!0)};
_.S.processAppendReelWatchSequenceContinuationEntriesAction=function(D){var C=this,X;(X=this.intersectionObserver)==null||X.disconnect();D=D.appendReelWatchSequenceContinuationEntriesAction;if(D==null?0:D.entries){var c;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.VB(((c=this.reelWatchSequenceResponse)==null?void 0:c.entries)||[]),_.VB(D.entries)),continuationEndpoint:D.continuationEndpoint})}else if(D==null?0:D.prevEntries){var W;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.VB(((W=this.reelWatchSequenceResponse)==null?void 0:W.prevEntries)||[]),_.VB(D.prevEntries)),prevContinuationEndpoint:D.prevContinuationEndpoint});_.qX.addLowPriorityJob(function(){C.movePlayerToVideo(C.index);C.scrollToVideoThrottle.fire(C.index,"instant")})}else return;
_.qX.addLowPriorityJob(function(){C.observeShorts()},100)};
_.S.processWatchSequence=function(D){var C=this;return D.map(function(X){X=X.command;if(C.isVideoContentCommand(X)){var c=_.r(X,_.ko);return{reelPlayerOverlayRenderer:_.r(c==null?void 0:c.overlay,_.UMd),thumbnail:c.thumbnail,command:X}}return C.isNonVideoContentCommand(X)?(c=_.r(X,_.ad),{reelNonVideoContentRenderer:_.r(c==null?void 0:c.renderer,_.Oq),command:X}):{command:X}})};
_.S.calculateIntersectionObserverThreshold=function(){var D=_.SY(this.hostElement).querySelector("ytd-reel-video-renderer"),C=1;(D==null?0:D.offsetHeight)&&(D==null?0:D.offsetWidth)&&(C=Math.min(D.offsetHeight,this.shortsContainer.offsetHeight)/D.offsetHeight*(Math.min(D.offsetWidth,this.shortsContainer.offsetWidth)/D.offsetWidth));return Math.round(C*.6*10)/10};
_.S.isVideoContentCommand=function(D){_.iX().resolve(_.lg);return!!_.r(D,_.ko)};
_.S.isNonVideoContentCommand=function(D){_.iX().resolve(_.lg);return!!_.r(D,_.ad)};
_.S.initCinematicController=function(){var D=this;if(this.player&&this.shortsCinematicContainer){this.JSC$23033_cinematicController=new _.ix(this.shortsCinematicContainer,this.player);var C,X=_.r((C=this.data)==null?void 0:C.background,_.RO);_.ejB(this.JSC$23033_cinematicController,X);_.m6B(this.JSC$23033_cinematicController,H7$(X));_.se6(this.JSC$23033_cinematicController);_.qX.addLowPriorityJob(function(){D.moveCinematicsToVideo()})}};
_.S.handleMiniplayerNavigateShorts=function(D){D==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():D==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.S.handleSignalActionToggleShortsPictureInPicture=function(){if(_.iX().resolve(_.wB).pictureInPictureSupported()){var D=_.iX().resolve(_.lg);if(_.b("web_shorts_pip")){var C=_.iX().resolve(_.wB);D.isShortsPipActive()?C.deactivate():C.isMiniplayerActive()||(_.qg().shortsPipActivation=!0,_.$NU(C))}}else(D=this.player)==null||D.togglePictureInPicture()};
_.$a.Object.defineProperties(Lp.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.prevEntries)return this.processWatchSequence([].concat(_.VB(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.VB(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var D=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var C;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((C=this.shortsProcessedSequence)==null?void 0:C.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var X;C=_.r((X=this.firstShortsData)==null?void 0:X.command,_.ko);if(C==null||!C.videoId)return this.shortsProcessedSequence;X=this.getIndexInSequence(this.shortsSequence,
C.videoId);if(X!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=X,_.qX.addLowPriorityJob(function(){D.scrollToVideoThrottle.fire(D.index,"auto");D.movePlayerToVideo(D.index)}));
return[].concat(_.VB(this.shortsSequence))}_.$w(_.qX,function(){D.observeShorts()},100);
return[this.firstShortsData].concat(_.VB(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var D=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;D&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(D)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var D;return this.index===((D=this.shortsContentList)==null?NaN:D.length)-1}if(this.endOfNextContinuation){var C,X;return this.index===((C=this.reelWatchSequenceResponse)==null?void 0:(X=C.entries)==null?void 0:X.length)}var c;return!((c=this.reelWatchSequenceResponse)==null?0:c.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var D;(D=this.delayedActiveIndexUpdateDebouncer)==null||D.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return this.isShortPlayable()||((C=_.r((D=this.data)==null?void 0:D.watchStatus,_.izJ))==null?void 0:(X=C.style)==null?void 0:X.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var D=this,C=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),X;if((this.data||C)&&(((X=this.data)==null?0:X.engagementPanels)||this.isAd()||C)){C=!1;this.activePanel="shorts-comments-panel";var c;X=_.U(((c=this.data)==null?void 0:c.engagementPanels)||[]);for(c=X.next();!c.done;c=X.next())if(this.getPanelIdentifier(c.value.engagementPanelSectionListRenderer)===this.activePanel){C=!0;break}if(this.isPersistentPanelActive){var W=
_.iX().resolve(_.p6);_.Zo(_.qX,function(){W.showPanel({identifier:D.activePanel,target:null})},100)}var p;
c=[].concat(_.VB(Object.values(((p=this.data)==null?void 0:p.engagementPanels)||{})));p=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);X=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return p===void 0&&X===void 0||(p==null?0:p.isDisabled)||(X==null?void 0:X.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!C?(C=c==null?void 0:c.findIndex(function(g){var a,O;return((a=g.engagementPanelSectionListRenderer)==null?void 0:(O=a.identifier)==null?void 0:O.tag)==="shorts-comments-panel"}),C===-1||C===void 0||c!=null&&c.splice(C,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.I7("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.I7("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:_.I7("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.I7("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(_.VB(Object.values(c||
{})))):c}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var D=this,C,X,c;if((C=this.playerData)==null?0:(X=C.playabilityStatus)==null?0:(c=X.errorScreen)==null?0:c.playerInterstitialRenderer)return _.qX.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.playerData.playabilityStatus.errorScreen;
var W,p;return((W=this.data)==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((p=this.data)==null?0:p.watchStatus)&&_.r(this.data.watchStatus,_.nO4)?(_.qX.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.$a.Object.defineProperties(Lp,{template:{configurable:!0,enumerable:!0,get:function(){if(KC6===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);KC6=D}D=KC6;return D}}});
Lp.prototype.onNextButtonDataChange=Lp.prototype.onNextButtonDataChange;Lp.prototype.onPrevButtonDataChange=Lp.prototype.onPrevButtonDataChange;Lp.prototype.onPersistentPanelActiveChanged=Lp.prototype.onPersistentPanelActiveChanged;Lp.prototype.lazyUpdateMiniplayerData=Lp.prototype.lazyUpdateMiniplayerData;Lp.prototype.onShortsPipActiveChanged=Lp.prototype.onShortsPipActiveChanged;Lp.prototype.setActiveIndex=Lp.prototype.setActiveIndex;Lp.prototype.graftNvcRenderer=Lp.prototype.graftNvcRenderer;
Lp.prototype.graftClientVisualElements=Lp.prototype.graftClientVisualElements;Lp.prototype.onActiveChanged=Lp.prototype.onActiveChanged;Lp.prototype.onShortsDismiss=Lp.prototype.onShortsDismiss;Lp.prototype.onShortUndoDismiss=Lp.prototype.onShortUndoDismiss;Lp.prototype.playerDataChanged=Lp.prototype.playerDataChanged;Lp.prototype.afterPlayerStarted=Lp.prototype.afterPlayerStarted;Lp.prototype.updateReelWatchSequenceResponse=Lp.prototype.updateReelWatchSequenceResponse;
Lp.prototype.unhideCurrentOverlay=Lp.prototype.unhideCurrentOverlay;Lp.prototype.onServiceRequestCompleted=Lp.prototype.onServiceRequestCompleted;Lp.prototype.engagementPanelsChanged=Lp.prototype.engagementPanelsChanged;Lp.prototype.onFullscreenChange=Lp.prototype.onFullscreenChange;Lp.prototype.onResize=Lp.prototype.onResize;Lp.prototype.setShortsContentList=Lp.prototype.setShortsContentList;Lp.prototype.setFirstShortsData=Lp.prototype.setFirstShortsData;
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Lp.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Ca.YtPageBehavior),_.z("design:type",Object)],Lp.prototype,"ytPageBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Lp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],Lp.prototype,"ironResizableBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],Lp.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Lp.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Lp.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"playerData",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"reelWatchSequenceResponse",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"cachedReelWatchSequenceResponse",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"cachedSequenceParams",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"cachedSequenceProvider",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"currentEndpoint",void 0);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"nextButtonData",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"prevButtonData",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"isPreviousPageShorts",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"index",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"delayedActiveIndex",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"playablePreviousIndex",void 0);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"player",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"isPlayerPaused",void 0);_.V([_.n({selector:Tqv}),_.z("design:type",Object)],Lp.prototype,"isPlayerStarted",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"intersectionObserver",void 0);_.V([_.n(),_.z("design:type",Number)],Lp.prototype,"cinematicsInitializeJobId",void 0);_.V([_.n(),_.z("design:type",Number)],Lp.prototype,"updateMiniplayerDataJobId",void 0);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"fitToVisibleBounds",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"pageSubtype",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lp.prototype,"enablePreviousContinuation",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"shortsPipEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"isDark",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"shortsViewTransitions",void 0);_.V([_.n({selector:_.o9,reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.WC,reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"isShortsPipActive",void 0);_.V([_.kn("#shorts-inner-container"),_.z("design:type",HTMLElement)],Lp.prototype,"shortsInnerContainer",void 0);
_.V([_.kn("#back-nav-button ytd-button-renderer"),_.z("design:type",_.t$)],Lp.prototype,"backNavButton",void 0);_.V([_.kn("#shorts-container"),_.z("design:type",HTMLElement)],Lp.prototype,"shortsContainer",void 0);_.V([_.AQ("error-screen"),_.z("design:type",HTMLElement)],Lp.prototype,"errorScreenContainer",void 0);_.V([_.AQ("player"),_.z("design:type",Object)],Lp.prototype,"playerElement",void 0);
_.V([_.AQ("shorts-cinematic-container"),_.z("design:type",HTMLElement)],Lp.prototype,"shortsCinematicContainer",void 0);_.V([_.AQ("initial-player-container"),_.z("design:type",HTMLElement)],Lp.prototype,"initialPlayerContainer",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"buttonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"anchoredPanelActive",void 0);_.V([_.n(),_.z("design:type",String)],Lp.prototype,"activePanel",void 0);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"isActive",void 0);_.V([_.n({selector:Vjf,reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"smallScreenPersistentPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"isPersistentPanelActive",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"smallScreenSqueezeBack",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"enableScrollIntoViewCenter",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"formatFirst",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"enableFlexibleOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"extractOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"useAspectRatio",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Lp.prototype,"enableShortsSequenceRefactorUnify",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"continuationRequestPending",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"shortsController",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"panelContainer",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"overlayContainer",void 0);
_.V([_.n(),_.z("design:type",Array)],Lp.prototype,"carouselContainers",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"isShortsInitialized",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"firstShortsData",void 0);_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"firstShortsDataModel",void 0);_.V([_.n(),_.z("design:type",Array)],Lp.prototype,"shortsContentList",void 0);
_.V([_.e("reelWatchSequenceResponse"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lp.prototype,"prevShortsSequence",null);_.V([_.e("data","prevShortsSequence"),_.e("data","prevShortsSequence"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lp.prototype,"shortsProcessedPrevSequence",null);_.V([_.e("reelWatchSequenceResponse"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lp.prototype,"shortsSequence",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"setFirstShortsData",null);_.V([_.vr("reelWatchSequenceResponse","firstShortsData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"setShortsContentList",null);_.V([_.e("data","shortsSequence","firstShortsData"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lp.prototype,"shortsProcessedSequence",null);
_.V([_.n({reflectToAttribute:!0}),_.e("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lp.prototype,"isUpArrowHidden",null);_.V([_.n({reflectToAttribute:!0}),_.e("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lp.prototype,"isDownArrowHidden",null);
_.V([_.n(),_.e("index"),_.z("design:type",Number),_.z("design:paramtypes",[])],Lp.prototype,"activeIndex",null);_.V([_.e("isShortPlayable","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lp.prototype,"shouldRenderOfflineContent",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onResize",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lp.prototype,"anchoredEngagementPanels",null);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"watchWhileEngagementPanels",void 0);_.V([_.vr("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onFullscreenChange",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"engagementPanelsChanged",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],Lp.prototype,"onServiceRequestCompleted",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"unhideCurrentOverlay",null);_.V([_.vr("currentEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"updateReelWatchSequenceResponse",null);
_.V([_.vr("isPlayerStarted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"afterPlayerStarted",null);_.V([_.e("playerData","reelWatchSequenceResponse","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lp.prototype,"errorScreen",null);_.V([_.e("errorScreen"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Lp.prototype,"hasError",null);
_.V([_.vr("playerData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Lp.prototype,"playerDataChanged",null);_.V([_.$n("yt-dismissible-item-undo-feedback"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onShortUndoDismiss",null);_.V([_.$n("yt-disable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],Lp.prototype,"onShortsDismiss",null);
_.V([_.bH("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onActiveChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"graftClientVisualElements",null);_.V([_.vr("currentPlayerIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"graftNvcRenderer",null);
_.V([_.vr("index"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"setActiveIndex",null);_.V([_.vr("isShortsPipActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onShortsPipActiveChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"lazyUpdateMiniplayerData",null);
_.V([_.n(),_.z("design:type",Object)],Lp.prototype,"onOverlayDensityChanged",void 0);_.V([_.vr("isPersistentPanelActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onPersistentPanelActiveChanged",null);_.V([_.vr("index","data","isUpArrowHidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onPrevButtonDataChange",null);
_.V([_.vr("index","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lp.prototype,"onNextButtonDataChange",null);_.V([_.yj({is:"ytd-shorts"})],Lp);_.A$.registerService(_.$t3,Lp);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("JzFVk");
var tnj;var N8v;var dh=function(){return _.w.apply(this,arguments)||this};
_.h(dh,_.w);dh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
dh.prototype.computeBlueBottomLink=function(D){return D};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dh.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.bottomIcon)"}),_.z("design:type",String)],dh.prototype,"bottomIcon",void 0);
_.V([_.n({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.z("design:type",Boolean)],dh.prototype,"enableBlueBottomLink",void 0);_.V([_.yj({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],dh);
_.G(dh,"ytd-web-answer-renderer",function(){if(N8v!==void 0)return N8v;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return N8v=D},{mode:_.Wc("kevlar_poly_si_batch_j035")?1:2});var YzJ;var R$=function(){var D=_.w.apply(this,arguments)||this;D.hasChipBar=!1;return D};
_.h(R$,_.w);R$.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}}};
R$.prototype.computeHasChipBar=function(D){return!(D==null||!D.chipBar)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],R$.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.z("design:type",Object)],R$.prototype,"hasChipBar",void 0);_.V([_.yj({is:"ytd-search-header-renderer",disableElementRegistration:!0})],R$);
_.G(R$,"ytd-search-header-renderer",function(){if(YzJ!==void 0)return YzJ;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return YzJ=D},{mode:1});var ywz;var l_=function(){return _.w.apply(this,arguments)||this};
_.h(l_,_.w);l_.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],l_.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-page-continuation"})],l_);
_.G(l_,"ytd-page-continuation",function(){if(ywz!==void 0)return ywz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ywz=D},{mode:1});var nUB;var weD;var F52;var ZiU=function(){return _.w.apply(this,arguments)||this};
_.h(ZiU,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ZiU.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ZiU.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],ZiU);
_.G(ZiU,"ytd-watch-card-one-vs-one-event",function(){if(F52!==void 0)return F52;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return F52=D},{mode:1});var G3H=function(){return _.w.apply(this,arguments)||this};
_.h(G3H,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],G3H.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],G3H.prototype,"data",void 0);_.V([_.yj({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],G3H);
_.G(G3H,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(weD!==void 0)return weD;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return weD=D},{mode:1});var VnJ;var T8m=function(){return _.w.apply(this,arguments)||this};
_.h(T8m,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],T8m.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],T8m.prototype,"data",void 0);_.V([_.yj({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],T8m);
_.G(T8m,"ytd-banner-and-box-hero-image-renderer",function(){if(VnJ!==void 0)return VnJ;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return VnJ=D},{mode:1});var HiB;var Dv=function(){var D=_.w.apply(this,arguments)||this;D.modern=_.b("web_modern_buttons");return D};
_.h(Dv,_.w);Dv.prototype.computeIcon=function(){var D,C,X=(D=this.data)==null?void 0:(C=D.icon)==null?void 0:C.iconType;if(X)return _.g2(X)};
Dv.prototype.computeButtonShape=function(){var D;return{buttonText:_.Mh((D=this.data)==null?void 0:D.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.$a.Object.defineProperties(Dv.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Dv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Dv.prototype,"modern",void 0);_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dv.prototype,"buttonColor",null);
_.V([_.yj({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Dv);
_.G(Dv,"ytd-call-to-action-button-renderer",function(){if(HiB!==void 0)return HiB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return HiB=D},{mode:1});var JwJ;var Cp=function(){return _.w.apply(this,arguments)||this};
_.h(Cp,_.w);Cp.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.SY(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.XA(this.data.leftThumbnail.thumbnails,216)+")")};
Cp.prototype.onLeftThumbnailChanged=Cp.prototype.onLeftThumbnailChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Cp.prototype,"data",void 0);_.V([_.vr("data.leftThumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cp.prototype,"onLeftThumbnailChanged",null);_.V([_.yj({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Cp);
_.G(Cp,"ytd-collage-hero-image-renderer",function(){if(JwJ!==void 0)return JwJ;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return JwJ=D},{mode:1});var zPD;var Xb=function(){return _.w.apply(this,arguments)||this};
_.h(Xb,_.w);Xb.prototype.computeStyle=function(D){return D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Xb.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],Xb.prototype,"componentStyle",void 0);_.V([_.yj({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Xb);
_.G(Xb,"ytd-single-hero-image-renderer",function(){if(zPD!==void 0)return zPD;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return zPD=D},{mode:1});var jAz;var ci=function(){return _.w.apply(this,arguments)||this};
_.h(ci,_.w);_.S=ci.prototype;
_.S.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:_.b("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.S.computeSubtitle=function(D){if(this.data){var C;if(this.data.upcomingEventData){D=_.Mh(D.subtitle);var X=Number(this.data.upcomingEventData.startTime);isNaN(X)||(C=_.jV(_.xu(D,X)))}else C=D.subtitle;return C}};
_.S.onHeroTap=function(D){D.preventDefault();var C=this.data&&this.data.navigationEndpoint;!C||!_.d$(_.Mz(D),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.d$(_.Mz(D),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.b("kevlar_watchcard_hero_video_renderer_killswitch")?_.lE(this.hostElement,"yt-navigate",{navigationEndpoint:C}):this.ytComponentBehavior.resolveCommand(C))};
_.S.computeHeroTabIndex=function(D){return D&&D.simpleText?-1:0};
_.S.computeHeroRole=function(D){return D&&D.simpleText?"":"link"};
_.S.computeIsReminderButtonPresent=function(D){return!(!D||!D.reminderButton)};
_.S.computeHideBottomItems=function(D){return!(this.computeIsReminderButtonPresent(D)||D.subtitle)};
_.S.dataChanged=function(){var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),C;((C=_.r(D==null?void 0:D.commandMetadata,_.dY))==null?0:C.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D)};
ci.prototype.dataChanged=ci.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ci.prototype,"data",void 0);
_.V([_.n({computed:"computeSubtitle(data)"}),_.z("design:type",String)],ci.prototype,"subtitle",void 0);_.V([_.n({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ci.prototype,"isReminderButtonPresent",void 0);_.V([_.n({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ci.prototype,"hideBottomItems",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ci.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],ci);
_.G(ci,"ytd-watch-card-hero-video-renderer",function(){if(jAz!==void 0)return jAz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jAz=D},{mode:1});var Mnm;var o0=function(){return _.w.apply(this,arguments)||this};
_.h(o0,_.w);_.S=o0.prototype;_.S.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"}}}};
_.S.computeTitleBadges=function(D){return D?[D]:[]};
_.S.computeHeaderStyle=function(D){return D?D.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.S.computeAvatarAriaLabel=function(D){if(D){var C,X,c,W;return(W=(C=D.avatar)==null?void 0:(X=C.accessibility)==null?void 0:(c=X.accessibilityData)==null?void 0:c.label)!=null?W:_.Mh(D==null?void 0:D.title)}};
_.S.computeAvatarHeight=function(D){return D==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.S.computeBadgeRowClass=function(D){return(D==null?0:D[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],o0.prototype,"data",void 0);_.V([_.n({computed:"computeTitleBadges(data.titleBadge)"}),_.z("design:type",Array)],o0.prototype,"titleBadges",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.z("design:type",String)],o0.prototype,"headerStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.z("design:type",String)],o0.prototype,"badgeRowClass",void 0);_.V([_.yj({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],o0);
_.G(o0,"ytd-watch-card-rich-header-renderer",function(){if(Mnm!==void 0)return Mnm;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Mnm=D},{mode:1});var qzm;var fHd;var Wi=function(){return _.w.apply(this,arguments)||this};
_.h(Wi,_.w);Wi.prototype.onMetadataTap=function(D){var C=this.data&&this.data.navigationEndpoint;C&&!_.d$(_.Mz(D),this.hostElement,["A".toString()])&&_.lE(this.hostElement,"yt-navigate",{endpoint:C})};
_.$a.Object.defineProperties(Wi.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 D;if(this.data.upcomingEventData){var C=_.Mh(this.data.subtitle),X=Number(this.data.upcomingEventData.startTime);isNaN(X)||(D=_.jV(_.xu(C,X)))}else D=this.data.subtitle;return D}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wi.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data.style"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wi.prototype,"isCondensed",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wi.prototype,"subtitle",null);
_.V([_.yj({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Wi);
_.G(Wi,"ytd-watch-card-compact-video-renderer",function(){if(fHd!==void 0)return fHd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fHd=D},{mode:1});var dmm;var RP2=function(){return _.w.apply(this,arguments)||this};
_.h(RP2,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],RP2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],RP2.prototype,"data",void 0);_.V([_.yj({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],RP2);
_.G(RP2,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(dmm!==void 0)return dmm;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return dmm=D},{mode:1});var pp=function(){return _.w.apply(this,arguments)||this};
_.h(pp,_.w);pp.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pp.prototype,"ytRendererStamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pp.prototype,"data",void 0);_.V([_.yj({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],pp);
_.G(pp,"ytd-vertical-watch-card-list-renderer",function(){if(qzm!==void 0)return qzm;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qzm=D},{mode:1});var lHm;var Si=function(){var D=_.w.apply(this,arguments)||this;D.ariaExpanded="false";return D};
_.h(Si,_.w);_.S=Si.prototype;_.S.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.S.dataChanged=function(){var D;this.currentSeasonIndex=((D=this.data)==null?void 0:D.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.S.computeEpisodesInfo=function(D,C,X){if(D!==void 0&&C.length===D.length)return D[X]};
_.S.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.S.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.S.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.S.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.S.getUppercaseSimpleString=function(D){return this.ytRendererBehavior.getSimpleString(D).toUpperCase()};
_.S.updateCurrentSeasonIndexFromBinding=function(D){this.currentSeasonIndex=D.detail.value};
Si.prototype.onIronOverlayClosed=Si.prototype.onIronOverlayClosed;Si.prototype.currentSeasonIndexChanged=Si.prototype.currentSeasonIndexChanged;Si.prototype.dataChanged=Si.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Si.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",String)],Si.prototype,"label",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],Si.prototype,"currentSeasonIndex",void 0);_.V([_.n({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.z("design:type",Object)],Si.prototype,"episodesInfo",void 0);_.V([_.n({value:"false"}),_.z("design:type",Object)],Si.prototype,"ariaExpanded",void 0);_.V([_.kn("#lists"),_.z("design:type",Object)],Si.prototype,"lists",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Si.prototype,"dataChanged",null);_.V([_.bH("currentSeasonIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Si.prototype,"currentSeasonIndexChanged",null);_.V([_.$n("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Si.prototype,"onIronOverlayClosed",null);
_.V([_.yj({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Si);
_.G(Si,"ytd-watch-card-section-dropdown-renderer",function(){if(lHm!==void 0)return lHm;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return lHm=D},{mode:1});var D6U;var Ui=function(){var D=_.w.apply(this,arguments)||this;D.isSearch=!1;return D};
_.h(Ui,_.w);Ui.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ui.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Ui.prototype,"isSearch",void 0);_.V([_.yj({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Ui);
_.G(Ui,"ytd-watch-card-section-sequence-renderer",function(){if(D6U!==void 0)return D6U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return D6U=D},{mode:1});var Cqm=_.F(function(D){return _.A("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.A(_.BX,{data:function(){return D.data().ctaButton}},{buttonViewModel:_.Ze}),_.A(_.QG,{text:function(){return D.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"wn");
Cqm.idomCompat=!0;_.CI(Cqm,"ytd-button-banner-view-model",{props:{data:_.Bm}});var gG=function(){var D=_.w.apply(this,arguments)||this;D.isSearch=!1;return D};
_.h(gG,_.w);
gG.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],gG.prototype,"rounded",void 0);_.V([_.n(),_.z("design:type",Object)],gG.prototype,"isSearch",void 0);
_.V([_.yj({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],gG);
_.G(gG,"ytd-universal-watch-card-renderer",function(){if(nUB!==void 0)return nUB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return nUB=D},{mode:1});var X2j;_.CI(_.F(function(D){var C=D.data;var X;D=!((X=_.iX().resolve(_.vK(_.Hc)))==null||!X());X={};return _.A("overview-message-view-model",{class:_.g$("ytwOverviewMessageViewModelHost",(X.ytwOverviewMessageViewModelDarkBackground=D,X.ytwOverviewMessageViewModelLightBackground=!D,X))},_.A(_.v,{cond:function(){return C().primaryImage},
then:function(c){return _.A(_.M_,{data:c,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.A(_.v,{cond:function(){return C().primaryText},
then:function(){return _.A("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.A(_.QG,{text:function(){return C().primaryText}}))}}),_.A(_.v,{cond:function(){return C().secondaryText},
then:function(){return _.A("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.A(_.QG,{text:function(){return C().secondaryText}}))}}))},"xn"),"overview-message-view-model",{props:{data:_.Bm}});_.CI(_.bhG,"ytd-overview-answer-view-model",{props:{data:_.Bm}});var a0=function(){return _.w.apply(this,arguments)||this};
_.h(a0,_.w);a0.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"}}}};
a0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],a0.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],a0.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],a0.prototype,"isSearch",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],a0);
_.G(a0,"ytd-secondary-search-container-renderer",function(){if(X2j!==void 0)return X2j;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return X2j=D},{mode:1});var cUd;var I0=function(){var D=_.w.apply(this,arguments)||this;D.renderSecondarySearchContainer=!1;D.isSearch=!1;return D};
_.h(I0,_.w);_.S=I0.prototype;_.S.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.S.created=function(){var D=this;this.boundStampSecondarySearchContainerIfFits=function(){D.stampSecondarySearchContainerIfFits()};
_.M6("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.S.computeIsSearchFrictionPage=function(D){var C,X,c,W,p;D=D==null?void 0:(C=D.primaryContents)==null?void 0:(X=C.sectionListRenderer)==null?void 0:(c=X.contents)==null?void 0:(W=c[0])==null?void 0:(p=W.itemSectionRenderer)==null?void 0:p.contents;if(!D)return!1;C=_.U(D);for(X=C.next();!X.done;X=C.next())if(c=void 0,(c=X.value)==null?0:c.searchFrictionViewModel)return!0;return!1};
_.S.computeShowSecondaryColumn=function(D,C){return!!(C&&C.secondaryContents&&D)};
_.S.activeChanged=function(){var D=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Pr(this,this.debounceStampSecondarySearchContainerIfFits)),_.TA(function(){D.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Pr(this,this.debounceStampSecondarySearchContainerIfFits))};
_.S.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.S.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.S.debounceStampSecondarySearchContainerIfFits=function(){_.Hr(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.S.onRetrieveLocation=function(D,C){C.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);D.stopPropagation()};
_.S.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
I0.prototype.dataChanged=I0.prototype.dataChanged;I0.prototype.onRetrieveLocation=I0.prototype.onRetrieveLocation;I0.prototype.persistentGuideChanged=I0.prototype.persistentGuideChanged;I0.prototype.activeChanged=I0.prototype.activeChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],I0.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],I0.prototype,"ironResizableBehavior",void 0);_.V([_.n(),_.z("design:type",Boolean)],I0.prototype,"active",void 0);_.V([_.n(),_.z("design:type",Object)],I0.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],I0.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.bX("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],I0.prototype,"biggerThumbsStyle",void 0);_.V([_.n(),_.z("design:type",Object)],I0.prototype,"renderSecondarySearchContainer",void 0);_.V([_.n({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.z("design:type",Boolean)],I0.prototype,"showSecondaryColumn",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.z("design:type",Boolean)],I0.prototype,"isSearchFrictionPage",void 0);
_.V([_.n(),_.z("design:type",Object)],I0.prototype,"isSearch",void 0);_.V([_.vr("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I0.prototype,"activeChanged",null);_.V([_.vr("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I0.prototype,"persistentGuideChanged",null);
_.V([_.$n("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],I0.prototype,"onRetrieveLocation",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I0.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],I0);
_.G(I0,"ytd-two-column-search-results-renderer",function(){if(cUd!==void 0)return cUd;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return cUd=D},{mode:1});var Oi=function(){var D=_.w.apply(this,arguments)||this;D.hasSearchHeader=!1;D.hasSecondaryContent=!1;D.hasBiggerThumbs=_.b("enable_desktop_search_bigger_thumbs");D.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return D};
_.h(Oi,_.w);_.S=Oi.prototype;_.S.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:_.RD(["aa","eocs"])}}};
_.S.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.S.loadPage_=function(D){this.initCsi();D&&(this.data=D,_.M6("REFINEMENTS_TUPLE",["FromSearchResponse",D.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ii(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.S.initCsi=function(){_.wd6("results",["ol","cpt"])};
_.S.updateTitle=function(){var D=_.DH(window.location.href,"q");D||(D=_.DH(window.location.href,"search_query"));_.lE(this.hostElement,"yt-update-title",D||"")};
_.S.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.S.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.b("web_srp_data_changed_terminate_imp_killswitch")||_.DS(this.hostElement,"yt-terminate-video-preview-action")};
_.S.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.S.computeHasSearchHeader=function(D){var C;D=D==null?void 0:(C=D.header)==null?void 0:C.searchHeaderRenderer;return!!D&&(!!D.searchFilterButton||!!D.chipBar)};
_.S.computeHasSecondaryContent=function(D){var C,X;return!!(D==null?0:(C=D.contents)==null?0:(X=C.twoColumnSearchResultsRenderer)==null?0:X.secondaryContents)};
_.$a.Object.defineProperties(Oi,{template:{configurable:!0,enumerable:!0,get:function(){if(tnj===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);tnj=D}D=tnj;return D}}});
Oi.prototype.onReloadContinuationFinish=Oi.prototype.onReloadContinuationFinish;Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.V([_.m(_.Ca.YtPageBehavior),_.z("design:type",Object)],Oi.prototype,"ytPageBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Oi.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],Oi.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Oi.prototype,"data",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],Oi.prototype,"monitorScroll",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Oi.prototype,"hasSearchHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Oi.prototype,"hasSecondaryContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Oi.prototype,"hasBiggerThumbs",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oi.prototype,"dataChanged",null);
_.V([_.$n("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oi.prototype,"onReloadContinuationFinish",null);_.V([_.yj({is:"ytd-search"})],Oi);_.A$.registerService(_.P0h,Oi);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("h8y2qb");
var Zyz=function(D){if(D=_.XWF(D)){var C;(C=D.sources)!=null&&C[0]?(C=_.o4r(D),C=C<1?"VERTICAL":C>1?"HORIZONTAL":"SQUARE"):C=void 0;return C}},XG=function(D){_.nV.call(this,"upload");
this.opts.query=D},Voz=function(D,C){return _.A(GvD,{data:D,
onYtNavigate:C})},TVm=function(D,C){return _.aI(D.entities,"pageHeaderEntity",C)},JpD=function(D,C){return D.map(function(X){if(X.tabRenderer)return HyD(X.tabRenderer);
if(X.expandableTabRenderer&&C){var c=X.expandableTabRenderer;return{customTabRenderable:function(){return C(c)}}}return{}})},HyD=function(D){return{identifier:D.tabIdentifier,
aTagConfig:_.nb({innertubeCommand:D.endpoint,forceNewState:!0}),title:D.title,selected:D.selected,disabled:D.unselectable,icon:D.icon}},zeU=function(D){return _.oI({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:D})},jV6=function(D){if(!_.cX(document,"gtm-noscript")){var C=document.createElement("noscript");
C.id="gtm-noscript";C.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+D+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(C)}};_.WT(XG,_.nV);XG.prototype.JSC$10239_setLabel=function(D){XG.superClass_.JSC$10239_setLabel.call(this,D);return this};
XG.prototype.addUploadMetadata=function(D,C){XG.superClass_.addUploadMetadata.call(this,D,C);return this};var Mov=function(D){if(D!=="youtubebanner"&&D!=="youtube-channel-banner")throw Error("Ro");XG.call(this,D)};
_.h(Mov,XG);Mov.prototype.JSC$10239_setLabel=function(D){XG.prototype.JSC$10239_setLabel.call(this,D);return this};
Mov.prototype.addUploadMetadata=function(D,C){XG.prototype.addUploadMetadata.call(this,D,C);return this};var qFJ=[_.lR,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(D){_.kr(D).path[0]!==this&&(this.resetLayout(),D.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var D=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Kr(this._layoutDebouncer,_.hv,D);_.hx(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var D=this;requestAnimationFrame(function(){D.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(D){this.resizerShouldNotify(D)&&this._notifyDescendant(D)},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 fIf=[_.SGk,{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(D,C){var X=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[D];if(!X)throw new ReferenceError(this._getUndefinedMsg(D));D=this._boundEffect(X,C||{});D.setUp();return D},
_effectsChanged:function(D,C,X){this._tearDownEffects();D&&X&&(D.split(" ").forEach(function(c){var W;c!==""&&((W=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[c])?this._effects.push(this._boundEffect(W,C[c])):console.warn(this._getUndefinedMsg(c)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(D,C){C=C||{};var X=parseFloat(C.startsAt||0),c=parseFloat(C.endsAt||1),W=c-X,p=function(){};
c=X===0&&c===1?D.run:function(g,a){D.run.call(this,Math.max(0,(g-X)/W),a)};
return{setUp:D.setUp?D.setUp.bind(this,C):p,run:D.run?c.bind(this):p,tearDown:D.tearDown?D.tearDown.bind(this):p}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(D){D.setUp()!==!1&&this._effectsRunFn.push(D.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(D){D.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(D,C){this._effectsRunFn&&this._effectsRunFn.forEach(function(X){X(D,C)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var D=this._clampedScrollTop;this._updateScrollState(D);this.threshold>0&&this._setThresholdTriggered(D>=this.threshold)}},
_getDOMRef:function(D){console.warn("_getDOMRef","`"+D+"` is undefined")},
_getUndefinedMsg:function(D){return"Scroll effect `"+D+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+D+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("So`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(D){var C={};D=parseFloat(D.scalar);C.background=this._getDOMRef("background");C.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");C.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");C.deltaBg=C.backgroundFrontLayer.offsetHeight-C.background.offsetHeight;C.deltaBg===0?(isNaN(D)&&(D=.8),C.deltaBg=(this._dHeight||0)*D):(isNaN(D)&&(D=
1),C.deltaBg*=D);this._fxParallaxBackground=C},
run:function(D){var C=this._fxParallaxBackground;this.transform("translate3d(0px, "+C.deltaBg*Math.min(1,D)+"px, 0px)",C.backgroundFrontLayer);C.backgroundRearLayer&&this.transform("translate3d(0px, "+C.deltaBg*Math.min(1,D)+"px, 0px)",C.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var d3$;var Rem;var lId=function(){};
_.S=lId.prototype;_.S._scrollTargetChanged=function(){};
_.S.scroll=function(){};
_.S._isValidScrollTarget=function(){};
_.S._toggleScrollListener=function(){};
_.S.toggleScrollListener=function(){};
_.S.createEffect=function(){};
_.S._effectsChanged=function(){};
_.S._layoutIfDirty=function(){};
_.S._boundEffect=function(){};
_.S._setUpEffect=function(){};
_.S._tearDownEffects=function(){};
_.S._runEffects=function(){};
_.S._scrollHandler=function(){};
_.S._scrollStateChanged=function(){};
_.S._getUndefinedMsg=function(){};
_.S.notifyResize=function(){};
_.S.assignParentResizable=function(){};
_.S.stopResizeNotificationsFor=function(){};
_.S._subscribeIronResize=function(){};
_.S._unsubscribeIronResize=function(){};
_.S.resizerShouldNotify=function(){};
_.S._onDescendantIronResize=function(){};
_.S._fireResize=function(){};
_.S._onIronRequestResizeNotifications=function(){};
_.S._parentResizableChanged=function(){};
_.S._notifyDescendant=function(){};
_.S._requestResizeNotifications=function(){};
_.S._findParent=function(){};
_.S._appResetLayoutHandler=function(){};
_.S.resetLayout=function(){};
_.S._notifyLayoutChanged=function(){};
_.S._notifyDescendantResize=function(){};
_.S._setThresholdTriggered=function(){};
lId=_.mZ({_template:function(){if(Rem!==void 0)return Rem;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;d3$===void 0&&(d3$=document.createElement("template"));var c=d3$;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Rem=D},
is:"tp-yt-app-header",behaviors:[fIf,qFJ],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 D=_.kr(this.$.slot).getDistributedNodes(),C=0,X;X=D[C];C++)if(X.nodeType===Node.ELEMENT_NODE)if(X.hasAttribute("sticky")){this._stickyElRef=X;break}else this._stickyElRef||(this._stickyElRef=X);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var D=this._clampedScrollTop,C=this._height===0||D===0,X=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;C||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();C?this._updateScrollState(D,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=X}},
_updateScrollState:function(D,C){if(this._height!==0){var X=0,c=this._top;var W=this._maxHeaderTop;var p=D-this._lastScrollTop,g=Math.abs(p),a=D>this._lastScrollTop,O=performance.now();this._mayMove()&&(X=this._clamp(this.reveals?c+p:D,0,W));D>=this._dHeight&&(X=this.condenses&&!this.fixed?Math.max(this._dHeight,X):X,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&g<100){if(O-this._initTimestamp>300||this._wasScrollingDown!==a)this._initScrollTop=D,this._initTimestamp=O;D>=W&&
(Math.abs(this._initScrollTop-D)>30||g>10?(a&&D>=W?X=W:!a&&D>=this._dHeight&&(X=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((X-c)/(p/(O-this._lastTimestamp)),0,300)+"ms"):X=this._top)}W=this._dHeight===0?D>0?1:0:X/this._dHeight;C||(this._lastScrollTop=D,this._top=X,this._wasScrollingDown=a,this._lastTimestamp=O);if(C||W!==this._progress||c!==X||D===0)this._progress=W,this._runEffects(W,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(D){this.translate3d(0,-D+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&D>=this._stickyElTop?Math.min(D,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(D,C,X){return Math.min(X,Math.max(C,D))},
_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),_.kr(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(D){switch(D){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.kr(this).querySelector("[main-title]");case "condensedTitle":return _.kr(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Ddz;var Ccm;_.mZ({_template:function(){if(Ccm!==void 0)return Ccm;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;Ddz===void 0&&(Ddz=document.createElement("template"));var c=Ddz;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return Ccm=D},
is:"tp-yt-app-header-layout",behaviors:[qFJ],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.kr(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var D=this.header;if(this.isAttached&&D){this.$.wrapper.classList.remove("initializing");D.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)D.style.left="",D.style.right="";else{var C=this.getBoundingClientRect(),X=document.documentElement.clientWidth-C.right;D.style.left=C.left+"px";D.style.right=X+"px"}C=this.$.contentContainer.style;X=D.offsetHeight;D.fixed&&!D.condenses&&this.hasScrollingRegion?
(C.marginTop=X+"px",C.paddingTop=""):(C.paddingTop=X+"px",C.marginTop="")}}});var XIv=new _.A7("alertCommand");var cRd=new _.A7("manageLabsStateCommand");var oT$=new _.A7("inlineFormRenderer");var Wvj=new _.A7("playlistSidebarPrimaryInfoRenderer");var pIN=new _.A7("productDetailsThumbnailRenderer"),Se6=new _.A7("productDetailsVariantRenderer"),UdH=new _.A7("productDetailsVariantOptionRenderer"),gTH=new _.A7("productDetailsOffersContainerRenderer"),a1D=new _.A7("productDetailsOfferRenderer");var I12=new _.A7("shoppingFlaggingRenderer");var OFH=new _.A7("playlistBylineRenderer");var ARv=new _.A7("insertChannelTabCommand");var cN=function(){return _.Qj.apply(this,arguments)||this};
_.h(cN,_.Qj);_.S=cN.prototype;_.S.activeChanged=function(){if(this.active){var D=_.SY(this.hostElement).querySelector("#header");D&&_.lE(D,"iron-resize");window.addEventListener("scroll",_.Pr(this,this.onScroll))}else window.removeEventListener("scroll",_.Pr(this,this.onScroll)),_.lE(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.S.guideVisibleChanged=function(){var D=_.SY(this.hostElement).querySelector("#header");D&&_.lE(D,"iron-resize")};
_.S.onScroll=function(){var D=this;_.Hr(this,"onScroll",function(){var C=_.SY(D.hostElement).querySelector("#header");C&&C.polymerController&&(C=C.polymerController.getScrollState().progress===1?"standard":"seamed",_.lE(D.hostElement,"yt-request-panel-mode-change",{mode:C}))},10)};
_.S.tabsChanged=function(){if(this.tabs){for(var D=null,C=0,X=this.tabs.length;C<X;++C){var c=this.tabs[C].tabRenderer;if(c&&c.selected){D=C;break}}this.selected=D}};
_.S.onTabsActivate=function(D){_.lE(this.hostElement,"yt-navigate",{endpoint:this.tabs[D.detail.selected].tabRenderer.endpoint})};
cN.prototype.tabsChanged=cN.prototype.tabsChanged;cN.prototype.guideVisibleChanged=cN.prototype.guideVisibleChanged;cN.prototype.activeChanged=cN.prototype.activeChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],cN.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.z("design:type",Array)],cN.prototype,"tabs",void 0);
_.V([_.n(),_.z("design:type",Object)],cN.prototype,"selected",void 0);_.V([_.n(),_.z("design:type",Boolean)],cN.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],cN.prototype,"disableHeaderFluidWidth",void 0);_.V([_.vr("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cN.prototype,"activeChanged",null);
_.V([_.vr("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cN.prototype,"guideVisibleChanged",null);_.V([_.vr("tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cN.prototype,"tabsChanged",null);_.V([_.Br()],cN);var Pcj=[_.f.YtRendererBehavior,_.kc.YtdGuideStateAwareBehavior,cN.prototype];var $dN=2/3,vTv=_.Ia(130749),iFD=function(D,C){var X=this;this.element=D;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:$dN,moveAction:function(c){X.moveAction(c)},
triggerAction:function(){X.element.isReloading=!0;_.V6(_.iO(),{visualElement:vTv});_.I3.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:X.element}})}}}};
_.Tm(_.iO(),vTv,this.layer);this.gesture=new _.yV(D,C,this.refreshConfig,"pan-down");this.attach()};
_.S=iFD.prototype;_.S.attach=function(){this.gesture.attach()};
_.S.detach=function(){this.gesture.detach()};
_.S.reset=function(){this.element.close()};
_.S.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.S.moveAction=function(D){this.element.rotation=D*360};var kyD=_.Ia(130750),QhB=function(D,C,X,c,W){var p=this;this.element=D;this.parent=X;this.channelHeader=c;this.ytdReduxDispatch=W;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){p.tabsStartAtInPx=p.channelHeader.clientHeight-48;var g;(g=p.selectedTab)!=null&&g.title&&(g=_.iX().resolve(_.vK(_.lu)))&&(g=g.getCurrentPage(),p.lastVisitedTabScrollPosition=g.getScrollTop(),p.previousTab&&
((p.lastVisitedTabScrollPosition===void 0?0:p.lastVisitedTabScrollPosition<p.channelHeader.clientHeight-48)?p.scrollPositionForTabs.has(p.selectedTab.title)&&p.scrollPositionForTabs.delete(p.selectedTab.title):p.scrollPositionForTabs.set(p.selectedTab.title,g.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:uJj(),triggerAction:function(){p.navigate(p.previousTab)},
moveAction:function(g,a){p.moveAction(g,a)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-uJj(),triggerAction:function(){p.navigate(p.nextTab)},
moveAction:function(g,a){p.moveAction(g,a)}}}};
_.Tm(_.iO(),kyD,this.layer);this.gesture=new _.yV(D,C,this.tabConfig);this.attach()};
_.S=QhB.prototype;_.S.attach=function(){this.gesture.attach()};
_.S.detach=function(){this.gesture.detach()};
_.S.tabsChanged=function(D){if(D){var C=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;D=_.U(D);for(var X=D.next();!X.done;X=D.next()){X=X.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=X);var c=void 0;if((c=X)==null?0:c.selected)this.previousTab=C,this.selectedTab=X;C=X}C=this.gesture;D=this.getConfig();C.config=D;this.scrollPositionNeedsUpdate=!0}};
_.S.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.S.moveAction=function(D,C){if(!this.tabsElement){var X;this.tabsElement=(X=this.parent.header)==null?void 0:X.tabsElement;C==="right"&&this.previousTab?(X=this.previousTab.endpoint,_.iFN(_.iX().resolve(_.hT),X,{},"")):C==="left"&&this.nextTab&&(X=this.nextTab.endpoint,_.iFN(_.iX().resolve(_.hT),X,{},""));if(!this.tabsElement)return}X=this.tabsElement._pos;C==="right"&&(D*=-1);this.tabsElement._positionBar(X.width,X.left*1+X.width*D)};
var uJj=function(){var D,C;return(C=(D=_.iX().resolve(_.lu).getCurrentPage())==null?void 0:D.clientWidth)!=null?C:0};
QhB.prototype.navigate=function(D){this.element.data=void 0;if(D=D==null?void 0:D.endpoint)this.ytdReduxDispatch(zeU(!0)),_.V6(_.iO(),{visualElement:kyD}),_.I3.instance.resolveCommand({navigateAction:{endpoint:D}},{form:{element:this.element}})};var Bof;var bF$;var o$=function(){return _.w.apply(this,arguments)||this};
_.h(o$,_.w);o$.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],o$.prototype,"data",void 0);_.V([_.yj({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],o$);
_.G(o$,"ytd-labs-edit-renderer",function(){if(bF$!==void 0)return bF$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bF$=D},{mode:1});var rR2;var WN=function(){var D=_.w.apply(this,arguments)||this;D.dark=!1;D.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(WN,_.w);WN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WN.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.setBackgroundImage(D);this.dark=D};
WN.prototype.onDarkModeToggledAction=function(D){this.setBackgroundImage(D);this.dark=D};
WN.prototype.setBackgroundImage=function(D){_.Os(this.hostElement,{"--yt-labs-header-background":"url("+(D?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],WN.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],WN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],WN.prototype,"dark",void 0);
_.V([_.yj({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],WN);
_.G(WN,"ytd-labs-header-renderer",function(){if(rR2!==void 0)return rR2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rR2=D},{mode:1});var KvU;var pa=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return D};
_.h(pa,_.w);pa.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"}}}}}};
pa.prototype.onYtToggleButton=function(D){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",D.detail.toggled)};
pa.prototype.onManageLabsState=function(D){if(D=_.r(D,cRd))D.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?D.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&D.labsItemId===this.data.labsItemId&&(D.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.DS(this.hostElement,"yt-check-labs-opted-in-state").some(function(C){return C})&&this.data.confirmationDialogCommand?_.o7(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.iX().resolve(_.uX).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&D.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.iX().resolve(_.uX).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
pa.prototype.onCheckLabsOptedInState=function(){var D=this.get("data.primaryButton.toggleButtonRenderer");return D?D.isToggled:!1};
_.$a.Object.defineProperties(pa.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
pa.prototype.onYtToggleButton=pa.prototype.onYtToggleButton;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pa.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pa.prototype,"itemStyle",null);_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pa.prototype,"onYtToggleButton",null);_.V([_.yj({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],pa);
_.G(pa,"ytd-labs-item-renderer",function(){if(KvU!==void 0)return KvU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return KvU=D},{mode:1});var hij;var xdm;var Lvv=function(){return _.w.apply(this,arguments)||this};
_.h(Lvv,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Lvv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Lvv.prototype,"data",void 0);_.V([_.yj({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Lvv);
_.G(Lvv,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(xdm!==void 0)return xdm;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return xdm=D},{mode:1});var shv;var S4=function(){return _.w.apply(this,arguments)||this};
_.h(S4,_.w);S4.prototype.observeSuperchatChip=function(){if(this.data){var D={"--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)};_.Os(this.hostElement,D)}};
S4.prototype.colorFromDecimal=function(D){return _.e_(Number(D||0))};
S4.prototype.observeSuperchatChip=S4.prototype.observeSuperchatChip;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],S4.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"observeSuperchatChip",null);_.V([_.yj({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],S4);
_.G(S4,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(shv!==void 0)return shv;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return shv=D},{mode:1});var Ua=function(){return _.w.apply(this,arguments)||this};
_.h(Ua,_.w);Ua.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"}}}};
_.$a.Object.defineProperties(Ua.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.P9),_.z("design:type",Object)],Ua.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ua.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ua.prototype,"hideMessageBlock",null);
_.V([_.yj({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Ua);
_.G(Ua,"ytd-live-chat-history-entry-renderer",function(){if(hij!==void 0)return hij;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hij=D},{mode:1});var mdB;var eif=function(){return _.w.apply(this,arguments)||this};
_.h(eif,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],eif.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],eif.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],eif);
_.G(eif,"ytd-channel-options-renderer",function(){if(mdB!==void 0)return mdB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mdB=D},{mode:1});var ET$;var gh=function(){return _.w.apply(this,arguments)||this};
_.h(gh,_.w);gh.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gh.prototype,"data",void 0);_.V([_.yj({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],gh);
_.G(gh,"ytd-settings-email-item-renderer",function(){if(ET$!==void 0)return ET$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ET$=D},{mode:1});var tpd;var a$=function(){return _.w.apply(this,arguments)||this};
_.h(a$,_.w);a$.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"}}}};
a$.prototype.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
a$.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.$a.Object.defineProperties(a$.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],a$.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],a$.prototype,"expanded",void 0);_.V([_.e("expanded"),_.z("design:type",String),_.z("design:paramtypes",[])],a$.prototype,"emailListExpanded",null);
_.V([_.kn("#options"),_.z("design:type",Object)],a$.prototype,"options",void 0);_.V([_.yj({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],a$);
_.G(a$,"ytd-settings-email-list-renderer",function(){if(tpd!==void 0)return tpd;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tpd=D},{mode:1});var NoH;var I$=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.h(I$,_.w);I$.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"}}}};
I$.prototype.handleSignalActionSubmitForm=function(){var D,C=(D=this.formRenderer)==null?void 0:D.getForm();C&&this.data.serviceEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},C,{element:this.hostElement})})};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],I$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],I$.prototype,"data",void 0);_.V([_.kn("yt-form-renderer"),_.z("design:type",Object)],I$.prototype,"formRenderer",void 0);
_.V([_.yj({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],I$);
_.G(I$,"ytd-settings-gaia-link-renderer",function(){if(NoH!==void 0)return NoH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return NoH=D},{mode:1});var Ye2;_.CI(_.uM,"basic-content-view-model",{props:{data:_.R3,className:_.R3}});var Oa=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return D};
_.h(Oa,_.w);Oa.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Xrw()&&this.set("data.hidden",!1)};
Oa.prototype.onSwitchReady=function(){var D=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.b("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.CHt().then(function(C){C&&(Notification.permission==="default"?D.set("data.hidden",!1):Notification.permission==="granted"&&_.UR("NotificationsDisabled").then(function(X){X||_.DS(D.hostElement,"yt-toggle-settings-switch",[D.data.id,!X]);D.set("data.hidden",!1)}).catch(function(){}))})})};
Oa.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
Oa.prototype.handleUpdateOptionsCommand=function(D){(D=_.r(D,_.ulq))&&this.data&&this.data.id===D.id&&(this.set("data.hidden",D.hidden),D.text!==void 0&&this.set("data.text",D.text),D.clearOptions&&this.set("data.options",[]))};
Oa.prototype.onSwitchReady=Oa.prototype.onSwitchReady;Oa.prototype.dataChanged=Oa.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Oa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Oa.prototype,"data",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oa.prototype,"dataChanged",null);_.V([_.$n("yt-settings-switch-ready"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oa.prototype,"onSwitchReady",null);_.V([_.yj({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Oa);
_.G(Oa,"ytd-settings-options-renderer",function(){if(Ye2!==void 0)return Ye2;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ye2=D},{mode:1});var yR6;var Aa=function(){return _.w.apply(this,arguments)||this};
_.h(Aa,_.w);Aa.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Aa.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Aa.prototype.onYtExpanderMoreTapped=Aa.prototype.onYtExpanderMoreTapped;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Aa.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Aa.prototype,"data",void 0);
_.V([_.$n("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Aa.prototype,"onYtExpanderMoreTapped",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Aa);
_.G(Aa,"ytd-product-details-description-renderer",function(){if(yR6!==void 0)return yR6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return yR6=D},{mode:1});var nTB;var PN=function(){var D=_.w.apply(this,arguments)||this;D.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";D.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";D.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";D.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return D};
_.h(PN,_.w);PN.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$a.Object.defineProperties(PN.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:(C=D.offerData)==null?void 0:C.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?void 0:D.purchaseButtonRenderers)!==void 0&&((C=this.data)==null?void 0:C.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.formattedFromMerchantText)&&(!((C=this.data)==null||!C.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],PN.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],PN.prototype,"data",void 0);
_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],PN.prototype,"shippingIcon",void 0);_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],PN.prototype,"shippingAddressIcon",void 0);_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],PN.prototype,"googleGuaranteeIcon",void 0);
_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],PN.prototype,"returnPolicyIcon",void 0);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],PN.prototype,"showAdditionalFees",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],PN.prototype,"showMultiPurchaseButtons",null);
_.V([_.e("data","showMultiPurchaseButtons"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],PN.prototype,"showPurchaseData",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],PN);
_.G(PN,"ytd-product-details-hero-offer-renderer",function(){if(nTB!==void 0)return nTB;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return nTB=D},{mode:1});var wI6;var FvU;var $v=function(){return _.w.apply(this,arguments)||this};
_.h($v,_.w);_.S=$v.prototype;_.S.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.S.onKeyDown=function(D){D=D.keyCode;D!==13&&D!==32||this.handleSelection()};
_.S.onMouseEnterImage=function(){var D;((D=this.data)==null?void 0:D.thumbnailDetails)!==void 0&&_.Ct(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.S.onMouseLeaveImage=function(){_.Ct(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.S.handleSelection=function(){this.data&&_.lE(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.$a.Object.defineProperties($v.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$v.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$v.prototype,"isSelected",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],$v);
_.G($v,"ytd-product-details-thumbnail-renderer",function(){if(FvU!==void 0)return FvU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return FvU=D},{mode:1});var vN=function(){var D=_.w.apply(this,arguments)||this;var C={};D.actionMap=(C["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",C["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",C);D.selectedThumbnailIndex=0;D.selectItem=function(X){X.target.onKeyDown(X)};
return D};
_.h(vN,_.w);_.S=vN.prototype;_.S.handlePreviewImageSelect=function(D){this.hoverThumbnail=D};
_.S.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.S.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.S.onThumbnailSelected=function(D,C){this.selectedThumbnailIndex=C};
_.S.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.S.updateOffset=function(){var D=_.SY(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_()};
_.$a.Object.defineProperties(vN.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.imageRenderer){var C,X;return((C=this.data)==null?void 0:(X=C.imageRenderer)==null?void 0:X.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var D;if((D=this.data)==null?0:D.imageRenderer){var C;return(C=_.r(this.data.imageRenderer[this.selectedThumbnailIndex],pIN))==null?void 0:C.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var D=this,C,X,c,W=(c=(C=this.data)==null?void 0:(X=C.imageRenderer)==null?void 0:X.map(function(p,g){return{productDetailsThumbnailRenderer:Object.assign({},_.r(p,pIN),{index:g,isSelected:g===D.selectedThumbnailIndex})}}))!=null?c:[];
return Object.assign({},this.data,{imageRenderer:W})}}});
vN.prototype.updateOffset=vN.prototype.updateOffset;vN.prototype.dataChanged=vN.prototype.dataChanged;vN.prototype.onThumbnailSelected=vN.prototype.onThumbnailSelected;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Nx.YtdHorizontalListBehavior),_.z("design:type",Object)],vN.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],vN.prototype,"componentBehavior",void 0);_.V([_.m([_.Jy.YtActionHandlerBehavior]),_.z("design:type",Object)],vN.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],vN.prototype,"data",void 0);_.V([_.n({value:"$.items.children"}),_.z("design:type",String)],vN.prototype,"itemsPath",void 0);_.V([_.n({value:3}),_.z("design:type",Number)],vN.prototype,"initialCount",void 0);
_.V([_.kn("#items"),_.z("design:type",Object)],vN.prototype,"items",void 0);_.V([_.n(),_.z("design:type",Object)],vN.prototype,"selectedThumbnailIndex",void 0);_.V([_.n(),_.z("design:type",Object)],vN.prototype,"hoverThumbnail",void 0);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],vN.prototype,"showThumbnails",null);
_.V([_.$n("ytd-product-details-thumbnail-renderer-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Number]),_.z("design:returntype")],vN.prototype,"onThumbnailSelected",null);_.V([_.e("data","selectedThumbnailIndex","hoverThumbnail"),_.z("design:type",Object),_.z("design:paramtypes",[])],vN.prototype,"thumbnailDetails",null);_.V([_.e("data","selectedThumbnailIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],vN.prototype,"populatedData",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vN.prototype,"dataChanged",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vN.prototype,"updateOffset",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],vN);
_.G(vN,"ytd-product-details-image-carousel-renderer",function(){if(wI6!==void 0)return wI6;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return wI6=D},{mode:_.Wc("kevlar_poly_si_batch_j079")?1:2});var ZFf;var i_=function(){return _.w.apply(this,arguments)||this};
_.h(i_,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],i_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],i_.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],i_.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],i_);
_.G(i_,"ytd-product-details-offer-renderer",function(){if(ZFf!==void 0)return ZFf;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ZFf=D},{mode:1});var Gyf;var kv=function(){var D=_.w.apply(this,arguments)||this;D.isOffersHidden=!0;return D};
_.h(kv,_.w);kv.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var D,C=_.r((D=this.data)==null?void 0:D.viewOffersButton,_.AF);C&&this.ytRendererBehavior.logExplicitClick(C)};
kv.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.$a.Object.defineProperties(kv.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c;return(X=_.r((D=this.data)==null?void 0:(C=D.offers)==null?void 0:C[0],a1D))==null?void 0:(c=X.offerData)==null?void 0:c.vendorLogoUrl}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],kv.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kv.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],kv.prototype,"isOffersHidden",void 0);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kv.prototype,"firstOfferVendorLogoUrl",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],kv);
_.G(kv,"ytd-product-details-offers-container-renderer",function(){if(Gyf!==void 0)return Gyf;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Gyf=D},{mode:1});var VpH;var To2;var u_=function(){return _.w.apply(this,arguments)||this};
_.h(u_,_.w);u_.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
u_.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Ct(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
u_.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Ct(this,"ytd-product-details-variant-image-unselect")};
_.$a.Object.defineProperties(u_.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 D;return((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?void 0:D.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((C=this.data)==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((X=this.data)==null?void 0:X.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var D;if(((D=this.data)==null?void 0:D.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,C;return this.isUnavailable?(D=this.data)==null?void 0:D.variantOptionUnavailableAccessibilityLabel:(C=this.data)==null?void 0:C.variantOptionAccessibilityLabel}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],u_.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],u_.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],u_.prototype,"displayType",void 0);
_.V([_.e("displayType","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],u_.prototype,"isImageButton",null);_.V([_.e("displayType","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],u_.prototype,"isPillButton",null);_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],u_.prototype,"isActive",null);
_.V([_.e("data"),_.n({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],u_.prototype,"isUnavailable",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],u_.prototype,"thumbnailDetails",null);_.V([_.e("isUnavailable","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],u_.prototype,"accessibilityLabel",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],u_);
_.G(u_,"ytd-product-details-variant-option-renderer",function(){if(To2!==void 0)return To2;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return To2=D},{mode:1});var HFv;var QT=function(){var D=_.w.apply(this,arguments)||this;D.variantsExpanded=!1;D.hideShowMoreLessVariantButton=!0;D.initialized=!1;D.computeVariantsDebouncer=null;D.computeVariants=function(C){C=C===void 0?!1:C;D.variantsExpanded||D.showOptions()||!C||(D.variantsExpanded=!0);if(D.variantsExpanded){C=_.U(D.items.children);for(var X=C.next();!X.done;X=C.next())X.value.hidden=!1}D.initialized=!0};
return D};
_.h(QT,_.w);_.S=QT.prototype;_.S.ready=function(){var D=this;setTimeout(function(){D.computeVariants(!0)})};
_.S.showOptions=function(){for(var D=_.U(this.items.children),C=D.next();!C.done;C=D.next())C.value.hidden=!0;var X=this.container.getBoundingClientRect().width,c=0,W=D=0;C=!1;for(var p=_.U(this.items.children),g=p.next();!g.done;g=p.next()){g=g.value;g.hidden=!1;var a=g.getBoundingClientRect().width;if(c+a<X)c+=a;else if(++W<2)c=a;else break;D+=1;g.hasAttribute("is-active")&&(C=!0)}for(X=D;X<this.items.children.length;X++)this.items.children[X].hidden=!0;this.hideShowMoreLessVariantButton=D===this.items.children.length;
return C};
_.S.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Kr(this.computeVariantsDebouncer,_.Oy.after(100),this.computeVariants)};
_.S.onShowMoreLessVariantsButtonClick=function(){var D;(D=this.data)!=null&&D.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.S.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.$a.Object.defineProperties(QT.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.data)==null?void 0:(C=D.variantOptionRenderers)==null?void 0:C.find(function(p){return _.r(p,UdH).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),c,W;
return(W=(c=_.r(X,UdH))==null?void 0:c.name)!=null?W:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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"}}}});
QT.prototype.debouncedComputeVariants=QT.prototype.debouncedComputeVariants;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],QT.prototype,"componentBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],QT.prototype,"ironResizableBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],QT.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],QT.prototype,"variantsExpanded",void 0);_.V([_.n(),_.z("design:type",Object)],QT.prototype,"hideShowMoreLessVariantButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],QT.prototype,"initialized",void 0);_.V([_.kn("#items"),_.z("design:type",HTMLDivElement)],QT.prototype,"items",void 0);_.V([_.kn("#container"),_.z("design:type",HTMLDivElement)],QT.prototype,"container",void 0);
_.V([_.kn("#more-variants-button"),_.z("design:type",HTMLElement)],QT.prototype,"moreVariantsButton",void 0);_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],QT.prototype,"selectedOptionName",null);_.V([_.vr("data","variantsExpanded"),_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QT.prototype,"debouncedComputeVariants",null);
_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],QT.prototype,"displayType",null);_.V([_.e("displayType"),_.z("design:type",Object),_.z("design:paramtypes",[])],QT.prototype,"variantItemsClassname",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],QT);
_.G(QT,"ytd-product-details-variant-renderer",function(){if(HFv!==void 0)return HFv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return HFv=D},{mode:1});var BN=function(){return _.w.apply(this,arguments)||this};
_.h(BN,_.w);
BN.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"}}}};
_.$a.Object.defineProperties(BN.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(C=_.r((D=this.data)==null?void 0:D.offersContainerRenderer,gTH))==null?void 0:C.offers;return X!==void 0&&(X==null?void 0:X.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((X=(D=this.data)==null?void 0:(C=D.variants)==null?void 0:C.map(function(c){var W,p;c=(p=(W=_.r(c,Se6))==null?void 0:W.variantOptionRenderers)==null?void 0:p.find(function(a){var O;return((O=_.r(a,UdH))==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var g;return(g=_.r(c,UdH))==null?void 0:g.name}).filter(function(c){return typeof c==="string"}))!=null?X:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var D,C,X,c=(C=_.r((D=this.data)==null?void 0:D.shoppingFlaggingRenderer,I12))==null?void 0:(X=C.reportButton)==null?void 0:X.buttonRenderer;if(c)return{text:c.text,command:c.command,icon:{iconType:"FLAG"},accessibilityData:c.accessibilityData,trackingParams:c.trackingParams,loggingDirectives:c.loggingDirectives}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],BN.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],BN.prototype,"data",void 0);_.V([_.kn("#image-carousel-renderer"),_.z("design:type",Object)],BN.prototype,"imageCarouselRenderer",void 0);
_.V([_.kn("#hero-offer-renderer"),_.z("design:type",Object)],BN.prototype,"productDetailsHeroOfferRenderer",void 0);_.V([_.kn("#variants"),_.z("design:type",Object)],BN.prototype,"productDetailsVariantRenderer",void 0);_.V([_.kn("#offers"),_.z("design:type",Object)],BN.prototype,"productDetailsOffersContainerRenderer",void 0);_.V([_.kn("#description-renderer"),_.z("design:type",Object)],BN.prototype,"productDetailsDescriptionRenderer",void 0);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BN.prototype,"showPurchaseData",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BN.prototype,"showHeroOfferRenderer",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BN.prototype,"showBrandText",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BN.prototype,"showOffers",null);
_.V([_.e("showOffers","showPurchaseData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BN.prototype,"showBuySeparator",null);_.V([_.e("showOffers","showPurchaseData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],BN.prototype,"showBuyCard",null);_.V([_.e("data"),_.z("design:type",String),_.z("design:paramtypes",[])],BN.prototype,"selectedVariantsText",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],BN.prototype,"shoppingReportingButtonData",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],BN);
_.G(BN,"ytd-product-details-renderer",function(){if(VpH!==void 0)return VpH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return VpH=D},{mode:1});var JR6;var ziH;var jhv;var b_=function(){return _.w.apply(this,arguments)||this};
_.h(b_,_.w);b_.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.$a.Object.defineProperties(b_.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],b_.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],b_.prototype,"formattedAmount",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],b_.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data.style"),_.z("design:type",String),_.z("design:paramtypes",[])],b_.prototype,"vcBalanceWidgetStyle",null);_.V([_.Yn({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],b_);
_.G(b_,"yt-vc-balance-renderer",function(){if(jhv===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;ziH===void 0&&(ziH=document.createElement("template"));var c=ziH;X.call(C,c.content.cloneNode(!0),D.content.firstChild);jhv=D}D=jhv;return D},{mode:2});_.sI("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var rh=function(){return _.w.apply(this,arguments)||this};
_.h(rh,_.w);_.$a.Object.defineProperties(rh.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],rh.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rh.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.vcBalanceEntityKey"],selector:function(D,C){return _.aI(D.entities,"vcBalanceEntity",C)}}),
_.z("design:type",Object)],rh.prototype,"vcBalanceEntity",void 0);_.V([_.e("vcBalanceEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],rh.prototype,"formattedAmount",null);_.V([_.e("vcBalanceEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],rh.prototype,"vcBalanceAriaLabel",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],rh);
_.G(rh,"ytd-vc-balance-renderer",function(){if(JR6!==void 0)return JR6;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return JR6=D},{mode:1});var MpH;var Ka=function(){var D=_.w.apply(this,arguments)||this;D.rotation=0;D.isReloading=!1;return D};
_.h(Ka,_.w);Ka.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Ka.prototype.reset=function(){this.hostElement.style.opacity=""};
Ka.prototype.close=function(){var D=this;return _.I(function(C){if(C.nextAddress==1)return C.yield(D.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.hostElement.style.opacity="0";_.t_(C)})};
Ka.prototype.rotationChanged=Ka.prototype.rotationChanged;_.V([_.n(),_.z("design:type",Object)],Ka.prototype,"rotation",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Ka.prototype,"isReloading",void 0);_.V([_.kn("#icon"),_.z("design:type",HTMLElement)],Ka.prototype,"icon",void 0);_.V([_.vr("rotation"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ka.prototype,"rotationChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-refresh"})],Ka);
_.G(Ka,"ytd-refresh",function(){if(MpH!==void 0)return MpH;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return MpH=D},{mode:1});var qeJ;var ha=function(){var D=_.w.apply(this,arguments)||this;D.useRaf=!_.b("web_use_raf_app_header_layout_killswitch");return D};
_.h(ha,_.w);ha.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"}}}};
ha.prototype.dataChanged=function(){if(this.data){var D=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var C=_.XA(this.data.banner.thumbnails,this.hostElement.clientWidth);C&&(C.indexOf("//")===0&&(C="https:"+C),this.hasBannerArt=!0,_.Os(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+C+")"}))}this.hasBannerArt!==D&&_.SY(this.hostElement).querySelector("#header").fire("iron-resize")}};
ha.prototype.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
ha.prototype.dataChanged=ha.prototype.dataChanged;_.V([_.m(Pcj),_.z("design:type",Object)],ha.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.v9),_.z("design:type",Object)],ha.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],ha.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],ha.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ha.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],ha.prototype,"selected",void 0);_.V([_.n(),_.z("design:type",Boolean)],ha.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],ha.prototype,"hasBannerArt",void 0);_.V([_.n(),_.z("design:type",Object)],ha.prototype,"useRaf",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ha.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],ha);
_.G(ha,"ytd-interactive-tabbed-header-renderer",function(){if(qeJ!==void 0)return qeJ;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return qeJ=D},{mode:1});var f1z;var xv=function(){return _.w.apply(this,arguments)||this};
_.h(xv,_.w);xv.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xv.prototype.computeActionsAlignment=function(D){return(D==null?void 0:D.actionsAlignment)||""};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.z("design:type",String)],xv.prototype,"actionsAlignment",void 0);
_.V([_.yj({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],xv);
_.G(xv,"ytd-page-footer-renderer",function(){if(f1z!==void 0)return f1z;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return f1z=D},{mode:1});var ddz;var RiD;var La=function(){var D=_.w.apply(this,arguments)||this;D.isEditing=!1;D.useSlot=!1;D.isMultiline=!1;return D};
_.h(La,_.w);_.S=La.prototype;_.S.onKeydown=function(D){if(D.keyCode===13&&!this.isMultiline)this.onSave();else if(D.keyCode===27)this.onCancel()};
_.S.computeComponentStyle=function(D){return(D==null?0:D.style)?D.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.S.computeisMultiline=function(D){if(this.multilineOverride!==void 0)return this.multilineOverride;var C,X;return!!(D==null?0:(C=D.formField)==null?0:(X=C.textInputFormFieldRenderer)==null?0:X.isMultiline)};
_.S.computeTextDisplayed=function(D,C){if(D)return D;if(C)return C};
_.S.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.S.onSave=function(){if(this.textForm.validate()){this.textForm.save();var D=this.textForm.value;if(D)this.set("data.textDisplayed",_.jV(D));else{var C;((C=this.data)==null?0:C.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Kz("inline-form-changed",this.data));this.isEditing=!1}};
_.S.onCancel=function(){var D=_.Mh(this.data.textDisplayed);D===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(D);this.isEditing=!1};
La.prototype.onKeydown=La.prototype.onKeydown;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],La.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],La.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],La.prototype,"isEditing",void 0);_.V([_.n(),_.z("design:type",Object)],La.prototype,"useSlot",void 0);_.V([_.n(),_.z("design:type",Boolean)],La.prototype,"multilineOverride",void 0);_.V([_.n(),_.z("design:type",Boolean)],La.prototype,"enableOverlayTheme",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.z("design:type",String)],La.prototype,"componentStyle",void 0);
_.V([_.n({computed:"computeisMultiline(data)"}),_.z("design:type",Object)],La.prototype,"isMultiline",void 0);_.V([_.kn("#text-form"),_.z("design:type",Object)],La.prototype,"textForm",void 0);_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],La.prototype,"onKeydown",null);_.V([_.yj({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],La);
_.G(La,"ytd-inline-form-renderer",function(){if(RiD!==void 0)return RiD;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return RiD=D},{mode:1});var l1N;var sa=function(){var D=_.w.apply(this,arguments)||this;D.previousSelectValue=void 0;D.selectedItemMessage=void 0;return D};
_.h(sa,_.w);sa.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
sa.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var D,C,X,c,W=(D=this.data)==null?void 0:(C=D.dropdown)==null?void 0:(X=C.dropdownRenderer)==null?void 0:(c=X.entries)==null?void 0:c.map(function(a){return a.privacyDropdownItemRenderer});
D=_.U(W!=null?W:[]);for(C=D.next();!C.done;C=D.next())if((C=C.value)&&C.int32Value===this.selectedValue){this.selectedItemMessage=C.itemMessage;break}}else this.selectedItemMessage=void 0;var p;(p=this.onValueChanged)==null||p.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var g;(g=this.data)!=null&&g.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
sa.prototype.onValueChangedForSelectedValue=function(D){this.selectedValue=D.detail.value};
sa.prototype.selectedValueChanged=sa.prototype.selectedValueChanged;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],sa.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sa.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],sa.prototype,"theme",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Number)],sa.prototype,"selectedValue",void 0);_.V([_.n(),_.z("design:type",Function)],sa.prototype,"onValueChanged",void 0);
_.V([_.bH("selectedValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sa.prototype,"selectedValueChanged",null);_.V([_.yj({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],sa);
_.G(sa,"ytd-dropdown-form-field-renderer",function(){if(l1N!==void 0)return l1N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return l1N=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var DmH;var mh=function(){return _.w.apply(this,arguments)||this};
_.h(mh,_.w);_.$a.Object.defineProperties(mh.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var D=[],C=_.U(this.data||[]),X=C.next();!X.done;X=C.next())(X=_.r(X.value,OFH))&&D.push(X);return D}}});
_.V([_.n(),_.z("design:type",Array)],mh.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],mh.prototype,"byline",null);_.V([_.yj({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],mh);
_.G(mh,"ytd-playlist-byline-renderer",function(){if(DmH!==void 0)return DmH;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return DmH=D},{mode:1});var Ch6;var e4=function(){var D=_.w.apply(this,arguments)||this;D.rtlBullet=_.b("web_playlist_stats_rtl_bullet_icon_killswitch");D.modern=_.b("web_modern_buttons");D.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return D};
_.h(e4,_.w);_.S=e4.prototype;_.S.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"}}}}};
_.S.attached=function(){};
_.S.computeIsCustomThumbnail=function(D){return D?!!D.playlistCustomThumbnailRenderer:!1};
_.S.onYtNavigate=function(D,C){if(C&&C.actions&&C.actions.indexOf("shuffle")>-1){D=_.iX().resolve(_.iP);var X=C.tempData||{};X.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);C.tempData=X;D.isShuffleNextPlaylist=!0}};
_.S.onUpdatePlaylistAction=function(D){var C;D=(C=_.r(D,_.qy5))==null?void 0:C.updatedRenderer;if(C=_.r(D,Wvj))this.data=C};
_.S.computeStyleType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeThumbnailWidth=function(D){return D==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.S.computeHideThumbnailAria=function(D){if(D==null?0:D.thumbnailOverlays)for(var C=0;C<D.thumbnailOverlays.length;C++){var X=void 0;if((X=D.thumbnailOverlays[C])==null?0:X.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
e4.prototype.onYtNavigate=e4.prototype.onYtNavigate;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],e4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],e4.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],e4.prototype,"rtlBullet",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.z("design:type",String)],e4.prototype,"styleType",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],e4.prototype,"thumbnailWidth",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],e4.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.z("design:type",Boolean)],e4.prototype,"isCustomThumbnail",void 0);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],e4.prototype,"onYtNavigate",null);_.V([_.yj({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],e4);
_.G(e4,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Ch6!==void 0)return Ch6;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Ch6=D},{mode:1});var Xe$;var Ea=function(){return _.w.apply(this,arguments)||this};
_.h(Ea,_.w);Ea.prototype.computeOwnerVisibility=function(D){return!(!D.videoOwner&&!D.button)};
Ea.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ea.prototype,"data",void 0);_.V([_.yj({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Ea);
_.G(Ea,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Xe$!==void 0)return Xe$;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Xe$=D},{mode:1});var cwv;var ta=function(){var D=_.w.apply(this,arguments)||this;D.expanded=!1;D.isCompact=!1;return D};
_.h(ta,_.w);_.S=ta.prototype;_.S.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.S.dataChanged=function(){this.data&&_.aG(_.SY(this.text),_.Coc(_.oXe,_.Mh(this.data.text||null)))};
_.S.computeAutoScrollEnabled=function(D,C){return D&&!C};
_.S.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.S.toggleOnTap=function(){this.expanded=!this.expanded};
ta.prototype.expandedChanged=ta.prototype.expandedChanged;ta.prototype.dataChanged=ta.prototype.dataChanged;_.V([_.m(_.RKB),_.z("design:type",Object)],ta.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ta.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ta.prototype,"expanded",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ta.prototype,"isCompact",void 0);_.V([_.n({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.z("design:type",Boolean)],ta.prototype,"autoScrollEnabled",void 0);_.V([_.kn("#text"),_.z("design:type",Object)],ta.prototype,"text",void 0);_.V([_.kn("#expander-icon"),_.z("design:type",Object)],ta.prototype,"expanderIcon",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ta.prototype,"dataChanged",null);_.V([_.vr("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ta.prototype,"expandedChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],ta);
_.G(ta,"ytd-channel-legal-info-renderer",function(){if(cwv!==void 0)return cwv;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return cwv=D},{mode:1});var oU$;var W56=_.I7("DOWNLOAD",{},"Download"),peD=_.I7("DOWNLOADING",{},"Downloading"),Szv=_.I7("DOWNLOADED",{},"Downloaded"),N1=function(){var D=_.w.apply(this,arguments)||this;D.downloadProgress=0;D.isDownloadComplete=!1;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.h(N1,_.w);_.S=N1.prototype;_.S.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.S.dataChanged=function(){var D;(D=this.data)!=null&&D.tooltip||(D=_.yZ(_.fe().getState(),this.playlistId),this.updateButtonState(D))};
_.S.computePlaylistId=function(D){return D};
_.S.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.S.updateButtonState=function(D){if(this.data&&(this.data.tooltip!==peD||!_.u8(D))){this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=W56;var C="OFFLINE_DOWNLOAD";var X="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":D=Szv;C="OFFLINE_PIN";X="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":D=peD;C="OFFLINE_DOWNLOADING_ZERO";X="ACTION_REMOVE_WITH_PROMPT";
break;default:D=W56,C="OFFLINE_DOWNLOAD",X="ACTION_ADD"}var c=Object.assign({},this.data);c.tooltip=D;c.accessibilityData={accessibilityData:{label:D}};c.icon={iconType:C};c.size="SIZE_DEFAULT";_.r(c.command,_.iK)&&(_.r(c.command,_.iK).action=X);this.set("data",c)}};
_.S.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?D="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var C;D!==((C=this.data.icon)==null?void 0:C.iconType)&&(C=Object.assign({},this.data),C.tooltip=peD,C.accessibilityData={accessibilityData:{label:peD}},C.icon={iconType:D},_.r(C.command,_.iK)&&(_.r(C.command,_.iK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",C))}};
N1.prototype.updateProgress=N1.prototype.updateProgress;N1.prototype.onTransferStateChanged=N1.prototype.onTransferStateChanged;N1.prototype.dataChanged=N1.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],N1.prototype,"ytdReduxBehavior",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],N1.prototype,"forceIconButton",void 0);
_.V([_.n({value:!0}),_.z("design:type",Boolean)],N1.prototype,"forceIconOnly",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],N1.prototype,"overrides",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],N1.prototype,"buttonTooltipPosition",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],N1.prototype,"styleActionButton",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],N1.prototype,"disableTextTransform",void 0);
_.V([_.n({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.z("design:type",String)],N1.prototype,"playlistId",void 0);_.V([_.n(),_.z("design:type",Object)],N1.prototype,"data",void 0);_.V([_.n({selector:_.H4h,selectorArgs:["playlistId"]}),_.z("design:type",Object)],N1.prototype,"downloadProgress",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],N1.prototype,"isDownloadComplete",void 0);
_.V([_.n({selector:_.yZ,selectorArgs:["playlistId"]}),_.z("design:type",String)],N1.prototype,"transferState",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],N1.prototype,"showTooltips",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],N1.prototype,"sendCommandWhenDisabled",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],N1.prototype,"disabled",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N1.prototype,"dataChanged",null);_.V([_.bH("transferState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N1.prototype,"onTransferStateChanged",null);_.V([_.bH("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],N1.prototype,"updateProgress",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],N1);
_.G(N1,"ytd-download-playlist-button-renderer",function(){if(oU$!==void 0)return oU$;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return oU$=D},{mode:1});var UmU;_.CI(_.e95,"thumbnail-overlay-button-view-model",{props:{data:_.Bm,lockupExperiments:_.Bm}});var Yv=function(){var D=_.w.apply(this,arguments)||this;D.isSquare=!1;D.isVertical=!1;return D};
_.h(Yv,_.w);Yv.prototype.computeIsSquare=function(D){return D!=null&&D.thumbnail?Zyz(D.thumbnail)==="SQUARE":!1};
Yv.prototype.computeIsVertical=function(D){return D!=null&&D.thumbnail?Zyz(D.thumbnail)==="VERTICAL":!1};
Yv.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.z("design:type",Object)],Yv.prototype,"isSquare",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.z("design:type",Object)],Yv.prototype,"isVertical",void 0);
_.V([_.n(),_.z("design:type",Object)],Yv.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Yv);
_.G(Yv,"ytd-hero-playlist-thumbnail-renderer",function(){if(UmU!==void 0)return UmU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return UmU=D},{mode:1});var yT=function(){var D=_.w.apply(this,arguments)||this;D.isDarkTheme=!1;D.isUltraWide=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return D};
_.h(yT,_.w);_.S=yT.prototype;_.S.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.iX();var D;(D=_.iX().resolve(_.vK(_.U5)))!=null&&(D.headerElement=this.hostElement)};
_.S.detached=function(){var D;(D=_.iX().resolve(_.vK(_.U5)))!=null&&(D.headerElement=void 0)};
_.S.onUpdateHeader=function(D){(D=D.detail)&&this.set("data",D)};
_.S.computeTextDisplayed=function(D){if(D)return D.textDisplayed?D.textDisplayed:D.placeholder};
_.S.gradientColorToLinearGradientStop=function(D){var C=this.isDarkTheme?D.darkThemeColor:D.lightThemeColor;return C?_.e_(C)+" "+((D==null?void 0:D.startLocation)||0)*100+"%":"transparent"};
_.S.onWindowResize=function(){var D;((D=this.data)==null?0:D.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.S.onIronResize=function(D){this.isUltraWide=!D.detail.value};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.onUpdatePlaylistName=function(D){var C=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},D.detail.value));_.A0(this,function(){var X;(X=C.editableTitle)==null||X.resize()})};
_.S.onUpdatePlaylistDescription=function(D){var C=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},D.detail.value));_.A0(this,function(){var X;(X=C.editableDescriptionInlineExpander)==null||X.resize()})};
_.S.getCinematicData=function(D){return _.r(D==null?void 0:D.cinematicContainer,_.RO)};
_.$a.Object.defineProperties(yT.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 D,C=(D=this.getCinematicData(this.data))==null?void 0:D.config;return(D=this.isDarkTheme?C==null?void 0:C.darkThemeBackgroundColor:C==null?void 0:C.lightThemeBackgroundColor)?"background-color:"+_.mW(D)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var D;return _.r((D=this.data)==null?void 0:D.descriptionForm,oT$)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var D=this,C,X,c;return"background:linear-gradient(to bottom, "+(((c=(C=this.getCinematicData(this.data))==null?void 0:(X=C.gradientColorConfig)==null?void 0:X.map(function(W){return D.gradientColorToLinearGradientStop(W)}))==null?void 0:c.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var D;return _.Mh((D=this.data)==null?void 0:D.descriptionTapText)}}});
yT.prototype.onUpdateHeader=yT.prototype.onUpdateHeader;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],yT.prototype,"actionHandlerBehavior",void 0);_.V([_.kn("#description-inline-expander"),_.z("design:type",Object)],yT.prototype,"descriptionInlineExpander",void 0);
_.V([_.kn("#editable-description-inline-expander"),_.z("design:type",Object)],yT.prototype,"editableDescriptionInlineExpander",void 0);_.V([_.n(),_.z("design:type",Object)],yT.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],yT.prototype,"isUltraWide",void 0);_.V([_.kn("#editable-title-display"),_.z("design:type",Object)],yT.prototype,"editableTitle",void 0);_.V([_.e("isUltraWide"),_.z("design:type",Object),_.z("design:paramtypes",[])],yT.prototype,"maxDescriptionLines",null);
_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yT.prototype,"noCinematicData",null);_.V([_.$n("yt-new-playlist-header"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yT.prototype,"onUpdateHeader",null);_.V([_.e("data","isDarkTheme"),_.z("design:type",Object),_.z("design:paramtypes",[])],yT.prototype,"backgroundStyle",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yT.prototype,"descriptionFormData",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yT.prototype,"getDropdownTheme",null);_.V([_.e("data","isDarkTheme"),_.z("design:type",String),_.z("design:paramtypes",[])],yT.prototype,"gradientStyle",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yT.prototype,"descriptionTapText",null);
_.V([_.yj({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],yT);
_.G(yT,"ytd-playlist-header-renderer",function(){if(ddz!==void 0)return ddz;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ddz=D},{mode:_.Wc("kevlar_poly_si_batch_j078")?1:2});var gUj;var aHD;var na=function(){return _.w.apply(this,arguments)||this};
_.h(na,_.w);na.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],na.prototype,"data",void 0);_.V([_.yj({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],na);
_.G(na,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(aHD!==void 0)return aHD;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return aHD=D},{mode:1});var wh=function(){return _.w.apply(this,arguments)||this};
_.h(wh,_.w);
wh.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}}}}};
wh.prototype.computeUsePremiumShowStyle=function(D){if(!D||!D.items)return!1;for(var C=0;C<D.items.length;C++)if(_.r(D.items[C],Wvj)){var X=void 0;return((X=_.r(D.items[C],Wvj))==null?void 0:X.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wh.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.z("design:type",Boolean)],wh.prototype,"usePremiumShowStyle",void 0);
_.V([_.yj({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],wh);
_.G(wh,"ytd-playlist-sidebar-renderer",function(){if(gUj!==void 0)return gUj;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return gUj=D},{mode:1});var IH2;var OiU;var AwD=function(D,C,X,c,W,p,g,a){this.minWidth=D;this.minHeight=C;this.recommendedWidth=X;this.recommendedHeight=c;this.JSC$22804_maxFileSize=W;this.title=p;this.bannerGalleryTitle=g;this.channelId=a;this.picker_=null;D=_.g9W("yt-banner");C=D.addView;X=(new Mov("youtubebanner")).addUploadMetadata("silo_id","19");X.opts.ytMaxFileSize=this.JSC$22804_maxFileSize;c=this.recommendedHeight;X.opts.ytRecWidth=this.recommendedWidth;X.opts.ytRecHeight=c;C.call(D,X);D.addView(new _.Zs);C=D.addView;X=new _.Zs;
X.opts.type="ytbanner";C.call(D,X.JSC$10239_setLabel(this.bannerGalleryTitle));C=D.setTitle(this.title).setSize(1E3);C.urlParamMap_.set("thumbs","orig");X=this.minWidth;c=this.minHeight;if(isNaN(X)||isNaN(c))throw Error("gb`"+X+"`"+c);C.urlParamMap_.set("minSize",X+"x"+c);C.urlParamMap_.set("cropMode","ytcb");this.builder_=D};
AwD.prototype.open=function(){var D=this;return new _.mM(function(C,X){_.T0C(D.builder_,function(c){c.action=="picked"?C(c):c.action=="cancel"&&X(Error("To"))});
D.picker_&&D.picker_.dispose();D.picker_=D.builder_.build();D.picker_.setVisible(!0)})};
AwD.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Ph$=function(D){this.channelId=D};
Ph$.prototype.upload=function(D){var C="";D.viewToken&&(C=D.viewToken[2].type);var X=D.docs[0];D=X.crop;C={channel_id:this.channelId,fife_url:X.thumbnails[0].url,photo_id:X.id,is_gallery_image:C=="ytbanner"};D&&(C.crop_top=D.top,C.crop_right=D.right,C.crop_bottom=D.bottom,C.crop_left=D.left);return _.$Qt("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:C})};var FG=function(){var D=_.w.apply(this,arguments)||this;D.ariaLabel=null;return D};
_.h(FG,_.w);_.S=FG.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.S.detached=function(){this.picker&&this.picker.dispose()};
_.S.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.S.computeAriaLabel=function(D){return D};
_.S.onTap=function(){var D=this,C;if((C=this.data)==null||!C.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new AwD(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(c){D.handleBannerPicked(c)},function(){})}};
_.S.handleBannerPicked=function(D){var C=this;this.uploader||(this.uploader=new Ph$(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(D).then(function(X){C.handleBannerUploadSucceeded(X)},function(X){C.handleBannerUploadFailed(X)})};
_.S.handleBannerUploadSucceeded=function(D){D&&D.errors?this.handleBannerUploadFailed(D):(_.lE(this.hostElement,"yt-banner-updated",D),this.message=null)};
_.S.handleBannerUploadFailed=function(D){this.message=D&&D.errors&&D.errors.length?D.errors[0]:null};
FG.prototype.dataChanged=FG.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],FG.prototype,"componentBehavior",void 0);_.V([_.m(_.Co),_.z("design:type",Object)],FG.prototype,"ironButtonState",void 0);_.V([_.n(),_.z("design:type",Object)],FG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.z("design:type",Object)],FG.prototype,"ariaLabel",void 0);
_.V([_.n(),_.z("design:type",Object)],FG.prototype,"message",void 0);_.V([_.n(),_.z("design:type",Object)],FG.prototype,"picker",void 0);_.V([_.n(),_.z("design:type",Object)],FG.prototype,"uploader",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FG.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],FG);
_.G(FG,"ytd-channel-banner-editor-renderer",function(){if(OiU!==void 0)return OiU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return OiU=D},{mode:1});var $m6;var vU6=_.q8(["#"]),Zy=function(){return _.w.apply(this,arguments)||this};
_.h(Zy,_.w);Zy.prototype.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D,!0)||_.UAd(vU6)};
Zy.prototype.dataChanged=function(){var D=this.data;D&&D.targetId&&_.z0(_.jJ(),D.targetId,this.moreIcon)};
Zy.prototype.dataChanged=Zy.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Zy.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Zy.prototype,"data",void 0);_.V([_.kn("#more-icon"),_.z("design:type",Object)],Zy.prototype,"moreIcon",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zy.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Zy);
_.G(Zy,"ytd-channel-tagline-renderer",function(){if($m6!==void 0)return $m6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $m6=D},{mode:1});var iiU;var GQ=function(){return _.w.apply(this,arguments)||this};
_.h(GQ,_.w);_.S=GQ.prototype;_.S.ready=function(){var D=this;_.SY(this.hostElement).querySelector("#form").addEventListener("submit",function(C){D.onSubmit(C)})};
_.S.onDataChanged=function(){var D;((D=this.data)==null?0:D.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.S.onIconButtonKeydown=function(D){D.keyCode===13&&this.iconButton.click()};
_.S.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.S.openOnClickHandler=function(){this.input.focus()};
_.S.onSubmit=function(D){D.preventDefault();return!1};
_.S.submitOnEnterKeyUp=function(D){var C;if(D.keyCode===13&&((C=this.data)==null?0:C.expandedText)){D=this.data.endpoint;C=_.ZI.unsafeClone(D);var X;((X=_.r(C==null?void 0:C.commandMetadata,_.ge))==null?0:X.url)?(_.r(C.commandMetadata,_.ge).url=_.D0(_.r(C.commandMetadata,_.ge).url,"query",this.data.expandedText),_.r(C,_.Pl)&&(_.r(C,_.Pl).query=this.data.expandedText),_.lE(this.hostElement,"yt-navigate",{endpoint:C,tempData:{disableCache:!0}})):(X=new _.Zf("Error: Trying to navigate to an endpoint without url",
D),_.MN(X))}};
_.S.updateDataExpandedTextFromBinding=function(D){this.set("data.expandedText",D.detail.value)};
_.$a.Object.defineProperties(GQ.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
GQ.prototype.onDataChanged=GQ.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.IJN),_.z("design:type",Object)],GQ.prototype,"ytdExpandableInputBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],GQ.prototype,"data",void 0);_.V([_.kn("#input"),_.z("design:type",Object)],GQ.prototype,"input",void 0);_.V([_.kn("#icon-button"),_.z("design:type",HTMLElement)],GQ.prototype,"iconButton",void 0);
_.V([_.n(),_.z("design:type",String),_.z("design:paramtypes",[])],GQ.prototype,"searchIcon",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GQ.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],GQ);
var GvD=_.o3()(GQ,"ytd-expandable-tab-renderer",function(){if(iiU===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);iiU=D}D=iiU;return D},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var k3j;var VT=function(){var D=_.w.apply(this,arguments)||this;D.avatarSize=80;D.ariaLabel=_.I7("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return D};
_.h(VT,_.w);VT.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
VT.prototype.computeHref=function(D){var C;return((C=_.r(D,_.oX))==null?0:C.url)?this.componentBehavior.computeHref_(D):null};
VT.prototype.onTap=function(){var D,C;(D=this.data)==null||!D.editAvatarServiceEndpoint||((C=_.r(this.data.editAvatarServiceEndpoint,_.oX))==null?0:C.url)||_.iX().resolve(_.uX).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.V([_.m(_.Co),_.z("design:type",Object)],VT.prototype,"ironButtonState",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],VT.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],VT.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],VT.prototype,"avatarSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],VT.prototype,"ariaLabel",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],VT);
_.G(VT,"ytd-channel-avatar-editor",function(){if(k3j!==void 0)return k3j;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return k3j=D},{mode:1});var ugv=_.F(function(D){var C=D.data;var X=D.noPadding;var c=D.enableBanner;var W=D.cinematicContainerTopbarOffset;var p=D.allowCinematicContainerOverflow;var g=D.displayAsSidebar;D=D.className;_.Jw(function(){C().tagManagerId&&(_.lP(C().tagManagerId,_.q6("GL")),jV6(C().tagManagerId))},"vUc8md");
var a=_.ku(TVm,function(){return C().pageHeaderEntityKey});
return _.A("yt-page-header-renderer",{class:_.g$("pageHeaderRendererHost",D)},_.A(_.BX,{data:function(){var O;return((O=a())==null?0:O.header)?a().header:(g==null?0:g())&&C().sidebarContent?C().sidebarContent:C().content}},{pageHeaderViewModel:function(O){return _.A(_.vjX,{data:O.data,
noPadding:X,enableBanner:c,cinematicContainerTopbarOffset:W,allowCinematicContainerOverflow:p,displayAsSidebar:function(){return(g==null?void 0:g())&&C().enableSidebarView}})}}))},"tn");
ugv.idomCompat=!0;_.CI(ugv,"yt-page-header-renderer",{props:{data:_.Bm,noPadding:_.Bm,enableBanner:_.Bm,cinematicContainerTopbarOffset:_.Bm,allowCinematicContainerOverflow:_.Bm,displayAsSidebar:_.Bm,className:_.Bm}});_.CI(_.hz,"yt-image-banner-view-model",{props:{data:_.Bm,isPositionRelative:_.Bm}});_.CI(_.yWo,"yt-tab-group-shape",{props:{shape:_.Bm}});var QAD=_.TU.persistentPanelVisibleSelector,TQ=function(){var D=_.w.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(C){return Voz(C,function(){return void D.onSearchNavigate()})};
D.isRichGrid=!1;D.isConstrainedList=!1;D.richGridMiniMode=!1;D.richGridStyle="RICH_GRID_STYLE_UNKNOWN";D.isRichGridShorts=!1;D.responsiveSizing="COMPACT";D.disableGridStateAware=!1;D.useRaf=!_.b("web_use_raf_app_header_layout_killswitch");D.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return D};
_.h(TQ,_.w);_.S=TQ.prototype;_.S.computeHeaderDisabled=function(D,C){return C||!D||this.tabsHidden};
_.S.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.S.computeIsRichGridShorts=function(D){return D==="RICH_GRID_STYLE_SHORTS_GRID"||D==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.S.computeImageBannerViewModel=function(){var D,C;return _.r((C=_.r((D=this.data)==null?void 0:D.content,_.xx5))==null?void 0:C.banner,_.uuN)};
_.S.computeHasCinematicContainer=function(){var D,C;return!((C=_.r((D=this.data)==null?void 0:D.content,_.xx5))==null||!C.background)};
_.S.handleHeaderResize=function(){var D=_.SY(this.hostElement).querySelector("#header");D&&_.lE(D,"iron-resize")};
_.S.handleInsertTabCommand=function(D){var C=_.r(D,ARv);C&&(C.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(X){return X.tabRenderer&&X.tabRenderer.tabIdentifier===C.tabIdentifier})||this.splice("tabs",C.tabIndex||-1,0,C.tab))};
_.S.handleRefreshChannelTabAction=function(D){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===D&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.S.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.S.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Os(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.S.observerRichGridSlimItemsPerRow=function(){_.Os(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.S.updateCssVars=function(){this.richGridItemsPerRow&&_.Os(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.BK("rich_grid_max_item_width",500))+16)-16+"px"})};
_.S.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Os(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.S.onDataChanged=function(){this.handleHeaderResize()};
_.S.onWindowResize=function(){this.handleHeaderResize()};
_.S.onFocusedChanged=function(D){(D=_.qz(D))&&D.is==="tp-yt-paper-tab"&&D.hasRipple()&&(D.getRipple().holdDown=!D.pointerDown&&D.focused)};
_.S.updateSelectedFromBinding=function(D){this.ytdTabbedHeaderBehavior.selected=D.detail.value};
_.S.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.$a.Object.defineProperties(TQ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JpD(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.imageBannerViewModel)==null?void 0:D.style)==="IMAGE_BANNER_STYLE_INSET"}}});
TQ.prototype.onDataChanged=TQ.prototype.onDataChanged;TQ.prototype.updateCssVarsForResponsiveGrid=TQ.prototype.updateCssVarsForResponsiveGrid;TQ.prototype.updateCssVars=TQ.prototype.updateCssVars;TQ.prototype.observerRichGridSlimItemsPerRow=TQ.prototype.observerRichGridSlimItemsPerRow;TQ.prototype.observerRichGridItemsPerRow=TQ.prototype.observerRichGridItemsPerRow;TQ.prototype.persistentPanelVisibleChanged=TQ.prototype.persistentPanelVisibleChanged;
_.V([_.m(_.v9),_.z("design:type",Object)],TQ.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.m(Pcj),_.z("design:type",Object)],TQ.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],TQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],TQ.prototype,"ytdReduxBehavior",void 0);_.V([_.kn("#tabs"),_.z("design:type",Object)],TQ.prototype,"tabsElement",void 0);_.V([_.n(),_.z("design:type",Array)],TQ.prototype,"tabs",void 0);_.V([_.n(),_.z("design:type",Object)],TQ.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.e("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],TQ.prototype,"tabGroupShape",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],TQ.prototype,"isRichGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],TQ.prototype,"isConstrainedList",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Object)],TQ.prototype,"richGridMiniMode",void 0);_.V([_.n({selector:function(D){return D.ui.richGridStyle}}),
_.z("design:type",Object)],TQ.prototype,"richGridStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.z("design:type",Object)],TQ.prototype,"isRichGridShorts",void 0);_.V([_.n({selector:_.eV}),_.z("design:type",Number)],TQ.prototype,"richGridItemsPerRow",void 0);_.V([_.n({selector:function(D){return D.ui.richGridContainerWidth}}),
_.z("design:type",Number)],TQ.prototype,"richGridContainerWidth",void 0);_.V([_.n({selector:_.mLj}),_.z("design:type",Number)],TQ.prototype,"richGridSlimItemsPerRow",void 0);_.V([_.n(),_.z("design:type",Object)],TQ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],TQ.prototype,"responsiveSizing",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],TQ.prototype,"disableGridStateAware",void 0);
_.V([_.n({computed:"computeImageBannerViewModel(data)"}),_.z("design:type",Object)],TQ.prototype,"imageBannerViewModel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.z("design:type",Boolean)],TQ.prototype,"hasCinematicContainer",void 0);_.V([_.n({selector:_.fgp,reflectToAttribute:!0}),_.z("design:type",Boolean)],TQ.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.n({selector:QAD}),_.z("design:type",Boolean)],TQ.prototype,"persistentPanelVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("imageBannerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],TQ.prototype,"hasBanner",null);_.V([_.n({reflectToAttribute:!0}),_.e("imageBannerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],TQ.prototype,"hasInsetBanner",null);_.V([_.n(),_.z("design:type",Object)],TQ.prototype,"useRaf",void 0);
_.V([_.n({computed:"computeTabsHidden(tabs)",value:!0}),_.z("design:type",Boolean)],TQ.prototype,"tabsHidden",void 0);_.V([_.vr("persistentPanelVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"persistentPanelVisibleChanged",null);_.V([_.vr("richGridItemsPerRow","isRichGrid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"observerRichGridItemsPerRow",null);
_.V([_.vr("richGridSlimItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"observerRichGridSlimItemsPerRow",null);_.V([_.vr("richGridItemsPerRow","richGridMiniMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"updateCssVars",null);
_.V([_.vr("richGridContainerWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"updateCssVarsForResponsiveGrid",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TQ.prototype,"onDataChanged",null);_.V([_.yj({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],TQ);
_.G(TQ,"ytd-tabbed-page-header",function(){if(IH2!==void 0)return IH2;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return IH2=D},{mode:1});var B8J;var HN=function(){return _.w.apply(this,arguments)||this};
_.h(HN,_.w);HN.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Os(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.$a.Object.defineProperties(HN.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var D,C;return this.componentBehavior.computeIcon_(((C=_.r((D=this.data)==null?void 0:D.badge,_.EYk))==null?void 0:C.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.badge,_.EYk))==null?void 0:C.label}}});
HN.prototype.observerRichGridItemsPerRow=HN.prototype.observerRichGridItemsPerRow;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],HN.prototype,"componentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],HN.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mn}),_.z("design:type",Boolean)],HN.prototype,"richGridMiniMode",void 0);
_.V([_.n({selector:_.eV}),_.z("design:type",Number)],HN.prototype,"richGridItemsPerRow",void 0);_.V([_.n(),_.z("design:type",Object)],HN.prototype,"data",void 0);_.V([_.vr("richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HN.prototype,"observerRichGridItemsPerRow",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],HN.prototype,"badgeIconName",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],HN.prototype,"badgeLabel",null);_.V([_.yj({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],HN);
_.G(HN,"ytd-member-hub-profile-renderer",function(){if(B8J!==void 0)return B8J;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return B8J=D},{mode:1});var biD;var Ja=function(){return _.w.apply(this,arguments)||this};
_.h(Ja,_.w);Ja.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ja.prototype,"data",void 0);_.V([_.yj({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Ja);
_.G(Ja,"ytd-settings-sidebar-renderer",function(){if(biD!==void 0)return biD;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return biD=D},{mode:1});var rwH;var zQ=function(){var D=_.w.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(C){return Voz(C,function(){return void D.onSearchNavigate()})};
return D};
_.h(zQ,_.w);zQ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
zQ.prototype.onSearchNavigate=function(){this.selected=void 0};
zQ.prototype.onTabsChange=function(){var D,C=(D=this.tabs)==null?void 0:D.findIndex(function(X){var c;return X==null?void 0:(c=X.tabRenderer)==null?void 0:c.selected});
C!==void 0&&(this.selected=C)};
zQ.prototype.onTabsActive=function(D){if(this.tabs!==void 0){var C,X;(D=(C=this.tabs[D.detail.selected])==null?void 0:(X=C.tabRenderer)==null?void 0:X.endpoint)&&_.lE(this.hostElement,"yt-navigate",{endpoint:D})}};
_.$a.Object.defineProperties(zQ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JpD(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
zQ.prototype.onTabsChange=zQ.prototype.onTabsChange;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.v9),_.z("design:type",Object)],zQ.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],zQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],zQ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Array)],zQ.prototype,"tabs",void 0);_.V([_.n(),_.z("design:type",Number)],zQ.prototype,"selected",void 0);_.V([_.e("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],zQ.prototype,"tabGroupShape",null);_.V([_.n(),_.z("design:type",Object)],zQ.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.e("tabs"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],zQ.prototype,"tabsEnabled",null);_.V([_.bH("tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zQ.prototype,"onTabsChange",null);_.V([_.yj({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],zQ);
_.G(zQ,"ytd-topic-channel-details-renderer",function(){if(rwH!==void 0)return rwH;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rwH=D},{mode:1});var K5D;var j4=function(){var D=_.w.apply(this,arguments)||this;D.disableGridStateAware=!1;return D};
_.h(j4,_.w);j4.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]]"}}}}}};
j4.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
j4.prototype.updateCssVars=function(){_.Os(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.BK("rich_grid_max_item_width",500))+16)-16+"px"})};
j4.prototype.updateCssVars=j4.prototype.updateCssVars;j4.prototype.activeChanged=j4.prototype.activeChanged;_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],j4.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],j4.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],j4.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Array)],j4.prototype,"tabs",void 0);_.V([_.n(),_.z("design:type",Boolean)],j4.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],j4.prototype,"disableGridStateAware",void 0);
_.V([_.n({selector:_.eV}),_.z("design:type",Number)],j4.prototype,"richGridItemsPerRow",void 0);_.V([_.n({selector:_.mn}),_.z("design:type",Boolean)],j4.prototype,"richGridMiniMode",void 0);_.V([_.kn("ytd-carousel-item-renderer"),_.z("design:type",Object)],j4.prototype,"carousel",void 0);_.V([_.vr("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j4.prototype,"activeChanged",null);
_.V([_.vr("richGridItemsPerRow","richGridMiniMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j4.prototype,"updateCssVars",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],j4);
_.G(j4,"ytd-carousel-header-renderer",function(){if(K5D!==void 0)return K5D;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return K5D=D},{mode:1});var hP$;var xmN=_.q8(["https://www.google-analytics.com/analytics.js"]),M1=function(){var D=_.w.apply(this,arguments)||this;D.scriptAnalyticsAdded=!1;return D};
_.h(M1,_.w);M1.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var D,C=(D=this.data)==null?void 0:D.tagManagerId;C&&(_.lP(C,_.q6("GL")),jV6(C))};
M1.prototype.sendGoogleAnalyticsPageview=function(D){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var X=_.MJ.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(X)};
var C=window.ga;C("set","page",window.location.pathname);C.l=+new Date;C("set","forceSSL",!0);C("create",D,"'auto'");C("send","pageview")};
M1.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var D=_.mv("SCRIPT");D.name="ga-analytics";var C=_.kX(xmN);_.gH(D,C);D.async=!0;_.SY(this.hostElement).appendChild(D)};
M1.prototype.dataChanged=M1.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],M1.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],M1.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],M1);
_.G(M1,"ytd-channel-metadata-renderer",function(){if(hP$!==void 0)return hP$;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hP$=D},{mode:1});var L5z;var sA6;var q1=function(){var D=_.w.apply(this,arguments)||this;D.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"]);D.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"]);D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return D};
_.h(q1,_.w);_.S=q1.prototype;_.S.attached=function(){this.requestElementsPerRow()};
_.S.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_]]"}}}}}};
_.S.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.S.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.S.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.S.computeAlertStyle_=function(D){return D};
_.S.observerElementsPerRow=function(){this.elementsPerRow&&_.Os(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.S.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.S.requestElementsPerRow=function(){_.lE(this.hostElement,"yt-request-elements-per-row")};
q1.prototype.onIsVisibleChanged_=q1.prototype.onIsVisibleChanged_;q1.prototype.observerElementsPerRow=q1.prototype.observerElementsPerRow;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],q1.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],q1.prototype,"data",void 0);_.V([_.n({value:6,reflectToAttribute:!0}),_.z("design:type",Number)],q1.prototype,"elementsPerRow",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],q1.prototype,"wrapButtons",void 0);_.V([_.n({value:_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.z("design:type",Boolean)],q1.prototype,"isMusic",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.z("design:type",String)],q1.prototype,"alertStyle",void 0);_.V([_.n({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.z("design:type",Function)],q1.prototype,"dismissBoundButtonTap_",void 0);_.V([_.n({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.z("design:type",Function)],q1.prototype,"acceptBoundButtonTap_",void 0);_.V([_.vr("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],q1.prototype,"observerElementsPerRow",null);_.V([_.vr("data.isVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],q1.prototype,"onIsVisibleChanged_",null);_.V([_.Yn({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],q1);
_.G(q1,"yt-alert-with-actions-renderer",function(){if(sA6===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;L5z===void 0&&(L5z=document.createElement("template"));var c=L5z;X.call(C,c.content.cloneNode(!0),D.content.firstChild);sA6=D}D=sA6;return D},{mode:2});var mmD=_.F(function(D){var C={};return _.A(_.QG,{text:D.text,className:_.g$("ytPersonalGreetingViewModelHeadline",(C.ytPersonalGreetingViewModelHeadlineSmall=D.isSmallHeadline,C))})},"vn");_.CI(_.F(function(D){var C=_.NH(function(){var Q;return(Q=D.data())==null?void 0:Q.rendererContext},void 0,void 0,void 0,!0),X=function(){return D.data().canvasPromoData},c=function(){var Q;
return(Q=D.data().bannerHeight)!=null?Q:56},W=_.U(_.BC({throttleMs:100})),p=W.next().value;
W=W.next().value;var g=_.U(_.BC({throttleMs:100})),a=g.next().value;g=g.next().value;var O=_.U(_.BC({throttleMs:100})),P=O.next().value;O=O.next().value;var k=function(){return a.width()-p.width()>1},u=function(){return c()===48};
return _.A("yt-personal-greeting-view-model",{el:_.fb(C,W),"aria-hidden":k,class:_.g$(D.className,"ytPersonalGreetingViewModelHost"),style:_.P0({height:(0,_.iM)(function(){return k()?0:c()})})},_.A(_.v,{cond:function(){return D.data().avatar&&!(P.width()+(D.data().avatar?48:0)-p.width()>1)},
then:function(){return _.A(_.BX,{data:function(){return D.data().avatar}},{decoratedAvatarViewModel:function(Q){return _.A(_.Og,{data:Q.data,
className:_.g$("ytPersonalGreetingViewModelAvatar")})}})}}),_.A("h1",null,_.A(mmD,{text:function(){var Q;
return(X==null?void 0:(Q=X())==null?void 0:Q.headline)||(P.width()+(D.data().avatar?48:0)-p.width()>1?D.data().shorterGreeting:D.data().greeting)},
isSmallHeadline:u})),_.A("span",{el:_.fb(O),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.A(mmD,{text:function(){return D.data().greeting},
isSmallHeadline:u})),_.A("span",{el:_.fb(g),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.A(mmD,{text:function(){return D.data().shorterGreeting},
isSmallHeadline:u})))},"un"),"yt-personal-greeting-view-model",{props:{data:_.Bm,
className:_.Bm}});var fa=function(){var D=_.w.apply(this,arguments)||this;D.hidden=!1;D.isConstrainedList=!1;D.responsiveSizing="COMPACT";D.attachedPlayers=_.b("kevlar_channel_trailer_multi_attach")?[]:void 0;D.player=null;D.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return D};
_.h(fa,_.w);_.S=fa.prototype;
_.S.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}}}}};
_.S.created=function(){var D=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){D.disposeMastheadAd()}]};
_.S.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new iFD(this.refresh,this.contents))};
_.S.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.S.activeChanged=function(){var D=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=D)};
_.S.tabsChanged=function(){var D=this,C,X;if(this.pageSubtype==="channels"||_.b("kevlar_tab_gestures_for_tabbed_header_data")&&((C=this.data)==null?0:(X=C.header)==null?0:X.carouselHeaderRenderer))this.tabGestures=new QhB(this.contents,this.contents,this.hostElement,this.header,function(g){D.ytdReduxBehavior.dispatch(g)});
var c,W,p;C=(c=this.data)==null?void 0:(W=c.contents)==null?void 0:(p=W.twoColumnBrowseResultsRenderer)==null?void 0:p.tabs;this.tabGestures&&this.tabGestures.tabsChanged(C)};
_.S.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.S.engagementPanelsChanged=function(){var D=_.iX().resolve(_.p6);if(D){if(this.engagementPanels)for(var C=_.U(this.engagementPanels),X=C.next();!X.done;X=C.next()){var c=void 0;(X=(c=X.value.identifier)==null?void 0:c.tag)&&D.panelMap.delete(X)}this.engagementPanels=[];var W;C=_.U(((W=this.data)==null?void 0:W.panels)||[]);for(W=C.next();!W.done;W=C.next()){W=_.r(W.value,_.J_N);var p=X=void 0,g=void 0,a=void 0;if(c=((X=W)==null?void 0:X.targetId)||((p=W)==null?void 0:p.panelIdentifier)||((g=W)==
null?void 0:(a=g.identifier)==null?void 0:a.tag))p=X=void 0,(p=(X=D).registerPanelContent)==null||p.call(X,c,{engagementPanelSectionListRenderer:W}),this.engagementPanels.push(W)}}};
_.S.onStampFinished=function(){var D=this;_.A0(this,function(){if(D.tabGestures){var C=D.tabGestures;if(C.scrollPositionNeedsUpdate){var X=_.iX().resolve(_.vK(_.lu)),c;if((c=C.selectedTab)!=null&&c.title&&X&&(c=X.getCurrentPage())){if(C.scrollPositionForTabs.has(C.selectedTab.title)){var W,p;X=(p=(W=X.getCurrentPage())==null?void 0:W.clientHeight)!=null?p:0;W=C.scrollPositionForTabs.get(C.selectedTab.title);c.setScrollTop(W);X>W+100&&(C.scrollPositionNeedsUpdate=!1)}else c.setScrollTop(Math.min(C.lastVisitedTabScrollPosition!==
void 0?C.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,C.tabsStartAtInPx)),C.scrollPositionNeedsUpdate=!1;C.ytdReduxDispatch(zeU(!1))}}}})};
_.S.loadPage_=function(D){this.initCsi();D&&(this.data=D);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.S.getTitle=function(D){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",D))return this.get("microformat.microformatDataRenderer.title",D);if(this.get("header.feedTabbedHeaderRenderer.title",D))return _.Mh(this.get("header.feedTabbedHeaderRenderer.title",D));if(this.get("header.interactiveTabbedHeaderRenderer.title",D))return this.get("header.interactiveTabbedHeaderRenderer.title",D);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
D))return _.Mh(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",D));var C,X;return(D==null?0:(C=D.header)==null?0:(X=C.pageHeaderRenderer)==null?0:X.pageTitle)?D.header.pageHeaderRenderer.pageTitle:""};
_.S.updateTitle=function(D){_.lE(this.hostElement,"yt-update-title",this.getTitle(D))};
_.S.initCsi=function(){_.wd6(this.pageSubtype||"browse",["ol","cpt"])};
_.S.getPlayer=function(){if(_.b("kevlar_channel_trailer_multi_attach")){for(var D=_.U(this.attachedPlayers),C=D.next();!C.done;C=D.next())if(C=C.value,C.isConnected||_.lc(this.hostElement,C))return C;return null}return this.player};
_.S.getPlayerContainer=function(){return null};
_.S.onPlayerAttached=function(D,C){_.b("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(C):this.player=C};
_.S.onPlayerDetached=function(D,C){_.b("kevlar_channel_trailer_multi_attach")?(D=this.attachedPlayers.indexOf(C),D<0||this.attachedPlayers.splice(D,1)):this.player=null};
_.S.getServiceTrackingParams=function(){var D,C;return((D=this.data)==null?void 0:(C=D.responseContext)==null?void 0:C.serviceTrackingParams)||[]};
_.S.setMastheadAd=function(D){D&&D.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=D&&D.mastheadAd};
_.S.dataChanged=function(){var D=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.sVv();_.A0(this,function(){_.Ct(D.hostElement,"ytd-update-grid-state-action")})};
_.S.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.S.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(C){return!!C.alertWithActionsRenderer})}};
_.S.computeGreetingData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(C){return!!C.personalGreetingViewModel})}};
_.S.computeHasMemberHubProfileRenderer=function(D){var C;return!!(D==null?0:(C=D.header)==null?0:C.memberHubProfileRenderer)};
_.S.handleAlertCommand=function(D){this.get("alertCommand.alert.alertWithActionsRenderer",D)&&(D=_.r(D,XIv),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",D.alert))};
_.S.handleYtPlaylistDeletionRedirect=function(D){D=this.get("playlistDeletionRedirectCommand.redirectEndpoint",D);_.lE(this.hostElement,"yt-navigate",{endpoint:D})};
_.S.computeFluidWidth=function(D,C,X){if(C==="mini_app"||X)return!0;var c,W,p;D=D==null?void 0:(c=D.contents)==null?void 0:(W=c.twoColumnBrowseResultsRenderer)==null?void 0:(p=W.tabs)==null?void 0:p.find(function(O){var P;return O==null?void 0:(P=O.tabRenderer)==null?void 0:P.selected});
if(!D)return!1;var g,a;return!!((g=D.tabRenderer)==null?0:(a=g.content)==null?0:a.richGridRenderer)&&!["channel","channels","playables"].includes(C)};
_.S.computeHeaderFluidWidth=function(D){return D==="hashtag-landing-page"};
_.S.computeHasSidebar=function(D){var C;return!!(D.sidebar||((C=D.header)==null?0:C.playlistHeaderRenderer))};
_.S.computeHasPageHeaderSidebar=function(D){var C,X;return!!((C=D.header)==null?0:(X=C.pageHeaderRenderer)==null?0:X.enableSidebarView)};
_.S.computeUseUnifiedShowPageLayout=function(D){if(!D||this.pageSubtype!=="show"||!D.sidebar||!D.sidebar.playlistSidebarRenderer)return!1;D=D.sidebar.playlistSidebarRenderer;if(!D.items)return!1;for(var C=0;C<D.items.length;C++)if(_.r(D.items[C],Wvj)){var X=void 0;return((X=_.r(D.items[C],Wvj))==null?void 0:X.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.S.computeIsConstrainedList=function(D){return _.b("web_enable_constrained_list_subscriptions_channels")&&D==="subscriptions-channels"};
_.S.computeResponsiveSizing=function(D){return D==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.$a.Object.defineProperties(fa.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var D,C;return((D=this.data)==null?0:(C=D.header)==null?0:C.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var D,C;if(!((D=this.data)==null?0:(C=D.sidebar)==null?0:C.playlistSidebarRenderer))return!1;var X;return(X=this.data)!=null&&X.header?!1:!0}}});
_.$a.Object.defineProperties(fa,{template:{configurable:!0,enumerable:!0,get:function(){if(Bof===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);Bof=D}D=Bof;return D}}});
fa.prototype.dataChanged=fa.prototype.dataChanged;fa.prototype.onPlayerDetached=fa.prototype.onPlayerDetached;fa.prototype.onPlayerAttached=fa.prototype.onPlayerAttached;fa.prototype.onStampFinished=fa.prototype.onStampFinished;fa.prototype.engagementPanelsChanged=fa.prototype.engagementPanelsChanged;fa.prototype.scrollAtTopChanged=fa.prototype.scrollAtTopChanged;fa.prototype.tabsChanged=fa.prototype.tabsChanged;fa.prototype.activeChanged=fa.prototype.activeChanged;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],fa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],fa.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],fa.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.Ca.YtPageBehavior),_.z("design:type",Object)],fa.prototype,"ytPageBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],fa.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fa.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],fa.prototype,"hidden",void 0);
_.V([_.n(),_.z("design:type",Object)],fa.prototype,"mastheadAdData",void 0);_.V([_.n({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.z("design:type",Object)],fa.prototype,"alertBannerData",void 0);_.V([_.n({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.z("design:type",Object)],fa.prototype,"greetingData",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],fa.prototype,"pageSubtype",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.z("design:type",Boolean)],fa.prototype,"hasMemberHubProfileRenderer",void 0);_.V([_.n({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],fa.prototype,"hasSidebar",void 0);_.V([_.n({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],fa.prototype,"hasPageHeaderSidebar",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],fa.prototype,"roundedContainer",void 0);_.V([_.n({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],fa.prototype,"useUnifiedShowPageLayout",void 0);_.V([_.n({computed:"computeIsConstrainedList(pageSubtype)"}),_.z("design:type",Object)],fa.prototype,"isConstrainedList",void 0);
_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fa.prototype,"usePlaylistHeaderRenderer",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fa.prototype,"useOldPlaylistSidebarRenderer",null);_.V([_.n({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.z("design:type",Boolean)],fa.prototype,"fluidWidth",void 0);_.V([_.n({selector:function(D){return D.ui.scrollAtTop}}),
_.z("design:type",Boolean)],fa.prototype,"scrollAtTop",void 0);_.V([_.n({selector:_.dzP}),_.z("design:type",Boolean)],fa.prototype,"tabGesturesIsActive",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.z("design:type",Boolean)],fa.prototype,"disableHeaderFluidWidth",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.z("design:type",String)],fa.prototype,"responsiveSizing",void 0);
_.V([_.kn("ytd-two-column-browse-results-renderer"),_.z("design:type",HTMLElement)],fa.prototype,"contents",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLElement)],fa.prototype,"header",void 0);_.V([_.kn("ytd-refresh"),_.z("design:type",Object)],fa.prototype,"refresh",void 0);_.V([_.vr("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fa.prototype,"activeChanged",null);
_.V([_.vr("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fa.prototype,"tabsChanged",null);_.V([_.vr("scrollAtTop"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fa.prototype,"scrollAtTopChanged",null);_.V([_.n(),_.z("design:type",Object)],fa.prototype,"engagementPanels",void 0);
_.V([_.vr("data.panels"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fa.prototype,"engagementPanelsChanged",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fa.prototype,"onStampFinished",null);_.V([_.$n("yt-player-attached"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Element]),_.z("design:returntype")],fa.prototype,"onPlayerAttached",null);
_.V([_.$n("yt-player-detached"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Element]),_.z("design:returntype")],fa.prototype,"onPlayerDetached",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fa.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-browse"})],fa);_.A$.registerService(_.Ai5,fa);
_.zy();
}catch(e){_._DumpException(e)}
try{
_.JR("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 rK,$_o,v7N,ibN,k2X,uV3,Q3G,B2U,bbp,rvt,KpP,hWk,x_w,LpU,m_P,eWX,t6w,N2G,Y4w,n7G,wcw,Fpt,Zbt,KB,V63,T23,HbG,Jvp,zWG,j33,M6N,RW3,Dno,d_o,s31,CuX,X01,clU,o_t,Wl1,p0k,SIp,a53,I5t,Puw,$nk,iI1,uA1,Q_G,B$6,rlt,h7t,xnU,Llt,s_t,mnt,e7k,E_N,t5Y,N$X,YIG,ylP,n_U,ZIp,GrG,V5t,T$k,HIG,Jlw,z7N,j_N,qIX,f56,dnG,R7N,l5N,DH1,CKN,XXt,cGo,out,WYt,pX3,SN6,UHo,guw,awG,Iw6,OTk,AGt,PKt,$H1,vuo,iT6,kUP,LB,uvo,Qa6,hdG,YNp,FYw,ZTN,JG6,jaG,HTp,VrG,Dot,cmk,gfp,GUG,WdP,Cyp,zdN,IT1,Pyw,im3,$o1,vf1,ktN,bmt,Q9k,rmo,Kdt,BEk,u13,
h_6,Eo,EfX,tbp,NE3,tQ,YWw,ymY,nf6,TEt,HmG,NZ,YW,z_1,Jm6,j9w,MbN,qWN,fT1,yW,owU,nB,WwG,pR1,S3G,wK,ATp,gwN,On1,PT6,at1,vwo,ItY,uxw,inX,k_P,Q2P,bnt,BB1,x8U,eDk,VW,T9,s2X,tXN,m81,Ewk,HU,z9,jH,MZ,CSU,JT6,o5X,WXt,pTt,SGG,g5t,ZnY,G_3,dK,TB6,qZ,fB,Hn3,Uyk,XTt,VXt,l7,B1t,ruY,KXp,bRX,iRp,xyw,myo,$yG,AuG,PSt,tz1,v5Y,XQ,skX,kjo,LX3,Qkk,ORN,uNk,YGt,yuP,n5U,FXt,GjG,VzG,T1p,HR3,zYP,Ju6,MzP,qGN,dyY,RYX,DsU,Cpo,Xqt,c6p,oJN,WEY,pq1,UsG,SfU,gJG,OL1,A6U,PpG,WB,$sw,vJw,iL6,kiX,uD6,QK6,Bd1,bLG,r6X,KEt,hJ1,LE3,sKP,msp,
eJt,NdG,y6p,nJP,FEp,wq6,ZL3,Gio,V$U,HLX,J63,zJk,jKG,M$p,qfG,fVo,dsU,RJw,lVX,D$3,o1U,W2X,XF1,c3t,CaN,pFP,g1G,SCN,U$N,OW1,aZ6,IZk,A3U,Pa6,$$t,v1G,kgk,unN,QbX,bWp,r3p,hTG,L2o,m$G,E1U,NkG,y33,wFp,ZWG,TkX,J3P,zTU,jbt,qC3,MLk,d$G,RTt,lZP,Dqw,S2,CFp,XPP,cs3,$qN,iVt,kP3,bVY,al,rsX,KN1,hVw,LNw,xqP,sJt,mqt,eVN,ExP,tPN,BU3,Nto,Y9G,eTt,ys6,nxY,krp,wPG,FN6,ZVP,GPo,VPN,TtP;
rK=function(D){if(!D)return"browse";var C=D.page,X=D.url,c,W,p,g=(c=D.response)==null?void 0:(W=c.responseContext)==null?void 0:(p=W.webResponseContextExtensionData)==null?void 0:p.pageTheme;if(g)C=g.toLowerCase().replace(/_/g,"-");else if(C!=="watch"&&C!=="learning_journey_watch"){var a,O;if((C==="browse"||C==="settings")&&((a=D.response)==null?0:(O=a.sidebar)==null?0:O.settingsSidebarRenderer))C="WEB_PAGE_TYPE_SETTINGS";else{var P,k;C==="browse"&&((P=D.response)==null?0:(k=P.metadata)==null?0:k.channelMetadataRenderer)?
C="channel":X&&(C=_.ceJ(X)||C)}}return C};
$_o=function(){return new Promise(function(D){var C=window;C.attmp!==void 0?D(C.attmp):(C.attmq===void 0&&(C.attmq=[]),C.attmq.push(function(X){D(X)}))})};
v7N=function(){var D=_.Df("yt.aba.att");return D?D:_.qr.instance!==void 0?_.qr.instance.eOp.bind(_.qr.instance):null};
ibN=function(D,C){var X,c;return _.I(function(W){return W.nextAddress==1?_.b("attmusi")&&_.b("attmusi_ue")?W.yield($_o(),3):W.jumpTo(2):W.nextAddress!=2?(X=W.yieldResult,W.return(X.s(D,C,6E4))):(c=v7N())?W.return(c(D,C,6E4)):W.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
k2X=function(D,C,X,c,W){C=C===void 0?[]:C;W=W?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:W}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ce(D),dialogMessages:C.map(function(p){return _.Ce(p)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(X),serviceEndpoint:W}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(c)}}}}}};
uV3=function(D,C,X){X=X===void 0?!1:X;var c=_.qg(),W=!!_.bP().queueProxy,p,g,a;D=D==null?void 0:(p=D.response)==null?void 0:(g=p.currentVideoEndpoint)==null?void 0:(a=g.watchEndpoint)==null?void 0:a.playlistId;if((W||D)&&!_.b("web_watch_disable_playlist_auto_miniplayer"))return X&&(c.playlistWatchPageActivation=!0),!0;switch(rK(C)){case "yts-products":return X&&(c.productDetailsPageActivation=!0),!0;case "mini_app":return X&&(c.miniAppPageActivation=!0),!0;case "playables":return X&&(c.playablesDestPageActivation=
!0),!0;case "companion-canvas":return X&&(c.companionCanvasActivation=!0),!0;default:return!1}};
Q3G=function(D){D=_.Sm3(D);D.length>0&&D[0].focus()};
B2U=function(D,C,X){for(var c=typeof D==="string"?D.split(""):D,W=D.length-1;W>=0;--W)W in c&&C.call(X,c[W],W,D)};
bbp=function(D,C){C=_.smt(D,C);C>=0&&_.Ejo(D,C)};
rvt=function(D){return Array.prototype.concat.apply([],arguments)};
KpP=function(D){var C=0;C=C===void 0?0:C;if(!_.cp(D))throw _.C5("uint64");var X=typeof D;switch(C){case 512:switch(X){case "string":return _.EgJ(D);case "bigint":return String((0,_.i6)(64,D));default:return _.mfr(D)}case 1024:switch(X){case "string":return _.tCd(D);case "bigint":return _.Fe((0,_.i6)(64,D));default:return _.e4m(D)}case 0:switch(X){case "string":return _.EgJ(D);case "bigint":return _.Fe((0,_.i6)(64,D));default:return _.sqZ(D)}default:return _.qf(C,"Unknown format requested type for int64")}};
hWk=function(D,C,X){if(C)return _.kt(D);var c;return(c=_.r3(D))!=null?c:X?"":void 0};
x_w=function(D){D!=null&&(D=D.JSC$8985_value_||"",D=typeof D==="string"?D:new Uint8Array(D));return D};
LpU=function(D,C){if(/-[a-z]/.test(C))return null;if(_.iFC&&D.dataset){if(_.udo()&&!(C in D.dataset))return null;D=D.dataset[C];return D===void 0?null:D}return D.getAttribute("data-"+_.gl(C))};
m_P=function(){var D=s31;_.Df("yt.ads.biscotti.getId_")||_.$h("yt.ads.biscotti.getId_",D)};
eWX=function(D){_.$h("yt.ads.biscotti.lastId_",D)};
t6w=function(){var D={};for(_.zV=new E7w(D.handleError===void 0?_.qN:D.handleError,D.logEvent===void 0?_.zu:D.logEvent);_.jq.length>0;)switch(D=_.jq.shift(),D.type){case "ERROR":_.zV.logError(D.payload);break;case "EVENT":_.zV.logEvent(D.eventType,D.payload)}};
N2G=function(D,C,X){return _.OeR(function(c){return X?c.userIdentifier!==void 0&&!D.includes(c.userIdentifier)&&X.includes(c.publicName):c.userIdentifier!==void 0&&!D.includes(c.userIdentifier)},C)};
Y4w=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return C=_.wT("YtIdbMeta hasAnyMeta other"),c.yield(_.OeR(function(W){return W.userIdentifier!==void 0&&W.userIdentifier!==C},D),2);
X=c.yieldResult;return c.return(X.length>0)})};
n7G=function(D,C){yvG||(yvG=_.qX.addLowPriorityJob(function(){var X,c,W,p,g;return _.I(function(a){switch(a.nextAddress){case 1:return a.yield(_.vz(),2);case 2:X=a.yieldResult;if(!X)return a.return();c=!0;_.KK(a,3);return a.yield(N2G(D,X,C),5);case 5:W=a.yieldResult;if(!W.length){c=!1;a.jumpTo(6);break}p=W[0];return a.yield(_.UH(p.actualName),7);case 7:return a.yield(_.Ip(p.actualName,X),6);case 6:_.SR(a,4);break;case 3:g=_.Eu(a),_.MG(g),c=!1;case 4:_.qX.cancelJob(yvG),yvG=0,c&&n7G(D,C),_.t_(a)}})}))};
wcw=function(){var D;return _.I(function(C){return C.nextAddress==1?C.yield(_.vz(),2):(D=C.yieldResult)?C.return(Y4w(D)):C.return(!1)})};
Fpt=function(D){var C=100;C=C===void 0?500:C;var X,c,W,p,g,a;return _.I(function(O){return O.nextAddress==1?(X=_.q6("INNERTUBE_CONTEXT_CLIENT_NAME",0),c=[X,(0,_.kh)()-2592E6],W=[X,(0,_.kh)()],p=IDBKeyRange.bound(c,W),O.yield(_.FZn(D),2)):O.nextAddress!=3?(g=O.yieldResult,a=[],O.yield(_.ap(g,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(P){a.length=0;return _.ul(P.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:p,direction:"prev"},function(k){if(k.getValue()&&a.length<
C)return a.push(k.getValue()),k.delete().then(function(){return k.continue()})})}),3)):O.return(a)})};
Zbt=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.vz(),2);D=C.yieldResult;if(!D||!_.FL()&&!_.b("nwl_init_require_datasync_id_killswitch")||!_.o7d())return C.jumpTo(0);_.pc5=!0;_.Wpt.isNwlInitialized=_.pc5;return C.yield(_.FnM().awaitInitialization(),0)})};
KB=function(D,C){_.rvd[D]=!0;var X=_.uw();X&&X.publish.apply(X,arguments);_.rvd[D]=!1};
V63=function(){if(_.DwZ()&&!G2G){var D=function(X){X=X.data;if(X.op==="serializedGelBatch"){var c=_.KlW.get(X.key);c&&(_.xnF(X.serializedBatch,c.client,c.resolve,c.networklessOptions,c.isIsolated,c.useVSSEndpoint,c.dangerousLogToVisitorSession,c.requestsOutstanding),_.KlW.delete(X.key))}},C=_.lgJ();
C&&(C.addEventListener("message",D),C.onerror=function(){_.KlW.clear()});
G2G=!0}};
T23=function(){this.relativeTimeStart_=_.ok()};
HbG=function(D,C){D!=null&&this.append.apply(this,arguments)};
Jvp=function(){return _.NF("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
zWG=function(D,C,X){X=X===void 0?!1:X;var c,W,p,g,a;return _.I(function(O){switch(O.nextAddress){case 1:_.y3("SOCS",D,34128E3,"youtube.com",!0);if(_.Au)return W=fetch(C,{method:"POST",mode:_.Zu(C),credentials:_.Fo(C),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),p=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Zu("/upgrade_visitor_cookie?eom=1"),credentials:_.Fo("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),O.yield(Promise.all([W,p]).then(function(P){return P[1]}),5);
fetch(C,{method:"POST",mode:_.Zu(C),credentials:_.Fo(C),cache:"no-store",headers:{"Content-Type":"text/plain"}});return O.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Zu("/upgrade_visitor_cookie?eom=1"),credentials:_.Fo("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:c=O.yieldResult;O.jumpTo(3);break;case 5:c=g=O.yieldResult;case 3:if(!c.ok)throw Error("uf");return O.yield(c.text(),7);case 7:a=O.yieldResult,
!a.includes('"state_switch":true')&&!X||a.includes("skip_reload_for_test")||window.location.reload(),_.t_(O)}})};
j33=function(D){return _.I(function(C){return C.nextAddress==1?C.yield(zWG(D.socsCookie,D.savePreferenceUrl,!0),2):C.return()})};
M6N=function(D){return _.I(function(C){return C.nextAddress==1?C.yield(zWG(D.socsCookie,D.savePreferenceUrl),2):C.return()})};
RW3=function(D){D=D.xhr.responseText;if(!_.Wo(D,")]}'"))throw new q43;D=JSON.parse(D.substr(4));if((D.type||1)>1)throw new q43;D=D.id;eWX(D);fRt=_.KU(D);d_o(18E5,2);return D};
Dno=function(D,C){C=new lRw(C);eWX("");fRt=_.H9q(C);D>0&&d_o(12E4,D-1);throw C;};
d_o=function(D,C){_.xz(function(){_.mw3().then(RW3,function(X){return Dno(C,X)}).thenCatch(_.e$)},D)};
s31=function(){var D=_.tYP();if(D!==void 0)return _.x7(D);fRt||(fRt=_.mw3().then(RW3).thenCatch(function(C){return Dno(2,C)}));
return fRt};
CuX=function(){var D=document;return _.Yj(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(C){return"on"+C.toLowerCase()in D})};
X01=function(D){D.addEventListener("click",function(C){var X=C.target;X&&X.getAttribute("href")&&(X=X.getAttribute("href"),_.ct(window,X,"_blank"),C.preventDefault(),C.stopImmediatePropagation())})};
clU=function(D){var C,X,c,W=(c=(X=((C=D.mainDownloadsListEntity)!=null?C:{})[_.Bph])==null?void 0:X.refresh)!=null?c:"",p;D=(p=D.refresh)==null?void 0:p[W];W=D!=null?D:{};return(W==null?0:W.refreshTime)?Number(W==null?void 0:W.refreshTime):0};
o_t=function(D,C){var X=_.Ke(D);return C.every(function(c){var W;c=c==null?void 0:(W=c.playbackDataEntity)==null?void 0:W.key;if(!c)return!1;W=_.gJ(_.pe(c).entityId,"mainVideoEntity");return!!X[W]})};
Wl1=function(D){D=_.B_(D.entities);return _.yhW(D).length};
p0k=function(D,C){if(C){var X;D=(X=_.aI(D.entities,"downloadQualityPickerEntity",C))!=null?X:void 0}else D=void 0;return D};
SIp=function(D){var C=document.getElementsByTagName("ytd-enforcement-message-view-model");C.length===0||getComputedStyle(C[0]).display==="none"?D(0,"p.h_"):D(1,"p.h_")};
a53=function(){Unt=0;var D=[_.ij(!0)];g_t&&_.Ct(g_t,"yt-window-resized",D)};
I5t=function(){Unt||(Unt=_.qX.addLowPriorityJob(a53,200))};
Puw=function(){OIU=0;Alp=_.kv4(document);var D=[Alp];g_t&&_.Ct(g_t,"yt-window-scrolled",D)};
$nk=function(){OIU||(OIU=_.qX.addLowPriorityJob(Puw,200))};
iI1=function(D){D=D===void 0?null:D;v_G.push(_.$l(window,"resize",I5t));v_G.push(_.$l(window,"scroll",$nk));D&&(g_t=D)};
uA1=function(){var D=_.bj.getLocalStorage();D&&krp(D,D.mechanism.__iterator__(!0))};
Q_G=function(D){_.I(function(C){if(C.nextAddress==1)return C.yield(D.delete("yt-appshell-assets"),2);_.t_(C)})};
B$6=function(D){return _.gD((0,_.M9N)(),D)};
rlt=function(){var D;_.I(function(C){return C.nextAddress==1?C.yield(hQ.getInstance(),2):(D=C.yieldResult)?C.yield(bIN(D),0):C.jumpTo(0)})};
h7t=function(){var D;_.I(function(C){return C.nextAddress==1?C.yield(xW.getInstance(),2):(D=C.yieldResult)?C.yield(KlP(D),0):C.jumpTo(0)})};
xnU=function(D){Q_G(D);rlt();h7t()};
Llt=function(D){var C,X;return _.I(function(c){if(c.nextAddress==1)return c.yield(_.hsm(D),2);if(C=c.yieldResult){var W;a:{if(C.headers&&(W=C.headers.get("date"))&&(W=Date.parse(W),!isNaN(W))){W=Math.round((0,_.kh)()-W);break a}W=-1}X=W;if(X>-1)return c.return(X)}return c.return(-1)})};
s_t=function(){var D=_.co.caches,C=_.dq("IS_SHELL_LOAD"),X,c;_.I(function(W){if(W.nextAddress==1)return X=-1,C?W.yield(Llt(D),3):(c=_.QP(),X=Math.round((0,_.kh)()-c),W.jumpTo(2));W.nextAddress!=2&&(X=W.yieldResult);X>=0&&X<2147483648&&_.hZ({appInstallDataAgeMs:X});_.t_(W)})};
mnt=function(D){var C=_.Xg(_.co.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(c){var W=C.JSC$10197_queryData_.getValues(c);if(W==null?0:W.length)X[c]=W});
return _.uo(D,new Map(Object.entries(X)))};
e7k=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
E_N=function(D){if(_.H9m()){var C=Object.keys(window.localStorage);C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=e7k(X);c===void 0||D.includes(c)||self.localStorage.removeItem(X)}}};
t5Y=function(){if(!_.H9m())return!1;var D=_.wT(),C=Object.keys(window.localStorage);C=_.U(C);for(var X=C.next();!X.done;X=C.next())if(X=e7k(X.value),X!==void 0&&X!==D)return!0;return!1};
N$X=function(D){return _.yAG("NotificationsDisabled",D)};
YIG=function(){return Notification.permission!="granted"?Promise.resolve():_.RcP().then(function(D){return D?D.pushManager.getSubscription().then(function(C){if(C)return Promise.resolve();C={userVisibleOnly:!0,applicationServerKey:_.Dk("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return D.pushManager.subscribe(C).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
ylP=function(D){return _.RcP().then(function(C){if(!C||!C.active)return Promise.reject(new _.Zf("serviceworker.postMessage",D,C));try{return C.active.postMessage(D),Promise.resolve()}catch(X){return Promise.reject(X)}})};
n_U=function(){ylP({type:"notifications_register",data:_.q6("ID_TOKEN")})};
ZIp=function(){var D={isWide:_.Yz.get("wide","0")==="1"},C=_.PE();if(C=C.getFlag(165)||C.getFlag(174))D.theme=_.FU(!0);if(_.U0o()){var X=_.wL()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D.systemTheme=X}!C&&_.b("parent_tools_enable_app_settings")&&_.UY(window.location.href).theme!==void 0&&(D.theme=_.FU());if((C=w0k)?!_.ZI.equals(C,D):D)C={currentValue:D},Fl6&&(C.timeSinceLastSnapshotSecs=Math.round(((0,_.kh)()-Fl6)/1E3)),w0k&&(C.previousValue=w0k),_.zu("appSettingsCaptured",C),w0k=
D,Fl6=(0,_.kh)()};
GrG=function(){if(!_.dq("LOGGED_IN"))return Promise.resolve(!1);var D=_.bX("service_worker_push_force_notification_prompt_tag");return D?_.UR("PromptTags").then(function(C){if(!C)return!0;var X=[];try{X=JSON.parse(C)}catch(c){return!1}return X&&X.indexOf(D)==-1}):Promise.resolve(!1)};
V5t=function(){var D=_.BK("service_worker_push_prompt_delay_microseconds");return D?_.UR("PromptTime").then(function(C){return Promise.resolve(Date.now()-D>(C||0))}):Promise.resolve(!0)};
T$k=function(){var D=_.BK("service_worker_push_logged_out_prompt_watches");return D==-1?Promise.resolve(!1):_.UR("WatchCount").then(function(C){return C>=D})};
HIG=function(){var D=_.cX(document,"yt-push-prompt-modal-bg");D&&_.ep(D)};
Jlw=function(){return _.BK("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.UR("PromptCount").then(function(D){D||(D=0);return Promise.resolve(D<_.BK("service_worker_push_prompt_cap"))})};
z7N=function(D){return _.dq("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.dq("LOGGED_IN")&&(D===void 0?0:D)?GrG().then(function(C){if(C)return!0;C=[Jlw(),V5t()];_.dq("LOGGED_IN")||C.push(T$k());return Promise.all(C).then(function(X){return X.every(function(c){return c})})}):Promise.resolve(!1)};
j_N=function(){_.UR("PromptCount").then(function(D){return _.yAG("PromptCount",D+1)}).then(function(){return _.yAG("PromptTime",Date.now())}).then(function(){var D=_.bX("service_worker_push_force_notification_prompt_tag");
if(D)return _.UR("PromptTags").then(function(C){var X=[];if(C)try{X=JSON.parse(C)}catch(c){return!1}X||(X=[]);X.push(D);return _.yAG("PromptTags",JSON.stringify(X))})})};
qIX=function(){M5Y||HIG()};
f56=function(D){D.style.zIndex=2147483648;D.style.pointerEvents="auto";D.style.backgroundColor="rgba(0, 0, 0, 0.6)";D.style.width="100%";D.style.height="100vh";D.style.position="absolute";D.style.top="0";D.style.left="0";D.style.border="none"};
dnG=function(){var D=_.cX(document,"yt-push-prompt-modal-bg");M5Y=_.b("service_worker_push_prompt_modal_ignore_click");D?f56(D):(D=_.FD("div",{id:"yt-push-prompt-modal-bg"}),f56(D),document.body.appendChild(D),_.k2m(document,"click",qIX))};
R7N=function(){var D=arguments;_.b("service_worker_push_prompt_modal_enable")&&dnG();return Notification.requestPermission().then(function(C){HIG();var X=document.getElementById("ticker");X&&(X.className=X.classList.remove("show"));if(C=="granted")return YIG().then(function(){N$X(!1);n_U();return Promise.resolve(!0)});
C=="denied"&&n_U();return Promise.resolve(!1)}).catch(function(){HIG();
return Promise.reject.apply(Promise,_.VB(D))})};
l5N=function(D){D=D===void 0?!1:D;var C=_.ADm().client;if(C&&C.browserVersion){var X=C.browserVersion,c=C.browserName=="CHROME"&&_.vo(X,"50.0.0")<0;C=C.browserName=="OPERA"&&_.vo(X,"42.0.0")<0;if(c||C)return Promise.resolve()}return _.CHt().then(function(W){if(!W)return Promise.resolve();W=YIG().then(function(){return ylP({type:"notifications_check_registration",data:_.q6("ID_TOKEN")})});
return Notification.permission!="default"?W.catch(function(){}):W.then(function(){return z7N(D)}).then(function(p){if(p)return j_N(),R7N().then(function(){})}).catch(function(){})})};
DH1=function(D){return _.lgk(D)?l5N():Promise.resolve()};
CKN=function(D){var C=D.installing||D.waiting;return D.active||!C?Promise.resolve(D):new Promise(function(X){var c=function(W){W=W.target;if(W.state==="activated"||W.state==="redundant")C.removeEventListener("statechange",c),X(D)};
C.addEventListener("statechange",c)})};
XXt=function(){var D=new _.L_R("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.O3(D,{mainAppWeb:_.Th()});var C=_.PmC;_.b("service_worker_forward_exp_params")&&(C=mnt(C));try{var X=_.vAF(C).catch(function(){_.AT(D,"FAILURE");return new Promise(function(){})});
_.b("service_worker_push_enabled")&&X.then(function(c){_.AT(D,"SUCCESS");return c}).then(CKN).then(DH1)}catch(c){if(_.AT(D,"FAILURE"),c.name!=="SecurityError")throw c;
}};
cGo=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&XXt()};
out=function(D,C){var X={};C&&(X.serializedYpcFamilyCreateLoggingParams=C);_.zu(D,X);_.je()};
WYt=function(D,C){var X={};X.serializedYpcRefundFlowLoggingParams=C;D&&(X.eventType=D);_.zu("ypcRefundFlowEvent",X);_.je()};
pX3=function(D){D&&_.kRr("transactionFlowSucceeded",D)};
SN6=function(D){D&&_.db("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
UHo=function(D){var C,X,c,W,p,g,a;_.I(function(O){if(O.nextAddress==1)return O.yield(_.cjt(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);C=[];return O.yield(_.S5.keys(),3)}X=O.yieldResult;c=_.U(X);for(W=c.next();!W.done;W=c.next())p=W.value,g=_.CZd(p),a=g.datasyncId,!a||D.includes(a)||C.push(_.S5.delete(p));return O.return(Promise.all(C).then(function(P){return P.some(function(k){return k})}))})};
guw=function(){var D,C,X,c,W,p,g;return _.I(function(a){if(a.nextAddress==1)return a.yield(_.cjt(),2);if(a.nextAddress!=3){if(!a.yieldResult)return a.return(!1);D=_.wT("cache contains other");return a.yield(_.S5.keys(),3)}C=a.yieldResult;X=_.U(C);for(c=X.next();!c.done;c=X.next())if(W=c.value,p=_.CZd(W),(g=p.datasyncId)&&g!==D)return a.return(!0);return a.return(!1)})};
awG=function(){var D=_.iX().resolve(_.vK(_.P7d));return D?D.getCurrentTime():0};
Iw6=function(){var D,C,X,c,W,p,g,a,O,P,k,u,Q,B;return _.I(function(K){switch(K.nextAddress){case 1:D={},C=_.p4W(),X=_.U(Object.entries(C)),c=X.next();case 4:if(c.done){K.jumpTo(3);break}W=c.value;p=_.U(W);g=p.next().value;a=p.next().value;O=g;P=a;if(!P){K.jumpTo(5);break}return K.yield(P(),8);case 8:D[O]=K.yieldResult;case 5:c=X.next();K.jumpTo(4);break;case 2:k=_.U(),u=k.next();case 9:if(u.done){K.jumpTo(3);break}Q=u.value;B=C[Q];if(!B){K.jumpTo(10);break}return K.yield(B(),13);case 13:D[Q]=K.yieldResult;
case 10:u=k.next();K.jumpTo(9);break;case 3:return K.return(D)}})};
OTk=function(){var D;_.I(function(C){if(C.nextAddress==1)return C.yield(Iw6(),2);D=C.yieldResult;return C.yield(navigator.clipboard.writeText(JSON.stringify(D,null,2)),0)})};
AGt=function(D,C){return _.aI(D.entities,"superThanksSelectedTierEntity",C)};
PKt=function(D,C){return{popup:{searchSuggestionReportDialog:{searchQuery:D,title:_.I7("SBOX_INAPPROPRIATE_TITLE"),suggestions:C,categoryLabel:_.I7("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.I7("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.I7("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.I7("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.I7("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.I7("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.I7("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.I7("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.I7("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.I7("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
$H1=function(D){var C,X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J;return _.I(function(T){switch(T.nextAddress){case 1:return T.yield(_.AX(),2);case 2:return(C=T.yieldResult)?T.yield(_.$1m(C),3):T.return();case 3:X=T.yieldResult;if(!X)return T.return();W=((c=X.offlineVideos)==null?void 0:c.length)||0;g=((p=X.offlinePlaylists)==null?void 0:p.length)||0;if(W===0&&g===0)return T.return();a=0;if(X.offlineVideos)for(O=_.U(X.offlineVideos),P=O.next();!P.done;P=O.next())k=P.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
k.videoState&&(a+=1);D.offline_videos_count=W.toString();_.b("kevlar_log_offline_current_network_type_ks")||(D.offline_current_network_type=(u=_.VyZ())!=null?u:"CONN_INVALID");_.b("kevlar_log_updated_time_for_smart_downloads")&&(Q=_.fe().getState().entities,B=_.s1(Q),K=clU(Q),D.offline_smart_downloads_last_sync_time_ms=B.toString(),D.offline_smart_downloads_next_sync_time_ms=K.toString());D.offline_videos_playable=a.toString();D.offline_playlists_count=g.toString();X.offlineVideos&&(L=X.offlineVideos.reduce(function(H,
q){q.downloadedBytes&&(H+=Number(q.downloadedBytes));return H},0).toString())&&(D.offline_used_disk_space_bytes=L);
if(!((t=navigator)==null?0:(Y=t.storage)==null?0:Y.estimate)){T.jumpTo(4);break}return T.yield(navigator.storage.estimate(),5);case 5:y=T.yieldResult,D.offline_free_disk_space_bytes=(((J=y)==null?void 0:J.quota)||0).toString();case 4:D.offline_client_state=JSON.stringify(X),_.t_(T)}})};
vuo=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
iT6=function(D){if(_.nsJ()){var C=Object.keys(window.sessionStorage);C=_.U(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var c=vuo(X);c===void 0||D.includes(c)||self.sessionStorage.removeItem(X)}}};
kUP=function(){if(!_.nsJ())return!1;var D=_.wT(),C=Object.keys(window.sessionStorage);C=_.U(C);for(var X=C.next();!X.done;X=C.next())if(X=vuo(X.value),X!==void 0&&X!==D)return!0;return!1};
LB=function(D,C,X){(_.b("desktop_keyboard_shortcut_usage_log")||X&&_.b("web_shorts_keyboard_shortcut_usage_log"))&&(C?_.vU.get(D):_.$W.get(D))&&(D=C?_.HG1.get(D):_.Tit.get(D))&&_.HE(_.LN(),D)};
uvo=function(D,C){return D.findIndex(function(X){return X.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(C.keyCode):!1};
Qa6=function(D,C){C.stack&&(D.stack+="\n"+C.stack);return D};
hdG=function(D){var C=BU3(D,"Content-Type");if(!C)return null;C=C.toLowerCase();if(C.startsWith("application/json"))return C.startsWith("application/json+protobuf")?new bTX:new _.xY;if(C.startsWith("application/x-protobuf")){D=BU3(D,"Content-Transfer-Encoding");if(!D)return new rGt;if(D.toLowerCase()=="base64")return new KY6}return null};
YNp=function(D,C,X,c){var W=new xHo(function(a,O){return LYt.has(O)?a.sentinel==="gal"&&a.event!==void 0:!1},function(a){a.event?(a=saP(a.event),a=!a||mHG(c,a)?!0:_.BT(D.lastEvent,so,2,mc)?!_.BT(a,eH,1,mc)&&!_.BT(a,so,2,mc):!_.BT(a,eH,1,mc)&&!_.BT(a,so,3,mc)):a=!0;
return a});
X=_.uo(D.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",edG(X)]]));if(D.nestedOrigins!==void 0)for(var p=_.U(D.nestedOrigins),g=p.next();!g.done;g=p.next())X=_.uo(X,new Map([["origin",g.value]]));return Eu1(W,X,C).then(function(a){a=trw(a.event);if(_.BT(a,eH,1,mc)){var O,P=(O=_.yO(a,eH,1,mc))==null?void 0:_.tu(O,2);P&&c.JSC$19909_logErrorEvent(NUN(P));O=_.yO(a,eH,1,mc);_.tu(O,2)===4?(a=_.yO(a,eH,1,mc),a={statusCode:11,statusMessage:_.EG(a,
3)}):(a=_.yO(a,eH,1,mc),a={statusCode:12,statusMessage:_.EG(a,3)});return a}_.BT(a,so,3,mc)?(a=_.yO(a,so,3,mc),a={statusCode:1,consentLanguageKeys:_.EG(a,2)}):a={statusCode:1};return a}).catch(function(a){return a.errorCode!==void 0?{statusCode:a.errorCode,
statusMessage:a.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
FYw=function(D){var C={};if(D===void 0||D===null)return C;D.getToken()!==void 0&&yGw(D.getToken())&&yGw(D.getToken()).length>0&&(C.scopes=new Set(yGw(D.getToken())));D.getToken()!==void 0&&nuG(D.getToken())&&nuG(D.getToken()).length>0&&(C.capabilities=new Set(nuG(D.getToken())));_.EG(D,3)!==void 0&&(C.consistencyKey=_.EG(D,3));D.getName()!==void 0&&D.getName()!==""&&(C.linkName=D.getName());_.QO(D,wXo,4)&&(D=_.Bz(D,wXo,4),D=Object.assign({},_.EG(D,1)&&{userId:_.EG(D,1)},_.EG(D,2)&&{displayName:_.EG(D,
2)},_.EG(D,3)&&{email:_.EG(D,3)},_.EG(D,5)&&{username:_.EG(D,5)},_.EG(D,4)&&{profilePicture:_.EG(D,4)}),C.profile=D);return C};
ZTN=function(D,C){var X=D.flowParams,c;return{serviceId:X.serviceId,sessionId:X.sessionId,currentFlow:D.currentFlow,googleScopesString:C,linkingSessionSerialized:D.session.serialize(),consentLanguageKeys:X.consentLanguageKeys,callerState:D.callerState,dynamicUrlParameters:X.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(c=X.partnerConfigMinReadTimestamp)==null?void 0:c.serialize()}};
JG6=function(D){var C=D.googleScopes!==void 0?Array.from(D.googleScopes).join(","):"";GUG(ZTN(D,C),D.config.localStorage);C=VrG(D);return C===null?Promise.resolve(TUN):C.start().then(function(X){var c,W=(c=X.link)==null?void 0:c.consistencyKey;return X.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&W!==void 0?(c=D.flowParams,HTp(c.serviceId,c.sessionId,D.googleScopes,W,c.galService,D.config,X)):X})};
jaG=function(D){var C=VrG(D);return C===null?Promise.resolve(zdN({statusCode:7,statusMessage:"Failed to create flow object"},D.callerState)):C.complete().then(function(X){var c,W=(c=X.link)==null?void 0:c.consistencyKey;return X.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&W!==void 0?(c=D.flowParams,HTp(c.serviceId,c.sessionId,D.googleScopes,W,c.galService,D.config,X)):zdN(X,D.callerState)},function(X){return zdN({statusCode:12,
statusMessage:"Failed to complete the flow: "+X.message},D.callerState)})};
HTp=function(D,C,X,c,W,p,g){return MrY(W,{serviceId:D,sessionId:C,googleScopes:X,consistencyKey:c}).then(function(){return g},function(a){return W.deleteLink({serviceId:D,
sessionId:C,accountLinkingEntryPoint:p.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+a.message}},function(O){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+O.message}})})};
VrG=function(D){switch(D.currentFlow){case 1:var C=D.flowParams;D=_.Bz(D.session,qNp,1);return fwU.createOAuthFlow(C,D);case 2:case 3:return C=D.flowParams,D=_.Bz(D.session,dHU,6),Rdk.createStreamlinedFlow(C,D);default:return null}};
Dot=function(D,C){D===2&&(D=3);var X=0;lwp.indexOf(D)!==-1&&(X=lwp.indexOf(D)+1);for(D=X;D<lwp.length;D++)if(C.has(lwp[D]))return lwp[D]};
cmk=function(D){var C=D.serviceId;var X=D.sessionId;var c=D.config;var W=D.galService;var p=D.capabilities;var g=D.scopes;var a=D.loginHint;var O=D.callerState;var P=D.consentLanguageKeys;var k=D.linkName;var u=D.dynamicUrlParameters;var Q=D.partnerConfigMinReadTimestamp;D=c.dataUsageNoticeConfig?c.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return W.startLinkingSession({serviceId:C,sessionId:X,capabilities:p,scopes:g,loginHint:a,callerState:O,supportedFlows:Cyp(c.supportedFlows),completionUrl:c.completionUrl,
accountLinkingEntryPoint:c.accountLinkingEntryPoint,consentLanguageKeys:P,dataUsageNoticeConfig:D,linkName:k,dynamicUrlParameters:u,partnerConfigMinReadTimestamp:Q}).then(function(B){return new XCG(C,X,c,W,B,void 0,O,P,u,Q)})};
gfp=function(D,C,X){var c=(new ofG(C.localStorage)).getSession(D);if(c===null)return Promise.resolve({statusCode:2});WdP(D,C.localStorage);var W=pCk(c.linkingSessionSerialized),p=c.googleScopesString!==""&&c.googleScopesString!==void 0?new Set(c.googleScopesString.split(",")):void 0,g=c.partnerConfigMinReadTimestampSerialized?SWt(c.partnerConfigMinReadTimestampSerialized):void 0;return UoY(new XCG(D,c.sessionId,C,X,W,p,c.callerState,c.consentLanguageKeys,c.dynamicUrlParameters,g),c.currentFlow,c.consentLanguageKeys)};
GUG=function(D,C){C=new ofG(C);C.storage!==null&&C.storage.set("SAVED_SESSION",D)};
WdP=function(D,C){C=new ofG(C);if(C.storage!==null){var X=C.storage.get("SAVED_SESSION");X!==void 0&&X.serviceId===D&&C.storage.remove("SAVED_SESSION")}};
Cyp=function(D){var C=new Set;D=_.U(D);for(var X=D.next();!X.done;X=D.next())X=X.value,X!==1&&aTt.has(X)&&C.add(aTt.get(X));return C};
zdN=function(D,C){C!==void 0&&(D.callerState=C);return D};
IT1=function(D){switch(D){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
Pyw=function(D){return new Omt(D,new Am1(D))};
im3=function(D,C){C=C===void 0?!1:C;var X=document.createElement("div");D&&(X.style.transform="scaleX(-1)");X.style.backgroundColor=C?"rgba(138,180,248,.24)":"#e8f0fe";X.style.height="4px";X.style.overflow="hidden";X.style.position="absolute";X.style.top="0";X.style.width="100%";X.style.zIndex="1500";X.setAttribute("aria-label","Loading");X.setAttribute("aria-live","polite");D=document.createElement("style");D.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(D);D=$o1();D.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";D.style.left="-145.166611%";var c=vf1(C);c.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";D.appendChild(c);X.appendChild(D);D=$o1();D.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";D.style.left="-54.888891%";C=vf1(C);C.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
D.appendChild(C);X.appendChild(D);return X};
$o1=function(){var D=document.createElement("div");D.style.height="100%";D.style.position="absolute";D.style.transformOrigin="top left";D.style.width="100%";return D};
vf1=function(D){var C=document.createElement("span");C.style.borderTop=D?"4px solid #669df6":"4px solid #4285f4";C.style.display="inline-block";C.style.position="absolute";C.style.width="100%";return C};
ktN=function(D){return D==null?void 0:_.hix(D).valueOf()};
bmt=function(D){var C=document.body,X=!1,c=function(){X||(X=!0,u13(W,p),setTimeout(function(){C.removeChild(p);C.removeChild(W)},150))},W=Q9k(D,getComputedStyle(C).direction==="rtl",c),p=BEk(c);
u13(W,p);C.appendChild(p);C.appendChild(W);window.requestAnimationFrame(function(){p.style.opacity="1";W.style.opacity="1";W.style.transform="translate(-50%, -50%) scale(1)";W.children[0].focus()})};
Q9k=function(D,C,X){var c=document.createElement("div");c.style.position="fixed";c.style.alignItems="center";c.style.backgroundColor=D?"rgb(32, 33, 36)":"white";c.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";c.style.display="flex";c.style.flexDirection="column";c.style.justifyContent="center";c.style.left="50%";c.style.top="50%";c.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";c.style.zIndex="2002";document.body.clientWidth>=
660?(c.style.borderRadius="8px",c.style.minHeight="220px",c.style.maxHeight="90%",c.style.maxWidth="90%",c.style.minWidth="540px"):(c.style.height="100%",c.style.width="100%");c.setAttribute("aria-label","Error");c.setAttribute("aria-modal","true");c.setAttribute("role","alertdialog");c.addEventListener("keydown",function(p){p.key==="Escape"&&X()});
C=rmo(D,C,X);c.appendChild(Kdt(C));c.appendChild(C);var W=document.createElement("img");W.src=D?"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";W.style.height="72px";W.style.width="72px";W.style.color="#9aa0a6";W.setAttribute("alt","");c.appendChild(W);W=document.createElement("h1");W.textContent="Something went wrong.  Try again.";
W.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";W.style.lineHeight="24px";W.style.fontSize="16px";W.style.textAlign="center";W.style.letterSpacing="0.1px";W.style.color=D?"rgb(232,234,237)":"#3c4043";c.appendChild(W);c.appendChild(Kdt(C));return c};
rmo=function(D,C,X){var c=document.createElement("button");c.style.backgroundColor="transparent";c.style.border="none";c.style.borderRadius="50%";c.style.cursor="pointer";c.style.outline="none";c.style.padding="12px";c.setAttribute("aria-label","Close dialog");c.style.position="absolute";c.style.top="0";C?c.style.right="0":c.style.left="0";c.addEventListener("focus",function(){c.style.backgroundColor=D?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
c.addEventListener("blur",function(){c.style.backgroundColor="transparent"});
c.addEventListener("mouseenter",function(){c.style.backgroundColor=D?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
c.addEventListener("mouseleave",function(){c.style.backgroundColor="transparent"});
c.addEventListener("click",X);c.addEventListener("keydown",function(W){W.key!=="Enter"&&W.key!=="Space"||X()});
C=document.createElement("img");C.src=D?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";C.style.display="block";C.style.height="24px";C.style.width="24px";C.setAttribute("alt","");c.appendChild(C);return c};
Kdt=function(D){var C=document.createElement("div");C.setAttribute("tabindex","0");C.setAttribute("aria-hidden","true");C.addEventListener("focus",function(){return void D.focus()});
return C};
BEk=function(D){var C=document.createElement("div");C.style.backgroundColor="rgba(32,33,36,0.6)";C.style.bottom="0";C.style.left="0";C.style.position="fixed";C.style.right="0";C.style.top="0";C.style.transition=" opacity 150 ms linear";C.style.zIndex="2001";C.addEventListener("click",D);return C};
u13=function(D,C){C.style.opacity="0";D.style.opacity="0";D.style.transform="translate(-50%, -50%) scale(0.8)"};
h_6=function(D,C){D.sandbox&&D.sandbox.add&&(D.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),D.sandbox.add("allow-downloads"));D.src=C};
Eo=function(D){xoG.call(this,D)};
EfX=function(D,C){C=C===void 0?!1:C;this.parsedImageUrl_=null;D instanceof Ld6||(s9w==void 0&&(s9w=new mow),D=s9w.parse(D.toString(),C));D=this.parsedImageUrl_=D;D.JSC$20122_parsedOptions_==void 0&&((C=D.getOptions())||(C=""),D.JSC$20122_parsedOptions_=(new e_X).parse(C));xoG.call(this,D.JSC$20122_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;D=this.parsedImageUrl_;C=D.uri_.JSC$10197_port_;this.JSC$20124_domain_=D.uri_.JSC$10197_domain_+(C?":"+C:"");this.JSC$20124_query_=
this.parsedImageUrl_.uri_.JSC$10197_queryData_.toString()};
tbp=function(D){this.mode=4;this.data=D;this.parsedData=[];D=0;for(var C=this.data.length;D<C;D++){var X=[],c=this.data.charCodeAt(D);c>65536?(X[0]=240|(c&1835008)>>>18,X[1]=128|(c&258048)>>>12,X[2]=128|(c&4032)>>>6,X[3]=128|c&63):c>2048?(X[0]=224|(c&61440)>>>12,X[1]=128|(c&4032)>>>6,X[2]=128|c&63):c>128?(X[0]=192|(c&1984)>>>6,X[1]=128|c&63):X[0]=c;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))};
NE3=function(D){this.typeNumber=0;this.errorCorrectLevel=D===void 0?2:D;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
tQ=function(D,C){if(D.length==void 0)throw Error("Qk`"+D.length+"`"+C);for(var X=0;X<D.length&&D[X]==0;)X++;this.num=Array(D.length-X+C);for(C=0;C<D.length-X;C++)this.num[C]=D[C+X]};
YWw=function(D,C){this.totalCount=D;this.dataCount=C};
ymY=function(){this.buffer=[];this.length=0};
nf6=function(){var D=!1;if(_.rWr()){D=_.kj();var C="";_.xRr()?(C=/Windows (?:NT|Phone) ([0-9.]+)/,C=(D=C.exec(D))?D[1]:"0.0"):_.tW()?(C=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,C=(D=C.exec(D))&&D[1].replace(/_/g,".")):_.h3F()?(C=/Mac OS X ([0-9_.]+)/,C=(D=C.exec(D))?D[1].replace(/_/g,"."):"10"):_.AW(_.kj(),"KaiOS")?(C=/(?:KaiOS)\/(\S+)/i,C=(D=C.exec(D))&&D[1]):_.rWr()?(C=/Android\s+([^\);]+)(\)|;)/,C=(D=C.exec(D))&&D[1]):_.Lrn()&&(C=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,C=(D=C.exec(D))&&D[1]);D=
C||""}return D};
TEt=function(D,C){this.JSC$20147__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(C)for(var X in C)this.JSC$20147__htOption[X]=C[X];this.JSC$20147__htOption.useSVG&&(wCP=Fdp);this.JSC$20147__android=nf6();this.JSC$20147__el=D;this._oQRCode=null;this._oDrawing=new wCP(this.JSC$20147__el,this.JSC$20147__htOption);this.JSC$20147__htOption.text&&(D=this.JSC$20147__htOption.text,this._oQRCode=new NE3(this.JSC$20147__htOption.correctLevel),Zmt(this._oQRCode,
D),C=this._oQRCode,GtY(C,!1,Vbt(C)),this.JSC$20147__el.title=D,this._oDrawing.draw(this._oQRCode),this.makeImage())};
HmG=function(D,C,X,c,W){D.save();var p=new Path2D;p.roundRect(C,X,c*7,c*7,c*2);p.roundRect(C+c,X+c,c*5,c*5,c*1.3);p.roundRect(C+2*c,X+2*c,c*3,c*3,c);D.clip(p,"evenodd");D.fillStyle=W;D.fillRect(0,0,D.canvas.width,D.canvas.height);D.restore()};
NZ=function(D,C){if(typeof D!=="function")throw Error("Tk");return _.co.setTimeout(function(){D()},C)};
YW=function(){};
z_1=function(D,C,X,c,W){(new YW).debug("TestLoadImageWithRetries: "+W);if(c==0)X(!1);else{var p=W||0;c--;Jm6(D,C,function(g){g?X(!0):_.co.setTimeout(function(){z_1(D,C,X,c,p)},p)})}};
Jm6=function(D,C,X){var c=new YW;c.debug("TestLoadImage: loading "+D);var W=new Image;W.onload=function(){try{c.debug("TestLoadImage: loaded"),j9w(W),X(!0)}catch(p){}};
W.onerror=function(){try{c.debug("TestLoadImage: error"),j9w(W),X(!1)}catch(p){}};
W.onabort=function(){try{c.debug("TestLoadImage: abort"),j9w(W),X(!1)}catch(p){}};
W.ontimeout=function(){try{c.debug("TestLoadImage: timeout"),j9w(W),X(!1)}catch(p){}};
_.co.setTimeout(function(){if(W.ontimeout)W.ontimeout()},C);
W.src=D};
j9w=function(D){D.onload=null;D.onerror=null;D.onabort=null;D.ontimeout=null};
MbN=function(){this.front_=[];this.back_=[]};
qWN=function(D,C){this.action=D;this.params=C||{}};
fT1=function(D,C){_.nF.call(this);this.delay_=new _.FJ(this.JSC$20273_onTick_,0,this);_.hR(this,this.delay_);this.JSC$20271_interval_=5E3;this.nextTickTime_=0;if(typeof D==="function")C&&(D=(0,_.wo)(D,C));else if(D&&typeof D.handleEvent==="function")D=(0,_.wo)(D.handleEvent,D);else throw Error("ya");this.JSC$20273_listener_=D};
yW=function(D,C,X,c,W,p,g,a,O,P,k,u,Q,B,K){var L=this;X=X===void 0?!1:X;c=c===void 0?function(){return""}:c;
W=W===void 0?!1:W;p=p===void 0?!1:p;g=g===void 0?!1:g;a=a===void 0?function(){return _.WE({})}:a;
O=O===void 0?!1:O;k=k===void 0?!1:k;u=u===void 0?!1:u;Q=Q===void 0?!1:Q;B=B===void 0?!1:B;this.JSC$20274_pathPrefix_=D;this.defaultQueryParams_=C;this.pubsub_=new _.tg;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!K)?K(function(){L.safeReconnect_()}):new fT1(this.safeReconnect_,this);
this.JSC$20274_channel_=null;this.JSC$20274_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20274_pendingMessages_=[];this.enableAsyncTest_=X;this.JSC$20274_getXsrfToken_=c;this.useAsyncBrowserChannelHandler_=p;this.getAuthorizationHeader_=a;this.getAuthorizationHeaderSync_=P;this.enableCachedUpdateAuthorizationHeader_=g;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.WE();this.enableLoungeTokenRefresh_=W;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
O;this.disableMdxAuthForNonPlaybackMessages_=k;this.disableMdxAuthForAdMessages_=u;this.enableMdxAuthForConnectionOnly_=Q;this.disableMdxAuthForShortsMessages_=B;this.JSC$20274_channelOpenedCounter=new dok;this.JSC$20274_channelClosedCounter=new R_o;this.channelMessageSentCounter=new lTU;this.JSC$20274_channelMessageReceivedCounter=new D8t;this.JSC$20274_channelErrorCounter=new CTX;this.pendingMapsOnClosedCounter=new XRG;this.undeliveredMapsOnClosedCounter=new cTt};
owU=function(D){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;D=D||document.location.href;var C=Number(_.IQ(D)[4]||null)||"";C&&(this.port=":"+C);this.domain=_.OY(D)||"";D=_.kj();D.search("MSIE")>=0&&_.vo(D.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
nB=function(D){D=D||{};this.name=D.name||"";this.id=D.id||D.screenId||"";this.token=D.token||D.loungeToken||"";this.uuid=D.uuid||D.dialId||"";this.idType=D.screenIdType||"normal";this.secret=D.screenIdSecret||""};
WwG=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var C=Math.random()*16|0;return(D=="x"?C:C&3|8).toString(16)})};
pR1=function(D){return _.Gv(D,function(C){return{key:C.id,name:C.name}})};
S3G=function(D,C){return _.Yj(D,function(X){return X||C?!X!=!C?!1:X.id==C.id:!0})};
wK=function(D,C){return _.Yj(D,function(X){return U8p(X,C)})};
ATp=function(){var D=gwN(),C=at1();if(ItY()){var X=D,c=_.njn(X,C);c<0&&_.N5m(X,-(c+1),0,C)}D=On1(D);if(D.length==0)try{_.wE3("remote_sid")}catch(W){}else try{_.y3("remote_sid",D.join(","),-1)}catch(W){}};
gwN=function(){var D=_.KH("yt-remote-connected-devices")||[];D.sort(_.yW3);return D};
On1=function(D){if(D.length==0)return[];var C=D[0].indexOf("#"),X=C==-1?D[0]:D[0].substring(0,C);return _.Gv(D,function(c,W){return W==0?c:c.substring(X.length)})};
PT6=function(D){_.rL("yt-remote-connected-devices",D,86400)};
at1=function(){if($86)return $86;var D=_.KH("yt-remote-device-id");D||(D=WwG(),_.rL("yt-remote-device-id",D,31536E3));for(var C=gwN(),X=1,c=D;_.Zn(C,c);)X++,c=D+"#"+X;return $86=c};
vwo=function(){return _.KH("yt-remote-session-browser-channel")};
ItY=function(){return _.KH("yt-remote-session-screen-id")};
uxw=function(D){D.length>5&&(D=D.slice(D.length-5));var C=_.Gv(inX(),function(c){return c.loungeToken}),X=_.Gv(D,function(c){return c.loungeToken});
_.GOJ(X,function(c){return!_.Zn(C,c)})&&k_P();
_.rL("yt-remote-local-screens",D,31536E3)};
inX=function(){return _.KH("yt-remote-local-screens")||[]};
k_P=function(){_.rL("yt-remote-lounge-token-expiration",!0,86400)};
Q2P=function(D){D||(_.h9("yt-remote-session-screen-id"),_.h9("yt-remote-session-video-id"));ATp();D=gwN();_.VF(D,at1());PT6(D)};
bnt=function(){BB1();return FF?!!FF.get("yt-remote-use-staging-server"):!1};
BB1=function(){if(!FF){var D=_.Jg();D&&(FF=new _.GV(D))}};
x8U=function(D,C,X,c,W){X=X===void 0?function(){return""}:X;
var p=function(){return new yW(Zj(D,"/bc"),C,!1,X,c)};
return _.b("enable_mdx_web_channel_desktop")?new rTU(function(){return new KwX(Zj(D,"/wc"),C,X)}):new hDG(p,W)};
eDk=function(){var D=Lwp;s2X();G9.push(D);m81()};
VW=function(D,C){s2X();var X=Ewk(D,String(C));G9.length==0?tXN(X):(m81(),_.pC(G9,function(c){c(X)}))};
T9=function(D){VW("CP",D)};
s2X=function(){G9||(G9=_.Df("yt.mdx.remote.debug.handlers_")||[],_.$h("yt.mdx.remote.debug.handlers_",G9))};
tXN=function(D){var C=(NBt+1)%50;NBt=C;Y3w[C]=D;yTt||(yTt=C==49)};
m81=function(){var D=G9;if(Y3w[0]){var C=yTt?NBt:-1,X={};do X={record$jscomp$15:void 0},C=(C+1)%50,X.record$jscomp$15=Y3w[C],_.pC(D,function(c){return function(W){W(c.record$jscomp$15)}}(X));
while(C!=NBt);Y3w=Array(50);NBt=-1;yTt=!1}};
Ewk=function(D,C){var X=(Date.now()-nw3)/1E3;X.toFixed&&(X=X.toFixed(3));var c=[];c.push("[",X+"s","] ");c.push("[","yt.mdx.remote","] ");c.push(D+": "+C,"\n");return c.join("")};
HU=function(D){_.PU.call(this);this.JSC$20299_logName_=D;this.screens=[]};
z9=function(D){HU.call(this,"LocalScreenService");this.JSC$20306_http_=D;this.loungeTokenRefreshTimer_=NaN;JQ(this);this.info("Initializing with "+wRo(this.screens))};
jH=function(D,C){C=C===void 0?!1:C;HU.call(this,"ScreenService");this.JSC$20312_http_=D;this.disableAutomaticScreenCache_=C;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};FwN(this)};
MZ=function(D,C,X){_.PU.call(this);this.JSC$20316_logName_=X;this.JSC$20316_screenService_=D;this.receiver_=C;this.screen_=null};
CSU=function(D,C,X){X.disableCastApi?qZ("Cannot initialize because disabled by Mdx config."):ZnY()?G_3(D,X)&&(VXt(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?TB6(C):(window.__onGCastApiAvailable=function(c,W){c?TB6(C):(fB("Failed to load cast API: "+W),Hn3(!1),VXt(!1),_.h9("yt-remote-cast-available"),_.h9("yt-remote-cast-receiver"),JT6(),C(!1))},X.loadCastApiSetupScript?_.yy(zDp):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
j2p()>=60&&MXG():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?q3p():j2p()>=89?ftp():(d8P(),RDU(ltk.map(DyP))))):qZ("Cannot initialize because not running Chrome")};
JT6=function(){qZ("dispose");var D=dK();D&&D.dispose();_.$h("yt.mdx.remote.cloudview.instance_",null);XTt(!1);_.KpW(cu6);cu6.length=0};
o5X=function(){return!!_.KH("yt-remote-cast-installed")};
WXt=function(){var D=_.KH("yt-remote-cast-receiver");return D?D.friendlyName:null};
pTt=function(){qZ("clearCurrentReceiver");_.h9("yt-remote-cast-receiver")};
SGG=function(){return o5X()?dK()?dK().getCastSession():(fB("getCastSelector: Cast is not initialized."),null):(fB("getCastSelector: Cast API is not installed!"),null)};
g5t=function(D,C){Uyk()?dK().setConnectedScreenStatus(D,C):fB("setConnectedScreenStatus called before ready.")};
ZnY=function(){var D=_.kj().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.PT||D};
G_3=function(D,C){var X=!1;dK()||(D=new RT(D,C),D.subscribe("yt-remote-cast2-availability-change",function(c){_.rL("yt-remote-cast-available",c);KB("yt-remote-cast2-availability-change",c)}),D.subscribe("yt-remote-cast2-receiver-selected",function(c){qZ("onReceiverSelected: "+c.friendlyName);
_.rL("yt-remote-cast-receiver",c);KB("yt-remote-cast2-receiver-selected",c)}),D.subscribe("yt-remote-cast2-receiver-resumed",function(c){qZ("onReceiverResumed: "+c.friendlyName);
_.rL("yt-remote-cast-receiver",c);KB("yt-remote-cast2-receiver-resumed",c)}),D.subscribe("yt-remote-cast2-session-change",function(c){qZ("onSessionChange: "+aa6(c));
c||_.h9("yt-remote-cast-receiver");KB("yt-remote-cast2-session-change",c)}),_.$h("yt.mdx.remote.cloudview.instance_",D),X=!0);
qZ("cloudview.createSingleton_: "+X);return X};
dK=function(){return _.Df("yt.mdx.remote.cloudview.instance_")};
TB6=function(D){Hn3(!0);VXt(!1);dK().init(!1,function(C){C?(XTt(!0),_.hWJ("yt-remote-cast2-api-ready")):(fB("Failed to initialize cast API."),Hn3(!1),_.h9("yt-remote-cast-available"),_.h9("yt-remote-cast-receiver"),JT6());D(C)})};
qZ=function(D){VW("cloudview",D)};
fB=function(D){VW("cloudview",D)};
Hn3=function(D){qZ("setCastInstalled_ "+D);_.rL("yt-remote-cast-installed",D)};
Uyk=function(){return!!_.Df("yt.mdx.remote.cloudview.apiReady_")};
XTt=function(D){qZ("setApiReady_ "+D);_.$h("yt.mdx.remote.cloudview.apiReady_",D)};
VXt=function(D){_.$h("yt.mdx.remote.cloudview.initializing_",D)};
l7=function(D){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(D)};
B1t=function(D){BB1();if(!FF||!FF.get("yt-remote-disable-remote-module-for-dev")){D=_.q6("MDX_CONFIG")||D;uA1();ATp();Iat||(Iat=new owU(D?D.loungeApiHost:void 0),bnt()&&(Iat.basePath="/api/loungedev"));DU||(DU=_.Df("yt.mdx.remote.deferredProxies_")||[],_.$h("yt.mdx.remote.deferredProxies_",DU));ORN();var C=AuG();if(!C){var X=new jH(Iat,D?D.disableAutomaticScreenCache||!1:!1);_.$h("yt.mdx.remote.screenService_",X);C=AuG();var c={};D&&(c={appId:D.appId,disableDial:D.disableDial,theme:D.theme,loadCastApiSetupScript:D.loadCastApiSetupScript,
disableCastApi:D.disableCastApi,enableDialLoungeToken:D.enableDialLoungeToken,enableCastLoungeToken:D.enableCastLoungeToken,forceMirroring:D.forceMirroring});_.$h("yt.mdx.remote.enableConnectWithInitialState_",D?D.enableConnectWithInitialState||!1:!1);CSU(X,function(p){p?PSt()&&g5t(PSt(),"YouTube TV"):X.subscribe("onlineScreenChange",function(){KB("yt-remote-receiver-availability-change")})},c)}if(D&&!_.Df("yt.mdx.remote.initialized_")){_.$h("yt.mdx.remote.initialized_",!0);
$yG("Initializing: "+(0,_.Tg)(D));Cw.push(_.bw("yt-remote-cast2-api-ready",function(){KB("yt-remote-api-ready")}));
Cw.push(_.bw("yt-remote-cast2-availability-change",function(){KB("yt-remote-receiver-availability-change")}));
Cw.push(_.bw("yt-remote-cast2-receiver-selected",function(){v5Y();KB("yt-remote-auto-connect","cast-selector-receiver")}));
Cw.push(_.bw("yt-remote-cast2-receiver-resumed",function(){KB("yt-remote-receiver-resumed","cast-selector-receiver")}));
Cw.push(_.bw("yt-remote-cast2-session-change",iRp));Cw.push(_.bw("yt-remote-connection-change",function(p){p?g5t(PSt(),"YouTube TV"):kjo()||(g5t(null,null),pTt())}));
Cw.push(_.bw("yt-remote-cast2-session-failed",function(){KB("yt-remote-connection-failed")}));
c=uNk();D.isAuto&&(c.id+="#dial");var W=D.capabilities||[];W.length>0&&(c.capabilities=W);c.name=D.device;c.app=D.app;(D=D.theme)&&(c.theme=D);$yG(" -- with channel params: "+(0,_.Tg)(c));c?(_.rL("yt-remote-session-app",c.app),_.rL("yt-remote-session-name",c.name)):(_.h9("yt-remote-session-app"),_.h9("yt-remote-session-name"));_.$h("yt.mdx.remote.channelParams_",c);C.start();PSt()||Qkk()}}};
ruY=function(){var D=AuG().instance_.$_gos();var C=bRX();C&&XQ()&&(S3G(D,C)||D.push(C));return pR1(D)};
KXp=function(){var D=ruY(),C=bRX();C||(C=kjo());return _.Yj(D,function(X){return C&&U8p(C,X.key)?!0:!1})};
bRX=function(){var D=PSt();if(!D)return null;var C=AuG().getScreens();return wK(C,D)};
iRp=function(D){$yG("remote.onCastSessionChange_: "+aa6(D));if(D){var C=bRX();if(C&&C.id==D.id){if(g5t(C.id,"YouTube TV"),D.idType=="shortLived"&&(D=D.token))hYp&&(hYp.token=D),(C=XQ())&&C.setLoungeToken(D)}else C&&xyw(),LX3(D,1)}else XQ()&&xyw()};
xyw=function(){Uyk()?dK().stopSession():fB("stopSession called before API ready.");var D=XQ();D&&(D.disconnect(1),skX(null))};
myo=function(){var D=XQ();return D&&D.getProxyState()!=3?new cB(XQ(),void 0):null};
$yG=function(D){VW("remote",D)};
AuG=function(){if(!eYY){var D=_.Df("yt.mdx.remote.screenService_");eYY=D?new E5N(D):null}return eYY};
PSt=function(){return _.Df("yt.mdx.remote.currentScreenId_")};
tz1=function(D){_.$h("yt.mdx.remote.currentScreenId_",D)};
v5Y=function(){_.$h("yt.mdx.remote.connectData_",null)};
XQ=function(){return _.Df("yt.mdx.remote.connection_")};
skX=function(D){var C=XQ();v5Y();D||tz1("");_.$h("yt.mdx.remote.connection_",D);DU&&(_.pC(DU,function(X){X(D)}),DU.length=0);
C&&!D?KB("yt-remote-connection-change",!1):!C&&D&&KB("yt-remote-connection-change",!0)};
kjo=function(){var D=ItY();if(!D)return null;var C=AuG();if(!C)return null;C=C.getScreens();return wK(C,D)};
LX3=function(D,C){N1k?hYp=D:(tz1(D.id),D=new ol(Iat,D,uNk(),_.Df("yt.mdx.remote.enableConnectWithInitialState_")||!1),D.connect(C,_.Df("yt.mdx.remote.connectData_")),D.subscribe("beforeDisconnect",function(X){KB("yt-remote-before-disconnect",X)}),D.subscribe("beforeDispose",function(){XQ()&&skX(null)}),D.subscribe("browserChannelAuthError",function(){var X=bRX();
X&&X.idType=="shortLived"&&(Uyk()?dK().handleBrowserChannelAuthError():fB("refreshLoungeToken called before API ready."))}),skX(D))};
Qkk=function(){var D=kjo();D?($yG("Resume connection to: "+aa6(D)),LX3(D,0)):(Q2P(),pTt(),$yG("Skipping connecting because no session screen found."))};
ORN=function(){var D=uNk();if(_.ZI.isEmpty(D)){D=at1();var C=_.KH("yt-remote-session-name")||"",X=_.KH("yt-remote-session-app")||"";D={device:"REMOTE_CONTROL",id:D,name:C,app:X,mdxVersion:3};D.authuser=String(_.q6("SESSION_INDEX","0"));(C=_.q6("DELEGATED_SESSION_ID"))&&(D.pageId=String(C));_.$h("yt.mdx.remote.channelParams_",D)}};
uNk=function(){return _.Df("yt.mdx.remote.channelParams_")||{}};
YGt=function(){var D,C;return _.I(function(X){if(X.nextAddress==1)return(_.S4m()||_.b("use_new_nwl"))&&_.cvd().isNetworkAvailable()?X.yield(_.vz(),2):X.return();if(X.nextAddress!=3)return(D=X.yieldResult)?X.yield(Fpt(D),3):X.return();C=X.yieldResult;if(!C.length)return X.return();C.forEach(function(c){var W={timestamp:c.timestamp};c=c.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:c.appShellAssetLoadReport,options:W}:c.clientError?{payloadName:"clientError",payload:c.clientError,
options:W}:void 0;c&&_.zu(c.payloadName,c.payload,c.options)});
C.length===100&&_.qX.addLowPriorityJob(YGt);_.t_(X)})};
yuP=function(D){if(D.playerResponse){if(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(C){return!(!C||!C.mealbarPromoRenderer)}))&&D.mealbarPromoRenderer)return D.mealbarPromoRenderer}else if(D.response&&(D=D.response)&&D.overlay&&D.overlay.mealbarPromoRenderer)return D.overlay.mealbarPromoRenderer};
n5U=function(D){if(D.response){var C=D.response;if(C&&C.overlay&&C.overlay.tooltipRenderer)return C.overlay.tooltipRenderer}if(D.playerResponse&&(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(X){return!(!X||!X.tooltipRenderer)}))&&D.tooltipRenderer))return D.tooltipRenderer};
FXt=function(D){if(!wT6&&(D=D||_.q6("ZWIEBACK_PING_URLS"))&&D.length){wT6=!0;for(var C=0;C<D.length;C++)_.WL(D[C])}};
GjG=function(D){if(_.ZI.get(_.q6("PLAYER_VARS",{}),"privembed",!1)!="1"){D&&m_P();try{ZR6().then(function(){},function(){}),_.xz(GjG,18E5)}catch(C){_.Re(C)}}};
VzG=function(){var D=_.PE(),C=D.getFlag(119),X=window.devicePixelRatio>1;document.body&&_.cP(document.body,"exp-invert-logo")&&(X&&!_.cP(document.body,"inverted-hdpi")?_.q_(document.body,"inverted-hdpi"):!X&&_.cP(document.body,"inverted-hdpi")&&_.j6(document.body,"inverted-hdpi"));C!=X&&(_.$C(0,119,X),D.save())};
T1p=function(D){return D.filter(function(C){return"ypcGetCartEndpoint"in C||"ypcFixInstrumentEndpoint"in C})};
HR3=function(D){return D.filter(function(C){return!_.r(C,_.suq)})};
zYP=function(D,C){var X,c,W,p,g,a,O;_.I(function(P){switch(P.nextAddress){case 1:X=_.Vt.getInstance();c=_.I3.instance;W=_.Tr.instance;if(!W)return Ju6(D,c,C),P.return();_.KK(P,2);D.onLoadingCommand&&c.resolveCommand(D.onLoadingCommand);return P.yield(X.getCurrentPositionFromGeolocation(),4);case 4:p=P.yieldResult;if(!D.resolveLocationCommand){P.jumpTo(5);break}g=X.createLocationInfo(p);return P.yield(_.Jl(W,D.resolveLocationCommand,{locationInfo:g}),6);case 6:a=P.yieldResult;if(!a||"error"in a&&a.error||
a.errorMetadata)return Ju6(D,c,C),P.return();var k;if(a==null?0:(k=a.onResponseReceivedActions)==null?0:k.length){k=_.U(a.onResponseReceivedActions);for(var u=k.next();!u.done;u=k.next())c.resolveCommand(u.value)}(_.r(D.onSuccessCommand,_.TC)||_.r(D.onSuccessCommand,_.Pl))&&_.lE(C.hostElement,"yt-navigate",{endpoint:D.onSuccessCommand,reload:!0});case 5:_.SR(P,0);break;case 2:O=_.Eu(P);if(O instanceof GeolocationPositionError&&O.code===GeolocationPositionError.PERMISSION_DENIED)return D.onDeniedCommand&&
c.resolveCommand(D.onDeniedCommand),P.return();Ju6(D,c,C);_.t_(P)}})};
Ju6=function(D,C,X){D.onFailureCommand&&(C.resolveCommand(D.onFailureCommand),_.DS(X.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
MzP=function(D,C){var X=_.r(D,_.fEJ);if(X&&C){D=X.videoIds||[X.videoId];var c;C=(c=_.lE(C,"yt-lockup-requested",{videoIds:D}).detail)==null?void 0:c.returnValue;var W;X.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?W=C?C:D.map(function(p){return{videoId:p,navigationEndpoint:X.videoCommand}}):C&&(W=C);
W&&(c=W.map(function(p){var g=Object,a=g.assign;var O=p.navigationEndpoint;if(!_.r(O,_.ko)){var P=_.r(O,_.TC);if(P){if(delete P.index,delete P.playlistId,P=_.r(O==null?void 0:O.commandMetadata,_.ge),P==null?0:P.url){var k=P.url;k=_.MF(k,"list");k=_.MF(k,"index");P.url=k}}else O=void 0}return a.call(g,{},p,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:O})}),jkt(c,X))}};
qGN=function(D){var C=_.bP();if(D=_.r(D,_.diC))D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&C.clearQueue(),D.closeMiniplayer&&_.iX().resolve(_.wB).close(!0)};
dyY=function(D){faP(_.bP(),D)};
RYX=function(D){var C;(D=(C=_.r(D,_.MUf))==null?void 0:C.setVideoIds)&&D.forEach(function(X){_.JNb(_.bP(),X)})};
DsU=function(D){laG(_.bP(),D)};
Cpo=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(D){return!1}};
Xqt=function(D){var C=["h","m","s"],X=_.Ho(C);X.reverse();var c={};D=(D.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(g){var a=(g.match(/[hms]/)||[""])[0];return a?(c[a]=parseInt(g.match(/\d+/)[0],10),!1):!0});
for(D.reverse();D.length&&X.length;){var W=X.shift();W in c||(c[W]=parseInt(D.shift(),10))}if(D.length||c.s>59||c.m>59||c.h>9)return null;var p="";C.forEach(function(g){c[g]&&(p+=""+c[g]+g)});
return p||null};
c6p=function(D,C){var X=_.kZ5(C,{},D,!0);return new Promise(function(c,W){X.listenOnce("n",function(){W(Error("El`"+X.JSC$30207_getErrorDescription()))});
X.listenOnce("l",function(){var p=X.getResponseCode();if(p!==200)W(Error("Fl`"+C+"`"+D.type+"`"+D.size+"`"+p));else try{c(JSON.parse(X.getResponseText()).encryptedBlobId)}catch(g){W(g)}});
X.run()})};
oJN=function(D){return D.substring(D.indexOf(":")+1,D.indexOf(";"))};
WEY=function(D){return new Promise(function(C,X){var c=new FileReader;c.onloadend=function(){try{var W=new Uint8Array(c.result);W.length<8&&X(void 0);var p=W.subarray(0,8);W="";for(var g=0;g<p.length;g++)W+=("0"+p[g].toString(16)).substr(-2);W.startsWith("ffd8ff")?C("image/jpeg"):W.startsWith("47494638")?C("image/gif"):W.startsWith("89504e470d0a1a0a")?C("image/png"):W.startsWith("424d")?C("image/bmp"):C(void 0)}catch(a){X(a)}};
c.onerror=X;c.readAsArrayBuffer(D)})};
pq1=function(D){return new Promise(function(C,X){var c=new Image;c.crossOrigin="anonymous";c.onload=function(){var W=document.createElement("canvas");W.width=c.naturalWidth;W.height=c.naturalHeight;var p=W.getContext("2d");if(!p)throw Error("Gl");p.drawImage(c,0,0);p=oJN(D);W.toBlob(function(g){g?C(g):X()},p)};
c.src=D})};
UsG=function(D,C){var X;if(((X=_.r(D,_.ko))==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var c;_.lE((c=C.hostElement)!=null?c:C,"yt-shorts-reset");_.Pc3(_.iX().resolve(_.lg),D).then(function(p){SfU(p,C,D)})}else{var W;
_.cE((W=C.hostElement)!=null?W:C,[D]).then(function(p){p&&SfU(p.data,C,D)})}};
SfU=function(D,C,X){if(D){var c=_.r(D.replacementEndpoint,_.ko);if(c){D.sequenceContinuation&&(c.sequenceParams=D.sequenceContinuation);var W;_.lE((W=C.hostElement)!=null?W:C,"yt-navigate",{endpoint:D.replacementEndpoint})}else if((D==null?void 0:D.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(D==null?0:D.watchStatus)&&_.r(D.watchStatus,_.nO4)){var p;_.lE((p=C.hostElement)!=null?p:C,"yt-navigate",{endpoint:X})}}};
gJG=function(D){var C=_.iX().resolve(_.gp),X=_.TU.currentPageTypeSelector(C.getState())||"";C=_.TU.currentPageSubTypeSelector(C.getState())||"";X=X==="ytd-browse"&&C==="home";return _.b("web_guide_entry_enable_cache_for_non_home_pages")?(D=(D==null?void 0:D.navigationEndpoint)&&_.A9(D.navigationEndpoint)==="home",{disableCache:X&&D}):{disableCache:X}};
OL1=function(D,C,X,c){if(D&&D.length){var W={};if(C){var p=void 0;X&&(p={commandContext:{onTap:{innertubeCommand:X||{}}}});W.header={panelHeaderViewModel:{title:_.e6(C),rendererContext:p}}}C=[];D=_.U(D);for(X=D.next();!X.done;X=D.next()){p=X.value;X=_.r(p,aVo);p=_.r(p,IVX);var g=void 0,a=void 0;if((g=p)==null?0:(a=g.expandableItems)==null?0:a.length)for(p=_.U(p.expandableItems),g=p.next();!g.done;g=p.next()){g=g.value.guideEntryRenderer;var O=a=void 0;if(((a=g)==null?void 0:(O=a.icon)==null?void 0:
O.iconType)==="VIEW_LIST_CAIRO"){X=g;break}}a=g=void 0;p=((g=X)==null?0:g.formattedTitle)?_.e6((a=X)==null?void 0:a.formattedTitle):void 0;g=void 0;a=(g=X)==null?void 0:g.isPrimary;if(X&&p&&!a){p={title:p};X.navigationEndpoint&&(p.rendererContext={commandContext:{onTap:{innertubeCommand:X.navigationEndpoint}}});g=[];O=a=void 0;if(((a=X)==null?0:(O=a.thumbnail)==null?0:O.thumbnails)&&X.thumbnail.thumbnails.length>0){a=_.U(X.thumbnail.thumbnails);for(O=a.next();!O.done;O=a.next())g.push({url:O.value.url});
p.leadingAccessory={avatarViewModel:{image:{sources:g},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(a=void 0,(a=X.icon)==null?0:a.iconType)g.push({clientResource:{imageName:X.icon.iconType||""}}),p.leadingImage={sources:g};a=g=void 0;((g=X)==null?0:(a=g.badges)==null?0:a.liveBroadcasting)?(p.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",p.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},p.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
X.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?p.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":X.count&&(p.trailingLabel={content:X.count.toString()});C.push({listItemViewModel:p})}}C.length!==0?(W.content={listViewModel:{listItems:C}},c===0&&(W.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):W=void 0;if(W)return C=void 0,c===0&&(C={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:W}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:C}}}}};
A6U=function(D,C,X,c){if(C!=null&&C.isPrimary){switch(c){case 1:if(C.serviceEndpoint)break;X=OL1(X,C.formattedTitle,C.navigationEndpoint,c);if(!X)break;C.serviceEndpoint=X;C.navigationEndpoint=void 0;break;case 0:!C.mouseEnterEndpoint&&(X=OL1(X,C.formattedTitle,void 0,c))&&(C.mouseEnterEndpoint=X,C.mouseLeaveEndpoint={hideSheetCommand:{}})}D.push({guideEntryRenderer:C})}};
PpG=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENT-INPUT")return!0}catch(C){return!1}return PpG(D.parentNode)};
WB=function(D){return D?D.tagName==="A"&&D.href&&D.classList.contains("yt-simple-endpoint"):!1};
$sw=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
vJw=function(D,C,X){if(!D)return null;var c=WB(D);if(c&&X)return C=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+C);if(c&&!X)return document.createTextNode("");if($sw(D))return X=D.alt,D=D.dataset.emojiId,!D&&C&&(C=_.Sb(C,X))&&C.isCustomEmoji&&(D=C.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(X);c=D.cloneNode(!1);for(var W=0;W<D.childNodes.length;++W){var p=vJw(D.childNodes[W],C,X);p&&c.appendChild(p)}return c};
iL6=function(D){return D?WB(D)?D:iL6(D.lastChild):null};
kiX=function(D){return D?WB(D)?D:kiX(D.firstChild):null};
uD6=function(D){if(!D)return null;for(var C=D.previousSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.previousSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.previousSibling;else break;(C=iL6(C))?D=C:D=(D=D.parentNode)?iL6(D.previousElementSibling):null;return D};
QK6=function(D){if(!D)return null;for(var C=D.nextSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.nextSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.nextSibling;else break;return(C=kiX(C))?C:QK6(D.parentNode)};
Bd1=function(D){var C=_.gE(),X=C.JSC$11509_getStartNode();if(!PpG(X.parentNode))return null;C=C.JSC$11509_getStartOffset();if(X.nodeType===Node.TEXT_NODE){var c=_.zv(X,WB);if(c){if(D&&C===0||!D&&C===X.length)return c}else{if(D&&C===X.length)return!X||X.nodeName==="BR"||X.nextElementSibling&&_.a9(X.nextElementSibling,"display")==="block"?null:kiX(X.nextElementSibling);if(!D&&C===0)return X?iL6(X.previousElementSibling):null}}if(X.nodeType===Node.ELEMENT_NODE)if(D){if(0<=C&&C<X.childNodes.length)return kiX(X.childNodes[C])}else if(0<
C&&C<=X.childNodes.length)return iL6(X.childNodes[C-1]);return null};
bLG=function(D,C,X){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(X){var c=uD6(D);if(c&&!/^\s+\S/.test(D.wholeText.substr(0,C)))return c}else if((c=QK6(D))&&!/\S\s+/.test(D.wholeText.substr(C,D.wholeText.length)))return c;return D.nodeType===Node.ELEMENT_NODE?X?uD6(D.childNodes[C]):QK6(D.childNodes[C]):bLG(D.parentNode,C,X)};
r6X=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var C="";for(D=D.firstChild;D;D=D.nextSibling)C+=r6X(D);return C;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
KEt=function(D){switch(D){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"}};
hJ1=function(D){return D.map(function(C){return{settingsRadioOptionRenderer:{title:_.c_(C.name),asideText:_.c_(C.approximateSize),id:KEt(C.format)}}})};
LE3=function(D){if(D&&D.length!==0)return D.filter(xst()).map(function(C){return{settingsRadioOptionRenderer:{title:C.name,asideText:C.approximateSize,id:KEt(C.formatType)}}})};
sKP=function(D){if(D)return D.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
msp=function(D,C){D=new Set(D!=null?D:[]);if(D.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(D.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(D.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(D.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(D.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(C)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
eJt=function(D){var C=D.indexOf("(");return C!==-1?D.substring(C+1,D.length-1):D};
_.t$k=function(D,C,X,c,W){X||(X=EJo);var p;(p=_.r(X.commandMetadata,_.ge))!=null&&p.url||(X=Error("Ll`"+JSON.stringify(X)),_.MN(X),X=EJo);X=_.ZI.unsafeClone(X);p=_.D0(_.r(X.commandMetadata,_.ge).url,"search_query",D);_.DH(location.href,"sv")==="1"&&(_.r(X,_.$o).params="EgOAAgE%3D",p=_.D0(p,"sv","1"));_.r(X,_.$o)&&(_.r(X,_.$o).query=D);p=p.replace(/%20/g,"+");_.r(X.commandMetadata,_.ge).url=p;W=_.b("desktop_enable_entity_suggest")?{entityMid:W}:{};_.iX().resolve(_.uX).resolveCommand(X,{form:{tempData:Object.assign({},
{gs_l:C,oq:c!=null?c:D},W),isFromShorts:_.qH()==="shorts"}})};
NdG=function(D){switch(D){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
y6p=function(D,C,X,c,W,p){var g=_.ZI.clone(YfP);g.locale=_.q6("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;g.report={description:W||"<empty>"};W=_.q6("SBOX_SETTINGS",{});C=C.join(",");var a=Date.now();D={choice_cc:c,choice_id_cc:X,choices_sc:C,gl:W.REQUEST_DOMAIN,hl:W.REQUEST_LANGUAGE,query:D,time:a};p&&(D.choice_additional_comment_cc=p);_.r7e(g,D)};
nJP=function(D){var C=new Map;C.set("authuser",_.q6("SESSION_INDEX","0"));return _.uo(D,C)};
FEp=function(D){var C;return _.I(function(X){switch(X.nextAddress){case 1:if(!D||!wq6(D))return X.return(null);C=null;switch(_.q6("INNERTUBE_CLIENT_NAME")){case "WEB":return X.jumpTo(2);case "WEB_REMIX":C=D.getPlayer()}X.jumpTo(3);break;case 2:return X.yield(D.getPlayerPromise(),4);case 4:C=X.yieldResult;X.jumpTo(3);break;case 3:return X.return(C)}})};
wq6=function(D){return["ytd-player","ytmusic-player"].includes(String(D.tagName||"").toLowerCase())};
ZL3=function(D){D=Math.round(D);return D%2?D-1:D};
Gio=function(D){D=Math.round(D);return D%2===0?D-1:D};
V$U=function(D){var C,X,c;if(D=(C=D.createPlaylistDialogFormSchema)==null?void 0:(X=C.fieldSchemas)==null?void 0:(c=X.title)==null?void 0:c.validationSchema)for(C=[D.syncStep,D.asyncStep].filter(function(W){return W!==void 0}),C=_.U(C),X=C.next();!X.done;X=C.next()){X=X.value.rules;
if(!X)break;X=_.U(X);for(X=X.next();!X.done;X=X.next())return _.r(X.value,_.Yr3)}};
HLX=function(D){var C,X,c;if(D=(C=D.createPlaylistDialogFormSchema)==null?void 0:(X=C.fieldSchemas)==null?void 0:(c=X.visibility)==null?void 0:c.validationSchema)for(C=[D.syncStep,D.asyncStep].filter(function(W){return W!==void 0}),C=_.U(C),X=C.next();!X.done;X=C.next()){X=X.value.rules;
if(!X)break;X=_.U(X);for(c=X.next();!c.done;c=X.next())if(c=_.r(c.value,TdU))return C=void 0,(C=c.translations)==null?void 0:C.visibilityNotValidErrorMessage}};
J63=function(){var D,C;return(C=(D=_.iX().resolve(_.vK(_.Hc)))==null?void 0:D())!=null?C:!1};
zJk=function(D){var C=21;if(!D)return C;C+=D.headerTitle?27:0;C+=D.headerTitle&&D.hasHeaderActionHeader?4:0;return C+=D.headerTitle&&D.headerSubtitle?16:0};
jKG=function(D){var C=0;if(!D)return C;C+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton?48:0;C+=D.footerTrailingLabel||D.footerLeadingLabel?30:0;return C+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton||!D.footerTrailingLabel&&!D.footerLeadingLabel?0:12};
M$p=function(D){var C=new _.tg,X=D;return{subscribe:function(c){C.subscribe("changed",c)},
dispatch:function(c,W){var p=X;if(c==="Touch Start")X=Object.assign({},p,{isAnimating:!1,initialY:W.event.touches[0].clientY});else if(c==="Touch Move"){c=W.contentScrollable?-1*(p.initialY-24):0;var g,a=(g=W.headerDivHeight)!=null?g:zJk(W.header),O;g=(O=W.footerDivHeight)!=null?O:jKG(W.footer);O=Math.min(W.fullContentWrapperHeight,W.heightMap[W.contentWrapperId]+a-g);X=Object.assign({},p,{currentY:Math.max(c,W.event.touches[0].clientY-p.initialY),maxHeightForContentWrapper:Math.min(O,Math.max(0,
(p.isFullScreen?O:W.contentWrapperHeight)-p.currentY))})}else X=c==="Snap To Full Screen"?Object.assign({},p,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:W.maxHeight}):c==="Snap To Neutral Position"?Object.assign({},p,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):c==="Close Sheet"?Object.assign({},p,{isAnimating:!0,currentY:W.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):p;C.publish("changed",X)}}};
qfG=function(){_.iX().resolve(_.S0).closeSheet()};
fVo=function(D){var C,X,c,W,p,g,a,O,P,k,u;return{headerTitle:(C=D.headerTitle)==null?void 0:C.call(D),headerSubtitle:(X=D.headerSubtitle)==null?void 0:X.call(D),headerActionHeader:D.headerActionHeader,footerPrimaryButton:D.footerPrimaryButton,footerSecondaryButton:D.footerSecondaryButton,footerButtonType:(c=D.footerButtonType)==null?void 0:c.call(D),footerLeadingLabel:(W=D.footerLeadingLabel)==null?void 0:W.call(D),footerTrailingLabel:(p=D.footerTrailingLabel)==null?void 0:p.call(D),shouldShowIcons:(g=
D.shouldShowIcons)==null?void 0:g.call(D),skipContentClick:(a=D.skipContentClick)==null?void 0:a.call(D),additionalClassName:(O=D.additionalClassName)==null?void 0:O.call(D),onClosedCallback:D.onClosedCallback,focusOnClose:(P=D.focusOnClose)==null?void 0:P.call(D),isDisabled:(k=D.isDisabled)==null?void 0:k.call(D),disabledCommand:(u=D.disabledCommand)==null?void 0:u.call(D),headerFn:D.headerFn,contentFn:D.contentFn,footerFn:D.footerFn,hasHeaderFn:D.hasHeaderFn(),hasContentFn:D.hasContentFn(),hasFooterFn:D.hasFooterFn(),
hasFooterPrimaryButton:D.hasFooterPrimaryButton(),hasFooterSecondaryButton:D.hasFooterSecondaryButton(),hasHeaderActionHeader:D.hasHeaderActionHeader()}};
dsU=function(D){switch(D){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""}};
RJw=function(D){switch(D){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""}};
lVX=function(D){switch(D){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""}};
D$3=function(D,C,X){C.forEach(function(c){_.JF(_.iX().resolve(_.X5),c)});
_.DS(D,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",X])};
o1U=function(D,C,X,c){var W=_.r(X,_.Qc).commandLifeCycleConfig;W&&W.onStartCommand&&_.o7(D,[W.onStartCommand],C);_.F1(C);var p=_.Tr.instance;p&&_.H0(p,X)?_.Jl(p,X,c).then(function(g){if(!g||(g==null?0:g.error))return g=_.r(X,_.Qc).serializedTransactionFlowLoggingParams,_.ZT(C),_.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",g));_.ZT(C);return{data:g}}).then(function(g){_.ZT(C);
CaN(g.data);var a=g.data.command;a&&_.o7(D,[a],C);a=XF1(X,g.data);if(!a){var O=g.data;g=!1;if(O&&O.command&&_.r(O.command,_.pt)){var P;O=((P=_.r(O.command,_.pt))==null?void 0:P.commands)||[];for(P=0;P<O.length;P++)if(_.r(O[P],_.IXk)){g=!0;break}}g||_.De('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!a&&W&&W.onSuccessCommand?_.o7(D,[W.onSuccessCommand],C):a&&W&&W.onFailureCommand&&_.o7(D,[W.onFailureCommand],C)},function(){_.ZT(C);
W&&W.onFailureCommand&&_.o7(D,[W.onFailureCommand],C);c3t(X)}):_.MN(Error("Xl"),"ERROR")};
W2X=function(D,C,X){var c=[C];X&&c.push(X);return _.cE(D,c).then(function(W){var p=_.r(C,_.Qc).serializedTransactionFlowLoggingParams,g=W.data,a=XF1(C,g);a?W=_.x7(new pw(a,p)):CaN(g);return W},function(){var W=_.r(C,_.Qc).serializedTransactionFlowLoggingParams;
c3t(C);return _.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",W))})};
XF1=function(D,C){D=_.r(D,_.Qc).serializedTransactionFlowLoggingParams;var X=null;switch(C.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":X="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":X="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":X="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}X?_.zh(X,D):pX3(D);return X};
c3t=function(D){_.zh("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.r(D,_.Qc).serializedTransactionFlowLoggingParams)};
CaN=function(D){if(D.trackingParams){var C=_.LN(),X=_.xr();C&&X&&_.F_(C,X,_.bO(D.trackingParams))}};
pFP=function(D,C,X){var c=_.Tr.instance,W=_.wsW(_.q6("YPC_MB_URL")),p=(new _.yOo).init(),g=_.nS5(),a=_.r(X,_.Sgg).languageCode;a===void 0?_.MN(Error("Ji"),"ERROR"):_.Fn([p,W]).then(function(){var O={ctk:_.R9.payments.business.integration.ClientTokenFactory.createClientToken(a,g)};c&&_.H0(c,X)?_.Jl(c,X,O).then(function(P){return{data:P}}).then(function(P){_.lE(C,"yt-service-request-completed",P);
P.code!=="ERROR"&&(P=P.data.command)&&_.o7(D,[P],C)}):_.MN(Error("Xl"),"ERROR")})};
g1G=function(D,C,X,c){var W=_.Tr.instance;W&&_.H0(W,X)?_.Jl(W,X,c).then(function(p){return{data:p}}).then(function(p){SCN(D,C,X,p)},function(){U$N(X)}):(W=_.iX().resolve(_.vK(_.Qt)))&&W.requestDataForServiceEndpoint(X,c).then(function(p){SCN(D,C,X,p)},function(){U$N(X)})};
SCN=function(D,C,X,c){_.lE(C,"yt-service-request-completed",c);if(c.code&&c.code=="ERROR")U$N(X);else{(c=c.data.commands)&&_.o7(D,c,C);var W;(D=(W=_.r(X,_.Ae5))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&D&&_.db("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",D)}};
U$N=function(D){var C;(D=(C=_.r(D,_.Ae5))==null?void 0:C.serializedYpcPauseFlowLoggingParams)&&D&&_.db("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
OW1=function(D,C,X){var c=_.Tr.instance;c&&_.H0(c,X)?_.Jl(c,X).then(function(W){return{data:W}}).then(function(W){aZ6(D,C,X,W)},function(){IZk(X)}):(c=_.iX().resolve(_.vK(_.Qt)))&&c.requestDataForServiceEndpoint(X).then(function(W){aZ6(D,C,X,W)},function(){IZk(X)})};
aZ6=function(D,C,X,c){_.lE(C,"yt-service-request-completed",c);c.code&&c.code=="ERROR"?IZk(X):((c=c.data.commands)&&_.o7(D,c,C),(D=_.r(X,_.Pe4).serializedYpcResumeFlowLoggingParams)&&D&&_.db("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",D))};
IZk=function(D){(D=_.r(D,_.Pe4).serializedYpcResumeFlowLoggingParams)&&D&&_.db("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
A3U=function(D){D=D===void 0?{}:D;_.iX().resolve(_.zvt).showFeedbackDialog(D.customProductData,D.feedbackContent,D.onFeedbackSubmitted,D.bucket)};
Pa6=function(D){D=D===void 0?{}:D;_.iX().resolve(_.zvt).showHelpDialog(D.helpContext,D.articleId,D.productData)};
$$t=function(){Pa6()};
v1G=function(){A3U()};
kgk=function(D,C,X){var c,W,p,g,a,O,P;return _.I(function(k){switch(k.nextAddress){case 1:c=_.r(D,iWG);if((W=c)==null?0:W.productId){O={productId:c.productId,bucket:c.bucket,enableAnonymousFeedback:(a=c.enableAnonymousFeedback)!=null?a:!0,allowNonLoggedInFeedback:!0};P={feedbackChoice:X.feedbackChoice};if(!_.b("web_collect_offline_state")){k.jumpTo(8);break}_.KK(k,9);return k.yield($H1(P),11)}g={bucket:(p=c)==null?void 0:p.bucket};if(!_.b("web_collect_offline_state")){k.jumpTo(4);break}g.customProductData=
{};_.KK(k,5);return k.yield($H1(g.customProductData),7);case 7:_.SR(k,4);break;case 5:_.Eu(k);case 4:A3U(g);k.jumpTo(0);break;case 11:_.SR(k,8);break;case 9:_.Eu(k);case 8:_.bxr(P),_.BmF("GFEEDBACK",P),c.productId==="5295751"&&(P.client_attestation=Number(_.q6("CATSTAT",0))),c.productId==="5295751"&&(P.client_time=Date.now()/1E3/3600),c.productId==="5295751"&&(P.original_playback_id=_.Xbe||""),_.r7e(O,P),_.t_(k)}})};
unN=function(D){if(D=_.r(D,_.xbF)){var C={bucket:D.bucketIdentifier};D.additionalDatas&&(C.customProductData={},D.additionalDatas.forEach(function(X){if(X=X.userFeedbackEndpointProductSpecificValueData)C.customProductData[X.key]=X.value}));
A3U(C)}};
QbX=function(D){var C=_.Wf.getInstance();var X=_.I7("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var c=_.I7("DELETE",void 0,"Delete"),W=_.I7("CANCEL",void 0,"Cancel");X=k2X(X,void 0,c,W,{signal:"DELETE_ALL_DOWNLOADS"});_.fX(C,[{openPopupAction:X}],D)};
bWp=function(){return _.I(function(D){return D.nextAddress==1?D.yield(_.iX().resolve(_.bi),2):D.yield(BkX(),0)})};
r3p=function(D){var C,X;return _.I(function(c){return c.nextAddress==1?(X=(C=_.r(D,_.Xf))==null?void 0:C.targetId)?c.yield(_.iX().resolve(_.bi),3):c.jumpTo(0):c.yield(_.iX().resolve(_.B$).deleteVideo(X),0)})};
hTG=function(D){var C,X;return _.I(function(c){return c.nextAddress==1?(X=(C=_.r(D,_.Xf))==null?void 0:C.targetId)?c.yield(_.iX().resolve(_.bi),3):c.jumpTo(0):c.yield(K2N(_.iX().resolve(_.B$),X),0)})};
L2o=function(D){var C,X;return _.I(function(c){return(X=(C=_.r(D,_.Xf))==null?void 0:C.targetId)?c.yield(x$p(X),0):c.jumpTo(0)})};
m$G=function(){_.b("kevlar_woffle_refresh_dl_load_killswitch")||sb3()};
E1U=function(){_.b("kevlar_woffle")&&_.Gh.instance&&eTt()};
NkG=function(D){var C;if((C=_.r(D,_.vX))==null||!C.videoId)return!1;tL6(_.iX().resolve(_.B$),_.r(D,_.vX),D.clickTrackingParams);return!0};
y33=function(D){var C;if((C=_.r(D,_.iK))==null||!C.playlistId)return!1;YCX(_.iX().resolve(_.B$),_.r(D,_.iK),D.clickTrackingParams);return!0};
wFp=function(D){var C=_.r(D,_.qw5);(C==null?void 0:C.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(C==null?void 0:C.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||n1p(_.iX().resolve(_.B$),_.r(D,_.qw5))};
ZWG=function(D){D=_.r(D,_.KV5);var C;(D==null?0:(C=D.actions)==null?0:C.length)&&F2p(D)};
TkX=function(D){var C,X;return _.I(function(c){C=_.r(D,Ggo);return(X=C)!=null&&X.localWatchHistoryCommandType?c.yield(VLo(C),0):c.return()})};
J3P=function(){return _.I(function(D){return _.b("kevlar_enable_download_to_mobile")?D.yield(HW1(),0):D.return()})};
zTU=function(D){setTimeout(function(){requestAnimationFrame(D)},80)};
jbt=function(D){return Object.entries(D).map(function(C){return C.join(":")}).join(";")};
qC3=function(D){var C,X,c;_.I(function(W){if(W.nextAddress==1)return W.yield(MLk(),2);C=W.yieldResult;X=_.I3.instance;switch(C){case "granted":c=D.getLocationCommand;break;case "denied":c=D.openDeniedDialogAction;break;case "prompt":c=D.openCollectionDialogAction;break;default:c=D.openCollectionDialogAction}c&&X.resolveCommand(c);_.t_(W)})};
MLk=function(){var D,C;return _.I(function(X){if(X.nextAddress==1)return D="prompt",navigator.permissions?X.yield(navigator.permissions.query({name:"geolocation"}),3):X.jumpTo(2);X.nextAddress!=2&&(C=X.yieldResult,D=C.state);return X.return(D)})};
d$G=function(){_.I(function(D){return D.yield(_.fZk(),0)})};
RTt=function(){var D,C,X;return _.I(function(c){if(c.nextAddress==1)return D=_.iX().resolve(_.Bl),D?c.yield(_.Jl(D,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.fQ(Error("$l")),c.return(void 0));if(C=c.yieldResult){if(C.errorMetadata)return _.fQ(Error("am`"+C.errorMetadata.status+"`"+C.error)),c.return(void 0);X=C.datasyncIds;_.WeG=X.length;return c.return(X)}_.fQ(Error("bm"));return c.return(void 0)})};
lZP=function(){RTt().then(function(D){D&&(n7G(D),UHo(D),E_N(D),iT6(D))})};
Dqw=function(D){_.qX.addLowPriorityJob(function(){var C,X,c,W,p;return _.I(function(g){switch(g.nextAddress){case 1:if(_.b("ytidb_clear_optimizations_killswitch")){g.jumpTo(2);break}C=_.wT("clear");if(C.startsWith("V")&&C.endsWith("||")){var a=[C];n7G(a);UHo(a);E_N(a);iT6(a);return g.return()}X=t5Y();c=kUP();return g.yield(guw(),3);case 3:return W=g.yieldResult,g.yield(wcw(),4);case 4:if(p=g.yieldResult,!(X||c||W||p))return g.return();case 2:D.isNetworkAvailable()?lZP():D.listenOnce("publicytnetworkstatus-online",
lZP),_.t_(g)}})})};
S2=function(D){D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.jV(D)}}}};_.I3.instance&&_.I3.instance.resolveCommand(D)};
CFp=function(D){if(D){var C=_.iO();_.Gm(C,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var X=238708;break;case 2:X=238715;break;case 3:X=238710;break;case 6:X=238709}X&&(D=_.vc(C,{veType:X}))&&_.Hj(C,D)}};
XPP=function(D){if(D){var C=_.iO();_.Gm(C,3854,void 0,{layer:0,parentLayer:4});switch(D){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&&(D=_.vc(C,{veType:X}))&&_.Hj(C,D)}};
cs3=function(D){switch(D.latencyType){case 0:_.Lt("consent_primitive_flow");_.sp("cpit",D.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.sp("cpist",D.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.sp("cprtif",D.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.sp("cprtli",D.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.sp("cprt",D.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.sp("cpdt",D.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.sp("cpjct",D.timestampEpochMillis,"consent_primitive_flow")}};
$qN=function(D,C){var X,c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H;return _.I(function(q){switch(q.nextAddress){case 1:_.KK(q,2);(c=(X=_.r(D,oxt))==null?void 0:X.serializedConsentRequest)||(c=(W=_.r(D,WNN))==null?void 0:W.serializedConsentRequest);c&&(p=pPU(_.Dk(c)));if(p===void 0)return q.return();g=S9k(p);g.latencyCallback=cs3;C&&UqP(g,function(){C.then(function(R){R.pauseVideo();(new gx1).increment()})});
return((a=_.r(D,oxt))==null?void 0:a.consentAction)==="CONSENT_ACTION_PREWARM"||((O=_.r(D,WNN))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"?q.yield(asp(g),5):q.yield(Is3(g),6);case 6:P=q.yieldResult;k=_.KR(P,U0);if(k===1){if(((u=_.yO(P,OV6,1,U0))==null?void 0:_.tu(u,1))===1||((Q=_.yO(P,OV6,1,U0))==null?void 0:_.tu(Q,1))===2||((B=_.yO(P,OV6,1,U0))==null?void 0:_.tu(B,1))===3)_.r(D,WNN)?S2(_.I7("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
S2(_.I7("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));CFp((K=_.yO(P,OV6,1,U0))==null?void 0:_.tu(K,1),_.Ih(P,AsN,3,_.AR()))}else k===2?(((L=PFt(P))==null?void 0:_.tu(L,1))===5?_.r(D,WNN)?S2(_.I7("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):S2(_.I7("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((t=PFt(P))==null?void 0:_.tu(t,1))===1||((Y=PFt(P))==null?void 0:_.tu(Y,1))===4?
S2(_.I7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((y=PFt(P))==null?void 0:_.tu(y,1))===7&&((J=p)==null?void 0:(T=_.Bz(J,gw,4))==null?void 0:_.tu(T,4))!==1&&S2(_.I7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),XPP((H=PFt(P))==null?void 0:_.tu(H,1))):S2(_.I7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));q.jumpTo(5);break;case 5:_.SR(q,0);break;case 2:_.Eu(q),S2(_.I7("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.t_(q)}})};
iVt=function(){if(!vx6.has("Worker")){vx6.set("Worker",!0);var D={api:"BROWSER_API_WEB_WORKER"};D.available="Worker"in window?!0:!1;_.zu("apiTest",D)}};
kP3=function(D){return typeof D==="undefined"?"-1":String(Math.ceil(D/1048576))};
bVY=function(D,C){u9N(new QJX(_.r(C,BtY).addToken,_.r(C,BtY).commonToken)).then(function(){_.lE(D,"yt-invoke-instrument-manager-action-completed")},function(X){_.lE(D,"yt-invoke-instrument-manager-action-error",X)})};
al=function(){return _.q6("HTML_DIR")==="rtl"};
rsX=function(){var D,C;return(C=(D=window).matchMedia)==null?void 0:C.call(D,"(prefers-reduced-motion: reduce)").matches};
KN1=function(D){var C=_.iX().resolve(_.vK(_.c3));if(C&&C.isAnyTransitionEnabled){var X={};C.viewTransitionCoordinator.registerElement(D,(X.slide="miniplayer-page-transition",X["lockup-to-watch"]="miniplayer-page-transition",X["learning-journey"]="miniplayer-page-transition",X))}};
hVw=function(D,C,X){return{horizontalAlignment:D.x+X.width/2<C.width/2?"west":"east",verticalAlignment:D.y+X.height/2<C.height/2?"north":"south"}};
LNw=function(D,C,X,c,W){W=W===void 0?new _.VI(0,0):W;D=xqP(D,C,X,c,!1);return new _.VI(D.x+W.x,D.y+W.y)};
xqP=function(D,C,X,c,W){W=(W===void 0?0:W)?400:0;return new _.VI(D==="west"?16+(al()?W:0):X.width-c.width-16-(al()?0:W),C==="north"?16:X.height-c.height-16)};
sJt=function(D,C){var X=0;D&&(X+=76);C&&(X+=285);return X};
mqt=function(D){return _.Gj(D)};
eVN=function(D){var C=1;D=D.split(":");for(var X=[];C>0&&D.length;)X.push(D.shift()),C--;D.length&&X.push(D.join(":"));return X};
ExP=function(D){var C=new _.ba;return _.nR(C,11,D)};
tPN=function(D){var C={};D=D.getAllResponseHeaders().split("\r\n");for(var X=0;X<D.length;X++)if(!_.Um(D[X])){var c=eVN(D[X]),W=c[0];c=c[1];if(typeof c==="string"){c=c.trim();var p=C[W]||[];C[W]=p;p.push(c)}}return _.ZI.map(C,function(g){return g.join(", ")})};
BU3=function(D,C){return D.JSC$9961_xhr_?D.JSC$9961_xhr_.getResponseHeader(C):null};
Nto=function(D,C){if(D.isDisposed())throw Error("Ea");D.oZ.eW("n");var X=_.jL(D.oZ,function(){return D.r3d([C.m1,C.cDw,C.cTj,C.j5I])},"n");
D.oZ.gXq(X.length);D.oZ.h8();return X};
Y9G=function(D,C,X){Array.isArray(X)||(X=[String(X)]);_.had(D.JSC$10197_queryData_,C,X);return D};
eTt=function(){var D=_.Gh.instance;_.I(function(C){return D.deferredInstallPrompt?C.yield(D.deferredInstallPrompt.prompt(),0):C.jumpTo(0)})};
ys6=function(D,C,X){if(_.JW(D))_.pC(D,C,X);else for(D=_.wE4(D);;){var c=D.next();if(c.done)break;C.call(X,c.value,void 0,D)}};
nxY=function(D,C){var X=[];ys6(C,function(c){try{var W=_.Kl.prototype.getWrapper.call(this,c,!0)}catch(p){if(p=="Storage: Invalid value was encountered")return;throw p;}W===void 0?X.push(c):_.nCd(W)&&X.push(c)},D);
return X};
krp=function(D,C){nxY(D,C).forEach(function(X){_.Kl.prototype.remove.call(this,X)},D)};
wPG=function(D){var C=_.Af;C._minimumZ=Math.max(C._minimumZ,D)};
FN6=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];ZVP=function(D,C){_.Ue(D.vm);D.vm=C};
GPo=function(D,C,X,c){D.setState(5);var W=!!D.fNU&&FN6.includes(_.OY(D.fNU)||"");try{var p=new _.M$({program:C,globalName:X,bHi:{disable:!_.b("att_web_record_metrics")||!_.b("att_skip_metrics_for_cookieless_domains_ks")&&W,s0:"aGIf"}});p.tFL.then(function(){D.setState(6);c&&c(C)});
ZVP(D,p)}catch(g){D.setState(7),g instanceof Error&&_.fQ(g)}};
VPN=function(D,C,X,c,W,p){var g=g===void 0?"trayride":g;X?(D.setState(2),_.yy(_.Z1(X),function(){if(window[g])GPo(D,c,g,W);else{D.setState(3);var a=_.VBF(X),O=document.getElementById(a);O&&(_.LpF(a),O.parentNode.removeChild(O));_.fQ(new _.Zf("BL:ULB",X))}},p)):C?(p=_.mv("SCRIPT"),C instanceof _.Wt?_.Uu(p,C):p.textContent=C,p.nonce=_.oG(document),document.head.appendChild(p),document.head.removeChild(p),window[g]?GPo(D,c,g,W):(D.setState(4),_.fQ(new _.Zf("BL:ULBJ")))):_.fQ(new _.Zf("BL:ULV"))};
TtP=function(){this.state=1;this.vm=null;this.fNU=void 0};
_.S=TtP.prototype;_.S.initialize=function(D,C,X,c){this.fNU=c;if(D.program){var W;c=(W=D.interpreterUrl)!=null?W:null;if(D.interpreterSafeScript)W=_.q2m(D.interpreterSafeScript);else{var p;W=(p=D.interpreterScript)!=null?p:null}D.interpreterSafeUrl&&(c=_.fq(D.interpreterSafeUrl).toString());VPN(this,W,c,D.program,C,X)}else _.fQ(Error("sf"))};
_.S.isInitialized=function(){return!!this.vm};
_.S.getState=function(){return this.state};
_.S.isLoading=function(){return this.state===2};
_.S.invoke=function(D){D=D===void 0?{}:D;var C;this.vm?C=Nto(this.vm,{m1:D}):C=null;return C};
_.S.dispose=function(){ZVP(this,null);this.setState(8)};
_.S.setState=function(D){this.state=D};
var HV6=function(D,C){return D.vm.snapshot(C)},JsU=function(D,C){var X=_.BK("botguard_async_snapshot_timeout_ms",3E3);
C=C===void 0?{}:C;X=X===void 0?3E3:X;return D.vm?new Promise(function(c,W){var p=!1,g=_.qX.addJob(function(){p=!0;W(Error("tf"))},1,X);
D.vm?HV6(D,{m1:C}).then(function(a){_.qX.cancelJob(g);p||c(a)}).catch(function(a){_.qX.cancelJob(g);
p||W(a)}):(_.qX.cancelJob(g),c(null))}):Promise.resolve(null)},zVY=["att/log"],EJo;
EJo={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var jJp={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},MPX=function(D,C){return _.v_(D,{mode:"readwrite",enableRetries:!0},function(X){return _.QcJ(X,C,"settingEntity")})},q9G=function(D,C,X){return _.v_(D,{mode:"readonly",
enableRetries:!0},function(c){return _.n6e(c,C,X)})},fsX=function(D){if(!D.storage)return!1;
a:{if(D.storage){try{var C=D.storage.get("TLPQtimestamp")}catch(X){}D=Number(C);if(!isNaN(D))break a}D=void 0}return D?Date.now()-D<864E5:!1},dq1=function(D){if(D.storage){try{var C=D.storage.get("TLPQindex")}catch(X){}D=Number(C);
if(!isNaN(D))return D}},RVG=function(D,C){D.queueProxy&&C.forEach(function(X){if(X.videoId&&X.trackingParams&&D.queueProxy instanceof _.PV){var c=_.LN();
D.queueProxy.attributionData.set(X.videoId,{enqueueingVe:_.bO(X.trackingParams).getAsJson(),enqueueingCsn:c?c:void 0,clientEnqueueingTimeMs:Math.floor((0,_.kh)()).toString()})}})},ls1=function(D){var C=_.Qzk(D);
C!=D.currentSnapState_&&(D.currentSnapState_=C,D.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Il=function(D){this.JSC$13386_networkManager_=D;
this.partCallbacks_=[]};
Il.prototype.getCacheKeyForEndpoint=function(D){return _.UVm(D,!1)};
Il.prototype.onPartsCallback_=function(D){this.partCallbacks_.forEach(function(C){D&&C(D)})};
var O0=function(D,C,X){Il.call(this,D);this.player_=C;this.autoplayData_=X};
_.h(O0,Il);O0.prototype.getCacheKeyForEndpoint=function(D){return _.UVm(D,!!this.autoplayData_)};
O0.prototype.getTempData=function(D,C){C=C.timeBeforeNextVideo;D={itct:D.clickTrackingParams,lact:_.kl(),pbis:C,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(D.autonav=1);return D};
O0.prototype.getXhrParams=function(D){return Object.assign({pbj:"prefetch"},D)};
O0.prototype.getParams=function(D){D={frags:D.fragmentsRequested.join(",")};_.b("kevlar_droppable_prefetchable_requests")&&(D.prefetch=1);return D};
var D4P=function(D){D.playerEvents_.forEach(function(C){D.player.removeEventListener(C.eventName,C.callback)});
D.playerEvents_.length=0},C1p=function(D,C,X){this.player=D;
this.JSC$13396_taskManager=C;this.prefetchDelay=X;this.completionResolver_=null;this.playerEvents_=[]};
C1p.prototype.start=function(){var D=this;this.completionResolver_=_.zr();_.ZZ(this.completionResolver_.promise,function(){D4P(D);D.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var X6o=function(D,C,X){D.player.addEventListener(C,X);D.playerEvents_.push({eventName:C,callback:X})},c73={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},oEP={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},W0G=function(D,C,X){C1p.call(this,D,C,X);this.cueId_="playbackTrigger-"+Math.random()};
_.h(W0G,C1p);
W0G.prototype.prepareTrigger=function(D){var C=this,X=this.player.getDuration(),c=this.player.getVideoData(),W=c.isLive&&c.hasProgressBarBoundaries;if(W&&c.progressBarEndPositionUtcTimeMillis){var p=c.progressBarEndPositionUtcTimeMillis/1E3;isNaN(p)||(X=p)}var g=0;this.prefetchDelay>=0?W?c.progressBarStartPositionUtcTimeMillis&&(c=c.progressBarStartPositionUtcTimeMillis/1E3,isNaN(c)||(g=c+this.prefetchDelay)):g=this.prefetchDelay:g=X+this.prefetchDelay;W?this.player.addUtcCueRange(this.cueId_,g,X):
this.player.addCueRange(this.cueId_,g,X);_.ZZ(D.promise,function(){C.player.removeCueRange(C.cueId_)});
X6o(this,"onCueRangeEnter",function(a){a==C.cueId_&&D.resolve(X-g)})};
var p6o=function(D,C){D.fragmentConfiguration_[C].requiredKeys.every(function(X){return!!D.prefetchedData_[X]})&&(D.validatedFragments_.push(C),C=D.missingFragments_.indexOf(C),C!==-1&&D.missingFragments_.splice(C,1))},SLU=function(D){D.prefetchedFragments_.forEach(function(C){p6o(D,C)})},U46=function(D,C,X){this.pageFragments_=D;
this.prefetchedFragments_=C;this.fragmentConfiguration_=oEP;this.prefetchedData_=X;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;SLU(this)},gEX=function(){},aFk=function(D){this.JSC$13410_playlistManager_=D};
_.h(aFk,gEX);aFk.prototype.getPrefetchEndpoint=function(){return this.JSC$13410_playlistManager_.getAutoplayEndpoint()};
var IFX=function(D){this.autonavEndpoints_=D};
_.h(IFX,gEX);IFX.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var OXt=function(D,C,X,c,W){this.autonavEndpoints=D;this.foregroundTrigger=C;this.backgroundTrigger=X;this.pageType=c;this.isInPlaylist=W},A76=function(D,C){if(D.webPrefetchData&&D.webPrefetchData.navigationEndpoints&&D.webPrefetchData.navigationEndpoints.length){D=D.webPrefetchData.navigationEndpoints;
var X=_.r(D[0],_.TC);if(X.watchEndpointSupportedPrefetchConfig&&X.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var c=X.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;X=c.playbackRelativeSecondsPrefetchCondition;X=typeof X==="number"&&Math.abs(X)<C.videoDuration?X:void 0;c=c.countdownUiRelativeSecondsPrefetchCondition;c=typeof c!=="number"||_.b("prefetch_job_config_cleanup_ks")&&C.inPlaylist?void 0:c;if(typeof c==="number")return new OXt(D,C.makeUpNextTrigger(c),C.makePlaybackTrigger(c),
"watch",C.inPlaylist);if(typeof X==="number")return new OXt(D,C.makePlaybackTrigger(X),null,"watch",C.inPlaylist)}}},P16=function(D){return D.prefetchJobConfig_.backgroundTrigger?_.lq(_.Fa3)()==0?D.prefetchJobConfig_.backgroundTrigger:D.prefetchJobConfig_.foregroundTrigger:D.prefetchJobConfig_.foregroundTrigger},$4Y=function(D){_.Y1(document,"visibilitychange",D.onVisibilityChange_,!1,D)},A5=function(D){Il.call(this,D)};
_.h(A5,Il);A5.prototype.getCacheKeyForEndpoint=function(D){return Il.prototype.getCacheKeyForEndpoint.call(this,D)};
A5.prototype.getTempData=function(){return{}};
A5.prototype.getXhrParams=function(D){return D};
A5.prototype.getParams=function(){return{}};
var vEt=function(D,C,X){var c=D.prefetchDelay*1E3;if(Math.abs(c)>C)X.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var W=c,p=C-c;c<0&&(W=C+c,p=Math.abs(c));var g=D.JSC$13396_taskManager.addJob(function(){X.resolve(p/1E3)},10,W);
X.promise.thenCatch(function(){D.JSC$13396_taskManager.cancelJob(g)})}},iXG=function(D,C,X){C1p.call(this,D,C,X)};
_.h(iXG,C1p);iXG.prototype.prepareTrigger=function(D){var C=this;X6o(this,"onAutonavCoundownStarted",function(X){vEt(C,X,D)})};
var kZU=function(D){D.pendingPrefetchJob_&&(D.pendingPrefetchJob_.cancel(),D.pendingPrefetchJob_=null)},uMp=function(D,C,X){if(!D.triggeredTargets.has(C)){var c=_.Fte(D,C);
c.action=X;_.wbJ(D,C,c)}},QNw=function(D){_.Luk();
_.fbm("cpt")&&_.fQ(Error("lh"));_.co.requestAnimationFrame(function(){_.co.setTimeout(function(){_.sp("cpt");var C=_.Ep("vpl"),X=_.Ep("cpt");C&&X&&_.sp("ol",Math.max(C,X))})});
try{_.sp("fr_s"),D()}catch(C){_.MN(C)}_.co.requestAnimationFrame(function(){_.sp("bcp")})},BF1=function(D,C){D.serviceEndpointHandlers.push(C)},bX1=function(D,C){C=D.pendingPages_.indexOf(C);
C>-1&&D.pendingPages_.splice(C,1)},r7t=function(D,C){var X=_.C74.indexOf(C);
X>-1&&_.C74.splice(X,1);D.targetPage_==C?(D.abort(),_.cQe(D)):bX1(D,C)},K03=function(D,C,X,c){C={challenge:C};
X&&(C.webResponse=X);return _.vV(D.innertubeTransportService,C,_.dJ(zVY),c)},h8o=function(D,C,X){if(!C.challenge)throw Error("ri");
if(C.botguardData&&C.botguardData.program){var c=new TtP;c.initialize(C.botguardData,function(){JsU(c,{atr_challenge:C.challenge}).then(function(W){if(!W)throw Error("si");return K03(D,C.challenge,W,X)}).catch(function(W){_.fQ(W);
return K03(D,C.challenge,void 0,X)})},void 0)}else K03(D,C.challenge,void 0,X)},x4U=function(D,C,X){var c={};
C.ids&&(c.ids=[].concat(_.VB(C.ids)));C.engagementType&&(c.engagementType=C.engagementType);return _.vV(D.innertubeTransportService,c,_.dJ(_.lXx),X).then(function(W){if(!W)throw new _.Zf("GetAttestationChallenge returned falsy");h8o(D,W,X)}).thenCatch(function(W){_.MN(W)})},L0P=function(D,C,X){return new _.mM(function(c,W){var p;
return _.I(function(g){if(g.nextAddress==1){var a=g.yield,O=C.engagementType,P=C.ids,k={};P=_.U(P!=null?P:[]);for(var u=P.next();!u.done;u=P.next())u=u.value,u.encryptedVideoId?k.encryptedVideoId=u.encryptedVideoId:u.externalChannelId?k.externalChannelId=u.externalChannelId:u.commentId?k.commentId=u.commentId:u.externalOwnerId?k.externalOwnerId=u.externalOwnerId:u.artistId?k.artistId=u.artistId:u.playlistId?k.playlistId=u.playlistId:u.externalPostId?k.externalPostId=u.externalPostId:u.shareId&&(k.shareId=
u.shareId);return a.call(g,ibN(O,k),2)}p=g.yieldResult;if(!p.challenge)return _.fQ(Error("ti")),x4U(D,C,X).then(c,W),g.return();a=p;O={challenge:a.challenge};O.webResponse=a.webResponse;O.engagementType=C.engagementType;O.ids=C.ids;_.vV(D.innertubeTransportService,O,_.dJ(zVY),X).then(c,W);_.t_(g)})})},laG=function(D,C){var X,c,W,p;
_.I(function(g){if(g.nextAddress==1){X=_.r(C,_.lEN);if(!(X&&X.listId&&D.response&&D.response.playingVideoId)||D.listId!==X.listId)return g.return();D.index===void 0&&(D.index=0);return g.yield(_.bEk(D.JSC$13249_playlistNetworkManager,X.listId,D.index,D.response.playingVideoId),2)}c=g.yieldResult;if(!c)return g.return();W=c.playlistId;p=c.playlistPanelRenderer;D.setPlaylistData(W,p,c.autoplayRenderer);_.t_(g)})},sNp=function(D,C,X){var c=D.getParams(X),W=_.ouj(C,c),p=D.getTempData(C,X);
p.endpoint=JSON.stringify(C);_.b("enable_unknown_lact_fix_on_html5")&&(_.iX().resolve(_.B0),p.lact=_.kl());var g={headers:{"X-YouTube-STS":_.q6("STS"),"x-youtube-csoc":1}};_.jc(W,p);return new _.mM(function(a,O){var P=D.getXhrParams(c),k;_.b("kevlar_cache_on_ttl_player")&&(k=_.iX().resolve(_.hT));k&&_.I1P(k,C)?_.iFN(k,C,p,window.location.href).then(function(u){u?a(u):O()},O):_.dbJ(D.JSC$13386_networkManager_,C,P,D.onPartsCallback_.bind(D),g).then(function(u){u?a(u):O()},O)})},m4p=function(D,C){D.triggerPromise_=
C.start();
D.triggerPromise_.then(function(X){var c=D.prefetchEndpointProvider_.getPrefetchEndpoint();if(c){var W=c73[D.prefetchJobConfig_.pageType].prefetchedFragments;D.prefetchRequestPromise_=sNp(D.JSC$13422_networkPrefetchRequest_,c,{fragmentsRequested:W,timeBeforeNextVideo:X});D.prefetchResponseCacheKey_=D.JSC$13422_networkPrefetchRequest_.getCacheKeyForEndpoint(c);$4Y(D);D.prefetchRequestPromise_.then(function(p){D.storePrefetchedDataCallback_(D.prefetchResponseCacheKey_,p);if(_.b("web_prefetch_preload_video")&&
W.length===1&&W[0]==="pl"&&p&&!p.playerAds&&!p.adPlacements){var g=_.r(c,_.ko),a=g!=null,O={raw_player_response:p,watch_endpoint:g};(p=_.iX().resolve(a?_.oBx:_.pT))&&c&&p.then(function(P){a&&_.b("web_queue_preload_video")?(O.prefer_gapless=!0,P.queueNextVideo(O)):P.preloadVideoByPlayerVars(O)})}})}})},PB=function(D,C,X,c){this.prefetchEndpointProvider_=D;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=C;this.prefetchJobConfig_=X;this.JSC$13422_networkPrefetchRequest_=c;this.prefetchResponseCacheKey_=null};
PB.prototype.enqueue=function(){this.triggerPromise_||(m4p(this,P16(this)),_.Kb(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
PB.prototype.resolve=function(){this.cancel()};
PB.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.");$4Y(this)};
PB.prototype.onVisibilityChange_=function(){var D=this;_.lq(_.Fa3)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){D.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||m4p(this,P16(this))};
var e8X=function(D,C,X,c,W){C&&(C==null?0:C.videoId)&&X&&X.entries&&_.b("kevlar_enable_shorts_prefetch_in_sequence")&&(kZU(D),C=X.entries.map(function(p){var g;return(g=_.r(p.command,_.ko))==null?void 0:g.videoId}).indexOf(C.videoId),X=X.entries[C+1],X!=null&&X.command&&!_.r(X==null?void 0:X.command,_.ad)&&(c=new OXt([X.command],new W0G(c,_.qX,1),null,"shorts",!1),D.pendingPrefetchJob_=new PB(new IFX(c.autonavEndpoints),function(){return!1},c,new A5(W)),D.pendingPrefetchJob_.enqueue()))},EEp=function(D,
C,X,c,W,p){var g=_.em.getInstance();
if(!_.b("block_all_player_prefetch_requests")){kZU(D);var a=!!X.getPlaylistId(),O=X.getVideoData().isLive&&X.getVideoData().hasProgressBarBoundaries;if((g.getState()==2||a||O)&&(!X.getVideoData().isLive||O)){g={inPlaylist:a,videoDuration:X.getDuration(),makeUpNextTrigger:function(k){return new iXG(X,_.qX,k)},
makePlaybackTrigger:function(k){return new W0G(X,_.qX,k)}};
var P=A76(C,g);P&&(D.pendingPrefetchJob_=new PB(P.isInPlaylist?new aFk(W):new IFX(P.autonavEndpoints),function(k,u){u=new U46(c73[P.pageType].pageFragments,c73[P.pageType].prefetchedFragments,u);return _.szJ(u)?(D.prefetchCache_.set(k,u),!0):!1},P,new O0(c,X,p,W)),D.pendingPrefetchJob_.enqueue())}}},tG1=function(){var D=_.bP();
D.signals.parkOrScheduleJob(function(){var C=D.storage;if(C.storage)if(fsX(C)){var X=C.getPlaylistId();C=dq1(C);X=!!X&&C!==void 0}else C.clear(),X=!1;else X=!1;if(X){X=D.JSC$13249_pageManager.isOnWatch();a:{var c=D.storage;if(c.storage&&fsX(c)&&(C=c.getPlaylistId(),c=dq1(c),C&&c!==void 0)){X={recoverPlaylistCommand:{listId:C,index:c,openMiniplayer:!X,openListPanel:X,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}X=void 0}X&&_.fX(D.JSC$13249_actionRouter,[X],null)}},0,"ma")},NFN=function(D,C,X,
c,W,p){var g=_.Ia(7111);
_.Vc(D.JSC$18769_screenManager,g,p?_.bO(p):void 0);_.Hj(D.JSC$18769_screenManager,g,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:c,offlineId:C,offlineabilityFormatType:X,isDefaultFormatType:W==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:W}})},YLU=function(D,C,X,c,W){var p,g,a,O,P;
return _.I(function(k){if(k.nextAddress==1)return k.yield(D.JSC$18769_playerApiPromise,2);p=k.yieldResult;NFN(D,C,X,"OFFLINE_OBJECT_TYPE_PLAYLIST",c,W);if(a=_.Hdb[D.entityTypeMap.listEntityType])P={},g=(P[a]={maximumDownloadQuality:(O=X)!=null?O:void 0},P);return k.yield(p.queueOfflineAction(C,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",g),0)})},y7P=function(D,C){var X,c,W,p;
return _.I(function(g){if(g.nextAddress==1)return g.yield(D.JSC$18769_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){X=g.yieldResult;if(!X)return _.fQ(new _.Zf("PES is undefined")),g.return();c=_.gJ(C,"downloadStatusEntity");return g.yield(q9G(X,c,"downloadStatusEntity"),3)}W=g.yieldResult;return g.return((p=W)==null?void 0:p.downloadState)})},nEX=function(D,C,X,c,W){var p,g,a,O,P,k;
return _.I(function(u){switch(u.nextAddress){case 1:return u.yield(D.JSC$18769_playerApiPromise,2);case 2:p=u.yieldResult;NFN(D,C,X,"OFFLINE_OBJECT_TYPE_VIDEO",c,W);if(a=_.Hdb[D.entityTypeMap.singleEntityType])P={},g=(P[a]={maximumDownloadQuality:(O=X)!=null?O:void 0},P);return u.yield(y7P(D,C),3);case 3:k=u.yieldResult;if(k!=="DOWNLOAD_STATE_USER_DELETED"){u.jumpTo(4);break}return u.yield(D.deleteVideo(C),4);case 4:return u.yield(p.queueOfflineAction(C,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
g),0)}})},w61=function(D,C,X,c,W){return _.I(function(p){return p.nextAddress==1?p.yield(D.deleteVideo(C,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):p.yield(nEX(D,C,X,c,W),0)})},F0o=function(D,C,X){var c,W;
return _.I(function(p){if(p.nextAddress==1)return p.yield(D.JSC$18769_playerApiPromise,2);c=p.yieldResult;W=_.gJ(C,"mainVideoDownloadStateEntity");return p.yield(c.updateDownloadState(W,X),0)})},x$p=function(D){var C=_.iX().resolve(_.B$);
return _.I(function(X){if(X.nextAddress==1)return C.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&C.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?X.jumpTo(2):X.yield(C.resumeVideoDownload(D),2);if(X.nextAddress!=4)return X.yield(F0o(C,D,C.previousDownloadStateForVideo[D]),4);delete C.previousDownloadStateForVideo[D];_.t_(X)})},K2N=function(D,C){var X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$18769_playerApiPromise,2);X=c.yieldResult;return c.yield(X.queueOfflineAction(C,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},BkX=function(){var D=_.iX().resolve(_.B$),C,X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$18769_playerApiPromise,2);if(c.nextAddress!=3)return C=c.yieldResult,X={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},c.yield(C.queueOfflineAction("!*$_ALL_ENTITIES_!*$",D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",X),3);var W=D.JSC$18769_commandHandler,p=W.resolveCommand,g=_.I7("DELETING_ALL",void 0,"Downloads are being deleted");p.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ce(g)}},
popupType:"TOAST"}});_.t_(c)})},ZXt=function(D,C){var X,c,W,p,g,a;
return _.I(function(O){if(O.nextAddress==1)return O.yield(D.JSC$18769_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return X=O.yieldResult,X?O.yield(q9G(X,_.hX,"downloadsPageViewConfigurationEntity"),3):(_.fQ(new _.Zf("PES is undefined")),O.return());W=(c=O.yieldResult)!=null?c:{};a=(g=(p=W)==null?void 0:p.downloadsUpsellBannerVisibility)!=null?g:{};return a.visibleWithConnection?O.yield(C.refreshAllStaleEntities(0),0):O.jumpTo(0)})},GZ6=function(D){var C,X;
return _.I(function(c){if(c.nextAddress==1)return c.yield(D.JSC$18769_prefStorage,2);C=c.yieldResult;return c.return((X=C)==null?void 0:X.get("sdois"))})},VGt=function(D){var C,X,c,W,p,g;
return _.I(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18769_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){C=a.yieldResult;if(!C)return _.fQ(new _.Zf("PES is undefined")),a.return();X=_.gJ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return a.yield(q9G(C,X,"settingEntity"),3)}c=a.yieldResult;return a.return((g=(W=c)==null?void 0:(p=W.settingOptionValue)==null?void 0:p.boolValue)!=null?g:!1)})},TF3=function(D,C){var X,c,W,p;
return _.I(function(g){switch(g.nextAddress){case 1:return((X=C)==null?void 0:X.formatType)===void 0?g.return():g.yield(D.JSC$18769_prefStorage,2);case 2:c=g.yieldResult;if(c===void 0)return g.return();if(((W=C)==null?void 0:W.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return g.yield(c.set("lmqf",C.formatType),8);if(((p=C)==null?void 0:p.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){g.jumpTo(0);break}return g.yield(c.set("lmqf",C.formatType),6);case 6:return g.yield(c.set("lmqflst",
Math.floor((0,_.kh)())),0);case 8:return g.yield(c.remove("lmqflst"),0)}})},HXt=function(D){var C,X;
return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(D.JSC$18769_prefStorage,2);case 2:C=c.yieldResult;if(!C){c.jumpTo(3);break}return c.yield(C.get("lmqflst"),4);case 4:if(X=c.yieldResult,X!==void 0)return c.return(X);case 3:return c.return(0)}})},J7Y=function(D){var C,X,c;
return _.I(function(W){return W.nextAddress==1?W.yield(D.JSC$18769_prefStorage,2):W.nextAddress!=3?(C=W.yieldResult,W.yield((X=C)==null?void 0:X.get("ldtmes"),3)):W.return((c=W.yieldResult)!=null?c:!1)})},HW1=function(){var D=_.iX().resolve(_.B$),C;
return _.I(function(X){if(X.nextAddress==1)return X.yield(D.JSC$18769_prefStorage,2);C=X.yieldResult;return C===void 0?X.return():X.yield(C.set("ldtmes",!0),0)})},z8t=function(D){var C,X;
return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(D.JSC$18769_prefStorage,2);case 2:C=c.yieldResult;if(C===void 0){c.jumpTo(3);break}return c.yield(C.get("lmqf"),4);case 4:if(X=c.yieldResult,X!==void 0)return c.return(X);case 3:return c.return("SD")}})},YCX=function(D,C,X){var c,W,p,g,a,O,P,k;
_.I(function(u){switch(u.nextAddress){case 1:return u.yield(TF3(D,(c=C)==null?void 0:c.actionParams),2);case 2:W=C.playlistId;if(!W)return u.return();if(C.action==="ACTION_ADD")return((g=C.actionParams)==null?0:g.formatType)?u.yield(YLU(D,W,C.actionParams.formatType,(k=C.actionParams)==null?void 0:k.settingsAction,X),0):u.yield(D.offlineWebClientEligibility,14);if(C.action==="ACTION_REMOVE_WITH_PROMPT"){var Q=D.JSC$18769_commandHandler,B=Q.resolveCommand,K=_.q6("INNERTUBE_CLIENT_NAME");var L=K===
"WEB_REMIX"?_.I7("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.I7("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var t=K==="WEB_REMIX"?[_.I7("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];K=K==="WEB_REMIX"?_.I7("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.I7("DELETE",void 0,"Delete");var Y=_.I7("CANCEL",void 0,"Cancel");L=k2X(L,t,K,Y,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:W});B.call(Q,{openPopupAction:L});return u.return()}if(C.action===
"ACTION_REMOVE")return u.yield(K2N(D,W),0);if(C.action!=="ACTION_SYNC"){u.jumpTo(0);break}return u.yield(D.JSC$18769_playerApiPromise,9);case 9:return p=u.yieldResult,u.yield(p.queueOfflineAction(W,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return a=u.yieldResult,u.yield(z8t(D),15);case 15:return O=u.yieldResult,u.yield(HXt(D),16);case 16:P=u.yieldResult,C.onAddCommand&&D.JSC$18769_commandHandler.resolveCommand(C.onAddCommand,{form:{preferredFormatType:O,
offlineWebClientEligibility:a,lastOfflineQualitySettingsSavedMs:P.toString()}}),u.jumpTo(0)}})},tL6=function(D,C,X){var c,W,p,g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T,H,q;
_.I(function(R){switch(R.nextAddress){case 1:return R.yield(TF3(D,(c=C)==null?void 0:c.actionParams),2);case 2:W=C.videoId;if(!W)return R.return();if(C.action==="ACTION_REMOVE_WITH_PROMPT"){var ph=D.JSC$18769_commandHandler,Om=ph.resolveCommand,xj=_.q6("INNERTUBE_CLIENT_NAME");var Bo=xj==="WEB_REMIX"?_.I7("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.I7("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var r5=xj==="WEB_REMIX"?[_.I7("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];xj=xj==="WEB_REMIX"?_.I7("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.I7("DELETE",void 0,"Delete");var Fd=_.I7("CANCEL",void 0,"Cancel");Bo=k2X(Bo,r5,xj,Fd,{signal:"DELETE_DOWNLOAD",targetId:W});Om.call(ph,{openPopupAction:Bo});return R.return()}if(C.action==="ACTION_ADD")return((y=C.actionParams)==null?0:y.formatType)?R.yield(nEX(D,W,C.actionParams.formatType,(q=C.actionParams)==null?void 0:q.settingsAction,X),0):R.yield(D.offlineWebClientEligibility,
28);if(C.action==="ACTION_RETRY")return R.yield(z8t(D),24);if(C.action==="ACTION_PAUSE")return R.yield(D.pauseVideoDownload(W),0);if(C.action==="ACTION_RESUME")return R.yield(D.resumeVideoDownload(W),0);if(C.action==="ACTION_REMOVE")return R.yield(y7P(D,W),18);if(!_.b("kevlar_enable_download_to_mobile")){R.jumpTo(0);break}p=_.r(C.onAddCommand,_.fI);a=(g=p)==null?void 0:g.isCrossDeviceDownload;if(!C.onAddCommand||!a){R.jumpTo(0);break}O="HD";return R.yield(HXt(D),16);case 16:return P=R.yieldResult,
R.yield(J7Y(D),17);case 17:k=R.yieldResult;D.JSC$18769_commandHandler.resolveCommand(C.onAddCommand,{form:{preferredFormatType:O,lastOfflineQualitySettingsSavedMs:P.toString(),downloadToMobileEduShown:k}});R.jumpTo(0);break;case 18:return u=R.yieldResult,D.previousDownloadStateForVideo[W]=(Q=u)!=null?Q:"DOWNLOAD_STATE_UNKNOWN",R.yield(F0o(D,W,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(D.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&D.previousDownloadStateForVideo[W]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){R.jumpTo(20);break}return R.yield(D.pauseVideoDownload(W),20);case 20:ph=_.I7("DELETED_VIDEO",void 0,"Video deleted from downloads.");Om=_.I7("UNDO_ACTION",void 0,"Undo");Bo=_.I7("CLOSE",void 0,"Close");B={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Ce(ph),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Ce(Om),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:ph+" "+Om}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Bo}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};D.JSC$18769_commandHandler.resolveCommand(B);
R.jumpTo(0);break;case 24:K=R.yieldResult;K==="UNKNOWN_FORMAT_TYPE"&&(K="SD");L="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((t=C.actionParams)==null?0:t.formatType)K=C.actionParams.formatType,L=(Y=C.actionParams)==null?void 0:Y.settingsAction;return R.yield(w61(D,W,K,L,X),25);case 25:return R.return();case 28:return J=R.yieldResult,R.yield(z8t(D),29);case 29:return T=R.yieldResult,R.yield(HXt(D),30);case 30:H=R.yieldResult,C.onAddCommand&&D.JSC$18769_commandHandler.resolveCommand(C.onAddCommand,
{form:{preferredFormatType:T,offlineWebClientEligibility:J,lastOfflineQualitySettingsSavedMs:H.toString()}}),R.jumpTo(0)}})},jNU=function(D,C){var X,c,W,p,g,a,O;
return _.I(function(P){if(P.nextAddress==1)return P.yield(D.JSC$18769_persistentStorePromiseAccessor(),2);X=P.yieldResult;if(!X)return _.fQ(new _.Zf("PES is undefined")),P.return();if((c=C)==null||!c.settingItemId)return P.return();W=C;p=W.settingItemId;g=W.boolValue;a=_.gJ(p,"settingEntity");O={key:a,settingOptionValue:{boolValue:g}};return P.yield(MPX(X,O),0)})},MGG=function(D,C){var X,c,W,p,g,a,O;
return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(D.JSC$18769_prefStorage,2);case 2:return X=P.yieldResult,c=_.PE(),P.yield(D.JSC$18769_persistentStorePromiseAccessor(),3);case 3:return W=P.yieldResult,X?W?P.yield(X.get("sdois"),4):(_.fQ(new _.Zf("PES is undefined")),P.return()):(_.fQ(new _.Zf("prefStorage is undefined")),P.return());case 4:p=P.yieldResult;a=(g=C)==null?void 0:g.boolValue;a===void 0||_.b("kevlar_set_sd_enabled_flag_killswitch")||_.$C(0,197,!0);p===void 0&&a===void 0&&
(a=!1);if(a===void 0){P.jumpTo(0);break}return P.yield(X.set("sdois",a),6);case 6:return _.b("kevlar_set_sd_enabled_flag_killswitch")||(_.$C(0,196,a),c.save()),O={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:a},P.yield(jNU(D,O),0)}})},qLX=function(D,C,X){var c,W,p,g,a;
return _.I(function(O){switch(O.nextAddress){case 1:return O.yield(GZ6(D),2);case 2:return c=O.yieldResult,O.yield(MGG(D,X),3);case 3:return O.yield(GZ6(D),4);case 4:return W=O.yieldResult,p=W!==c,O.yield(VGt(D),5);case 5:g=O.yieldResult&&!_.b("kevlar_modern_downloads_page");if((a=!W&&!g)||p)return O.yield(C.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);O.jumpTo(0)}})},sb3=function(){var D=_.iX().resolve(_.B$),
C;
_.I(function(X){switch(X.nextAddress){case 1:return X.yield(D.JSC$18769_playerApiPromise,2);case 2:C=X.yieldResult;if(!_.b("kevlar_force_refresh_smart_downloads")){X.jumpTo(3);break}return X.yield(C.refreshAllStaleEntities(0),4);case 4:return X.return();case 3:return X.yield(C.refreshAllStaleEntities(),5);case 5:return X.yield(qLX(D,C),6);case 6:if(_.b("enable_download_pep_for_premium_countries_web"))return X.yield(ZXt(D,C),0);X.jumpTo(0)}})},n1p=function(D,C){var X,c;
_.I(function(W){switch(W.nextAddress){case 1:return W.yield(D.JSC$18769_playerApiPromise,2);case 2:X=W.yieldResult;switch((c=C)==null?void 0:c.settingItemId){case "SMART_DOWNLOADS_ENABLED":return W.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return W.jumpTo(4)}W.jumpTo(0);break;case 3:return W.yield(qLX(D,X,C),6);case 6:W.jumpTo(0);break;case 4:return W.yield(jNU(D,C),7);case 7:W.jumpTo(0)}})},fFY=function(D,C){var X,c,W;
return _.I(function(p){if(p.nextAddress==1)return p.yield(D.JSC$18769_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3){X=p.yieldResult;if(!X)return _.fQ(new _.Zf("PES is undefined")),p.return(!1);if(!C)return p.return(!1);c=_.gJ(C,"mainVideoEntity");return p.yield(q9G(X,c,"mainVideoEntity"),3)}W=p.yieldResult;return p.return(W!==void 0)})},F2p=function(D){var C=_.iX().resolve(_.B$),X,c,W,p,g,a,O,P,k,u,Q;
_.I(function(B){switch(B.nextAddress){case 1:return B.yield(C.JSC$18769_playerApiPromise,2);case 2:X=B.yieldResult;W=(c=D)==null?void 0:c.actions;if(!W)return B.return();p=_.U(W);g=p.next();case 3:if(g.done){B.jumpTo(0);break}a=g.value;P=O=void 0;if(!(((O=a)==null?0:O.entityKey)&&((P=a)==null?0:P.actionType))){B.jumpTo(4);break}k=_.pe(a.entityKey);u=k.entityId;Q=k.entityType;return B.yield(X.queueOfflineAction(u,Q,a.actionType),4);case 4:g=p.next(),B.jumpTo(3)}})},d4t=function(D,C){var X,c,W,p,g;
return _.I(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18769_prefStorage,2);if(a.nextAddress!=3)return(X=a.yieldResult)?a.yield(X.get("psi"),3):a.return();c=a.yieldResult;g={isPaused:C,lastSyncTimestamp:(p=(W=c)==null?void 0:W.lastSyncTimestamp)!=null?p:"0"};return a.yield(X.set("psi",g),0)})},VLo=function(D){var C=_.iX().resolve(_.B$),X,c,W,p,g,a,O,P;
return _.I(function(k){switch(k.nextAddress){case 1:return k.yield(C.JSC$18769_playerApiPromise,2);case 2:X=k.yieldResult;W=((c=D)==null?void 0:c.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((a=D)==null?void 0:a.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":p="!*$_ALL_ENTITIES_!*$";g="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return k.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return k.jumpTo(4)}k.jumpTo(5);break;case 3:return k.yield(d4t(C,W),6);case 6:k.jumpTo(5);break;case 4:return k.yield(fFY(C,(O=D)==null?void 0:O.videoId),7);case 7:k.yieldResult&&(p=(P=D)==null?void 0:P.videoId,g="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");k.jumpTo(5);break;case 5:if(p&&g)return k.yield(X.queueOfflineAction(p,"videoPlaybackPositionEntity",g),0);k.jumpTo(0)}})},R8w=function(D,C){var X;
C!==1||((X=D.currentPersistentToast)==null?0:X.isOpened())?D.openToast():D.currentPersistentToast=void 0},lFU=function(D,C){var X;
return(X=D.transitionTasksMap.get(C))!=null?X:[]},Di6=function(D,C){var X=[];
D.elementTasksMap.forEach(function(c){(c=c.get(C))&&X.push(c)});
return X},CWP=function(D,C,X,c,W){W=W===void 0?{}:W;
var p=C.defaultViewTransitionOptions;return Object.assign({},p,W,{beforeTransition:function(){c.forEach(function(P){P.beforeTransition()});
var g;(g=p.beforeTransition)==null||g.call(p);var a,O;(O=(a=W).beforeTransition)==null||O.call(a);X.forEach(function(P){P.beforeTransition()})},
afterTransition:function(){c.forEach(function(P){P.afterTransition()});
var g;(g=p.afterTransition)==null||g.call(p);var a,O;(O=(a=W).afterTransition)==null||O.call(a);X.forEach(function(P){P.afterTransition()})},
ignoredErrors:D.config.ignoredErrors})},XGN=function(D,C,X){D.transitionTasksMap.has(C)?D.transitionTasksMap.get(C).push(X):(D=new _.Zf("Transition task registered for unknown transition type",C),_.MN(D))},cxo=function(D,C,X){if(D.transitionTasksMap.has(C)){var c=D.transitionTasksMap.get(C).filter(function(W){return W!==X});
D.transitionTasksMap.set(C,c)}},oyt=function(D,C){var X=lFU(D,C);
X=_.U(X);for(var c=X.next();!c.done;c=X.next())c=c.value,c.runOnce&&cxo(D,C,c);D.elementTasksMap.forEach(function(W,p){W.forEach(function(g,a){g.runOnce&&C===a&&(W.delete(a),W.size===0&&D.elementTasksMap.delete(p))})})},W83=function(D,C,X){var c,W,p,g,a,O,P,k,u;
_.I(function(Q){if(Q.nextAddress==1){if(D.config.disableAllTransitions)return Q.return(C());if((c=X)==null||!c.transitionType)return Q.return(_.TLX(C,Object.assign({},(W=X)==null?void 0:W.viewTransitionOptions,{ignoredErrors:D.config.ignoredErrors})));p=X;g=p.transitionType;a=p.viewTransitionOptions;O=D.config.transitionConfigs.get(g);if(!O)return Q.return(C());P=lFU(D,g);k=Di6(D,g);u=_.TLX(C,CWP(D,O,P,k,a));return Q.yield(u,2)}oyt(D,g);_.t_(Q)})},pGG=function(){var D,C,X,c;
return _.I(function(W){if(W.nextAddress==1)return D=navigator,(C=D.storage)!=null&&C.persisted?W.yield((X=D.storage)==null?void 0:X.persisted(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");c=W.yieldResult;return W.return(c?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Sy3=function(){var D,C,X,c;
return _.I(function(W){if(W.nextAddress==1)return D=navigator,(C=D.storage)!=null&&C.persist?W.yield((X=D.storage)==null?void 0:X.persist(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");c=W.yieldResult;return W.return(c?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},UiX=function(){var D,C;
return _.I(function(X){switch(X.nextAddress){case 1:return D="PERSISTED_STATE_NOT_SUPPORTED",_.KK(X,2),X.yield(pGG(),4);case 4:D=X.yieldResult;if(D!=="PERSISTED_STATE_NOT_GRANTED"){X.jumpTo(5);break}return X.yield(Sy3(),6);case 6:D=X.yieldResult;case 5:_.SR(X,3);break;case 2:C=_.Eu(X),C instanceof Error&&_.MN(C);case 3:return _.zu("persistentStorageStateChecked",{persistedState:D}),X.return(D)}})},gyG=function(D,C){var X=[],c=!1;
C=_.U(C);for(var W=C.next();!W.done;W=C.next()){W=D.moduleRegistry[W.value];var p=void 0,g=void 0;((p=W)==null?0:p.isFetching)&&((g=W)==null?0:g.resolver)?(X.push(W.resolver.promise),c=!0):(W=new _.gL,W.resolve(void 0),X.push(W.promise))}return c?Promise.all(X):void 0},aEX=function(D,C,X){if(D.isAnyTransitionEnabled){var c={beforeTransition:function(){X(!0);
C.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){C.style.viewTransitionName&&(C.style.viewTransitionName="",X(!1))}};
XGN(D.viewTransitionCoordinator,"slide",c);XGN(D.viewTransitionCoordinator,"lockup-to-watch",c);XGN(D.viewTransitionCoordinator,"watch-next-appears",c);XGN(D.viewTransitionCoordinator,"learning-journey",c)}},IEo=function(D,C){D.isBrowseTransitionEnabled?W83(D.viewTransitionCoordinator,C,{transitionType:"slide"}):(C(),Promise.resolve())},Or6=function(D,C){D.isLockupToWatchTransitionEnabled?W83(D.viewTransitionCoordinator,C,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){D.registeredLockupThumbnail=void 0;D.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(C(),Promise.resolve())},AxN=function(D,C){D.isLockupToWatchTransitionEnabled?W83(D.viewTransitionCoordinator,C,{transitionType:"watch-next-appears"}):(C(),Promise.resolve())},PWG=function(D,C){D.isLearningJourneyTransitionEnabled?W83(D.viewTransitionCoordinator,C,{transitionType:"learning-journey"}):(C(),Promise.resolve())},$i6=function(D,C,X){if(D.isInitialized()){var c=
rK(X),W=c==="watch";
c=c==="shorts";var p=rK(C)==="watch";if(W)p||(D.backgroundPageData=C),D.watchPipMode&&p||D.deactivate(X.endpoint);else if(c){if(rK(C)!=="shorts"){var g;(g=D.getPlayerElement())==null||g.pause()}}else p&&!D.watchPipMode&&(uV3(C,X,!0)?(D.watchWhileMode&&_.bQY(D,!1),_.Pw6(D,C)):D.isMiniplayerActive()&&D.watchWhileMode&&D.deactivate());p&&_.KMX(D);D.shortsPipMode&&!c&&(window.focus(),D.deactivate());if(D.pictureInPictureEnabled())if(c&&D.shortsPipEnabled||W&&D.watchPipEnabled)_.Khj(D.handleMediaSessionPipActivation);
else if(!D.isMiniplayerActive()&&(D.shortsPipEnabled||D.watchPipEnabled)&&window.documentPictureInPicture&&_.mr()&&_.bhn("Chromium")>=120){D=_.raZ().mediaSession;try{D.setActionHandler("enterpictureinpicture",null)}catch(a){}}}},vyo=function(D,C){var X,c;
_.I(function(W){if(W.nextAddress==1){if(!D||!D.navigationEndpoint)return W.return();_.qg().lockupActivation=!0;var p;C?p=_.jV(_.I7("QUEUE",void 0,"Queue")):p=D.longBylineText;c=(X=p)&&D.title?{miniplayerTitle:D.title,miniplayerSubtitle:X,playlistData:null}:void 0;return W.yield(_.Cd5(_.iX().resolve(_.wB),D.navigationEndpoint,!0,c),2)}_.qg().userActivation=!0;_.t_(W)})},faP=function(D,C){var X,c,W,p,g,a;
_.I(function(O){if(O.nextAddress==1){X=_.r(C,_.RUc);if(!X||!X.listId)return O.return();D.index=X.index||D.index||0;c=D.response&&D.response.playingVideoId||void 0;return O.yield(_.bEk(D.JSC$13249_playlistNetworkManager,X.listId,D.index,c),2)}W=O.yieldResult;if(!W)return O.return();p=W.playlistId;g=W.playlistPanelRenderer;!D.queueProxy&&p&&g&&p.startsWith("TLPQ")&&(D.queueProxy=new _.PV(D.JSC$13249_playlistNetworkManager,p,D.setPlaylistData.bind(D),D.clearQueue.bind(D),_.RNJ(g),D.storage));if(X.openMiniplayer&&
(a=_.lQd(g))&&!D.JSC$13249_pageManager.isOnWatch()){var P=a,k=X.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";D.isMiniplayerActive()?D.openToast(P):vyo(P,k)}D.setPlaylistData(p,g,W.autoplayRenderer);_.t_(O)})},jkt=function(D,C){var X=_.bP();
X.index===void 0&&(X.index=0);X.temporaryItems.push.apply(X.temporaryItems,_.VB(D));if((C.videoId||C.videoIds)&&X.index!==void 0&&C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!X.queueProxy){var c=[];if(X.response){var W=_.iX().resolve(_.wB).isMiniplayerActive();if(X.response.playlistPanelRenderer&&X.response.playlistId&&!X.response.playlistId.startsWith("TLPQ")){if(X.JSC$13249_pageManager.isOnWatch()||W)c=_.RNJ(X.response.playlistPanelRenderer)}else X.response.playingVideoId&&!C.openMiniplayer?
c.push(X.response.playingVideoId):W&&X.response.playingVideoId&&C.openMiniplayer&&c.push(X.response.playingVideoId)}X.queueProxy=new _.PV(X.JSC$13249_playlistNetworkManager,"",X.setPlaylistData.bind(X),X.clearQueue.bind(X),c,X.storage);X.queueProxy.JSC$13195_setCurrentIndex(X.index)}X.queueProxy.addVideos(C.videoIds||[C.videoId],C)}RVG(X,D);X.response&&_.rR(X,_.K_(X,X.response.autoplayRenderer));X.JSC$13249_pageManager.isOnWatch()?X.isMiniplayerActive()&&X.openToast(D[0]):(D=D[0],C=C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
X.isMiniplayerActive()?X.openToast(D):vyo(D,C))},irN=function(D){var C=_.DG(D);
if(C=="object"||C=="array"){if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);C=C=="array"?[]:{};for(var X in D)C[X]=irN(D[X]);return C}return D},$2=function(D,C){return _.kNF(_.uS(D,C,void 0,_.k5))},vB=function(D,C){return _.aw(_.uS(D,C,void 0,_.k5))},iN=function(D,C){return _.ngd(_.uS(D,C,void 0,_.k5))},k2=function(D,C){return _.uS(D,C,void 0,_.k5,_.lb)},kI1=_.OB(function(D,
C,X,c){if(D.nextWireType_!==0)return!1;
_.r1(C,X,c,_.Za(D.decoder_,_.vgm));return!0},_.uU,_.Ju),ukt=_.OB(function(D,C,X){if(D.nextWireType_!==1)return!1;
var c=D.decoder_;D=_.VO(c);c=_.VO(c);D=_.TN(D,c);_.Pv(C,X,D);return!0},_.wvd,_.aGk),QRo=_.OB(function(D,C,X){if(D.nextWireType_!==2)return!1;
D=_.MCN(D);_.Pv(C,X,D===_.tc()?void 0:D);return!0},_.Tjm,_.APg),BWU=_.sHd(function(D,C,X){if(D.nextWireType_!==0&&D.nextWireType_!==2)return!1;
C=_.Xm(C,C[_.SC]|0,X);D.nextWireType_==2?_.qdq(D,mqt,C):C.push(_.Gj(D.decoder_));return!0},function(D,C,X){C=_.LzR(_.aw,C,!0);
if(C!=null&&C.length){X=_.C6C(D,X);for(var c=0;c<C.length;c++)_.YBR(D.encoder_,C[c]);_.Xpe(D,X)}},_.P6J),bro=_.OB(function(D,C,X,c){if(D.nextWireType_!==0)return!1;
_.r1(C,X,c,_.Gj(D.decoder_));return!0},_.J2m,_.P6J),rxt=function(D){return D.previousElementSibling!==void 0?D.previousElementSibling:_.heq(D.previousSibling,!1)},K8X=function(D,C){var X=[];
for(C=C||0;C<D.length;C+=2)_.Pcx(D[C],D[C+1],X);return X.join("&")},hUY=function(D,C){var X=arguments.length==2?K8X(arguments[1],0):K8X(arguments,1);
return _.AR4(D,X)},SWt=_.rj(_.tm),xio=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(xio,_.aH);xio.prototype.getTypeName=function(){return _.EG(this,1).split("/").pop()};
xio.prototype.getValue=function(){var D=_.uS(this,2);if(Array.isArray(D)||D instanceof _.aH)throw Error("W");return _.bS(this,2)};
var L8t=[0,2,_.CL],dok=function(){var D=_.Wl();this.JSC$10082_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ic("channel_type"))};
dok.prototype.increment=function(D){this.JSC$10082_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",D)};
var R_o=function(){var D=_.Wl();this.JSC$10085_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ic("channel_type"))};
R_o.prototype.increment=function(D){this.JSC$10085_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",D)};
var D8t=function(){var D=_.Wl();this.JSC$10088_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ic("channel_type"))};
D8t.prototype.increment=function(D){this.JSC$10088_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",D)};
var lTU=function(){var D=_.Wl();this.JSC$10091_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
lTU.prototype.increment=function(){this.JSC$10091_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var CTX=function(){var D=_.Wl();this.JSC$10094_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ic("channel_type"),_.ic("error_type"))};
CTX.prototype.increment=function(D,C){this.JSC$10094_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",D,C)};
var XRG=function(){var D=_.Wl();this.JSC$10097_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
XRG.prototype.increment=function(){this.JSC$10097_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var cTt=function(){var D=_.Wl();this.JSC$10100_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
cTt.prototype.increment=function(){this.JSC$10100_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var gx1=function(){var D=_.Wl();this.JSC$10106_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
gx1.prototype.increment=function(){this.JSC$10106_streamzService.JSC$9952_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var sRN=function(D){return D.getCount&&typeof D.getCount=="function"?D.getCount():_.JW(D)||typeof D==="string"?D.length:_.ZI.getCount(D)},miG=function(D,C){if(typeof D.every=="function")return D.every(C,void 0);
if(_.JW(D)||typeof D==="string")return Array.prototype.every.call(D,C,void 0);for(var X=_.vlx(D),c=_.O9(D),W=c.length,p=0;p<W;p++)if(!C.call(void 0,c[p],X&&X[p],D))return!1;return!0},eUN=function(D,C,X,c){var W=new _.H7(null);
D&&_.As(W,D);C&&_.PP(W,C);X&&_.$x(W,X);c&&_.vP(W,c);return W},Eyt=function(){var D=_.Di&&_.vo(_.e2b,10)>=0,C;
if(C=_.DfJ)C=_.vo(_.mO5,10)>=0;var X=_.PT&&_.vo(_.e2b,85)>=0;return _.ak||D||C||X},tUt=function(D){var C=_.Mo4(D);
return C&&Eyt()?-D.scrollLeft:C&&_.Rh(D,"overflowX")!="visible"?D.scrollWidth-D.clientWidth-D.scrollLeft:D.scrollLeft},NWt=function(D,C){C=Math.max(C,0);
_.Mo4(D)?Eyt()?D.scrollLeft=-C:D.scrollLeft=D.scrollWidth-C-D.clientWidth:D.scrollLeft=C},yvG=0,G2G=!1;
T23.prototype.set=function(D){this.relativeTimeStart_=D};
T23.prototype.reset=function(){this.set(_.ok())};
T23.prototype.get=function(){return this.relativeTimeStart_};
var YyY=null,yxt=function(){YyY||(YyY=new T23)},nyX=function(){YyY||(YyY=new T23)};
_.WT(nyX,yxt);_.S=HbG.prototype;_.S.JSC$11518_buffer_="";_.S.set=function(D){this.JSC$11518_buffer_=""+D};
_.S.append=function(D,C,X){this.JSC$11518_buffer_+=String(D);if(C!=null)for(var c=1;c<arguments.length;c++)this.JSC$11518_buffer_+=arguments[c];return this};
_.S.clear=function(){this.JSC$11518_buffer_=""};
_.S.getLength=function(){return this.JSC$11518_buffer_.length};
_.S.toString=function(){return this.JSC$11518_buffer_};
var wGG=!1,lRw=function(D){_.Dn.call(this,D.message||D.description||D.name);this.isMissing=D instanceof q43;this.isTimeout=D instanceof _.sok&&D.errorCode=="net.timeout";this.isCanceled=D instanceof _.wE};
_.h(lRw,_.Dn);lRw.prototype.name="BiscottiError";var q43=function(){_.Dn.call(this,"Biscotti ID is missing from server")};
_.h(q43,_.Dn);q43.prototype.name="BiscottiMissingError";var fRt=null,ZR6=function(){try{var D=_.Df("yt.ads.biscotti.getId_");return D?D():s31()}catch(C){return _.x7(C)}},F8N=function(D,C){return _.oI({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:D,command:C}})},ZrG=function(D){return _.oI({type:"SET_GUIDE_IS_EXPANDED",
payload:D})},GIw=function(D){return _.oI({type:"SET_ONLINE_STATUS",
payload:D})},VUG=function(D,C){return _.oI({type:"SET_TRANSCRIPTION_STATE",
payload:{high:D,low:C}})},TWt=function(D){return _.oI({type:"SET_OVERLAY_STATE",
payload:D})},HrU=0,Jxk=function(D,C,X){var c=this;
this.priority=C;this.delay=X;this.jobId=0;this.completionCallback=_.e$;this.wrappedJob=function(){D();c.completionCallback()};
this.id=++HrU};
Jxk.prototype.enqueue=function(D){this.completionCallback=D;this.jobId=_.qX.addJob(this.wrappedJob,this.priority,this.delay)};
var uN=function(){_.i1.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.h(uN,_.i1);uN.prototype.addJob=function(D,C,X){D=new Jxk(D,C,X);this.taskIdToTask.set(D.id,D);this.isActive?zUt(this,D):this.suspendedTasks.add(D);return D.id};
var zUt=function(D,C){D.scheduledTasks.add(C);C.enqueue(function(){D.scheduledTasks.delete(C)})};
uN.prototype.cancelJob=function(D){(D=this.taskIdToTask.get(D))&&(this.scheduledTasks.delete(D)?_.qX.cancelJob(D.jobId):this.suspendedTasks.delete(D))};
uN.prototype.pause=function(){var D=this;this.isActive=!1;this.scheduledTasks.forEach(function(C){_.qX.cancelJob(C.jobId);D.suspendedTasks.add(C)});
this.scheduledTasks.clear()};
uN.prototype.start=function(){var D=this;this.isActive=!0;this.suspendedTasks.forEach(function(C){zUt(D,C)});
this.suspendedTasks.clear()};
uN.prototype.reset=function(){this.scheduledTasks.forEach(function(D){_.qX.cancelJob(D.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var jRp=function(D,C){this.JSC$13375_networkService_=D;this.pageRequestPromise=C};
jRp.prototype.fetchData=function(D){MUY(this,this.JSC$13375_networkService_.fetchData(D))};
jRp.prototype.postData=function(D,C){MUY(this,this.JSC$13375_networkService_.postData(D,C))};
jRp.prototype.requestDataForServiceEndpoint=function(D,C){MUY(this,this.JSC$13375_networkService_.requestDataForServiceEndpoint(D,C))};
var MUY=function(D,C){C.then(D.pageRequestPromise.onSuccess,D.pageRequestPromise.onFailure,D.pageRequestPromise)};
jRp.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var qyU=function(D){this.buildNetworkRequest_=D;this.pendingRequests_=new Set};
qyU.prototype.reset=function(){this.pendingRequests_.forEach(function(D){D.cancel()});
this.pendingRequests_.clear()};
qyU.prototype.fetchData=function(D){var C=fEG(this);C.fetchData(D);return C.pageRequestPromise};
qyU.prototype.postData=function(D,C){var X=fEG(this);X.postData(D,C);return X.pageRequestPromise};
qyU.prototype.requestDataForServiceEndpoint=function(D,C){var X=fEG(this);X.requestDataForServiceEndpoint(D,C);return X.pageRequestPromise};
var fEG=function(D){var C=D.buildNetworkRequest_();D.pendingRequests_.add(C);var X=function(){D.pendingRequests_.delete(C)};
C.pageRequestPromise.then(X,X);return C},diN=function(D){var C=new uN;
this.JSC$13382_networkService_=D;this.JSC$13382_taskManager_=C;this.JSC$13382_networkManager_=new qyU(this.networkRequestFactory_.bind(this))};
_.S=diN.prototype;_.S.networkRequestFactory_=function(){return new jRp(this.JSC$13382_networkService_,new _.V4(this.JSC$13382_taskManager_))};
_.S.reset=function(){this.JSC$13382_taskManager_.reset();this.JSC$13382_networkManager_.reset()};
_.S.start=function(){this.JSC$13382_taskManager_.start()};
_.S.pause=function(){this.JSC$13382_taskManager_.pause()};
_.S.getTaskManager=function(){return this.JSC$13382_taskManager_};
_.S.getNetworkManager=function(){return this.JSC$13382_networkManager_};
var Alp=null,v_G=[],Unt=0,OIU=0,g_t=null,xW=function(D){this.token=D};
xW.getInstance=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.vz(),2);D=C.yieldResult;if(!D)return C.return();xW.instance||(xW.instance=new xW(D));return C.return(xW.instance)})};
var KlP=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(B$6(D.token),2);C=X.yieldResult;return X.return(C.clear("resource-manifest-assets"))})},hQ=function(D){this.token=D};
hQ.getInstance=function(){var D;return _.I(function(C){if(C.nextAddress==1)return C.yield(_.vz(),2);D=C.yieldResult;if(!D)return C.return();hQ.instance||(hQ.instance=new hQ(D));return C.return(hQ.instance)})};
var bIN=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(B$6(D.token),2);C=X.yieldResult;return X.yield(C.clear("auth"),0)})},RUP=!1,w0k=null,Fl6=void 0,M5Y=!1,lEk=function(D){_.Dn.call(this,D)};
_.h(lEk,_.qQ5);var j2p=function(){var D=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return D?parseInt(D[1],10):0},DDp=function(D){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+D)!=-1||document.currentScript.src.indexOf("&"+D)!=-1)},CRP=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},RDU=function(D){D.length?X8t(D.shift(),function(){RDU(D)}):q3p()},DyP=function(D){return"chrome-extension://"+D+"/cast_sender.js"},X8t=function(D,
C,X){var c=document.createElement("script");
c.onerror=C;X&&(c.onload=X);_.gH(c,_.Z1(D));(document.head||document.documentElement).appendChild(c)},cnt=function(){var D=j2p(),C=[];
if(D>1){var X=D-1;C.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js");C.push("//www.gstatic.com/eureka/clank/"+X+"/cast_sender.js")}return C},q3p=function(){var D=CRP();
D&&D(!1,"No cast extension found")},d8P=function(){if(oYo){var D=2,C=CRP(),X=function(){D--;
D==0&&C&&C(!0)};
window.__onGCastApiAvailable=X;X8t("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",q3p,X)}},MXG=function(){d8P();
var D=cnt();D.push("//www.gstatic.com/eureka/clank/cast_sender.js");RDU(D)},ftp=function(){d8P();
var D=cnt();D.push.apply(D,_.VB(ltk.map(DyP)));D.push("//www.gstatic.com/eureka/clank/cast_sender.js");RDU(D)},oYo=DDp("loadCastFramework")||DDp("loadCastApplicationFramework"),ltk=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var W_w=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(W_w,_.aH);var p8X=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(p8X,_.aH);var Svp=function(){var D=new p8X;return _.w1(D,1,3)};var QN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(QN,_.aH);var wXo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(wXo,_.aH);var UDt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(UDt,_.aH);UDt.prototype.getToken=function(){return _.EG(this,1)};
UDt.prototype.setToken=function(D){return _.Tt(this,1,D)};
var yGw=function(D){return _.d3(D,3,_.r3,_.AR())},nuG=function(D){return _.d3(D,6,_.r3,_.AR())};var BB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(BB,_.aH);BB.prototype.getToken=function(){return _.Bz(this,UDt,2)};
BB.prototype.setToken=function(D){return _.Lf(this,2,D)};
BB.prototype.getName=function(){return _.EG(this,6)};
var gYp=_.rj(BB);var aKN=function(D,C,X){this.requestMessage=D;this.methodDescriptor=C;this.metadata=X};
aKN.prototype.getMetadata=function(){return this.metadata};var IKt=function(D,C){C=C===void 0?{}:C;this.responseMessage=D;this.metadata=C;this.status=null};
IKt.prototype.getMetadata=function(){return this.metadata};
IKt.prototype.getStatus=function(){return this.status};var bN=function(D,C,X,c,W){this.name=D;this.methodType="unary";this.requestType=C;this.responseType=X;this.requestSerializeFn=c;this.responseDeserializeFn=W},O0P=function(D,C,X){X=X===void 0?{}:X;
return new aKN(C,D,X)};
bN.prototype.getName=function(){return this.name};var rw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(rw,_.aH);rw.prototype.getHeader=function(){return _.Bz(this,QN,1)};
rw.prototype.setHeader=function(D){return _.Lf(this,1,D)};
rw.prototype.hasHeader=function(){return _.QO(this,QN,1)};var AnU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(AnU,_.aH);var PRk=new bN("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",rw,AnU,function(D){return D.serialize()},_.rj(AnU));var Kw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Kw,_.aH);Kw.prototype.getHeader=function(){return _.Bz(this,QN,1)};
Kw.prototype.setHeader=function(D){return _.Lf(this,1,D)};
Kw.prototype.hasHeader=function(){return _.QO(this,QN,1)};var $DG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h($DG,_.aH);var vYU=new bN("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Kw,$DG,function(D){return D.serialize()},_.rj($DG));var h5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(h5,_.aH);h5.prototype.getHeader=function(){return _.Bz(this,QN,1)};
h5.prototype.setHeader=function(D){return _.Lf(this,1,D)};
h5.prototype.hasHeader=function(){return _.QO(this,QN,1)};var i0k=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(i0k,_.aH);i0k.prototype.getValues=function(D){return _.ycg(this,1,D)};var kEP=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(kEP,_.aH);kEP.prototype.getLink=function(){return _.Bz(this,BB,1)};var ulw=new bN("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",h5,kEP,function(D){return D.serialize()},_.rj(kEP));var x2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(x2,_.aH);x2.prototype.getHeader=function(){return _.Bz(this,QN,1)};
x2.prototype.setHeader=function(D){return _.Lf(this,1,D)};
x2.prototype.hasHeader=function(){return _.QO(this,QN,1)};var QCY=new bN("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",x2,BB,function(D){return D.serialize()},gYp);var BPG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(BPG,_.aH);var b06=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(b06,_.aH);b06.prototype.getUrl=function(){return _.EG(this,2)};
b06.prototype.setUrl=function(D){return _.Tt(this,2,D)};var rnX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(rnX,_.aH);var K_t=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(K_t,_.aH);var hXX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(hXX,_.aH);var dHU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(dHU,_.aH);var qNp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(qNp,_.aH);var xDp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(xDp,_.aH);var pCk=_.rj(xDp);var L_Y=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(L_Y,_.aH);var sCt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(sCt,_.aH);_.S=sCt.prototype;_.S.getHeader=function(){return _.Bz(this,QN,1)};
_.S.setHeader=function(D){return _.Lf(this,1,D)};
_.S.hasHeader=function(){return _.QO(this,QN,1)};
_.S.getCompletionUrl=function(){return _.EG(this,6)};
_.S.getDeviceId=function(){return _.EG(this,11)};var mDt=new bN("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",sCt,xDp,function(D){return D.serialize()},pCk);var eXp=new Set(["SAPISIDHASH","APISIDHASH"]);var EYG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(EYG,_.aH);EYG.prototype.getMessage=function(){return _.EG(this,2)};
var tB3=_.rj(EYG);var Yv1=function(D,C){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=D.nodeReadableStream;this.grpcResponseDeserializeFn=C;this.xhr=D.xhr;this.xhrNodeReadableStream&&NPt(this)},VBU=function(D,C){var X=new yn3;
_.Kb(D.xhr,"complete",function(){if(D.xhr.isSuccess()){var c=D.xhr.getResponseText();var W;if(W=C)W=D.xhr,W.JSC$9961_xhr_&&W.isComplete()?(W=W.JSC$9961_xhr_.getResponseHeader("Content-Type"),W=W===null?void 0:W):W=void 0,W=W==="text/plain";if(W){if(!atob)throw Error("jk");c=atob(c)}try{var p=D.grpcResponseDeserializeFn(c)}catch(a){nYw(D,Qa6(new _.Vg(13,"Error when deserializing response data; error: "+a+(", response: "+c)),X));return}c=_.afh(D.xhr.getStatus());w8w(D,F_N(D));c===0?Z0X(D,p):nYw(D,Qa6(new _.Vg(c,
"Xhr succeeded but the status code is not 200"),X))}else{c=D.xhr.getResponseText();p=F_N(D);if(c){var g=GEt(D,c);c=g.code;W=g.details;g=g.metadata}else c=2,W="Rpc failed due to xhr error. uri: "+String(D.xhr.JSC$9961_lastUri_)+", error code: "+(D.xhr.JSC$9961_lastErrorCode_+", error: ")+D.xhr.getLastError(),g=p;w8w(D,p);nYw(D,Qa6(new _.Vg(c,W,g),X))}})},NPt=function(D){D.xhrNodeReadableStream.on("data",function(C){if("1"in C){var X=C["1"];
try{var c=D.grpcResponseDeserializeFn(X)}catch(W){nYw(D,new _.Vg(13,"Error when deserializing response data; error: "+W+(", response: "+X)))}c&&Z0X(D,c)}if("2"in C)for(C=GEt(D,C["2"]),X=0;X<D.onStatusCallbacks.length;X++)D.onStatusCallbacks[X](C)});
D.xhrNodeReadableStream.on("end",function(){w8w(D,F_N(D));for(var C=0;C<D.onEndCallbacks.length;C++)D.onEndCallbacks[C]()});
D.xhrNodeReadableStream.on("error",function(){if(D.onErrorCallbacks.length!==0){var C=D.xhr.JSC$9961_lastErrorCode_;C!==0||D.xhr.isSuccess()||(C=6);var X=-1;switch(C){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:X=D.xhr.getStatus();c=_.afh(X);break;default:c=14}w8w(D,F_N(D));C=_.zjk(C)+", error: "+D.xhr.getLastError();X!==-1&&(C+=", http status code: "+X);nYw(D,new _.Vg(c,C))}})},F_N=function(D){var C={},X=tPN(D.xhr);
Object.keys(X).forEach(function(c){C[c]=X[c]});
return C},GEt=function(D,C){var X=2,c={};
try{var W=tB3(C);X=_.PI(W,1);var p=W.getMessage();_.Ih(W,xio,3,_.AR()).length&&(c["grpc-web-status-details-bin"]=C)}catch(g){D.xhr&&D.xhr.getStatus()===404?(X=5,p="Not Found: "+String(D.xhr.JSC$9961_lastUri_)):(X=14,p="Unable to parse RpcStatus: "+g)}return{code:X,details:p,metadata:c}};
Yv1.prototype.on=function(D,C){D==="data"?this.onDataCallbacks.push(C):D==="metadata"?this.onMetadataCallbacks.push(C):D==="status"?this.onStatusCallbacks.push(C):D==="end"?this.onEndCallbacks.push(C):D==="error"&&this.onErrorCallbacks.push(C);return this};
var TPN=function(D,C){C=D.indexOf(C);C>-1&&D.splice(C,1)};
Yv1.prototype.removeListener=function(D,C){D==="data"?TPN(this.onDataCallbacks,C):D==="metadata"?TPN(this.onMetadataCallbacks,C):D==="status"?TPN(this.onStatusCallbacks,C):D==="end"?TPN(this.onEndCallbacks,C):D==="error"&&TPN(this.onErrorCallbacks,C);return this};
Yv1.prototype.cancel=function(){this.xhr.abort()};
var Z0X=function(D,C){for(var X=0;X<D.onDataCallbacks.length;X++)D.onDataCallbacks[X](C)},w8w=function(D,C){for(var X=0;X<D.onMetadataCallbacks.length;X++)D.onMetadataCallbacks[X](C)},nYw=function(D,C){for(var X=0;X<D.onErrorCallbacks.length;X++)D.onErrorCallbacks[X](C)},yn3=function(){var D=Error.call(this);
this.message=D.message;"stack"in D&&(this.stack=D.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.h(yn3,Error);var H0P=function(D){this.JSC$19844_worker_=D.worker||null;this.JSC$19844_streamBinaryChunks_=D.streamBinaryChunks||!1;this.JSC$19844_credentialsMode_=void 0};
_.WT(H0P,_.OC3);H0P.prototype.createInstance=function(){var D=new Lw(this.JSC$19844_worker_,this.JSC$19844_streamBinaryChunks_);this.JSC$19844_credentialsMode_&&D.setCredentialsMode(this.JSC$19844_credentialsMode_);return D};
H0P.prototype.setCredentialsMode=function(D){this.JSC$19844_credentialsMode_=D};
var Lw=function(D,C){_.yg.call(this);this.JSC$19848_worker_=D;this.JSC$19848_streamBinaryChunks_=C;this.JSC$19848_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19848_responseHeaders_=null;this.JSC$19848_method_="GET";this.JSC$19848_url_="";this.inProgress_=!1;this.JSC$19848_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.WT(Lw,_.yg);Lw.prototype.open=function(D,C){if(this.readyState!=0)throw this.abort(),Error("kk");this.JSC$19848_method_=D;this.JSC$19848_url_=C;this.readyState=1;JnG(this)};
Lw.prototype.send=function(D){if(this.readyState!=1)throw this.abort(),Error("lk");if(this.abortController_.signal.aborted)throw this.abort(),Error("mk");this.inProgress_=!0;var C={headers:this.requestHeaders_,method:this.JSC$19848_method_,credentials:this.JSC$19848_credentialsMode_,cache:void 0,signal:this.abortController_.signal};D&&(C.body=D);(this.JSC$19848_worker_||_.co).fetch(new Request(this.JSC$19848_url_,C)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Lw.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,zXt(this));this.readyState=0};
Lw.prototype.handleResponse_=function(D){if(this.inProgress_&&(this.fetchResponse_=D,this.JSC$19848_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19848_responseHeaders_=D.headers,this.readyState=2,JnG(this)),this.inProgress_&&(this.readyState=3,JnG(this),this.inProgress_)))if(this.responseType==="arraybuffer")D.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.co.ReadableStream!==
"undefined"&&"body"in D){this.currentReader_=D.body.getReader();if(this.JSC$19848_streamBinaryChunks_){if(this.responseType)throw Error("nk");this.response=[]}else this.response=this.responseText="",this.JSC$19848_textDecoder_=new TextDecoder;jCt(this)}else D.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var jCt=function(D){D.currentReader_.read().then(D.handleDataFromStream_.bind(D)).catch(D.handleSendFailure_.bind(D))};
Lw.prototype.handleDataFromStream_=function(D){if(this.inProgress_){if(this.JSC$19848_streamBinaryChunks_&&D.value)this.response.push(D.value);else if(!this.JSC$19848_streamBinaryChunks_){var C=D.value?D.value:new Uint8Array(0);if(C=this.JSC$19848_textDecoder_.decode(C,{stream:!D.done}))this.response=this.responseText+=C}D.done?zXt(this):JnG(this);this.readyState==3&&jCt(this)}};
Lw.prototype.handleResponseText_=function(D){this.inProgress_&&(this.response=this.responseText=D,zXt(this))};
Lw.prototype.handleResponseArrayBuffer_=function(D){this.inProgress_&&(this.response=D,zXt(this))};
Lw.prototype.handleSendFailure_=function(){this.inProgress_&&zXt(this)};
var zXt=function(D){D.readyState=4;D.fetchResponse_=null;D.currentReader_=null;D.JSC$19848_textDecoder_=null;JnG(D)};
Lw.prototype.setRequestHeader=function(D,C){this.requestHeaders_.append(D,C)};
Lw.prototype.getResponseHeader=function(D){return this.JSC$19848_responseHeaders_?this.JSC$19848_responseHeaders_.get(D.toLowerCase())||"":""};
Lw.prototype.getAllResponseHeaders=function(){if(!this.JSC$19848_responseHeaders_)return"";for(var D=[],C=this.JSC$19848_responseHeaders_.entries(),X=C.next();!X.done;)X=X.value,D.push(X[0]+": "+X[1]),X=C.next();return D.join("\r\n")};
Lw.prototype.setCredentialsMode=function(D){this.JSC$19848_credentialsMode_=D};
var JnG=function(D){D.onreadystatechange&&D.onreadystatechange.call(D)};
Object.defineProperty(Lw.prototype,"withCredentials",{get:function(){return this.JSC$19848_credentialsMode_==="include"},
set:function(D){this.setCredentialsMode(D?"include":"same-origin")}});var MBX=function(D){var C="";_.ZI.forEach(D,function(X,c){C+=c;C+=":";C+=X;C+="\r\n"});
return C},qvw=function(D,C,X){if(_.ZI.isEmpty(X))return D;
X=MBX(X);if(typeof D==="string")return _.DZ(D,_.WK(C),X);_.oA(D,C,X);return D};var fKY=function(){this.isInputValid_=!0;this.JSC$19854_streamPos_=0;this.leftoverInput_=""};
fKY.prototype.isInputValid=function(){return this.isInputValid_};
fKY.prototype.decode=function(D){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ok`"+this.JSC$19854_streamPos_+"`stream already broken`"+D);this.leftoverInput_+=D;D=Math.floor(this.leftoverInput_.length/4);if(D==0)return null;try{var C=_.wJt(this.leftoverInput_.slice(0,D*4))}catch(X){throw C=this.leftoverInput_,D=X.message,this.isInputValid_=!1,Error("ok`"+this.JSC$19854_streamPos_+"`"+D+"`"+C);}this.JSC$19854_streamPos_+=D*4;this.leftoverInput_=this.leftoverInput_.slice(D*4);return C};var rGt=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19857_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
rGt.prototype.isInputValid=function(){return this.state_!=3};
var dDk=function(D,C,X,c){D.state_=3;D.errorMessage_="The stream is broken @"+D.JSC$19857_streamPos_+"/"+X+". Error: "+c+". With input:\n"+C;throw Error(D.errorMessage_);};
rGt.prototype.acceptsBinaryInput=function(){return!0};
rGt.prototype.parse=function(D){function C(O){O&128&&dDk(p,g,a,"invalid tag");(O&7)!=2&&dDk(p,g,a,"invalid wire type");p.tag_=O>>>3;p.tag_!=1&&p.tag_!=2&&p.tag_!=15&&dDk(p,g,a,"unexpected tag");p.state_=1;p.length_=0;p.countLengthBytes_=0}
function X(O){p.countLengthBytes_++;p.countLengthBytes_==5&&O&240&&dDk(p,g,a,"message length too long");p.length_|=(O&127)<<(p.countLengthBytes_-1)*7;O&128||(p.state_=2,p.countMessageBytes_=0,typeof Uint8Array!=="undefined"?p.messageBuffer_=new Uint8Array(p.length_):p.messageBuffer_=Array(p.length_),p.length_==0&&W())}
function c(O){p.messageBuffer_[p.countMessageBytes_++]=O;p.countMessageBytes_==p.length_&&W()}
function W(){if(p.tag_<15){var O={};O[p.tag_]=p.messageBuffer_;p.result_.push(O)}p.state_=0}
for(var p=this,g=D instanceof Array?D:new Uint8Array(D),a=0;a<g.length;){switch(p.state_){case 3:dDk(p,g,a,"stream already broken");break;case 0:C(g[a]);break;case 1:X(g[a]);break;case 2:c(g[a]);break;default:throw Error("pk`"+p.state_);}p.JSC$19857_streamPos_++;a++}D=p.result_;p.result_=[];return D.length>0?D:null};var KY6=function(){this.errorMessage_=null;this.JSC$19860_streamPos_=0;this.base64Decoder_=new fKY;this.pbParser_=new rGt};
KY6.prototype.isInputValid=function(){return this.errorMessage_===null};
var RX3=function(D,C,X){D.errorMessage_="The stream is broken @"+D.JSC$19860_streamPos_+". Error: "+X+". With input:\n"+C;throw Error(D.errorMessage_);};
KY6.prototype.acceptsBinaryInput=function(){return!1};
KY6.prototype.parse=function(D){this.errorMessage_!==null&&RX3(this,D,"stream already broken");var C=null;try{var X=this.base64Decoder_.decode(D);C=X===null?null:this.pbParser_.parse(X)}catch(c){RX3(this,D,c.message)}this.JSC$19860_streamPos_+=D.length;return C};var bTX=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19863_streamPos_=0;this.result_=[];this.statusParsed_=!1};
bTX.prototype.isInputValid=function(){return this.errorMessage_===null};
bTX.prototype.acceptsBinaryInput=function(){return!1};
bTX.prototype.parse=function(D){function C(O){p.state_=6;p.errorMessage_="The stream is broken @"+p.JSC$19863_streamPos_+"/"+g+". Error: "+O+". With input:\n";throw Error(p.errorMessage_);}
function X(){p.jsonStreamParser_=new _.xY({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function c(O){if(O)for(var P=0;P<O.length;P++){var k={};k[1]=O[P];p.result_.push(k)}}
function W(O){if(O){(p.statusParsed_||O.length>1)&&C("extra status: "+O);p.statusParsed_=!0;var P={};P[2]=O[0];p.result_.push(P)}}
for(var p=this,g=0;g<D.length;){var a;if(a=p.state_!==2){a:{for(;g<D.length;){if(!_.hn(D[g])){a=!0;break a}g++;p.JSC$19863_streamPos_++}a=!1}a=!a}if(a)return null;switch(p.state_){case 6:C("stream already broken");break;case 0:D[g]==="["?(p.state_=1,g++,p.JSC$19863_streamPos_++):C("unexpected input token");break;case 1:D[g]==="["?(p.state_=2,X()):D[g]===","||D.slice(g,g+5)=="null,"?p.state_=3:D[g]==="]"?(p.state_=5,g++,p.JSC$19863_streamPos_++):C("unexpected input token");break;case 2:a=p.jsonStreamParser_.parse(D.substring(g));
c(a);p.jsonStreamParser_.done()?(p.state_=3,a=p.jsonStreamParser_.JSC$11645_buffer_,p.JSC$19863_streamPos_+=D.length-g-a.length,D=a,g=0):(p.JSC$19863_streamPos_+=D.length-g,g=D.length);break;case 3:D[g]===","||D.slice(g,g+5)=="null,"?(p.state_=4,X(),p.jsonStreamParser_.parse("["),g+=D[g]===","?1:5,p.JSC$19863_streamPos_++):D[g]==="]"&&(p.state_=5,g++,p.JSC$19863_streamPos_++);break;case 4:a=p.jsonStreamParser_.parse(D.substring(g));W(a);p.jsonStreamParser_.done()?(p.state_=5,a=p.jsonStreamParser_.JSC$11645_buffer_,
p.JSC$19863_streamPos_+=D.length-g-a.length,D=a,g=0):(p.JSC$19863_streamPos_+=D.length-g,g=D.length);break;case 5:C("extra input after stream end")}}return p.result_.length>0?(D=p.result_,p.result_=[],D):null};var lK3=function(D){this.JSC$19866_xhr_=D;this.JSC$19866_parser_=null;this.status_=this.JSC$19866_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19866_textDecoder_=null;this.JSC$19866_eventHandler_=new _.bQ(this);this.JSC$19866_eventHandler_.listen(this.JSC$19866_xhr_,"readystatechange",this.JSC$19868_readyStateChangeHandler_)},s0=function(D,C){D.status_!=C&&(D.status_=C,D.statusHandler_&&D.statusHandler_())},DUP=function(D){D.JSC$19866_eventHandler_.removeAll();
if(D.JSC$19866_xhr_){var C=D.JSC$19866_xhr_;D.JSC$19866_xhr_=null;C.abort();C.dispose()}};
lK3.prototype.getStatus=function(){return this.status_};
lK3.prototype.JSC$19868_readyStateChangeHandler_=function(D){D=D.target;try{if(D==this.JSC$19866_xhr_)a:{var C=_.J3(this.JSC$19866_xhr_),X=this.JSC$19866_xhr_.JSC$9961_lastErrorCode_,c=this.JSC$19866_xhr_.getStatus(),W=this.JSC$19866_xhr_.getResponseText();D=[];if(this.JSC$19866_xhr_.getResponse()instanceof Array){var p=this.JSC$19866_xhr_.getResponse();p.length>0&&p[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,D=p)}if(!(C<3||C==3&&!W&&D.length==0))if(c=c==200||c==206,C==4&&(X==8?s0(this,
7):X==7?s0(this,8):c||s0(this,3)),this.JSC$19866_parser_||(this.JSC$19866_parser_=hdG(this.JSC$19866_xhr_),this.JSC$19866_parser_==null&&s0(this,5)),this.status_>2)DUP(this);else{if(D.length>this.JSC$19866_pos_){var g=D.length;X=[];try{if(this.JSC$19866_parser_.acceptsBinaryInput())for(var a=0;a<g;a++){var O=this.JSC$19866_parser_.parse(Array.from(D[a]));O&&(X=X.concat(O))}else{O="";if(!this.JSC$19866_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("qk");this.JSC$19866_textDecoder_=
new TextDecoder}for(a=0;a<g;a++)O+=this.JSC$19866_textDecoder_.decode(D[a],{stream:C==4&&a==g-1});X=this.JSC$19866_parser_.parse(O)}D.splice(0,g);X&&this.dataHandler_(X)}catch(k){s0(this,5);DUP(this);break a}}else if(W.length>this.JSC$19866_pos_){a=W.slice(this.JSC$19866_pos_);this.JSC$19866_pos_=W.length;try{var P=this.JSC$19866_parser_.parse(a);P!=null&&this.dataHandler_&&this.dataHandler_(P)}catch(k){s0(this,5);DUP(this);break a}}C==4?(W.length!=0||this.hasStreamingResponseData_?s0(this,2):s0(this,
4),DUP(this)):s0(this,1)}}}catch(k){s0(this,6),DUP(this)}};var CJP=function(D){D=this.xhrReader_=D;var C=(0,_.wo)(this.onData_,this);D.dataHandler_=C;D=this.xhrReader_;C=(0,_.wo)(this.onStatusChange_,this);D.statusHandler_=C;this.JSC$19870_callbackMap_={};this.callbackOnceMap_={}};
_.S=CJP.prototype;_.S.on=function(D,C){var X=this.JSC$19870_callbackMap_[D];X||(X=[],this.JSC$19870_callbackMap_[D]=X);X.push(C);return this};
_.S.addListener=function(D,C){this.on(D,C);return this};
_.S.removeListener=function(D,C){var X=this.JSC$19870_callbackMap_[D];X&&_.VF(X,C);(D=this.callbackOnceMap_[D])&&_.VF(D,C);return this};
_.S.once=function(D,C){var X=this.callbackOnceMap_[D];X||(X=[],this.callbackOnceMap_[D]=X);X.push(C);return this};
_.S.onData_=function(D){var C=this.JSC$19870_callbackMap_.data;C&&Xx1(D,C);(C=this.callbackOnceMap_.data)&&Xx1(D,C);this.callbackOnceMap_.data=[]};
var Xx1=function(D,C){for(var X={},c=0;c<D.length;X={message$jscomp$1008:void 0},c++)X.message$jscomp$1008=D[c],C.forEach(function(W){return function(p){try{p(W.message$jscomp$1008)}catch(g){}}}(X))};
CJP.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:cfw(this,"readable");break;case 5:case 6:case 4:case 7:case 3:cfw(this,"error");break;case 8:cfw(this,"close");break;case 2:cfw(this,"end")}};
var cfw=function(D,C){var X=D.JSC$19870_callbackMap_[C];X&&X.forEach(function(c){try{c()}catch(W){}});
(X=D.callbackOnceMap_[C])&&X.forEach(function(c){c()});
D.callbackOnceMap_[C]=[]};var oO6=function(){var D={format:"jspb"};D=D===void 0?{}:D;this.suppressCorsPreflight=D.suppressCorsPreflight||_.Df("suppressCorsPreflight",D)||!1;this.withCredentials=D.withCredentials||_.Df("withCredentials",D)||!1;this.streamInterceptors=D.streamInterceptors||[];this.unaryInterceptors=D.unaryInterceptors||[];this.workerScope=D.workerScope;this.chunkedServerStreaming=D.useFetchDownloadStreams||!1},SMG=function(D,C,X,c,W,p){p=p===void 0?{}:p;
var g=C.substring(0,C.length-W.name.length),a,O=(a=p)==null?void 0:a.signal;return WaX(function(P){return new Promise(function(k,u){if(O==null?0:O.aborted){var Q=new _.Vg(1,"Aborted");Q.cause=O.reason;u(Q)}else{var B={},K=pxY(D,P,g);K.on("error",function(L){return void u(L)});
K.on("metadata",function(L){B=L});
K.on("data",function(L){var t=B;t=t===void 0?{}:t;k(new IKt(L,t))});
O&&O.addEventListener("abort",function(){K.cancel();var L=new _.Vg(1,"Aborted");L.cause=O.reason;u(L)})}})},D.unaryInterceptors).call(D,O0P(W,X,c)).then(function(P){return P.responseMessage})},UUk=function(D,C,X,c,W,p){p=p===void 0?{}:p;
return SMG(D,C,X,c,W,p)};
oO6.prototype.serverStreaming=function(D,C,X,c){var W=this,p=D.substring(0,D.length-c.name.length);return gOw(function(g){var a=g.methodDescriptor,O=g.getMetadata(),P=abG(W,!1);O=Ib1(W,O,P,p+a.getName());var k=Oow(P,a.responseDeserializeFn,!0);g=a.requestSerializeFn(g.requestMessage);P.send(O,"POST",g);return k},this.streamInterceptors).call(this,O0P(c,C,X))};
var pxY=function(D,C,X){var c=C.methodDescriptor,W=C.getMetadata(),p=abG(D,!0);D=Ib1(D,W,p,X+c.getName());X=Oow(p,c.responseDeserializeFn,!1);VBU(X,W["X-Goog-Encode-Response-If-Executable"]==="base64");C=c.requestSerializeFn(C.requestMessage);p.send(D,"POST",C);return X},abG=function(D,C){C=D.chunkedServerStreaming&&!C;
return D.workerScope||C?new _.HF(new H0P({worker:D.workerScope,streamBinaryChunks:C})):new _.HF},Ib1=function(D,C,X,c){C["Content-Type"]="application/json+protobuf";
C["X-User-Agent"]="grpc-web-javascript/0.1";var W=C.Authorization;if(W&&eXp.has(W.split(" ")[0])||D.withCredentials)X.JSC$9961_withCredentials_=!0;if(D.suppressCorsPreflight)c=qvw(c,"$httpHeaders",C);else for(D=_.U(Object.keys(C)),W=D.next();!W.done;W=D.next())W=W.value,X.headers.set(W,C[W]);return c},Oow=function(D,C,X){if(X){X=new lK3(D);
var c=new CJP(X)}return new Yv1({xhr:D,nodeReadableStream:c},C)},gOw=function(D,C){return C.reduce(function(X,c){return function(W){return c.intercept(W,X)}},D)},WaX=function(D,C){return C.reduce(function(X,c){return function(W){return c.intercept(W,X)}},D)};var AfG=function(D){this.client_=new oO6;this.hostname_=D==void 0?D:D.replace(/\/+$/,"")};
_.S=AfG.prototype;_.S.JSC$19888_depositGoogleCredential=function(D,C,X){return UUk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",D,C||{},vYU,X)};
_.S.deleteLink=function(D,C,X){return UUk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",D,C||{},PRk,X)};
_.S.JSC$19888_finishOAuth=function(D,C,X){return UUk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",D,C||{},ulw,X)};
_.S.getLink=function(D,C,X){return UUk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",D,C||{},QCY,X)};
_.S.startLinkingSession=function(D,C,X){return UUk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",D,C||{},mDt,X)};var PJo=[0,_.DV,1,BWU,[0,_.oK,[0,_.XD,-1]],[0,QRo],[0,_.gd,-1],[0,QRo]];var $Uo=function(){this.storage=new Map},ioo=function(D,C,X,c,W){if(!D.storage.has(C))return null;
D=_.U(D.storage.get(C));for(C=D.next();!C.done;C=D.next())if(C=C.value,!W||C.linkName===W)if(X&&C.scopes&&vOt(C.scopes,X)||c&&C.capabilities&&vOt(C.capabilities,c))return C;return null},kSU=function(D,C,X){if(!X)D.storage.delete(C);
else if(D.storage.has(C)){var c=D.storage.get(C).filter(function(W){return W.linkName!==X});
c.length>0?D.storage.set(C,c):D.storage.delete(C)}},vOt=function(D,C){C=_.U(C);
for(var X=C.next();!X.done;X=C.next())if(!D.has(X.value))return!1;return!0};var ucw=function(){var D=_.q6("LINK_GAL_DOMAIN");this.alsDomain1p=_.q6("LINK_GAL_DOMAIN");this.alsDomain3p=D;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},QZt=function(D,C){D.apiKey=C;
return D};
ucw.prototype.build=function(){var D={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("rk");D.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("sk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("tk");D.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(D.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)D.apiKey=
this.apiKey,D.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("uk");D.oauthToken=this.oauthToken;D.alsDomain=this.alsDomain3p}D.clientXd3=this.clientXd3;D.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(D.authUser=this.authUser);this.bucket!==void 0&&(D.bucket=this.bucket);this.completionUrl!==void 0&&(D.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(D.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(D.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(D.locale=this.locale);this.localStorage!==void 0&&(D.localStorage=this.localStorage);D.loggerType=this.loggerType;D.clientEnvironment=this.clientEnvironment;D.colorScheme=this.colorScheme;D.showCloseOption=this.showCloseOption;return D};var so=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(so,_.aH);var BYY=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(BYY,_.aH);var bot=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(bot,_.aH);var eH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(eH,_.aH);var rf6=function(D){return _.tu(D,1)};var Kat=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Kat,_.aH);var trw=_.rj(Kat),mc=[1,2,3,4,5];var saP=function(D){try{return trw(D)}catch(C){return null}},hzU=function(){},mHG=function(D,C){switch(_.KR(C,mc)){case 4:return(C=_.yO(C,bot,4,mc))&&D.logStateTransition(_.tu(C,1)),!0;
case 5:return(C=_.yO(C,BYY,5,mc))&&D.logInternalEvent(_.tu(C,1)),!0}return!1},NUN=function(D){switch(D){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.qf(D)}};var xHo=function(D,C){var X=this;this.validator=D;this.messageListener=C;this.dismissCallback=function(){xUU(X,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19917_receiveMessage=function(c){c.type==="message"&&(c=c.event_,c!==null&&(new URL(X.iframe.src)).origin===c.origin&&X.validator(c.data,c.origin)&&!X.messageListener(c.data)&&(X.JSC$19917_resolveCb!==void 0&&X.JSC$19917_resolveCb(c.data),La6(X)))}},Eu1=function(D,C,X){D.uiHandler!==void 0&&xUU(D,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(c,W){D.JSC$19917_resolveCb=c;D.JSC$19917_rejectCb=W;D.iframe=document.createElement("iframe");_.CK(D.iframe,C);D.uiHandler=X.displayContent(D.iframe,D.dismissCallback);_.Kb(window,"message",D.JSC$19917_receiveMessage,!1,D)})},xUU=function(D,C){D.JSC$19917_rejectCb!==void 0&&D.JSC$19917_rejectCb(C);
La6(D)},La6=function(D){D.uiHandler!==void 0&&D.uiHandler.hideContent();
_.Y1(window,"message",D.JSC$19917_receiveMessage,!1,D);D.JSC$19917_resolveCb=void 0;D.JSC$19917_rejectCb=void 0;D.uiHandler=void 0;D.iframe=void 0};var sZ6=function(D){if(D===2){var C;D=((C=window)==null?0:C.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return D},edG=function(D){D=sZ6(D);
switch(D){case 0:return"light";case 1:return"dark";default:_.qf(D)}};var LYt=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),mUX=function(D,C){this.JSC$19929_linkingSession=D;this.noticeConfig=C;this.displayInfoMap=new Map;var X=new Map;if(_.QO(this.JSC$19929_linkingSession,rnX,7))for(D=_.Bz(this.JSC$19929_linkingSession,rnX,7),D=_.Ih(D,b06,1,_.AR()),D=_.U(D),C=D.next();!C.done;C=D.next())C=C.value,X.set(_.tu(C,1),_.xGF(_.Bz(C,_.Tm5,3)));if(X.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){C=this.noticeConfig.enabledDataUsageNoticeUis;D=C.has(0)?X.get(1):void 0;C=C.has(1)?X.get(2):void 0;X=D!==void 0&&C!==void 0?X.get(3):void 0;var c=this.noticeConfig.nestedOrigins;var W=new Kat;var p=new so;W=_.sB(W,2,mc,p);p=new Kat;var g=new so;p=_.sB(p,3,mc,g);g=[];D!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:D,lastEvent:W,nestedOrigins:c}]),g.push({trustedUrl:D,lastEvent:W,nestedOrigins:c}));C!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:C,lastEvent:p,nestedOrigins:c}]),g.push({trustedUrl:C,lastEvent:p,nestedOrigins:c}));X!==void 0?this.displayInfoMap.set(3,[{trustedUrl:X,lastEvent:p,nestedOrigins:c}]):this.displayInfoMap.set(3,g)}};var ezX=function(D){var C=new $Uo;this.galService=D;this.galCache=C};
ezX.prototype.getLink=function(D){var C=D.serviceId;var X=D.scopes;var c=D.capabilities;var W=D.linkName;var p=this,g;return _.I(function(a){if(c!==void 0&&X!==void 0)throw Error("vk");g=ioo(p.galCache,C,X,c,W);return g!==null?a.return(g):a.return(p.galService.getLink({serviceId:C,sessionId:Math.floor(Math.random()*2147483648),scopes:X,capabilities:c,linkName:W}).then(function(O){O=FYw(O);var P=p.galCache;P.storage.has(C)?P.storage.get(C).push(O):P.storage.set(C,[O]);return O}))})};
ezX.prototype.deleteLink=function(D,C,X){var c=this;return _.I(function(W){kSU(c.galCache,D,X);return W.return(c.galService.deleteLink({serviceId:D,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:C,linkName:X}).then(function(){return!0}))})};var tTX=function(D,C){var X=this;this.validator=D;this.msgHandler=C;this.closedPopupTimeout=this.JSC$19951_rejectCb=this.JSC$19951_resolveCb=this.popup=null;this.JSC$19951_receiveMessage=function(c){if(c!==null&&(c=c.event_,c.source===X.popup)){var W=c.data;if(X.validator(W,c.origin)){var p;(p=X.msgHandler)!=null&&p.call(X,W)||(X.JSC$19951_resolveCb!==null&&X.JSC$19951_resolveCb(W),EOt(X))}}}};
tTX.prototype.open=function(D,C){var X=this;this.popup!==null&&NYt(this);return new Promise(function(c,W){X.JSC$19951_resolveCb=c;X.JSC$19951_rejectCb=W;X.popup=_.ct(window,D,"",C);_.Kb(window,"message",X.JSC$19951_receiveMessage,!1,X);YM6(X)})};
var NYt=function(D,C){D.JSC$19951_rejectCb!==null&&D.JSC$19951_rejectCb(C);EOt(D)},EOt=function(D){D.closedPopupTimeout&&(D.closedPopupTimeout.cancel(),D.closedPopupTimeout=null);
D.popup&&D.popup.close();_.Y1(window,"message",D.JSC$19951_receiveMessage,!1,D);D.popup=null;D.JSC$19951_resolveCb=null;D.JSC$19951_rejectCb=null},YM6=function(D){D.closedPopupTimeout=_.G4J(100).then(function(){D.popup?D.popup.closed?yf1(D):YM6(D):NYt(D,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},yf1=function(D){D.closedPopupTimeout=_.G4J(100).then(function(){NYt(D,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var nOo=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),wxp=function(D,C,X,c,W,p,g,a,O,P){var k=this;this.serviceId=D;this.sessionId=C;this.galService=X;this.oauthDetails=c;this.galLogger=W;this.interactionMode=p;this.redirectServiceUrl=g;this.consentLanguageKeys=a;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=P;this.started=!1;this.JSC$19957_dataValidator=function(u,
Q){var B=nOo.has(Q);B||k.redirectServiceUrl===void 0||(B=k.redirectServiceUrl===Q);return B?u.sentinel==="gdi":!1}};
wxp.prototype.complete=function(){var D=this,C;return _.I(function(X){if(D.interactionMode!==1)return X.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));C=fwU.getRedirectStateFromUri();return C===null?X.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):X.return(Fao(D,C))})};
wxp.prototype.start=function(){var D=this,C;return _.I(function(X){if(D.started)return X.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.EG(D.oauthDetails,1))return X.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(D.interactionMode===1)return fwU.setLocation(_.EG(D.oauthDetails,1)),X.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));D.started=!0;D.galLogger.logStateTransition(5);
C=fwU.getPostMessagePopup(D.JSC$19957_dataValidator);return X.return(C.open(_.EG(D.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(c){D.started=!1;var W=D.galLogger;if((c==null?void 0:c.error)!==void 0)throw W.logInternalEvent(59),Error("wk");if((c==null?void 0:c.redirect_state)===void 0)throw W.logInternalEvent(131),Error("xk");return Fao(D,c.redirect_state)}).catch(function(c){D.started=
!1;
return c.errorCode!==void 0?{statusCode:c.errorCode,statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Fao=function(D,C){return _.I(function(X){return X.return(Zot(D.galService,{serviceId:D.serviceId,sessionId:D.sessionId,dynamicUrlParameters:D.dynamicUrlParameters,redirectState:C,consentLanguageKeys:D.consentLanguageKeys,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp}).then(function(c){var W={statusCode:1,link:FYw(c.getLink())};x_w(_.bS(c,3))!==void 0&&(W.callerState=x_w(_.bS(c,3)));_.YX3(c,4,i0k,hWk).size>0&&(W.redirectUriParams=new Map(Array.from(_.YX3(c,4,i0k,hWk).entries()).map(function(p){var g=
_.U(p);p=g.next().value;var a=g.next().value;g=[];var O=g.concat;a=_.d3(a,1,_.r3,_.AR());return[p,O.call(g,_.VB(a))]})));
D.galLogger.logInternalEvent(134);return W}))})},fwU={getPostMessagePopup:function(D){return new tTX(D)},
getRedirectStateFromUri:function(){var D=_.Xg(fwU.getLocation()).fragment_;return(new _.Qh(D)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(D){_.kLm(window.location,_.Hv(D))},
createOAuthFlow:function(D,C){return new wxp(D.serviceId,D.sessionId,D.galService,C,D.galLogger,D.interactionMode,D.redirectServiceUrl,D.consentLanguageKeys,D.dynamicUrlParameters,D.partnerConfigMinReadTimestamp)}};var GSX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(GSX,_.aH);var VTw=_.rj(GSX);var TYP=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),HoG=function(D,C,X,c,W,p,g,a,O){var P=this;this.serviceId=D;this.sessionId=C;this.galService=X;this.gsiWebFlowDetails=c;this.colorScheme=W;this.showCloseOption=p;this.galLogger=g;this.interactionMode=a;this.redirectServiceUrl=O;this.started=!1;this.JSC$19970_dataValidator=function(k,u){var Q=TYP.has(u);Q||P.redirectServiceUrl===
void 0||(Q=P.redirectServiceUrl===u);return Q?k.sentinel==="gal":!1};
this.logEventProcessor=function(k){return k.result?(k=saP(k.result))?mHG(P.galLogger,k):!1:!1}};
HoG.prototype.complete=function(){var D=this,C,X;return _.I(function(c){if(D.interactionMode!==1)return c.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));C=Rdk.getRedirectStateFromUri();if(C===void 0)return D.galLogger.JSC$19909_logErrorEvent(131),c.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return X=Jfk(D,C),c.return(zzP(D,X))}catch(W){return c.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
HoG.prototype.start=function(){var D=this,C;return _.I(function(X){if(D.started)return X.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.EG(D.gsiWebFlowDetails,1))return X.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(D.interactionMode===1)return Rdk.setLocation(jZU(D,_.EG(D.gsiWebFlowDetails,1))),X.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
D.started=!0;C=Rdk.getPostMessagePopup(D.JSC$19970_dataValidator,D.logEventProcessor);return X.return(C.open(jZU(D,_.EG(D.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(c){D.started=!1;if((c==null?void 0:c.result)===void 0)throw D.galLogger.JSC$19909_logErrorEvent(131),Error("xk");c=Jfk(D,c.result);return zzP(D,c)}).catch(function(c){D.started=!1;
return c.errorCode!==void 0?{statusCode:c.errorCode,statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var jZU=function(D,C){D=["result_channel",D.interactionMode===1?"2":"1","color_scheme",edG(D.colorScheme),"show_close_option",D.showCloseOption];return hUY(C,D)},zzP=function(D,C){if(C!==null&&_.QO(C,eH,2)){var X,c=C==null?void 0:(X=_.Bz(C,eH,2))==null?void 0:_.tu(X,2);
c&&D.galLogger.JSC$19909_logErrorEvent(NUN(c));return rf6(_.Bz(C,eH,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 D.galService.getLink({serviceId:D.serviceId,sessionId:D.sessionId,consistencyKey:_.EG(C,1)}).then(function(W){W=FYw(W);D.galLogger.logInternalEvent(134);return{statusCode:1,link:W}})},Jfk=function(D,C){C=VTw(C);
if(!_.QO(C,eH,2)&&_.EG(C,1)==="")throw D.galLogger.JSC$19909_logErrorEvent(5),Error("yk");return C},Rdk={getPostMessagePopup:function(D,C){return new tTX(D,C)},
getRedirectStateFromUri:function(){return _.ce(_.Xg(Rdk.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(D){_.kLm(window.location,_.Hv(D))},
createStreamlinedFlow:function(D,C){return new HoG(D.serviceId,D.sessionId,D.galService,C,D.colorScheme,D.showCloseOption,D.galLogger,D.interactionMode,D.redirectServiceUrl)}};var ofG=function(D){this.storage=(D=D?_.Jg("GAL"):_.j7F("GAL"))?new _.GV(D):null};
ofG.prototype.getSession=function(D){if(this.storage!==null)try{var C=this.storage.get("SAVED_SESSION");if(C===void 0)return null;if(C.serviceId===D)return C}catch(X){}return null};var MT6=function(){};
_.h(MT6,hzU);MT6.prototype.logStateTransition=function(){};
MT6.prototype.logInternalEvent=function(){};
MT6.prototype.JSC$19909_logErrorEvent=function(){};var qMo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(qMo,_.aH);qMo.prototype.getCompletionUrl=function(){return _.EG(this,15)};var ms=function(D,C,X,c,W,p){this.serviceId=D;this.environment=C;this.sessionId=X;this.colorSchemeSelected=c;this.colorThemeDisplayed=W;this.JSC$19983_transport=p;this.currentState=1};
_.h(ms,hzU);ms.prototype.logStateTransition=function(D){var C=fbX(this);C=_.bl(C,3,this.currentState);C=_.bl(C,1,D);this.currentState=D;D=ExP(1);this.dispatch(C,D)};
ms.prototype.logInternalEvent=function(D){D=ExP(D);this.dispatch(fbX(this),D)};
ms.prototype.JSC$19909_logErrorEvent=function(D){var C=fbX(this);C=_.bl(C,1,10);D=ExP(D);this.dispatch(C,D)};
var fbX=function(D){var C=new qMo;C=_.bl(C,1,D.currentState);C=_.N3(C,7,D.serviceId);var X,c;var W=((X=window)==null?0:(c=X.location)==null?0:c.href)?_.Xg(window.location.href).JSC$10197_domain_:"NO_PACKAGE_NAME";X=_.N3(C,8,W);X=_.bl(X,6,D.environment);X=_.N3(X,5,"100");X=_.bl(X,11,D.colorSchemeSelected);return _.bl(X,12,D.colorThemeDisplayed)};
ms.prototype.dispatch=function(D,C){C===void 0&&(C=new _.ba);var X=C;D=D.serialize();X=_.N3(X,8,D);_.wO(X,12,this.sessionId);this.JSC$19983_transport.dispatch(C)};var dU3=function(D,C){this.loggerType=D;this.sessionIndex=C!=null?C:0},RzX;
dU3.prototype.create=function(D,C,X,c,W){switch(this.loggerType){case 0:return new MT6;case 1:return RzX||(RzX=(new _.BI(555,this.sessionIndex.toString())).build()),new ms(D,C,X,c,W,RzX);default:_.qf(this.loggerType,"unknown logger type")}};var lwp=[6,2,3,1],aTt=new Map([[4,1],[1,6],[2,2],[3,3]]),TUN={statusCode:7,statusMessage:"Failed to create flow object"},XCG=function(D,C,X,c,W,p,g,a,O,P){this.serviceId=D;this.sessionId=C;this.config=X;this.galService=c;this.JSC$19990_linkingSession=W;this.googleScopes=p;this.callerState=g;this.consentLanguageKeys=a;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=P;this.currentFlow=0;c=this.JSC$19990_linkingSession;W=new Set;_.QO(c,qNp,1)&&W.add(1);_.QO(c,hXX,2)&&_.QO(c,dHU,6)&&W.add(2);
_.QO(c,K_t,3)&&_.QO(c,dHU,6)&&W.add(3);_.QO(c,BPG,4)&&W.add(6);this.supportedFlows=W;c=X.loggerType;W=X.clientEnvironment;a:{p=X.colorScheme;switch(p){case 0:p=1;break a;case 1:p=2;break a;case 2:p=3;break a;default:_.qf(p)}p=void 0}a:{g=X.colorScheme;g=sZ6(g);switch(g){case 0:g=1;break a;case 1:g=2;break a;default:_.qf(g)}g=void 0}this.galLogger=(new dU3(c,X.authUser)).create(D,W,C,p,g)},Csw=function(D){return new Promise(function(C){var X,c,W,p,g,a,O,P,k,u;
return _.I(function(Q){switch(Q.nextAddress){case 1:X=Dot(D.currentFlow,D.supportedFlows),c=!1,W=new mUX(D.JSC$19990_linkingSession,D.config.dataUsageNoticeConfig);case 2:if(X===void 0){Q.jumpTo(4);break}_.KK(Q,5);var B=W,K=X,L=void 0;c?K===1&&(L=B.displayInfoMap.get(2)):K===2||K===3?L=B.displayInfoMap.get(1):K===1&&(L=B.displayInfoMap.get(3));p=L?L:[];g=D.consentLanguageKeys;a=_.U(p);O=a.next();case 7:if(O.done)return D.currentFlow=X,Q.yield(JG6(lbG(D,g)),11);P=O.value;return Q.yield(YNp(P,D.config.dataUsageNoticeConfig.uiAdapter,
D.config.colorScheme,D.galLogger),10);case 10:k=Q.yieldResult;if(k.statusCode!==1)return Dgw(D),C(zdN({statusCode:k.statusCode,statusMessage:k.statusMessage},D.callerState)),Q.return();k.consentLanguageKeys!==void 0&&(g=k.consentLanguageKeys);O=a.next();Q.jumpTo(7);break;case 11:u=Q.yieldResult;if(u.statusCode!==10)return u.statusCode!==6&&Dgw(D),u.statusCode!==1&&D.callerState!==void 0&&(u.callerState=D.callerState),C(u),Q.return();_.SR(Q,6);break;case 5:_.Eu(Q);case 6:X=Dot(D.currentFlow,D.supportedFlows);
c=!0;Q.jumpTo(2);break;case 4:Dgw(D),C(zdN({statusCode:12,statusMessage:"Linking failed"},D.callerState)),_.t_(Q)}})})},Dgw=function(D){WdP(D.serviceId,D.config.localStorage);
D.currentFlow=0},UoY=function(D,C,X){D.currentFlow=C;
return jaG(lbG(D,X)).then(function(c){return c.statusCode===10&&D.config.interactionMode===1&&Dot(D.currentFlow,D.supportedFlows)!==void 0?Csw(D):c})},lbG=function(D,C){return{flowParams:{serviceId:D.serviceId,
sessionId:D.sessionId,galService:D.galService,galLogger:D.galLogger,interactionMode:D.config.interactionMode,redirectServiceUrl:D.config.redirectServiceUrl,colorScheme:D.config.colorScheme,consentLanguageKeys:C,dynamicUrlParameters:D.dynamicUrlParameters,showCloseOption:D.config.showCloseOption,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp},currentFlow:D.currentFlow,config:D.config,session:D.JSC$19990_linkingSession,googleScopes:D.googleScopes,callerState:D.callerState}};var Omt=function(D,C){this.config=D;this.galService=C.getService();this.JSC$20003_galRepository=C.JSC$20021_galRepository};
Omt.prototype.getLink=function(D,C){return Xj6(this,D,C)};
var Xj6=function(D,C,X){return D.JSC$20003_galRepository.getLink({serviceId:C,scopes:void 0,capabilities:void 0,linkName:X}).then(function(c){return{statusCode:1,link:c}}).catch(function(c){return{statusCode:IT1(c.code),
statusMessage:c.message}})};
Omt.prototype.deleteLink=function(D,C){return this.JSC$20003_galRepository.deleteLink(D,this.config.accountLinkingEntryPoint,C).then(function(){return{statusCode:1}}).catch(function(X){return{statusCode:IT1(X.code),
statusMessage:X.message}})};
Omt.prototype.startLinkingSession=function(D){var C=D.serviceId;var X=D.sessionId;return cmk({serviceId:C,sessionId:X!==void 0?X:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:D.loginHint,callerState:D.callerState,consentLanguageKeys:D.consentLanguageKeys,linkName:D.linkName,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp})};var e2=function(D,C,X,c,W,p,g){this.apiKey=C;this.authUser=X;this.oauthToken=c;this.bucket=W;this.locale=p;this.galSdkEventHandler=g;if(c===void 0){if(C===void 0)throw Error("zk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new AfG(D)};
e2.prototype.deleteLink=function(D){var C=D.serviceId;var X=D.sessionId;var c=D.accountLinkingEntryPoint;var W=D.linkName;var p=this,g;return _.I(function(a){var O=(new rw).setHeader(p.getHeader(X));var P=cFp({serviceId:C,linkName:W});O=_.Lf(O,2,P);g=_.w1(O,3,c);return a.return(p.makeRequest(p.galServiceClient.deleteLink,g,[1,3],[2,4]))})};
var Zot=function(D,C){var X=C.serviceId;var c=C.sessionId;var W=C.dynamicUrlParameters;var p=C.redirectState;var g=C.consentLanguageKeys;var a=C.partnerConfigMinReadTimestamp;var O;return _.I(function(P){var k=(new h5).setHeader(D.getHeader(c,W));k=_.Tt(k,2,X);O=_.Tt(k,4,p);g!==void 0&&_.Tt(O,5,g);a!==void 0&&_.Lf(O,6,a);return P.return(D.makeRequest(D.galServiceClient.JSC$19888_finishOAuth,O,[1,3],[2,4]))})};
e2.prototype.getLink=function(D){var C=D.serviceId;var X=D.sessionId;var c=D.scopes;var W=D.capabilities;var p=D.consistencyKey;var g=D.linkName;var a=this,O;return _.I(function(P){var k=(new x2).setHeader(a.getHeader(X)),u=cFp({serviceId:C,scopes:c,capabilities:W,linkName:g});O=_.Lf(k,2,u);p!==void 0&&(k=Svp(),k=_.Tt(k,2,p),_.Lf(O,3,k));return P.return(a.makeRequest(a.galServiceClient.getLink,O,[1,3],[2,4]))})};
var MrY=function(D,C){var X=C.serviceId;var c=C.sessionId;var W=C.googleScopes;var p=C.consistencyKey;var g;return _.I(function(a){var O=(new Kw).setHeader(D.getHeader(c));O=_.Tt(O,2,X);var P=Array.from(W.values());O=_.D6(O,3,P,_.kt);P=Svp();P=_.Tt(P,2,p);g=_.Lf(O,4,P);return a.return(D.makeRequest(D.galServiceClient.JSC$19888_depositGoogleCredential,g,[1,3],[2,4]))})};
e2.prototype.startLinkingSession=function(D){var C=D.serviceId;var X=D.sessionId;var c=D.scopes;var W=D.capabilities;var p=D.loginHint;var g=D.supportedFlows;var a=D.completionUrl;var O=D.usePingPong;var P=D.twoWayLinking;var k=D.accountLinkingEntryPoint;var u=D.callerState;var Q=D.consentLanguageKeys;var B=D.googleScopes;var K=D.dataUsageNoticeConfig;var L=D.linkName;var t=D.dynamicUrlParameters;var Y=D.partnerConfigMinReadTimestamp;var y=this,J,T;return _.I(function(H){if(W!==void 0&&c!==void 0)throw Error("vk");
var q=(new sCt).setHeader(y.getHeader(X,t));J=_.Tt(q,2,C);L!==void 0&&_.Tt(J,14,L);if(W!==void 0){q=J;var R=Array.from(W.values());_.D6(q,5,R,_.kt)}else c!==void 0&&(q=J,R=Array.from(c.values()),_.D6(q,3,R,_.kt));a!==void 0&&_.Tt(J,6,a);O!==void 0&&_.rl(J,15,O);g!==void 0&&(q=J,R=Array.from(g.values()),_.D6(q,4,R,_.Wp));if(P!==void 0){if(P&&(!B||B.size===0))throw Error("Ak");_.rl(J,8,P)}k!==void 0&&_.w1(J,9,k);p!==void 0&&_.Tt(J,13,p);u!==void 0&&(q=J,R=(new TextEncoder).encode(u),_.Cf(q,12,_.Yg(R,
!1),_.tc()));Q!==void 0&&_.Tt(J,16,Q);Y!==void 0&&_.Lf(J,18,Y);if(K!==void 0&&K.size>0||B!==void 0&&B.size>0)T=new L_Y,B!==void 0&&B.size>0&&(q=T,R=Array.from(B.values()),_.D6(q,1,R,_.kt)),K!==void 0&&(K.has(0)&&_.VNo(T,2,_.Wp,1,_.SN),K.has(1)&&_.VNo(T,2,_.Wp,2,_.SN)),_.Lf(J,17,T);return H.return(y.makeRequest(y.galServiceClient.startLinkingSession,J,[1],[2]))})};
e2.prototype.getMetadata=function(){var D=this,C,X;return _.I(function(c){C={};D.useFpa?(C["X-Goog-Api-Key"]=D.apiKey,C["X-Goog-AuthUser"]=D.authUser!==void 0?D.authUser.toString():"0",(X=_.kA5([]))&&(C.Authorization=X)):C.Authorization="Bearer "+D.oauthToken;D.locale&&(C["accept-language"]=D.locale);return c.return(C)})};
e2.prototype.makeRequest=function(D,C,X,c){var W=this,p;return _.I(function(g){if(g.nextAddress==1)return g.yield(W.getMetadata(),2);p=g.yieldResult;oLw(W,X);return g.return(D.bind(W.galServiceClient)(C,p).finally(function(){oLw(W,c)}))})};
var oLw=function(D,C){D.galSdkEventHandler!==void 0&&C.forEach(function(X){D.galSdkEventHandler.onEvent(X)})};
e2.prototype.getHeader=function(D,C){var X=new QN;D=_.Cf(X,2,_.g3(D),0);D=_.w1(D,5,3);C=_.D6(D,8,C,_.kt);this.bucket!==void 0&&_.Tt(C,1,this.bucket);return C};
var cFp=function(D){var C=D.serviceId;var X=D.scopes;var c=D.capabilities;D=D.linkName;if(c!==void 0&&X!==void 0)throw Error("vk");var W=new W_w;C=_.Tt(W,1,C);c!==void 0?(X=Array.from(c.values()),_.D6(C,5,X,_.kt)):X!==void 0&&(X=Array.from(X.values()),_.D6(C,3,X,_.kt));D!==void 0&&_.Tt(C,6,D);return C};var Am1=function(D){this.galService=new e2(D.alsDomain,D.apiKey,D.authUser,D.oauthToken,D.bucket,D.locale,D.galSdkEventHandler);this.JSC$20021_galRepository=new ezX(this.galService)};
Am1.prototype.getService=function(){return this.galService};var WQG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(WQG,_.aH);var pjp=function(D){var C=new WQG;return _.bl(C,1,D)};
WQG.prototype.setErrorMessage=function(D){return _.N3(this,2,D)};var Sqo=[0,_.Uf,_.CL,_.Uf];var E0=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(E0,_.aH);var Ugt=[0,[1,2,3],_.Wq,[0,_.Qwf,_.ZNN,-1],_.Wq,[0,ukt,-1],_.cq];var gLp=[0,_.Rk,1,_.Uf,_.CL,-1,1,_.pL,_.qy,_.Uf,-1,Ugt];var aCU=[0,_.Uf,[0,_.pL,_.qy,[0,_.CL]],_.lS,[0,_.Uf,-1]];var gw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(gw,_.aH);var ICt=[0,_.CL,_.Uf,-2,_.Rk,_.Uf,_.Rk,_.Uf,-2,1,_.lS];var OUt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(OUt,_.aH);var AFp=[0,_.Rk];var Pso=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Pso,_.aH);var $gw=[0,_.Uf,aCU,AFp,ICt,gLp];var pPU=_.Bv(Pso,$gw);var vLG=[0,PJo];var AsN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(AsN,_.aH);var iU1=[0,[1,3],bro,_.Uf,bro];var OV6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(OV6,_.aH);var kmU=[0,_.Uf];var uIt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(uIt,_.aH);var PFt=function(D){return _.yO(D,WQG,2,U0)},QdG=function(D){var C=new uIt;
return _.sB(C,2,U0,D)},U0=[1,
2];var BX1=[0,U0,_.Wq,kmU,_.Wq,Sqo,_.oK,iU1,1,_.Uf,vLG];var bUN=[0,1,[0,[1,2,3],_.Wq,[0],_.Wq,[0,L8t],_.Wq,[0,PJo]]];var rF1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(rF1,_.aH);var hrt=function(D){var C=new rF1;return _.sB(C,3,KQt,D)},KQt=[2,
3];var xgp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(xgp,_.aH);var LQt=function(D,C){return _.Lf(D,2,C)},sdP=function(D,C){return _.Lf(D,8,C)},mgt=function(D,C){return _.Lf(D,3,C)};var erG=[0,_.Uf,BX1,$gw,_.OC,[0,[5,6,7],[0,_.Uf,-2],[0,_.Rk,_.Uf,_.CL],[0,Ugt],[0,_.CL,_.Uf,-1,_.Ib,_.Uf],_.Wq,[0,[0,_.Rk],_.Uf,-1],_.Wq,[0,[3,4],_.Uf,-1,_.Wq,[0,[0,_.Uf,_.lS]],_.Wq,[0,[0,[0,[1,2,3],_.Wq,[0],_.Wq,[0],_.Wq,[0]]]]],_.Wq,[0,_.Uf]],_.OC,-1,[0,KQt,_.Uf,_.Wq,kmU,_.Wq,Sqo,_.oK,iU1,[0,PJo],bUN]];var ELt=_.Bv(xgp,erG),tmo=_.bU(erG);var NXt=function(){_.nF.call(this)};
_.h(NXt,_.nF);NXt.prototype.init=function(){};
new NXt;var YqU=_.q8(["data-"]),yFp=_.q8(["aria-"]),nLP=_.q8(["aria-"]),t5=function(D,C){this.isLatencyMeasurementExperiment=D===void 0?!1:D;this.enableDialogA11yFix=C===void 0?!1:C;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.gTq(_.co.location.href)},UqP=function(D,C){D.onConsentPrimitiveShownCallback=C},wjo=function(D,C){return D.overriddenIframeLoadTimeout?D.overriddenIframeLoadTimeout:C!==void 0?C:5E3},asp=function(D){if(D.prewarmPromise!==void 0)return D.prewarmPromise;
D.prewarmPromise=new Promise(function(C,X){Nv(D,1);FQk(D,ZU3(D,!0),GmU(D));D.iframe?D.prewarmChannel||Vm1(D,D.iframe,C):X(Error("Bk"))});
D.prewarmPromise.finally(function(){D.prewarmPromise=void 0});
return D.prewarmPromise};
t5.prototype.showPrimitive=function(){var D=this;if(this.consentPromise!==void 0)return this.consentPromise;var C=Date.now();TXo(this,C);this.consentPromise=new Promise(function(X,c){Nv(D,0,C);var W=D.isDarkTheme();D.isLatencyMeasurementExperiment||D.initialLoadingStrategy===1||D.initialLoadingStrategy===2||(D.loadingBar||(D.loadingBar=im3(getComputedStyle(document.body).direction==="rtl",W),D.loadingBar.style.position="fixed",D.loadingBar.style.zIndex="15000"),document.body.appendChild(D.loadingBar));
FQk(D,ZU3(D),GmU(D));D.iframe?D.channel||HUP(D,D.iframe,X,c):(JFp(D),c(Error("Bk")))});
this.consentPromise.finally(function(){D.consentPromise=void 0});
return this.consentPromise};
var HUP=function(D,C,X,c){var W,p;_.I(function(g){switch(g.nextAddress){case 1:Nv(D,3);W=!1;setTimeout(function(){if(!W){JFp(D);zrt(D);jd6(D);var a=pjp(7).setErrorMessage("Timeout connecting to iframe");X(sdP(LQt(new xgp,QdG(a)),hrt(a)))}},wjo(D,Mmw(D)));
if(!D.prewarmPromise){g.jumpTo(2);break}_.KK(g,3);return g.yield(D.prewarmPromise,5);case 5:_.SR(g,2);break;case 3:_.Eu(g),p=pjp(4).setErrorMessage("Error while prewarming."),X(sdP(LQt(new xgp,QdG(p)),hrt(p)));case 2:D.prewarmChannel&&D.prewarmChannel.send(tmo(mgt(new xgp,D.consentPrimitiveRequest))),D.channel=_.Of({destination:D.win,iframe:C,origin:qqp(D),channelName:"cpw",onEstablished:function(){W=!0;JFp(D);D.isLatencyMeasurementExperiment||(D.JSC$20050_previousBodyOverflow=document.body.style.overflow,
D.JSC$20050_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,D.JSC$20050_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",D.enableDialogA11yFix&&window.addEventListener("blur",D.focusChangeListener));var a=D.iframe;a.style.bottom="0";a.style.position="fixed";a.style.right="0";a.style.border="none";a.style.left="0";a.style.top=
"0";a.style.zIndex="5000";a.style.pointerEvents="";a.style.visibility="";D.initialLoadingStrategy===2||D.initialLoadingStrategy===3?Nv(D,4):Nv(D,6);var O;(O=D.onConsentPrimitiveShownCallback)==null||O.call(D)},
onMessage:function(a){a=ELt(a.data);switch(_.tu(a,1)){case 1:zrt(D);var O=ktN(_.Bz(a,_.tm,7));O&&(D.initialLoadingStrategy!==2&&D.initialLoadingStrategy!==3||Nv(D,6,O),Nv(D,5,O));if(O=ktN(_.Bz(a,_.tm,6)))Nv(D,7,O),Nv(D,8);var P,k;((P=_.Bz(a,uIt,2))==null?void 0:_.KR(P,U0))!==0&&((k=_.Bz(a,rF1,8))==null?void 0:_.KR(k,KQt))!==0||c(Error("Ck"));X(a);break;case 2:jd6(D)}}}),_.t_(g)}})},Vm1=function(D,C,X){D.prewarmChannel=_.Of({destination:D.win,
iframe:C,origin:qqp(D),channelName:"pwcp",onEstablished:function(){Nv(D,2);X()}})},qqp=function(D){var C=_.NJ(D.src).toString();
return C&&C.indexOf("://")<0&&C.indexOf("//")!==0?D.origin:_.gTq(C)},ZU3=function(D,C){C=C===void 0?!1:C;
var X,c=new Map([["origin",D.origin],["hl",(X=fCX(D))!=null?X:null]]);C&&c.set("pw","1");C=_.U([["cpr",D.consentPrimitiveRequest.serialize()]]);for(X=C.next();!X.done;X=C.next()){var W=_.U(X.value);X=W.next().value;W=W.next().value;c.set(X,W)}D.isDarkTheme()&&c.set("color_scheme","dark");return _.uo(D.src,c)},JFp=function(D){D.isLatencyMeasurementExperiment||D.loadingBar&&document.body.removeChild(D.loadingBar)};
t5.prototype.getSrc=function(){var D=_.OY(this.origin),C;var X=(C=_.Bz(this.consentPrimitiveRequest,OUt,3))==null?void 0:_.PI(C,1);C="consent.google.com";X=X?"/u/"+encodeURIComponent(X.toString()):"";(D==null?0:D.endsWith("youtube.com"))?C="consent.youtube.com":(D=D==null?void 0:D.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(C="consent.google."+((D[1]?"co.":"")+encodeURIComponent(D[2])));return _.t2("https://"+C+"/signedin"+X+"/landing")};
var FQk=function(D,C,X){D.iframe||(D.iframe=document.createElement("iframe"),D.iframe.style.width="100%",D.iframe.style.height="100%",X!==112496729&&(D.iframe.style.colorScheme="auto"),D.isLatencyMeasurementExperiment&&(D.iframe.style.display="none"),_.CK(D.iframe,C),D.iframe.setAttribute("jsname","C5o1O"),dgX(D.iframe),document.body.appendChild(D.iframe))},dgX=function(D){D.style.bottom="-200vh";
D.style.position="fixed";D.style.right="-200vw";D.style.border="";D.style.left="";D.style.top="";D.style.zIndex="";D.style.pointerEvents="none";D.style.visibility="hidden"},zrt=function(D){D.iframe&&(D.isLatencyMeasurementExperiment||(D.JSC$20050_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=D.JSC$20050_previousHtmlOverscroll),D.JSC$20050_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=D.JSC$20050_previousBodyOverscroll),D.JSC$20050_previousBodyOverflow!==
void 0&&(document.body.style.overflow=D.JSC$20050_previousBodyOverflow),D.enableDialogA11yFix&&RrP(D,!1)),dgX(D.iframe))};
t5.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(RrP(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var RrP=function(D,C){var X,c,W=(X=D.iframe)==null?void 0:(c=X.parentElement)==null?void 0:c.children;if(W)for(X=0;X<W.length;X++)c=W[X],c!==D.iframe&&(C?(c.hasAttribute("aria-hidden")&&_.IG([_.$X(YqU)],c,"data-old-aria-hidden",c.getAttribute("aria-hidden")),_.IG([_.$X(yFp)],c,"aria-hidden","true")):(c.removeAttribute("aria-hidden"),c.hasAttribute("data-old-aria-hidden")&&(_.IG([_.$X(nLP)],c,"aria-hidden",c.getAttribute("data-old-aria-hidden")),c.removeAttribute("data-old-aria-hidden"))))},Nv=function(D,
C,X){var c;
(c=D.latencyCallback)==null||c.call(D,{latencyType:C,timestampEpochMillis:X!=null?X:Date.now()})};var lCN=function(D,C,X){t5.call(this,C,X===void 0?!1:X);this.consentPrimitiveRequest=D;D=fCX(this);_.FZG(D);this.src=this.getSrc();var c;this.initialLoadingStrategy=(c=_.Bz(this.consentPrimitiveRequest,gw,4))==null?void 0:_.tu(c,4)},Dkp;
_.h(lCN,t5);var S9k=function(D){var C=_.b("enable_primitive_dialog_aria_hide_siblings");D={request:D,enableDialogA11yFix:C===void 0?!1:C};Dkp||(Dkp=new lCN(D.request,D.isLatencyMeasurementExperiment||_.tu(D.request,1)===2,D.enableDialogA11yFix));return Dkp},fCX=function(D){var C;
return(C=_.Bz(D.consentPrimitiveRequest,gw,4))==null?void 0:_.EG(C,1)},TXo=function(D,C){if(!_.QO(D.consentPrimitiveRequest,E0,5)){var X=D.consentPrimitiveRequest,c=new E0;
_.Lf(X,5,c)}var W;if((W=_.Bz(D.consentPrimitiveRequest,E0,5))==null||_.Ydm(_.uS(W,8))==null){var p;(p=_.Bz(D.consentPrimitiveRequest,E0,5))!=null&&_.wO(p,8,C)}},GmU=function(D){var C;
return(C=_.Bz(D.consentPrimitiveRequest,E0,5))==null?void 0:_.PI(C,1)};
lCN.prototype.isDarkTheme=function(){var D;return((D=_.Bz(this.consentPrimitiveRequest,gw,4))==null?void 0:_.tu(D,2))===2};
var Mmw=function(D){var C;return((C=_.Bz(D.consentPrimitiveRequest,gw,4))==null?void 0:_.PI(C,5))||void 0},jd6=function(D){D.channel=void 0;
D.prewarmChannel=void 0;D.iframe&&(document.body.contains(D.iframe)&&document.body.removeChild(D.iframe),D.iframe=void 0);Dkp=void 0},Is3=function(D){return t5.prototype.showPrimitive.call(D).then(function(C){return _.Bz(C,uIt,2)})};for(var Y2={},CPX=(Y2[64]="ma",Y2[73]="ogb",Y2[89]="cr",Y2[21]="test",Y2[0]="unkn",Y2[137]="con",Y2[155]="hl",Y2[78]="yt",Y2[171]="lp",Y2[172]="ap",Y2[177]="amo",Y2[178]="pqe",Y2[74]="gg",Y2[1]="gm",Y2[140]="am",Y2[193]="sc",Y2),XVG=_.U(Object.keys(CPX)),chP=XVG.next();!chP.done;chP=XVG.next());var o3k=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(o3k,_.aH);var WHG=[0,[2,3,4],_.Uf,kI1,bro,_.cq];var pVo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(pVo,_.aH);var SSt=_.Bv(pVo,[0,_.gd,_.CL,_.Uf,_.CL,_.Uf,WHG]);var Uk3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(Uk3,_.aH);Uk3.prototype.getCommand=function(){return _.tu(this,1)};
var g3N=function(){var D=new Uk3;return _.w1(D,1,0)};var ap6=_.bU([0,_.gd,_.CL,[0,_.Uf,_.CL,-1]]);var Ipw=new _.m2("s"),O_3=new _.m2("t"),AhU=new _.m2("u"),PPG=new _.m2("v"),$kk=function(D,C,X){_.eL.call(this,Ipw);this.mediaKey=D;this.photoUrl=C;this.photoSource=X};
_.h($kk,_.eL);var v3P=function(){_.eL.call(this,O_3)};
_.h(v3P,_.eL);var i_k=function(D){D=D===void 0?!1:D;_.eL.call(this,AhU);this.isError=D};
_.h(i_k,_.eL);var k0U=function(){_.eL.call(this,PPG)};
_.h(k0U,_.eL);var uj6=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,rho=function(D){if(typeof D=="string"){if(D.charAt(0)==".")return Qck(D.substr(1));if(D.charAt(0)=="["){var C=uj6.exec(D);D=D.indexOf("=")==-1?void 0:C[3];return BRY(C[1],D)}return b_w(D)}return D},Qck=function(D){return function(C){return C.getAttribute&&_.cP(C,D)}},BRY=function(D,C){return function(X){return C!==void 0?X.getAttribute&&X.getAttribute(D)==C:X.hasAttribute&&X.hasAttribute(D)}},b_w=function(D){D=D.toUpperCase();
return function(C){return(C=C.tagName)&&C.toUpperCase()==D}},KHG=function(){return!0};var yN=function(D,C){this.JSC$20078_key_=D;this.JSC$20078_value_=C},hbU=function(D){throw Error("Dk`"+D.JSC$20078_key_);
},xk1=function(D,C){return new TypeError("Ek`"+C+"`"+D.JSC$20078_key_+"`"+D.JSC$20078_value_+"`"+typeof D.JSC$20078_value_)};
yN.prototype.string=function(D){return arguments.length==0?LH3(this):scU(this,D)};
var scU=function(D,C){var X;return(X=mkt(D))!=null?X:C},LH3=function(D){var C=mkt(D);
C===null&&hbU(D);return C},mkt=function(D){var C=D.JSC$20078_value_;
if(C==null)return null;if(typeof C==="string")return C;throw xk1(D,"string");};
yN.prototype.bool=function(D){if(arguments.length==0){var C=this.optionalBool();C===null&&hbU(this)}else{var X;C=(X=this.optionalBool())!=null?X:D}return C};
yN.prototype.optionalBool=function(){var D=this.JSC$20078_value_;if(D==null)return null;if(typeof D==="boolean")return D;if(typeof D==="string"){D=D.toLowerCase();if(D==="true"||D==="1")return!0;if(D==="false"||D==="0")return!1}throw xk1(this,"boolean");};
yN.prototype.number=function(D){if(arguments.length==0){var C=eb3(this);C===null&&hbU(this)}else C=E31(this,D);return C};
var E31=function(D,C){var X;return(X=eb3(D))!=null?X:C},eb3=function(D){var C=D.JSC$20078_value_;
if(C==null)return null;if(typeof C==="number")return C;if(typeof C==="string"){var X=Number(C);if(!isNaN(X)&&(X!==0||C.trim().length!==0))return X}throw xk1(D,"number");};
yN.prototype.toString=function(){return LH3(this)};
yN.prototype.enum=function(D,C){var X=!0,c=void 0,W;for(W in D){var p=D[W];X&&(X=!1,c=typeof p==="number"?E31(this,C):scU(this,C));if(p==c)return c}JSON.stringify(D);return c};
yN.prototype.array=function(D){if(arguments.length==0){var C=tJG(this);C===null&&hbU(this);return C}C=tJG(this);return C==null?D:C};
var tJG=function(D){var C=D.JSC$20078_value_;if(C==null)return null;Array.isArray(C)||(typeof C!=="string"?C=[C]:(C=C.trim(),C=C==""?[]:C.split(",").map(function(X){return X.trim()})));
return NRG(D,C)},NRG=function(D,C){var X=D.JSC$20078_key_+"[";
return Array.from(C,function(c,W){return new yN(X+W+"]",c)})};
yN.prototype.object=function(D){var C=this.JSC$20078_value_;if(C==null)return D===void 0&&hbU(this),D;if(typeof C==="object"&&C.constructor===Object){D={};var X=this.JSC$20078_key_+".",c;for(c in C)D[c]=new yN(X+c,C[c]);return D}throw xk1(this,"object");};var nw=function(D){this.list_=YSk(D)},YSk=function(D){if(D instanceof nw)D=D.list_;
else if(D[0]instanceof nw){for(var C=new Set,X=0;X<D.length;X++)for(var c=_.U(D[X].list_),W=c.next();!W.done;W=c.next())C.add(W.value);D=C}return[].concat(_.VB(D))};
_.S=nw.prototype;_.S.each=function(D,C,X){((X===void 0?0:X)?B2U:_.pC)(this.list_,D,C);return this};
_.S.size=function(){return this.list_.length};
_.S.isEmpty=function(){return this.list_.length===0};
_.S.get=function(D){return this.list_[D]||null};
_.S.el=function(){return this.list_[0]||null};
_.S.map=function(D,C){return _.Gv(this.list_,D,C)};
_.S.equals=function(D){return this===D||_.lt(this.list_,D.list_)};
_.S.first=function(){return this.list_.length==0?null:new ww(this.list_[0])};
_.S.last=function(){return this.list_.length==0?null:new ww(this.list_[this.list_.length-1])};
_.S.find=function(D){var C=[];this.each(function(X){X=X.querySelectorAll(String(D));for(var c=0;c<X.length;c++)C.push(X[c])});
return new nw(C)};
_.S.parent=function(){var D=[];this.each(function(C){(C=C.parentElement||null)&&!_.Zn(D,C)&&D.push(C)});
return new nw(D)};
_.S.children=function(){var D=[];this.each(function(C){C=_.J6(C);for(var X=0;X<C.length;X++)D.push(C[X])});
return new nw(D)};
_.S.filter=function(D){D=_.Sz(this.list_,rho(D));return new nw(D)};
_.S.closest=function(D){var C=[],X=rho(D),c=function(W){return _.OU(W)&&X(W)};
this.each(function(W){(W=_.zv(W,c,!0))&&!_.Zn(C,W)&&C.push(W)});
return new nw(C)};
_.S.next=function(D){return yhP(this,_.x3N,D)};
_.S.prev=function(D){return yhP(this,rxt,D)};
var yhP=function(D,C,X){var c=[];var W=X?rho(X):KHG;D.each(function(p){(p=C(p))&&W(p)&&c.push(p)});
return new nw(c)};
nw.prototype.setClass=function(D){return this.each(function(C){_.X9(C,D)})};
var n3t=function(D,C){return D.each(function(X){_.q_(X,C)})},wVp=function(D,C){return D.each(function(X){_.j6(X,C)})};
nw.prototype.toggleClass=function(D,C){return C===!0?n3t(this,D):C===!1?wVp(this,D):this.each(function(X){_.cP(X,D)?_.j6(X,D):_.q_(X,D)})};
nw.prototype.setText=function(D){return this.each(function(C){_.zi(C,D)})};
var FHX=function(D){D.each(function(C){C.removeAttribute("aria-hidden")})};
nw.prototype.getStyle=function(D){if(this.list_.length>0){var C=this.list_[0],X=C.style[_.aB(D)];return typeof X!=="undefined"?X:C.style[_.ZyJ(C,D)]||""}};
nw.prototype.getData=function(D){if(this.list_.length===0)return new yN(D,null);var C=LpU(this.list_[0],D);return new yN(D,C)};
nw.prototype.focus=function(D){try{D?this.el().focus(D):this.el().focus()}catch(C){}return this};
nw.prototype.click=function(){var D=_.Hd(this.el());if(D.createEvent){var C=D.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,D.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(C)}else D=D.createEventObject(),D.clientX=0,D.clientY=0,D.screenX=0,D.screenY=0,D.altKey=!1,D.ctrlKey=!1,D.shiftKey=!1,D.button=0,this.el().fireEvent("onclick",D)};
var FQ=function(D,C,X,c){function W(a,O,P){var k=O;O&&O.parentNode&&(k=O.cloneNode(!0));a(k,P)}
c=c===void 0?!1:c;if(D.list_.length==1){var p=D.list_[0],g=function(a){return C(a,p)};
X instanceof nw?X.each(g,void 0,c):Array.isArray(X)?(c?B2U:_.pC)(X,g):g(X);return D}return D.each(function(a){X instanceof nw?X.each(function(O){W(C,O,a)}):Array.isArray(X)?_.pC(X,function(O){W(C,O,a)}):W(C,X,a)})};
_.S=nw.prototype;_.S.append=function(D){return FQ(this,function(C,X){C&&X.appendChild(C)},D)};
_.S.appendTo=function(D){(new nw([D])).append(this);return this};
_.S.remove=function(){return FQ(this,function(D,C){_.ep(C)},null)};
_.S.empty=function(){return FQ(this,function(D,C){_.VM(C)},null)};
_.S.after=function(D,C){return FQ(this,function(X,c){X&&_.Hq(X,c)},D,!(C===void 0||C))};
_.S.before=function(D){return FQ(this,function(C,X){C&&_.Ti(C,X)},D)};
_.S.replaceWith=function(D){return FQ(this,function(C,X){C&&_.rp5(C,X)},D)};
_.S.toggle=function(D){return this.each(function(C){_.Sn(C,D)})};
_.S.show=function(){return this.toggle(!0)};
_.S.hide=function(){return this.toggle(!1)};
_.S.trigger=function(D,C,X,c){return Z_w(this,D,C,X,c)};
var Z_w=function(D,C,X,c,W){return D.each(function(p){_.iqh(_.Hd(p)).triggerWizEventInternal(p,C,X,c,W)})},ww=function(D,C){D instanceof nw&&(C=D.list_,D=null);
this.list_=YSk(D!=null?[D]:C)};
_.WT(ww,nw);_.S=ww.prototype;_.S.children=function(){return new nw(Array.prototype.slice.call(_.J6(this.list_[0])))};
_.S.each=function(D,C){D.call(C,this.list_[0],0);return this};
_.S.size=function(){return 1};
_.S.el=function(){return this.list_[0]};
_.S.first=function(){return this};var ZU=function(D,C){C=C===void 0?window:C;this.hostId=D;this.win=C;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$20089_previousHtmlOverscroll=this.JSC$20089_previousBodyOverscroll=this.JSC$20089_previousBodyOverflow="";this.eventTarget=new _.yg;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},TR1=function(D){var C=
G0U(G0U(G0U(new VJY(78),"po"),"hppp"),"hhc");
C.authUser=Number(_.q6("SESSION_INDEX","0"));C.colorScheme=D;return C};
ZU.prototype.getOrigin=function(){return this.origin?this.origin:_.$x(_.PP(_.As(new _.H7,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
ZU.prototype.getTargetOrigin=function(){return _.$x(_.PP(_.As(new _.H7,this.scheme),this.domain),this.port)};
ZU.prototype.preloadIframe=function(D){var C=this;if(this.iframeLoadPromise===void 0){var X=document.createElement("iframe");this.iframe=X;h_6(X,D);this.iframeLoadPromise=new Promise(function(c,W){var p=!1,g=function(a){a.stopPropagation();X.removeEventListener("error",g);X.removeEventListener("securitypolicyviolation",g);W(Error("Fk",{cause:a}))};
X.addEventListener("error",g);X.addEventListener("securitypolicyviolation",g);setTimeout(function(){p||W(Error("Gk"))},3E4);
H_N(C,X,function(){p=!0;X.removeEventListener("error",g);X.removeEventListener("securitypolicyviolation",g);c()})});
Jh3(this);D=this.getTargetOrigin().toString();X.setAttribute("allow","camera "+D+"; display-capture "+D);this.parentElement.appendChild(X)}return this.iframeLoadPromise};
var MJY=function(D,C){var X,c;return _.I(function(W){if(W.nextAddress==1)return X=im3(getComputedStyle(D.parentElement).direction==="rtl"),D.parentElement.appendChild(X),document.activeElement instanceof HTMLElement&&(D.elementToFocusAfterClose=document.activeElement),_.KK(W,2),W.yield(D.preloadIframe(C),4);if(W.nextAddress!=2){D.parentElement.removeChild(X);D.JSC$20089_previousBodyOverflow=D.parentElement.style.overflow;D.JSC$20089_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
D.JSC$20089_previousBodyOverscroll=D.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";D.parentElement.style.overscrollBehavior="contain";D.parentElement.style.overflow="hidden";var p=D.iframe;p.style.bottom="0";p.style.border="none";p.style.height="100%";p.style.left="0";p.style.position=D.iframePosition;p.style.right="0";p.style.top="0";p.style.width="100%";p.style.zIndex="2202";p.setAttribute("aria-hidden","false");p.setAttribute("aria-modal","true");
D.opened=!0;zb3(D);return _.SR(W,0)}c=_.Eu(W);D.parentElement.removeChild(X);bmt(D.isDarkTheme());jcP(D,!1);throw Error("Hk",{cause:c});})},jcP=function(D,C){C=C===void 0?!0:C;
D.iframe!==void 0&&(qSX(D),document.documentElement.style.overscrollBehavior=D.JSC$20089_previousHtmlOverscroll,D.parentElement.style.overscrollBehavior=D.JSC$20089_previousBodyOverscroll,D.parentElement.style.overflow=D.JSC$20089_previousBodyOverflow,D.elementToFocusAfterClose!==void 0&&(D.elementToFocusAfterClose.focus(),D.elementToFocusAfterClose=void 0),C?Jh3(D):(D.parentElement.removeChild(D.iframe),D.iframe=void 0,D.iframeLoadPromise=void 0,D.mainChannel=void 0),D.opened=!1)},qSX=function(D){D.backgroundElementsAriaHiddenIsNull&&
(FHX(D.backgroundElementsAriaHiddenIsNull),D.backgroundElementsAriaHiddenIsNull=void 0);
D.backgroundElementsAriaHiddenIsFalse&&(D.backgroundElementsAriaHiddenIsFalse.each(function(C){C.setAttribute("aria-hidden","false")}),D.backgroundElementsAriaHiddenIsFalse=void 0);
D.backgroundElementsWithoutInert&&(D.backgroundElementsWithoutInert.each(function(C){C.removeAttribute("inert")}),D.backgroundElementsWithoutInert=void 0)},zb3=function(D){D.backgroundElementsAriaHiddenIsNull=(new ww(D.iframe.parentElement)).children().filter(function(C){return C.getAttribute("aria-hidden")===null&&C!==D.iframe});
D.backgroundElementsAriaHiddenIsNull.each(function(C){C.setAttribute("aria-hidden","true")});
D.backgroundElementsAriaHiddenIsFalse=(new ww(D.iframe.parentElement)).children().filter(function(C){return C.getAttribute("aria-hidden")==="false"&&C!==D.iframe});
D.backgroundElementsAriaHiddenIsFalse.each(function(C){C.setAttribute("aria-hidden","true")});
D.backgroundElementsWithoutInert=(new ww(D.iframe.parentElement)).children().filter(function(C){return!C.hasAttribute("inert")&&C!==D.iframe});
D.backgroundElementsWithoutInert.each(function(C){C.setAttribute("inert","true")})},Jh3=function(D){D=D.iframe;
D.style.bottom="-1000px";D.style.position="fixed";D.style.right="-1000px";D.style.border="";D.style.height="";D.style.left="";D.style.top="";D.style.width="";D.style.zIndex="";D.setAttribute("aria-hidden","true");D.setAttribute("aria-modal","false")};
ZU.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var VJY=function(D,C){ZU.call(this,CPX[D],C);this.options=[];this.style=""};
_.h(VJY,ZU);var fpP=function(D){D.style="youtube";return D},dk1=function(D,C){D.eventTarget.listen(AhU,C);
return D},Rb6=function(D,C){D.eventTarget.listen(Ipw,C);
return D},G0U=function(D,C){D.options.push(C);
return D},lpt=function(D){var C=[D.getOrigin()];
D.ancestorOrigins&&C.push.apply(C,_.VB(D.ancestorOrigins));var X=new _.H7(D.win.location.href),c=D.startUrl?D.startUrl:D.options.includes("po")?"profile-picture/art":"profile-picture";C=Y9G(_.vP(D.getTargetOrigin(),c),"origin",C);D.startUrl&&_.oA(C,"startPath",D.startUrl);D.authUser>0&&_.oA(C,"authuser",D.authUser);D.pageId!==void 0&&_.oA(C,"pageId",D.pageId);_.oA(C,"hostId",D.hostId);D.jsMode!==void 0&&_.oA(C,"jsmode",D.jsMode);D.rectangleRatio!==void 0&&_.oA(C,"rectangleRatio",D.rectangleRatio);
D.options.length>0&&_.oA(C,"opts",D.options.join(","));try{for(var W=_.U(["utm_source","utm_medium","utm_campaign","utm_content"]),p=W.next();!p.done;p=W.next()){var g=p.value;_.ce(X,g)&&_.oA(C,g,_.ce(X,g))}var a,O=(a=D.hl)!=null?a:_.ce(X,"hl");O!==void 0&&_.oA(C,"hl",O)}catch(P){if(!(P instanceof URIError))throw P;}D.colorScheme&&_.oA(C,"theme",D.colorScheme);D.style&&_.oA(C,"style",D.style);return C},DLk=function(D,C){D.mainChannel=_.Of({destination:D.win,
iframe:C,origin:D.getTargetOrigin().toString(),channelName:"ow",onMessage:function(X){X=SSt(X.data);if(C===D.iframe)switch(_.tu(X,1)){case 1:D.eventTarget.dispatchEvent(new i_k);jcP(D);break;case 2:D.eventTarget.dispatchEvent(new $kk(_.EG(X,4),_.EG(X,2),_.tu(X,5),_.Bz(X,o3k,6)));break;case 0:var c;D.eventTarget.dispatchEvent(new v3P(_.EG(X,2),(c=_.tu(X,3))!=null?c:0));break;case 3:D.eventTarget.dispatchEvent(new i_k(!0));jcP(D,!1);break;case 4:D.eventTarget.dispatchEvent(new k0U)}}})},H_N=function(D,
C,X){_.Of({destination:D.win,
iframe:C,origin:_.$x(_.PP(_.As(new _.H7,D.scheme),D.domain),D.port).toString(),channelName:"owi",onMessage:function(c){C===D.iframe&&(X!==void 0&&X(),DLk(D,C),D.opened&&D.mainChannel.send(ap6(g3N())),c.reply(),H_N(D,C))}})};
VJY.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?ZU.prototype.preloadIframe.call(this,lpt(this).toString()):this.iframeLoadPromise};
VJY.prototype.openPicker=function(D){var C=this;return _.I(function(X){if(X.nextAddress==1)return C.startUrl=D?D:C.options.includes("po")?"profile-picture/art":"profile-picture",X.yield(MJY(C,lpt(C).toString()),2);if(C.mainChannel){var c=C.mainChannel,W=c.send;var p=g3N();p=_.N3(p,2,C.startUrl);W.call(c,ap6(p))}_.t_(X)})};var CYP=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(CYP,_.aH);_.S=CYP.prototype;_.S.getSize=function(){return vB(this,1)};
_.S.setSize=function(D){return _.nR(this,1,D)};
_.S.getWidth=function(){return vB(this,12)};
_.S.getHeight=function(){return vB(this,13)};
_.S.setCenterCrop=function(D){return _.kT(this,20,D)};
_.S.getHtml=function(){return _.sG(this,4)};
_.S.getToken=function(){return _.se(this,24)};
_.S.setToken=function(D){return _.N3(this,24,D)};
_.S.getBackgroundColor=function(){return vB(this,87)};
_.S.hasBackgroundColor=function(){return _.aw(_.uS(this,87))!=null};
_.S.getStoryboardLevel=function(){return vB(this,109)};var GX=function(D){this.JSC$20097_value_=void 0;this.childNodes_={};if(D){var C=_.vlx(D);D=_.O9(D);for(var X=0;X<C.length;X++)this.set(C[X],D[X])}};
GX.prototype.set=function(D,C){Xm1(this,D,C,!1)};
GX.prototype.add=function(D,C){Xm1(this,D,C,!0)};
var Xm1=function(D,C,X,c){for(var W=0;W<C.length;W++){var p=C.charAt(W);D.childNodes_[p]||(D.childNodes_[p]=new GX);D=D.childNodes_[p]}if(c&&D.JSC$20097_value_!==void 0)throw Error("Ik`"+C);D.JSC$20097_value_=X},cyp=function(D,C){for(var X=0;X<C.length;X++)if(D=D.childNodes_[C.charAt(X)],!D)return;
return D};
GX.prototype.get=function(D){return(D=cyp(this,D))?D.JSC$20097_value_:void 0};
GX.prototype.getValues=function(){var D=[];oZt(this,D);return D};
var oZt=function(D,C){D.JSC$20097_value_!==void 0&&C.push(D.JSC$20097_value_);for(var X in D.childNodes_)oZt(D.childNodes_[X],C)};
GX.prototype.getKeys=function(D){var C=[];if(D){for(var X=this,c=0;c<D.length;c++){var W=D.charAt(c);if(!X.childNodes_[W])return[];X=X.childNodes_[W]}WV3(X,D,C)}else WV3(this,"",C);return C};
var WV3=function(D,C,X){D.JSC$20097_value_!==void 0&&X.push(C);for(var c in D.childNodes_)WV3(D.childNodes_[c],C+c,X)};
_.S=GX.prototype;_.S.containsKey=function(D){return this.get(D)!==void 0};
_.S.containsValue=function(D){if(this.JSC$20097_value_===D)return!0;for(var C in this.childNodes_)if(this.childNodes_[C].containsValue(D))return!0;return!1};
_.S.clear=function(){this.childNodes_={};this.JSC$20097_value_=void 0};
_.S.remove=function(D){for(var C=this,X=[],c=0;c<D.length;c++){var W=D.charAt(c);if(!C.childNodes_[W])throw Error("Jk`"+D);X.push([C,W]);C=C.childNodes_[W]}D=C.JSC$20097_value_;for(delete C.JSC$20097_value_;X.length>0;)if(c=X.pop(),C=c[0],c=c[1],C.childNodes_[c].isEmpty())delete C.childNodes_[c];else break;return D};
_.S.clone=function(){return new GX(this)};
_.S.getCount=function(){return sRN(this.getValues())};
_.S.isEmpty=function(){return this.JSC$20097_value_===void 0&&_.ZI.isEmpty(this.childNodes_)};var e_X=function(){if(!pmt){var D=pmt=new GX,C;for(C in S7U)D.add(C,S7U[C])}},pmt,VN=function(D,C){this.types=D;
this.setters=C},S7U={a:new VN([3,
0],[function(D,C){_.kT(D,21,C)},
function(D,C){_.nR(D,56,C)}]),
al:new VN([3],[function(D,C){_.kT(D,74,C)}]),
b:new VN([3,0],[function(D,C){_.kT(D,23,C)},
function(D,C){_.nR(D,38,C)}]),
ba:new VN([0],[function(D,C){_.nR(D,85,C)}]),
bc:new VN([0],[function(D,C){_.nR(D,87,C)}]),
br:new VN([0],[function(D,C){_.nR(D,86,C)}]),
c:new VN([3,0],[function(D,C){_.kT(D,2,C)},
function(D,C){_.nR(D,39,C)}]),
cc:new VN([3],[function(D,C){_.kT(D,51,C)}]),
ci:new VN([3],[function(D,C){_.kT(D,32,C)}]),
ckm:new VN([3],[function(D,C){_.kT(D,104,C)}]),
cp:new VN([0],[function(D,C){_.nR(D,92,C)}]),
cr:new VN([3],[function(D,C){_.kT(D,108,C)}]),
cv:new VN([0],[function(D,C){_.nR(D,94,C)}]),
d:new VN([3],[function(D,C){_.kT(D,3,C)}]),
dc:new VN([5],[function(D,C){_.N3(D,99,C)}]),
df:new VN([3],[function(D,C){_.kT(D,80,C)}]),
dv:new VN([3],[function(D,C){_.kT(D,90,C)}]),
e:new VN([0],[function(D,C){_.nR(D,15,C)}]),
em:new VN([0],[function(D,C){_.nR(D,107,C)}]),
f:new VN([4],[function(D,C){_.N3(D,16,C)}]),
fg:new VN([3],[function(D,C){_.kT(D,34,C)}]),
fh:new VN([3],[function(D,C){_.kT(D,30,C)}]),
fm:new VN([3],[function(D,C){_.kT(D,84,C)}]),
fo:new VN([2],[function(D,C){_.rD(D,79,_.f5(C))}]),
ft:new VN([3],[function(D,C){_.kT(D,50,C)}]),
fv:new VN([3],[function(D,C){_.kT(D,31,C)}]),
g:new VN([3],[function(D,C){_.kT(D,14,C)}]),
gce:new VN([4],[function(D,C){_.N3(D,112,C)}]),
gd:new VN([3],[function(D,C){_.kT(D,83,C)}]),
gm:new VN([3],[function(D,C){_.kT(D,105,C)}]),
h:new VN([3,0],[function(D,C){_.kT(D,4,C)},
function(D,C){_.nR(D,13,C)}]),
i:new VN([3],[function(D,C){_.kT(D,22,C)}]),
ic:new VN([0],[function(D,C){_.nR(D,71,C)}]),
id:new VN([3],[function(D,C){_.kT(D,70,C)}]),
il:new VN([3],[function(D,C){_.kT(D,96,C)}]),
ip:new VN([3],[function(D,C){_.kT(D,54,C)}]),
iv:new VN([0],[function(D,C){_.wO(D,75,C)}]),
j:new VN([1],[function(D,C){C=C==null?C:KpP(C);_.rD(D,29,C)}]),
k:new VN([3,0],[function(D,C){_.kT(D,17,C)},
function(D,C){_.nR(D,42,C)}]),
l:new VN([0],[function(D,C){_.nR(D,44,C)}]),
lf:new VN([3],[function(D,C){_.kT(D,65,C)}]),
lo:new VN([3],[function(D,C){_.kT(D,97,C)}]),
m:new VN([0],[function(D,C){_.nR(D,63,C)}]),
md:new VN([3],[function(D,C){_.kT(D,91,C)}]),
mm:new VN([4],[function(D,C){_.N3(D,81,C)}]),
mo:new VN([3],[function(D,C){_.kT(D,73,C)}]),
mp:new VN([0],[function(D,C){_.nR(D,115,C)}]),
mv:new VN([3],[function(D,C){_.kT(D,66,C)}]),
n:new VN([3],[function(D,C){D.setCenterCrop(C)}]),
nc:new VN([3],[function(D,C){_.kT(D,55,C)}]),
nd:new VN([3],[function(D,C){_.kT(D,53,C)}]),
ng:new VN([3],[function(D,C){_.kT(D,95,C)}]),
ngm:new VN([3],[function(D,C){_.kT(D,106,C)}]),
no:new VN([3],[function(D,C){_.kT(D,37,C)}]),
ns:new VN([3],[function(D,C){_.kT(D,40,C)}]),
nt0:new VN([4],[function(D,C){_.N3(D,36,C)}]),
ntm:new VN([3],[function(D,C){_.kT(D,114,C)}]),
nu:new VN([3],[function(D,C){_.kT(D,46,C)}]),
nw:new VN([3],[function(D,C){_.kT(D,48,C)}]),
o:new VN([1,3],[function(D,C){C=C==null?C:KpP(C);_.rD(D,7,C)},
function(D,C){_.kT(D,27,C)}]),
p:new VN([3,0],[function(D,C){_.kT(D,19,C)},
function(D,C){_.nR(D,43,C)}]),
pa:new VN([3],[function(D,C){_.kT(D,61,C)}]),
pc:new VN([0],[function(D,C){_.nR(D,88,C)}]),
pd:new VN([3],[function(D,C){_.kT(D,60,C)}]),
pf:new VN([3],[function(D,C){_.kT(D,67,C)}]),
pg:new VN([3],[function(D,C){_.kT(D,72,C)}]),
pi:new VN([2],[function(D,C){_.rD(D,76,_.f5(C))}]),
pp:new VN([3],[function(D,C){_.kT(D,52,C)}]),
pt:new VN([4],[function(D,C){_.N3(D,111,C)}]),
q:new VN([4],[function(D,C){_.N3(D,28,C)}]),
r:new VN([3,0],[function(D,C){_.kT(D,6,C)},
function(D,C){_.nR(D,26,C)}]),
ra:new VN([3],[function(D,C){_.kT(D,103,C)}]),
rf:new VN([3],[function(D,C){_.kT(D,100,C)}]),
rg:new VN([3],[function(D,C){_.kT(D,59,C)}]),
rh:new VN([3],[function(D,C){_.kT(D,49,C)}]),
rj:new VN([3],[function(D,C){_.kT(D,57,C)}]),
ro:new VN([2],[function(D,C){_.rD(D,78,_.f5(C))}]),
rp:new VN([3],[function(D,C){_.kT(D,58,C)}]),
rw:new VN([3],[function(D,C){_.kT(D,35,C)}]),
rwa:new VN([3],[function(D,C){_.kT(D,64,C)}]),
rwu:new VN([3],[function(D,C){_.kT(D,41,C)}]),
s:new VN([3,0],[function(D,C){_.kT(D,33,C)},
function(D,C){D.setSize(C)}]),
sb:new VN([0],[function(D,C){_.nR(D,110,C)}]),
sc:new VN([0],[function(D,C){_.nR(D,89,C)}]),
sg:new VN([3],[function(D,C){_.kT(D,82,C)}]),
sl:new VN([0],[function(D,C){_.nR(D,109,C)}]),
sm:new VN([3],[function(D,C){_.kT(D,93,C)}]),
t:new VN([4],[function(D,C){D.setToken(C)}]),
tm:new VN([3],[function(D,C){_.kT(D,113,C)}]),
u:new VN([3],[function(D,C){_.kT(D,18,C)}]),
ut:new VN([3],[function(D,C){_.kT(D,45,C)}]),
v:new VN([0],[function(D,C){_.nR(D,62,C)}]),
vb:new VN([0],[function(D,C){_.wO(D,68,C)}]),
vf:new VN([4],[function(D,C){_.N3(D,102,C)}]),
vl:new VN([0],[function(D,C){_.wO(D,69,C)}]),
vm:new VN([3],[function(D,C){_.kT(D,98,C)}]),
w:new VN([0],[function(D,C){_.nR(D,12,C)}]),
x:new VN([0],[function(D,C){_.nR(D,9,C)}]),
y:new VN([0],[function(D,C){_.nR(D,10,C)}]),
ya:new VN([2],[function(D,C){_.rD(D,77,_.f5(C))}]),
z:new VN([0],[function(D,C){_.nR(D,11,C)}])};
e_X.prototype.parse=function(D){var C=new CYP,X=new CYP;if(D=="")D=!0;else{D=D.split("-");for(var c=!0,W=0;W<D.length;W++){var p=D[W];if(p.length==0)c=!1;else{var g=p,a=!1;var O=g;var P=g.charAt(0);P!=P.toLowerCase()&&(a=!0,O=g.charAt(0).toLowerCase()+g.substring(1));var k=pmt;for(P=1;P<=O.length;++P){var u=k,Q=O.substring(0,P);if(Q.length==0?u.isEmpty():!cyp(u,Q))break}O=P==1?null:(O=k.get(O.substring(0,P-1)))?{option:g.substring(0,P-1),value:g.substring(P-1),signed:a,attributes:O}:null;if(O){g=
[];a=[];P=!1;for(k=0;k<O.attributes.types.length;k++){u=O.attributes.types[k];var B=O.value;Q=W;if(O.signed&&u==1)for(var K=B.length;K<12&&Q<D.length-1;)B+="-"+D[Q+1],K=B.length,++Q;else if(u==2)for(;Q<D.length-1&&D[Q+1].match(/^[\d\.]/);)B+="-"+D[Q+1],++Q;K=O.attributes.setters[k];B=ULt(this,u)(O.option,B,C,X,K);if(B===null){P=!0;W=Q;break}else g.push(u),a.push(B)}if(!P)for(O=0;O<a.length;O++)k=g[O],B=a[O],gZ3(this,k)(p,B);c=c&&P}else c=!1}}D=c}return new aet(C,X,D)};
var IeX=function(D,C,X,c,W,p){W(X,C);D=D.charAt(0);p=p(D==D.toUpperCase());W(c,p)};
_.S=e_X.prototype;_.S.parseAndSetIntOption_=function(D,C,X,c,W){if(C=="")return 0;isFinite(C)&&(C=String(C));C=typeof C==="string"?/^\s*-?0x/i.test(C)?parseInt(C,16):parseInt(C,10):NaN;if(isNaN(C))return 1;IeX(D,C,X,c,W,Number);return null};
_.S.logIntParseError_=function(){};
_.S.parseAndSetFloatOption_=function(D,C,X,c,W){if(C=="")return 0;var p=Number(C);C=p==0&&_.Um(C)?NaN:p;if(isNaN(C))return 1;IeX(D,C,X,c,W,Number);return null};
_.S.logFloatParseError_=function(){};
_.S.parseAndSetBoolOption_=function(D,C,X,c,W){if(C!="")return 2;IeX(D,!0,X,c,W,Boolean);return null};
_.S.logBoolParseError_=function(){};
_.S.parseAndSetStringOption_=function(D,C,X,c,W){if(C=="")return 0;IeX(D,C,X,c,W,function(p){return p?"1":""});
return null};
_.S.logStringParseError_=function(){};
_.S.parseAndSetUint64Base64Option_=function(D,C,X,c,W){if(C=="")return 0;IeX(D,C,X,c,W,function(p){return p?1:0});
return null};
var ULt=function(D,C){switch(C){case 0:return(0,_.wo)(D.parseAndSetIntOption_,D);case 2:return(0,_.wo)(D.parseAndSetFloatOption_,D);case 3:return(0,_.wo)(D.parseAndSetBoolOption_,D);case 4:return(0,_.wo)(D.parseAndSetStringOption_,D);case 1:return(0,_.wo)(D.parseAndSetUint64Base64Option_,D);default:return function(){}}},gZ3=function(D,C){switch(C){case 0:return(0,_.wo)(D.logIntParseError_,D);
case 2:return(0,_.wo)(D.logFloatParseError_,D);case 3:return(0,_.wo)(D.logBoolParseError_,D);case 4:case 1:return(0,_.wo)(D.logStringParseError_,D);default:return function(){}}},aet=function(D,C,X){this.valueProto_=D;
this.signatureFlagProto_=C;this.JSC$20109_valid_=X};
aet.prototype.isValid=function(){return this.JSC$20109_valid_};var xoG=function(D){this.JSC$20110_parser_=null;this.JSC$20110_components_=[];this.JSC$20110_parsedOptions_=null;O4w(this,D)},Ayp=function(D){D.JSC$20110_parser_==null&&(D.JSC$20110_parser_=new e_X);
return D.JSC$20110_parser_},O4w=function(D,C){D.JSC$20110_parsedOptions_=C?typeof C==="string"?Ayp(D).parse(C):C:Ayp(D).parse("")},TX=function(D,C){return D==C?!1:!0};
_.S=xoG.prototype;_.S.JSC$20112_setCrop=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,_.sG(X,2),_.sG(C.signatureFlagProto_,2))&&_.kT(X,2,D);return this};
_.S.JSC$20112_setCircleCrop=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,$2(X,51),$2(C.signatureFlagProto_,51))&&_.kT(X,51,D);return this};
_.S.JSC$20112_setImageCrop=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,$2(X,32),$2(C.signatureFlagProto_,32))&&_.kT(X,32,D);return this};
_.S.JSC$20112_setHeight=function(D){var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,X.getHeight(),C.signatureFlagProto_.getHeight())&&_.nR(X,13,D);return this};
_.S.setCenterCrop=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,_.sG(X,20),_.sG(C.signatureFlagProto_,20))&&X.setCenterCrop(D);return this};
_.S.JSC$20112_setSmartCrop=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,_.sG(X,19),_.sG(C.signatureFlagProto_,19))&&_.kT(X,19,D);return this};
_.S.JSC$20112_setPad=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,$2(X,60),$2(C.signatureFlagProto_,60))&&_.kT(X,60,D);return this};
_.S.JSC$20112_setSmartCropUseFace=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,_.sG(X,67),_.sG(C.signatureFlagProto_,67))&&_.kT(X,67,D);return this};
_.S.JSC$20112_setSmartCropNoClip=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,_.sG(X,52),_.sG(C.signatureFlagProto_,52))&&_.kT(X,52,D);return this};
_.S.setSize=function(D){var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,X.getSize(),C.signatureFlagProto_.getSize())&&X.setSize(D);return this};
_.S.setToken=function(D){D=D||void 0;var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,X.getToken(),C.signatureFlagProto_.getToken())&&X.setToken(D);return this};
_.S.JSC$20112_setWidth=function(D){var C=this.JSC$20110_parsedOptions_,X=C.valueProto_;TX(D,X.getWidth(),C.signatureFlagProto_.getWidth())&&_.nR(X,12,D);return this};
_.S.clearOptions=function(){O4w(this,"");return this};
_.S.build=function(){this.JSC$20110_components_.length=0;var D=this.JSC$20110_parsedOptions_,C=D.valueProto_;D=D.signatureFlagProto_;HB(this,"s",C.getSize(),D.getSize());HB(this,"w",C.getWidth(),D.getWidth());J5(this,"c",_.sG(C,2),_.sG(D,2));J5(this,"d",_.sG(C,3),_.sG(D,3));HB(this,"h",C.getHeight(),D.getHeight());J5(this,"s",$2(C,33),$2(D,33));J5(this,"h",C.getHtml(),D.getHtml());J5(this,"p",_.sG(C,19),_.sG(D,19));J5(this,"pp",_.sG(C,52),_.sG(D,52));J5(this,"pf",_.sG(C,67),_.sG(D,67));J5(this,"n",
_.sG(C,20),_.sG(D,20));HB(this,"r",vB(C,26),vB(D,26));J5(this,"r",_.sG(C,6),_.sG(D,6));J5(this,"o",$2(C,27),$2(D,27));var X=_.LR(C,7,_.k5);zX(this,"o",X,_.LR(D,7,_.k5));X=_.LR(C,29,_.k5);zX(this,"j",X,_.LR(D,29,_.k5));HB(this,"x",vB(C,9),vB(D,9));HB(this,"y",vB(C,10),vB(D,10));HB(this,"z",vB(C,11),vB(D,11));J5(this,"g",_.sG(C,14),_.sG(D,14));HB(this,"e",vB(C,15),vB(D,15));zX(this,"f",_.se(C,16),_.se(D,16));J5(this,"k",$2(C,17),$2(D,17));J5(this,"u",$2(C,18),!0);J5(this,"ut",$2(C,45),!0);J5(this,"i",
$2(C,22),!0);J5(this,"a",$2(C,21),$2(D,21));J5(this,"b",_.sG(C,23),_.sG(D,23));HB(this,"b",vB(C,38),vB(D,38));HB(this,"c",vB(C,39),vB(D,39),16,8);zX(this,"q",_.se(C,28),_.se(D,28));J5(this,"fh",$2(C,30),$2(D,30));J5(this,"fv",$2(C,31),$2(D,31));J5(this,"fg",_.sG(C,34),_.sG(D,34));J5(this,"ci",$2(C,32),$2(D,32));zX(this,"t",C.getToken(),D.getToken());zX(this,"nt0",_.se(C,36),_.se(D,36));J5(this,"rw",_.sG(C,35),_.sG(D,35));J5(this,"rwu",_.sG(C,41),_.sG(D,41));J5(this,"rwa",_.sG(C,64),_.sG(D,64));J5(this,
"nw",_.sG(C,48),_.sG(D,48));J5(this,"rh",_.sG(C,49),_.sG(D,49));J5(this,"no",_.sG(C,37),_.sG(D,37));J5(this,"ns",$2(C,40),$2(D,40));HB(this,"k",vB(C,42),vB(D,42));HB(this,"p",vB(C,43),vB(D,43));HB(this,"l",vB(C,44),vB(D,44));HB(this,"v",vB(C,62),vB(D,62));J5(this,"nu",$2(C,46),$2(D,46));J5(this,"ft",$2(C,50),$2(D,50));J5(this,"cc",$2(C,51),$2(D,51));J5(this,"nd",$2(C,53),$2(D,53));J5(this,"ip",$2(C,54),$2(D,54));J5(this,"nc",$2(C,55),$2(D,55));HB(this,"a",vB(C,56),vB(D,56));J5(this,"rj",$2(C,57),
$2(D,57));J5(this,"rp",$2(C,58),$2(D,58));J5(this,"rg",$2(C,59),$2(D,59));J5(this,"pd",$2(C,60),$2(D,60));J5(this,"pa",$2(C,61),$2(D,61));HB(this,"m",vB(C,63),vB(D,63));HB(this,"vb",iN(C,68),iN(D,68));HB(this,"vl",iN(C,69),iN(D,69));J5(this,"lf",$2(C,65),$2(D,65));J5(this,"mv",$2(C,66),$2(D,66));J5(this,"id",$2(C,70),$2(D,70));HB(this,"ic",vB(C,71),!0);J5(this,"pg",_.sG(C,72),_.sG(D,72));J5(this,"mo",$2(C,73),$2(D,73));J5(this,"al",$2(C,74),$2(D,74));HB(this,"iv",iN(C,75),iN(D,75));HB(this,"pi",k2(C,
76),k2(D,76));HB(this,"ya",k2(C,77),k2(D,77));HB(this,"ro",k2(C,78),k2(D,78));HB(this,"fo",k2(C,79),k2(D,79));J5(this,"df",$2(C,80),$2(D,80));zX(this,"mm",_.se(C,81),_.se(D,81));J5(this,"sg",$2(C,82),$2(D,82));J5(this,"gd",$2(C,83),$2(D,83));J5(this,"fm",$2(C,84),$2(D,84));HB(this,"ba",vB(C,85),vB(D,85));HB(this,"br",vB(C,86),vB(D,86));HB(this,"bc",C.getBackgroundColor(),D.getBackgroundColor(),16,8);HB(this,"pc",vB(C,88),vB(D,88),16,8);HB(this,"sc",vB(C,89),vB(D,89),16,8);J5(this,"dv",$2(C,90),$2(D,
90));J5(this,"md",$2(C,91),$2(D,91));HB(this,"cp",vB(C,92),vB(D,92));J5(this,"sm",$2(C,93),$2(D,93));HB(this,"cv",vB(C,94),vB(D,94));J5(this,"ng",$2(C,95),$2(D,95));J5(this,"il",$2(C,96),$2(D,96));J5(this,"lo",$2(C,97),$2(D,97));J5(this,"vm",$2(C,98),$2(D,98));zX(this,"dc",_.se(C,99),_.se(D,99));J5(this,"rf",$2(C,100),$2(D,100));zX(this,"vf",_.se(C,102),_.se(D,102));J5(this,"ra",_.sG(C,103),_.sG(D,103));J5(this,"ckm",$2(C,104),$2(D,104));J5(this,"gm",$2(C,105),$2(D,105));J5(this,"ngm",$2(C,106),$2(D,
106));HB(this,"em",vB(C,107),vB(D,107));J5(this,"cr",$2(C,108),$2(D,108));HB(this,"sl",C.getStoryboardLevel(),D.getStoryboardLevel());HB(this,"sb",vB(C,110),vB(D,110));zX(this,"pt",_.se(C,111),_.se(D,111));zX(this,"gce",_.se(C,112),_.se(D,112));J5(this,"tm",$2(C,113),$2(D,113));J5(this,"ntm",$2(C,114),$2(D,114));HB(this,"mp",vB(C,115),vB(D,115));return this.JSC$20110_components_.join("-")};
var HB=function(D,C,X,c,W,p){if(X!=null){var g=W==void 0||W!=10&&W!=16?10:W;X=Number(X).toString(g);W=new HbG;W.append(g==16?"0x":"");g=W.append;p==void 0?p="":(p-=X.length,p=p<=0?"":(0,_.INJ)("0",p));g.call(W,p);W.append(X);PYN(D,C,W.toString(),!!Number(c))}},J5=function(D,C,X,c){X&&PYN(D,C,"",!!c)},zX=function(D,C,X,c){X&&PYN(D,C,String(X),!!Number(c))},PYN=function(D,C,X,c){c&&(C=C.charAt(0).toUpperCase()+C.substring(1));
D.JSC$20110_components_.push(C+X)};_.WT(Eo,xoG);_.S=Eo.prototype;_.S.JSC$20112_setCrop=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setCrop.call(this,D)};
_.S.JSC$20112_setHeight=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return Eo.superClass_.JSC$20112_setHeight.call(this,D)};
_.S.JSC$20112_setImageCrop=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setImageCrop.call(this,D)};
_.S.JSC$20112_setCircleCrop=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setCircleCrop.call(this,D)};
_.S.setSize=function(D){_.MR(D)&&(D=Math.max(D.width,D.height));D=D==null||D<0?void 0:D;D!=null&&(this.JSC$20112_setWidth(),this.JSC$20112_setHeight());return Eo.superClass_.setSize.call(this,D)};
_.S.JSC$20112_setSmartCrop=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setSmartCrop.call(this,D)};
_.S.JSC$20112_setSmartCropNoClip=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setSmartCropNoClip.call(this,D)};
_.S.JSC$20112_setSmartCropUseFace=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setSmartCropUseFace.call(this,D)};
_.S.setCenterCrop=function(D){D&&j2(this);return Eo.superClass_.setCenterCrop.call(this,D)};
_.S.JSC$20112_setPad=function(D){D&&j2(this);return Eo.superClass_.JSC$20112_setPad.call(this,D)};
_.S.JSC$20112_setWidth=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return Eo.superClass_.JSC$20112_setWidth.call(this,D)};
var $Lw=function(D){D.clearOptions();var C=D.JSC$20110_parsedOptions_,X=C.valueProto_;TX(!0,_.sG(X,3),_.sG(C.signatureFlagProto_,3))&&_.kT(X,3,!0);return D},j2=function(D){D.setCenterCrop();
D.JSC$20112_setCircleCrop();D.JSC$20112_setCrop();D.JSC$20112_setImageCrop();D.JSC$20112_setPad();D.JSC$20112_setSmartCrop();D.JSC$20112_setSmartCropNoClip();D.JSC$20112_setSmartCropUseFace()};
Eo.prototype.build=function(){var D=this.JSC$20110_parsedOptions_.valueProto_;$2(D,18)||$2(D,45)?D.getSize()||this.setSize(0):(D=this.JSC$20110_parsedOptions_.valueProto_,D.getSize()||D.getWidth()||D.getHeight()||(this.setSize(),this.JSC$20112_setHeight(),this.JSC$20112_setWidth(),j2(this)));return Eo.superClass_.build.call(this)};var vZo=/^[^\/]*\/\//,i4N=function(D,C){C=C===void 0?!1:C;this.original_=D;this.originalPrefix_="";(D=this.original_.match(vZo))&&D[0]?(this.originalPrefix_=D[0],D=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):D="http://"+this.original_;this.uri_=_.Xg(D,!0);this.isFreeformUrl_=C;this.JSC$20116_valid_=!0;this.obfuscated_=!1},klk=function(D,C){D.JSC$20118_pathPrefix_=D.JSC$20118_pathPrefix_?D.JSC$20118_pathPrefix_+("/"+C):C},Mv=function(D){if(D.JSC$20118_components_==
void 0){var C=D.uri_.getPath().substring(1);
D.JSC$20118_pathPrefix_=null;if(D.isFreeformUrl_){D.JSC$20118_components_=[];if((C.match(/=/g)||[]).length>1)return D.JSC$20116_valid_=!1,D.JSC$20118_components_;var X=C.indexOf("=");X!=-1?(D.JSC$20118_components_.push(C.substr(0,X)),D.JSC$20118_components_.push(C.substr(X+1))):D.JSC$20118_components_.push(C);return D.JSC$20118_components_}D.JSC$20118_components_=C.split("/");C=D.JSC$20118_components_.length;C>2&&D.JSC$20118_components_[0]=="u"&&(klk(D,D.JSC$20118_components_[0]+"/"+D.JSC$20118_components_[1]),
D.JSC$20118_components_.shift(),D.JSC$20118_components_.shift(),C-=2);if(C==0||C==4||C>7)return D.JSC$20116_valid_=!1,D.JSC$20118_components_;if(C==2)klk(D,D.JSC$20118_components_[0]);else if(D.JSC$20118_components_[0]=="image")klk(D,D.JSC$20118_components_[0]);else if(C==7||C==3)return D.JSC$20116_valid_=!1,D.JSC$20118_components_;if(C<=3){D.obfuscated_=!0;C==3&&(klk(D,D.JSC$20118_components_[1]),D.JSC$20118_components_.shift(),--C);--C;X=D.JSC$20118_components_[C];var c=X.indexOf("=");c!=-1&&(D.JSC$20118_components_[C]=
X.substr(0,c),D.JSC$20118_components_.push(X.substr(c+1)))}}return D.JSC$20118_components_};
i4N.prototype.isValid=function(){Mv(this);return this.JSC$20116_valid_};
i4N.prototype.isObfuscated=function(){Mv(this);return this.obfuscated_};
var uCG=function(D){Mv(D);return D.isFreeformUrl_},qv=function(D){Mv(D);
D.JSC$20118_pathPrefix_==void 0&&(D.JSC$20118_pathPrefix_=null);return D.JSC$20118_pathPrefix_},QsG=function(D){switch(Mv(D).length){case 7:return!0;
case 6:return qv(D)==null;case 5:return!1;case 3:return!0;case 2:return qv(D)==null;case 1:return!1;default:return!1}},fw=function(D,C){if(uCG(D))a:{switch(C){case 7:C=0;
break;case 4:if(!QsG(D)){D=null;break a}C=1;break;default:D=null;break a}D=Mv(D)[C]}else if(D.isObfuscated())a:{var X=qv(D)!=null?1:0;switch(C){case 6:C=X;break;case 4:if(!QsG(D)){D=null;break a}C=1+X;break;default:D=null;break a}D=Mv(D)[C]}else a:{X=qv(D)!=null?1:0;switch(C){case 0:C=X;break;case 1:C=1+X;break;case 2:C=2+X;break;case 3:C=3+X;break;case 4:if(!QsG(D)){D=null;break a}C=4+X;break;case 5:C=QsG(D)?1:0;C=4+X+C;break;default:D=null;break a}D=Mv(D)[C]}return D};
i4N.prototype.getOptions=function(){this.options_==void 0&&(this.options_=fw(this,4));return this.options_};var mow=function(){};
mow.prototype.parse=function(D,C){return new Ld6(D,C===void 0?!1:C)};
var Ld6=function(D,C){i4N.call(this,D,C===void 0?!1:C)};
_.h(Ld6,i4N);_.WT(EfX,Eo);var s9w;EfX.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
EfX.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var D=EfX.superClass_.build.call(this),C=[];qv(this.parsedImageUrl_)!=null&&C.push(qv(this.parsedImageUrl_));var X=uCG(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var c=this.parsedImageUrl_;c.obfuscatedData_==void 0&&(c.obfuscatedData_=fw(c,6));C.push(c.obfuscatedData_+(D?"="+D:""))}else if(X){c=C.push;var W=this.parsedImageUrl_;W.freeformUrlPath_===void 0&&(W.freeformUrlPath_=
fw(W,7));c.call(C,W.freeformUrlPath_);D&&C.push(D)}else c=C.push,W=this.parsedImageUrl_,W.obfuscatedGaiaId_==void 0&&(W.obfuscatedGaiaId_=fw(W,0)),c.call(C,W.obfuscatedGaiaId_),c=C.push,W=this.parsedImageUrl_,W.photoId_==void 0&&(W.photoId_=fw(W,1)),c.call(C,W.photoId_),c=C.push,W=this.parsedImageUrl_,W.imageVersion_==void 0&&(W.imageVersion_=fw(W,2)),c.call(C,W.imageVersion_),c=C.push,W=this.parsedImageUrl_,W.signature_==void 0&&(W.signature_=fw(W,3)),c.call(C,W.signature_),D&&C.push(D),D=C.push,
c=this.parsedImageUrl_,c.filename_==void 0&&(c.filename_=fw(c,5)),D.call(C,c.filename_);C=X?C.join("="):C.join("/");C=_.Xg(this.protocolPrefix_+this.JSC$20124_domain_+"/"+C+(this.JSC$20124_query_?"?"+this.JSC$20124_query_:"")).toString();C.startsWith("%3a//")&&(C=C.replace("%3a//","://"));return C};var Bp1=_.q8(["viewBox"]),b41=_.q8(["width"]),ryw=_.q8(["height"]),KVU=_.q8(["fill"]),hfw=_.q8(["id"]),xL1=_.q8(["x"]),LVt=_.q8(["y"]);tbp.prototype.getLength=function(){return this.parsedData.length};
tbp.prototype.write=function(D){for(var C=0,X=this.parsedData.length;C<X;C++)D.put(this.parsedData[C],8)};
var Zmt=function(D,C){var X=new tbp(C);D.dataList.push(X);X=D.errorCorrectLevel;var c=1,W=encodeURI(C).toString().replace(/%[0-9a-fA-F]{2}/g,"a");C=W.length+(W.length!=C?3:0);W=0;for(var p=dw.length;W<=p;W++){var g=0;switch(X){case 1:g=dw[W][0];break;case 0:g=dw[W][1];break;case 3:g=dw[W][2];break;case 2:g=dw[W][3]}if(C<=g)break;else c++}if(c>dw.length)throw Error("Sk");D.typeNumber=c;D.dataCache=null};
NE3.prototype.isDark=function(D,C){if(D<0||this.moduleCount<=D||C<0||this.moduleCount<=C)throw Error("Kk`"+D+"`"+C);return this.modules[D][C]};
for(var GtY=function(D,C,X){D.moduleCount=D.typeNumber*4+17;D.modules=Array(D.moduleCount);for(var c=0;c<D.moduleCount;c++){D.modules[c]=Array(D.moduleCount);for(var W=0;W<D.moduleCount;W++)D.modules[c][W]=null}ssw(D,0,0);ssw(D,D.moduleCount-7,0);ssw(D,0,D.moduleCount-7);c=mLt[D.typeNumber-1];for(W=0;W<c.length;W++)for(var p=0;p<c.length;p++){var g=c[W],a=c[p];if(D.modules[g][a]==null)for(var O=-2;O<=2;O++)for(var P=-2;P<=2;P++)D.modules[g+O][a+P]=O==-2||O==2||P==-2||P==2||O==0&&P==0?!0:!1}for(c=
8;c<D.moduleCount-8;c++)D.modules[c][6]==null&&(D.modules[c][6]=c%2==0);for(c=8;c<D.moduleCount-8;c++)D.modules[6][c]==null&&(D.modules[6][c]=c%2==0);c=D.errorCorrectLevel<<3|X;for(W=c<<10;Rl(W)-Rl(1335)>=0;)W^=1335<<Rl(W)-Rl(1335);c=(c<<10|W)^21522;for(W=0;W<15;W++)p=!C&&(c>>W&1)==1,W<6?D.modules[W][8]=p:W<8?D.modules[W+1][8]=p:D.modules[D.moduleCount-15+W][8]=p;for(W=0;W<15;W++)p=!C&&(c>>W&1)==1,W<8?D.modules[8][D.moduleCount-W-1]=p:W<9?D.modules[8][15-W-1+1]=p:D.modules[8][15-W-1]=p;D.modules[D.moduleCount-
8][8]=!C;if(D.typeNumber>=7){c=D.typeNumber;for(W=c<<12;Rl(W)-Rl(7973)>=0;)W^=7973<<Rl(W)-Rl(7973);c=c<<12|W;for(W=0;W<18;W++)p=!C&&(c>>W&1)==1,D.modules[Math.floor(W/3)][W%3+D.moduleCount-8-3]=p;for(W=0;W<18;W++)p=!C&&(c>>W&1)==1,D.modules[W%3+D.moduleCount-8-3][Math.floor(W/3)]=p}if(D.dataCache==null){W=D.typeNumber;p=D.dataList;C=D.errorCorrectLevel;c=efP(W,C);if(c==void 0)throw Error("Rk`"+W+"`"+C);g=c.length/3;C=[];for(a=0;a<g;a++){O=c[a*3];P=c[a*3+1];for(var k=c[a*3+2],u=0;u<O;u++)C.push(new YWw(P,
k))}c=new ymY;for(g=0;g<p.length;g++)a=p[g],c.put(a.mode,4),c.put(a.getLength(),EZU(a.mode,W)),a.write(c);for(g=W=0;g<C.length;g++)W+=C[g].dataCount;if(c.length>W*8)throw Error("Lk`"+c.length+"`"+W*8);for(c.length+4<=W*8&&c.put(0,4);c.length%8!=0;)tOp(c,!1);for(;!(c.length>=W*8);){c.put(236,8);if(c.length>=W*8)break;c.put(17,8)}p=W=P=0;g=Array(C.length);a=Array(C.length);for(O=0;O<C.length;O++){u=C[O].dataCount;var Q=C[O].totalCount-u;W=Math.max(W,u);p=Math.max(p,Q);g[O]=Array(u);for(k=0;k<g[O].length;k++)g[O][k]=
255&c.buffer[k+P];P+=u;k=Q;u=new tQ([1],0);for(Q=0;Q<k;Q++)u=u.multiply(new tQ([1,NpU(Q)],0));k=u;u=(new tQ(g[O],k.getLength()-1)).mod(k);a[O]=Array(k.getLength()-1);for(k=0;k<a[O].length;k++)Q=k+u.getLength()-a[O].length,a[O][k]=Q>=0?u.get(Q):0}for(k=c=0;k<C.length;k++)c+=C[k].totalCount;c=Array(c);for(k=P=0;k<W;k++)for(O=0;O<C.length;O++)k<g[O].length&&(c[P++]=g[O][k]);for(k=0;k<p;k++)for(O=0;O<C.length;O++)k<a[O].length&&(c[P++]=a[O][k]);D.dataCache=c}C=D.dataCache;c=-1;W=D.moduleCount-1;p=7;g=
0;for(a=D.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(O=0;O<2;O++)D.modules[W][a-O]==null&&(P=!1,g<C.length&&(P=(C[g]>>>p&1)==1),Y7Y(X,W,a-O)&&(P=!P),D.modules[W][a-O]=P,p--,p==-1&&(g++,p=7));W+=c;if(W<0||D.moduleCount<=W){W-=c;c=-c;break}}},ssw=function(D,C,X){for(var c=-1;c<=7;c++)if(!(C+c<=-1||D.moduleCount<=C+c))for(var W=-1;W<=7;W++)X+W<=-1||D.moduleCount<=X+W||(D.modules[C+c][X+W]=0<=c&&c<=6&&(W==0||W==6)||0<=W&&W<=6&&(c==0||c==6)||2<=c&&c<=4&&2<=W&&W<=4?!0:!1)},Vbt=function(D){for(var C=0,
X=0,c=0;c<8;c++){GtY(D,!0,c);
var W=D;for(var p=W.moduleCount,g=0,a=0;a<p;a++)for(var O=0;O<p;O++){for(var P=0,k=W.isDark(a,O),u=-1;u<=1;u++)if(!(a+u<0||p<=a+u))for(var Q=-1;Q<=1;Q++)O+Q<0||p<=O+Q||(u!=0||Q!=0)&&k==W.isDark(a+u,O+Q)&&P++;P>5&&(g+=3+P-5)}for(a=0;a<p-1;a++)for(O=0;O<p-1;O++)if(P=0,W.isDark(a,O)&&P++,W.isDark(a+1,O)&&P++,W.isDark(a,O+1)&&P++,W.isDark(a+1,O+1)&&P++,P==0||P==4)g+=3;for(a=0;a<p;a++)for(O=0;O<p-6;O++)W.isDark(a,O)&&!W.isDark(a,O+1)&&W.isDark(a,O+2)&&W.isDark(a,O+3)&&W.isDark(a,O+4)&&!W.isDark(a,O+5)&&
W.isDark(a,O+6)&&(g+=40);for(O=0;O<p;O++)for(a=0;a<p-6;a++)W.isDark(a,O)&&!W.isDark(a+1,O)&&W.isDark(a+2,O)&&W.isDark(a+3,O)&&W.isDark(a+4,O)&&!W.isDark(a+5,O)&&W.isDark(a+6,O)&&(g+=40);for(O=P=0;O<p;O++)for(a=0;a<p;a++)W.isDark(a,O)&&P++;W=g+=Math.abs(100*P/p/p-50)/5*10;if(c==0||C>W)C=W,X=c}return X},mLt=[[],
[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]],Rl=function(D){for(var C=0;D!=0;)C++,D>>>=1;return C},Y7Y=function(D,C,X){switch(D){case 0:return(C+X)%2==0;
case 1:return C%2==0;case 2:return X%3==0;case 3:return(C+X)%3==0;case 4:return(Math.floor(C/2)+Math.floor(X/3))%2==0;case 5:return C*X%2+C*X%3==0;case 6:return(C*X%2+C*X%3)%2==0;case 7:return(C*X%3+(C+X)%2)%2==0;default:throw Error("Mk`"+D);}},EZU=function(D,C){if(1<=C&&C<10)switch(D){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Nk`"+D);}else if(C<27)switch(D){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Nk`"+D);}else if(C<41)switch(D){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Nk`"+D);}else throw Error("Ok`"+C);},nZt=function(D){if(D<1)throw Error("Pk`"+D);
return yy6[D]},NpU=function(D){for(;D<0;)D+=255;
for(;D>=256;)D-=255;return lN[D]},lN=Array(256),yy6=Array(256),wm3=0;wm3<8;wm3++)lN[wm3]=1<<wm3;
for(var Dl=8;Dl<256;Dl++)lN[Dl]=lN[Dl-4]^lN[Dl-5]^lN[Dl-6]^lN[Dl-8];for(var FVN=0;FVN<255;FVN++)yy6[lN[FVN]]=FVN;tQ.prototype.get=function(D){return this.num[D]};
tQ.prototype.getLength=function(){return this.num.length};
tQ.prototype.multiply=function(D){for(var C=Array(this.getLength()+D.getLength()-1),X=0;X<this.getLength();X++)for(var c=0;c<D.getLength();c++)C[X+c]^=NpU(nZt(this.get(X))+nZt(D.get(c)));return new tQ(C,0)};
tQ.prototype.mod=function(D){if(this.getLength()-D.getLength()<0)return this;for(var C=nZt(this.get(0))-nZt(D.get(0)),X=Array(this.getLength()),c=0;c<this.getLength();c++)X[c]=this.get(c);for(c=0;c<D.getLength();c++)X[c]^=NpU(nZt(D.get(c))+C);return(new tQ(X,0)).mod(D)};
var Z46=[[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]],efP=function(D,C){switch(C){case 1:return Z46[(D-1)*4];case 0:return Z46[(D-1)*4+1];case 3:return Z46[(D-1)*4+2];case 2:return Z46[(D-1)*4+3]}};
ymY.prototype.get=function(D){return(this.buffer[Math.floor(D/8)]>>>7-D%8&1)==1};
ymY.prototype.put=function(D,C){for(var X=0;X<C;X++)tOp(this,(D>>>C-X-1&1)==1)};
var tOp=function(D,C){var X=Math.floor(D.length/8);D.buffer.length<=X&&D.buffer.push(0);C&&(D.buffer[X]|=128>>>D.length%8);D.length++},dw=[[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]],Fdp=function(){var D=function(C,X){this.JSC$20144__el=C;this.JSC$20144__htOption=X};
D.prototype.draw=function(C){function X(k,u){k=document.createElementNS("http://www.w3.org/2000/svg",k);for(var Q in u)u.hasOwnProperty(Q)&&(Q==="href"?_.HHk(k,u[Q]):_.IG([_.$X(Bp1),_.$X(b41),_.$X(ryw),_.$X(KVU),_.$X(hfw),_.$X(xL1),_.$X(LVt)],k,Q,u[Q]));return k}
var c=this.JSC$20144__htOption,W=this.JSC$20144__el,p=C.moduleCount;this.clear();var g=X("svg",{viewBox:"0 0 "+String(p)+" "+String(p),width:"100%",height:"100%",fill:c.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});W.appendChild(g);g.appendChild(X("rect",{fill:c.colorLight,width:"100%",height:"100%"}));g.appendChild(X("rect",{fill:c.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<p;a++)for(var O=0;O<p;O++)if(C.isDark(a,O)){var P=X("use",{x:String(a),y:String(O),href:"#template"});
g.appendChild(P)}};
D.prototype.clear=function(){for(;this.JSC$20144__el.hasChildNodes();)this.JSC$20144__el.removeChild(this.JSC$20144__el.lastChild)};
return D}(),wCP=document.documentElement.tagName.toLowerCase()==="svg"?Fdp:typeof CanvasRenderingContext2D!="undefined"?function(){var D=function(C,X){this._bIsPainted=!1;
nf6();this.JSC$20144__htOption=X;this._elCanvas=document.createElement("canvas");this._elCanvas.width=X.width;this._elCanvas.height=X.height;C.appendChild(this._elCanvas);this.JSC$20144__el=C;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$20144__el.appendChild(this._elImage);this._bSupportDataURI=null};
D.prototype._onMakeImage=function(){var C=this._elCanvas.toDataURL("image/png");this._elImage.src=C;this._elImage.style.display="block";this._elCanvas.style.display="none"};
D.prototype._safeSetDataURI=function(C,X){var c=this;c._fFail=X;c._fSuccess=C;c._bSupportDataURI===null?(C=_.mv("IMG"),X=function(){c._bSupportDataURI=!1;c._fFail&&c._fFail.call(c)},C.onabort=X,C.onerror=X,C.onload=function(){c._bSupportDataURI=!0;
c._fSuccess&&c._fSuccess.call(c)},C.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):c._bSupportDataURI===!0&&c._fSuccess?c._fSuccess.call(c):c._bSupportDataURI===!1&&c._fFail&&c._fFail.call(c)};
D.prototype.draw=function(C){var X=this._oContext,c=this.JSC$20144__htOption,W=C.moduleCount,p=c.width/W,g=c.height/W,a=Math.round(p),O=Math.round(g);this._elImage.style.display="none";this.clear();for(var P=0;P<W;P++)for(var k=0;k<W;k++){var u=C.isDark(P,k),Q=k*p,B=P*g;X.strokeStyle=u?c.colorDark:c.colorLight;X.lineWidth=1;X.fillStyle=u?c.colorDark:c.colorLight;X.fillRect(Q,B,p,g);X.strokeRect(Math.floor(Q)+.5,Math.floor(B)+.5,a,O);X.strokeRect(Math.ceil(Q)-.5,Math.ceil(B)-.5,a,O)}this._bIsPainted=
!0};
D.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
D.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
D.prototype.round=function(C){return C?Math.floor(C*1E3)/1E3:C};
return D}():function(){var D=function(C,X){this.JSC$20144__el=C;
this.JSC$20144__htOption=X};
D.prototype.draw=function(C){for(var X=this.JSC$20144__htOption,c=this.JSC$20144__el,W=C.moduleCount,p=Math.floor(X.width/W),g=Math.floor(X.height/W),a=['<table style="border:0;border-collapse:collapse;">'],O=0;O<W;O++){a.push("<tr>");for(var P=0;P<W;P++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+p+"px;height:"+g+"px;background-color:"+(C.isDark(O,P)?X.colorDark:X.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>");C=a.join("");C=_.Coc(_.cp5,C);_.aG(c,C);
C=c.childNodes[0];W=(X.width-C.offsetWidth)/2;p=(X.height-C.offsetHeight)/2;W>0&&p>0&&(C.style.margin=p+"px "+W+"px")};
D.prototype.clear=function(){this.JSC$20144__el.textContent=""};
return D}();
TEt.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20147__android||this.JSC$20147__android>=3)&&this._oDrawing.makeImage()};
TEt.prototype.clear=function(){this._oDrawing.clear()};
_.co.QRCode=TEt;var Gl1={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var VO3=function(){};
VO3.prototype.stringify=function(D){return _.co.JSON.stringify(D,void 0)};
VO3.prototype.parse=function(D){return _.co.JSON.parse(D,void 0)};var Tpk=function(){_.eL.call(this,"z")};
_.WT(Tpk,_.eL);var H41=function(){_.eL.call(this,"y")};
_.WT(H41,_.eL);var JyY=null,zfP=function(){return JyY=JyY||new _.yg},jsp=function(D){_.eL.call(this,"serverreachability",D)};
_.WT(jsp,_.eL);var MOY=function(D){var C=zfP();C.dispatchEvent(new jsp(C,D))},q7k=function(D,C){_.eL.call(this,"statevent",D);
this.stat=C};
_.WT(q7k,_.eL);var CM=function(D){var C=zfP();C.dispatchEvent(new q7k(C,D))},fek=function(D,C,X,c){_.eL.call(this,"timingevent",D);
this.size=C;this.rtt=X;this.retries=c};
_.WT(fek,_.eL);var dLP=function(D,C,X){var c=zfP();c.dispatchEvent(new fek(c,D,C,X))},Rfw=function(D,C){if(typeof D!=="function")throw Error("Tk");
return _.co.setTimeout(function(){D()},C)};var XX=function(){this.redactEnabled_=!0};
XX.prototype.disableRedact=function(){this.redactEnabled_=!1};
var leG=function(D,C,X,c,W,p){D.info(function(){if(D.redactEnabled_)if(p){var g="";for(var a=p.split("&"),O=0;O<a.length;O++){var P=a[O].split("=");if(P.length>1){var k=P[0];P=P[1];var u=k.split("_");g=u.length>=2&&u[1]=="type"?g+(k+"="+P+"&"):g+(k+"=redacted&")}}}else g=null;else g=p;return"XMLHTTP REQ ("+c+") [attempt "+W+"]: "+C+"\n"+X+"\n"+g})},DM3=function(D,C,X,c,W,p,g){D.info(function(){return"XMLHTTP RESP ("+c+") [ attempt "+W+"]: "+C+"\n"+X+"\n"+p+" "+g})},cD=function(D,C,X,c){D.info(function(){return"XMLHTTP TEXT ("+
C+"): "+C96(D,X)+(c?" "+c:"")})},Xkk=function(D,C){D.info(function(){return"TIMEOUT: "+C})};
XX.prototype.debug=function(){};
XX.prototype.info=function(){};
XX.prototype.warning=function(){};
var C96=function(D,C){if(!D.redactEnabled_)return C;if(!C)return null;try{var X=JSON.parse(C);if(X)for(var c=0;c<X.length;c++)if(Array.isArray(X[c])){var W=X[c];if(!(W.length<2)){var p=W[1];if(Array.isArray(p)&&!(p.length<1)){var g=p[0];if(g!="noop"&&g!="stop"&&g!="close")for(var a=1;a<p.length;a++)p[a]=""}}}return(0,_.Tg)(X)}catch(O){return D.debug("Exception parsing expected JS array - probably was not JS"),C}};var oP=function(D,C,X,c,W){this.JSC$20169_channel_=D;this.JSC$20169_channelDebug_=C;this.sid_=X;this.JSC$20169_rid_=c;this.JSC$20169_retryId_=W||1;this.JSC$20169_eventHandler_=new _.bQ(this);this.timeout_=45E3;this.JSC$20169_extraHeaders_=null;this.JSC$20169_successful_=!1;this.JSC$20169_postData_=this.JSC$20169_requestUri_=this.JSC$20169_baseUri_=this.JSC$20169_type_=this.JSC$20169_requestStartTime_=this.JSC$20169_watchDogTimeoutTime_=this.JSC$20169_watchDogTimerId_=null;this.JSC$20169_pendingMessages_=
[];this.JSC$20169_xmlHttp_=null;this.JSC$20169_xmlHttpChunkStart_=0;this.JSC$20169_lastError_=this.JSC$20169_verb_=null;this.JSC$20169_lastStatusCode_=-1;this.JSC$20169_cancelled_=!1;this.JSC$20169_readyStateChangeThrottleMs_=0;this.JSC$20169_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new c$1},c$1=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},oi6=function(D,C){switch(D){case 0:return"Non-200 return code ("+C+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},WOo={},pkt={};
oP.prototype.setTimeout=function(D){this.timeout_=D};
var UMX=function(D,C,X){D.JSC$20169_type_=1;D.JSC$20169_baseUri_=_.bF(C.clone());D.JSC$20169_postData_=X;D.decodeChunks_=!0;Swt(D,null)},Swt=function(D,C){D.JSC$20169_requestStartTime_=Date.now();
gi1(D);D.JSC$20169_requestUri_=D.JSC$20169_baseUri_.clone();Y9G(D.JSC$20169_requestUri_,"t",D.JSC$20169_retryId_);D.JSC$20169_xmlHttpChunkStart_=0;var X=D.JSC$20169_channel_.JSC$20188_supportsCrossDomainXhrs_;D.fetchResponseState_=new c$1;D.JSC$20169_xmlHttp_=aY6(D.JSC$20169_channel_,X?C:null,!D.JSC$20169_postData_);D.JSC$20169_readyStateChangeThrottleMs_>0&&(D.JSC$20169_readyStateChangeThrottle_=new _.Al((0,_.wo)(D.JSC$20173_xmlHttpHandler_,D,D.JSC$20169_xmlHttp_),D.JSC$20169_readyStateChangeThrottleMs_));
D.JSC$20169_eventHandler_.listen(D.JSC$20169_xmlHttp_,"readystatechange",D.JSC$20173_readyStateChangeHandler_);C=D.JSC$20169_extraHeaders_?_.ZI.clone(D.JSC$20169_extraHeaders_):{};D.JSC$20169_postData_?(D.JSC$20169_verb_||(D.JSC$20169_verb_="POST"),C["Content-Type"]="application/x-www-form-urlencoded",D.JSC$20169_xmlHttp_.send(D.JSC$20169_requestUri_,D.JSC$20169_verb_,D.JSC$20169_postData_,C)):(D.JSC$20169_verb_="GET",D.JSC$20169_xmlHttp_.send(D.JSC$20169_requestUri_,D.JSC$20169_verb_,null,C));MOY(1);
leG(D.JSC$20169_channelDebug_,D.JSC$20169_verb_,D.JSC$20169_requestUri_,D.JSC$20169_rid_,D.JSC$20169_retryId_,D.JSC$20169_postData_)};
oP.prototype.JSC$20173_readyStateChangeHandler_=function(D){D=D.target;var C=this.JSC$20169_readyStateChangeThrottle_;C&&_.J3(D)==3?(this.JSC$20169_channelDebug_.debug("Throttling readystatechange."),C.fire()):this.JSC$20173_xmlHttpHandler_(D)};
oP.prototype.JSC$20173_xmlHttpHandler_=function(D){try{D==this.JSC$20169_xmlHttp_?IYP(this):this.JSC$20169_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(C){this.JSC$20169_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),OzP(this)}finally{}};
var IYP=function(D){var C=_.J3(D.JSC$20169_xmlHttp_),X=D.JSC$20169_xmlHttp_.JSC$9961_lastErrorCode_,c=D.JSC$20169_xmlHttp_.getStatus();if(!(C<3||C==3&&!OzP(D))){D.JSC$20169_cancelled_||C!=4||X==7||(X==8||c<=0?MOY(3):MOY(2));A$Y(D);var W=D.JSC$20169_xmlHttp_.getStatus();D.JSC$20169_lastStatusCode_=W;X=P9N(D);OzP(D)||D.JSC$20169_channelDebug_.debug(function(){return"No response text for uri "+D.JSC$20169_requestUri_+" status "+W});
D.JSC$20169_successful_=W==200;DM3(D.JSC$20169_channelDebug_,D.JSC$20169_verb_,D.JSC$20169_requestUri_,D.JSC$20169_rid_,D.JSC$20169_retryId_,C,W);if(D.JSC$20169_successful_){if(D.decodeInitialResponse_&&!D.initialResponseDecoded_)if(c=$Mk(D))cD(D.JSC$20169_channelDebug_,D.JSC$20169_rid_,c,"Initial handshake response via X-HTTP-Initial-Response"),D.initialResponseDecoded_=!0,vi3(D,c);else{D.JSC$20169_successful_=!1;D.JSC$20169_lastError_=3;CM(12);D.JSC$20169_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
D.JSC$20169_rid_+")");WD(D);izG(D);return}D.decodeChunks_?kYU(D,C,X):(cD(D.JSC$20169_channelDebug_,D.JSC$20169_rid_,X,null),vi3(D,X));C==4&&WD(D);D.JSC$20169_successful_&&!D.JSC$20169_cancelled_&&(C==4?u51(D.JSC$20169_channel_,D):(D.JSC$20169_successful_=!1,gi1(D)))}else tPN(D.JSC$20169_xmlHttp_),W==400&&X.indexOf("Unknown SID")>0?(D.JSC$20169_lastError_=3,CM(12),D.JSC$20169_channelDebug_.warning("XMLHTTP Unknown SID ("+D.JSC$20169_rid_+")")):(D.JSC$20169_lastError_=0,CM(13),D.JSC$20169_channelDebug_.warning("XMLHTTP Bad status "+
W+" ("+D.JSC$20169_rid_+")")),WD(D),izG(D)}},$Mk=function(D){return D.JSC$20169_xmlHttp_&&(D=BU3(D.JSC$20169_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Um(D)?D:null},P9N=function(D){if(!Q1X(D))return D.JSC$20169_xmlHttp_.getResponseText();
var C=D.JSC$20169_xmlHttp_.getResponse();if(C==="")return"";var X="",c=C.length,W=_.J3(D.JSC$20169_xmlHttp_)==4;if(!D.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return WD(D),izG(D),"";D.fetchResponseState_.textDecoder=new _.co.TextDecoder}for(var p=0;p<c;p++)D.fetchResponseState_.responseArrivedForFetch=!0,X+=D.fetchResponseState_.textDecoder.decode(C[p],{stream:!(W&&p==c-1)});C.length=0;D.fetchResponseState_.responseBuffer+=X;D.JSC$20169_xmlHttpChunkStart_=0;return D.fetchResponseState_.responseBuffer},
OzP=function(D){return D.JSC$20169_xmlHttp_?D.fetchResponseState_.responseArrivedForFetch?!0:!(!D.JSC$20169_xmlHttp_.getResponseText()&&!D.JSC$20169_xmlHttp_.getResponse()):!1},Q1X=function(D){return D.JSC$20169_xmlHttp_?D.JSC$20169_verb_=="GET"&&D.JSC$20169_type_!=2&&D.JSC$20169_channel_.usesFetchStreams_:!1},kYU=function(D,C,X){for(var c=!0,W;!D.JSC$20169_cancelled_&&D.JSC$20169_xmlHttpChunkStart_<X.length;)if(W=ByP(D,X),W==pkt){C==4&&(D.JSC$20169_lastError_=4,CM(14),c=!1);
cD(D.JSC$20169_channelDebug_,D.JSC$20169_rid_,null,"[Incomplete Response]");break}else if(W==WOo){D.JSC$20169_lastError_=4;CM(15);cD(D.JSC$20169_channelDebug_,D.JSC$20169_rid_,X,"[Invalid Chunk]");c=!1;break}else cD(D.JSC$20169_channelDebug_,D.JSC$20169_rid_,W,null),vi3(D,W);Q1X(D)&&D.JSC$20169_xmlHttpChunkStart_!=0&&(D.fetchResponseState_.responseBuffer=D.fetchResponseState_.responseBuffer.slice(D.JSC$20169_xmlHttpChunkStart_),D.JSC$20169_xmlHttpChunkStart_=0);C!=4||X.length!=0||D.fetchResponseState_.responseArrivedForFetch||
(D.JSC$20169_lastError_=1,CM(16),c=!1);D.JSC$20169_successful_=D.JSC$20169_successful_&&c;c?X.length>0&&!D.firstByteReceived_&&(D.firstByteReceived_=!0,C=D.JSC$20169_channel_,C.JSC$20188_backChannelRequest_==D&&C.detectBufferingProxy_&&!C.bpDetectionDone_&&(C.JSC$20188_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+X.length),bz1(C),C.bpDetectionDone_=!0,CM(11))):(cD(D.JSC$20169_channelDebug_,D.JSC$20169_rid_,X,"[Invalid Chunked Response]"),WD(D),izG(D))},ByP=function(D,
C){var X=D.JSC$20169_xmlHttpChunkStart_,c=C.indexOf("\n",X);
if(c==-1)return pkt;X=Number(C.substring(X,c));if(isNaN(X))return WOo;c+=1;if(c+X>C.length)return pkt;C=C.slice(c,c+X);D.JSC$20169_xmlHttpChunkStart_=c+X;return C};
oP.prototype.cancel=function(){this.JSC$20169_cancelled_=!0;WD(this)};
var gi1=function(D){D.JSC$20169_watchDogTimeoutTime_=Date.now()+D.timeout_;r$6(D,D.timeout_)},r$6=function(D,C){if(D.JSC$20169_watchDogTimerId_!=null)throw Error("Uk");
D.JSC$20169_watchDogTimerId_=Rfw((0,_.wo)(D.JSC$20173_onWatchDogTimeout_,D),C)},A$Y=function(D){D.JSC$20169_watchDogTimerId_&&(_.co.clearTimeout(D.JSC$20169_watchDogTimerId_),D.JSC$20169_watchDogTimerId_=null)};
oP.prototype.JSC$20173_onWatchDogTimeout_=function(){this.JSC$20169_watchDogTimerId_=null;var D=Date.now();D-this.JSC$20169_watchDogTimeoutTime_>=0?(Xkk(this.JSC$20169_channelDebug_,this.JSC$20169_requestUri_),this.JSC$20169_type_!=2&&(MOY(3),CM(17)),WD(this),this.JSC$20169_lastError_=2,izG(this)):(this.JSC$20169_channelDebug_.warning("WatchDog timer called too early"),r$6(this,this.JSC$20169_watchDogTimeoutTime_-D))};
var izG=function(D){D.JSC$20169_channel_.state_==0||D.JSC$20169_cancelled_||u51(D.JSC$20169_channel_,D)},WD=function(D){A$Y(D);
_.Ue(D.JSC$20169_readyStateChangeThrottle_);D.JSC$20169_readyStateChangeThrottle_=null;D.JSC$20169_eventHandler_.removeAll();if(D.JSC$20169_xmlHttp_){var C=D.JSC$20169_xmlHttp_;D.JSC$20169_xmlHttp_=null;C.abort();C.dispose()}};
oP.prototype.getLastError=function(){return this.JSC$20169_lastError_};
var vi3=function(D,C){try{var X=D.JSC$20169_channel_;if(X.state_!=0&&(X.JSC$20188_backChannelRequest_==D||KOp(X.forwardChannelRequestPool_,D)))if(!D.initialResponseDecoded_&&KOp(X.forwardChannelRequestPool_,D)&&X.state_==3){try{var c=X.wireCodec_.JSC$20183_parser_.parse(C)}catch(a){c=null}if(Array.isArray(c)&&c.length==3){C=c;if(C[0]==0)a:if(X.JSC$20188_channelDebug_.debug("Server claims our backchannel is missing."),X.JSC$20188_backChannelTimerId_)X.JSC$20188_channelDebug_.debug("But we are currently starting the request.");
else{if(X.JSC$20188_backChannelRequest_)if(X.JSC$20188_backChannelRequest_.JSC$20169_requestStartTime_+3E3<D.JSC$20169_requestStartTime_)hSG(X),xMN(X);else break a;else X.JSC$20188_channelDebug_.warning("We do not have a BackChannel established");LON(X);CM(18)}else{X.JSC$20188_lastPostResponseArrayId_=C[1];var W=X.JSC$20188_lastPostResponseArrayId_-X.JSC$20188_lastArrayId_;if(0<W){var p=C[2];X.JSC$20188_channelDebug_.debug(p+" bytes (in "+W+" arrays) are outstanding on the BackChannel");p<37500&&
X.enableStreaming_&&X.JSC$20188_backChannelRetryCount_==0&&!X.JSC$20188_deadBackChannelTimerId_&&(X.JSC$20188_deadBackChannelTimerId_=Rfw((0,_.wo)(X.JSC$20190_onBackChannelDead_,X),6E3))}}if(s13(X.forwardChannelRequestPool_)<=1&&X.forwardChannelFlushedCallback_){try{X.forwardChannelFlushedCallback_()}catch(a){}X.forwardChannelFlushedCallback_=void 0}}else X.JSC$20188_channelDebug_.debug("Bad POST response data returned"),pM(X,11)}else if((D.initialResponseDecoded_||X.JSC$20188_backChannelRequest_==
D)&&hSG(X),!_.Um(C)){var g=X.wireCodec_.JSC$20183_parser_.parse(C);X.onInput_(g,D)}MOY(4)}catch(a){}};var mMP=function(D,C){this.JSC$20176_mapId=D;this.map=C;this.context=null};var eSU=function(D){this.maxPoolSizeConfigured_=D||10;_.co.PerformanceNavigationTiming?(D=_.co.performance.getEntriesByType("navigation"),D=D.length>0&&(D[0].nextHopProtocol=="hq"||D[0].nextHopProtocol=="h2")):D=!!(_.co.chrome&&_.co.chrome.loadTimes&&_.co.chrome.loadTimes()&&_.co.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20179_maxSize_=D?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20179_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20179_request_=null;this.JSC$20179_pendingMessages_=
[]},Eip=function(D){return D.JSC$20179_request_?!0:D.requestPool_?D.requestPool_.size>=D.JSC$20179_maxSize_:!1},s13=function(D){return D.JSC$20179_request_?1:D.requestPool_?D.requestPool_.size:0},KOp=function(D,C){return D.JSC$20179_request_?D.JSC$20179_request_==C:D.requestPool_?D.requestPool_.has(C):!1},tuG=function(D,C){D.requestPool_?D.requestPool_.add(C):D.JSC$20179_request_=C},NyG=function(D,C){D.JSC$20179_request_&&D.JSC$20179_request_==C?D.JSC$20179_request_=null:D.requestPool_&&D.requestPool_.has(C)&&
D.requestPool_.delete(C)};
eSU.prototype.cancel=function(){this.JSC$20179_pendingMessages_=YwY(this);if(this.JSC$20179_request_)this.JSC$20179_request_.cancel(),this.JSC$20179_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var D=_.U(this.requestPool_.values()),C=D.next();!C.done;C=D.next())C.value.cancel();this.requestPool_.clear()}};
var YwY=function(D){if(D.JSC$20179_request_!=null)return D.JSC$20179_pendingMessages_.concat(D.JSC$20179_request_.JSC$20169_pendingMessages_);if(D.requestPool_!=null&&D.requestPool_.size!==0){var C=D.JSC$20179_pendingMessages_;D=_.U(D.requestPool_.values());for(var X=D.next();!X.done;X=D.next())C=C.concat(X.value.JSC$20169_pendingMessages_);return C}return _.Ho(D.JSC$20179_pendingMessages_)},y$U=function(D,C){D.JSC$20179_pendingMessages_=D.JSC$20179_pendingMessages_.concat(C)};var ni1=function(D,C){var X=new XX;X.debug("TestLoadImage: loading "+D);if(_.co.Image){var c=new Image;c.onload=_.AZ(S7,X,"TestLoadImage: loaded",!0,C,c);c.onerror=_.AZ(S7,X,"TestLoadImage: error",!1,C,c);c.onabort=_.AZ(S7,X,"TestLoadImage: abort",!1,C,c);c.ontimeout=_.AZ(S7,X,"TestLoadImage: timeout",!1,C,c);_.co.setTimeout(function(){if(c.ontimeout)c.ontimeout()},1E4);
c.src=D}else C(!1)},wk1=function(D,C){var X=new XX,c=new AbortController,W=setTimeout(function(){c.abort();
S7(X,"TestPingServer: timeout",!1,C)},1E4);
fetch(D,{signal:c.signal}).then(function(p){clearTimeout(W);p.ok?S7(X,"TestPingServer: ok",!0,C):S7(X,"TestPingServer: server error",!1,C)}).catch(function(){clearTimeout(W);
S7(X,"TestPingServer: error",!1,C)})},S7=function(D,C,X,c,W){try{D.debug(C),W&&(W.onload=null,W.onerror=null,W.onabort=null,W.ontimeout=null),c(X)}catch(p){}};var FO1=function(){this.JSC$20183_parser_=new VO3};var ZzY=function(D,C,X){return X&&X.internalChannelParams?X.internalChannelParams[D]||C:C},Ul=function(D){this.serverVersion_=0;
this.JSC$20188_outgoingMaps_=[];this.JSC$20188_channelDebug_=new XX;this.JSC$20188_hostPrefix_=this.JSC$20188_backChannelUri_=this.JSC$20188_forwardChannelUri_=this.JSC$20188_path_=this.JSC$20188_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20188_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20188_extraHeaders_=null;this.JSC$20188_nextMapId_=this.JSC$20188_nextRid_=0;this.JSC$20188_failFast_=ZzY("failFast",!1,D);this.enableStreaming_=this.JSC$20188_deadBackChannelTimerId_=
this.JSC$20188_backChannelTimerId_=this.JSC$20188_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20188_lastPostResponseArrayId_=this.JSC$20188_lastArrayId_=-1;this.JSC$20188_backChannelAttemptId_=this.JSC$20188_backChannelRetryCount_=this.JSC$20188_forwardChannelRetryCount_=0;this.JSC$20188_baseRetryDelayMs_=ZzY("baseRetryDelayMs",5E3,D);this.JSC$20188_retryDelaySeedMs_=ZzY("retryDelaySeedMs",1E4,D);this.JSC$20188_forwardChannelMaxRetries_=
ZzY("forwardChannelMaxRetries",2,D);this.JSC$20188_forwardChannelRequestTimeoutMs_=ZzY("forwardChannelRequestTimeoutMs",2E4,D);this.JSC$20188_xmlHttpFactory_=D&&D.xmlHttpFactory||void 0;this.networkTestUrl_=D&&D.networkTestUrl||void 0;this.usesFetchStreams_=D&&D.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20188_supportsCrossDomainXhrs_=D&&D.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new eSU(D&&D.concurrentRequestLimit);this.wireCodec_=new FO1;
this.fastHandshake_=D&&D.fastHandshake||!1;this.encodeInitMessageHeaders_=D&&D.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20188_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=D&&D.blockingHandshake||!1;D&&D.disableRedact&&this.JSC$20188_channelDebug_.disableRedact();D&&D.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&D&&D.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;D&&D.longPollingTimeout&&D.longPollingTimeout>0&&(this.longPollingTimeout_=D.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Ul.prototype.JSC$20190_channelVersion_=8;Ul.prototype.state_=1;
Ul.prototype.connect=function(D,C,X,c){this.JSC$20188_channelDebug_.debug("connect()");CM(0);this.JSC$20188_path_=D;this.JSC$20188_extraParams_=C||{};X&&c!==void 0&&(this.JSC$20188_extraParams_.OSID=X,this.JSC$20188_extraParams_.OAID=c);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20188_channelDebug_.debug("connectChannel_()");D=GYG(this,null,this.JSC$20188_path_);this.JSC$20188_channelDebug_.debug("GetForwardChannelUri: "+D);this.JSC$20188_forwardChannelUri_=D;Vuk(this)};
Ul.prototype.disconnect=function(){this.JSC$20188_channelDebug_.debug("disconnect()");TyX(this);if(this.state_==3){var D=this.JSC$20188_nextRid_++,C=this.JSC$20188_forwardChannelUri_.clone();_.oA(C,"SID",this.sid_);_.oA(C,"RID",D);_.oA(C,"TYPE","terminate");HzP(this,C);D=new oP(this,this.JSC$20188_channelDebug_,this.sid_,D);D.JSC$20169_type_=2;D.JSC$20169_baseUri_=_.bF(C.clone());C=!1;if(_.co.navigator&&_.co.navigator.sendBeacon)try{C=_.co.navigator.sendBeacon(D.JSC$20169_baseUri_.toString(),"")}catch(X){}!C&&
_.co.Image&&((new Image).src=D.JSC$20169_baseUri_,C=!0);C||(D.JSC$20169_xmlHttp_=aY6(D.JSC$20169_channel_,null),D.JSC$20169_xmlHttp_.send(D.JSC$20169_baseUri_));D.JSC$20169_requestStartTime_=Date.now();gi1(D)}J$N(this)};
var xMN=function(D){D.JSC$20188_backChannelRequest_&&(bz1(D),D.JSC$20188_backChannelRequest_.cancel(),D.JSC$20188_backChannelRequest_=null)},TyX=function(D){xMN(D);
D.JSC$20188_backChannelTimerId_&&(_.co.clearTimeout(D.JSC$20188_backChannelTimerId_),D.JSC$20188_backChannelTimerId_=null);hSG(D);D.forwardChannelRequestPool_.cancel();D.JSC$20188_forwardChannelTimerId_&&(typeof D.JSC$20188_forwardChannelTimerId_==="number"&&_.co.clearTimeout(D.JSC$20188_forwardChannelTimerId_),D.JSC$20188_forwardChannelTimerId_=null)};
Ul.prototype.getState=function(){return this.state_};
var Vuk=function(D){Eip(D.forwardChannelRequestPool_)||D.JSC$20188_forwardChannelTimerId_||(D.JSC$20188_forwardChannelTimerId_=!0,_.wk(D.JSC$20190_onStartForwardChannelTimer_,D),D.JSC$20188_forwardChannelRetryCount_=0)},j1P=function(D,C){if(s13(D.forwardChannelRequestPool_)>=D.forwardChannelRequestPool_.JSC$20179_maxSize_-(D.JSC$20188_forwardChannelTimerId_?1:0))return!1;
if(D.JSC$20188_forwardChannelTimerId_)return D.JSC$20188_channelDebug_.debug("Use the retry request that is already scheduled."),D.JSC$20188_outgoingMaps_=C.JSC$20169_pendingMessages_.concat(D.JSC$20188_outgoingMaps_),!0;if(D.state_==1||D.state_==2||D.JSC$20188_forwardChannelRetryCount_>=(D.JSC$20188_failFast_?0:D.JSC$20188_forwardChannelMaxRetries_))return!1;D.JSC$20188_channelDebug_.debug("Going to retry POST");D.JSC$20188_forwardChannelTimerId_=Rfw((0,_.wo)(D.JSC$20190_onStartForwardChannelTimer_,
D,C),zSt(D,D.JSC$20188_forwardChannelRetryCount_));D.JSC$20188_forwardChannelRetryCount_++;return!0};
Ul.prototype.JSC$20190_onStartForwardChannelTimer_=function(D){if(this.JSC$20188_forwardChannelTimerId_)if(this.JSC$20188_forwardChannelTimerId_=null,this.JSC$20188_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!D){this.JSC$20188_channelDebug_.debug("open_()");this.JSC$20188_nextRid_=Math.floor(Math.random()*1E5);D=this.JSC$20188_nextRid_++;var C=new oP(this,this.JSC$20188_channelDebug_,"",D),X=this.JSC$20188_extraHeaders_;this.initHeaders_&&(X?(X=_.ZI.clone(X),_.ZI.extend(X,this.initHeaders_)):
X=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(C.JSC$20169_extraHeaders_=X,X=null);var c;if(this.fastHandshake_)a:{for(var W=c=0;W<this.JSC$20188_outgoingMaps_.length;W++){b:{var p=this.JSC$20188_outgoingMaps_[W];if("__data__"in p.map&&(p=p.map.__data__,typeof p==="string")){p=p.length;break b}p=void 0}if(p===void 0)break;c+=p;if(c>4096){c=W;break a}if(c===4096||W===this.JSC$20188_outgoingMaps_.length-1){c=W+1;break a}}c=1E3}else c=1E3;c=Muw(this,C,c);
W=this.JSC$20188_forwardChannelUri_.clone();_.oA(W,"RID",D);_.oA(W,"CVER",22);this.httpSessionIdParam_&&_.oA(W,"X-HTTP-Session-Id",this.httpSessionIdParam_);HzP(this,W);X&&(this.encodeInitMessageHeaders_?c="headers="+_.WK(MBX(X))+"&"+c:this.httpHeadersOverwriteParam_&&qvw(W,this.httpHeadersOverwriteParam_,X));tuG(this.forwardChannelRequestPool_,C);this.blockingHandshake_&&_.oA(W,"TYPE","init");this.fastHandshake_?(_.oA(W,"$req",c),_.oA(W,"SID","null"),C.decodeInitialResponse_=!0,UMX(C,W,null)):UMX(C,
W,c);this.state_=2}}else this.state_==3&&(D?qw1(this,D):this.JSC$20188_outgoingMaps_.length==0?this.JSC$20188_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Eip(this.forwardChannelRequestPool_)||(qw1(this),this.JSC$20188_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var qw1=function(D,C){var X;C?X=C.JSC$20169_rid_:X=D.JSC$20188_nextRid_++;var c=D.JSC$20188_forwardChannelUri_.clone();_.oA(c,"SID",D.sid_);_.oA(c,"RID",X);_.oA(c,"AID",D.JSC$20188_lastArrayId_);HzP(D,c);D.httpHeadersOverwriteParam_&&D.JSC$20188_extraHeaders_&&qvw(c,D.httpHeadersOverwriteParam_,D.JSC$20188_extraHeaders_);X=new oP(D,D.JSC$20188_channelDebug_,D.sid_,X,D.JSC$20188_forwardChannelRetryCount_+1);D.httpHeadersOverwriteParam_===null&&(X.JSC$20169_extraHeaders_=D.JSC$20188_extraHeaders_);
C&&(D.JSC$20188_outgoingMaps_=C.JSC$20169_pendingMessages_.concat(D.JSC$20188_outgoingMaps_));C=Muw(D,X,1E3);X.setTimeout(Math.round(D.JSC$20188_forwardChannelRequestTimeoutMs_*.5)+Math.round(D.JSC$20188_forwardChannelRequestTimeoutMs_*.5*Math.random()));tuG(D.forwardChannelRequestPool_,X);UMX(X,c,C)},HzP=function(D,C){D.JSC$20188_extraParams_&&_.ZI.forEach(D.JSC$20188_extraParams_,function(X,c){_.oA(C,c,X)});
D.handler_&&_.ZI.forEach({},function(X,c){_.oA(C,c,X)})},Muw=function(D,C,X){X=Math.min(D.JSC$20188_outgoingMaps_.length,X);
var c=D.handler_?(0,_.wo)(D.handler_.JSC$20194_badMapError,D.handler_,D):null;a:{for(var W=D.JSC$20188_outgoingMaps_,p=-1;;){var g=["count="+X];p==-1?X>0?(p=W[0].JSC$20176_mapId,g.push("ofs="+p)):p=0:g.push("ofs="+p);for(var a=!0,O=0;O<X;O++){var P=W[O].JSC$20176_mapId,k=W[O].map;P-=p;if(P<0)p=Math.max(0,W[O].JSC$20176_mapId-100),a=!1;else try{P="req"+P+"_"||"";try{var u=k instanceof Map?k:Object.entries(k);for(var Q=_.U(u),B=Q.next();!B.done;B=Q.next()){var K=_.U(B.value),L=K.next().value,t=K.next().value,
Y=t;_.MR(t)&&(Y=(0,_.Tg)(t));g.push(P+L+"="+encodeURIComponent(Y))}}catch(y){throw g.push(P+"type="+encodeURIComponent("_badmap")),y;}}catch(y){c&&c(k)}}if(a){u=g.join("&");break a}}u=void 0}D=D.JSC$20188_outgoingMaps_.splice(0,X);C.JSC$20169_pendingMessages_=D;return u},fYt=function(D){D.JSC$20188_backChannelRequest_||D.JSC$20188_backChannelTimerId_||(D.JSC$20188_backChannelAttemptId_=1,_.wk(D.JSC$20190_onStartBackChannelTimer_,D),D.JSC$20188_backChannelRetryCount_=0)},LON=function(D){if(D.JSC$20188_backChannelRequest_||
D.JSC$20188_backChannelTimerId_||D.JSC$20188_backChannelRetryCount_>=3)return!1;
D.JSC$20188_channelDebug_.debug("Going to retry GET");D.JSC$20188_backChannelAttemptId_++;D.JSC$20188_backChannelTimerId_=Rfw((0,_.wo)(D.JSC$20190_onStartBackChannelTimer_,D),zSt(D,D.JSC$20188_backChannelRetryCount_));D.JSC$20188_backChannelRetryCount_++;return!0};
Ul.prototype.JSC$20190_onStartBackChannelTimer_=function(){this.JSC$20188_backChannelTimerId_=null;dM1(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20188_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20188_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20188_backChannelRequest_+" "+this.handshakeRttMs_);else{var D=4*this.handshakeRttMs_;this.JSC$20188_channelDebug_.info("BP detection timer enabled: "+D);this.bpDetectionTimerId_=Rfw((0,_.wo)(this.onBpDetectionTimer_,
this),D)}};
Ul.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20188_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20188_backChannelRequest_.JSC$20169_xmlHttp_!=null){var D=this.JSC$20188_backChannelRequest_.JSC$20169_xmlHttp_.getResponseText();D&&this.JSC$20188_channelDebug_.warning("Timer should have been cancelled : "+D)}this.JSC$20188_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;CM(10);xMN(this);dM1(this)}else this.JSC$20188_channelDebug_.warning("Invalid operation.")};
var bz1=function(D){D.bpDetectionTimerId_!=null&&(D.JSC$20188_channelDebug_.debug("Cancel the BP detection timer."),_.co.clearTimeout(D.bpDetectionTimerId_),D.bpDetectionTimerId_=null)},dM1=function(D){D.JSC$20188_channelDebug_.debug("Creating new HttpRequest");
D.JSC$20188_backChannelRequest_=new oP(D,D.JSC$20188_channelDebug_,D.sid_,"rpc",D.JSC$20188_backChannelAttemptId_);D.httpHeadersOverwriteParam_===null&&(D.JSC$20188_backChannelRequest_.JSC$20169_extraHeaders_=D.JSC$20188_extraHeaders_);D.JSC$20188_backChannelRequest_.JSC$20169_readyStateChangeThrottleMs_=0;var C=D.JSC$20188_backChannelUri_.clone();_.oA(C,"RID","rpc");_.oA(C,"SID",D.sid_);_.oA(C,"AID",D.JSC$20188_lastArrayId_);_.oA(C,"CI",D.enableStreaming_?"0":"1");!D.enableStreaming_&&D.longPollingTimeout_&&
_.oA(C,"TO",D.longPollingTimeout_);_.oA(C,"TYPE","xmlhttp");HzP(D,C);D.httpHeadersOverwriteParam_&&D.JSC$20188_extraHeaders_&&qvw(C,D.httpHeadersOverwriteParam_,D.JSC$20188_extraHeaders_);D.backChannelRequestTimeoutMs_&&D.JSC$20188_backChannelRequest_.setTimeout(D.backChannelRequestTimeoutMs_);var X=D.JSC$20188_backChannelRequest_,c=D.JSC$20188_hostPrefix_;X.JSC$20169_type_=1;X.JSC$20169_baseUri_=_.bF(C.clone());X.JSC$20169_postData_=null;X.decodeChunks_=!0;Swt(X,c);D.JSC$20188_channelDebug_.debug("New Request created")};
Ul.prototype.JSC$20190_onBackChannelDead_=function(){this.JSC$20188_deadBackChannelTimerId_!=null&&(this.JSC$20188_deadBackChannelTimerId_=null,xMN(this),LON(this),CM(19))};
var hSG=function(D){D.JSC$20188_deadBackChannelTimerId_!=null&&(_.co.clearTimeout(D.JSC$20188_deadBackChannelTimerId_),D.JSC$20188_deadBackChannelTimerId_=null)},u51=function(D,C){D.JSC$20188_channelDebug_.debug("Request complete");
var X=null;if(D.JSC$20188_backChannelRequest_==C){hSG(D);bz1(D);D.JSC$20188_backChannelRequest_=null;var c=2}else if(KOp(D.forwardChannelRequestPool_,C))X=C.JSC$20169_pendingMessages_,NyG(D.forwardChannelRequestPool_,C),c=1;else return;if(D.state_!=0)if(C.JSC$20169_successful_)c==1?(dLP(C.JSC$20169_postData_?C.JSC$20169_postData_.length:0,Date.now()-C.JSC$20169_requestStartTime_,D.JSC$20188_forwardChannelRetryCount_),Vuk(D)):fYt(D);else{var W=C.JSC$20169_lastStatusCode_,p=C.getLastError();if(p==3||
p==0&&W>0)D.JSC$20188_channelDebug_.debug("Not retrying due to error type"),W>200&&(D.errorResponseStatusCode_=C.JSC$20169_lastStatusCode_);else{D.JSC$20188_channelDebug_.debug(function(){return"Maybe retrying, last error: "+oi6(p,D.errorResponseStatusCode_)});
if(c==1&&j1P(D,C)||c==2&&LON(D))return;D.JSC$20188_channelDebug_.debug("Exceeded max number of retries")}X&&X.length>0&&y$U(D.forwardChannelRequestPool_,X);D.JSC$20188_channelDebug_.debug("Error: HTTP request failed");switch(p){case 1:pM(D,5);break;case 4:pM(D,10);break;case 3:pM(D,6);break;default:pM(D,2)}}},zSt=function(D,C){var X=D.JSC$20188_baseRetryDelayMs_+Math.floor(Math.random()*D.JSC$20188_retryDelaySeedMs_);
D.isActive()||(D.JSC$20188_channelDebug_.debug("Inactive channel"),X*=2);return X*C};
Ul.prototype.onInput_=function(D,C){for(var X=0;X<D.length;X++){var c=D[X],W=c[0];if(W<=this.JSC$20188_lastArrayId_)this.JSC$20188_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+W+", lastArrayId: "+this.JSC$20188_lastArrayId_);else if(W>this.JSC$20188_lastArrayId_+1&&this.JSC$20188_lastArrayId_>-1&&this.JSC$20188_channelDebug_.warning("Received non-consecutive message with arrayId: "+W+", lastArrayId: "+this.JSC$20188_lastArrayId_),this.JSC$20188_lastArrayId_=W,
c=c[1],this.state_==2)if(c[0]=="c"){this.sid_=c[1];this.JSC$20188_hostPrefix_=c[2];W=c[3];W!=null&&(this.JSC$20190_channelVersion_=W,this.JSC$20188_channelDebug_.info("VER="+this.JSC$20190_channelVersion_));W=c[4];W!=null&&(this.serverVersion_=W,this.JSC$20188_channelDebug_.info("SVER="+this.serverVersion_));c=c[5];c!=null&&typeof c==="number"&&c>0&&(this.backChannelRequestTimeoutMs_=c*=1.5,this.JSC$20188_channelDebug_.info("backChannelRequestTimeoutMs_="+c));if(c=C.JSC$20169_xmlHttp_){var p=BU3(c,
"X-Client-Wire-Protocol");p&&(W=this.forwardChannelRequestPool_,!W.requestPool_&&(_.am(p,"spdy")||_.am(p,"quic")||_.am(p,"h2"))&&(W.JSC$20179_maxSize_=W.maxPoolSizeConfigured_,W.requestPool_=new Set,W.JSC$20179_request_&&(tuG(W,W.JSC$20179_request_),W.JSC$20179_request_=null)));this.httpSessionIdParam_&&((c=BU3(c,"X-HTTP-Session-Id"))?(this.httpSessionId_=c,_.oA(this.JSC$20188_forwardChannelUri_,this.httpSessionIdParam_,c)):this.JSC$20188_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20194_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-C.JSC$20169_requestStartTime_,this.JSC$20188_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));c=C;W=GYG(this,this.JSC$20188_supportsCrossDomainXhrs_?this.JSC$20188_hostPrefix_:null,this.JSC$20188_path_);this.JSC$20188_channelDebug_.debug("GetBackChannelUri: "+W);this.JSC$20188_backChannelUri_=W;c.initialResponseDecoded_?(this.JSC$20188_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
NyG(this.forwardChannelRequestPool_,c),W=c,(p=this.backChannelRequestTimeoutMs_)&&W.setTimeout(p),W.JSC$20169_watchDogTimerId_&&(A$Y(W),gi1(W)),this.JSC$20188_backChannelRequest_=c):fYt(this);this.JSC$20188_outgoingMaps_.length>0&&Vuk(this)}else c[0]!="stop"&&c[0]!="close"||pM(this,7);else this.state_==3&&(c[0]=="stop"||c[0]=="close"?c[0]=="stop"?pM(this,7):this.disconnect():c[0]!="noop"&&this.handler_&&this.handler_.JSC$20194_channelHandleArray(c),this.JSC$20188_backChannelRetryCount_=0)}};
var pM=function(D,C){D.JSC$20188_channelDebug_.info("Error code "+C);if(C==2){var X=(0,_.wo)(D.testNetworkCallback_,D),c=D.networkTestUrl_,W=!c;c=new _.H7(c||"//www.google.com/images/cleardot.gif");_.co.location&&_.co.location.protocol=="http"||_.As(c,"https");_.bF(c);W?ni1(c.toString(),X):wk1(c.toString(),X)}else CM(2);D.onError_(C)};
Ul.prototype.testNetworkCallback_=function(D){D?(this.JSC$20188_channelDebug_.info("Successfully pinged google.com"),CM(2)):(this.JSC$20188_channelDebug_.info("Failed to ping google.com"),CM(1))};
Ul.prototype.onError_=function(D){this.JSC$20188_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$20194_channelError(D);J$N(this);TyX(this)};
var J$N=function(D){D.state_=0;D.nonAckedMapsAtChannelClose_=[];if(D.handler_){var C=YwY(D.forwardChannelRequestPool_);if(C.length!=0||D.JSC$20188_outgoingMaps_.length!=0)D.JSC$20188_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+C.length+", outgoing: "+D.JSC$20188_outgoingMaps_.length}),_.zJ(D.nonAckedMapsAtChannelClose_,C),_.zJ(D.nonAckedMapsAtChannelClose_,D.JSC$20188_outgoingMaps_),D.forwardChannelRequestPool_.JSC$20179_pendingMessages_.length=0,_.Ho(D.JSC$20188_outgoingMaps_),
D.JSC$20188_outgoingMaps_.length=0;
D.handler_.JSC$20194_channelClosed()}},RSw=function(D){if(D.state_==0)return D.nonAckedMapsAtChannelClose_;
var C=[];_.zJ(C,YwY(D.forwardChannelRequestPool_));_.zJ(C,D.JSC$20188_outgoingMaps_);return C},GYG=function(D,C,X){var c=_.Xg(X);
c.JSC$10197_domain_!=""?(C&&_.PP(c,C+"."+c.JSC$10197_domain_),_.$x(c,c.JSC$10197_port_)):(c=_.co.location,c=eUN(c.protocol,C?C+"."+c.hostname:c.hostname,+c.port,X));C=D.httpSessionIdParam_;X=D.httpSessionId_;C&&X&&_.oA(c,C,X);_.oA(c,"VER",D.JSC$20190_channelVersion_);HzP(D,c);return c},aY6=function(D,C,X){if(C&&!D.JSC$20188_supportsCrossDomainXhrs_)throw Error("Vk");
C=D.usesFetchStreams_&&!D.JSC$20188_xmlHttpFactory_?new _.HF(new H0P({streamBinaryChunks:X})):new _.HF(D.JSC$20188_xmlHttpFactory_);C.JSC$9961_withCredentials_=D.JSC$20188_supportsCrossDomainXhrs_;return C};
Ul.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var lYt=function(){};
_.S=lYt.prototype;_.S.JSC$20194_channelOpened=function(){};
_.S.JSC$20194_channelHandleArray=function(){};
_.S.JSC$20194_channelError=function(){};
_.S.JSC$20194_channelClosed=function(){};
_.S.isActive=function(){return!0};
_.S.JSC$20194_badMapError=function(){};var DxG=function(){},aP=function(D,C){_.yg.call(this);
this.JSC$20197_channel_=new Ul(C);this.JSC$20197_url_=D;this.messageUrlParams_=C&&C.messageUrlParams||null;D=C&&C.messageHeaders||null;C&&C.clientProtocolHeaderRequired&&(D?_.ZI.set(D,"X-Client-Protocol","webchannel"):D=_.ZI.create("X-Client-Protocol","webchannel"));this.JSC$20197_channel_.JSC$20188_extraHeaders_=D;D=C&&C.initMessageHeaders||null;C&&C.messageContentType&&(D?_.ZI.set(D,"X-WebChannel-Content-Type",C.messageContentType):D=_.ZI.create("X-WebChannel-Content-Type",C.messageContentType));
C&&C.clientProfile&&(D?_.ZI.set(D,"X-WebChannel-Client-Profile",C.clientProfile):D=_.ZI.create("X-WebChannel-Client-Profile",C.clientProfile));this.JSC$20197_channel_.initHeaders_=D;(D=C&&C.httpHeadersOverwriteParam)&&!_.Um(D)&&(this.JSC$20197_channel_.httpHeadersOverwriteParam_=D);this.supportsCrossDomainXhr_=C&&C.supportsCrossDomainXhr||!1;this.sendRawJson_=C&&C.sendRawJson||!1;(C=C&&C.httpSessionIdParam)&&!_.Um(C)&&(this.JSC$20197_channel_.httpSessionIdParam_=C,_.ZI.containsKey(this.messageUrlParams_,
C)&&_.ZI.remove(this.messageUrlParams_,C));this.channelHandler_=new g7(this)};
_.WT(aP,_.yg);aP.prototype.open=function(){this.JSC$20197_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20197_channel_.JSC$20188_supportsCrossDomainXhrs_=!0);this.JSC$20197_channel_.connect(this.JSC$20197_url_,this.messageUrlParams_||void 0)};
aP.prototype.close=function(){this.JSC$20197_channel_.disconnect()};
aP.prototype.send=function(D){var C=this.JSC$20197_channel_;if(typeof D==="string"){var X={};X.__data__=D;D=X}else this.sendRawJson_&&(X={},X.__data__=(0,_.Tg)(D),D=X);C.JSC$20188_outgoingMaps_.push(new mMP(C.JSC$20188_nextMapId_++,D));C.state_==3&&Vuk(C)};
aP.prototype.disposeInternal=function(){this.JSC$20197_channel_.handler_=null;delete this.channelHandler_;this.JSC$20197_channel_.disconnect();delete this.JSC$20197_channel_;aP.superClass_.disposeInternal.call(this)};
var CCo=function(D){Tpk.call(this);D.__headers__&&(this.headers=D.__headers__,this.statusCode=D.__status__,delete D.__headers__,delete D.__status__);var C=D.__sm__;C?this.data=(this.metadataKey=_.ZI.getAnyKey(C))?_.ZI.get(C,this.metadataKey):C:this.data=D};
_.WT(CCo,Tpk);var X9N=function(D){H41.call(this);this.status=1;this.errorCode=D};
_.WT(X9N,H41);var g7=function(D){this.JSC$20204_channel_=D};
_.WT(g7,lYt);g7.prototype.JSC$20194_channelOpened=function(){this.JSC$20204_channel_.dispatchEvent("w")};
g7.prototype.JSC$20194_channelHandleArray=function(D){this.JSC$20204_channel_.dispatchEvent(new CCo(D))};
g7.prototype.JSC$20194_channelError=function(D){this.JSC$20204_channel_.dispatchEvent(new X9N(D))};
g7.prototype.JSC$20194_channelClosed=function(){this.JSC$20204_channel_.dispatchEvent("x")};
var cbp=function(D,C){this.transportChannel_=D;this.JSC$20207_channel_=C},ocN=function(D){return RSw(D.JSC$20207_channel_).map(function(C){var X=D.transportChannel_;
C=C.map;"__data__"in C?(C=C.__data__,X=X.sendRawJson_?(0,_.JU4)(C):C):X=C;return X})};
cbp.prototype.commit=function(D){this.JSC$20207_channel_.forwardChannelFlushedCallback_=D};var IP=function(D){WyU.dispatchEvent(new p96(WyU,D))},WyU=new _.yg,p96=function(D,C){_.eL.call(this,"statevent",D);
this.stat=C};
_.h(p96,_.eL);var Ol=function(D,C,X,c,W){this.JSC$20212_channel_=D;this.JSC$20212_channelDebug_=C;this.sid_=X;this.JSC$20212_rid_=c;this.JSC$20212_retryId_=W||1;this.timeout_=45E3;this.JSC$20212_eventHandler_=new _.bQ(this);this.pollingTimer_=new _.BH;this.pollingTimer_.setInterval(250)};
_.S=Ol.prototype;_.S.JSC$20214_extraHeaders_=null;_.S.JSC$20214_successful_=!1;_.S.JSC$20214_watchDogTimerId_=null;_.S.JSC$20214_watchDogTimeoutTime_=null;_.S.JSC$20214_requestStartTime_=null;_.S.JSC$20214_type_=null;_.S.JSC$20214_baseUri_=null;_.S.JSC$20214_requestUri_=null;_.S.JSC$20214_postData_=null;_.S.JSC$20214_xmlHttp_=null;_.S.JSC$20214_xmlHttpChunkStart_=0;_.S.trident_=null;_.S.JSC$20214_verb_=null;_.S.JSC$20214_lastError_=null;_.S.JSC$20214_lastStatusCode_=-1;_.S.sendClose_=!0;
_.S.JSC$20214_cancelled_=!1;_.S.JSC$20214_readyStateChangeThrottleMs_=0;_.S.JSC$20214_readyStateChangeThrottle_=null;var SAG=function(D,C){switch(D){case 0:return"Non-200 return code ("+C+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},UxU={},gc1={};
Ol.prototype.setTimeout=function(D){this.timeout_=D};
var IQG=function(D,C,X){D.JSC$20214_type_=1;D.JSC$20214_baseUri_=_.bF(C.clone());D.JSC$20214_postData_=X;D.decodeChunks_=!0;aQG(D,null)},Ou3=function(D,C,X,c,W){D.JSC$20214_type_=1;
D.JSC$20214_baseUri_=_.bF(C.clone());D.JSC$20214_postData_=null;D.decodeChunks_=X;W&&(D.sendClose_=!1);aQG(D,c)},aQG=function(D,C){D.JSC$20214_requestStartTime_=Date.now();
AbG(D);D.JSC$20214_requestUri_=D.JSC$20214_baseUri_.clone();Y9G(D.JSC$20214_requestUri_,"t",D.JSC$20212_retryId_);D.JSC$20214_xmlHttpChunkStart_=0;D.JSC$20214_xmlHttp_=D.JSC$20212_channel_.JSC$20221_createXhrIo(D.JSC$20212_channel_.JSC$20221_shouldUseSecondaryDomains()?C:null);D.JSC$20214_readyStateChangeThrottleMs_>0&&(D.JSC$20214_readyStateChangeThrottle_=new _.Al((0,_.wo)(D.JSC$20214_xmlHttpHandler_,D,D.JSC$20214_xmlHttp_),D.JSC$20214_readyStateChangeThrottleMs_));D.JSC$20212_eventHandler_.listen(D.JSC$20214_xmlHttp_,
"readystatechange",D.JSC$20214_readyStateChangeHandler_);C=D.JSC$20214_extraHeaders_?_.ZI.clone(D.JSC$20214_extraHeaders_):{};D.JSC$20214_postData_?(D.JSC$20214_verb_="POST",C["Content-Type"]="application/x-www-form-urlencoded",D.JSC$20214_xmlHttp_.send(D.JSC$20214_requestUri_,D.JSC$20214_verb_,D.JSC$20214_postData_,C)):(D.JSC$20214_verb_="GET",D.sendClose_&&!_.Ik&&(C.Connection="close"),D.JSC$20214_xmlHttp_.send(D.JSC$20214_requestUri_,D.JSC$20214_verb_,null,C));D.JSC$20212_channel_.notifyServerReachabilityEvent(1);
C=D.JSC$20212_channelDebug_;var X=D.JSC$20214_postData_;if(X){var c="";X=X.split("&");for(var W=0;W<X.length;W++){var p=X[W].split("=");if(p.length>1){var g=p[0];p=p[1];var a=g.split("_");c=a.length>=2&&a[1]=="type"?c+(g+"="+p+"&"):c+(g+"=redacted&")}}}else c=null;C.info("XMLHTTP REQ ("+D.JSC$20212_rid_+") [attempt "+D.JSC$20212_retryId_+"]: "+D.JSC$20214_verb_+"\n"+D.JSC$20214_requestUri_+"\n"+c)};
Ol.prototype.JSC$20214_readyStateChangeHandler_=function(D){D=D.target;var C=this.JSC$20214_readyStateChangeThrottle_;C&&_.J3(D)==3?(this.JSC$20212_channelDebug_.debug("Throttling readystatechange."),C.fire()):this.JSC$20214_xmlHttpHandler_(D)};
Ol.prototype.JSC$20214_xmlHttpHandler_=function(D){try{if(D==this.JSC$20214_xmlHttp_)a:{var C=_.J3(this.JSC$20214_xmlHttp_),X=this.JSC$20214_xmlHttp_.JSC$9961_lastErrorCode_,c=this.JSC$20214_xmlHttp_.getStatus();if(_.Ik&&!_.OG("420+")){if(C<4)break a}else if(C<3||C==3&&!this.JSC$20214_xmlHttp_.getResponseText())break a;this.JSC$20214_cancelled_||C!=4||X==7||(X==8||c<=0?this.JSC$20212_channel_.notifyServerReachabilityEvent(3):this.JSC$20212_channel_.notifyServerReachabilityEvent(2));PCt(this);var W=
this.JSC$20214_xmlHttp_.getStatus();this.JSC$20214_lastStatusCode_=W;var p=this.JSC$20214_xmlHttp_.getResponseText();p||this.JSC$20212_channelDebug_.debug("No response text for uri "+this.JSC$20214_requestUri_+" status "+W);this.JSC$20214_successful_=W==200;this.JSC$20212_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20212_rid_+") [ attempt "+this.JSC$20212_retryId_+"]: "+this.JSC$20214_verb_+"\n"+this.JSC$20214_requestUri_+"\n"+C+" "+W);if(this.JSC$20214_successful_){C==4&&$xt(this);if(this.decodeChunks_){for(D=
!0;!this.JSC$20214_cancelled_&&this.JSC$20214_xmlHttpChunkStart_<p.length;){var g=vcG(this,p);if(g==gc1){C==4&&(this.JSC$20214_lastError_=4,IP(15),D=!1);iuk(this.JSC$20212_channelDebug_,this.JSC$20212_rid_,null,"[Incomplete Response]");break}else if(g==UxU){this.JSC$20214_lastError_=4;IP(16);iuk(this.JSC$20212_channelDebug_,this.JSC$20212_rid_,p,"[Invalid Chunk]");D=!1;break}else iuk(this.JSC$20212_channelDebug_,this.JSC$20212_rid_,g,null),kct(this,g)}C==4&&p.length==0&&(this.JSC$20214_lastError_=
1,IP(17),D=!1);this.JSC$20214_successful_=this.JSC$20214_successful_&&D;D||(iuk(this.JSC$20212_channelDebug_,this.JSC$20212_rid_,p,"[Invalid Chunked Response]"),$xt(this),uuk(this))}else iuk(this.JSC$20212_channelDebug_,this.JSC$20212_rid_,p,null),kct(this,p);this.JSC$20214_successful_&&!this.JSC$20214_cancelled_&&(C==4?this.JSC$20212_channel_.JSC$20221_onRequestComplete(this):(this.JSC$20214_successful_=!1,AbG(this)))}else W==400&&p.indexOf("Unknown SID")>0?(this.JSC$20214_lastError_=3,IP(13),this.JSC$20212_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20212_rid_+")")):(this.JSC$20214_lastError_=0,IP(14),this.JSC$20212_channelDebug_.warning("XMLHTTP Bad status "+W+" ("+this.JSC$20212_rid_+")")),$xt(this),uuk(this)}else this.JSC$20212_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(a){this.JSC$20212_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var vcG=function(D,C){var X=D.JSC$20214_xmlHttpChunkStart_,c=C.indexOf("\n",X);if(c==-1)return gc1;X=Number(C.substring(X,c));if(isNaN(X))return UxU;c+=1;if(c+X>C.length)return gc1;C=C.slice(c,c+X);D.JSC$20214_xmlHttpChunkStart_=c+X;return C};
Ol.prototype.cancel=function(){this.JSC$20214_cancelled_=!0;$xt(this)};
var AbG=function(D){D.JSC$20214_watchDogTimeoutTime_=Date.now()+D.timeout_;QLP(D,D.timeout_)},QLP=function(D,C){if(D.JSC$20214_watchDogTimerId_!=null)throw Error("Uk");
D.JSC$20214_watchDogTimerId_=NZ((0,_.wo)(D.JSC$20214_onWatchDogTimeout_,D),C)},PCt=function(D){D.JSC$20214_watchDogTimerId_&&(_.co.clearTimeout(D.JSC$20214_watchDogTimerId_),D.JSC$20214_watchDogTimerId_=null)};
Ol.prototype.JSC$20214_onWatchDogTimeout_=function(){this.JSC$20214_watchDogTimerId_=null;var D=Date.now();D-this.JSC$20214_watchDogTimeoutTime_>=0?(this.JSC$20212_channelDebug_.info("TIMEOUT: "+this.JSC$20214_requestUri_),this.JSC$20214_type_!=2&&this.JSC$20212_channel_.notifyServerReachabilityEvent(3),$xt(this),this.JSC$20214_lastError_=2,IP(18),uuk(this)):(this.JSC$20212_channelDebug_.warning("WatchDog timer called too early"),QLP(this,this.JSC$20214_watchDogTimeoutTime_-D))};
var uuk=function(D){D.JSC$20212_channel_.JSC$20221_isClosed()||D.JSC$20214_cancelled_||D.JSC$20212_channel_.JSC$20221_onRequestComplete(D)},$xt=function(D){PCt(D);
_.Ue(D.JSC$20214_readyStateChangeThrottle_);D.JSC$20214_readyStateChangeThrottle_=null;D.pollingTimer_.stop();D.JSC$20212_eventHandler_.removeAll();if(D.JSC$20214_xmlHttp_){var C=D.JSC$20214_xmlHttp_;D.JSC$20214_xmlHttp_=null;C.abort();C.dispose()}D.trident_&&(D.trident_=null)};
Ol.prototype.getLastError=function(){return this.JSC$20214_lastError_};
var kct=function(D,C){try{D.JSC$20212_channel_.JSC$20221_onRequestData(D,C),D.JSC$20212_channel_.notifyServerReachabilityEvent(4)}catch(X){}};var iuk=function(D,C,X,c){var W=D.info;a:if(X&&X!="y2f%"){try{var p=JSON.parse(X);if(p)for(var g=0;g<p.length;g++)if(Array.isArray(p[g])){var a=p[g];if(!(a.length<2)){var O=a[1];if(Array.isArray(O)&&!(O.length<1)){var P=O[0];if(P!="noop"&&P!="stop")for(var k=1;k<O.length;k++)O[k]=""}}}var u=(0,_.Tg)(p);break a}catch(Q){D.debug("Exception parsing expected JS array - probably was not JS");u=X;break a}u=void 0}else u=X;W.call(D,"XMLHTTP TEXT ("+C+"): "+u+(c?" "+c:""))};
YW.prototype.debug=function(D){this.info(D)};
YW.prototype.info=function(){};
YW.prototype.warning=function(){};var Bv1=function(D,C){this.JSC$20219_channel_=D;this.JSC$20219_channelDebug_=C;this.JSC$20219_parser_=new VO3};
_.S=Bv1.prototype;_.S.JSC$20221_extraHeaders_=null;_.S.JSC$20221_request_=null;_.S.receivedIntermediateResult_=!1;_.S.JSC$20221_path_=null;_.S.state_=null;_.S.JSC$20221_lastStatusCode_=-1;_.S.JSC$20221_hostPrefix_=null;_.S.blockedPrefix_=null;
_.S.connect=function(D){this.JSC$20221_path_=D;D=buU(this.JSC$20219_channel_,this.JSC$20221_path_);IP(3);Date.now();var C=this.JSC$20219_channel_.firstTestResults_;C!=null?(this.JSC$20221_hostPrefix_=C[0],(this.blockedPrefix_=C[1])?(this.state_=1,rbY(this)):(this.state_=2,Ky3(this))):(Y9G(D,"MODE","init"),this.JSC$20221_request_=new Ol(this,this.JSC$20219_channelDebug_),this.JSC$20221_request_.JSC$20214_extraHeaders_=this.JSC$20221_extraHeaders_,Ou3(this.JSC$20221_request_,D,!1,null,!0),this.state_=
0)};
var rbY=function(D){var C=hN1(D.JSC$20219_channel_,D.blockedPrefix_,"/mail/images/cleardot.gif");_.bF(C);z_1(C.toString(),5E3,(0,_.wo)(D.checkBlockedCallback_,D),3,2E3);D.notifyServerReachabilityEvent(1)};
Bv1.prototype.checkBlockedCallback_=function(D){if(D)this.state_=2,Ky3(this);else{IP(4);var C=this.JSC$20219_channel_;C.JSC$20222_channelDebug_.debug("Test Connection Blocked");C.JSC$20226_lastStatusCode_=C.connectionTest_.JSC$20221_lastStatusCode_;AB(C,9)}D&&this.notifyServerReachabilityEvent(2)};
var Ky3=function(D){D.JSC$20219_channelDebug_.debug("TestConnection: starting stage 2");var C=D.JSC$20219_channel_.secondTestResults_;C!=null?(D.JSC$20219_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+C?"Buffered":"Unbuffered"),IP(5),C?(IP(11),xxU(D.JSC$20219_channel_,D,!1)):(IP(12),xxU(D.JSC$20219_channel_,D,!0))):(D.JSC$20221_request_=new Ol(D,D.JSC$20219_channelDebug_),D.JSC$20221_request_.JSC$20214_extraHeaders_=D.JSC$20221_extraHeaders_,C=LyP(D.JSC$20219_channel_,
D.JSC$20221_hostPrefix_,D.JSC$20221_path_),IP(5),Y9G(C,"TYPE","xmlhttp"),Ou3(D.JSC$20221_request_,C,!1,D.JSC$20221_hostPrefix_,!1))};
_.S=Bv1.prototype;_.S.JSC$20221_createXhrIo=function(D){return this.JSC$20219_channel_.JSC$20221_createXhrIo(D)};
_.S.abort=function(){this.JSC$20221_request_&&(this.JSC$20221_request_.cancel(),this.JSC$20221_request_=null);this.JSC$20221_lastStatusCode_=-1};
_.S.JSC$20221_isClosed=function(){return!1};
_.S.JSC$20221_onRequestData=function(D,C){this.JSC$20221_lastStatusCode_=D.JSC$20214_lastStatusCode_;if(this.state_==0)if(this.JSC$20219_channelDebug_.debug("TestConnection: Got data for stage 1"),C){try{var X=this.JSC$20219_parser_.parse(C)}catch(c){sLk(this.JSC$20219_channel_,this);return}this.JSC$20221_hostPrefix_=X[0];this.blockedPrefix_=X[1]}else this.JSC$20219_channelDebug_.debug("TestConnection: Null responseText"),sLk(this.JSC$20219_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(IP(7),Date.now()):C=="11111"?(IP(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20221_lastStatusCode_=200,this.JSC$20221_request_.cancel(),this.JSC$20219_channelDebug_.debug("Test connection succeeded; using streaming connection"),IP(12),xxU(this.JSC$20219_channel_,this,!0)):(IP(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.S.JSC$20221_onRequestComplete=function(){this.JSC$20221_lastStatusCode_=this.JSC$20221_request_.JSC$20214_lastStatusCode_;this.JSC$20221_request_.JSC$20214_successful_?this.state_==0?(this.JSC$20219_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,rbY(this)):(this.state_=2,Ky3(this))):this.state_==2&&(this.JSC$20219_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20219_channelDebug_.debug("Test connection succeeded; using streaming connection"),
IP(12),xxU(this.JSC$20219_channel_,this,!0)):(this.JSC$20219_channelDebug_.debug("Test connection failed; not using streaming"),IP(11),xxU(this.JSC$20219_channel_,this,!1))):(this.JSC$20219_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?IP(9):this.state_==2&&IP(10),sLk(this.JSC$20219_channel_,this,this.JSC$20221_request_.getLastError()))};
_.S.JSC$20221_shouldUseSecondaryDomains=function(){return this.JSC$20219_channel_.JSC$20221_shouldUseSecondaryDomains()};
_.S.isActive=function(){return this.JSC$20219_channel_.isActive()};
_.S.notifyServerReachabilityEvent=function(D){this.JSC$20219_channel_.notifyServerReachabilityEvent(D)};var PD=function(D,C,X){this.state_=1;this.JSC$20222_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20222_channelDebug_=new YW;this.JSC$20222_parser_=new VO3;this.firstTestResults_=D||null;this.secondTestResults_=C!=null?C:null;this.asyncTest_=X||!1},mxU=function(D,C){this.JSC$20224_mapId=D;
this.map=C;this.context=null};
_.S=PD.prototype;_.S.JSC$20226_extraHeaders_=null;_.S.JSC$20226_extraParams_=null;_.S.forwardChannelRequest_=null;_.S.JSC$20226_backChannelRequest_=null;_.S.JSC$20226_path_=null;_.S.JSC$20226_forwardChannelUri_=null;_.S.JSC$20226_backChannelUri_=null;_.S.JSC$20226_hostPrefix_=null;_.S.JSC$20226_nextRid_=0;_.S.JSC$20226_nextMapId_=0;_.S.handler_=null;_.S.JSC$20226_forwardChannelTimerId_=null;_.S.JSC$20226_backChannelTimerId_=null;_.S.JSC$20226_deadBackChannelTimerId_=null;_.S.connectionTest_=null;
_.S.useChunked_=null;_.S.JSC$20226_lastArrayId_=-1;_.S.JSC$20226_lastPostResponseArrayId_=-1;_.S.JSC$20226_lastStatusCode_=-1;_.S.JSC$20226_forwardChannelRetryCount_=0;_.S.JSC$20226_backChannelRetryCount_=0;_.S.JSC$20226_channelVersion_=8;var eN1={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},Eco=function(D,C,X,c){_.eL.call(this,"timingevent",D);this.size=C;this.rtt=X;this.retries=c};
_.WT(Eco,_.eL);var tvP=function(D){_.eL.call(this,"serverreachability",D)};
_.WT(tvP,_.eL);PD.prototype.connect=function(D,C,X,c,W){this.JSC$20222_channelDebug_.debug("connect()");IP(0);this.JSC$20226_path_=C;this.JSC$20226_extraParams_=X||{};c&&W!==void 0&&(this.JSC$20226_extraParams_.OSID=c,this.JSC$20226_extraParams_.OAID=W);this.asyncTest_?(NZ((0,_.wo)(this.connectTest_,this,D),100),NvG(this)):this.connectTest_(D)};
PD.prototype.disconnect=function(){this.JSC$20222_channelDebug_.debug("disconnect()");YAG(this);if(this.state_==3){var D=this.JSC$20226_nextRid_++,C=this.JSC$20226_forwardChannelUri_.clone();_.oA(C,"SID",this.sid_);_.oA(C,"RID",D);_.oA(C,"TYPE","terminate");ybX(this,C);D=new Ol(this,this.JSC$20222_channelDebug_,this.sid_,D);D.JSC$20214_type_=2;D.JSC$20214_baseUri_=_.bF(C.clone());(new Image).src=D.JSC$20214_baseUri_.toString();D.JSC$20214_requestStartTime_=Date.now();AbG(D)}ncU(this)};
PD.prototype.connectTest_=function(D){this.JSC$20222_channelDebug_.debug("connectTest_()");this.connectionTest_=new Bv1(this,this.JSC$20222_channelDebug_);this.connectionTest_.JSC$20221_extraHeaders_=this.JSC$20226_extraHeaders_;this.connectionTest_.JSC$20219_parser_=this.JSC$20222_parser_;this.connectionTest_.connect(D)};
var NvG=function(D){D.JSC$20222_channelDebug_.debug("connectChannel_()");D.JSC$20226_ensureInState_(1,0);D.JSC$20226_forwardChannelUri_=buU(D,D.JSC$20226_path_);w9U(D)},YAG=function(D){D.connectionTest_&&(D.connectionTest_.abort(),D.connectionTest_=null);
D.JSC$20226_backChannelRequest_&&(D.JSC$20226_backChannelRequest_.cancel(),D.JSC$20226_backChannelRequest_=null);D.JSC$20226_backChannelTimerId_&&(_.co.clearTimeout(D.JSC$20226_backChannelTimerId_),D.JSC$20226_backChannelTimerId_=null);Fyt(D);D.forwardChannelRequest_&&(D.forwardChannelRequest_.cancel(),D.forwardChannelRequest_=null);D.JSC$20226_forwardChannelTimerId_&&(_.co.clearTimeout(D.JSC$20226_forwardChannelTimerId_),D.JSC$20226_forwardChannelTimerId_=null)},Zu1=function(D,C){if(D.state_==0)throw Error("Xk");
D.JSC$20222_outgoingMaps_.length==1E3&&D.JSC$20222_parser_.stringify(C);D.JSC$20222_outgoingMaps_.push(new mxU(D.JSC$20226_nextMapId_++,C));D.state_!=2&&D.state_!=3||w9U(D)};
PD.prototype.JSC$20221_isClosed=function(){return this.state_==0};
PD.prototype.getState=function(){return this.state_};
var w9U=function(D){D.forwardChannelRequest_||D.JSC$20226_forwardChannelTimerId_||(D.JSC$20226_forwardChannelTimerId_=NZ((0,_.wo)(D.JSC$20226_onStartForwardChannelTimer_,D),0),D.JSC$20226_forwardChannelRetryCount_=0)};
PD.prototype.JSC$20226_onStartForwardChannelTimer_=function(D){this.JSC$20226_forwardChannelTimerId_=null;Gcw(this,D)};
var Gcw=function(D,C){D.JSC$20222_channelDebug_.debug("startForwardChannel_");if(D.state_==1){if(!C){D.JSC$20222_channelDebug_.debug("open_()");D.JSC$20226_nextRid_=Math.floor(Math.random()*1E5);C=D.JSC$20226_nextRid_++;var X=new Ol(D,D.JSC$20222_channelDebug_,"",C);X.JSC$20214_extraHeaders_=D.JSC$20226_extraHeaders_;var c=Vv1(D),W=D.JSC$20226_forwardChannelUri_.clone();_.oA(W,"RID",C);_.oA(W,"CVER","1");ybX(D,W);IQG(X,W,c);D.forwardChannelRequest_=X;D.state_=2}}else D.state_==3&&(C?Tv6(D,C):D.JSC$20222_outgoingMaps_.length==
0?D.JSC$20222_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):D.forwardChannelRequest_||(Tv6(D),D.JSC$20222_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Tv6=function(D,C){if(C)if(D.JSC$20226_channelVersion_>6){D.JSC$20222_outgoingMaps_=D.pendingMaps_.concat(D.JSC$20222_outgoingMaps_);
D.pendingMaps_.length=0;var X=D.JSC$20226_nextRid_-1;C=Vv1(D)}else X=C.JSC$20212_rid_,C=C.JSC$20214_postData_;else X=D.JSC$20226_nextRid_++,C=Vv1(D);var c=D.JSC$20226_forwardChannelUri_.clone();_.oA(c,"SID",D.sid_);_.oA(c,"RID",X);_.oA(c,"AID",D.JSC$20226_lastArrayId_);ybX(D,c);X=new Ol(D,D.JSC$20222_channelDebug_,D.sid_,X,D.JSC$20226_forwardChannelRetryCount_+1);X.JSC$20214_extraHeaders_=D.JSC$20226_extraHeaders_;X.setTimeout(1E4+Math.round(1E4*Math.random()));D.forwardChannelRequest_=X;IQG(X,c,
C)},ybX=function(D,C){D.handler_&&(D=D.handler_.JSC$20233_getAdditionalParams())&&_.ZI.forEach(D,function(X,c){_.oA(C,c,X)})},Vv1=function(D){var C=Math.min(D.JSC$20222_outgoingMaps_.length,1E3),X=["count="+C];
if(D.JSC$20226_channelVersion_>6&&C>0){var c=D.JSC$20222_outgoingMaps_[0].JSC$20224_mapId;X.push("ofs="+c)}else c=0;for(var W={},p=0;p<C;W={mapId$jscomp$3:void 0},p++){W.mapId$jscomp$3=D.JSC$20222_outgoingMaps_[p].JSC$20224_mapId;var g=D.JSC$20222_outgoingMaps_[p].map;W.mapId$jscomp$3=D.JSC$20226_channelVersion_<=6?p:W.mapId$jscomp$3-c;try{_.ZI.forEach(g,function(a){return function(O,P){X.push("req"+a.mapId$jscomp$3+"_"+P+"="+encodeURIComponent(O))}}(W))}catch(a){X.push("req"+W.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}D.pendingMaps_=D.pendingMaps_.concat(D.JSC$20222_outgoingMaps_.splice(0,C));
return X.join("&")},Huk=function(D){D.JSC$20226_backChannelRequest_||D.JSC$20226_backChannelTimerId_||(D.JSC$20226_backChannelAttemptId_=1,D.JSC$20226_backChannelTimerId_=NZ((0,_.wo)(D.JSC$20226_onStartBackChannelTimer_,D),0),D.JSC$20226_backChannelRetryCount_=0)},zNk=function(D){if(D.JSC$20226_backChannelRequest_||D.JSC$20226_backChannelTimerId_||D.JSC$20226_backChannelRetryCount_>=3)return!1;
D.JSC$20222_channelDebug_.debug("Going to retry GET");D.JSC$20226_backChannelAttemptId_++;D.JSC$20226_backChannelTimerId_=NZ((0,_.wo)(D.JSC$20226_onStartBackChannelTimer_,D),Jb6(D,D.JSC$20226_backChannelRetryCount_));D.JSC$20226_backChannelRetryCount_++;return!0};
PD.prototype.JSC$20226_onStartBackChannelTimer_=function(){this.JSC$20226_backChannelTimerId_=null;this.JSC$20222_channelDebug_.debug("Creating new HttpRequest");this.JSC$20226_backChannelRequest_=new Ol(this,this.JSC$20222_channelDebug_,this.sid_,"rpc",this.JSC$20226_backChannelAttemptId_);this.JSC$20226_backChannelRequest_.JSC$20214_extraHeaders_=this.JSC$20226_extraHeaders_;this.JSC$20226_backChannelRequest_.JSC$20214_readyStateChangeThrottleMs_=0;var D=this.JSC$20226_backChannelUri_.clone();_.oA(D,
"RID","rpc");_.oA(D,"SID",this.sid_);_.oA(D,"CI",this.useChunked_?"0":"1");_.oA(D,"AID",this.JSC$20226_lastArrayId_);ybX(this,D);_.oA(D,"TYPE","xmlhttp");Ou3(this.JSC$20226_backChannelRequest_,D,!0,this.JSC$20226_hostPrefix_,!1);this.JSC$20222_channelDebug_.debug("New Request created")};
var xxU=function(D,C,X){D.JSC$20222_channelDebug_.debug("Test Connection Finished");D.useChunked_=D.secondTestResults_==null?X:!D.secondTestResults_;D.JSC$20226_lastStatusCode_=C.JSC$20221_lastStatusCode_;D.asyncTest_||NvG(D)},sLk=function(D,C){D.JSC$20222_channelDebug_.debug("Test Connection Failed");
D.JSC$20226_lastStatusCode_=C.JSC$20221_lastStatusCode_;AB(D,2)};
PD.prototype.JSC$20221_onRequestData=function(D,C){if(this.state_!=0&&(this.JSC$20226_backChannelRequest_==D||this.forwardChannelRequest_==D))if(this.JSC$20226_lastStatusCode_=D.JSC$20214_lastStatusCode_,this.forwardChannelRequest_==D&&this.state_==3)if(this.JSC$20226_channelVersion_>7){try{var X=this.JSC$20222_parser_.parse(C)}catch(c){X=null}if(Array.isArray(X)&&X.length==3)if(C=X,C[0]==0)a:if(this.JSC$20222_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20226_backChannelTimerId_)this.JSC$20222_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20226_backChannelRequest_)if(this.JSC$20226_backChannelRequest_.JSC$20214_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20214_requestStartTime_)Fyt(this),this.JSC$20226_backChannelRequest_.cancel(),this.JSC$20226_backChannelRequest_=null;else break a;else this.JSC$20222_channelDebug_.warning("We do not have a BackChannel established");zNk(this);IP(19)}else this.JSC$20226_lastPostResponseArrayId_=C[1],D=this.JSC$20226_lastPostResponseArrayId_-this.JSC$20226_lastArrayId_,0<
D&&(C=C[2],this.JSC$20222_channelDebug_.debug(C+" bytes (in "+D+" arrays) are outstanding on the BackChannel"),C<37500&&this.useChunked_&&this.JSC$20226_backChannelRetryCount_==0&&!this.JSC$20226_deadBackChannelTimerId_&&(this.JSC$20226_deadBackChannelTimerId_=NZ((0,_.wo)(this.JSC$20226_onBackChannelDead_,this),6E3)));else this.JSC$20222_channelDebug_.debug("Bad POST response data returned"),AB(this,11)}else C!="y2f%"&&(this.JSC$20222_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
AB(this,11));else this.JSC$20226_backChannelRequest_==D&&Fyt(this),_.Um(C)||(D=this.JSC$20222_parser_.parse(C),this.onInput_(D))};
PD.prototype.JSC$20226_onBackChannelDead_=function(){this.JSC$20226_deadBackChannelTimerId_!=null&&(this.JSC$20226_deadBackChannelTimerId_=null,this.JSC$20226_backChannelRequest_.cancel(),this.JSC$20226_backChannelRequest_=null,zNk(this),IP(20))};
var Fyt=function(D){D.JSC$20226_deadBackChannelTimerId_!=null&&(_.co.clearTimeout(D.JSC$20226_deadBackChannelTimerId_),D.JSC$20226_deadBackChannelTimerId_=null)};
PD.prototype.JSC$20221_onRequestComplete=function(D){this.JSC$20222_channelDebug_.debug("Request complete");if(this.JSC$20226_backChannelRequest_==D){Fyt(this);this.JSC$20226_backChannelRequest_=null;var C=2}else if(this.forwardChannelRequest_==D)this.forwardChannelRequest_=null,C=1;else return;this.JSC$20226_lastStatusCode_=D.JSC$20214_lastStatusCode_;if(this.state_!=0)if(D.JSC$20214_successful_)if(C==1){C=D.JSC$20214_postData_?D.JSC$20214_postData_.length:0;D=Date.now()-D.JSC$20214_requestStartTime_;
var X=WyU;X.dispatchEvent(new Eco(X,C,D,this.JSC$20226_forwardChannelRetryCount_));w9U(this);this.handler_&&this.handler_.JSC$20233_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Huk(this);else{X=D.getLastError();if(X==3||X==7||X==0&&this.JSC$20226_lastStatusCode_>0)this.JSC$20222_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20222_channelDebug_.debug("Maybe retrying, last error: "+SAG(X,this.JSC$20226_lastStatusCode_));var c;if(c=C==1)this.forwardChannelRequest_||
this.JSC$20226_forwardChannelTimerId_||this.state_==1||this.JSC$20226_forwardChannelRetryCount_>=2?c=!1:(this.JSC$20222_channelDebug_.debug("Going to retry POST"),this.JSC$20226_forwardChannelTimerId_=NZ((0,_.wo)(this.JSC$20226_onStartForwardChannelTimer_,this,D),Jb6(this,this.JSC$20226_forwardChannelRetryCount_)),this.JSC$20226_forwardChannelRetryCount_++,c=!0);if(c||C==2&&zNk(this))return;this.JSC$20222_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20222_channelDebug_.debug("Error: HTTP request failed");
switch(X){case 1:AB(this,5);break;case 4:AB(this,10);break;case 3:AB(this,6);break;case 7:AB(this,12);break;default:AB(this,2)}}};
var Jb6=function(D,C){var X=5E3+Math.floor(Math.random()*1E4);D.isActive()||(D.JSC$20222_channelDebug_.debug("Inactive channel"),X*=2);return X*C};
PD.prototype.onInput_=function(D){for(var C=0;C<D.length;C++){var X=D[C];this.JSC$20226_lastArrayId_=X[0];X=X[1];this.state_==2?X[0]=="c"?(this.sid_=X[1],this.JSC$20226_hostPrefix_=X[2],X=X[3],X!=null?this.JSC$20226_channelVersion_=X:this.JSC$20226_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20233_channelOpened(),this.JSC$20226_backChannelUri_=LyP(this,this.JSC$20226_hostPrefix_,this.JSC$20226_path_),Huk(this)):X[0]=="stop"&&AB(this,7):this.state_==3&&(X[0]=="stop"?AB(this,7):
X[0]!="noop"&&this.handler_&&this.handler_.JSC$20233_channelHandleArray(X),this.JSC$20226_backChannelRetryCount_=0)}};
PD.prototype.JSC$20226_ensureInState_=function(D){if(!_.Zn(arguments,this.state_))throw Error("Yk`"+this.state_);};
var AB=function(D,C){D.JSC$20222_channelDebug_.info("Error code "+C);if(C==2||C==9){var X=null;D.handler_&&(X=null);var c=(0,_.wo)(D.testGoogleComCallback_,D);X||(X=new _.H7("//www.google.com/images/cleardot.gif"),_.bF(X));Jm6(X.toString(),1E4,c)}else IP(2);D.onError_(C)};
PD.prototype.testGoogleComCallback_=function(D){D?(this.JSC$20222_channelDebug_.info("Successfully pinged google.com"),IP(2)):(this.JSC$20222_channelDebug_.info("Failed to ping google.com"),IP(1),this.onError_(8))};
PD.prototype.onError_=function(D){this.JSC$20222_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$20233_channelError(D);ncU(this);YAG(this)};
var ncU=function(D){D.state_=0;D.JSC$20226_lastStatusCode_=-1;if(D.handler_)if(D.pendingMaps_.length==0&&D.JSC$20222_outgoingMaps_.length==0)D.handler_.JSC$20233_channelClosed();else{D.JSC$20222_channelDebug_.debug("Number of undelivered maps, pending: "+D.pendingMaps_.length+", outgoing: "+D.JSC$20222_outgoingMaps_.length);var C=_.Ho(D.pendingMaps_),X=_.Ho(D.JSC$20222_outgoingMaps_);D.pendingMaps_.length=0;D.JSC$20222_outgoingMaps_.length=0;D.handler_.JSC$20233_channelClosed(C,X)}},buU=function(D,
C){C=hN1(D,null,C);
D.JSC$20222_channelDebug_.debug("GetForwardChannelUri: "+C);return C},LyP=function(D,C,X){C=hN1(D,D.JSC$20221_shouldUseSecondaryDomains()?C:null,X);
D.JSC$20222_channelDebug_.debug("GetBackChannelUri: "+C);return C},hN1=function(D,C,X){var c=_.Xg(X);
if(c.JSC$10197_domain_!="")C&&_.PP(c,C+"."+c.JSC$10197_domain_),_.$x(c,c.JSC$10197_port_);else{var W=window.location;c=eUN(W.protocol,C?C+"."+W.hostname:W.hostname,+W.port,X)}D.JSC$20226_extraParams_&&_.ZI.forEach(D.JSC$20226_extraParams_,function(p,g){_.oA(c,g,p)});
_.oA(c,"VER",D.JSC$20226_channelVersion_);ybX(D,c);return c};
PD.prototype.JSC$20221_createXhrIo=function(D){if(D)throw Error("Vk");D=new _.HF;D.JSC$9961_withCredentials_=!1;return D};
PD.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
PD.prototype.notifyServerReachabilityEvent=function(D){var C=WyU;C.dispatchEvent(new tvP(C,D))};
PD.prototype.JSC$20221_shouldUseSecondaryDomains=function(){return!1};
new nyX;var jLU=function(){};
_.S=jLU.prototype;_.S.JSC$20233_channelOpened=function(){};
_.S.JSC$20233_channelHandleArray=function(){};
_.S.JSC$20233_channelSuccess=function(){};
_.S.JSC$20233_channelError=function(){};
_.S.JSC$20233_channelClosed=function(){};
_.S.JSC$20233_getAdditionalParams=function(){return{}};
_.S.isActive=function(){return!0};var MvG=function(D){D.front_.length===0&&(D.front_=D.back_,D.front_.reverse(),D.back_=[])};
_.S=MbN.prototype;_.S.enqueue=function(D){this.back_.push(D)};
_.S.peek=function(){MvG(this);return _.NR(this.front_)};
_.S.getCount=function(){return this.front_.length+this.back_.length};
_.S.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.S.clear=function(){this.front_=[];this.back_=[]};
_.S.contains=function(D){return _.Zn(this.front_,D)||_.Zn(this.back_,D)};
_.S.remove=function(D){var C=this.front_;var X=Array.prototype.lastIndexOf.call(C,D,C.length-1);X>=0?(_.Ejo(C,X),C=!0):C=!1;return C||_.VF(this.back_,D)};
_.S.getValues=function(){for(var D=[],C=this.front_.length-1;C>=0;--C)D.push(this.front_[C]);C=this.back_.length;for(var X=0;X<C;++X)D.push(this.back_[X]);return D};var $q=function(D){this.JSC$20237_map_=new _.Ev;this.size=0;D&&this.addAll(D)},qA1=function(D){var C=typeof D;
return C=="object"&&D||C=="function"?"o"+_.fh(D):C.charAt(0)+D};
_.S=$q.prototype;_.S.getCount=function(){return this.JSC$20237_map_.size};
_.S.add=function(D){this.JSC$20237_map_.set(qA1(D),D);this.size=this.JSC$20237_map_.size};
_.S.addAll=function(D){D=_.O9(D);for(var C=D.length,X=0;X<C;X++)this.add(D[X]);this.size=this.JSC$20237_map_.size};
_.S.removeAll=function(D){D=_.O9(D);for(var C=D.length,X=0;X<C;X++)this.remove(D[X]);this.size=this.JSC$20237_map_.size};
_.S.delete=function(D){D=this.JSC$20237_map_.remove(qA1(D));this.size=this.JSC$20237_map_.size;return D};
_.S.remove=function(D){return this.delete(D)};
_.S.clear=function(){this.JSC$20237_map_.clear();this.size=0};
_.S.isEmpty=function(){return this.JSC$20237_map_.size===0};
_.S.has=function(D){return this.JSC$20237_map_.containsKey(qA1(D))};
_.S.contains=function(D){return this.JSC$20237_map_.containsKey(qA1(D))};
_.S.getValues=function(){return this.JSC$20237_map_.getValues()};
_.S.values=function(){return this.JSC$20237_map_.values()};
_.S.clone=function(){return new $q(this)};
_.S.equals=function(D){return this.getCount()==sRN(D)&&fQt(this,D)};
var fQt=function(D,C){var X=sRN(C);if(D.getCount()>X)return!1;!(C instanceof $q)&&X>5&&(C=new $q(C));return miG(D,function(c){var W=C;return W.contains&&typeof W.contains=="function"?W.contains(c):W.containsValue&&typeof W.containsValue=="function"?W.containsValue(c):_.JW(W)||typeof W==="string"?_.Zn(W,c):_.ZI.containsValue(W,c)})};
$q.prototype.__iterator__=function(){return this.JSC$20237_map_.__iterator__(!1)};
$q.prototype[Symbol.iterator]=function(){return this.values()};var dxY={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(D){return(this._clampValue(D)-this.min)/(this.max-this.min)},
_clampValue:function(D){return Math.min(this.max,Math.max(this.min,this._calcStep(D)))},
_calcStep:function(D){D=parseFloat(D);if(!this.step)return D;D=Math.round((D-this.min)/this.step);return this.step<1?D/(1/this.step)+this.min:D*this.step+this.min},
_validateValue:function(){var D=this._clampValue(this.value);this.value=this.oldValue=isNaN(D)?this.oldValue:D;return this.value!==D},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var RNk;var lQt;_.mZ({_template:function(){if(lQt!==void 0)return lQt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;RNk===void 0&&(RNk=document.createElement("template"));var c=RNk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return lQt=D},
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(){_.A0(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(D){D.keyCode===27&&(D.preventDefault(),this.close())},
_track:function(D){if(!this.persistent&&!this.disableSwipe)switch(D.preventDefault(),D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackMove(D);break;case "end":this._trackEnd(D)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var D=this.$.contentContainer.getBoundingClientRect();this._savedWidth=D.width;this._translateOffset=this.position==="left"?D.left:D.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(D){this._trackDetails&&(this._translateDrawer(D.detail.dx+this._translateOffset),this._trackDetails.push({dx:D.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(D){if(this._trackDetails){var C=D.detail.dx+this._translateOffset,X=this.getWidth();C=this.position==="left"?C>=0||C<=-X:C<=0||C>=X;if(!C){var c=this._trackDetails;this._trackDetails=null;this._flingDrawer(D,c);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}X/=2;D.detail.dx<-X?this.opened=this.position==="right":D.detail.dx>X&&(this.opened=this.position==="left");C?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(D,C){for(var X=Date.now(),c=X-100,W,p=0,g=C.length-1;p<=g;){var a=p+g>>1,O=C[a];O.timeStamp>=c?(W=O,g=a-1):p=a+1}return W?(D.detail.dx-W.dx)/(X-W.timeStamp||1):0},
_flingDrawer:function(D,C){C=this._calculateVelocity(D,C);if(!(Math.abs(C)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;D=D.detail.dx+this._translateOffset;var X=this.getWidth(),c=this.position==="left",W=C>0;W?(C=Math.max(C,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(C=Math.min(C,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");C=this._FLING_INITIAL_SLOPE*(!W&&c?-(D+X):W&&!c?X-D:-D)/C;this._styleTransitionDuration(C);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,C)}},
_styleTransitionDuration:function(D){this.style.transitionDuration=D+"ms";this.$.contentContainer.style.transitionDuration=D+"ms";this.$.scrim.style.transitionDuration=D+"ms"},
_styleTransitionTimingFunction:function(D){this.$.contentContainer.style.transitionTimingFunction=D;this.$.scrim.style.transitionTimingFunction=D},
_translateDrawer:function(D){var C=this.getWidth();this.position==="left"?(D=Math.max(-C,Math.min(D,0)),this.$.scrim.style.opacity=1+D/C):(D=Math.max(0,Math.min(D,C)),this.$.scrim.style.opacity=1-D/C);this.translate3d(D+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var D=this._drawerState;D===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;D!==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=""),D!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var D=_.kr(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"])');D.length>0?(this._firstTabStop=D[0],this._lastTabStop=D[D.length-1]):
this._lastTabStop=this._firstTabStop=null;(D=this.getAttribute("tabindex"))&&parseInt(D,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(D){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||D.keyCode!==9||(D.shiftKey?this._firstTabStop&&_.kr(D).localTarget===this._firstTabStop&&(D.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.kr(D).localTarget===this._lastTabStop&&(D.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(D,C){this.toggleClass("visible",D&&!C,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var DlN;var CIp;_.mZ({_template:function(){if(CIp!==void 0)return CIp;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;DlN===void 0&&(DlN=document.createElement("template"));var c=DlN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return CIp=D},
is:"tp-yt-paper-progress",behaviors:[dxY],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(D){this.toggleClass("indeterminate",D,this.$.primaryProgress)},
_transformProgress:function(D,C){D.style.transform=D.style.webkitTransform="scaleX("+C/100+")"},
_mainRatioChanged:function(D){this._transformProgress(this.$.primaryProgress,D)},
_progressChanged:function(D,C,X,c,W){D=this._clampValue(D);C=this._clampValue(C);var p=this._calcRatio(D)*100,g=this._calcRatio(C)*100;this._setSecondaryRatio(p);this._transformProgress(this.$.secondaryProgress,p);this._transformProgress(this.$.primaryProgress,g);this.secondaryProgress=D;W?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",C);this.setAttribute("aria-valuemin",X);this.setAttribute("aria-valuemax",c)},
_disabledChanged:function(D){this.setAttribute("aria-disabled",D?"true":"false")},
_hideSecondaryProgress:function(D){return D===0}});var XOk;var cSt;var odp=function(){};
_.S=odp.prototype;_.S.registered=function(){};
_.S.addOwnKeyBinding=function(){};
_.S.removeOwnKeyBindings=function(){};
_.S.keyboardEventMatchesKeys=function(){};
_.S._collectKeyBindings=function(){};
_.S._prepKeyBindings=function(){};
_.S._addKeyBinding=function(){};
_.S._resetKeyEventListeners=function(){};
_.S._listenKeyEventListeners=function(){};
_.S._unlistenKeyEventListeners=function(){};
_.S._onKeyBindingEvent=function(){};
_.S._triggerKeyHandler=function(){};
_.S._tapHandler=function(){};
_.S._focusChanged=function(){};
_.S._detectKeyboardFocus=function(){};
_.S._userActivate=function(){};
_.S._upHandler=function(){};
_.S._spaceKeyDownHandler=function(){};
_.S._spaceKeyUpHandler=function(){};
_.S._asyncClick=function(){};
_.S._pressedChanged=function(){};
_.S._ariaActiveAttributeChanged=function(){};
_.S._activeChanged=function(){};
_.S._controlStateChanged=function(){};
_.S._changedButtonState=function(){};
_.S._focusBlurHandler=function(){};
_.S._disabledChanged=function(){};
_.S._changedControlState=function(){};
_.S._buttonStateChanged=function(){};
_.S._downHandler=function(){};
_.S.ensureRipple=function(){};
_.S.getRipple=function(){};
_.S.hasRipple=function(){};
_.S._noinkChanged=function(){};
_.S._calcRatio=function(){};
_.S._clampValue=function(){};
_.S._calcStep=function(){};
_.S._validateValue=function(){};
_.S._update=function(){};
_.S._setImmediateValue=function(){};
_.S._setExpand=function(){};
_.S._setDragging=function(){};
_.S._setTransiting=function(){};
_.S._setMarkers=function(){};
_.S._setPressed=function(){};
_.S._setPointerDown=function(){};
_.S._setReceivedFocusFromKeyboard=function(){};
_.S._setFocused=function(){};
_.S._setRatio=function(){};
odp=_.mZ({_template:function(){if(cSt!==void 0)return cSt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;XOk===void 0&&(XOk=document.createElement("template"));var c=XOk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return cSt=D},
is:"tp-yt-paper-slider",behaviors:[_.H8,_.MD,_.IZN,dxY],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&&_.f2(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(D,C,X){this.setAttribute("aria-valuemin",C);this.setAttribute("aria-valuemax",X);this.setAttribute("aria-valuenow",D);this._positionKnob(this._calcRatio(D)*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(D){this._setImmediateValue(this._calcStep(this._calcKnobPosition(D)));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(D){return(this.max-this.min)*D/100+this.min},
_onTrack:function(D){D.stopPropagation();switch(D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackX(D);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(D){this.dragging||this._trackStart(D);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,D.detail.dx*(this._isRTL?-1:1)));D=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(D);D=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(D+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var D=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;D.transform=D.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(D){this._expandKnob();D.preventDefault();this.focus()},
_bartrack:function(D){this._allowBarEvent(D)&&this._onTrack(D)},
_barclick:function(D){this._w=this.$.sliderBar.offsetWidth;var C=this.$.sliderBar.getBoundingClientRect();C=(D.detail.x-C.left)/this._w*100;this._isRTL&&(C=100-C);var X=this.ratio;this._setTransiting(!0);this._positionKnob(C);X===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
D.preventDefault();this.focus()},
_bardown:function(D){this._allowBarEvent(D)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(D))},
_knobTransitionEnd:function(D){D.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(D,C,X,c){c||this._setMarkers([]);C=Math.round((X-C)/this.step);C>D&&(C=D);if(C<0||!isFinite(C))C=0;this._setMarkers(Array(C))},
_mergeClasses:function(D){return Object.keys(D).filter(function(C){return D[C]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(D){return!this.ignoreBarTouch||D.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(D){this._isRTL?this._incrementKey(D):this._decrementKey(D)},
_rightKey:function(D){this._isRTL?this._decrementKey(D):this._incrementKey(D)},
_incrementKey:function(D){this.disabled||(D.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),D.preventDefault())},
_decrementKey:function(D){this.disabled||(D.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),D.preventDefault())},
_changeValue:function(D){this.value=D.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(D){D.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.aZb._createRipple.call(this)},
_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=D?"":"none",this._ripple.holdDown=D)}});var WmG;var pOY;var vD=null,S_p=function(){};
_.S=S_p.prototype;_.S.fit=function(){};
_.S._discoverInfo=function(){};
_.S.resetFit=function(){};
_.S.refit=function(){};
_.S.position=function(){};
_.S.constrain=function(){};
_.S._sizeDimension=function(){};
_.S.__sizeDimension=function(){};
_.S.center=function(){};
_.S.__getNormalizedRect=function(){};
_.S.__getOffscreenArea=function(){};
_.S.__getPosition=function(){};
_.S.notifyResize=function(){};
_.S.assignParentResizable=function(){};
_.S.stopResizeNotificationsFor=function(){};
_.S._subscribeIronResize=function(){};
_.S._unsubscribeIronResize=function(){};
_.S.resizerShouldNotify=function(){};
_.S._onDescendantIronResize=function(){};
_.S._fireResize=function(){};
_.S._onIronRequestResizeNotifications=function(){};
_.S._parentResizableChanged=function(){};
_.S._notifyDescendant=function(){};
_.S._requestResizeNotifications=function(){};
_.S._findParent=function(){};
_.S.toggle=function(){};
_.S.open=function(){};
_.S.close=function(){};
_.S.cancel=function(){};
_.S.invalidateTabbables=function(){};
_.S._ensureSetup=function(){};
_.S._canceledChanged=function(){};
_.S._withBackdropChanged=function(){};
_.S._prepareRenderOpened=function(){};
_.S._finishRenderOpened=function(){};
_.S._finishRenderClosed=function(){};
_.S._preparePositioning=function(){};
_.S._finishPositioning=function(){};
_.S._applyFocus=function(){};
_.S._onCaptureClick=function(){};
_.S._onCaptureFocus=function(){};
_.S._onCaptureEsc=function(){};
_.S._onCaptureTab=function(){};
_.S._onIronResize=function(){};
_.S._onNodesChange=function(){};
_.S.__ensureFirstLastFocusables=function(){};
_.S.__openedChanged=function(){};
_.S.__deraf=function(){};
_.S.__updateScrollObservers=function(){};
_.S.__addScrollListeners=function(){};
_.S.__removeScrollListeners=function(){};
_.S.__isValidScrollAction=function(){};
_.S.__onCaptureScroll=function(){};
_.S.__saveScrollPosition=function(){};
_.S.__restoreScrollPosition=function(){};
_.S._setCanceled=function(){};
S_p=_.mZ({_template:function(){if(pOY!==void 0)return pOY;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;WmG===void 0&&(WmG=document.createElement("template"));var c=WmG;X.call(C,c.content.cloneNode(!0),D.content.firstChild);return pOY=D},
is:"tp-yt-paper-toast",behaviors:[_.$O],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(){_.Vb._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.aZ.requestAvailability()},
show:function(D){typeof D=="string"&&(D={text:D});for(var C in D)C.indexOf("_")===0?_.Vb._warn('The property "'+C+'" is private and was not set.'):C in this?this[C]=D[C]:_.Vb._warn('The property "'+C+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(D){D&&D.target===this&&D.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(vD&&vD!==this&&vD.close(),vD=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):vD===this&&(vD=null);_.Px._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(D){this.positionTarget=D},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Ulw=new _.A7("disablePersonalizationAction");var oxt=new _.A7("showDmaConsentFlowCommand");var WNN=new _.A7("showMmgNoticeCommand");var gd1=new _.A7("saveConsentAction");var adG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ft(D)};
_.h(adG,_.aH);var Idt=_.MDF(adG);var O66=new _.A7("updateTopbarAvatarAction");var AS6=new _.A7("channelHandleValidationResultRenderer");var PIw=new _.A7("generateHandleFromNameResultRenderer");var $lU=new _.A7("channelHandleInputRenderer");var vdk=new _.A7("copyLinkRenderer");var i6t=new _.A7("timedCommand");var kpY=new _.A7("clearCookieAction");var u01=new _.A7("getMultiPageMenuAction");var Q43=new _.A7("addToGuideSectionAction"),BuU=new _.A7("removeFromGuideSectionAction");var b6p=new _.A7("updateNotificationsUnseenCountAction");var rSt=new _.A7("resetChannelUnreadCountCommand");var KmG=new _.A7("resetSubscriptionsUnreadDotCommand");var hmG=new _.A7("selectLanguageCommand");var iWG=new _.A7("sendFeedbackAction");var xlo=new _.A7("uploadImageToScottyCommand");var Lmo=new _.A7("registerPromoCommand");var s41=new _.A7("setPushNotificationsEnabledCommand");var mlY=new _.A7("desktopTopbarRenderer");var emG=new _.A7("surveyFollowUpRenderer");var EdP=new _.A7("handlesClaimingRadioOptionRenderer");var t0G=new _.A7("hotkeyDialogRenderer");var Nuw=new _.A7("modifyReportFormCommand");var Y_3=new _.A7("accountLinkCommand");var ySt=new _.A7("accountUnlinkCommand");var ndo=new _.A7("logAccountLinkingEventCommand");var IVX=new _.A7("guideCollapsibleEntryRenderer");var wOp=new _.A7("guideDownloadsEntryRenderer");var aVo=new _.A7("guideEntryRenderer");var FmG=new _.A7("getLocationCommand");var Z6U=new _.A7("locationCollectionCommand");var Gpk=new _.A7("storiesItemViewModel");var V0N=new _.A7("addToRemoteQueueAction");var TuG=new _.A7("insertInRemoteQueueAction");var H61=new _.A7("removeFromRemoteQueueAction");var JS3=new _.A7("notificationRenderer");var Ggo=new _.A7("localWatchHistoryCommand");var two=new _.A7("pdgBuyFlowHeaderRenderer");var NIU=new _.A7("pdgColorSliderRenderer");var YKU=new _.A7("pdgCommentOptionRenderer");var y1t=new _.A7("pdgCommentPreviewRenderer");var nMX=new _.A7("superVodSelectableItemButtonRenderer");var wnt=new _.A7("switchButtonRenderer");var F3k=new _.A7("upsellDialogRenderer");var Zjt=new _.A7("feedbackQuestionRenderer"),GG6=new _.A7("feedbackOptionRenderer");var Vwo=new _.A7("sponsorshipsTierRenderer"),TIt=new _.A7("sponsorshipsPromotionChannelRenderer");var HjP=new _.A7("simpleSurveyMessageRenderer");var BtY=new _.A7("invokeInstrumentManagerAction");var J1p=new _.A7("logYpcFlowDismissCommand");var zHP=new _.A7("logYpcFlowStartCommand");var jrt=new _.A7("unlimitedCreateFamilyEndpoint");var Mwt=new _.A7("iconBadgeRenderer");var TdU=new _.A7("collaborativePlaylistVisibilityValidationRule");var qKX=function(D){_.eL.call(this,"channelMessage");this.message=D};
_.h(qKX,_.eL);var fDX=function(D){_.eL.call(this,"channelError");this.error=D};
_.h(fDX,_.eL);var dWo={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},RHP={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},lD6={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},DcG={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},CnY={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var iz=function(D){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 _.Ev;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;D&&(this.id=D.id||D.name,this.name=D.name,this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=D.app,this.type=D.type||"REMOTE_CONTROL",this.username=D.user||"",this.avatar=D.userAvatarUri||"",this.obfuscatedGaiaId=D.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=D.ownerObfuscatedGaiaId||"",this.castUserId=D.castUserId||"",this.theme=D.theme||"u",XhG(this,D.capabilities||""),cop(this,
D.compatibleSenderThemes||""),o6X(this,D.experiments||""),this.remoteControllerUrl=D.remoteControllerUrl||"",this.localChannelEncryptionKey=D.localChannelEncryptionKey||"",this.deviceContext=D.deviceContext,this.brand=D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=D.pairingType||"unknown",D=D.deviceInfo)&&(D=JSON.parse(D),this.brand=
D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
iz.prototype.copy=function(){var D={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&&(D.brand=this.brand);
this.model&&(D.model=this.model);this.year&&(D.year=this.year);this.os&&(D.os=this.os);this.osVersion&&(D.osVersion=this.osVersion);this.chipset&&(D.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(D.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(D.mdxDialServerType=this.mdxDialServerType);D=new iz(D);D.connected=this.connected;D.remoteControllerUrl=this.remoteControllerUrl;D.localChannelEncryptionKey=this.localChannelEncryptionKey;D.deviceContext=
this.deviceContext;D.castUserId=this.castUserId;return D};
iz.prototype.equals=function(D){return D?this.id==D.id:!1};
var XhG=function(D,C){D.capabilities.clear();_.Sz(C.split(","),_.AZ(_.ZI.contains,dWo)).forEach(function(X){D.capabilities.add(X)})},cop=function(D,C){D.compatibleSenderThemes.clear();
_.Sz(C.split(","),_.AZ(_.ZI.contains,RHP)).forEach(function(X){D.compatibleSenderThemes.add(X)})},o6X=function(D,C){D.experiments.clear();
C.split(",").forEach(function(X){D.experiments.add(X)})};_.WT(fT1,_.nF);_.S=fT1.prototype;_.S.JSC$20273_onTick_=function(){this.JSC$20271_interval_=Math.min(3E5,this.JSC$20271_interval_*2);this.JSC$20273_listener_();this.nextTickTime_&&this.start()};
_.S.start=function(){var D=this.JSC$20271_interval_+15E3*Math.random(),C=this.delay_;C.isActive()||C.start(D);this.nextTickTime_=Date.now()+D};
_.S.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.S.isActive=function(){return this.delay_.isActive()};
_.S.reset=function(){this.delay_.stop();this.JSC$20271_interval_=5E3};_.WT(yW,jLU);_.S=yW.prototype;_.S.subscribe=function(D,C,X){return this.pubsub_.subscribe(D,C,X)};
_.S.unsubscribe=function(D,C,X){return this.pubsub_.unsubscribe(D,C,X)};
_.S.unsubscribeByKey=function(D){return this.pubsub_.unsubscribeByKey(D)};
_.S.publish=function(D,C){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.S.dispose=function(){this.JSC$20274_disposed_||(this.JSC$20274_disposed_=!0,_.Ue(this.pubsub_),this.disconnect(),_.Ue(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20274_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.WE({})})};
_.S.isDisposed=function(){return this.JSC$20274_disposed_};
_.S.connect=function(D,C,X){var c=this,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return _.m$(O,2),c.useAsyncBrowserChannelHandler_?O.yield(c.connectPromise_,2):O.jumpTo(2);_.xF(O);if(c.JSC$20274_disposed_||c.JSC$20274_channel_&&c.JSC$20274_channel_.getState()==2&&!c.isInitialReconnectTimer_)return O.return();c.sCookie_="";c.isInitialReconnectTimer_||c.reconnectTimer_.stop();c.connectionParams_=D||null;c.connectUi_=C||0;W=c.JSC$20274_pathPrefix_+"/test";p=c.JSC$20274_pathPrefix_+"/bind";g=
new PD(X?X.firstTestResults:null,X?X.secondTestResults:null,c.enableAsyncTest_);if(a=c.JSC$20274_channel_)a.handler_=null;g.handler_=c;c.JSC$20274_channel_=g;if(c.useAsyncBrowserChannelHandler_)return c.connectPromise_=WSw(c).then(function(){return ph1(c,W,p,a,X)}),O.return(c.connectPromise_.then(function(){c.connectPromise_=_.WE()}));
ph1(c,W,p,a,X);return _.es(O,0)})};
var ph1=function(D,C,X,c,W){S$t(D);if(D.JSC$20274_channel_){var p=_.q6("ID_TOKEN"),g=D.JSC$20274_channel_.JSC$20226_extraHeaders_||{};p?g["x-youtube-identity-token"]=p:delete g["x-youtube-identity-token"];D.JSC$20274_channel_.JSC$20226_extraHeaders_=g}UcP(D);c?(c.getState(),D.JSC$20274_channel_.connect(C,X,D.defaultQueryParams_,c.sid_,c.JSC$20226_lastArrayId_)):W?D.JSC$20274_channel_.connect(C,X,D.defaultQueryParams_,W.sessionId,W.arrayId):D.JSC$20274_channel_.connect(C,X,D.defaultQueryParams_);D.isInitialReconnectTimer_&&
!D.reconnectTimer_.isActive()&&D.reconnectTimer_.start()};
yW.prototype.disconnect=function(D){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.WE())}finally{this.disconnectUi_=D||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),S$t(this),this.JSC$20274_channel_&&(this.JSC$20274_channel_.getState()==3&&Gcw(this.JSC$20274_channel_),this.JSC$20274_channel_.disconnect()),this.disconnectUi_=0}};
yW.prototype.sendMessage=function(D,C){var X=this,c;return _.I(function(W){switch(W.nextAddress){case 1:_.m$(W,2);if(!X.useAsyncBrowserChannelHandler_){W.jumpTo(2);break}return W.yield(X.connectPromise_,2);case 2:_.xF(W);if(X.JSC$20274_disposed_)return W.return();c={_sc:D};C&&_.ZI.extend(c,C);if(X.reconnectTimer_.isActive()||(X.JSC$20274_channel_?X.JSC$20274_channel_.getState():0)==2){X.JSC$20274_pendingMessages_.push(c);W.jumpTo(6);break}if(!X.isChannelOpened()){W.jumpTo(6);break}_.m$(W,8);if(!X.useAsyncBrowserChannelHandler_||
g6N(X,D)){W.jumpTo(8);break}return W.yield(WSw(X),8);case 8:_.xF(W,0,0,1);X.isChannelOpened()&&(g6N(X,D)||UcP(X),S$t(X),Zu1(X.JSC$20274_channel_,c));_.es(W,6,1);break;case 6:_.es(W,0)}})};
var g6N=function(D,C){return D.enableMdxAuthForConnectionOnly_?!0:D.disableMdxAuthForAdMessages_?Object.values(lD6).includes(C):D.disableMdxAuthForNonPlaybackMessages_?!Object.values(DcG).includes(C):D.disableMdxAuthForShortsMessages_?Object.values(CnY).includes(C):!1};
yW.prototype.JSC$20233_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.Ue(this.reconnectTimer_),this.reconnectTimer_=new fT1(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20274_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)a8t(this);else{var D=this.JSC$20274_pendingMessages_;this.JSC$20274_pendingMessages_=[];var C=D.length;UcP(this);I8U(this,
D,C);OdG(this)}else OdG(this)};
var a8t=function(D){var C,X;_.I(function(c){if(c.nextAddress==1)return _.m$(c,2),c.yield(WSw(D),2);_.xF(c);C=D.JSC$20274_pendingMessages_;D.JSC$20274_pendingMessages_=[];X=C.length;I8U(D,C,X);OdG(D);return _.es(c,0)})},I8U=function(D,C,X){for(var c=0;c<X;++c)Zu1(D.JSC$20274_channel_,C[c]);
OdG(D)},OdG=function(D){D.publish("handlerOpened");
D.JSC$20274_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.S=yW.prototype;_.S.JSC$20233_channelError=function(D){var C=D==2&&this.JSC$20274_channel_.JSC$20226_lastStatusCode_==401;D==4||C||this.reconnectTimer_.start();this.publish("handlerError",D,C);C=Object.keys(eN1).find(function(X){return eN1[X]===D});
this.JSC$20274_channelErrorCounter.increment("BROWSER_CHANNEL",C!=null?C:"UNKNOWN")};
_.S.JSC$20233_channelClosed=function(D,C){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(C)for(var X=C.length,c=0;c<X;++c){var W=C[c].map;W&&this.JSC$20274_pendingMessages_.push(W)}this.JSC$20274_channelClosedCounter.increment("BROWSER_CHANNEL");D&&this.pendingMapsOnClosedCounter.JSC$10097_streamzService.JSC$9952_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",D.length);C&&this.undeliveredMapsOnClosedCounter.JSC$10100_streamzService.JSC$9952_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
C.length)};
_.S.JSC$20233_channelSuccess=function(D,C){C!=null&&D!=null&&this.channelMessageSentCounter.increment()};
_.S.JSC$20233_getAdditionalParams=function(){var D={v:2};this.sCookie_&&(D.gsessionid=this.sCookie_);this.connectUi_!=0&&(D.ui=""+this.connectUi_);this.disconnectUi_!=0&&(D.ui=""+this.disconnectUi_);this.connectionParams_&&_.ZI.extend(D,this.connectionParams_);return D};
_.S.JSC$20233_channelHandleArray=function(D){D[0]=="S"?this.sCookie_=D[1]:D[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20274_channel_.disconnect()):this.publish("handlerMessage",new qWN(D[0],D[1]));this.JSC$20274_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.S.isChannelOpened=function(){return!!this.JSC$20274_channel_&&this.JSC$20274_channel_.getState()==3};
var S$t=function(D){if(D.JSC$20274_channel_){var C=D.JSC$20274_getXsrfToken_(),X=D.JSC$20274_channel_.JSC$20226_extraHeaders_||{};C?X["x-youtube-lounge-xsrf-token"]=C:delete X["x-youtube-lounge-xsrf-token"];D.JSC$20274_channel_.JSC$20226_extraHeaders_=X}},WSw=function(D){if(D.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.WE();
if(!D.enableCachedUpdateAuthorizationHeader_)return Ao1(D);D.updateAuthorizationHeaderPromise_===null&&(D.updateAuthorizationHeaderPromise_=Ao1(D));return D.updateAuthorizationHeaderPromise_},Ao1=function(D){return _.ZZ(D.getAuthorizationHeader_().then(function(C){PnG(D,C)}).thenCatch(function(){}),function(){D.updateAuthorizationHeaderPromise_=null})},PnG=function(D,C){if(D.JSC$20274_channel_){var X=D.JSC$20274_channel_.JSC$20226_extraHeaders_||{};
C&&Object.keys(C).length>0?X=Object.assign({},X,C):delete X.Authorization;D.JSC$20274_channel_.JSC$20226_extraHeaders_=X}},UcP=function(D){D.getAuthorizationHeaderSync_&&!D.useAsyncBrowserChannelHandler_&&PnG(D,D.getAuthorizationHeaderSync_())};
_.S=yW.prototype;_.S.setLoungeToken=function(D){(this.defaultQueryParams_.loungeIdToken=D)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20274_channel_){var C=this.JSC$20274_channel_.JSC$20226_extraHeaders_||{};D?C["X-YouTube-LoungeId-Token"]=D:delete C["X-YouTube-LoungeId-Token"];this.JSC$20274_channel_.JSC$20226_extraHeaders_=C}};
_.S.getDeviceId=function(){return this.defaultQueryParams_.id};
_.S.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.S.reconnect=function(){var D=this.reconnectTimer_;D.delay_.fire();D.start()};
_.S.safeReconnect_=function(){var D=this.JSC$20274_channel_,C=0;D.JSC$20226_backChannelRequest_&&C++;D.forwardChannelRequest_&&C++;C==0&&this.connect(this.connectionParams_,this.connectUi_)};var Zj=function(D,C){var X=D.basePath;D.supportCors&&(X=D.scheme+"://"+D.domain+D.port+D.basePath);return _.aQ(X+C,{})};
owU.prototype.sendRequest=function(D,C,X,c,W,p,g){D={format:p?"RAW":"JSON",method:D,context:this,timeout:5E3,withCredentials:!!g,onSuccess:_.AZ(this.JSC$20280_onSuccess_,c,!p),onError:_.AZ(this.onError_,W),onTimeout:_.AZ(this.JSC$20280_onTimeout_,W)};X&&(D.postParams=X,D.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.eq(C,D)};
owU.prototype.JSC$20280_onSuccess_=function(D,C,X,c){C?D(c):D({text:X.responseText})};
owU.prototype.onError_=function(D,C){D(Error("Zk`"+C.status))};
owU.prototype.JSC$20280_onTimeout_=function(D){D(Error("$k"))};var U8p=function(D,C){return!!C&&(D.id==C||D.uuid==C)},$c6=function(D){return{name:D.name,
screenId:D.id,loungeToken:D.token,dialId:D.uuid,screenIdType:D.idType,screenIdSecret:D.secret}},v6G=function(D){return new nB(D)},id1=function(D){return Array.isArray(D)?_.Gv(D,v6G):[]},aa6=function(D){if(!D)return"null";
var C=D.token?".."+D.token.slice(-6):"-",X=D.uuid?".."+D.uuid.slice(-6):"-",c=D.secret?".."+D.secret.slice(-6):"-";return'{name:"'+D.name+'",id:'+D.id.substr(0,6)+"..,token:"+(C+",uuid:"+X+",idType:"+D.idType+",secret:")+(c+"}")},wRo=function(D){return Array.isArray(D)?"["+_.Gv(D,aa6).join(",")+"]":"null"};var $86="",FF=null;var hDG=function(D,C){_.yg.call(this);var X=this;this.handler=D();this.handler.subscribe("handlerOpened",this.JSC$20287_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(c,W){X.onError(W)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=C};
_.h(hDG,_.yg);_.S=hDG.prototype;_.S.connect=function(D,C,X){this.handler.connect(D,C,X)};
_.S.disconnect=function(D){this.handler.disconnect(D)};
_.S.reconnect=function(){this.handler.reconnect()};
_.S.getDeviceId=function(){return this.handler.getDeviceId()};
_.S.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.S.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.S.JSC$20287_onOpened=function(){this.dispatchEvent("channelOpened");var D=this.handler,C=this.currentScreenId;_.rL("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!D.JSC$20274_channel_.useChunked_,sessionId:D.JSC$20274_channel_.sid_,arrayId:D.JSC$20274_channel_.JSC$20226_lastArrayId_});_.rL("yt-remote-session-screen-id",C);D=gwN();C=at1();_.Zn(D,C)||D.push(C);PT6(D);ATp()};
_.S.onClosed=function(){this.dispatchEvent("channelClosed")};
_.S.onMessage=function(D){this.dispatchEvent(new qKX(D))};
_.S.onError=function(D){this.dispatchEvent(new fDX(D?1:0))};
_.S.sendMessage=function(D,C){this.handler.sendMessage(D,C)};
_.S.setLoungeToken=function(D){this.handler.setLoungeToken(D)};
_.S.dispose=function(){this.handler.dispose()};var KwX=function(D,C,X){var c=this;X=X===void 0?function(){return""}:X;
var W=W===void 0?new DxG:W;var p=p===void 0?new _.tg:p;this.pathPrefix=D;this.defaultQueryParams=C;this.getXsrfToken=X;this.JSC$20290_pubsub=p;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new fT1(function(){var g;((g=c.channel)==null?void 0:s13((new cbp(g,g.JSC$20197_channel_)).JSC$20207_channel_.forwardChannelRequestPool_))===0&&c.connect(c.connectionParams,c.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20290_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20290_channelOpenedCounter=new dok;this.JSC$20290_channelClosedCounter=new R_o;this.JSC$20290_channelMessageReceivedCounter=new D8t;this.JSC$20290_channelErrorCounter=new CTX};
KwX.prototype.connect=function(D,C){D=D===void 0?{}:D;C=C===void 0?0:C;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=D,this.connectUi=C,kaP(this),(D=_.q6("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=D: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 aP(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,uBP(this))};
var uBP=function(D){_.Kb(D.channel,"w",function(){D.channelState=3;D.reconnectTimer.reset();D.connectionParams=null;D.connectUi=0;for(var C=_.U(D.nonAckedMessagesOnChannelClosed),X=C.next();!X.done;X=C.next())X=X.value,D.channel&&D.channel.send(X);D.nonAckedMessagesOnChannelClosed=[];D.publish("webChannelOpened");D.JSC$20290_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Kb(D.channel,"x",function(){D.channelState=0;D.reconnectTimer.isActive()||D.publish("webChannelClosed");var C,X=(C=D.channel)==null?void 0:ocN(new cbp(C,C.JSC$20197_channel_));X&&(D.nonAckedMessagesOnChannelClosed=[].concat(_.VB(X)));D.JSC$20290_channelClosedCounter.increment("WEB_CHANNEL")});
_.Kb(D.channel,"z",function(C){var X=C.data;X[0]==="gracefulReconnect"?(D.reconnectTimer.start(),D.channel&&D.channel.close()):D.publish("webChannelMessage",new qWN(X[0],X[1]));D.lastStatusCode=C.statusCode;D.JSC$20290_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Kb(D.channel,"y",function(){D.lastStatusCode===401||D.reconnectTimer.start();D.publish("webChannelError");D.JSC$20290_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.S=KwX.prototype;_.S.disconnect=function(D){this.disconnectUi=D===void 0?0:D;this.reconnectTimer.stop();kaP(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.S.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.S.reconnect=function(){var D=this.reconnectTimer;D.delay_.fire();D.start()};
_.S.sendMessage=function(D,C){this.channel&&(kaP(this),D=Object.assign({},{_sc:D},C),this.channel.send(D))};
_.S.setLoungeToken=function(D){D||this.reconnectTimer.stop();D?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=D:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var kaP=function(D){var C=D.getXsrfToken();C?D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=C:delete D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.S=KwX.prototype;_.S.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.S.publish=function(D){return this.JSC$20290_pubsub.publish.apply(this.JSC$20290_pubsub,[D].concat(_.VB(_.MJ.apply(1,arguments))))};
_.S.subscribe=function(D,C,X){return this.JSC$20290_pubsub.subscribe(D,C,X)};
_.S.unsubscribe=function(D,C,X){return this.JSC$20290_pubsub.unsubscribe(D,C,X)};
_.S.unsubscribeByKey=function(D){return this.JSC$20290_pubsub.unsubscribeByKey(D)};
_.S.dispose=function(){this.JSC$20290_disposed||(this.JSC$20290_disposed=!0,_.Ue(this.JSC$20290_pubsub),this.disconnect(),_.Ue(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.S.isDisposed=function(){return this.JSC$20290_disposed};var rTU=function(D){_.yg.call(this);this.webChannelService=D();this.webChannelService.subscribe("webChannelOpened",this.JSC$20298_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.h(rTU,_.yg);_.S=rTU.prototype;_.S.connect=function(D,C){this.webChannelService.connect(D,C)};
_.S.disconnect=function(D){this.webChannelService.disconnect(D)};
_.S.reconnect=function(){this.webChannelService.reconnect()};
_.S.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.S.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.S.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.S.JSC$20298_onOpened=function(){this.dispatchEvent("channelOpened")};
_.S.onClosed=function(){this.dispatchEvent("channelClosed")};
_.S.onMessage=function(D){this.dispatchEvent(new qKX(D))};
_.S.onError=function(){this.dispatchEvent(new fDX(this.webChannelService.lastStatusCode===401?1:0))};
_.S.sendMessage=function(D,C){this.webChannelService.sendMessage(D,C)};
_.S.setLoungeToken=function(D){this.webChannelService.setLoungeToken(D)};
_.S.dispose=function(){this.webChannelService.dispose()};var nw3=Date.now(),G9=null,Y3w=Array(50),NBt=-1,yTt=!1;_.WT(HU,_.PU);HU.prototype.getScreens=function(){return this.screens};
HU.prototype.contains=function(D){return!!S3G(this.screens,D)};
HU.prototype.get=function(D){return D?wK(this.screens,D):null};
var QfG=function(D,C){var X=D.get(C.uuid)||D.get(C.id);if(X)return D=X.name,X.id=C.id||X.id,X.name=C.name,X.token=C.token,X.uuid=C.uuid||X.uuid,X.name!=D;D.screens.push(C);return!0},B4N=function(D,C){var X=D.screens.length!=C.length;
D.screens=_.Sz(D.screens,function(p){return!!S3G(C,p)});
for(var c=C.length,W=0;W<c;W++)X=QfG(D,C[W])||X;return X},bdU=function(D,C){var X=D.screens.length;
D.screens=_.Sz(D.screens,function(c){return!(c||C?!c!=!C?0:c.id==C.id:1)});
return D.screens.length<X};
HU.prototype.info=function(D){VW(this.JSC$20299_logName_,D)};var ro3=function(D,C,X,c,W){_.PU.call(this);this.JSC$20302_http_=D;this.pairingCode_=C;this.deviceId_=X;this.friendlyName_=c;this.enableShortLivedLoungeToken_=W;this.pollIndex_=0;this.JSC$20302_xhr_=null;this.JSC$20302_timer_=NaN};
_.h(ro3,_.PU);_.S=ro3.prototype;_.S.start=function(){!this.JSC$20302_xhr_&&isNaN(this.JSC$20302_timer_)&&this.poll_()};
_.S.stop=function(){this.JSC$20302_xhr_&&(this.JSC$20302_xhr_.abort(),this.JSC$20302_xhr_=null);isNaN(this.JSC$20302_timer_)||(_.sY(this.JSC$20302_timer_),this.JSC$20302_timer_=NaN)};
_.S.disposeInternal=function(){this.stop();_.PU.prototype.disposeInternal.call(this)};
_.S.poll_=function(){this.JSC$20302_timer_=NaN;this.JSC$20302_xhr_=_.eq(Zj(this.JSC$20302_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.wo)(this.JSC$20304_onSuccess_,this),onError:(0,_.wo)(this.onError_,this),onTimeout:(0,_.wo)(this.JSC$20304_onTimeout_,this)})};
_.S.JSC$20304_onSuccess_=function(D,C){this.JSC$20302_xhr_=null;D=C.screen||{};D.dialId=this.deviceId_;D.name=this.friendlyName_;C=-1;this.enableShortLivedLoungeToken_&&D.shortLivedLoungeToken&&D.shortLivedLoungeToken.value&&D.shortLivedLoungeToken.refreshIntervalMs&&(D.screenIdType="shortLived",D.loungeToken=D.shortLivedLoungeToken.value,C=D.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new nB(D),C)};
_.S.onError_=function(D){this.JSC$20302_xhr_=null;D.status&&D.status==404?this.pollIndex_>=KSG.length?this.publish("pairingFailed",Error("al")):(D=KSG[this.pollIndex_],this.JSC$20302_timer_=_.xz((0,_.wo)(this.poll_,this),D),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+D.status))};
_.S.JSC$20304_onTimeout_=function(){this.JSC$20302_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var KSG=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.WT(z9,HU);_.S=z9.prototype;_.S.start=function(){JQ(this)&&this.publish("screenChange");!_.KH("yt-remote-lounge-token-expiration")&&hFU(this);_.sY(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.xz((0,_.wo)(this.start,this),1E4)};
_.S.add=function(D,C){JQ(this);QfG(this,D);xck(this,!1);this.publish("screenChange");C(D);D.token||hFU(this)};
_.S.remove=function(D,C){var X=JQ(this);bdU(this,D)&&(xck(this,!1),X=!0);C(D);X&&this.publish("screenChange")};
_.S.updateName=function(D,C,X,c){var W=JQ(this),p=this.get(D.id);p?(p.name!=C&&(p.name=C,xck(this,!1),W=!0),X(D)):c(Error("dl"));W&&this.publish("screenChange")};
_.S.disposeInternal=function(){_.sY(this.loungeTokenRefreshTimer_);z9.superClass_.disposeInternal.call(this)};
var hFU=function(D){if(D.screens.length){var C=_.Gv(D.screens,function(c){return c.id}),X=Zj(D.JSC$20306_http_,"/pairing/get_lounge_token_batch");
D.JSC$20306_http_.sendRequest("POST",X,{screen_ids:C.join(",")},(0,_.wo)(D.handleLoungeTokens_,D),(0,_.wo)(D.handleLoungeTokenError_,D))}};
z9.prototype.handleLoungeTokens_=function(D){JQ(this);var C=this.screens.length;D=D&&D.screens||[];for(var X=D.length,c=0;c<X;++c){var W=D[c],p=this.get(W.screenId);p&&(p.token=W.loungeToken,--C)}xck(this,!C);C&&VW(this.JSC$20299_logName_,"Missed "+C+" lounge tokens.")};
z9.prototype.handleLoungeTokenError_=function(D){VW(this.JSC$20299_logName_,"Requesting lounge tokens failed: "+D)};
var JQ=function(D){if(_.b("deprecate_pair_servlet_enabled"))return B4N(D,[]);var C=id1(inX());C=_.Sz(C,function(X){return!X.uuid});
return B4N(D,C)},xck=function(D,C){uxw(_.Gv(D.screens,$c6));
C&&k_P()};var kq=function(D,C){_.PU.call(this);this.getScreensToCheck_=C;C=(C=_.KH("yt-remote-online-screen-ids")||"")?C.split(","):[];for(var X={},c=this.getScreensToCheck_(),W=c.length,p=0;p<W;++p){var g=c[p].id;X[g]=_.Zn(C,g)}this.screenIdSet_=X;this.JSC$20309_http_=D;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;LSG("Initialized with "+(0,_.Tg)(this.screenIdSet_))};
_.h(kq,_.PU);kq.prototype.isOnline=function(D){return!!this.screenIdSet_[D]};
kq.prototype.start=function(){var D=parseInt(_.KH("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.ok()-144E5<D?0:D)?sft(this):(this.fastCheckEndTime_=_.ok()+3E5,_.rL("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
kq.prototype.isEmpty=function(){return _.ZI.isEmpty(this.screenIdSet_)};
kq.prototype.update=function(){LSG("Updating availability on schedule.");var D=this.getScreensToCheck_(),C=_.ZI.filter(this.screenIdSet_,function(X,c){return X&&!!wK(D,c)},this);
mc3(this,C)};
var eFN=function(D,C,X){var c=Zj(D.JSC$20309_http_,"/pairing/get_screen_availability");D.JSC$20309_http_.sendRequest("POST",c,{lounge_token:C.token},(0,_.wo)(function(W){W=W.screens||[];for(var p=W.length,g=0;g<p;++g)if(W[g].loungeToken==C.token){X(W[g].status=="online");return}X(!1)},D),(0,_.wo)(function(){X(!1)},D))};
kq.prototype.disposeInternal=function(){_.sY(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.PU.prototype.disposeInternal.call(this)};
var mc3=function(D,C){a:if(_.ZI.getCount(C)!=_.ZI.getCount(D.screenIdSet_))var X=!1;else{X=_.ZI.getKeys(C);for(var c=X.length,W=0;W<c;++W)if(!D.screenIdSet_[X[W]]){X=!1;break a}X=!0}X||(LSG("Updated online screens: "+(0,_.Tg)(D.screenIdSet_)),D.screenIdSet_=C,D.publish("screenChange"));E6P(D)},sft=function(D){isNaN(D.refreshTimer_)||_.sY(D.refreshTimer_);
D.refreshTimer_=_.xz((0,_.wo)(D.requestScreenAvailability_,D),D.fastCheckEndTime_>0&&D.fastCheckEndTime_<_.ok()?2E4:1E4)};
kq.prototype.requestScreenAvailability_=function(){_.sY(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var D=tlG(this);if(_.ZI.getCount(D)){var C=Zj(this.JSC$20309_http_,"/pairing/get_screen_availability"),X={lounge_token:_.ZI.getKeys(D).join(",")};this.currentRequest_=this.JSC$20309_http_.sendRequest("POST",C,X,(0,_.wo)(this.onScreenAvailability_,this,D),(0,_.wo)(this.onScreenAvailabilityError_,this))}else mc3(this,{}),sft(this)};
kq.prototype.onScreenAvailability_=function(D,C){this.currentRequest_=null;var X=_.ZI.getKeys(tlG(this));if(_.lt(X,_.ZI.getKeys(D))){C=C.screens||[];X={};for(var c=C.length,W=0;W<c;++W)X[D[C[W].loungeToken]]=C[W].status=="online";mc3(this,X);sft(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
kq.prototype.onScreenAvailabilityError_=function(D){this.warn_("Screen availability failed: "+D);this.currentRequest_=null;sft(this)};
var LSG=function(D){VW("OnlineScreenService",D)};
kq.prototype.warn_=function(D){VW("OnlineScreenService",D)};
var tlG=function(D){var C={};_.pC(D.getScreensToCheck_(),function(X){X.token?C[X.token]=X.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return C},E6P=function(D){D=_.ZI.getKeys(_.ZI.filter(D.screenIdSet_,function(C){return C}));
D.sort(_.yW3);D.length?_.rL("yt-remote-online-screen-ids",D.join(","),60):_.h9("yt-remote-online-screen-ids")};_.WT(jH,HU);_.S=jH.prototype;_.S.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.S.add=function(D,C,X){this.localScreenService_.add(D,C,X)};
_.S.remove=function(D,C,X){this.localScreenService_.remove(D,C,X);this.onlineScreenService_.update()};
_.S.updateName=function(D,C,X,c){this.localScreenService_.contains(D)?this.localScreenService_.updateName(D,C,X,c):(D="Updating name of unknown screen: "+D.name,VW(this.JSC$20299_logName_,D),c(Error(D)))};
_.S.getScreens=function(D){return D?this.screens:rvt(this.screens,_.Sz(this.automaticScreens_,function(C){return!this.contains(C)},this))};
_.S.JSC$20314_getOnlineScreens=function(){return _.Sz(this.getScreens(!0),function(D){return this.onlineScreenService_.isOnline(D.id)},this)};
var Y$w=function(D,C,X,c,W,p){D.info("getAutomaticScreenByIds "+X+" / "+C);X||(X=D.deviceToScreenId_[C]);var g=D.getScreens(),a=X?wK(g,X):null;X&&(D.disableAutomaticScreenCache_||a)||(a=wK(g,C));if(a){a.uuid=C;var O=uz(D,a);eFN(D.onlineScreenService_,O,function(P){W(P?O:null)})}else X?N4t(D,X,(0,_.wo)(function(P){var k=uz(this,new nB({name:c,
screenId:X,loungeToken:P,dialId:C||""}));eFN(this.onlineScreenService_,k,function(u){W(u?k:null)})},D),p):W(null)};
jH.prototype.JSC$20314_getScreenByPollingPairingCode=function(D,C,X,c,W,p){var g=this;this.info("getDialScreenByPairingCode "+D+" / "+C);var a=new ro3(this.JSC$20312_http_,D,C,X,c);a.subscribe("pairingComplete",function(O,P){_.Ue(a);W(uz(g,O),P)});
a.subscribe("pairingFailed",function(O){_.Ue(a);p(O)});
a.start();return(0,_.wo)(a.stop,a)};
var yo1=function(D,C){for(var X=D.screens.length,c=0;c<X;++c)if(D.screens[c].name==C)return D.screens[c];return null};
jH.prototype.JSC$20314_getScreenByPairingCode=function(D,C,X,c){_.eq(Zj(this.JSC$20312_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:D},timeout:5E3,onSuccess:(0,_.wo)(function(W,p){W=new nB(p.screen||{});if(!W.name||yo1(this,W.name)){a:{p=W.name;for(var g=2,a=C(p,g);yo1(this,a);){g++;if(g>20)break a;a=C(p,g)}p=a}W.name=p}X(uz(this,W))},this),
onError:(0,_.wo)(function(W){c(Error("el`"+W.status))},this),
onTimeout:(0,_.wo)(function(){c(Error("fl"))},this)})};
var n6t=function(D,C,X){eFN(D.onlineScreenService_,C,X)};
jH.prototype.disposeInternal=function(){_.Ue(this.localScreenService_);_.Ue(this.onlineScreenService_);jH.superClass_.disposeInternal.call(this)};
var N4t=function(D,C,X,c){D.info("requestLoungeToken_ for "+C);var W={postParams:{screen_ids:C},method:"POST",context:D,onSuccess:function(p,g){p=g&&g.screens||[];p[0]&&p[0].screenId==C?X(p[0].loungeToken):c(Error("gl"))},
onError:function(){c(Error("hl"))}};
_.eq(Zj(D.JSC$20312_http_,"/pairing/get_lounge_token_batch"),W)},whN=function(D){D.screens=D.localScreenService_.getScreens();
for(var C=_.ZI.transpose(D.deviceToScreenId_),X=D.screens.length,c=0;c<X;++c){var W=D.screens[c];W.uuid=C[W.id]||""}D.info("Updated manual screens: "+wRo(D.screens))};
jH.prototype.handleScreenChange_=function(){whN(this);this.publish("screenChange");this.onlineScreenService_.update()};
var FwN=function(D){FSt(D);D.localScreenService_=new z9(D.JSC$20312_http_);D.localScreenService_.subscribe("screenChange",(0,_.wo)(D.handleScreenChange_,D));whN(D);D.disableAutomaticScreenCache_||(D.automaticScreens_=id1(_.KH("yt-remote-automatic-screen-cache")||[]));FSt(D);D.info("Initializing automatic screens: "+wRo(D.automaticScreens_));D.onlineScreenService_=new kq(D.JSC$20312_http_,(0,_.wo)(D.getScreens,D,!0));D.onlineScreenService_.subscribe("screenChange",(0,_.wo)(function(){this.publish("onlineScreenChange")},
D))},uz=function(D,C){var X=D.get(C.id);
X?(X.uuid=C.uuid,C=X):((X=wK(D.automaticScreens_,C.uuid))?(X.id=C.id,X.token=C.token,C=X):D.automaticScreens_.push(C),D.disableAutomaticScreenCache_||Zd3(D));FSt(D);D.deviceToScreenId_[C.uuid]=C.id;_.rL("yt-remote-device-id-map",D.deviceToScreenId_,31536E3);return C},Zd3=function(D){D=_.Sz(D.automaticScreens_,function(C){return C.idType!="shortLived"});
_.rL("yt-remote-automatic-screen-cache",_.Gv(D,$c6))},FSt=function(D){D.deviceToScreenId_=_.KH("yt-remote-device-id-map")||{}};
jH.prototype.dispose=jH.prototype.dispose;_.WT(MZ,_.PU);var Qx=function(D,C){D.screen_=C;D.publish("sessionScreen",D.screen_)},GaN=function(D,C){D.screen_&&(D.screen_.token=C,uz(D.JSC$20316_screenService_,D.screen_));
D.publish("sessionScreen",D.screen_)};
MZ.prototype.onSessionStopped=function(D){this.isDisposed()||(D&&(BD(this,""+D),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
MZ.prototype.info=function(D){VW(this.JSC$20316_logName_,D)};
var BD=function(D,C){VW(D.JSC$20316_logName_,C)};
MZ.prototype.JSC$20318_getCastSession=function(){return null};
MZ.prototype.setDisplayStatus=function(D){var C=this.receiver_;D?(C.displayStatus=new chrome.cast.ReceiverDisplayStatus(D,[]),C.displayStatus.showStop=!0):C.displayStatus=null;chrome.cast.setReceiverDisplayStatus(C,(0,_.wo)(function(){this.info("Updated receiver status for "+C.friendlyName+": "+D)},this),(0,_.wo)(function(){BD(this,"Failed to update receiver status for: "+C.friendlyName)},this))};
MZ.prototype.disposeInternal=function(){this.setDisplayStatus("");MZ.superClass_.disposeInternal.call(this)};var bz=function(D,C,X){MZ.call(this,D,C,"CastSession");var c=this;this.config_=X;this.JSC$20321_session_=null;this.JSC$20321_boundSessionUpdate_=(0,_.wo)(this.JSC$20323_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.wo)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.xz(function(){VlN(c,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20321_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20321_isInitLoungeToken_=!1;this.JSC$20321_lastLoungeTokenRefreshError_="unknown"};
_.h(bz,MZ);_.S=bz.prototype;
_.S.setCastSession=function(D){if(this.JSC$20321_session_){if(this.JSC$20321_session_==D)return;BD(this,"Overriding cast session with new session object");T4t(this);this.JSC$20321_isInitLoungeToken_=!1;this.JSC$20321_lastLoungeTokenRefreshError_="unknown";this.JSC$20321_session_.removeUpdateListener(this.JSC$20321_boundSessionUpdate_);this.JSC$20321_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20321_session_=D;this.JSC$20321_session_.addUpdateListener(this.JSC$20321_boundSessionUpdate_);this.JSC$20321_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Hd6(this,"getMdxSessionStatus")};
_.S.launchWithParams=function(D){this.info("launchWithParams no-op for Cast: "+(0,_.Tg)(D))};
_.S.stop=function(){if(this.JSC$20321_session_)this.JSC$20321_session_.stop((0,_.wo)(function(){this.onSessionStopped()},this),(0,_.wo)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.S.setDisplayStatus=function(){};
_.S.disposeInternal=function(){this.info("disposeInternal");T4t(this);this.JSC$20321_session_&&(this.JSC$20321_session_.removeUpdateListener(this.JSC$20321_boundSessionUpdate_),this.JSC$20321_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20321_session_=null;MZ.prototype.disposeInternal.call(this)};
var zFP=function(D,C){_.sY(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0;C==0?JoG(D):D.getLoungeTokenTimeoutKey_=_.xz(function(){JoG(D)},C)},JoG=function(D){Hd6(D,"getLoungeToken");
_.sY(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=_.xz(function(){jfX(D,null)},3E4)},Hd6=function(D,C){D.info("sendYoutubeMessage_: "+C+" "+(0,_.Tg)(void 0));
var X={};X.type=C;D.JSC$20321_session_?D.JSC$20321_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",X,function(){},(0,_.wo)(function(){BD(this,"Failed to send message: "+C+".")},D)):BD(D,"Sending yt message without session: "+(0,_.Tg)(X))};
bz.prototype.onYoutubeMessage_=function(D,C){if(!this.isDisposed())if(C)if(C=(0,_.bE)(C),_.MR(C))switch(D=""+C.type,C=C.data||{},this.info("onYoutubeMessage_: "+D+" "+(0,_.Tg)(C)),D){case "mdxSessionStatus":VlN(this,C);break;case "loungeToken":jfX(this,C);break;default:BD(this,"Unknown youtube message: "+D)}else BD(this,"Unable to parse message.");else BD(this,"No data in message.")};
var Mlt=function(D,C){if(C)D.info("onConnectedScreenId_: Received screenId: "+C),D.screen_&&D.screen_.id==C||D.getScreen_(C,function(X){Qx(D,X)},function(){return D.onSessionStopped()},5);
else D.onSessionStopped(Error("kl"))},f8w=function(D,C,X){D.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(C));
var c=new nB(C);q$t(D,c,function(W){W?(D.JSC$20321_isInitLoungeToken_=!0,uz(D.JSC$20316_screenService_,c),Qx(D,c),D.JSC$20321_lastLoungeTokenRefreshError_="unknown",zFP(D,X)):(_.Re(Error("ll`"+JSON.stringify(C))),D.onSessionStopped())},5)},VlN=function(D,C){_.sY(D.sessionStatusTimeoutKey_);
D.sessionStatusTimeoutKey_=0;if(C)D.config_.enableCastLoungeToken&&C.loungeToken?C.deviceId?D.screen_&&D.screen_.uuid==C.deviceId||(C.loungeTokenRefreshIntervalMs?f8w(D,{name:D.receiver_.friendlyName,screenId:C.screenId,loungeToken:C.loungeToken,dialId:C.deviceId,screenIdType:"shortLived"},C.loungeTokenRefreshIntervalMs):(_.Re(Error("nl`"+JSON.stringify(C))),Mlt(D,C.screenId))):(_.Re(Error("ml`"+JSON.stringify(C))),Mlt(D,C.screenId)):Mlt(D,C.screenId);else D.onSessionStopped(Error("kl"))},jfX=function(D,
C){_.sY(D.onLoungeTokenTimeoutKey_);
D.onLoungeTokenTimeoutKey_=0;var X=null;if(C)if(C.loungeToken){var c;((c=D.screen_)==null?void 0:c.token)==C.loungeToken&&(X="staleLoungeToken")}else X="missingLoungeToken";else X="noLoungeTokenResponse";X?(D.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(C)+", error: "+X)),D.JSC$20321_lastLoungeTokenRefreshError_=X,zFP(D,3E4)):(GaN(D,C.loungeToken),D.JSC$20321_isInitLoungeToken_=!1,D.JSC$20321_lastLoungeTokenRefreshError_="unknown",zFP(D,C.loungeTokenRefreshIntervalMs))};
bz.prototype.getScreen_=function(D,C,X,c){_.sY(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Y$w(this.JSC$20316_screenService_,this.receiver_.label,D,this.receiver_.friendlyName,(0,_.wo)(function(W){W?C(W):c>=0?(BD(this,"Screen "+D+" appears to be offline. "+c+" retries left."),this.getScreenTimeoutKey_=_.xz((0,_.wo)(this.getScreen_,this,D,C,X,c-1),300)):X(Error("ol"))},this),X)};
var q$t=function(D,C,X,c){_.sY(D.JSC$20321_checkScreenAvailabilityTimeoutKey_);D.JSC$20321_checkScreenAvailabilityTimeoutKey_=0;n6t(D.JSC$20316_screenService_,C,function(W){W||c<0?X(W):D.JSC$20321_checkScreenAvailabilityTimeoutKey_=_.xz(function(){q$t(D,C,X,c-1)},300)})};
bz.prototype.JSC$20318_getCastSession=function(){return this.JSC$20321_session_};
bz.prototype.JSC$20323_onSessionUpdate_=function(D){this.isDisposed()||D||(BD(this,"Cast session died."),this.onSessionStopped())};
var T4t=function(D){_.sY(D.getScreenTimeoutKey_);D.getScreenTimeoutKey_=0;_.sY(D.JSC$20321_checkScreenAvailabilityTimeoutKey_);D.JSC$20321_checkScreenAvailabilityTimeoutKey_=0;_.sY(D.sessionStatusTimeoutKey_);D.sessionStatusTimeoutKey_=0;_.sY(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=0;_.sY(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0};var r7=function(D,C,X,c){MZ.call(this,D,C,"DialSession");this.config_=c;this.JSC$20325_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20325_theme_=X;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20325_deferredLaunchDeadlineTimer_=NaN;this.JSC$20325_boundSessionUpdate_=(0,_.wo)(this.JSC$20327_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20325_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20325_isInitLoungeToken_=!1;this.JSC$20325_lastLoungeTokenRefreshError_="unknown"};
_.h(r7,MZ);r7.prototype.setCastSession=function(D){this.JSC$20325_session_=D;this.JSC$20325_session_.addUpdateListener(this.JSC$20325_boundSessionUpdate_)};
r7.prototype.launchWithParams=function(D){this.connectData_=D;this.deferredLaunch_()};
r7.prototype.stop=function(){dc1(this);if(this.JSC$20325_session_)this.JSC$20325_session_.stop((0,_.wo)(this.onSessionStopped,this,null),(0,_.wo)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
r7.prototype.disposeInternal=function(){dc1(this);this.JSC$20325_session_&&this.JSC$20325_session_.removeUpdateListener(this.JSC$20325_boundSessionUpdate_);this.JSC$20325_session_=null;MZ.prototype.disposeInternal.call(this)};
var RFo=function(D){var C;return!!(D.config_.enableDialLoungeToken&&((C=D.JSC$20325_session_)==null?0:C.getDialAppInfo))},DBY=function(D){D.cancelPolling_=D.JSC$20316_screenService_.JSC$20314_getScreenByPollingPairingCode(D.reversePairingCode_,D.receiver_.label,D.receiver_.friendlyName,RFo(D),function(C,X){D.cancelPolling_=function(){};
D.JSC$20325_isInitLoungeToken_=!0;Qx(D,C);C.idType=="shortLived"&&X>0&&l81(D,X)},function(C){D.cancelPolling_=function(){};
D.onSessionStopped(C)})};
r7.prototype.JSC$20327_onSessionUpdate_=function(D){this.isDisposed()||D||(BD(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var C$X=function(D){var C={};C.pairingCode=D.reversePairingCode_;C.theme=D.JSC$20325_theme_;bnt()&&(C.env_useStageMdx=1);return _.EY(C)},X3G=function(D){return new Promise(function(C){D.reversePairingCode_=WwG();
if(D.connectData_){var X=new chrome.cast.DialLaunchResponse(!0,C$X(D));C(X);DBY(D)}else D.deferredLaunch_=function(){_.sY(D.JSC$20325_deferredLaunchDeadlineTimer_);D.deferredLaunch_=function(){};
D.JSC$20325_deferredLaunchDeadlineTimer_=NaN;var c=new chrome.cast.DialLaunchResponse(!0,C$X(D));C(c);DBY(D)},D.JSC$20325_deferredLaunchDeadlineTimer_=_.xz(function(){D.deferredLaunch_()},100)})},oB3=function(D,C,X){D.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(C));
var c=new nB(C);return(new Promise(function(W){cNk(D,c,function(p){p?(D.JSC$20325_isInitLoungeToken_=!0,uz(D.JSC$20316_screenService_,c),Qx(D,c),l81(D,X)):_.Re(Error("ql`"+JSON.stringify(C)));W(p)},5)})).then(function(W){return W?new chrome.cast.DialLaunchResponse(!1):X3G(D)})},WAk=function(D,C){var X=D.launchData_.receiver.label,c=D.receiver_.friendlyName;
return(new Promise(function(W){Y$w(D.JSC$20316_screenService_,X,C,c,function(p){p&&p.token&&Qx(D,p);W(p)},function(p){BD(D,"Failed to get DIAL screen: "+p);
W(null)})})).then(function(W){return W&&W.token?new chrome.cast.DialLaunchResponse(!1):X3G(D)})},cNk=function(D,C,X,c){_.sY(D.JSC$20325_checkScreenAvailabilityTimeoutKey_);
D.JSC$20325_checkScreenAvailabilityTimeoutKey_=0;n6t(D.JSC$20316_screenService_,C,function(W){W||c<0?X(W):D.JSC$20325_checkScreenAvailabilityTimeoutKey_=_.xz(function(){cNk(D,C,X,c-1)},300)})},l81=function(D,C){D.info("getDialAppInfoWithTimeout_ "+C);
RFo(D)&&(_.sY(D.getDialAppInfoTimeoutKey_),D.getDialAppInfoTimeoutKey_=0,C==0?p3o(D):D.getDialAppInfoTimeoutKey_=_.xz(function(){p3o(D)},C))},p3o=function(D){RFo(D)&&D.JSC$20325_session_.getDialAppInfo(function(C){D.info("getDialAppInfo dialLaunchData: "+JSON.stringify(C));
C=C.extraData||{};var X=null;if(C.loungeToken){var c;((c=D.screen_)==null?void 0:c.token)==C.loungeToken&&(X="staleLoungeToken")}else X="missingLoungeToken";X?(D.JSC$20325_lastLoungeTokenRefreshError_=X,l81(D,3E4)):(D.JSC$20325_isInitLoungeToken_=!1,D.JSC$20325_lastLoungeTokenRefreshError_="unknown",GaN(D,C.loungeToken),l81(D,C.loungeTokenRefreshIntervalMs))},function(C){D.info("getDialAppInfo error: "+C);
D.JSC$20325_lastLoungeTokenRefreshError_="noLoungeTokenResponse";l81(D,3E4)})},dc1=function(D){_.sY(D.JSC$20325_checkScreenAvailabilityTimeoutKey_);
D.JSC$20325_checkScreenAvailabilityTimeoutKey_=0;_.sY(D.getDialAppInfoTimeoutKey_);D.getDialAppInfoTimeoutKey_=0;D.cancelPolling_();D.cancelPolling_=function(){};
_.sY(D.JSC$20325_deferredLaunchDeadlineTimer_)};var KM=function(D,C){MZ.call(this,D,C,"ManualSession");this.JSC$20329_deferredLaunchDeadlineTimer_=_.xz((0,_.wo)(this.launchWithParams,this,null),150)};
_.h(KM,MZ);KM.prototype.stop=function(){this.onSessionStopped()};
KM.prototype.setCastSession=function(){};
KM.prototype.launchWithParams=function(){_.sY(this.JSC$20329_deferredLaunchDeadlineTimer_);this.JSC$20329_deferredLaunchDeadlineTimer_=NaN;var D=wK(this.JSC$20316_screenService_.getScreens(),this.receiver_.label);if(D)Qx(this,D);else this.onSessionStopped(Error("rl"))};
KM.prototype.disposeInternal=function(){_.sY(this.JSC$20329_deferredLaunchDeadlineTimer_);this.JSC$20329_deferredLaunchDeadlineTimer_=NaN;MZ.prototype.disposeInternal.call(this)};var RT=function(D,C){_.PU.call(this);this.config_=C;this.JSC$20332_screenService_=D;this.JSC$20332_appId_=C.appId||"233637DE";this.JSC$20332_theme_=C.theme||"cl";this.disableDial_=C.disableCastApi||!1;this.forceMirroring_=C.forceMirroring||!1;this.JSC$20332_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.wo)(this.onReceiverAction_,this)};
_.h(RT,_.PU);
RT.prototype.init=function(D,C){chrome.cast.timeout.requestSession=3E4;var X=new chrome.cast.SessionRequest(this.JSC$20332_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.b("desktop_enable_cast_connect")&&(X.androidReceiverCompatible=!0);this.disableDial_||(X.dialRequest=new chrome.cast.DialRequest("YouTube"));var c=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;D=D||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var W=(0,_.wo)(this.onReceiverUpdated_,
this);X=new chrome.cast.ApiConfig(X,(0,_.wo)(this.onSessionEstablished_,this),W,c,D);X.customDialLaunchCallback=(0,_.wo)(this.onDialLaunchRequested_,this);chrome.cast.initialize(X,(0,_.wo)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),eDk(),this.JSC$20332_screenService_.subscribe("onlineScreenChange",(0,_.wo)(this.JSC$20334_onScreenChange_,this)),this.customReceivers_=SxY(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.wo)(function(p){this.warn_("Failed to set initial custom receivers: "+(0,_.Tg)(p))},this)),this.publish("yt-remote-cast2-availability-change",UBk(this)),C(!0))},this),(0,_.wo)(function(p){this.warn_("Failed to initialize API: "+(0,_.Tg)(p));
C(!1)},this))};
RT.prototype.setConnectedScreenStatus=function(D,C){hB("Setting connected screen ID: "+D+" -> "+C);if(this.JSC$20332_session_){var X=this.JSC$20332_session_.screen_;if(!D||X&&X.id!=D)hB("Unsetting old screen status: "+this.JSC$20332_session_.receiver_.friendlyName),xq(this,null)}if(D&&C){if(!this.JSC$20332_session_){D=wK(this.JSC$20332_screenService_.getScreens(),D);if(!D){hB("setConnectedScreenStatus: Unknown screen.");return}if(D.idType=="shortLived"){hB("setConnectedScreenStatus: Screen with id type to be short lived.");
return}X=gB3(this,D);X||(hB("setConnectedScreenStatus: Connected receiver not custom..."),X=new chrome.cast.Receiver(D.uuid?D.uuid:D.id,D.name),X.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(X),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wo)(function(c){this.warn_("Failed to set initial custom receivers: "+(0,_.Tg)(c))},this)));
hB("setConnectedScreenStatus: new active receiver: "+X.friendlyName);xq(this,new KM(this.JSC$20332_screenService_,X),!0)}this.JSC$20332_session_.setDisplayStatus(C)}else hB("setConnectedScreenStatus: no screen.")};
var gB3=function(D,C){return C?_.Yj(D.customReceivers_,function(X){return U8p(C,X.label)},D):null};
RT.prototype.setLaunchParams=function(D){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20332_session_?this.JSC$20332_session_.launchWithParams(D):this.warn_("Setting connection data without a session")};
RT.prototype.JSC$20334_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20332_session_?(this.JSC$20332_session_.stop(),xq(this,null)):hB("Stopping non-existing session")};
RT.prototype.requestSession=function(){chrome.cast.requestSession((0,_.wo)(this.onSessionEstablished_,this),(0,_.wo)(this.onSessionRequestFailed_,this))};
RT.prototype.disposeInternal=function(){this.JSC$20332_screenService_.unsubscribe("onlineScreenChange",(0,_.wo)(this.JSC$20334_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.VF(_.Df("yt.mdx.remote.debug.handlers_")||[],Lwp);_.Ue(this.JSC$20332_session_);_.PU.prototype.disposeInternal.call(this)};
var hB=function(D){VW("Controller",D)};
RT.prototype.warn_=function(D){VW("Controller",D)};
var Lwp=function(D){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(D)},UBk=function(D){return D.hasCastReceiver_||!!D.customReceivers_.length||!!D.JSC$20332_session_},xq=function(D,C,X){C!=D.JSC$20332_session_&&(_.Ue(D.JSC$20332_session_),(D.JSC$20332_session_=C)?(X?D.publish("yt-remote-cast2-receiver-resumed",C.receiver_):D.publish("yt-remote-cast2-receiver-selected",C.receiver_),C.subscribe("sessionScreen",(0,_.wo)(D.onSessionScreen_,D,C)),C.subscribe("sessionFailed",
function(){return aOG(D,C)}),C.screen_?D.publish("yt-remote-cast2-session-change",C.screen_):X&&D.JSC$20332_session_.launchWithParams(null)):D.publish("yt-remote-cast2-session-change",null))},aOG=function(D,C){D.JSC$20332_session_==C&&D.publish("yt-remote-cast2-session-failed")};
_.S=RT.prototype;_.S.onSessionScreen_=function(D,C){this.JSC$20332_session_==D&&(C||xq(this,null),this.publish("yt-remote-cast2-session-change",C))};
_.S.onReceiverAction_=function(D,C){if(!this.isDisposed())if(D)switch(D.friendlyName=chrome.cast.unescape(D.friendlyName),hB("onReceiverAction_ "+D.label+" / "+D.friendlyName+"-- "+C),C){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20332_session_)if(this.JSC$20332_session_.receiver_.label!=D.label)hB("onReceiverAction_: Stopping active receiver: "+this.JSC$20332_session_.receiver_.friendlyName),this.JSC$20332_session_.stop();else{hB("onReceiverAction_: Casting to active receiver.");this.JSC$20332_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20332_session_.screen_);break}switch(D.receiverType){case chrome.cast.ReceiverType.CUSTOM:xq(this,new KM(this.JSC$20332_screenService_,D));break;case chrome.cast.ReceiverType.DIAL:xq(this,new r7(this.JSC$20332_screenService_,D,this.JSC$20332_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:xq(this,new bz(this.JSC$20332_screenService_,D,this.config_));break;default:this.warn_("Unknown receiver type: "+D.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20332_session_&&
this.JSC$20332_session_.receiver_.label==D.label?this.JSC$20332_session_.stop():this.warn_("Stopping receiver w/o session: "+D.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.S.onDialLaunchRequested_=function(D){if(this.isDisposed())return Promise.reject(Error("sl"));var C=D.receiver;C.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+C.friendlyName),C.receiverType=chrome.cast.ReceiverType.DIAL);var X=this.JSC$20332_session_?this.JSC$20332_session_.receiver_:null;if(!X||X.label!=C.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+C.friendlyName),Promise.reject(Error("tl"));if(X&&X.label==C.label&&X.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20332_session_.screen_)return hB("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20332_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+X.receiverType+'" to "dial" for '+C.friendlyName);xq(this,new r7(this.JSC$20332_screenService_,C,this.JSC$20332_theme_,this.config_))}C=this.JSC$20332_session_;C.launchData_=D;C.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(D=C.launchData_.extraData||{},X=D.screenId||null,RFo(C)&&D.loungeToken?D.loungeTokenRefreshIntervalMs?D=oB3(C,{name:C.receiver_.friendlyName,screenId:D.screenId,loungeToken:D.loungeToken,dialId:C.launchData_.receiver.label,screenIdType:"shortLived"},D.loungeTokenRefreshIntervalMs):(_.Re(Error("pl`"+JSON.stringify(D))),D=WAk(C,X)):D=WAk(C,X)):D=X3G(C);return D};
_.S.onSessionEstablished_=function(D){var C=this;if(!this.isDisposed()&&!this.forceMirroring_){hB("New cast session ID: "+D.sessionId);var X=D.receiver;if(X.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20332_session_)if(X.receiverType==chrome.cast.ReceiverType.CAST)hB("Got resumed cast session before resumed mdx connection."),X.friendlyName=chrome.cast.unescape(X.friendlyName),xq(this,new bz(this.JSC$20332_screenService_,X,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var c=this.JSC$20332_session_.receiver_,W=wK(this.JSC$20332_screenService_.getScreens(),c.label);W&&U8p(W,X.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&X.receiverType==chrome.cast.ReceiverType.CAST&&(hB("onSessionEstablished_: manual to cast session change "+X.friendlyName),_.Ue(this.JSC$20332_session_),this.JSC$20332_session_=new bz(this.JSC$20332_screenService_,X,this.config_),this.JSC$20332_session_.subscribe("sessionScreen",(0,_.wo)(this.onSessionScreen_,this,this.JSC$20332_session_)),
this.JSC$20332_session_.subscribe("sessionFailed",function(){return aOG(C,C.JSC$20332_session_)}),this.JSC$20332_session_.launchWithParams(null));
this.JSC$20332_session_.setCastSession(D)}}};
_.S.JSC$20334_getCastSession=function(){return this.JSC$20332_session_?this.JSC$20332_session_.JSC$20318_getCastSession():null};
_.S.onSessionRequestFailed_=function(D){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Tg)(D)),D.code!=chrome.cast.ErrorCode.CANCEL&&xq(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.S.onReceiverUpdated_=function(D){hB("Receiver availability updated: "+D);if(!this.isDisposed()){var C=UBk(this);this.hasCastReceiver_=D==chrome.cast.ReceiverAvailability.AVAILABLE;UBk(this)!=C&&this.publish("yt-remote-cast2-availability-change",UBk(this))}};
var SxY=function(D){var C=D.JSC$20332_screenService_.JSC$20314_getOnlineScreens(),X=D.JSC$20332_session_&&D.JSC$20332_session_.receiver_;D=_.Gv(C,function(c){X&&U8p(c,X.label)&&(X=null);var W=c.uuid?c.uuid:c.id,p=gB3(this,c);p?(p.label=W,p.friendlyName=c.name):(p=new chrome.cast.Receiver(W,c.name),p.receiverType=chrome.cast.ReceiverType.CUSTOM);return p},D);
X&&(X.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(X=new chrome.cast.Receiver(X.label,X.friendlyName),X.receiverType=chrome.cast.ReceiverType.CUSTOM),D.push(X));return D};
RT.prototype.JSC$20334_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=SxY(this),hB("Updating custom receivers: "+(0,_.Tg)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.wo)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",UBk(this)))};
RT.prototype.setLaunchParams=RT.prototype.setLaunchParams;RT.prototype.setConnectedScreenStatus=RT.prototype.setConnectedScreenStatus;RT.prototype.stopSession=RT.prototype.JSC$20334_stopSession;RT.prototype.getCastSession=RT.prototype.JSC$20334_getCastSession;RT.prototype.requestSession=RT.prototype.requestSession;RT.prototype.init=RT.prototype.init;RT.prototype.dispose=RT.prototype.dispose;var IOX=_.q8(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),cu6=[],zDp=_.kX(IOX);var OE3=function(D){D.audioTrackId=null;D.trackData=null;D.playerState=-1;D.hasPrevious=!1;D.hasNext=!1;D.playerTime_=0;D.playerTimeAt_=_.ok();D.seekableStart_=0;D.seekableEnd_=0;D.duration_=0;D.loadedTime=0;D.liveIngestionTime_=NaN;D.isLive_=!1};
_.S=l7.prototype;
_.S.reset=function(D){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;D&&(this.index=D.index,this.listId=D.listId,this.videoId=D.videoId,this.playerState=D.playerState,this.volume=D.volume,this.muted=D.muted,this.audioTrackId=D.audioTrackId,this.trackData=D.trackData,this.hasPrevious=D.hasPrevious,this.hasNext=D.hasNext,this.playerTime_=D.playerTime,this.playerTimeAt_=D.playerTimeAt,this.seekableStart_=D.seekableStart,this.seekableEnd_=D.seekableEnd,this.duration_=D.duration,this.loadedTime=
D.loadedTime,this.liveIngestionTime_=D.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.S.stopPlayer=function(){this.index=-1;this.videoId="";OE3(this)};
_.S.isPlaying=function(){return this.playerState==1};
_.S.isBuffering=function(){return this.playerState==3};
_.S.isAdPlaying=function(){return this.playerState==1081};
var LM=function(D,C){D.playerTime_=C;D.playerTimeAt_=_.ok()},ANw=function(D){switch(D.playerState){case 1:case 1081:return(_.ok()-D.playerTimeAt_)/1E3+D.playerTime_;
case -1E3:return 0}return D.playerTime_};
l7.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.ok()-this.playerTimeAt_)/1E3:0):this.duration_};
var P$w=function(D,C,X){var c=D.videoId;D.videoId=C;D.index=X;C!=c&&OE3(D)},$BP=function(D){var C={};
C.index=D.index;C.listId=D.listId;C.videoId=D.videoId;C.playerState=D.playerState;C.volume=D.volume;C.muted=D.muted;C.audioTrackId=D.audioTrackId;C.trackData=_.ZI.unsafeClone(D.trackData);C.hasPrevious=D.hasPrevious;C.hasNext=D.hasNext;C.playerTime=D.playerTime_;C.playerTimeAt=D.playerTimeAt_;C.seekableStart=D.seekableStart_;C.seekableEnd=D.seekableEnd_;C.duration=D.duration_;C.loadedTime=D.loadedTime;C.liveIngestionTime=D.liveIngestionTime_;return C};
l7.prototype.clone=function(){return new l7($BP(this))};var cB=function(D,C){_.PU.call(this);var X=this;this.state_=0;this.connection_=D;this.contextSubscriptions_=[];this.actionQueue_=new MbN;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.wo)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.wo)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.wo)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.wo)(this.onCloudviewAvailabilityChange_,this);var c=0;D?(c=D.getProxyState(),
c!=3&&(D.subscribe("proxyStateChange",this.setState_,this),vBt(this))):c=3;c!=0&&(C?this.setState_(c):_.xz(function(){X.setState_(c)},0));
(D=SGG())&&iEw(this,D);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.h(cB,_.PU);cB.prototype.getState=function(){return this.state_};
cB.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
cB.prototype.reconnect=function(){this.connection_.reconnect()};
var sl=function(D){return new l7(D.connection_.getPlayerContextData())};
_.S=cB.prototype;_.S.play=function(){mk(this)?(this.castMedia_?this.castMedia_.play(null,_.e$,kfX(this,"play")):e7(this,"play"),uR3(this,1,ANw(sl(this))),this.publish("remotePlayerChange")):El(this,this.play)};
_.S.pause=function(){mk(this)?(this.castMedia_?this.castMedia_.pause(null,_.e$,kfX(this,"pause")):e7(this,"pause"),uR3(this,2,ANw(sl(this))),this.publish("remotePlayerChange")):El(this,this.pause)};
_.S.seekTo=function(D){if(mk(this)){if(this.castMedia_){var C=sl(this),X=new chrome.cast.media.SeekRequest;X.currentTime=D;C.isPlaying()||C.isBuffering()?X.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:X.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(X,_.e$,kfX(this,"seekTo",{newTime:D}))}else e7(this,"seekTo",{newTime:D});uR3(this,3,D);this.publish("remotePlayerChange")}else El(this,_.AZ(this.seekTo,D))};
_.S.stop=function(){if(mk(this)){this.castMedia_?this.castMedia_.stop(null,_.e$,kfX(this,"stopVideo")):e7(this,"stopVideo");var D=sl(this);D.stopPlayer();tB(this,D);this.publish("remotePlayerChange")}else El(this,this.stop)};
_.S.setVolume=function(D,C){if(mk(this)){var X=sl(this);if(this.castSession_){if(X.volume!=D){var c=Math.round(D)/100;this.castSession_.setReceiverVolumeLevel(c,(0,_.wo)(function(){T9("set receiver volume: "+c)},this),(0,_.wo)(function(){this.warn_("failed to set receiver volume.")},this))}X.muted!=C&&this.castSession_.setReceiverMuted(C,(0,_.wo)(function(){T9("set receiver muted: "+C)},this),(0,_.wo)(function(){this.warn_("failed to set receiver muted.")},this))}else{var W={volume:D,
muted:C};X.volume!=-1&&(W.delta=D-X.volume);e7(this,"setVolume",W)}X.muted=C;X.volume=D;tB(this,X)}else El(this,_.AZ(this.setVolume,D,C))};
_.S.setAudioTrack=function(D,C){mk(this)?(C=C.getLanguageInfo().getId(),e7(this,"setAudioTrack",{videoId:D,audioTrackId:C}),D=sl(this),D.audioTrackId=C,tB(this,D)):El(this,_.AZ(this.setAudioTrack,D,C))};
_.S.addVideo=function(D){mk(this)?e7(this,"addVideo",{videoId:D}):El(this,_.AZ(this.addVideo,D))};
_.S.addPlaylist=function(D){mk(this)?e7(this,"addVideos",{listId:D}):El(this,_.AZ(this.addPlaylist,D))};
_.S.addVideos=function(D){D.length==0?this.warn_("Ignore add videos request due to empty list"):mk(this)?e7(this,"addVideos",{videoIds:D.join(",")}):El(this,_.AZ(this.addVideos,D))};
_.S.JSC$20344_removeVideo=function(D){mk(this)?e7(this,"removeVideo",{videoId:D}):El(this,_.AZ(this.JSC$20344_removeVideo,D))};
_.S.JSC$20344_insertVideo=function(D){mk(this)?e7(this,"insertVideo",{videoId:D}):El(this,_.AZ(this.JSC$20344_insertVideo,D))};
_.S.playVideo=function(D,C,X,c,W,p,g){c=c===void 0?null:c;W=W===void 0?null:W;p=p===void 0?null:p;g=g===void 0?null:g;var a=sl(this),O={videoId:D};X!==void 0&&(O.currentIndex=X);P$w(a,D,X||0);C!==void 0&&(LM(a,C),O.currentTime=C);c&&(O.listId=c);W&&(O.playerParams=W);p&&(O.clickTrackingParams=p);g&&(O.locationInfo=(0,_.Tg)(g));e7(this,"setPlaylist",O);c||tB(this,a)};
_.S.nextVideo=function(D,C){if(mk(this)){if(D&&C){var X=sl(this);P$w(X,D,C);tB(this,X)}e7(this,"next")}else El(this,_.AZ(this.nextVideo,D,C))};
_.S.clearPlaylist=function(){if(mk(this)){e7(this,"clearPlaylist");var D=sl(this);D.reset();tB(this,D);this.publish("remotePlayerChange")}else El(this,this.clearPlaylist)};
_.S.dispose=function(){if(this.state_!=3){var D=this.state_;this.state_=3;this.publish("proxyStateChange",D,this.state_)}_.PU.prototype.dispose.call(this)};
_.S.disposeInternal=function(){Q6G(this);this.connection_=null;this.actionQueue_.clear();iEw(this,null);_.PU.prototype.disposeInternal.call(this)};
var vBt=function(D){_.pC("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(C){this.contextSubscriptions_.push(this.connection_.subscribe(C,_.AZ(this.onProxyEvent_,C),this))},D)},Q6G=function(D){_.pC(D.contextSubscriptions_,function(C){this.connection_.unsubscribeByKey(C)},D);
D.contextSubscriptions_.length=0},mk=function(D){return D.getState()==1},El=function(D,C){D.actionQueue_.getCount()<50&&D.actionQueue_.enqueue(C)},uR3=function(D,C,X){var c=sl(D);
LM(c,X);c.playerState!=-1E3&&(c.playerState=C);tB(D,c)},e7=function(D,C,X){D.connection_.sendMessage(C,X)},tB=function(D,C){Q6G(D);
D.connection_.setPlayerContextData($BP(C));vBt(D)};
cB.prototype.setState_=function(D){if((D!=this.state_||D==2)&&this.state_!=3&&D!=0){var C=this.state_;this.state_=D;this.publish("proxyStateChange",C,D);if(D==1)for(;!this.actionQueue_.isEmpty();)D=this.actionQueue_,MvG(D),D.front_.pop().apply(this);else D==3&&this.dispose()}};
cB.prototype.onProxyEvent_=function(D,C){this.publish(D,C)};
var iEw=function(D,C){D.castSession_&&(D.castSession_.removeUpdateListener(D.boundCastStatusListener_),D.castSession_.removeMediaListener(D.boundCastMediaListener_),D.onCastMediaChange_(null));D.castSession_=C;if(D.castSession_&&(T9("Setting cast session: "+D.castSession_.sessionId),D.castSession_.addUpdateListener(D.boundCastStatusListener_),D.castSession_.addMediaListener(D.boundCastMediaListener_),D.castSession_.media.length))D.onCastMediaChange_(D.castSession_.media[0])};
cB.prototype.onCastStatusUpdate_=function(D){if(!D)this.onCastMediaChange_(null),iEw(this,null);else if(this.castSession_.receiver.volume){D=this.castSession_.receiver.volume;var C=sl(this),X=Math.round(100*D.level||0);if(C.volume!=X||C.muted!=D.muted)T9("Cast volume update: "+D.level+(D.muted?" muted":"")),C.volume=X,C.muted=!!D.muted,tB(this,C)}};
cB.prototype.onCastMediaChange_=function(D){T9("Cast media: "+!!D);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=D)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),BMp(this),this.publish("remotePlayerChange")};
var BMp=function(D){var C=D.castMedia_.media,X=D.castMedia_.customData;if(C&&X){var c=sl(D);C.contentId!=c.videoId&&T9("Cast changing video to: "+C.contentId);c.videoId=C.contentId;c.playerState=X.playerState;LM(c,D.castMedia_.getEstimatedTime());tB(D,c)}else T9("No cast media video. Ignoring state update.")};
cB.prototype.onCastMediaUpdate_=function(D){if(D)BMp(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
cB.prototype.onCloudviewAvailabilityChange_=function(){var D=SGG();D&&iEw(this,D)};
cB.prototype.warn_=function(D){VW("CP",D)};
var kfX=function(D,C,X){return(0,_.wo)(function(c){this.warn_("Failed to "+C+" with cast v2 channel. Error code: "+c.code);c.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+C+" using MDx browser channel."),e7(this,C,X))},D)};var ol=function(D,C,X,c){c=c===void 0?!1:c;_.PU.call(this);var W=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$20349_http_=D;this.enableConnectWithInitialState_=c;this.listeners_.push(_.$l(window,"beforeunload",function(){W.JSC$20352_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new l7;this.currentScreenId_=C.id;this.currentScreenIdType_=C.idType;this.channelService=x8U(this.JSC$20349_http_,X,this.JSC$20352_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){bEG(W)});
this.channelService.listen("channelClosed",function(){Na("Channel closed");isNaN(W.connectTimerId_)?Q2P(!0):Q2P();W.dispose()});
this.channelService.listen("channelError",function(p){Q2P();isNaN(W.getReconnectTimeout_())?(p==1&&W.currentScreenIdType_=="shortLived"&&W.publish("browserChannelAuthError",p),Na("Channel error: "+p+" without reconnection"),W.dispose()):(W.reconnecting_=!0,Na("Channel error: "+p+" with reconnection in "+W.getReconnectTimeout_()+" ms"),rN6(W,2))});
this.channelService.listen("channelMessage",function(p){KAY(W,p)});
this.channelService.setLoungeToken(C.token);this.subscribe("remoteQueueChange",function(){var p=W.playerContext_.videoId;ItY()&&_.rL("yt-remote-session-video-id",p)})};
_.h(ol,_.PU);
ol.prototype.connect=function(D,C){if(C){var X=C.listId,c=C.videoId,W=C.videoIds,p=C.playerParams,g=C.clickTrackingParams,a=C.index,O={videoId:c},P=C.currentTime,k=C.locationInfo;C=C.loopMode;P!==void 0&&(O.currentTime=P<=5?0:P);p&&(O.playerParams=p);k&&(O.locationInfo=k);g&&(O.clickTrackingParams=g);X&&(O.listId=X);W&&W.length>0&&(O.videoIds=W.join(","));a!==void 0&&(O.currentIndex=a);this.enableConnectWithInitialState_&&(O.loopMode=C||"LOOP_MODE_OFF");X&&(this.playerContext_.listId=X);this.playerContext_.videoId=
c;this.playerContext_.index=a||0;this.playerContext_.state=3;LM(this.playerContext_,P);this.autoplayMode_="UNSUPPORTED";X=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Na("Connecting with "+X+" and params: "+(0,_.Tg)(O));this.channelService.connect({method:X,params:(0,_.Tg)(O)},D,vwo())}else Na("Connecting without params"),this.channelService.connect({},D,vwo());hwX(this)};
ol.prototype.setLoungeToken=function(D){this.channelService.setLoungeToken(D)};
ol.prototype.dispose=function(){this.isDisposed()||(_.$h("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),rN6(this,3));_.PU.prototype.dispose.call(this)};
ol.prototype.disposeInternal=function(){xBt(this);LAp(this);s6t(this);_.sY(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.sY(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.ibZ(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.PU.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var mBk=function(D){return _.Yj(D.connectedDevices_,function(C){return C.type=="LOUNGE_SCREEN"})},Na=function(D){VW("conn",D)},rN6=function(D,C){D.publish("proxyStateChange",C)},hwX=function(D){D.connectTimerId_=_.xz(function(){Na("Connecting timeout");
D.JSC$20352_disconnect_(1)},2E4)},xBt=function(D){_.sY(D.connectTimerId_);
D.connectTimerId_=NaN},s6t=function(D){_.sY(D.reconnectedCheckScreenTimeout_);
D.reconnectedCheckScreenTimeout_=NaN},EBw=function(D){LAp(D);
D.playingSyncTimerId_=_.xz(function(){ew1(D,"getNowPlaying")},2E4)},LAp=function(D){_.sY(D.playingSyncTimerId_);
D.playingSyncTimerId_=NaN},bEG=function(D){Na("Channel opened");
D.reconnecting_&&(D.reconnecting_=!1,s6t(D),D.reconnectedCheckScreenTimeout_=_.xz(function(){Na("Timing out waiting for a screen.");D.JSC$20352_disconnect_(1)},15E3))},NMN=function(D,C){var X=null;
if(C){var c=mBk(D);c&&(X={clientName:c.clientName,deviceMake:c.brand,deviceModel:c.model,osVersion:c.osVersion})}_.$h("yt.mdx.remote.remoteClient_",X);C&&(xBt(D),s6t(D));X=D.channelService.isChannelOpened()&&isNaN(D.connectTimerId_);C==X?C&&(rN6(D,1),ew1(D,"getSubtitlesTrack")):C?(D.getOtherConnectedRemoteId_()&&D.playerContext_.reset(),rN6(D,1),ew1(D,"getNowPlaying"),t3w(D)):D.JSC$20352_disconnect_(1)},Yx3=function(D,C){var X=C.params.videoId;
delete C.params.videoId;X==D.playerContext_.videoId&&(_.ZI.isEmpty(C.params)?D.playerContext_.trackData=null:D.playerContext_.trackData=C.params,D.publish("remotePlayerChange"))},yNN=function(D,C,X){var c=C.params.videoId||C.params.video_id,W=parseInt(C.params.currentIndex,10);
D.playerContext_.listId=C.params.listId||D.playerContext_.listId;P$w(D.playerContext_,c,W);D.publish("remoteQueueChange",X)},nBw=function(D,C){C.params=C.params||{};
yNN(D,C,"NOW_PLAYING_MAY_CHANGE");D.onStateChange_(C);D.publish("autoplayDismissed")};
ol.prototype.onStateChange_=function(D){var C=parseInt(D.params.currentTime||D.params.current_time,10);LM(this.playerContext_,isNaN(C)?0:C);C=parseInt(D.params.state,10);C=isNaN(C)?-1:C;C==-1&&this.playerContext_.playerState==-1E3&&(C=-1E3);this.playerContext_.playerState=C;C=Number(D.params.loadedTime);this.playerContext_.loadedTime=isNaN(C)?0:C;C=Number(D.params.duration);this.playerContext_.duration_=isNaN(C)?0:C;C=this.playerContext_;var X=Number(D.params.liveIngestionTime);C.liveIngestionTime_=
X;C.isLive_=isNaN(X)?!1:!0;C=this.playerContext_;X=Number(D.params.seekableStartTime);D=Number(D.params.seekableEndTime);C.seekableStart_=isNaN(X)?0:X;C.seekableEnd_=isNaN(D)?0:D;this.playerContext_.playerState==1?EBw(this):LAp(this);this.publish("remotePlayerChange")};
ol.prototype.onAdStateChange_=function(D){if(this.playerContext_.playerState!=-1E3){var C=1085;switch(parseInt(D.params.adState,10)){case 1:C=1081;break;case 2:C=1084;break;case 0:C=1083}this.playerContext_.playerState=C;D=parseInt(D.params.currentTime,10);LM(this.playerContext_,isNaN(D)?0:D);this.publish("remotePlayerChange")}};
var w3Y=function(D,C){var X=C.params.muted=="true";D.playerContext_.volume=parseInt(C.params.volume,10);D.playerContext_.muted=X;D.publish("remotePlayerChange")},FAX=function(D,C){D.autoplayVideoId_=C.params.videoId;
D.publish("nowAutoplaying",parseInt(C.params.timeout,10))},ZEG=function(D,C){D.autoplayVideoId_=C.params.videoId||null;
D.publish("autoplayUpNext",D.autoplayVideoId_)},GfN=function(D,C){D.autoplayMode_=C.params.autoplayMode;
D.publish("autoplayModeChange",D.autoplayMode_);D.autoplayMode_=="DISABLED"&&D.publish("autoplayDismissed")},V3U=function(D,C){var X=C.params.hasNext=="true";
D.playerContext_.hasPrevious=C.params.hasPrevious=="true";D.playerContext_.hasNext=X;D.publish("previousNextChange")};
ol.prototype.isCapabilitySupportedOnConnectedDevices_=function(D){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var C=_.U(this.connectedDevices_),X=C.next();!X.done;X=C.next())if(!X.value.capabilities.has(D))return!1;return!0};
var KAY=function(D,C){C=C.message;C.params?Na("Received: action="+C.action+", params="+(0,_.Tg)(C.params)):Na("Received: action="+C.action+" {}");switch(C.action){case "loungeStatus":C=(0,_.bE)(C.params.devices);D.connectedDevices_=_.Gv(C,function(c){return new iz(c)});
C=!!_.Yj(D.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"});
NMN(D,C);C=D.isCapabilitySupportedOnConnectedDevices_("mlm");D.publish("multiStateLoopEnabled",C);break;case "loungeScreenDisconnected":bbp(D.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"});
NMN(D,!1);break;case "remoteConnected":var X=new iz((0,_.bE)(C.params.device));_.Yj(D.connectedDevices_,function(c){return c.equals(X)})||_.e35(D.connectedDevices_,X);
break;case "remoteDisconnected":X=new iz((0,_.bE)(C.params.device));bbp(D.connectedDevices_,function(c){return c.equals(X)});
break;case "gracefulDisconnect":break;case "playlistModified":yNN(D,C,"QUEUE_MODIFIED");break;case "nowPlaying":nBw(D,C);break;case "onStateChange":D.onStateChange_(C);break;case "onAdStateChange":D.onAdStateChange_(C);break;case "onVolumeChanged":w3Y(D,C);break;case "onSubtitlesTrackChanged":Yx3(D,C);break;case "nowAutoplaying":FAX(D,C);break;case "autoplayDismissed":D.publish("autoplayDismissed");break;case "autoplayUpNext":ZEG(D,C);break;case "onAutoplayModeChanged":GfN(D,C);break;case "onHasPreviousNextChanged":V3U(D,
C);break;case "requestAssistedSignIn":D.publish("assistedSignInRequested",C.params.authCode);break;case "onLoopModeChanged":D.publish("loopModeChange",C.params.loopMode);break;default:Na("Unrecognized action: "+C.action)}};
_.S=ol.prototype;_.S.getProxyState_=function(){var D=3;this.isDisposed()||(D=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(D=1):D=2);return D};
_.S.JSC$20352_disconnect_=function(D){Na("Disconnecting with "+D);_.$h("yt.mdx.remote.remoteClient_",null);xBt(this);this.publish("beforeDisconnect",D);D==1&&Q2P();this.channelService.disconnect(D);this.dispose()};
_.S.getPlayerContextData_=function(){var D=this.playerContext_;this.clientVideoId_&&(D=this.playerContext_.clone(),P$w(D,this.clientVideoId_,D.index));return $BP(D)};
_.S.setPlayerContextData_=function(D){var C=this,X=new l7(D);X.videoId&&X.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=X.videoId,_.sY(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.xz(function(){if(C.clientVideoId_){var W=C.clientVideoId_;C.clientVideoId_=null;C.playerContext_.videoId!=W&&ew1(C,"getNowPlaying")}},5E3));
var c=[];this.playerContext_.listId==X.listId&&this.playerContext_.videoId==X.videoId&&this.playerContext_.index==X.index||c.push("remoteQueueChange");this.playerContext_.playerState==X.playerState&&this.playerContext_.volume==X.volume&&this.playerContext_.muted==X.muted&&ANw(this.playerContext_)==ANw(X)&&(0,_.Tg)(this.playerContext_.trackData)==(0,_.Tg)(X.trackData)||c.push("remotePlayerChange");this.playerContext_.reset(D);_.pC(c,function(W){this.publish(W)},this)};
_.S.getOtherConnectedRemoteId_=function(){var D=this.channelService.getDeviceId(),C=_.Yj(this.connectedDevices_,function(X){return X.type=="REMOTE_CONTROL"&&X.id!=D});
return C?C.id:""};
_.S.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.S.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.S.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.S.JSC$20352_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var t3w=function(D){_.sY(D.idleDisconnectTimerId_);D.idleDisconnectTimerId_=_.xz(function(){D.JSC$20352_disconnect_(1)},864E5)},ew1=function(D,C,X){X?Na("Sending: action="+C+", params="+(0,_.Tg)(X)):Na("Sending: action="+C);
D.channelService.sendMessage(C,X)};
ol.prototype.sendMessageWithUserAction_=function(D,C){ew1(this,D,C);t3w(this)};
ol.prototype.JSC$20352_getXsrfToken_=function(){var D=_.Yz.get("SAPISID","")||_.Yz.get("__Secure-1PAPISID",void 0)||"",C=_.Yz.get("__Secure-3PAPISID","")||"";if(!D&&!C)return"";D=_.tP(_.yL(D),2);C=_.tP(_.yL(C),2);return _.tP(_.yL(","+D+","+C),2)};
ol.prototype.subscribe=ol.prototype.subscribe;ol.prototype.unsubscribeByKey=ol.prototype.unsubscribeByKey;ol.prototype.getProxyState=ol.prototype.getProxyState_;ol.prototype.disconnect=ol.prototype.JSC$20352_disconnect_;ol.prototype.getPlayerContextData=ol.prototype.getPlayerContextData_;ol.prototype.setPlayerContextData=ol.prototype.setPlayerContextData_;ol.prototype.getOtherConnectedRemoteId=ol.prototype.getOtherConnectedRemoteId_;ol.prototype.getReconnectTimeout=ol.prototype.getReconnectTimeout_;
ol.prototype.getAutoplayMode=ol.prototype.getAutoplayMode_;ol.prototype.getAutoplayVideoId=ol.prototype.getAutoplayVideoId_;ol.prototype.reconnect=ol.prototype.JSC$20352_reconnect_;ol.prototype.sendMessage=ol.prototype.sendMessageWithUserAction_;ol.prototype.getXsrfToken=ol.prototype.JSC$20352_getXsrfToken_;ol.prototype.isCapabilitySupportedOnConnectedDevices=ol.prototype.isCapabilitySupportedOnConnectedDevices_;var E5N=function(D){HU.call(this,"ScreenServiceProxy");this.instance_=D;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.wo)(this.JSC$20355_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.wo)(this.onOnlineScreenChange_,this)))};
_.h(E5N,HU);_.S=E5N.prototype;_.S.getScreens=function(D){return this.instance_.$_gs(D)};
_.S.contains=function(D){return!!this.instance_.$_c(D)};
_.S.get=function(D){return this.instance_.$_g(D)};
_.S.start=function(){this.instance_.$_st()};
_.S.add=function(D,C,X){this.instance_.$_a(D,C,X)};
_.S.remove=function(D,C,X){this.instance_.$_r(D,C,X)};
_.S.updateName=function(D,C,X,c){this.instance_.$_un(D,C,X,c)};
_.S.disposeInternal=function(){for(var D=this.subscriptionKeys_.length,C=0;C<D;++C)this.instance_.$_ubk(this.subscriptionKeys_[C]);this.subscriptionKeys_.length=0;this.instance_=null;HU.prototype.disposeInternal.call(this)};
_.S.JSC$20355_onScreenChange_=function(){this.publish("screenChange")};
_.S.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
jH.prototype.$_st=jH.prototype.start;jH.prototype.$_gspc=jH.prototype.JSC$20314_getScreenByPairingCode;jH.prototype.$_gsppc=jH.prototype.JSC$20314_getScreenByPollingPairingCode;jH.prototype.$_c=jH.prototype.contains;jH.prototype.$_g=jH.prototype.get;jH.prototype.$_a=jH.prototype.add;jH.prototype.$_un=jH.prototype.updateName;jH.prototype.$_r=jH.prototype.remove;jH.prototype.$_gs=jH.prototype.getScreens;jH.prototype.$_gos=jH.prototype.JSC$20314_getOnlineScreens;jH.prototype.$_s=jH.prototype.subscribe;
jH.prototype.$_ubk=jH.prototype.unsubscribeByKey;var hYp=null,N1k=!1,Iat=null,DU=null,eYY=null,Cw=[];var TMw=new _.Do("yt-menu"),HEU=function(){},zwo=function(D,C,X){D=C=="right-click"?X.rightClickMenuPopupHint:X.menuPopupHint;
if(!(JN6(C)>10))return C=C||"default",TMw.set(C+"-impression",JN6(C)+1),D},JN6=function(D){return parseInt(TMw.get((D||"default")+"-impression")||0,10)};
_.cT(HEU);var j66=function(){this.contexts_=new WeakMap;this.JSC$20361_networkService_=this.activeContext_=null},M36=function(D,C,X){var c=D.contexts_.get(C);
c||(c=new diN(D.JSC$20361_networkService_),D.contexts_.set(C,c));D.activeContext_=c;X&&D.activeContext_.reset();D.activeContext_.start();return D.activeContext_};var Yq=function(){};
Yq.prototype.enqueue=function(){var D=this,C;return _.I(function(X){if(D.isCounterfactual())return(C=D.getCounterfactualData())&&D.shouldLogCounterfactualImpression()&&D.sendImpressionEndpoints(C),X.return();D.doEnqueue();_.t_(X)})};
Yq.prototype.sendImpressionEndpoints=function(D){_.Wf.getInstance().triggerOptionalAction("yt-service-request",{},D[0])};var yx=function(D,C){this.renderer=D;this.page=C};
_.h(yx,Yq);yx.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
yx.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
yx.prototype.shouldLogCounterfactualImpression=function(){return!0};
yx.prototype.doEnqueue=function(){var D=_.Dw(this.page);D&&D.pause();this.renderer.impressionCommand&&_.Wf.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.fX(_.Wf.getInstance(),[this.renderer.promoCommand],this.page)};var qxt=function(D,C){this.renderer=D;this.resolver=_.zr();this.JSC$20373_enforcementCounter=new _.PlN;C?this.JSC$20373_playerManager=_.Dw(C):this.JSC$20373_playerManager=null;_.O2(1,!0)};
_.h(qxt,Yq);_.S=qxt.prototype;_.S.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var D=[];this.renderer.impressionEndpoints.forEach(function(C){(C=_.Y7(C))&&D.push(C)});
return D}};
_.S.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.S.shouldLogCounterfactualImpression=function(){var D=_.Ep3();D?(this.JSC$20373_enforcementCounter.increment("POPUP"),_.O2(3)):_.O2(2);return D};
_.S.cancel=function(){this.resolver.promise.cancel()};
_.S.doEnqueue=function(){var D=this;_.Ep3()?(this.JSC$20373_enforcementCounter.increment("POPUP"),_.O2(3),fOt(this)):this.JSC$20373_playerManager?(this.resolver.promise.then(function(){fOt(D)}),dBt(this.resolver,this.JSC$20373_playerManager)):_.O2(2)};
var dBt=function(D,C){var X=_.zr();C.getPlayerPromise().then(function(c){X.resolve(c)});
X.promise.then(function(c){c.addEventListener("onAbnormalityDetected",D.resolve);_.ZZ(D.promise,function(){c.removeEventListener("onAbnormalityDetected",D.resolve)})});
D.promise.thenCatch(function(){X.promise.cancel()})},fOt=function(D){_.O2(3);
var C={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:D.renderer}};C=_.Wf.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{});Promise.all(C).then(function(){RwY();D.JSC$20373_playerManager&&D.JSC$20373_playerManager.pause()})},RwY=function(){SIp(function(D,C){_.Yso(D,C);
D===0?_.O2(7):_.O2(4)})};var lOo=function(D,C){this.renderer=D;this.page=C;this.resolver=_.zr()};
_.h(lOo,Yq);_.S=lOo.prototype;_.S.cancel=function(){this.resolver.promise.cancel()};
_.S.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.S.isCounterfactual=function(){return!this.renderer.isVisible};
_.S.shouldLogCounterfactualImpression=function(){return!0};
_.S.doEnqueue=function(){var D=this;this.resolver.promise.then(function(){var X={popup:{mealbarPromoRenderer:D.renderer},popupType:"MEALBAR"};_.Wf.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:X},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var C=_.Dw(this.page);C&&D2p(this.resolver,C)}break;default:this.resolver.resolve()}};
var D2p=function(D,C){var X=_.zr();C.getPlayerPromise().then(function(c){X.resolve(c)});
X.promise.then(function(c){c.addEventListener("onAdEnd",D.resolve);_.ZZ(D.promise,function(){c.removeEventListener("onAdEnd",D.resolve)})});
D.promise.thenCatch(function(){X.promise.cancel()})};var CM6=function(D,C){this.renderer=D;this.page=C};
_.h(CM6,Yq);_.S=CM6.prototype;_.S.cancel=function(){this.JSC$20381_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20381_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20381_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.S.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.S.isCounterfactual=function(){return!this.renderer.isVisible};
_.S.shouldLogCounterfactualImpression=function(){return!0};
_.S.doEnqueue=function(){var D=this,C,X;((C=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(X=C.playbackUpsellDialogTriggerConditionData)==null?void 0:X.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20381_downloadedVideosCountSelectorUnsubscriber=_.dX(_.fe(),Wl1,function(c,W){c>W&&(Xbt(D),D.cancel())}):Xbt(this)};
var Xbt=function(D){var C={popup:{upsellDialogRenderer:D.renderer},popupType:"MODAL"};_.Wf.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{});(D=_.Dw(D.page))&&D.pause()};var nM={},cz6=(nM.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",nM.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",nM.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",nM.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",nM.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",nM.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",nM.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",nM),oe1=function(D,C){this.renderer=D;this.targetManager=
C};
_.h(oe1,Yq);_.S=oe1.prototype;_.S.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20388_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20388_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20388_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.S.getCounterfactualData=function(){if(this.isCounterfactual()){var D;return(D=this.renderer.promoConfig)==null?void 0:D.impressionEndpoints}};
_.S.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.S.shouldLogCounterfactualImpression=function(){return!0};
_.S.doEnqueue=function(){var D=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20388_downloadedVideosCountSelectorUnsubscriber=_.dX(_.fe(),Wl1,function(C,X){D.renderer.targetId&&C>X&&(uMp(D.targetManager,D.renderer.targetId,Wt3(D)),D.cancel())});
break;default:uMp(this.targetManager,this.renderer.targetId,Wt3(this))}};
var Wt3=function(D){var C;if((C=D.renderer.suggestedPosition)==null?0:C.type)var X=cz6[D.renderer.suggestedPosition.type];X||(X="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:D.renderer},popupType:"HINT",position:X}}};var pbo=function(){this.previousPage=null},SVG;
pbo.prototype.registerPromoCommand=function(D,C){U2Y(this,void 0,void 0,_.r(D.roadblock,F3k),void 0,void 0,C)};
var U2Y=function(D,C,X,c,W,p,g){D.previousPage!==g&&D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel();D.previousPage=g;W?(D.pendingEnforcementPromo&&D.pendingEnforcementPromo.cancel(),D.pendingEnforcementPromo=new qxt(W,g),D.pendingEnforcementPromo.enqueue()):p?(D.pendingCommandWrapperPromo=new yx(p,g),D.pendingCommandWrapperPromo.enqueue()):c?(D.pendingRoadblockPromo&&D.pendingRoadblockPromo.cancel(),D.pendingRoadblockPromo=new CM6(c,g),D.pendingRoadblockPromo.enqueue()):C?(D.pendingMealbarPromo&&
D.pendingMealbarPromo.cancel(),D.pendingMealbarPromo=new lOo(C,g),D.pendingMealbarPromo.enqueue()):X&&(D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel(),D.pendingTooltipPromo=new oe1(X,_.jJ()),D.pendingTooltipPromo.enqueue())},get=function(){SVG||(SVG=new pbo);
return SVG};var wT6=!1;var QJX=function(D,C){var X=_.q6("SESSION_INDEX");this.actionToken_=D;this.commonToken_=C;this.sessionIndex_=X},u9N=function(D){var C=_.zr(),X=_.Df("payments.business.integration.bootstrap"),c=_.Df("payments.business.integration"),W=c.Style.create().withMaterialDesignStyle(),p=c.mashupMode.popup("instrument-manager");
X.asMashupMode(p).usingUserIndex(D.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(W).inStandaloneContext(c.standaloneContextAuthId.forUserId()).instrumentManager(D.actionToken_,D.commonToken_.length>0?D.commonToken_:void 0,function(g){var a=g.instrumentId;a?C.resolve(a):(a=_.Df("payments.business.integration.scenario.InstrumentManager"),C.reject(g.errorCode&&g.errorCode===a.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(g){_.Re(g);
C.reject("instrumentManagerLoadError")});
return C.promise};var pw=function(D,C,X){this.payloadName="transactionFlowFailed";this.payload={errorType:D,serializedTransactionFlowLoggingParams:C,isUserDismiss:X===void 0?!1:X}};
_.$h("yt.ypc.shared.YpcTransactionFlowError",pw);var w7=function(){return _.Qj.apply(this,arguments)||this};
_.h(w7,_.Qj);w7.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
w7.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
w7.prototype.onErrorMessageDismiss=w7.prototype.onErrorMessageDismiss;_.V([_.n({readOnly:!0,observer:"errorRendererChanged"}),_.z("design:type",Object)],w7.prototype,"errorRenderer",void 0);_.V([_.$n("yt-live-chat-error-message-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],w7.prototype,"onErrorMessageDismiss",null);_.V([_.Br()],w7);var aqt=[w7.prototype];var IqU;var OZU;var AzG=new _.Do("yt-live-chat"),PMU=new Map;PMU.set("timestamp_toggle","show-timestamps");PMU.set("reactions_toggle","allow-reactions");var FX=function(){return _.w.apply(this,arguments)||this};
_.h(FX,_.w);_.S=FX.prototype;_.S.menuItemIdentifierChanged=function(){var D;(D=this.data)!=null&&D.menuItemIdentifier&&(D=PMU.get(this.data.menuItemIdentifier))&&(_.b("enable_lwe_web_mute")?(D=AzG.get(D),this.isToggled=!(D===void 0?!this.data.isToggled:!D)):this.isToggled=AzG.get(D))};
_.S.onFocus=function(){this.toggleButton.focus()};
_.S.onTap=function(){var D=this.data.command;D&&this.componentBehavior.resolveCommand(D)};
_.S.computeText=function(D,C,X){return this.componentBehavior.getSimpleString(D?X:C)};
_.S.computeIcon=function(D,C,X){return(D=D?X:C)&&D.iconType?_.g2(D.iconType):""};
FX.prototype.onTap=FX.prototype.onTap;FX.prototype.onFocus=FX.prototype.onFocus;FX.prototype.menuItemIdentifierChanged=FX.prototype.menuItemIdentifierChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],FX.prototype,"componentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FX.prototype,"data",void 0);
_.V([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.z("design:type",String)],FX.prototype,"icon",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],FX.prototype,"isToggled",void 0);_.V([_.kn("tp-yt-paper-toggle-button"),_.z("design:type",Object)],FX.prototype,"toggleButton",void 0);_.V([_.vr("data.menuItemIdentifier"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FX.prototype,"menuItemIdentifierChanged",null);
_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FX.prototype,"onFocus",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FX.prototype,"onTap",null);_.V([_.Yn({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],FX);
_.G(FX,"yt-live-chat-toggle-renderer",function(){if(OZU===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;IqU===void 0&&(IqU=document.createElement("template"));var c=IqU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);OZU=D}D=OZU;return D},{mode:0});var $2P=new _.P6("NAVIGATION_PROGRESS_TOKEN");var veY={},iZ6={},ksY=(iZ6[Z6U.name]=!0,iZ6),Zl=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;D.tabGesturesIsActive=!1;D.actionRouterIsRoot=!0;D.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"};D.pageTitle="";D.titleSuffix="YouTube";D.unseenNotificationCount=
0;D.hasNavigated=!1;D.hasSetScrollTopForNavigation=!1;D.pagePreparer=null;D.zwiebackInitJobId=0;D.dataUpdatePromise=null;D.loadDepsPromise=_.WE();D.hasPendingNavigation=!1;D.pendingPlayerOnResponseReceivedActions=[];return D};
_.h(Zl,_.Qj);Zl.prototype.attached=function(){uW3(this);document.addEventListener("yt-navigate-cache",_.Pr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var D=GW();D.init();D.dispatchElement=this.hostElement};
var uW3=function(D,C){C=C===void 0?0:C;var X=_.iX().resolve(_.vK(_.HV));if(X)QzG(D,X);else{if(C>=5)throw Error("ul");setTimeout(function(){uW3(D,C+1)},0)}},QzG=function(D,C){C.addEventListener("yt-navigate-start",_.Pr(D,D.onYtNavigateStart));
C.addEventListener("yt-navigate-finish",_.Pr(D,D.onYtNavigateFinish));C.addEventListener("yt-navigate-error",_.Pr(D,D.onYtNavigateError));C.addEventListener("yt-page-data-fetched",_.Pr(D,D.onYtPageDataFetched))};
_.S=Zl.prototype;_.S.detached=function(){var D=_.iX().resolve(_.HV);D.removeEventListener("yt-navigate-start",_.Pr(this,this.onYtNavigateStart));D.removeEventListener("yt-navigate-finish",_.Pr(this,this.onYtNavigateFinish));D.removeEventListener("yt-navigate-error",_.Pr(this,this.onYtNavigateError));D.removeEventListener("yt-page-data-fetched",_.Pr(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Pr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.S.setPageOffset=function(D,C){D?_.DS(this.hostElement,"yt-set-page-offset",[D,C]):_.MN(Error("vl"))};
_.S.setPageOffsetForNavigation=function(D,C){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(D,C))};
_.S.onYtNavigateSetPageOffset=function(D,C){this.setPageOffsetForNavigation(C.page,C.offset)};
_.S.getPageOffset=function(){var D=_.SY(this.hostElement).querySelector("#page-manager").getCurrentPage(),C=0;D&&(C=_.DS(this.hostElement,"yt-get-page-offset",[D])[0]);return C};
_.S.onYtHistoryPop=function(D,C){if(_.dq("DISABLE_WARM_LOADS"))D.preventDefault(),window.location.reload();else{var X=_.iX().resolve(_.HV);X.hasPendingNavigation()&&D.preventDefault();X.cancelPendingNavigation();_.Ct(this.hostElement,"yt-pending-navigation-cancelled");C.errorMsg&&(D=C.errorMsg.split(" - "),C=Error(D[0]),D.length==2&&D[1]&&(_.dO(C,D[1]),_.fQ(C)),window.location.reload())}};
_.S.onYtHistoryLoad=function(D,C){var X=this;if(_.dq("DISABLE_WARM_LOADS"))window.location.reload();else{(D=C.endpoint)&&Object.keys(D).length||(D=null);var c=C.historyEntry,W=_.iX().resolve(_.HV),p=_.iX().resolve(_.lu),g=null;c&&c.rootData&&(g=c.rootData);var a=g&&Bg3(g);!g||a||g.filler?D?(W.navigate(D,!0),bZX(this,D)):(C.legacyBorder||a||(C.JSC$30905_savedComponentState==null&&g==null?_.fQ(new _.Zf("Incomplete history entry",C.forward)):_.qN(new _.Zf("Malformed history entry",C.JSC$30905_savedComponentState,
C.forward,g))),window.location.reload()):(_.MTt({isHot:!0}),_.hZ({webInfo:{navigationReason:"h"}}),_.BNJ(),_.sp("srt"),_.sp("pdc"),this.cancelPendingTasks(),rzX(this,C.forward,g),g.player&&(g.player.loaded=!1),bZX(this,D),_.Fse(W,D||{},g,2,{},!1,C).then(function(){X.setPageOffset(p.getCurrentPage(),c.scrollTop||0)}))}};
_.S.initHistoryManager=function(D){if(!this.hasNavigated){this.hasNavigated=!0;var C=_.SY(this.hostElement).querySelector("#page-manager").getCurrentData();D=isNaN(D)?this.getPageOffset():D;var X=_.iX().resolve(_.HV).currentEndpoint;this.replaceState(X,C,D)}};
_.S.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.S.onYtNavigateStart=function(D,C){this.cancelPendingTasks();C.noProgressBar||(D=_.iX().resolve(_.vK($2P)))&&D.start();D=this.hasPendingNavigation?null:this.data;var X=_.iX().resolve(_.lu),c,W,p;_.b("kevlar_use_vimio_behavior")&&!((c=C.endpoint)==null?0:(W=c.commandMetadata)==null?0:(p=W.webCommandMetadata)==null?0:p.ignoreNavigation)&&(c=X.getCurrentPage())&&c.disconnectVisibilityRoot();X.prepareForNavigation(C.pageType,C.endpoint);_.b("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.s7(1,
"pcl"),_.mV(this.pagePreparer,X.preparePage.bind(X,C.pageType,C.endpoint)));c=this.getPageOffset();this.initHistoryManager(c);C.reload||this.hasPendingNavigation?(C.pageType==="shorts"&&C.reload&&_.lE(this.hostElement,"yt-shorts-reset"),this.replaceState(C.endpoint,D,c)):(D==null?void 0:D.page)==="watch"&&C.pageType==="watch"&&_.b("kevlar_replace_watch_to_watch_history_state")?this.replaceState(C.endpoint,D,c):(D==null?void 0:D.page)!=="shorts"||C.pageType!=="shorts"||C.endpoint.reelWatchEndpoint.sequenceParams||
_.b("short_to_short_back_nav_killswitch")?C.type!="navigate-back"&&C.type!="navigate-forward"&&(C.pageType==="shorts"&&_.lE(this.hostElement,"yt-shorts-reset"),this.saveAndPush(C.url,C.endpoint,D,c)):this.replaceState(C.endpoint,D,0);this.hasPendingNavigation=!0};
var Kt6=function(D){D.hasPendingNavigation=!1;(D=_.iX().resolve(_.vK($2P)))&&D.finish()};
Zl.prototype.onYtNavigateError=function(D,C){Kt6(this);D=this.get("endpoint.commandMetadata.webCommandMetadata.url",C);var X=_.UY(window.location.href);D&&!X.pbjreload&&(C=C.navigationErrorReason||"10",_.b("kevlar_parent_on_pbjreload")&&(X={csn:_.LN()},this.get("data.endpoint.clickTrackingParams")&&(X.itct=this.data.endpoint.clickTrackingParams),_.jc(D,X)),_.nH(_.gT(D,{pbjreload:C})))};
Zl.prototype.onYtNavigateCache=function(D,C){var X=this,c=C.url,W=C.endpoint,p=C.data;D=!!C.miniplayer;C=!!C.skipHistory;if(c&&W&&p){var g=this.getPageOffset(),a=this.data||null;C||this.saveAndPush(c,W,a,g);c=_.Fse(_.iX().resolve(_.HV),W,p,D?4:3,{},D);D&&c.then(function(){X.dataUpdatePromise&&X.dataUpdatePromise.then(function(){var O=_.iX().resolve(_.lu);X.setPageOffset(O.getCurrentPage(),0)})})}};
Zl.prototype.onYtNavigateFinish=function(D,C){var X=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){hMY(X,C.fromHistory)})};
var hMY=function(D,C){Kt6(D);if(D.pendingPlayerOnResponseReceivedActions){for(var X=_.U(D.pendingPlayerOnResponseReceivedActions),c=X.next();!c.done;c=X.next())_.O4(c.value,D.hostElement);D.pendingPlayerOnResponseReceivedActions=[]}X=_.iX().resolve(_.lu);C||!D.hasNavigated||_.b("web_disable_scroll_on_navigate_finish")||((C=X.getCurrentPage())?C.is==="ytd-shorts"||D.tabGesturesIsActive||D.setPageOffsetForNavigation(C,0):_.fQ(Error("wl")));_.TA(function(){_.TA(function(){_.sp("pda")})})};
Zl.prototype.onYtNavigate=function(D){if(!D.detail.endpoint){var C=new _.Zf("Error: Missing yt-navigate endpoint from target:",D.target,D.target.nodeName);_.MN(C)}if(C=_.b("cold_missing_history"))C=GW(),C.init(!1),C=!(C.browserHistory.boundHistoryReplaceState&&C.browserHistory.boundHistoryPushState);if(C){_.M6("DISABLE_WARM_LOADS",!0);C=new _.Zf("Failed to initialize history manager",this.getDebugString());var X=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
X?_.fQ(C):_.MN(C)}C=D.detail.endpoint;var c,W;_.b("debug_forward_web_query_parameters")&&((c=C.commandMetadata)==null?0:(W=c.webCommandMetadata)==null?0:W.url)&&(C=JSON.parse(JSON.stringify(C)),C.commandMetadata.webCommandMetadata.url=_.ko5(C.commandMetadata.webCommandMetadata.url,window.location.search));D={type:0,command:C,form:{params:D.detail.params,tempData:D.detail.tempData||{},requestType:D.detail.type,createScreenConfig:D.detail.createScreenConfig,reload:D.detail.reload?D.detail.reload:!1,
requestForm:D.detail}};_.b("kevlar_yt_navigate_command_handler")?(c=_.iX().resolve(_.uX),D.form.skipDefaultElement=!0,c.resolveCommand(C,{form:D.form})):this.handleNavigate(D)};
Zl.prototype.handleNavigate=function(D){this.hasSetScrollTopForNavigation=!1;var C=_.iX().resolve(_.HV),X=D.form||{};C.navigate(D.command,X.reload,X.params,X.tempData,X.requestType,X.createScreenConfig,X.ignoreConfirmation,X.requestForm)&&bZX(this,D.command,X.tempData)};
Zl.prototype.onYtPageDataFetched=function(D,C){try{_.Luk().reset();this.data=C.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.iX().resolve(_.lu).updatePageData(this.data);var X=this.get("playerResponse.onResponseReceivedActions",this.data);X&&(X=x2X(this,X));X&&_.o7(this.hostElement,X,this.hostElement);var c=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),W=this.get("response.responseContext.consistencyTokenJar",this.data);if(c||W){var p=_.O33(),g=(0,_.ZI.getValues)(p.tokenJars);c&&p.replace(g,c);W&&p.replace(g,W)}}catch(a){_.MN(a)}};
var bZX=function(D,C,X){try{D.onYtEndpointChangeHandler(C,X)}catch(c){_.MN(c)}};
_.S=Zl.prototype;_.S.onYtEndpointChangeHandler=function(){};
_.S.setPageTitle=function(D){D=(this.pageTitle=D)?D+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+D};
_.S.onYtUpdateTitle=function(D,C){this.setPageTitle(C)};
_.S.setUnseenNotificationCount=function(D){this.unseenNotificationCount=D;this.setPageTitle(this.pageTitle)};
_.S.handleUpdateNotificationsUnseenCountAction=function(D){_.r(D,b6p)&&((D=_.r(D,b6p).unseenCount)?this.setUnseenNotificationCount(D):this.setUnseenNotificationCount(0))};
_.S.handleClearCookieAction=function(D){var C;(D=(C=_.r(D,kpY))==null?void 0:C.cookieName)&&_.wE3(D)};
_.S.onYtUpdateUnseenNotificationCount=function(D,C){this.setUnseenNotificationCount(C)};
_.S.loadData=function(D){var C=this;this.loadDepsPromise.then(function(){var X=_.iX().resolve(_.vK(_.HV));X||_.MN(Error("xl"));if(D&&D.response){if(!D.endpoint){var c=_.wl(window.document.location.href)||"/",W="";if(c==="/"||c.startsWith("/?"))W="WEB_PAGE_TYPE_BROWSE";D.endpoint={commandMetadata:{webCommandMetadata:{url:c,webPageType:W,rootVe:3854}}}}_.Fse(X,D.endpoint,D,5,{})}else D.endpoint?X.navigate(D.endpoint):X.navigate(_.fU);_.qX.cancelJob(C.zwiebackInitJobId);C.zwiebackInitJobId=_.qX.addLowPriorityJob(FXt)})};
var GW=function(){return _.iX().resolve(_.Mx)};
Zl.prototype.getDebugString=function(){return GW().getDebugString()};
Zl.prototype.getThirdPartyManipulationSuspected=function(){return GW().getThirdPartyManipulationSuspected()};
Zl.prototype.replaceState=function(D,C,X){GW().saveAndReplace(D,C,X)};
Zl.prototype.saveAndPush=function(D,C,X,c){GW().saveAndPush(D,C,X,c)};
var Bg3=function(D){return _.r(D.endpoint,_.TC)||_.r(D.endpoint,_.ko)?!0:!D||isNaN(D.expirationTime)?!1:(0,_.kh)()>D.expirationTime},rzX=function(D,C,X){var c=D.get("response.trackingParams",X),W=_.xr(),p=_.LN();
if(c&&W&&p&&(c=D.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",X),!c&&X.rootVe&&(c=X.rootVe),W=C?"forwardButton":"backButton",C=D.get("playerResponse.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",D.data),D=D.get("response.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",D.data),C=(D=C||D)?_.bO(D):void 0,D=_.iO(),W=[_.WE(X)],_.Gm(D,c,C,{dataPromises:W,csnToClone:X.csn}),X.graftedVes))for(X=
_.U(X.graftedVes),c=X.next();!c.done;c=X.next())_.Vc(D,c.value)};
Zl.prototype.onStoreGraftedVeAction=function(D){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(D)):_.fQ(Error("yl"))};
var x2X=function(D,C){return C.filter(function(X){for(var c in X)if(ksY[c])return D.pendingPlayerOnResponseReceivedActions.push(X),!0;return!1})};
_.$a.Object.defineProperties(Zl.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Zl.prototype.onStoreGraftedVeAction=Zl.prototype.onStoreGraftedVeAction;Zl.prototype.loadData=Zl.prototype.loadData;Zl.prototype.onYtUpdateUnseenNotificationCount=Zl.prototype.onYtUpdateUnseenNotificationCount;Zl.prototype.handleClearCookieAction=Zl.prototype.handleClearCookieAction;Zl.prototype.handleUpdateNotificationsUnseenCountAction=Zl.prototype.handleUpdateNotificationsUnseenCountAction;Zl.prototype.setUnseenNotificationCount=Zl.prototype.setUnseenNotificationCount;
Zl.prototype.onYtUpdateTitle=Zl.prototype.onYtUpdateTitle;Zl.prototype.setPageTitle=Zl.prototype.setPageTitle;Zl.prototype.onYtEndpointChangeHandler=Zl.prototype.onYtEndpointChangeHandler;Zl.prototype.onYtPageDataFetched=Zl.prototype.onYtPageDataFetched;Zl.prototype.handleNavigate=Zl.prototype.handleNavigate;Zl.prototype.onYtNavigate=Zl.prototype.onYtNavigate;Zl.prototype.onYtNavigateFinish=Zl.prototype.onYtNavigateFinish;Zl.prototype.onYtNavigateCache=Zl.prototype.onYtNavigateCache;
Zl.prototype.onYtNavigateError=Zl.prototype.onYtNavigateError;Zl.prototype.onYtNavigateStart=Zl.prototype.onYtNavigateStart;Zl.prototype.cancelPendingTasks=Zl.prototype.cancelPendingTasks;Zl.prototype.initHistoryManager=Zl.prototype.initHistoryManager;Zl.prototype.onYtHistoryLoad=Zl.prototype.onYtHistoryLoad;Zl.prototype.onYtHistoryPop=Zl.prototype.onYtHistoryPop;Zl.prototype.onYtNavigateSetPageOffset=Zl.prototype.onYtNavigateSetPageOffset;Zl.prototype.setPageOffset=Zl.prototype.setPageOffset;
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Zl.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Zl.prototype,"data",void 0);_.V([_.$n("yt-navigate-set-page-offset"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Zl.prototype,"onYtNavigateSetPageOffset",null);
_.V([_.$n("yt-history-pop"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Zl.prototype,"onYtHistoryPop",null);_.V([_.$n("yt-history-load"),_.z("design:type",Function),_.z("design:paramtypes",[Event,_.CNb]),_.z("design:returntype")],Zl.prototype,"onYtHistoryLoad",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Zl.prototype,"onYtNavigate",null);
_.V([_.$n("yt-update-title"),_.z("design:type",Function),_.z("design:paramtypes",[Event,String]),_.z("design:returntype")],Zl.prototype,"onYtUpdateTitle",null);_.V([_.$n("yt-update-unseen-notification-count"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Number]),_.z("design:returntype")],Zl.prototype,"onYtUpdateUnseenNotificationCount",null);_.V([_.Br()],Zl);veY.YtdAppBehavior=[_.Jy.YtActionHandlerBehavior,Zl.prototype];var Vx=function(){var D=_.Qj.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.h(Vx,_.Qj);Vx.prototype.ready=function(){var D=this;_.SY(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){D.onChange_()})};
Vx.prototype.dataChanged_=function(){_.SY(this.hostElement).querySelector("#checkbox").checked=!1};
Vx.prototype.onChange_=function(){var D=_.SY(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.lE(this.hostElement,"yt-dismissal-reason-"+D,this.data.feedbackToken)};
Vx.prototype.dataChanged_=Vx.prototype.dataChanged_;_.V([_.n(),_.z("design:type",Object)],Vx.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vx.prototype,"dataChanged_",null);_.V([_.Br()],Vx);var LtX=[Vx.prototype];var TW=function(){var D=_.Qj.apply(this,arguments)||this;D.timeoutJobId=0;D.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return D};
_.h(TW,_.Qj);TW.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
TW.prototype.startTimeout=function(){var D=this,C=this.data&&this.data.displayDurationSeconds;C&&!this.timeoutJobId&&(this.timeoutJobId=_.Zo(_.qX,function(){_.DS(D.hostElement,"yt-close-popup-action",[D.is]);D.timeoutJobId=0},C*1E3))};
TW.prototype.cancelTimeout=function(){_.qX.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
TW.prototype.ytdHatsSurveyBehaviorDataChanged=TW.prototype.ytdHatsSurveyBehaviorDataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TW.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.V([_.Br()],TW);var szG=[_.Jy.YtActionHandlerBehavior,TW.prototype];var m2Y=function(D,C){var X;return((X=D.prefixMapping)==null?0:X[C])?D.prefixMapping[C]:D.SHARED_RENDERERS_.hasOwnProperty(C)?"yt":D.prefix},HD={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}};HD.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.b("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
HD.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};HD.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};HD.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
HD.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)"}};
HD.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};
HD.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};
HD.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};
HD.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
HD.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"}};HD.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};HD.TOAST={component:null,properties:{}};var eM3=new function(D,C,X){this.supportedPopups=D;this.navigationEndpointPopupMap=C;this.popupTypeMap=X;this.supportedPopups=D;this.navigationEndpointPopupMap=C;this.popupTypeMap=X}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.b("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"}),EeP=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20439_popupConfig=HD;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 t9t=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.IL.getInstance()},JB=function(D,C){var X=D.pageNameToElement.get(C);
if(!X){switch(C){case "watch":var c=_.b("web_watch_force_learning_journey_for_testing")?_.L4("ytd-watch-learning-journey"):_.b("kevlar_watch_fixie")?_.L4("ytd-watch-fixie"):_.b("kevlar_watch_grid")?_.L4("ytd-watch-grid"):_.L4("ytd-watch-flexy");break;case "learning_journey_watch":c=_.L4("ytd-watch-learning-journey");break;case "shorts":c=_.L4("ytd-shorts");break;case "search":c=_.L4("ytd-search");break;case "channel":c=_.L4("ytd-browse");c.pageSubtype="channels";break;case "trending":c=_.L4("ytd-browse");
c.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":c=
_.L4("ytd-browse");c.pageSubtype=C;break;case "browse":c=_.L4("ytd-browse");break;default:_.fQ(new _.Zf("Error getting page element for type",C))}X=c;D.pageNameToElement.set(C,X)}return X};
t9t.prototype.preparePage=function(D,C,X){X&&(D=_.A9(X)||D);if(D!=="watch"&&D!=="learning_journey_watch"){var c=this.elementPoolPopulator,W=D;W!=c.targetPage_&&c.pendingPages_.indexOf(W)>-1&&(c.targetPage_&&(c.pendingPages_.unshift(c.targetPage_),c.abort()),bX1(c,W),_.XUJ(c,W))}if((c=JB(this,D))||!_.r(X,_.oX)){c.isAttached||c===C||(c.hidden=!0);if(!c.data&&(D!=="watch"&&D!=="learning_journey_watch"||!_.b("swatcheroo_page_pool_dont_provide_filler_data"))){var p;if(D=(p=_.q6("FILLER_DATA",{})[D])==
null?void 0:p.response)c.data=D}return c}};var NgX=function(D){this.JSC$32887_clientRoot=D;this.playlistHandlerActionMap={"yt-add-to-playlist-command":MzP,"yt-end-playlist-command":qGN,"yt-recover-playlist-command":dyY,"yt-refresh-playlist-command":DsU,"yt-playlist-remove-videos-action":RYX};_.p2(_.Wf.getInstance(),this.playlistHandlerActionMap,this.JSC$32887_clientRoot);tG1()},YVG;var zW=function(D,C,X){this.apiKey=D;this.endpoint=C;this.confidenceThreshold=X===void 0?.5:X;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=C==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||C==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
C==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||C==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new DxG};
_.S=zW.prototype;
_.S.start=function(D){if(this.state===0)if(this.isOnline()){D.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=D.supportsHttpHeadersOverwriteParam);D.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=D.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Lt("voice_assistant");_.mU("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=D.languageCode||"en-US";this.supportsCrossDomainXhr=D.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=D.youtubeAssistantRequest||null;this.listeningHandler=D.listeningHandler||this.listeningHandler;this.audioDetectedHandler=D.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=D.stopHandler||this.stopHandler;this.completeHandler=D.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=D.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=D.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
D.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=D.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=D.accessToken;this.additionalHeaders=D.additionalHeaders||{};var C;this.prefetchResponseTimeoutMs=(C=D.prefetchResponseTimeoutMs)!=null?C:this.prefetchResponseTimeoutMs;yzk(this);this.startAudio();neG(this)}else this.errorHandler("OFFLINE")};
_.S.stop=function(D){var C=D===void 0?{}:D;D=C.logCancel===void 0?!0:C.logCancel;var X=C.logMicClosed===void 0?!0:C.logMicClosed;var c=C.handleError===void 0?!0:C.handleError;C=C.handleStop===void 0?!0:C.handleStop;this.state!==0&&(D&&j7("voz_cx"),Ma(this,{logMicClosed:X,handleStop:C}),c&&this.errorHandler("ABORTED"))};
_.S.getState=function(){return this.state};
_.S.isSupported=function(){return!0};
_.S.stopAudio=function(D){(D===void 0||D)&&j7("voz_mf")};
_.S.startAudio=function(){j7("voz_vp");return _.WE(null)};
var wbG=function(D,C){D.channelOpen&&(D.state!==2&&(D.state=2,j7("voz_ss"),D.listeningHandler()),C=new Uint8Array(C),C='{ "audioIn": "'+_.tP(C)+'" }',D.channel.send(C))},Ma=function(D,C){var X=C===void 0?{}:C;
C=X.logMicClosed===void 0?!0:X.logMicClosed;X=X.handleStop===void 0?!0:X.handleStop;D.vozEndOfDataTimeout>-1&&(clearTimeout(D.vozEndOfDataTimeout),D.vozEndOfDataTimeout=-1);Ftt(D);D.stopAudio(C);D.channel&&(D.channelOpen=!1,D.manuallyClosedChannel=!0,D.channel.close(),D.channel=void 0);D.transcribedSpeechResults=[];D.state=0;X&&D.stopHandler()},yzk=function(D){var C={httpHeadersOverwriteParam:D.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},D.additionalHeaders,D.accessToken&&D.isUsingVoz?{Authorization:"Bearer "+D.accessToken}:{"x-goog-api-key":D.apiKey}),supportsCrossDomainXhr:D.supportsCrossDomainXhr};D.channel=new aP(D.endpoint,C);D.channel.open();_.Kb(D.channel,"w",function(){var X=D.channel,c=X.send,W=D.isUsingVoz?"PLACEHOLDER":"example";W={config:{dialogStateIn:{languageCode:D.languageCode},deviceConfig:{deviceId:W,deviceModelId:W},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!D.isUsingVoz)W.config.requestType=4;else if(D.isUsingVoz&&D.youtubeAssistantRequest){var p=JSON.stringify(D.youtubeAssistantRequest);W.config.internalIn={youtubeAssistantS3InputJson:p}}c.call(X,W);D.channelOpen=!0;D.manuallyClosedChannel=!1});
_.Kb(D.channel,"x",function(){D.manuallyClosedChannel||(D.channelOpen=!1,D.channel=void 0,Ma(D))});
_.Kb(D.channel,"z",function(X){if(X.data){Ftt(D);for(var c=0;c<X.data.length;c++){var W=D,p=X.data[c],g=p.speechResults;if(g)a:{var a=[];p=[];var O=!1;g=_.U(g);for(var P=g.next();!P.done;P=g.next()){P=P.value;if(P.noSpeech){Ma(W);W.errorHandler("NO_SPEECH");break a}P.transcript!==void 0&&P.stability!==void 0&&(P.stability<W.confidenceThreshold&&(O=!0),O?p.push(P.transcript):a.push(P.transcript))}if(a.length!==0||p.length!==0)a=a.join(" "),p=p.join(" "),W.receivedEndOfUtterance&&!W.isUsingVoz?W.isUsingVoz||
W.completeHandler([a,p]):(O=W,g=a,P=p,j7("voz_sf"),O.transcriptionUpdateHandler(g,P),O.transcribedSpeechResults=[g,P]),W.receivedEndOfUtterance&&(j7("voz_eou"),W.transcriptionCompleteHandler([a,p]),W.isUsingVoz&&(W.prefetchResponseTimeoutMs===0?Ma(W,{logMicClosed:!1,handleStop:!0}):W.prefetchResponseTimeoutMs>0&&ZZ3(W)))}else W.isUsingVoz&&(p==null?0:p.internalOut)?(p=JSON.parse(p.internalOut.youtubeAssistantS3OutputJson),p.userHasOptedInToVaa||p.vaaConsent?W.vaaConsentUpdateHandler(!!p.userHasOptedInToVaa,
!!p.vaaConsent):(GsN(W),p&&(a=W.transcribedSpeechResults,j7("voz_rqf"),W.completeHandler(a,p)))):p.eventType==="END_OF_UTTERANCE"?W.receivedEndOfUtterance=!0:(j7("voz_err"),W.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.fQ(Error("zl")))}}});
_.Kb(D.channel,"y",function(X){Ma(D);switch(X.status){case 1:X="WEBCHANNEL_NETWORK_ERROR";break;case 2:X="WEBCHANNEL_SERVER_ERROR";break;default:X="WEBCHANNEL_UNKNOWN_ERROR"}D.errorHandler(X);D.logError(Error(X))})};
zW.prototype.logError=function(D){_.MN(D)};
zW.prototype.isOnline=function(){return!0};
var ZZ3=function(D){GsN(D);D.prefetchResponseSetTimeoutId=setTimeout(function(){Ma(D,{logMicClosed:!1,handleStop:!0})},D.prefetchResponseTimeoutMs)},GsN=function(D){D.prefetchResponseSetTimeoutId>-1&&(clearTimeout(D.prefetchResponseSetTimeoutId),D.prefetchResponseSetTimeoutId=-1)},neG=function(D){Ftt(D);
D.noResponseReceivedTimeout=window.setTimeout(function(){Ma(D);D.errorHandler("NO_SPEECH")},11E3)},Ftt=function(D){D.noResponseReceivedTimeout>-1&&(window.clearTimeout(D.noResponseReceivedTimeout),D.noResponseReceivedTimeout=-1)},j7=function(D){_.sp(D,void 0,"voice_assistant")};var qa=function(){zW.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.h(qa,zW);qa.prototype.isSupported=function(){return Cpo()};
qa.prototype.startAudio=function(){var D=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.x7(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(c){V9P(D,c)};
this.processor.connect(this.audioContext.destination);var C=function(c){D.stream=c;if(!D.audioContext)return _.WE(null);c=D.audioContext.createMediaStreamSource(c);D.processor&&c.connect(D.processor);return _.WE(null)},X={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?C(this.stream):(X=navigator.mediaDevices.getUserMedia(X))?X.then(C).catch(function(c){Ma(D);c.name&&c.name==="NotAllowedError"?D.errorHandler("NO_MICROPHONE_PERMISSION"):(D.errorHandler("AUDIO_ERROR"),D.logError(c));return _.x7(null)}):(Ma(this),this.errorHandler("AUDIO_ERROR"),_.fQ(Error("Al")));
return zW.prototype.startAudio.call(this)};
qa.prototype.stopAudio=function(D){D=D===void 0?!0:D;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(C){C.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;zW.prototype.stopAudio.call(this,D)};
qa.prototype.isOnline=function(){return navigator.onLine};
var V9P=function(D,C){if(D.audioContext)if(window.OfflineAudioContext){var X=D.audioContext.sampleRate,c=C.inputBuffer.getChannelData(0);C=new window.OfflineAudioContext(1,c.length,16E3);for(var W=C.createBuffer(1,c.length,X),p=W.getChannelData(0),g=0,a=0;a<c.length;a++)p[a]=c[a],g+=p[a]*p[a];!D.audioDetected&&Math.sqrt(g/c.length)>.01&&(D.audioDetected=!0,D.audioDetectedHandler());c=C.createBufferSource();c.buffer=W;c.connect(C.destination);c.start(0);C.oncomplete=function(O){O=O.renderedBuffer.getChannelData(0);
for(var P=Math.floor(16384E3/X),k=new Int16Array(P),u=0;u<P;++u)k[u]=Math.max(-1,Math.min(1,O[u]))*32767;wbG(D,k.buffer)};
C.startRendering()}else TgP(D,C)},TgP=function(D,C){var X=D.audioContext.sampleRate,c=C.inputBuffer.getChannelData(0),W=Math.floor((X+8E3)/16E3);
X=c.length/W;C=new Float32Array(X);for(var p=0;p<X;++p)C[p]=c[p*W];c=new Int16Array(X);for(W=0;W<X;++W)c[W]=Math.max(-1,Math.min(1,C[W]))*32767;wbG(D,c.buffer)};var HZt={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Jzw=function(){this.JSC$20504_audioEnabled=!0;this.audioFeedbackHolder={}};
Jzw.prototype.isPlaying=function(D){return D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>2};
var zMt=function(D){for(var C=_.U(Object.values(HZt)),X=C.next();!X.done;X=C.next())X=X.value,D.audioFeedbackHolder[X]=new Audio,D.audioFeedbackHolder[X].src="/s/search/audio/"+X+".mp3",D.audioFeedbackHolder[X].load()},fM=function(D,C){if(D.JSC$20504_audioEnabled!==!1&&C in D.audioFeedbackHolder){for(var X=_.U(Object.values(D.audioFeedbackHolder)),c=X.next();!c.done;c=X.next())c=c.value,D.isPlaying(c)&&c.pause();
D.audioFeedbackHolder[C].currentTime=0;D.audioFeedbackHolder[C].play().catch(function(){})}};var jzp=function(D,C){var X=this;this.store=D;this.service=C;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){X.setState("offline");X.stop()};
this.audioPlayer=new Jzw;var c;(c=this.audioPlayer)==null||zMt(c)};
_.S=jzp.prototype;_.S.getService=function(){return this.service};
_.S.isEnabled=function(){return!!this.service};
_.S.isSupported=function(){var D;return(D=this.service)==null?void 0:D.isSupported()};
_.S.start=function(){var D=this,C,X,c,W,p,g,a,O,P,k,u,Q,B;return _.I(function(K){switch(K.nextAddress){case 1:D.store.dispatch(VUG("",""));if(!navigator.onLine)return D.setState("offline"),K.return();window.addEventListener("offline",D.handleOfflineEvent);D.stream=null;if(!D.permissionsSupported){K.jumpTo(2);break}_.KK(K,3);return K.yield(M9k(D),5);case 5:C=K.yieldResult;if(!C)return(X=D.audioPlayer)==null||fM(X,"failure"),K.return();D.service.stream=D.stream;D.setState("listening");_.SR(K,2);break;
case 3:_.Eu(K),D.permissionsSupported=!1;case 2:c={context:_.TJJ(_.QJ())},c.youtubeAssistantParams={searchParams:{inlineSearchResponse:D.enableInlineSearchResponse}},W=function(L,t){D.store.dispatch(TWt("transcribing"));D.store.dispatch(VUG(L,t))},p=function(){var L;
(L=D.audioPlayer)==null||fM(L,"open");D.setState("listening")},g=function(){D.setState("transcribing")},a=function(L){D.setErrorState(L)},O=function(L,t){var Y;
(Y=D.audioPlayer)==null||fM(Y,"success");t&&(_.b("kevlar_voice_search_inline_search")&&(D.responseProcessor=_.iX().resolve(_.LDo),D.responseProcessor&&(Y=t.navigationAction,L=t.prefetchedSearchResponse,Y&&L&&(Y=(new _.ei1).JSC$14344_getStoreKey(Y),_.HR(D.responseProcessor,L,Y)))),D.JSC$20522_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",t))},P=function(){window.removeEventListener("offline",D.handleOfflineEvent)},k=_.RnW(!1),u=k.Authorization!=null,Q=D.enableFirstPartyAuth||
D.enableFPAForSignedInUsers&&u?k:{"X-Goog-Visitor-Id":k["X-Goog-Visitor-Id"]},B={completeHandler:O,
errorHandler:a,listeningHandler:p,audioDetectedHandler:g,stopHandler:P,transcriptionUpdateHandler:W,youtubeAssistantRequest:c,languageCode:qVp(),additionalHeaders:Q,supportsCrossDomainXhr:D.enableFirstPartyAuth||D.enableFPAForSignedInUsers&&u,supportsHttpHeadersOverwriteParam:!D.disableHttpHeadersOverwrite},D.service.start(B),_.t_(K)}})};
_.S.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.S.reset=function(){this.store.dispatch(_.oI({type:"RESET_VOICE_SEARCH_STATE"}))};
_.S.setState=function(D){this.store.dispatch(TWt(D))};
_.S.setErrorState=function(D){switch(D){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var C;(C=this.audioPlayer)==null||fM(C,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)M9k(this);else{var X;(X=this.audioPlayer)==null||fM(X,"failure");this.setState("permission-denied")}break;case "ABORTED":var c;(c=this.audioPlayer)==null||fM(c,"no_input");break;default:var W;(W=this.audioPlayer)==
null||fM(W,"no_input");this.setState("timeout")}};
var M9k=function(D){var C,X;return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(navigator.permissions.query({name:"microphone"}),2);case 2:C=c.yieldResult;if(C.state==="granted")return c.return(!0);if(C.state==="denied")return D.setState("permission-denied"),c.return(!1);D.setState("permission");X={audio:{sampleSize:16,channelCount:1},video:!1};_.KK(c,3);return c.yield(navigator.mediaDevices.getUserMedia(X),5);case 5:return D.stream=c.yieldResult,c.return(!0);case 3:return _.Eu(c),
D.setState("permission-denied"),c.return(!1)}})},qVp=function(){var D=_.q6("INNERTUBE_CONTEXT_HL"),C=_.q6("INNERTUBE_CONTEXT_GL");
return D.indexOf("-")>-1?D:D+"-"+C};var fqX=function(D,C,X){jzp.call(this,C,X);this.JSC$20522_actionRouter=D;this.enableInlineSearchResponse=_.b("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.b("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.b("kevlar_voice_search_enable_fpa_signedin_users")},d2t;
_.h(fqX,jzp);
var RMk=function(){if(!d2t){var D="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.b("kevlar_voice_search_auth_enabled")||_.b("kevlar_voice_search_use_yt_endpoint")?D="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.b("kevlar_voice_search_use_fp_endpoint")&&(D="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");d2t=
new fqX(_.Wf.getInstance(),_.fe(),new qa(_.q6("VOZ_API_KEY"),D,.5))}return d2t};var lq1=function(D){this.JSC$20526_clientRoot=D;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20526_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));D=_.U(this.eventListeners);for(var C=D.next();!C.done;C=D.next()){var X=
_.U(C.value);C=X.next().value;X=X.next().value;X=_.U(X);for(var c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;C.addEventListener(c,W)}}_.p2(_.Wf.getInstance(),this.autonavPauseActionMap,this.JSC$20526_clientRoot)},Drp,CmY=function(D){return _.b("kevlar_autonav_popup_filtering")?(D=_.qz(D))?D.hasAttribute("prevent-autonav"):!0:!0};
_.S=lq1.prototype;_.S.onIronOverlayOpened=function(D){CmY(D)&&(this.autonavPauseReasons.overlayOpen=!0,d7(this))};
_.S.onIronOverlayClosed=function(D){CmY(D)&&(this.autonavPauseReasons.overlayOpen=!1,d7(this))};
_.S.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;d7(this)};
_.S.onYtAutonavPauseBlur=function(){var D=this;_.qX.addJob(function(){XZ6()||(D.autonavPauseReasons.inputBoxFocus=!1,d7(D))},8,0)};
_.S.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;d7(this)};
_.S.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;d7(this)};
_.S.onYtAutonavPauseScroll=function(){var D=_.iX().resolve(_.lu);D.isOnWatch()&&(D=D.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=D.getBoundingClientRect().top<-200,d7(this))};
_.S.onYtAutonavPauseUserEngagement=function(D){var C=this;if(_.b("user_engagement_enable_autoplay_pause_feature")){var X=Number(D.lowEngagementThresholdMs);isNaN(X)||X<=0||D.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.iX().resolve(_.B0),_.kl()<X?_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.wrG()?(this.userEngagementCsn=_.LN(),_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
C.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,d7(this)):_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.CKZ(Error("Bl`"+JSON.stringify(D)))};
_.S.onYtAutonavPausePlayer=function(D){this.autonavPauseReasons.requestedByPlayer=!!D.detail;d7(this)};
_.S.onYtAutonavVisibilityChanged=function(){var D=this,C,X,c;return _.I(function(W){if(W.nextAddress==1)return(C=_.CT())?W.yield(C.getPlayerPromise(),2):W.return();X=W.yieldResult;c=X.isMuted()||X.getVolume()===0;D.autonavPauseReasons.backgroundAndMute=XZ6()&&c;d7(D);_.t_(W)})};
_.S.onYtAutonavPausePlayerEnded=function(){_.iX().resolve(_.B0);var D=144E5;_.b("user_engagement_enable_autoplay_pause_feature")||_.b("is_part_of_any_user_engagement_experiment")||(D=45E5);this.autonavPauseReasons.longIdle=_.kl()>D;cd6(this);d7(this)};
_.S.onYtUserActivity=function(){var D=this;this.autonavPauseReasons.userEngagement&&(_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",D.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,d7(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",D.userEngagementCsn);_.je()}),this.autonavPauseReasons.youthereLactExperiment=!1,d7(this));
this.autonavPauseReasons.longIdle&&!_.b("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,d7(this))};
var XZ6=function(){var D=window.document.visibilityState;return!(!D||D==="visible")},d7=function(D){for(var C=!1,X=_.U(Object.values(D.autonavPauseReasons)),c=X.next();!c.done;c=X.next())c=c.value,C=C||c;
C?_.em.getInstance().pause(D.autonavPauseReasons):(D=_.em.getInstance(),D.autonavState_==3?(D.setState(2,!1,!1),D.autonavPauseReason_=void 0):D.autonavState_==1&&(D.disabledAutonavPauseReason_=void 0))},cd6=function(D){var C=!1;
if(_.b("enable_autoplay_pause_by_lact")){_.iX().resolve(_.B0);C=_.BK("autoplay_pause_by_lact_sec")*1E3;var X=_.BK("autoplay_pause_by_lact_sampling_fraction");(C=_.kl()>=C&&Math.random()<X)&&!_.wrG()&&(_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),C=!1)}C!==D.autonavPauseReasons.youthereLactExperiment&&(D.autonavPauseReasons.youthereLactExperiment=C)&&(D.userEngagementCsn=_.LN(),_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",D.userEngagementCsn)}));
D.autonavPauseReasons.userEngagement&&_.Zo(_.qX,function(){_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",D.userEngagementCsn)})};
lq1.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Oo("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.je(),this.autonavPauseReasons.youthereLactExperiment=!1,d7(this));this.autonavPauseReasons.userEngagement&&(_.Oo("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,d7(this))};
lq1.prototype.onYtEngagementPanelVisibleChanged=function(D){D.detail&&D.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=D.detail.visible,d7(this))};
lq1.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var o$N=_.TU.persistentPanelVisibleSelector,RP=function(){var D=_.w.apply(this,arguments)||this;D.miniGuideVisible=!1;D.guideOpened=_.b("disable_initial_guide_state_fix")?!1:D.canFitPersistentGuide(D.initialBodyClientWidth);D.guideUserStateOpened=D.getInitialGuideUserStateOpened();D.isFullscreenShorts=!1;D.miniGuideWidthThreshold=_.BK("kevlar_mini_guide_width_threshold",791);D.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
D.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");D.persistentGuideBlockedPagePathRegex=new RegExp(D.persistentGuideBlockedPagesPatterns.join("|"));D.animationTransitionDuration=0;D.lateDataResolver=_.zr();D.initialGuideDataFetchFailed=!1;D.initialLoad=!0;D.guideRenderers=new Set;D.isMouseOverGuide=!1;D.sessionUserManuallyExpandedGuideState=
!1;D.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return D};
_.h(RP,_.w);_.S=RP.prototype;_.S.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.S.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.S.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.S.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.S.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.S.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.S.ready=function(){_.iX().addProvider({provide:_.iC,useValue:this.hostElement})};
_.S.attached=function(){var D=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Pr(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Pr(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Pr(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Pr(this,this.onYtGuideShow));_.A0(this,function(){D.animationTransitionDuration=200})};
_.S.detached=function(){document.removeEventListener("yt-navigate-finish",_.Pr(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Pr(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Pr(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Pr(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Pr(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Pr(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Pr(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.S.getData=function(){return this.data};
_.S.load=function(){var D=this,C,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=D.lateDataResolver.resolve.bind(D),p.return(D.lateDataResolver.promise);if(window.ytInitialGuideData)return C=_.zr(),C.resolve(window.ytInitialGuideData),p.return(C.promise);c=!1;_.KK(p,2);return p.yield(D.fetchGuideData(),4);case 4:X=p.yieldResult;_.SR(p,3);break;case 2:W=_.Eu(p),W.message==="Returned error"&&(c=
!0);case 3:if(X)return p.return(X);D.onYtGuideClose();c||(D.initialGuideDataFetchFailed=!0);return p.return(D.lateDataResolver.promise)}})};
_.S.fetchGuideData=function(){var D=this,C,X,c,W,p,g,a;return _.I(function(O){if(O.nextAddress==1)return C=_.iX(),D.guidePromise||(X=C.resolve(_.Bl),D.guidePromise=_.Jl(X,jJp)),O.yield(D.guidePromise,2);if(O.nextAddress!=3)return c=O.yieldResult,W=C.resolve(_.At),O.yield(W(),3);(p=O.yieldResult)&&((g=c)==null?void 0:(a=g.responseContext)==null?void 0:a.maxAgeSeconds)!==0&&p.put("service:guide:fallback",new _.H9({innertubeResponse:c}));return O.return(c)})};
_.S.initializeGuideDataIfEmpty=function(){var D=this,C,X;return _.I(function(c){if(c.nextAddress==1){if(!D.initialGuideDataFetchFailed||D.data)return c.return();_.KK(c,2);return c.yield(D.fetchGuideData(),4)}if(c.nextAddress!=2)return(C=c.yieldResult)&&D.lateDataResolver.resolve(C),_.SR(c,0);X=_.Eu(c);_.fQ(X);_.t_(c)})};
_.S.initializeGuideData=function(){var D=this,C,X;return _.I(function(c){switch(c.nextAddress){case 1:return _.O3(Jvp(),{mainAppWeb:_.Th()}),_.KK(c,2),c.yield(D.load(),4);case 4:D.data=c.yieldResult;_.SR(c,3);break;case 2:C=_.Eu(c),_.AT(Jvp(),"FAILURE"),_.fQ(new _.Zf("Guide data not present",{errorMessage:C.message}));case 3:X=D.data&&D.data.items&&D.data.items.length>0?"SUCCESS":"FAILURE",X==="FAILURE"&&_.fQ(new _.Zf("Guide data.items empty")),_.AT(Jvp(),X),_.t_(c)}})};
_.S.setGuideData=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1)return C.disabled?W.return():C.data?(D.data=C.data,C.guideRenderers.add(D),W.return()):W.yield(C.initializeGuideData(),2);C.graftGuideToPage();X=_.dq("IS_HOMEPAGE_COLD")?"eop":void 0;_.b("disable_element_pool_populator")?C.setGuideDataAfterInit(D):(c=new _.s7(1,X),_.mV(c,C.setGuideDataAfterInit.bind(C,D)));_.t_(W)})};
_.S.setGuideDataAfterInit=function(D){D.data=this.data;D.markDirty();this.guideRenderers.add(D);_.TA(function(){_.sp("gle")});
_.A0(this,function(){_.sp("gpe")})};
_.S.graftGuideToPage=function(){if(this.data){var D=this.data&&this.data.trackingParams;D&&(D=_.bO(D),_.Tm(_.iO(),D))}};
_.S.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Pr(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.S.onDrawerOpenedChanged=function(D,C){!C.value&&this.guideOpened&&(this.guideOpened=!1)};
_.S.onYtGuideToggle=function(D){var C=this.guideOpened;this.guideOpened=!C;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var X=_.PE();_.$C(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;X.save()}this.updateGuideDrawerElementState();if(this.guideElement){var c;this.guideOpened&&((c=D.detail)==null?0:c.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Pr(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Pr(this,this.onAppDrawerTransitioned))}C||this.initializeGuideDataIfEmpty()};
_.S.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Pr(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ii(this.guideElement)};
_.S.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Pr(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(ZrG(this.guideOpened))};
_.S.guidePersistentAndVisibleChanged=function(){_.Ct(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.S.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.oI({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.S.miniGuideVisibleChanged=function(){_.Ct(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.S.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(ZrG(this.guideOpened)),this.initialLoad=!1);_.Ct(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.S.activeEndpointChanged=function(){_.Ct(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.S.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.S.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()};
_.S.cachedClientWidthChanged=function(){this.updateGuideState()};
_.S.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.S.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var D=this.canFitPersistentGuide(this.cachedClientWidth);D?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=D}this.updateGuideDrawerElementState()};
_.S.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.S.getGuideOpened=function(){return this.guideOpened};
_.S.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.S.getActiveEndpoint=function(){return this.activeEndpoint};
_.S.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.S.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&&_.lE(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.S.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.b("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.S.handleGuideMouseLeave=function(){var D=this;!this.sessionUserManuallyExpandedGuideState&&_.b("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Hr(this,"handleGuideMouseLeave",function(){D.isMouseOverGuide||!D.guideOpened||D.miniGuideVisible||(D.guideOpened=!1,D.updateGuideDrawerElementState())},100))};
_.S.computeGuidePersistentAndVisible=function(){var D=this;_.Hr(this,"computeGuidePersistentAndVisible",function(){D.guidePersistentAndVisible=D.guideOpened&&D.guidePersistent;D.guideIsVisibleButNotPersistent=!(!D.guideOpened||D.guidePersistent)})};
_.S.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.S.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.S.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.S.startLoadingWatch=function(){this.closeGuide()};
_.S.startLoadingShorts=function(){_.b("web_hide_guide_on_shorts")&&this.closeGuide()};
_.S.onYtNavigateFinish=function(D,C){if(!_.g1||C){this.activeEndpoint=C.endpoint;this.pageType=C.pageType;this.pageUrl=C.response.url;var X,c;D=(c=_.r((X=C.endpoint)==null?void 0:X.commandMetadata,_.ge))==null?void 0:c.url;!this.pageUrl&&D&&(this.pageUrl=D);_.b("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.S.getVisibleGuideRenderer=function(){for(var D=_.U(this.guideRenderers),C=D.next();!C.done;C=D.next())if(C=C.value,this.miniGuideVisible&&C.is==="ytd-mini-guide-renderer"||this.guideOpened&&C.is==="ytd-guide-renderer")return C;return null};
_.S.markGuideRendererDirty=function(D){if(D){typeof D.markDirty==="function"&&D.markDirty();D=_.U([].concat(_.VB(_.SY(D).children)));for(var C=D.next();!C.done;C=D.next())this.markGuideRendererDirty(C.value)}};
_.S.persistentGuideEnabled=function(D,C){if(!C||D==="watch"||D==="settings"||D==="shorts"&&this.isFullscreenShorts||_.b("reels_web_disable_persistent_guide_shorts")&&D==="shorts")return!1;var X=_.mC(C)||"";return _.b("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(c){return X===c}):!this.persistentGuideBlockedPagePathRegex.test(X)};
_.S.canFitPersistentGuide=function(D){var C=_.BK("kevlar_persistent_guide_width_threshold",1312);return C===-1||_.b("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:D>this.calculateGuideThreshold(C)};
_.S.calculateGuideThreshold=function(D){return _.b("enable_ai_companion")?D+(this.persistentPanelVisible?400:0):D};
_.S.canFitMiniGuide=function(D){return this.miniGuideWidthThreshold===-1?!1:D>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.S.onResize=function(){var D=this;_.Hr(this,"calculateGuideState",function(){D.onResizeDebounced()})};
_.S.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.S.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.S.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.S.getInitialGuideUserStateOpened=function(){return _.b("web_force_mini_guide_default")?!1:!_.PE().getFlag(109)};
_.$a.Object.defineProperties(RP.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.q6("initialBodyClientWidth")||window.innerWidth}}});
RP.prototype.onResize=RP.prototype.onResize;RP.prototype.observeForMiniGuideVisible=RP.prototype.observeForMiniGuideVisible;RP.prototype.computeGuidePersistentAndVisible=RP.prototype.computeGuidePersistentAndVisible;RP.prototype.persistentPanelVisibleChanged=RP.prototype.persistentPanelVisibleChanged;RP.prototype.cachedClientWidthChanged=RP.prototype.cachedClientWidthChanged;RP.prototype.resetGuide=RP.prototype.resetGuide;RP.prototype.activeEndpointChanged=RP.prototype.activeEndpointChanged;
RP.prototype.guideOpenedChanged=RP.prototype.guideOpenedChanged;RP.prototype.miniGuideVisibleChanged=RP.prototype.miniGuideVisibleChanged;RP.prototype.guideIsVisibleButNotPersistentChanged=RP.prototype.guideIsVisibleButNotPersistentChanged;RP.prototype.guidePersistentAndVisibleChanged=RP.prototype.guidePersistentAndVisibleChanged;RP.prototype.onGuideElementChanged=RP.prototype.onGuideElementChanged;RP.prototype.onGuidePersistentChanged=RP.prototype.onGuidePersistentChanged;
RP.prototype.onRenderGuideChanged=RP.prototype.onRenderGuideChanged;RP.prototype.onActiveEndpointChanged=RP.prototype.onActiveEndpointChanged;RP.prototype.onMiniGuideVisibleChanged=RP.prototype.onMiniGuideVisibleChanged;RP.prototype.onGuideIsVisibleButNotPersistentChanged=RP.prototype.onGuideIsVisibleButNotPersistentChanged;RP.prototype.onGuidePersistendAndVisibleChanged=RP.prototype.onGuidePersistendAndVisibleChanged;
_.V([_.m(_.lR),_.z("design:type",Object)],RP.prototype,"ironResizableBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],RP.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],RP.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],RP.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Boolean)],RP.prototype,"disabled",void 0);_.V([_.n(),_.z("design:type",Boolean)],RP.prototype,"guidePersistentAndVisible",void 0);_.V([_.vr("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onGuidePersistendAndVisibleChanged",null);_.V([_.n(),_.z("design:type",Boolean)],RP.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.vr("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.V([_.n(),_.z("design:type",Object)],RP.prototype,"miniGuideVisible",void 0);_.V([_.vr("miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onMiniGuideVisibleChanged",null);_.V([_.n(),_.z("design:type",Boolean)],RP.prototype,"forceMiniGuideClose",void 0);
_.V([_.n(),_.z("design:type",Object)],RP.prototype,"activeEndpoint",void 0);_.V([_.vr("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onActiveEndpointChanged",null);_.V([_.n(),_.z("design:type",Boolean)],RP.prototype,"renderGuide",void 0);_.V([_.vr("renderGuide"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onRenderGuideChanged",null);
_.V([_.n({selector:o$N}),_.z("design:type",Boolean)],RP.prototype,"persistentPanelVisible",void 0);_.V([_.n(),_.z("design:type",Object)],RP.prototype,"guideOpened",void 0);_.V([_.n(),_.z("design:type",Boolean)],RP.prototype,"guidePersistent",void 0);_.V([_.vr("guidePersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onGuidePersistentChanged",null);_.V([_.n(),_.z("design:type",Object)],RP.prototype,"guideUserStateOpened",void 0);
_.V([_.n(),_.z("design:type",String)],RP.prototype,"pageUrl",void 0);_.V([_.n(),_.z("design:type",String)],RP.prototype,"pageType",void 0);_.V([_.n(),_.z("design:type",Number)],RP.prototype,"cachedClientWidth",void 0);_.V([_.n(),_.z("design:type",Object)],RP.prototype,"guideElement",void 0);_.V([_.n({selector:_.o9}),_.z("design:type",Object)],RP.prototype,"isFullscreenShorts",void 0);
_.V([_.vr("guideElement"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onGuideElementChanged",null);_.V([_.vr("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"guidePersistentAndVisibleChanged",null);
_.V([_.bH("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"guideIsVisibleButNotPersistentChanged",null);_.V([_.vr("miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"miniGuideVisibleChanged",null);_.V([_.bH("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"guideOpenedChanged",null);
_.V([_.vr("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"activeEndpointChanged",null);_.V([_.bH("pageUrl"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"resetGuide",null);_.V([_.bH("cachedClientWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"cachedClientWidthChanged",null);
_.V([_.bH("persistentPanelVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"persistentPanelVisibleChanged",null);_.V([_.vr("guideOpened","guidePersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"computeGuidePersistentAndVisible",null);
_.V([_.bH("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"observeForMiniGuideVisible",null);_.V([_.$n("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RP.prototype,"onResize",null);_.V([_.yj({disableElementRegistration:!0,is:"yt-guide-manager"})],RP);
var Wip=_.G(RP,"yt-guide-manager",void 0,{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var lz=function(){var D=_.w.apply(this,arguments)||this;D.JSC$20536_keyboardInUse=!1;D.boundHandleCapturedKeydownEvent=function(C){D.handleCapturedKeydownEvent(C)};
return D};
_.h(lz,_.w);_.S=lz.prototype;_.S.attached=function(){this.listenToDocument(document)};
_.S.listenToDocument=function(D){D.addEventListener("keydown",_.Pr(this,this.onKeyDownEvent));D.addEventListener("keyup",_.Pr(this,this.onKeyUpEvent));D.addEventListener("mousedown",_.Pr(this,this.onMouseDownEvent));_.b("desktop_keyboard_capture_keydown_killswitch")||D.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.addEventListener("yt-page-data-updated",_.Pr(this,this.onPageUpdate))};
_.S.detached=function(){this.unlistenFromDocument(document)};
_.S.unlistenFromDocument=function(D){D.removeEventListener("keydown",_.Pr(this,this.onKeyDownEvent));D.removeEventListener("keyup",_.Pr(this,this.onKeyUpEvent));D.removeEventListener("mousedown",_.Pr(this,this.onMouseDownEvent));_.b("desktop_keyboard_capture_keydown_killswitch")||D.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.removeEventListener("yt-page-data-updated",_.Pr(this,this.onPageUpdate))};
_.S.ready=function(){_.iX().addProvider({provide:_.E7,useValue:this})};
_.S.isKeyBoardInUse=function(){return this.JSC$20536_keyboardInUse};
_.S.handleCapturedKeydownEvent=function(D){if(D.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(D)};
_.S.onMouseDownEvent=function(){this.JSC$20536_keyboardInUse=!1};
_.S.onPageUpdate=function(){if(_.b("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.b("web_shorts_keyboard_shortcut_usage_log")){_.Tit.clear();for(var D=_.U(_.$W),C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;X=_.Ia(X);_.Tit.set(C,X);_.F_(_.LN(),_.xr(),X)}_.HG1.clear();D=_.U(_.vU);for(C=D.next();!C.done;C=D.next())X=_.U(C.value),C=X.next().value,X=X.next().value,X=_.Ia(X),_.HG1.set(C,X),_.F_(_.LN(),_.xr(),X);_.ZS(_.LN(),_.xr(),[].concat(_.VB(_.HG1.values()),
_.VB(_.Tit.values())));_.VP(_.LN(),[].concat(_.VB(_.HG1.values()),_.VB(_.Tit.values())))}};
_.S.onMiniplayerActiveChange=function(){var D;(D=_.iX().resolve(_.wB).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(D.document):this.unlistenFromDocument(D.document))};
_.S.ignoreKeyEvent=function(D){if(D.ctrlKey||D.altKey)if(_.b("kevlar_macro_markers_keyboard_shortcut")){if(D.keyCode!==37&&D.keyCode!==39)return!0}else return!0;var C=_.Mz(D)||[];return _.GAG(C)?(_.b("web_button_or_anchor_list_item")&&uvo(C,D)&&(this.JSC$20536_keyboardInUse=!0),!0):D.defaultPrevented?(LB(D.keyCode,D.shiftKey,this.isShortsPage),!0):D.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(D):!1};
_.S.isSpacebarClick=function(D){var C=D||window.event;var X;C.composedPath&&typeof C.composedPath==="function"?X=C.composedPath():X=C.path;X&&X.length?C=X[0]:(C=C||window.event,C=C.target||C.srcElement,C.nodeType==3&&(C=C.parentNode));return C&&D.keyCode===32&&(D=C.tagName==="BUTTON"||C.tagName==="A"||C.tagName==="INPUT",C=(C=C.getAttribute("role"))&&(C==="option"||C==="button"||C.indexOf("menuitem")===0),D||C)?!0:!1};
_.S.onKeyDownEvent=function(D){if(!this.ignoreKeyEvent(D)&&(D.keyCode===191&&(D.shiftKey||D.metaKey?D.repeat!=null&&D.repeat||(this.openHotkeyDialog(),LB(D.keyCode,D.shiftKey,this.isShortsPage)):(this.focusSearchBox(),D.preventDefault())),!D.metaKey)){var C=_.iX().resolve(_.wB);switch(D.keyCode){case 9:this.JSC$20536_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(D);break;case 84:C.pipController.getWindow()&&window.focus();this.toggleTheaterMode(D.keyCode,D.shiftKey);break;case 73:C.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(D.keyCode,D.shiftKey);break;case 70:if(this.isShortsPage){_.VY6();break}this.isMiniplayerActive()?C.pipController.getWindow()&&(C.close(!0),window.focus()):this.passEventToPlayer(D);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(D.keyCode,D.shiftKey):this.closeMiniplayer(D.keyCode,D.shiftKey)||this.passEventToPlayer(D);break;case 13:D.shiftKey&&_.iX().resolve(_.yH).activate(D);break;default:this.passEventToPlayer(D)}}};
_.S.onKeyUpEvent=function(D){if(!this.ignoreKeyEvent(D))if(_.b("web_speedmaster_spacebar_control")&&D.keyCode===32)this.handlePlayerSpaceKey(D,!0);else{var C=this.getPlayerManager();C&&(C=C.getPlayer())&&C.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)}};
_.S.getPlayerManager=function(){var D=_.CT(),C=_.iX().resolve(_.vK(_.lu));return D&&C&&C.isOnWatch()?D:null};
_.S.passEventToPlayer=function(D,C){var X=this,c,W,p,g;return _.I(function(a){if(a.nextAddress==1){if(!_.b("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&X.isMiniplayerActive())c=_.iX().resolve(_.wB).getPlayerElement();else if(X.inlinePreviewIsActive){if(W=_.Ct(X.hostElement,"yt-get-inline-preview-player-action"),(p=W)==null?0:p[0])c=W[0]}else c=_.CT();return c?a.yield(c.getPlayerPromise(),3):a.jumpTo(0)}g=a.yieldResult;C?g.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,
D.key,D.code):g.handleGlobalKeyDown(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat);D.keyCode!==38&&D.keyCode!==40&&LB(D.keyCode,D.shiftKey,X.isShortsPage);_.t_(a)})};
_.S.focusSearchBox=function(){_.lE(this.hostElement,"yt-focus-searchbox")};
_.S.openHotkeyDialog=function(){_.lE(this.hostElement,"yt-open-hotkey-dialog")};
_.S.isMiniplayerActive=function(){return _.iX().resolve(_.wB).isMiniplayerActive()};
_.S.closeMiniplayer=function(D,C){return this.isMiniplayerActive()?(_.iX().resolve(_.wB).close(),LB(D,C,this.isShortsPage),!0):!1};
_.S.toggleTheaterMode=function(D,C){var X=_.tl(_.fe().getState()),c=this.getPlayerManager(),W=_.b("disable_theater_mode_keyboard")||_.dq("START_IN_FULL_WINDOW_MODE");c&&!W&&(X=!X,_.qF()&&_.b("external_fullscreen")&&(X=!0),_.DS(this.hostElement,"yt-toggle-theater-mode",[X]),LB(D,C,this.isShortsPage))};
_.S.toggleMiniplayer=function(D,C){var X=this.getPlayerManager();if(this.isMiniplayerActive()){var c;((c=_.iX().resolve(_.vK(_.lu)))==null?0:c.isOnWatch())?_.iX().resolve(_.wB).close(!0):_.zB(_.iX().resolve(_.wB));LB(D,C,this.isShortsPage)}else X&&(_.DS(this.hostElement,"yt-activate-miniplayer-from-watch-action"),LB(D,C,this.isShortsPage))};
_.S.handlePlayerSpaceKey=function(D,C){var X=!!_.CT()||this.isMiniplayerActive();X=_.b("disable_space_scroll_fix")||X;_.b("global_spacebar_pause")&&!this.isKeyBoardInUse()&&X&&(D.preventDefault(),this.passEventToPlayer(D,C))};
_.S.isPresentingTheaterMode=function(){return _.b("web_watch_enable_tm_esc_key")?_.tl(_.fe().getState())&&!_.qF():!1};
lz.prototype.onMiniplayerActiveChange=lz.prototype.onMiniplayerActiveChange;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],lz.prototype,"ytdReduxBehavior",void 0);_.V([_.n({selector:_.Y7R}),_.z("design:type",Boolean)],lz.prototype,"inlinePreviewIsActive",void 0);_.V([_.n({selector:_.z0R}),_.z("design:type",Boolean)],lz.prototype,"isShortsPage",void 0);
_.V([_.n({selector:_.E1}),_.z("design:type",Boolean)],lz.prototype,"miniplayerIsActive",void 0);_.V([_.vr("miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lz.prototype,"onMiniplayerActiveChange",null);_.V([_.yj({disableElementRegistration:!0,is:"yt-hotkey-manager"})],lz);_.G(lz,"yt-hotkey-manager",void 0,{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var DP=function(){var D=_.w.apply(this,arguments)||this;D.loopStateEntityKey_=null;D.playlistLoopStateEntity_=null;D.isShuffleNextPlaylist=!1;D.PLAYER_EVENTS_=new Map;D.playerListenersSetup_=!1;D.videoSkipJob_=0;D.canAutoAdvance_=!1;D.playerManager_=null;D.TEST_ONLY={};return D};
_.h(DP,_.w);_.S=DP.prototype;_.S.ready=function(){_.iX().addProvider({provide:_.iP,useValue:this.hostElement})};
_.S.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_)};
_.S.attached=function(){document.addEventListener("yt-navigate-start",_.Pr(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Pr(this,this.onYtNavigateFinish_))};
_.S.detached=function(){document.removeEventListener("yt-navigate-start",_.Pr(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Pr(this,this.onYtNavigateFinish_))};
_.S.updatePlaylistEventListeners=function(D,C){C&&!this.playerListenersSetup_?(this.playerManager_=D,this.registerPlaylistEventListeners_(D)):!C&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(D))};
_.S.setPlayer=function(D){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=D};
_.S.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.S.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.S.registerPlaylistEventListeners_=function(D){var C=this;D.getPlayerPromise().then(function(X){C.playerListenersSetup_||(C.ytPlayerListenerBehavior.listenToPlayerEvents(X,C.PLAYER_EVENTS_),C.playerListenersSetup_=!0)})};
_.S.removePlaylistEventListeners_=function(D){var C=this;D.getPlayerPromise().then(function(X){C.playerListenersSetup_&&(C.ytPlayerListenerBehavior.unlistenFromPlayerEvents(X,C.PLAYER_EVENTS_),C.playerListenersSetup_=!1)})};
_.S.setPlaylistComponent=function(D){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Pr(this,this.onPlaylistYtNavigate_)),D&&(D.data&&this.playlistComponent.data&&D.data.playlistId==this.playlistComponent.data.playlistId?(D.loopOn=this.playlistComponent.loopOn,D.shuffleOn=this.playlistComponent.shuffleOn):(D.loopOn=!1,D.shuffleOn=!1),this.isShuffleNextPlaylist&&(D.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=D;this.playlistComponent.addEventListener("yt-navigate",
_.Pr(this,this.onPlaylistYtNavigate_))};
_.S.setAutoplayRenderer=function(D){this.autoplayData=D};
_.S.setPlaylistData=function(D){this.currentPlaylistData_=D;_.lE(this.hostElement,"yt-playlist-data-updated");_.ZI.isEmpty(D)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(D)};
_.S.setPlayerPlaybackControlData=function(D){this.playerManager_&&this.playerManager_.updatePlayerComponents(D.playlistPanelRenderer)};
_.S.getPlaylistData=function(){return this.currentPlaylistData_};
_.S.getTempData_=function(D,C){if(this.playlistComponent==null)return null;D={};this.playlistComponent.shuffleOn&&(D.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(D.loop_on=this.playlistComponent.loopOn);C&&(D.autonav="1",_.iX().resolve(_.B0),C=_.kl(),C>0&&(D.lact=C),this.playerManager_&&(C=this.playerManager_.getPlayer())&&C.shouldSendVisibilityState()&&(C=C.getVisibilityState(),C!=0&&(D.vis=C)));_.b("enable_unknown_lact_fix_on_html5")&&(_.iX().resolve(_.B0),D.lact=
_.kl());return D};
_.S.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.S.setLoopStateEntityKey_=function(D){var C;this.loopStateEntityKey_=((C=this.getPlaylistLoopData_(D))==null?void 0:C.playlistLoopStateEntityKey)||null};
_.S.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.S.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.S.skipVideo=function(){var D=this,C=_.b("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||C)C=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.hG(_.qX,function(){D.onPlaylistNext();D.videoSkipJob_=0},C)};
_.S.cancelVideoSkip=function(){this.videoSkipJob_&&(_.qX.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.S.isInBackground_=function(){var D=window.document.visibilityState;return!(!D||D=="visible")};
_.S.onPlaylistIndex_=function(D){this.playlistComponent&&(D=this.playlistComponent.data.contents[D].playlistPanelVideoRenderer.navigationEndpoint,_.lE(this.hostElement,"yt-navigate",{endpoint:D,tempData:this.getTempData_(D)}))};
_.S.onPlayerStateChange_=function(D){if(D=D==0&&this.playlistComponent&&this.canAutoAdvance_)D=_.em.getInstance(),D=!(D.autonavState_===3?D.autonavPauseReason_&&D.autonavPauseReason_.inputBoxFocus===!0:D.autonavState_===1&&D.disabledAutonavPauseReason_&&D.disabledAutonavPauseReason_.inputBoxFocus===!0);D&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.S.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.S.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.S.navigateToAutoplayWatchEndpoint_=function(D,C,X){var c=this.playlistComponent.data.currentIndex,W=this.getNumPlayableVideos_();D=="NORMAL"&&C=="autoplayVideo"&&c+1>=W&&X||!(D=this.getVideoEndpoint_(D,C))||(X=this.getTempData_(D,X),_.lE(this.hostElement,"yt-navigate",{endpoint:D,tempData:X}))};
_.S.getNumPlayableVideos_=function(){for(var D=0,C=_.U(this.playlistComponent.data.contents||[]),X=C.next();!X.done;X=C.next())X.value.playlistPanelVideoRenderer&&(D+=1);return D};
_.S.getVideoEndpoint_=function(D,C){if(this.autoplayData&&this.autoplayData.sets)for(var X=0,c=this.autoplayData.sets.length;X<c;X++){var W=this.autoplayData.sets[X];if(W.mode==D){if(W[C])return W[C];break}}else D=new _.Zf("AutoplayData is undefined in playlist manager","Mode: "+D+" endpoint: "+C),_.fQ(D)};
_.S.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.S.onPlaylistYtNavigate_=function(D){if(D.detail.endpoint){D.stopPropagation();var C=D.detail;C.tempData=this.getTempData_(D.detail.endpoint);_.lE(this.hostElement,"yt-navigate",C)}};
_.S.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.S.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.S.playlistLoopStateEntityChanged_=function(D){var C=this,X,c,W;return _.I(function(p){if(p.nextAddress==1){if(!D)return p.return();X=D.state==="PLAYLIST_LOOP_STATE_ONE";return C.playerManager_?p.yield(C.playerManager_.getPlayerPromise(),3):p.jumpTo(2)}p.nextAddress!=2&&(c=p.yieldResult,c.setLoopVideo(X));W=D.state==="PLAYLIST_LOOP_STATE_ALL";C.playlistComponent&&(C.playlistComponent.loopOn=W);_.t_(p)})};
_.S.getPlaylistLoopData_=function(D){var C,X;if(D=D==null?void 0:(C=D.playlistButtons)==null?void 0:(X=C.menuRenderer)==null?void 0:X.topLevelButtons)for(C=_.U(D),X=C.next();!X.done;X=C.next())if(X=X.value,X.playlistLoopButtonRenderer)return X.playlistLoopButtonRenderer};
_.S.getLoopStateCommand_=function(D){var C=this.getPlaylistData(),X;C=((X=this.getPlaylistLoopData_(C))==null?void 0:X.states)||[];var c;D=(c=_.r(C[D?1:2],_.NPg))==null?void 0:c.button;var W;return(W=_.r(D,_.AF))==null?void 0:W.command};
_.S.onPlayerLoopChange_=function(D){this.playlistLoopStateEntity_&&(D?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(D=this.getLoopStateCommand_(D))&&this.ytComponentBehavior.resolveCommand(D)};
_.S.onSleepTimerSettingsChanged_=function(D){this.canAutoAdvance_=D!=="End of video"};
DP.prototype.onPlaylistLoopStateEntityChanged=DP.prototype.onPlaylistLoopStateEntityChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],DP.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.rv.YtPlayerListenerBehavior),_.z("design:type",_.Ku)],DP.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],DP.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DP.prototype,"loopStateEntityKey_",void 0);
_.V([_.n({selectorArgs:["loopStateEntityKey_"],selector:_.ck.playlistLoopStateEntitySelector}),_.z("design:type",Object)],DP.prototype,"playlistLoopStateEntity_",void 0);_.V([_.vr("playlistLoopStateEntity_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DP.prototype,"onPlaylistLoopStateEntityChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"yt-playlist-manager"})],DP);_.G(DP,"yt-playlist-manager",void 0,{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var pZX,Sto=function(){if(pZX!==void 0)return pZX;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return pZX=D};var CO=function(){var D=_.w.apply(this,arguments)||this;D.lastCallback=null;D.getAccountLinkPromises={};D.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);D.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return D};
_.h(CO,_.w);_.S=CO.prototype;_.S.getLocation=function(){return window.location.href};
_.S.getCompletionUrl=function(){return _.zC(this.getLocation())};
_.S.containsRedirectState=function(D){return(D=_.Ln(_.$jo(D)))?(new URLSearchParams(D)).get("redirect_state")!==null:!1};
_.S.createGalConfig=function(D,C){var X=new ucw;D=X=C?this.getPopupOrRedirectSetting(X,_.q6("LINK_API_KEY"),_.q6("LINK_API_KEY_REDIRECT"),D):QZt(X,_.q6("LINK_API_KEY"));D.authUser=_.q6("SESSION_INDEX")||0;D.supportedFlows=new Set([4]);return D.build()};
_.S.getPopupOrRedirectSetting=function(D,C,X,c){this.isGalInteractionPopupMode(c)?(D.interactionMode=0,D=QZt(D,C)):(D.interactionMode=1,C=this.getCompletionUrl(),D.completionUrl=C,D=QZt(D,X));return D};
_.S.isGalInteractionPopupMode=function(D){if(this.redirectModeProviderAllowlist.has(D))switch(D){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.S.getStatusEntityKeyForProviderId=function(D){return _.gJ(D+":all","accountLinkStatusEntity")};
_.S.findNestedPropValue=function(D,C){var X=!1,c=null;JSON.stringify(D,function(W,p){X||W!==C||(X=!0,c=p);return X?null:p});
return c};
_.S.findAccountLinkButtonViewModel=function(D,C){var X=null,c=!1;JSON.stringify(D,function(W,p){c||p.accountLinkStatusEntityKey!==C||p.accountLinkStatusSecondaryEntityKey||(c=!0,X=p);return c?null:p});
return X};
_.S.executeLinkingSuccessOrFailureCommands=function(D,C,X){var c=null,W;(C==null?0:(W=C.url)==null?0:W.includes("account_sharing"))?c=C==null?void 0:C.response:c=C==null?void 0:C.response;(C=this.findAccountLinkButtonViewModel(c,D))?(D=X?this.findNestedPropValue(C,"onSuccessCommand"):this.findNestedPropValue(C,"onFailureCommand"))?_.Sy([D],this.hostElement):_.CC(Error("Cl")):_.CC(Error("Dl`"+D))};
_.S.handleInitializeRequest=function(D,C){var X=this,c=Pyw(this.createGalConfig(D,!0));this.containsRedirectState(this.getLocation())?gfp(D,c.config,c.galService).then(function(W){var p=X.getStatusEntityKeyForProviderId(D);if(W.statusCode===1)C&&X.executeLinkingSuccessOrFailureCommands(p,C,!0),W=X.getLocation().indexOf("#"),W!==-1&&window.history.pushState(null,"",X.getLocation().substring(0,W));else return C&&X.executeLinkingSuccessOrFailureCommands(p,C,!1),Promise.reject(Error(W.statusMessage))}).catch(function(W){_.fQ(W);
_.zu("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(W)}):this.getAccountLinkPromises[D]=c.startLinkingSession({serviceId:D})};
_.S.handleAccountLinkCommand=function(D){_.r(D,Y_3)&&this.handleLinkRequest(_.r(D,Y_3))};
_.S.handleLinkRequest=function(D){var C=this,X=D.thirdPartyId;if(X)if(this.isGalInteractionPopupMode(X)){var c=function(){C.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onFailureCommand)},W=function(){C.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onSuccessCommand)};
this.lastCallback=W;this.getAccountLinkPromises[X].then(function(p){Csw(p).then(function(g){g.statusCode===1?W():c()})}).catch(function(){c()})}else this.getAccountLinkPromises[X].then(function(p){Csw(p).then(function(g){if(g.statusCode!==1)return Promise.reject(Error(g.statusMessage))})}).catch(function(p){_.fQ(p);
_.zu("gamingAccountLinkStatusChanged",{serviceId:X,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(p)})};
_.S.closeAndFire=function(D,C){_.DS(this.hostElement,"yt-close-popup-action",[D]);C&&_.Sy([C],this.hostElement)};
_.S.handleAccountUnlinkCommand=function(D){_.r(D,ySt)&&this.handleUnlinkRequest(_.r(D,ySt))};
_.S.handleUnlinkRequest=function(D){var C=this,X=D.thirdPartyId;if(X){var c=function(){C.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onFailureCommand)},W=function(){C.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onSuccessCommand)};
this.lastCallback=W;var p=Pyw(this.createGalConfig(X,!1));this.unlinkUserGal(p,X).then(function(g){g.statusCode===1?W():c()}).catch(function(){c()})}};
_.S.unlinkUserGal=function(D,C){return D.deleteLink(C)};
_.S.handleLogAccountLinkingEventCommand=function(D){_.b("enable_gel_log_commands")&&_.r(D,ndo)&&(D=_.r(D,ndo).event)&&_.zu("gamingAccountLinkStatusChanged",D)};
_.$a.Object.defineProperties(CO,{template:{configurable:!0,enumerable:!0,get:function(){return Sto()}}});
_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],CO.prototype,"ytOpenPopupBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-third-party-manager"})],CO);_.G(CO,"ytd-third-party-manager",function(){return Sto()},{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var UrX,g$G=function(){if(UrX!==void 0)return UrX;var D=document.createElement("template");_.x(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return UrX=D};var XY=function(){var D=_.w.apply(this,arguments)||this;D.currentPage=void 0;D.renderLoadingStateJobId=0;D.updatePageDataJobId=0;D.pageDisposeJobsets=new WeakMap;D.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"};D.shouldApplyLockupToWatchTransition=_.b("web_thumbnail_to_watch_transition");D.shouldApplySlideTransition=_.bX("web_page_transition_type")==="slide"||_.b("enable_plj_landing_page");D.shouldApplyLearningJourneyTransition=_.b("enable_plj_landing_page");D.TEST_ONLY=void 0;return D};
_.h(XY,_.w);_.S=XY.prototype;_.S.ready=function(){var D=_.iX();D.addProvider({provide:_.lu,useValue:this});D.addProvider({provide:_.gN3,useValue:this})};
_.S.created=function(){this.pagePool=new t9t;this.contextSwitcher=new j66};
_.S.attached=function(){_.lE(this.hostElement,"attached");var D=_.iX().resolve(_.vK(_.Qt));D&&(this.contextSwitcher.JSC$20361_networkService_=D);this.viewTransitionManager=_.iX().resolve(_.c3)};
_.S.getPageOffset=function(D){return D.getScrollTop()};
_.S.setPageOffset=function(D,C){try{D.setScrollTop(C)}catch(X){}};
_.S.setPageOffsetForNavigation=function(D,C){_.lE(this.hostElement,"yt-navigate-set-page-offset",{page:D,offset:C===void 0?0:C})};
_.S.pauseActiveContext=function(){var D=this.contextSwitcher;D.activeContext_&&D.activeContext_.pause()};
_.S.getModuleNameForType=function(D){return D==="watch"?_.b("kevlar_watch_fixie")?"watchFixie":_.b("kevlar_watch_grid")?"watchGrid":"watchFlexy":D==="shorts"||D==="search"?D:"browse"};
_.S.attachPage=function(D){var C,X=!_.b("pc_is_attached_ks")&&(D==null?void 0:(C=D.polymerController)==null?void 0:C.isAttached);if(!D.isAttached&&!X)try{_.SY(this.hostElement).appendChild(D)}catch(W){var c;_.fQ(new _.Zf("Error attaching page element for component",{origin:(c=this.currentPage)==null?void 0:c.is,component:D.is}))}};
_.S.setActivePage=function(D,C){var X=this,c=!1,W=function(){var p=X.isOnWatch(),g=X.currentPage;if(D)if(D!==X.currentPage){g&&(g.hidden=!0,g.active=!1,g.removeAttribute("role"));X.currentPage=D;var a,O=C!=null?C:_.A9((a=X.data)==null?void 0:a.endpoint);g&&_.lE(X.hostElement,"yt-page-type-changed",{oldPageType:g.is,newPageType:D.is,newPageSubtype:O});_.qw().dispatch(_.oI({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:D.is}));_.qw().dispatch(_.oI({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:O||""}));
D.hidden=!1;X.attachPage(D);D.active=!0;D.setAttribute("role","main");g&&X.setPageOffsetForNavigation(D,0);_.b("kevlar_remove_page_dom_on_switch")&&!p&&g&&_.SY(X.hostElement).removeChild(g)}else c=!0;else X.handleMissingDestinationPage(g)};
this.shouldRunBrowseTransition(this.currentPage,D)?IEo(this.viewTransitionManager,W):this.shouldRunLearningJourneyTransition(this.currentPage,D)?PWG(this.viewTransitionManager,W):W();return c};
_.S.handleMissingDestinationPage=function(D){if(this.isColdLoadForUnknownPage(D))_.fQ(new _.Zf("Cold load for unknown page"));else{var C;D=new _.Zf("Unable to set active page",D?D.is:"unknown origin",(C=this.data)==null?void 0:C.endpoint);_.MN(D)}};
_.S.isColdLoadForUnknownPage=function(D){return!D&&rK(this.data)==="unknown"};
_.S.shouldRunBrowseTransition=function(D,C){return this.shouldApplySlideTransition&&(D==null?void 0:D.is)==="ytd-browse"&&(C==null?void 0:C.is)==="ytd-browse"&&D!==C};
_.S.shouldRunLearningJourneyTransition=function(D,C){return this.shouldApplyLearningJourneyTransition&&(D==null?void 0:D.is)==="ytd-browse"&&((C==null?void 0:C.is)==="ytd-watch-learning-journey"||(C==null?void 0:C.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.S.shouldRunWatchNextLoadedTransition=function(D,C){return this.viewTransitionManager&&D.is==="ytd-watch-flexy"&&C};
_.S.updatePageData=function(D){var C=this,X=this.data;this.updatePageDataJobId&&_.qX.cancelJob(this.updatePageDataJobId);this.data=D;return new _.mM(function(c){var W=function(){D.filler?C.performDataUpdate(D,X):QNw(function(){C.performDataUpdate(D,X)});
var O=_.uP();_.Q4(O,"cr")||O.processSignal("cr");c()},p=function(){D&&(D.page==="watch"||_.b("web_shorts_delay_shorts_page_update")&&D.page==="shorts")?C.updatePageDataJobId=_.hG(_.qX,W):W()};
if(_.b("kevlar_enable_mss_page_modules_client")&&D){var g=_.iX().resolve(_.Vs),a=C.getModuleNameForType(D.page);(g=gyG(g,[a]))?g.then(p):p()}else p()})};
_.S.isDownloadsPage=function(D){var C,X;return(D==null?void 0:(C=D.endpoint)==null?void 0:(X=C.browseEndpoint)==null?void 0:X.browseId)==="FEdownloads"};
_.S.setPlayerSyncInterval=function(D){var C;return _.I(function(X){if(X.nextAddress==1)return X.yield(_.iX().resolve(_.pT),2);C=X.yieldResult;C.setUpPositionSyncInterval(D);_.t_(X)})};
_.S.performDataUpdate=function(D,C){_.b("kevlar_early_popup_close")||_.DS(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var X=!D.filler;X&&(_.sp("lps"),_.b("config_age_report_killswitch")||s_t());var c=rK(D),W,p=!1;if(_.b("kevlar_remove_page_dom_on_switch")){var g=C&&rK(C);c===g&&(W=this.getCurrentPage())}W||(W=JB(this.pagePool,c));X&&r7t(this.pagePool.elementPoolPopulator,c);X&&!this.renderLoadingStateJobId&&(p=this.setActivePage(W));if(W){g=c==="watch";var a=
c==="shorts",O=c==="learning_journey_watch";_.b("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(W);if(g||a||O)W.playerData=D.playerResponse;if(a){D.reelWatchSequenceResponse?W.reelWatchSequenceResponse=D.reelWatchSequenceResponse:!W.cachedReelWatchSequenceResponse||W.reelWatchSequenceResponse||_.b("web_enable_delay_shorts_sequence_call_new")||(W.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse);D.reelWatchSequenceResponse&&(C==null?void 0:C.page)!=="shorts"&&
(W.cachedReelWatchSequenceResponse=D.reelWatchSequenceResponse);W.currentEndpoint=D.endpoint;var P;W.isPreviousPageShorts=!!(C==null?0:(P=C.endpoint)==null?0:P.reelWatchEndpoint)}P=this.isDownloadsPage(D);var k=this.isDownloadsPage(C);P&&!k?this.setPlayerSyncInterval(6E5):!P&&k&&this.setPlayerSyncInterval();_.b("block_all_player_prefetch_requests")||this.preparePrefetchRequest(D,W,X,g,a,O);$i6(_.iX().resolve(_.wB),C,D);if(_.b("enable_ai_companion")){var u;(u=_.iX().resolve(_.vK(_.gu)))==null||_.Zi6(u,
this.getPersistentPanelSurface(c))}_.ev(_.iX().resolve(_.B0));_.b("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(W);X?(X=typeof W.loadPage,X==="function"?(W.pageContext=M36(this.contextSwitcher,W,W.data!==D.response),X=function(){W.loadPage(D.response)},this.shouldApplySlideTransition&&W.is==="ytd-browse"&&p&&(c==="learning"||this.isDifferentBrowseId(D==null?void 0:D.endpoint,C==null?void 0:C.endpoint))?IEo(this.viewTransitionManager,X):this.shouldRunWatchNextLoadedTransition(W,
p)?AxN(this.viewTransitionManager,X):X()):_.qN(new _.Zf("b/38014653 ",[c,
W.is,W.nodeName,X,W.isAttached,C&&rK(C),this.hostElement.children.length])),_.sp("pdl")):(W.hidden=!0,D.response.filler=!0,W.data=D.response,this.attachPage(W));_.lE(this.hostElement,"yt-page-data-updated",{pageType:c})}_.Zo(_.qX,function(){_.b("logging_avoid_blocking_during_navigation")&&_.s_j().transition("none");var Q=get(),B=W;if(D){var K=yuP(D),L=n5U(D),t;a:{if(D.playerResponse){var Y=D.playerResponse,y;if((t=Y.auxiliaryUi)==null?0:(y=t.messageRenderers)==null?0:y.upsellDialogRenderer){t=Y.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(D.response&&(t=D.response,(Y=t.overlay)==null?0:Y.upsellDialogRenderer)){t=t.overlay.upsellDialogRenderer;break a}t=void 0}var J;var T;y=(J=D.playerResponse)==null?void 0:(T=J.auxiliaryUi)==null?void 0:T.messageRenderers;J=(y==null?void 0:y.enforcementMessageViewModel)||(y==null?void 0:y.bkaEnforcementMessageViewModel);J=(J==null?void 0:J.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?J:void 0;var H;a:{if(D.response&&(T=D.response,(H=T.overlay)==null?0:H.commandWrapperPromoRenderer)){H=
T.overlay.commandWrapperPromoRenderer;break a}H=void 0}U2Y(Q,K,L,t,J,H,B)}})};
_.S.preparePrefetchRequest=function(D,C,X,c,W,p){var g,a,O,P,k,u,Q,B,K,L,t,Y,y,J,T;return _.I(function(H){if(H.nextAddress==1)return!X||!(c||W||p)||_.b("kevlar_disable_background_prefetch")&&_.lq(_.Fa3)()===0?H.return():(g=_.Dw(C))?H.yield(g.getPlayerPromise(),2):H.return();a=H.yieldResult;O=_.iX().resolve(_.vK(_.Qt));if(!O)return H.return();if(W)return P=_.ly(_.T0),e8X(P,(k=D.endpoint)==null?void 0:k.reelWatchEndpoint,C.reelWatchSequenceResponse,a,O),H.return();B=(u=D.response)==null?void 0:(Q=u.responseContext)==
null?void 0:Q.webResponseContextExtensionData;if(!B)return H.return();y=(K=D.response)==null?void 0:(L=K.contents)==null?void 0:(t=L.twoColumnWatchNextResults)==null?void 0:(Y=t.autoplay)==null?void 0:Y.autoplay;J=_.iX().resolve(_.iP);T=_.ly(_.T0);EEp(T,B,a,O,J,y);_.t_(H)})};
_.S.movePlayerToWatch=function(D){var C=this,X,c;return _.I(function(W){X=JB(C.pagePool,"watch");c=X.getPlayerContainer();D.appendTo(c);_.t_(W)})};
_.S.movePlayerToShorts=function(D){var C=this,X,c,W;return _.I(function(p){X=JB(C.pagePool,"shorts");c=X.getPlayerContainer();(W=D)==null||W.appendTo(c,void 0,!0);_.t_(p)})};
_.S.getPlayerFromWatch=function(){var D=JB(this.pagePool,"watch");return _.Dw(D)};
_.S.getPlayerFromShorts=function(){var D=JB(this.pagePool,"shorts");return _.Dw(D)};
_.S.startLoadingWatch=function(){var D=this,C=JB(this.pagePool,"watch");this.renderLoadingStateJobId?(_.qX.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.b("web_watch_transition_enable_start_loading_watch_callsite")?Or6(this.viewTransitionManager,function(){D.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(C,"watch");
if(_.b("enable_ai_companion")){var X;(X=_.iX().resolve(_.vK(_.gu)))==null||_.Zi6(X,this.getPersistentPanelSurface("watch"))}};
_.S.startLoadingShorts=function(){var D=JB(this.pagePool,"shorts");this.setActivePage(D,"shorts")};
_.S.startLoadingLearningJourney=function(){var D=JB(this.pagePool,"learning_journey_watch");this.setActivePage(D,"learning_journey_watch")};
_.S.getCurrentPage=function(){return this.currentPage};
_.S.getDestinationPageType=function(){return this.destinationPageType};
_.S.getCurrentData=function(){return this.data};
_.S.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.S.isOnShorts=function(){var D;return((D=this.currentPage)==null?void 0:D.is)==="ytd-shorts"};
_.S.isWatchPage=function(D){return!!D&&(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-fixie"||D.is==="ytd-watch-grid")};
_.S.preparePage=function(D,C){var X=this,c=function(){var g=X.pagePool.preparePage(D,X.currentPage,C);g&&X.attachPage(g)},W=function(g){_.dO(g,C);
_.fQ(g)};
if(_.b("kevlar_enable_mss_page_modules_client")){var p=this.getModuleNameForType(D);if(p=gyG(_.iX().resolve(_.Vs),[p])){p.then(c.bind(this)).catch(W.bind(this));return}}try{c()}catch(g){W(g)}};
_.S.lazyPrepareCriticalPages=function(D,C){D=_.A9(C)||D;_.b("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(D).then(this.maybePrepareWatchPage.bind(this,D)):this.maybePrepareWatchPage(D)};
_.S.maybePrepareWatchPage=function(D){D==="watch"||D==="learning_journey_watch"&&_.b("web_watch_learning_journey_disable_lazy_pages")||_.Zo(_.qX,this.preparePage.bind(this,"watch"))};
_.S.downloadPageModules=function(D){D=this.getModuleNameForType(D);var C=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);C.delete(D);var X=_.iX().resolve(_.Vs);X.JSC$19034_loadModules(D);return X.JSC$19034_loadModules.apply(X,_.VB(C))};
_.S.renderPageLoadingState=function(D,C){this.preparePage(D,C);var X=JB(this.pagePool,D);X.loadingData&&(X.loadingData.endpoint=C);X.loading=!0;this.setActivePage(X,D);D!=="watch"&&D!=="learning_journey_watch"||_.lE(this.hostElement,"yt-guide-close")};
_.S.prepareForNavigation=function(D,C){var X=this;if(this.currentPage&&this.data){var c=_.A9(C)||D;this.destinationPageType=c;rK(this.data)==c&&_.lE(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((D==="watch"||D==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.qX.cancelJob(this.renderLoadingStateJobId);_.iX().resolve(_.wB).deactivate(C);_.$w(_.qX,function(){var p=X.viewTransitionManager,g=X.currentPage;
if(p.isLockupToWatchTransitionEnabled&&p.isLockupThumbnailRegistrationEnabled&&g)if(p.registeredLockupThumbnail)p.lockupThumbnailRegisteredFromWatchEndpoint&&_.fQ(new _.Zf("Lockup thumbnail already registered from watch endpoint."));else{a:{var a=_.r(C,_.TC);if(a==null?0:a.videoId){var O="yt-lockup-view-model ."+_.R6t(a.videoId)+" yt-thumbnail-view-model";g=g.querySelectorAll(O);if(g.length===1){a=g[0];break a}g.length>1?_.fQ(new _.Zf("Multiple LockupViewModel thumbnails found for videoId: "+a.videoId+
". Selector: "+O)):_.b("web_thumbnail_to_watch_transition_debug")&&_.fQ(new _.Zf("No LockupViewModel thumbnail found for videoId: "+a.videoId+". Selector: "+O))}a=void 0}a&&(p.registeredLockupThumbnail=a,p.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.vhk(p,a))}});
var W=this.data;this.renderLoadingStateJobId=_.$w(_.qX,function(){Or6(X.viewTransitionManager,function(){if(X.data!=W){var p=JB(X.pagePool,D);X.setActivePage(p)}else X.renderPageLoadingState(D,C);X.renderLoadingStateJobId=0})},150)}};
_.S.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var D=new _.s7(1);this.currentPage.pageDisposeJobs.forEach(function(C){_.mV(D,C)});
this.pageDisposeJobsets.set(this.currentPage,D)}};
_.S.flushPageDisposeJobset=function(D){var C=this.pageDisposeJobsets.get(D);C&&(C.flushJobs(),this.pageDisposeJobsets.delete(D))};
_.S.onYtStopOldPlayer=function(D,C){C=C===void 0?!1:C;var X,c=_.rT("kevlar_new_stop_old_player_logic_pages");if(_.b("kevlar_check_current_page_on_stop_old_player")&&(c.length===0||this.currentPage&&c.includes(this.currentPage.is)))if(this.data&&(X=rK(this.data)),rK(D)===X&&this.currentPage&&rK(this.currentPage.data)!==X)var W=_.Dw(this.currentPage);else X=rK(this.data),W=JB(this.pagePool,X),W=_.Dw(W);else this.data&&(X=rK(this.data),W=JB(this.pagePool,X),W=_.Dw(W));if(W){c=rK(D);var p=JB(this.pagePool,
c);p=_.Dw(p);if(W==p)C&&!_.b("kevlar_disable_preemptive_player_reset")&&W.resetForNewPlayback();else if(C=X==="watch"&&c!=="watch",!C||c==="shorts"||_.Ao5()&&!uV3(this.data,D))D=_.iX().resolve(_.wB),C&&D.isMiniplayerActive()&&D.pipController.getWindow()||W.stop()}};
_.S.isDifferentBrowseId=function(D,C){D=_.r(D,_.Pl);C=_.r(C,_.Pl);return(D==null?void 0:D.browseId)!==(C==null?void 0:C.browseId)};
_.S.getPersistentPanelSurface=function(D){switch(D){case "watch":return"WATCH";default:return"APP"}};
_.$a.Object.defineProperties(XY,{template:{configurable:!0,enumerable:!0,get:function(){return g$G()}}});
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-page-manager"})],XY);_.G(XY,"ytd-page-manager",function(){return g$G()},{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var azw;var ca=function(){var D=_.w.apply(this,arguments)||this;D.useListItemStyles=_.b("web_list_item_style_for_menu_items");D.systemIcons=_.b("kevlar_system_icons");return D};
_.h(ca,_.w);_.S=ca.prototype;_.S.ready=function(){this.hostElement.addEventListener("tap",_.Pr(this,this.onEndpointTapExtra))};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.S.onFocus=function(){var D;(D=_.SY(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.S.onEndpointTapExtra=function(D){_.lE(this.hostElement,"iron-activate");var C=this.data.navigationEndpoint;C&&_.r(C,_.xbF)&&(D.stopPropagation(),_.o7(this.hostElement,[C],this.hostElement))};
_.S.computeIcon=function(D){return D&&D.iconType?_.g2(D.iconType):""};
_.S.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.S.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.S.forceUpdateStylesOnLegacyBrowsers=function(){_.b("kevlar_legacy_browsers")&&_.Os(this.hostElement)};
ca.prototype.forceUpdateStylesOnLegacyBrowsers=ca.prototype.forceUpdateStylesOnLegacyBrowsers;ca.prototype.onFocus=ca.prototype.onFocus;_.V([_.m(_.eu),_.z("design:type",Object)],ca.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.YBY.YtConditionalRendererBehavior),_.z("design:type",Object)],ca.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],ca.prototype,"ytEndpointBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],ca.prototype,"data",void 0);_.V([_.n({computed:"computeIcon(data.icon)",value:""}),_.z("design:type",String)],ca.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ca.prototype,"useIcons",void 0);_.V([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ca.prototype,"hasSeparator",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ca.prototype,"useListItemStyles",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],ca.prototype,"systemIcons",void 0);_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ca.prototype,"onFocus",null);_.V([_.vr("useIcons","hasSeparator"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ca.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(ca,"ytd-menu-navigation-item-renderer",function(){if(azw===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);azw=D}D=azw;return D},{mode:1});var Izk;var OsP=_.jV(_.I7("DOWNLOAD",{},"Download")),AdN=_.jV(_.I7("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),PmN=_.jV(_.I7("RETRY",{},"Retry")),$ro=_.jV(_.I7("PAUSE_DOWNLOADING",{},"Pause downloading")),v$t=_.jV(_.I7("RESUME_DOWNLOAD",{},"Resume download")),oj=function(){var D=_.w.apply(this,arguments)||this;D.primaryText=OsP;D.primaryIconType="OFFLINE_DOWNLOAD";D.hasSecondaryContent=!1;D.hasSeparator=!1;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.isHidden=!1;D.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return D};
_.h(oj,_.w);_.S=oj.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.S.onFocus=function(){this.primaryEntry.focus()};
_.S.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.S.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.S.getRemoveAction=function(){return"ACTION_REMOVE"};
_.S.sendOfflineAction=function(D){var C=this.data.serviceEndpoint;if(C){var X=_.r(C,_.vX);X&&D&&(X.action=D);this.ytComponentBehavior.resolveCommand(C)}};
_.S.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=OsP,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=OsP;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=PmN;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=AdN;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=v$t;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=AdN;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
$ro;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=AdN;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=AdN;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=OsP,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.S.showHideButton=function(){var D;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((D=this.playerStateEntity)==null?void 0:D.adsState)==="ADS_STATE_PLAYING"};
_.S.isSecondaryEntryHidden=function(D,C){return D?!0:!C};
_.S.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
_.S.computePlayerStateEntityKey=function(D){return D};
oj.prototype.showHideButton=oj.prototype.showHideButton;oj.prototype.onTransferStateChange=oj.prototype.onTransferStateChange;oj.prototype.onFocus=oj.prototype.onFocus;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],oj.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],oj.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],oj.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],oj.prototype,"primaryText",void 0);_.V([_.n(),_.z("design:type",String)],oj.prototype,"primaryIconType",void 0);_.V([_.n(),_.z("design:type",String)],oj.prototype,"primaryAction",void 0);_.V([_.n(),_.z("design:type",Object)],oj.prototype,"secondaryText",void 0);_.V([_.n(),_.z("design:type",String)],oj.prototype,"secondaryIconType",void 0);
_.V([_.n(),_.z("design:type",String)],oj.prototype,"secondaryAction",void 0);_.V([_.n(),_.z("design:type",Object)],oj.prototype,"hasSecondaryContent",void 0);_.V([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Object)],oj.prototype,"hasSeparator",void 0);_.V([_.n({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.z("design:type",String)],oj.prototype,"playerStateEntityKey",void 0);
_.V([_.n({selector:_.a_,selectorArgs:["playerStateEntityKey"]}),_.z("design:type",Object)],oj.prototype,"playerStateEntity",void 0);_.V([_.n({selector:_.YP,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",String)],oj.prototype,"transferState",void 0);_.V([_.n({selector:_.ler,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",Object)],oj.prototype,"isVideoDeletedByUser",void 0);
_.V([_.n(),_.z("design:type",Object)],oj.prototype,"isHidden",void 0);_.V([_.n({selector:_.zfW,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",Object)],oj.prototype,"offlineabilityState",void 0);_.V([_.kn("#primary-entry"),_.z("design:type",Object)],oj.prototype,"primaryEntry",void 0);_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oj.prototype,"onFocus",null);
_.V([_.bH("transferState","isVideoDeletedByUser"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oj.prototype,"onTransferStateChange",null);_.V([_.bH("offlineabilityState","playerStateEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oj.prototype,"showHideButton",null);
_.G(oj,"ytd-menu-service-item-download-renderer",function(){if(Izk===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);Izk=D}D=Izk;return D},{mode:1});var isp;var Wa=function(){var D=_.w.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.b("kevlar_system_icons");D.useListItemStyles=_.b("web_list_item_style_for_menu_items");return D};
_.h(Wa,_.w);_.S=Wa.prototype;_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.S.onFocus=function(){var D;(D=_.SY(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.S.onTap=function(){_.Ct(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var D=this.data.serviceEndpoint,C=this.data.command;if(D){var X,c=(X=this.data)==null?void 0:X.trackingParams;X=!!_.r(D,_.uCJ);c&&X&&_.fe().dispatch(_.oI({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:c}}));this.ytComponentBehavior.resolveCommand(D)||_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}})}C&&(this.ytComponentBehavior.resolveCommand(C)||_.o7(this.hostElement,
[C],this.hostElement))};
_.S.computeIcon=function(D){return D&&D.iconType?_.g2(D.iconType):""};
_.S.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.S.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
_.S.forceUpdateStylesOnLegacyBrowsers=function(){_.b("kevlar_legacy_browsers")&&_.Os(this.hostElement)};
_.S.computeIsSelected=function(){var D;return!((D=this.data)==null||!D.isSelected)};
Wa.prototype.forceUpdateStylesOnLegacyBrowsers=Wa.prototype.forceUpdateStylesOnLegacyBrowsers;Wa.prototype.onTap=Wa.prototype.onTap;Wa.prototype.onFocus=Wa.prototype.onFocus;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],Wa.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Wa.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.YBY.YtConditionalRendererBehavior),_.z("design:type",Object)],Wa.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wa.prototype,"data",void 0);_.V([_.n({computed:"computeIcon(data.icon)",value:""}),_.z("design:type",String)],Wa.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Wa.prototype,"useIcons",void 0);
_.V([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Wa.prototype,"hasSeparator",void 0);_.V([_.n({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Wa.prototype,"isSelected",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Wa.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Wa.prototype,"useListItemStyles",void 0);
_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wa.prototype,"onFocus",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Wa.prototype,"onTap",null);_.V([_.vr("useIcons","hasSeparator"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wa.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(Wa,"ytd-menu-service-item-renderer",function(){if(isp===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);isp=D}D=isp;return D},{mode:2});var k8Y;var pO=function(){return _.w.apply(this,arguments)||this};
_.h(pO,_.w);_.S=pO.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onDataChanged=function(){var D=this;_.A0(this,function(){D.postbox.openDialog();D.focus();_.lE(D.hostElement,"yt-refit")})};
_.S.focus=function(){this.postbox.focus()};
_.S.closePopup=function(){_.DS(this.hostElement,"yt-close-popup-action")};
_.S.onYtCommentboxDismiss=function(){this.closePopup()};
pO.prototype.onYtCommentboxDismiss=pO.prototype.onYtCommentboxDismiss;pO.prototype.onDataChanged=pO.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pO.prototype,"data",void 0);_.V([_.n({value:function(){return _.I7("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],pO.prototype,"closeButtonAriaLabel",void 0);_.V([_.kn("#postbox"),_.z("design:type",Object)],pO.prototype,"postbox",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pO.prototype,"onDataChanged",null);_.V([_.$n("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pO.prototype,"onYtCommentboxDismiss",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],pO);
_.G(pO,"ytd-backstage-post-dialog-popup-renderer",function(){if(k8Y!==void 0)return k8Y;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return k8Y=D},{mode:1});var uiU;var QFX;var Bnt=function(){return _.w.apply(this,arguments)||this};
_.h(Bnt,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Bnt.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Bnt.prototype,"data",void 0);_.V([_.Yn({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Bnt);
_.G(Bnt,"yt-sender-id-section-renderer",function(){if(QFX===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);QFX=D}D=
QFX;return D},{mode:1});var bs1;var rd3;var St=function(){return _.w.apply(this,arguments)||this};
_.h(St,_.w);St.prototype.closePopup=function(){_.DS(this.hostElement,"yt-close-popup-action")};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],St.prototype,"data",void 0);_.V([_.Yn({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],St);
_.G(St,"yt-community-post-section-renderer",function(){if(rd3===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;bs1===void 0&&(bs1=document.createElement("template"));var c=bs1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);rd3=D}D=rd3;return D},{mode:2});var KiU;var hBG;var xr1;var LiN;var sFo;var mrU;var eB1=function(){return _.w.apply(this,arguments)||this};
_.h(eB1,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],eB1.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],eB1.prototype,"data",void 0);_.V([_.Yn({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],eB1);
_.G(eB1,"yt-share-start-time-with-context-renderer",function(){if(mrU===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;sFo===void 0&&(sFo=document.createElement("template"));var c=sFo;X.call(C,c.content.cloneNode(!0),D.content.firstChild);mrU=D}D=mrU;return D},{mode:2});var UT=function(){return _.w.apply(this,arguments)||this};
_.h(UT,_.w);UT.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UT.prototype,"data",void 0);_.V([_.Yn({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],UT);
_.G(UT,"yt-share-panel-title-v15-renderer",function(){if(LiN===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;xr1===void 0&&(xr1=document.createElement("template"));var c=xr1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);LiN=D}D=LiN;return D},{mode:2});var g9=function(){return _.w.apply(this,arguments)||this};
_.h(g9,_.w);g9.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],g9.prototype,"data",void 0);_.V([_.Yn({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],g9);
_.G(g9,"yt-share-panel-header-renderer",function(){if(hBG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;KiU===void 0&&(KiU=document.createElement("template"));var c=KiU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);hBG=D}D=hBG;return D},{mode:2});var E$o;var t1N;var aj=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-open-popup-action":"onOpen"};return D};
_.h(aj,_.w);_.S=aj.prototype;_.S.attached=function(){this.onOpen()};
_.S.updateTimeSecs=function(D){this.currentTimeSecs=D};
_.S.computeTimeString=function(D){D=D.toString();var C=Math.floor(Number(D)/3600),X=Math.floor(Number(D)%3600%60);return(C>0?C+":":"")+_.$J(Math.floor(Number(D)%3600/60),C>0?2:1)+":"+_.$J(X,2)};
_.S.computeTimeStringA11y=function(D){return _.pkd({seconds:D})};
_.S.getTimeParam=function(){return Xqt(this.timeString)};
_.S.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var D={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},C;_.JF(_.iO(),(C=this.data)==null?void 0:C.trackingParams,D,7)};
_.S.onChangeStartAtTimestamp=function(){for(var D=this.startAtTimestamp.value.split(":"),C=0,X=1,c=D.length-1;c>=0;c--)C+=Number(D[c])*X,X*=60;this.updateTimeSecs(C);this.setTimestamp()};
_.S.onOpen=function(){var D=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var C=_.CT();C?C.getPlayerPromise().then(function(X){X=X.getCurrentTime();D.updateTimeSecs(X)}):awG()&&this.updateTimeSecs(awG())};
_.S.setTimestamp=function(){var D=Math.floor(this.currentTimeSecs);_.DS(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!D,timestamp:D||""}])};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],aj.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],aj.prototype,"data",void 0);_.V([_.n({value:!1,notify:!0}),_.z("design:type",Boolean)],aj.prototype,"isStartAtChecked",void 0);_.V([_.n(),_.z("design:type",Number)],aj.prototype,"currentTimeSecs",void 0);
_.V([_.n({computed:"computeTimeString(currentTimeSecs)"}),_.z("design:type",String)],aj.prototype,"timeString",void 0);_.V([_.n({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.z("design:type",String)],aj.prototype,"timeStringA11y",void 0);_.V([_.kn("#start-at-timestamp"),_.z("design:type",Object)],aj.prototype,"startAtTimestamp",void 0);_.V([_.Yn({is:"yt-start-at-renderer",disableElementRegistration:!0})],aj);
_.G(aj,"yt-start-at-renderer",function(){if(t1N===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;E$o===void 0&&(E$o=document.createElement("template"));var c=E$o;X.call(C,c.content.cloneNode(!0),D.content.firstChild);t1N=D}D=t1N;return D},{mode:2});var NnP;var Yt3;var ydk={};ydk.YtBindingExpressionsBehavior={identity:_.nh,msg:function(D,C){C=C===void 0?{}:C;return _.I7(D,C,D)},
msgPlural:function(D,C){return _.Op(D,C)},
getMusicIconFromType:function(D){return _.g2(D)}};var n$o;var wZw;var FiU;var Zs3=document.head,G8t=Zs3.appendChild,V1N;if(FiU===void 0){var TnY=document.createElement("template");_.x(TnY,'\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>');FiU=TnY}V1N=FiU;G8t.call(Zs3,V1N.content);var Ij=function(){var D=_.w.apply(this,arguments)||this;D.screenLayer=7;return D};
_.h(Ij,_.w);Ij.prototype.getScreenLayer=function(){return this.screenLayer};
Ij.prototype.onTap=function(D){D&&D.detail&&(D.detail.x||D.detail.y)&&_.SY(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.cE(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(D=this.getScreenLayer(),_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:D}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.$a.Object.defineProperties(Ij.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()}}});
Ij.prototype.onTap=Ij.prototype.onTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Ij.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ij.prototype,"data",void 0);_.V([_.e("data.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ij.prototype,"title",null);
_.V([_.e("data.serviceName"),_.z("design:type",String),_.z("design:paramtypes",[])],Ij.prototype,"icon",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ij.prototype,"onTap",null);_.V([_.Yn({is:"yt-share-target-renderer",disableElementRegistration:!0})],Ij);
_.G(Ij,"yt-share-target-renderer",function(){if(wZw===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;n$o===void 0&&(n$o=document.createElement("template"));var c=n$o;X.call(C,c.content.cloneNode(!0),D.content.firstChild);wZw=D}D=wZw;return D},{mode:2});var Hst;var Jdk;var OT=function(){var D=_.w.apply(this,arguments)||this;D.SHARE_TARGET_WIDTH=70;D.SHARE_TARGET_MARGIN_RIGHT=8;D.PAGE_SCROLL_SPEED=9;D.actionMap={"yt-share-panel-reset-action":"onReset_"};return D};
_.h(OT,_.w);_.S=OT.prototype;_.S.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.S.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.SY(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.SY(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.S.onReset_=function(){if(_.SY(this.hostElement).querySelector("#list")){var D=_.SY(this.hostElement).querySelector("#list");var C=_.SY(this.hostElement).querySelector("#list");var X=C.offsetLeft,c=C.offsetParent;c||_.VoJ(C)!="fixed"||(c=_.Hd(C).documentElement);if(c){if(_.ak&&!_.OG(58)){var W=_.fI5(c);X+=W.left}else Number(_.akx)>=8&&!(Number(_.akx)>=9)&&(W=_.fI5(c),X-=W.left);C=_.Mo4(c)?c.clientWidth-(X+C.offsetWidth):X}else C=X;NWt(D,C);this.updateScrollButtons_()}};
_.S.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.S.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.S.onScrollWheel_=function(D){D.stopPropagation();D.preventDefault();var C=tUt(_.SY(this.hostElement).querySelector("#list"));D=Math.abs(D.deltaX)>Math.abs(D.deltaY)?D.deltaX:D.deltaY;NWt(_.SY(this.hostElement).querySelector("#list"),C+D);this.updateScrollButtons_()};
_.S.smoothScrollByOnePage_=function(D){var C=_.SY(this.hostElement).querySelector("#list"),X=(Math.floor(C.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,c=tUt(C),W=X*(D?1:-1),p=this.PAGE_SCROLL_SPEED,g=this.updateScrollButtons_.bind(this),a=0,O;(function k(){a+=p;O=a/X*2;NWt(C,c+W*(O<1?O*O:-O*O+4*O-2));a<X?window.requestAnimationFrame(k):g()})()};
_.S.updateScrollButtons_=function(){var D=tUt(_.SY(this.hostElement).querySelector("#list")),C=_.SY(this.hostElement).querySelector("#list").scrollWidth-_.SY(this.hostElement).querySelector("#list").clientWidth;_.SY(this.hostElement).querySelector("#scroll-button-back").hidden=D<=0;_.SY(this.hostElement).querySelector("#scroll-button-forward").hidden=D>=C};
OT.prototype.onScrollWheel_=OT.prototype.onScrollWheel_;OT.prototype.onDataChanged_=OT.prototype.onDataChanged_;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],OT.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(ydk.YtBindingExpressionsBehavior),_.z("design:type",Object)],OT.prototype,"ytBindingExpressionsBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],OT.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OT.prototype,"onDataChanged_",null);_.V([_.$n("wheel"),_.z("design:type",Function),_.z("design:paramtypes",[WheelEvent]),_.z("design:returntype")],OT.prototype,"onScrollWheel_",null);
_.V([_.Yn({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],OT);
_.G(OT,"yt-third-party-share-target-section-renderer",function(){if(Jdk===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Hst===void 0&&(Hst=document.createElement("template"));var c=Hst;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Jdk=D}D=Jdk;return D},{mode:2});var AL=function(){return _.w.apply(this,arguments)||this};
_.h(AL,_.w);AL.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],AL.prototype,"data",void 0);_.V([_.Yn({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],AL);
_.G(AL,"yt-third-party-network-section-renderer",function(){if(Yt3===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;NnP===void 0&&(NnP=document.createElement("template"));var c=NnP;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Yt3=D}D=Yt3;return D},{mode:2});_.CI(_.F(function(D){return _.A("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.A("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.A(_.BX,{data:function(){return D.data().firstPartyItems}},{listItemViewModel:_.Bb})))},"nj"),"first-party-network-section-view-model",{props:{data:_.Bm}});var zB1=(0,_.V4f)(_.d4.share,{parentClickTrackingParamsSelector:function(D){return D.parentClickTrackingParams}});var jFo=_.q8(["data:image/svg+xml;charset=UTF-8;base64,",""]),Pa=function(){var D=_.w.apply(this,arguments)||this;D.screenLayer=7;D.qrCodeEnabled=_.b("web_enable_sharing_qr_code");D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return D};
_.h(Pa,_.w);_.S=Pa.prototype;_.S.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.S.attached=function(){this.JSC$20602_scroller&&(this.JSC$20602_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20602_scroller.attached&&typeof this.JSC$20602_scroller.attached==="function"&&this.JSC$20602_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.S.onDataChanged=function(){var D=this,C;(C=this.data)!=null&&C.contents&&(this.hostElement.setAttribute("links-only","true"),_.ao(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.A0(this,function(){_.lE(D.hostElement,"yt-refit");D.focusSharePanelHeader()}))};
_.S.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.S.handleSetTimestamp=function(D){var C=this.shortUrl();D.isSet&&(C=_.DZ(C,"t",D.timestamp));this.maybeRenderQrCode(C)};
_.S.shortUrl=function(){var D,C=(D=this.data)==null?void 0:D.contents;if(C)for(D=0;D<C.length;D++){var X=void 0,c=void 0;if((X=C[D])==null?0:(c=X.thirdPartyNetworkSection)==null?0:c.copyLinkContainer){var W=c=X=void 0;return(W=_.r((X=C[D])==null?void 0:(c=X.thirdPartyNetworkSection)==null?void 0:c.copyLinkContainer,vdk))==null?void 0:W.shortUrl}}};
_.S.maybeRenderQrCode=function(D){var C=this,X,c,W,p,g,a,O,P,k;return _.I(function(u){if(u.nextAddress==1){X=_.SY(C.hostElement).querySelector("#qr-code");if(!C.qrCodeEnabled||!D)return X&&(X.style.display="none"),u.return();c=_.Gej(_.iX().resolve(_.a3),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});W=document.createElement("div");return typeof c==="function"?(c(W),u.jumpTo(2)):u.yield(c,3)}u.nextAddress!=2&&(p=u.yieldResult,p(W));O=(g=W)==null?void 0:(a=g.firstChild)==null?void 0:a.firstChild;
P=document.createElement("img");k=_.UAd(jFo,btoa(O.outerHTML));P.onload=function(){var Q={canvas:X,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:P},B=new NE3;Zmt(B,D);GtY(B,!1,Vbt(B));var K=B.modules,L=Object.assign({},Gl1,Q);K=structuredClone(K);Q=K.length;var t,Y=(t=L.canvas)!=null?t:document.createElement("canvas");t=L.cellSize;B=L.logo;var y,J=(y=L.logoSize)!=null?y:Math.floor(Q/4);Q%2!==J%2&&J++;var T=L.logoPadding,H=L.backgroundColor;y=Q*t;var q=
L.width,R=0;q&&(R=L.padding,R=Math.ceil(R*y/(q-R*2)),Y.style.width=q+"px",Y.style.height=q+"px");Y.width!==y+R*2&&(Y.width=y+R*2);Y.height!==y+R*2&&(Y.height=y+R*2);y=Y.getContext("2d");L.autoClear&&y.clearRect(0,0,Y.width,Y.height);y.fillStyle=H;y.beginPath();y.roundRect(0,0,Y.width,Y.height,L.borderRadius);y.fill();y.save();y.translate(R,R);if(B)for(Y=Math.floor(Q-J)/2-T,T=Math.floor(Q+J)/2+T,H=Y;H<T;H++)for(q=Y;q<T;q++)K[H][q]=!1;for(Y=0;Y<Q;Y++)for(T=0;T<Q;T++)(Y<7&&T<7||Y<7&&T>=Q-7||Y>=Q-7&&
T<7)&&(K[Y][T]=!1);var ph;Y=(ph=L.markerColor)!=null?ph:L.color;HmG(y,0,0,t,Y);HmG(y,t*(Q-7),0,t,Y);HmG(y,0,t*(Q-7),t,Y);switch(L.cellStyle){case 0:ph=K;K=ph.length;Y=L.cellSize;y.beginPath();for(T=0;T<K;T++)for(H=0;H<K;H++)ph[T][H]&&y.rect(T*Y,H*Y,Y,Y);y.fillStyle=L.color;y.fill();break;case 1:ph=K;K=ph.length;Y=L.cellSize;T=Y*L.relativeCircleSize;y.fillStyle=L.color;y.beginPath();for(L=0;L<K;L++)for(H=0;H<K;H++)ph[L][H]&&(y.beginPath(),y.ellipse((L+.5)*Y,(H+.5)*Y,T/2,T/2,0,0,2*Math.PI),y.fill());
y.fill();break;case 2:ph=K;K=ph.length;Y=L.cellSize;y.fillStyle=L.color;L=[[1,1],[-1,1],[-1,-1],[1,-1]];y.beginPath();for(T=0;T<K;T++)for(H=0;H<K;H++)if(ph[T][H])y.roundRect(T*Y,H*Y,Y,Y,Y/2),T+1<K&&ph[T+1][H]&&y.rect(T*Y+Y/2,H*Y,Y,Y),H+1<K&&ph[T][H+1]&&y.rect(T*Y,H*Y+Y/2,Y,Y);else{q=T*Y+Y/2;R=H*Y+Y/2;for(var Om=0;Om<4;Om++){var xj=_.U(L[Om]),Bo=xj.next().value;xj=xj.next().value;T+Bo>=0&&T+Bo<K&&H+xj>=0&&H+xj<K&&ph[T+Bo][H]&&ph[T][H+xj]&&ph[T+Bo][H+xj]&&(Bo=Om*Math.PI/2,xj=Y/2,y.moveTo(q+xj*Math.cos(Bo),
R+xj*Math.sin(Bo)),y.arc(q,R,Y/2,Bo,Bo+Math.PI/2,!1),y.lineTo(q+xj*(Math.cos(Bo)-Math.sin(Bo)),R+xj*(Math.cos(Bo)+Math.sin(Bo))),y.lineTo(q+xj*Math.cos(Bo),R+xj*Math.sin(Bo)))}}y.fill()}B&&y.drawImage(B,(Q-J)*t/2,(Q-J)*t/2,J*t,J*t);y.restore();X.style.removeProperty("display")};
P.src=_.Z6(k);_.t_(u)})};
_.S.hasCommunityPostRenderer=function(){var D,C,X,c;return!!((D=this.data)==null?0:(C=D.header)==null?0:(X=C.sharePanelHeaderRenderer)==null?0:(c=X.communityPost)==null?0:c.communityPostSectionRenderer)};
_.S.onTapClose=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.S.getScreenLayer=function(){return this.screenLayer};
_.S.logSharePanelPage=function(){if(!_.b("enable_share_panel_navigation_logging_fix_on_web")){var D;if((D=this.data)!=null&&D.trackingParams){D=this.data.trackingParams;var C=this.parentClickTrackingParams;C=C?_.bO(C):void 0;var X=_.iO();_.Gm(X,21760,C,{layer:7,parentLayer:0});X.graftServerVe(D,void 0,7);_.fe().dispatch(_.oI({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Pa.prototype.onDataChanged=Pa.prototype.onDataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Pa.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Pa.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],Pa.prototype,"data",void 0);_.V([_.n({value:_.I7("SBOX_INAPPROPRIATE_CANCEL")}),_.z("design:type",String)],Pa.prototype,"closeButtonAriaLabel",void 0);_.V([_.kn("yt-share-panel-header-renderer"),_.z("design:type",HTMLElement)],Pa.prototype,"header",void 0);_.V([_.n({selector:zB1.parentClickTrackingParamsSelector}),_.z("design:type",String)],Pa.prototype,"parentClickTrackingParams",void 0);_.V([_.n(),_.z("design:type",Object)],Pa.prototype,"qrCodeEnabled",void 0);
_.V([_.kn("#scroller"),_.z("design:type",Object)],Pa.prototype,"JSC$20602_scroller",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pa.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Pa);
_.G(Pa,"ytd-unified-share-panel-renderer",function(){if(uiU!==void 0)return uiU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return uiU=D},{mode:1});var M1k;var $m=function(){var D=_.w.apply(this,arguments)||this;D.modernModal=!0;return D};
_.h($m,_.w);$m.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
$m.prototype.computeShouldHideOldButtons=function(){var D;return!((D=this.data)==null?0:D.button)};
_.$a.Object.defineProperties($m.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var D,C;return(D=this.data)==null?void 0:(C=D.button)==null?void 0:C.buttonRenderer}}});
_.V([_.n(),_.z("design:type",Object)],$m.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],$m.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],$m.prototype,"modernModal",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$m.prototype,"buttonRendererData",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],$m);
_.G($m,"ytd-modal-with-title-and-button-renderer",function(){if(M1k!==void 0)return M1k;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return M1k=D},{mode:1});var qtk;var va=function(){return _.w.apply(this,arguments)||this};
_.h(va,_.w);va.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("page-changed",this.page))};
va.prototype.pageChangedForBinding=va.prototype.pageChangedForBinding;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],va.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],va.prototype,"page",void 0);_.V([_.vr("page"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],va.prototype,"pageChangedForBinding",null);
_.V([_.yj({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],va);
_.G(va,"ytd-account-item-section-header-renderer",function(){if(qtk!==void 0)return qtk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return qtk=D},{mode:1});var fzw;var i2=function(){return _.w.apply(this,arguments)||this};
_.h(i2,_.w);i2.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"}}}};
i2.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],i2.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],i2.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Function)],i2.prototype,"onAccountItemTap",void 0);
_.V([_.yj({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],i2);
_.G(i2,"ytd-account-item-section-renderer",function(){if(fzw!==void 0)return fzw;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fzw=D},{mode:1});var dro;var RBk;var lzk=function(){return _.w.apply(this,arguments)||this};
_.h(lzk,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lzk.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],lzk.prototype,"data",void 0);_.V([_.yj({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],lzk);
_.G(lzk,"ytd-accounts-dialog-header-renderer",function(){if(RBk!==void 0)return RBk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return RBk=D},{mode:1});var D7Y;var km=function(){return _.w.apply(this,arguments)||this};
_.h(km,_.w);km.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],km.prototype,"data",void 0);_.V([_.yj({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],km);
_.G(km,"ytd-google-account-header-renderer",function(){if(D7Y!==void 0)return D7Y;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return D7Y=D},{mode:1});var u2=function(){return _.w.apply(this,arguments)||this};
_.h(u2,_.w);u2.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"}}}};
u2.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("page-changed",this.page))};
u2.prototype.pageChangedForBinding=u2.prototype.pageChangedForBinding;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],u2.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],u2.prototype,"page",void 0);
_.V([_.vr("page"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u2.prototype,"pageChangedForBinding",null);_.V([_.yj({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],u2);
_.o3()(u2,"ytd-account-section-list-renderer",function(){if(dro===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);dro=D}D=dro;return D},{allowedProps:["data"],
mode:1});var C33;var Qz=function(){var D=_.w.apply(this,arguments)||this;D.enableHandlesAccountMenuSwitcher=_.b("enable_handles_account_menu_switcher");return D};
_.h(Qz,_.w);Qz.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Qz.prototype.dataChanged=Qz.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Qz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Qz.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.V([_.kn("#avatar"),_.z("design:type",Object)],Qz.prototype,"avatar",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qz.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Qz);
_.o3()(Qz,"ytd-active-account-header-renderer",function(){if(C33===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);C33=D}D=C33;return D},{allowedProps:["data"],
mode:1});var XQ6;var c4N;var Ba=function(){return _.w.apply(this,arguments)||this};
_.h(Ba,_.w);Ba.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ba.prototype.onBackTap=function(){_.lE(this.hostElement,"yt-menu-back-tapped")};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ba.prototype,"data",void 0);_.V([_.yj({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Ba);
_.o3()(Ba,"ytd-simple-menu-header-renderer",function(){if(c4N===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);c4N=D}D=c4N;return D},{allowedProps:["data"],
mode:2});var okt;var WKX=function(){return _.w.apply(this,arguments)||this};
_.h(WKX,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WKX.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],WKX.prototype,"data",void 0);_.V([_.yj({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],WKX);
_.G(WKX,"ytd-comment-video-thumbnail-header-renderer",function(){if(okt!==void 0)return okt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return okt=D},{mode:1});var pQU;var SbG=function(){return _.w.apply(this,arguments)||this};
_.h(SbG,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SbG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],SbG.prototype,"data",void 0);_.V([_.yj({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],SbG);
_.G(SbG,"ytd-abuse-type-selector-renderer",function(){if(pQU!==void 0)return pQU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return pQU=D},{mode:1});var U7G;var gko=(0,_.V4f)(_.d4.reportChannelAbuse,{isVideoIdSelectedSelector:function(D,C){return C in D.selectedVideoIds},
additionalContextSelector:function(D){return D.additionalContext},
impersonatedChannelUrlSelector:function(D){return D.impersonatedChannelUrl},
reportChannelAbuseSelector:function(D){return D}});var b2=function(){return _.w.apply(this,arguments)||this};
_.h(b2,_.w);b2.prototype.attached=function(){var D=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){D.additionalContextInput.focusTextInput()})};
b2.prototype.handleAdditionalContextChanged=function(){var D=this;_.Hr(this,"ytd-report-channel-additional-context-update",function(){D.ytdReduxBehavior.dispatch(_.oI({type:"ADDITIONAL_CONTEXT_UPDATED",payload:D.additionalContext}))},300)};
b2.prototype.updateAdditionalContextFromBinding=function(D){this.additionalContext=D.detail.value};
b2.prototype.handleAdditionalContextChanged=b2.prototype.handleAdditionalContextChanged;_.V([_.m(_.OA),_.z("design:type",Object)],b2.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",String)],b2.prototype,"additionalContext",void 0);_.V([_.n({selector:gko.additionalContextSelector}),_.z("design:type",String)],b2.prototype,"additionalContextRedux",void 0);_.V([_.n(),_.z("design:type",Object)],b2.prototype,"data",void 0);
_.V([_.kn("yt-text-input-form-field-renderer"),_.z("design:type",Object)],b2.prototype,"additionalContextInput",void 0);_.V([_.vr("additionalContext"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b2.prototype,"handleAdditionalContextChanged",null);_.V([_.yj({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],b2);
_.G(b2,"ytd-report-channel-modal-additional-context-renderer",function(){if(U7G!==void 0)return U7G;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return U7G=D},{mode:1});var a3X;var r9=function(){var D=_.w.apply(this,arguments)||this;D.nextButtonDisabled=null;D.submitEndpoint=null;D.navigationEndpoint=null;D.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return D};
_.h(r9,_.w);_.S=r9.prototype;_.S.computeNextButtonData=function(D,C,X){var c={};C&&(c.navigationEndpoint=C);X&&(c.serviceEndpoint=X);D&&D.buttonRenderer&&_.ZI.extend(c,D.buttonRenderer);return c};
_.S.handleReportChannelModalDisableNextButtonAction=function(D){this.setNextButtonIsDisabled(D)};
_.S.handleReportFormEndpointUpdateAction=function(D){this.setNextButtonIsDisabled(!!D.disableSubmitButton);this.resetEndpointData();D.submitEndpoint?this.submitEndpoint=D.submitEndpoint:D.submitNavigationEndpoint&&(this.navigationEndpoint=D.submitNavigationEndpoint)};
_.S.handleSignalActionSubmitForm=function(){var D,C=Object.keys(((D=this.reportChannelAbuseForm)==null?void 0:D.selectedVideoIds)||{}),X;D=((X=this.reportChannelAbuseForm)==null?void 0:X.additionalContext)||"";var c;X=((c=this.reportChannelAbuseForm)==null?void 0:c.impersonatedChannelUrl)||"";var W;if((W=this.data)==null?0:W.submitEndpoint){C={impersonated_channel_url:X,text:D,video_ids:C};var p;_.iX().resolve(_.uX).resolveCommand((p=this.data)==null?void 0:p.submitEndpoint,{form:Object.assign({},
C,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.S.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.S.onYtServiceRequestError=function(D){this.setNextButtonIsDisabled(!1);_.JG(this.hostElement,D.detail.error.message)};
_.S.setNextButtonIsDisabled=function(D){this.set("data.nextButton.buttonRenderer.isDisabled",D)};
_.S.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
r9.prototype.onYtServiceRequestError=r9.prototype.onYtServiceRequestError;r9.prototype.onYtServiceRequestCompleted=r9.prototype.onYtServiceRequestCompleted;_.V([_.n(),_.z("design:type",Object)],r9.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],r9.prototype,"nextButtonDisabled",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],r9.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],r9.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],r9.prototype,"submitEndpoint",void 0);_.V([_.n(),_.z("design:type",Object)],r9.prototype,"navigationEndpoint",void 0);_.V([_.n({selector:gko.reportChannelAbuseSelector}),_.z("design:type",Object)],r9.prototype,"reportChannelAbuseForm",void 0);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],r9.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],r9.prototype,"onYtServiceRequestError",null);_.V([_.yj({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],r9);
_.G(r9,"ytd-report-channel-modal-footer-renderer",function(){if(a3X!==void 0)return a3X;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return a3X=D},{mode:1});var I33;var KO=function(){var D=_.w.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.closePopup()};
return D};
_.h(KO,_.w);KO.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
KO.prototype.handleDataChanged=function(){_.ai(this.hostElement)};
KO.prototype.closePopup=function(){_.DS(this.hostElement,"yt-close-popup-action")};
KO.prototype.handleDataChanged=KO.prototype.handleDataChanged;_.V([_.n(),_.z("design:type",Object)],KO.prototype,"boundOnTapDismissButton",void 0);_.V([_.n(),_.z("design:type",Object)],KO.prototype,"data",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KO.prototype,"handleDataChanged",null);_.V([_.yj({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],KO);
_.G(KO,"ytd-report-channel-modal-header-renderer",function(){if(I33!==void 0)return I33;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return I33=D},{mode:1});var OD6;var hL=function(){var D=_.w.apply(this,arguments)||this;D.autoValidate=!1;D.invalid=!1;D.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return D};
_.h(hL,_.w);_.S=hL.prototype;_.S.attached=function(){var D=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){D.channelUrlInput.focusTextInput()})};
_.S.disableNextButton=function(D){_.DS(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[D])};
_.S.handleImpersonatedChannelUrlChanged=function(){var D=this;this.disableNextButton(!0);this.invalid=!1;_.Hr(this,"ytd-report-channel-impersonated-channel-update",function(){var C=D.impersonatedChannelUrl.trim();D.ytdReduxBehavior.dispatch(_.oI({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:C}));var X;((X=D.data)==null?0:X.submitEndpoint)&&C&&_.iX().resolve(_.uX).resolveCommand(D.data.submitEndpoint,{form:{impersonated_channel_url:C,element:D.hostElement}})},500)};
_.S.handleModifyReportFormCommand=function(D){this.invalid=this.get("modifyReportFormCommand.action",D)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.S.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.S.updateImpersonatedChannelUrlFromBinding=function(D){this.impersonatedChannelUrl=D.detail.value};
hL.prototype.handleImpersonatedChannelUrlChanged=hL.prototype.handleImpersonatedChannelUrlChanged;_.V([_.m(_.OA),_.z("design:type",Object)],hL.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],hL.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hL.prototype,"autoValidate",void 0);_.V([_.n(),_.z("design:type",Object)],hL.prototype,"invalid",void 0);
_.V([_.n(),_.z("design:type",String)],hL.prototype,"impersonatedChannelUrl",void 0);_.V([_.n({selector:gko.impersonatedChannelUrlSelector}),_.z("design:type",String)],hL.prototype,"impersonatedChannelUrlRedux",void 0);_.V([_.n(),_.z("design:type",Object)],hL.prototype,"data",void 0);_.V([_.kn("#text-input"),_.z("design:type",Object)],hL.prototype,"channelUrlInput",void 0);
_.V([_.vr("impersonatedChannelUrl"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hL.prototype,"handleImpersonatedChannelUrlChanged",null);_.V([_.yj({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],hL);
_.G(hL,"ytd-report-channel-modal-impersonation-renderer",function(){if(OD6!==void 0)return OD6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return OD6=D},{mode:1});var A46;var P3G;var xm=function(){return _.w.apply(this,arguments)||this};
_.h(xm,_.w);xm.prototype.onCheckboxToggled=function(D){var C,X,c=(X=_.r((C=this.data)==null?void 0:C.video,_.$L))==null?void 0:X.videoId;c&&this.ytdReduxBehavior.dispatch(D.target.checked?_.oI({type:"VIDEO_SELECTED",payload:c}):_.oI({type:"VIDEO_UNSELECTED",payload:c}))};
xm.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.$a.Object.defineProperties(xm.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var D,C=(D=this.data)==null?void 0:D.video;if(!C)return{};var X;D=(X=_.r(C,_.$L))==null?void 0:X.navigationEndpoint;if(!D)return C;_.r(D==null?void 0:D.commandMetadata,_.ge)&&(_.r(D.commandMetadata,_.ge).ignoreNavigation=!0);return C}}});
_.V([_.n({reflectToAttribute:!0,selector:gko.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.z("design:type",Boolean)],xm.prototype,"checked",void 0);_.V([_.n(),_.z("design:type",Object)],xm.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xm.prototype,"video",null);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],xm.prototype,"ytdReduxBehavior",void 0);_.V([_.yj({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],xm);
_.G(xm,"ytd-selectable-video-renderer",function(){if(P3G!==void 0)return P3G;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return P3G=D},{mode:1});var LO=function(){var D=_.w.apply(this,arguments)||this;D.monitorScroll=!0;return D};
_.h(LO,_.w);LO.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],LO.prototype,"data",void 0);_.V([_.yj({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],LO);
_.G(LO,"ytd-selectable-video-list-renderer",function(){if(A46!==void 0)return A46;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return A46=D},{mode:1});var $7Y;_.sI("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var sT=function(){return _.w.apply(this,arguments)||this};
_.h(sT,_.w);sT.prototype.onChange=function(D){if(D=_.qz(D).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.b("kevlar_command_handler_migration_killswitch"))_.o7(this.hostElement,D,this.hostElement);else{D=_.U(D);for(var C=D.next();!C.done;C=D.next())this.ytComponentBehavior.resolveCommand(C.value)}};
sT.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
sT.prototype.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],sT.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sT.prototype,"data",void 0);_.V([_.n({computed:"isEnabled(data)"}),_.z("design:type",Boolean)],sT.prototype,"enabled",void 0);_.V([_.yj({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],sT);
_.G(sT,"ytd-toggle-item-renderer",function(){if($7Y!==void 0)return $7Y;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return $7Y=D},{mode:1});var vkX;var iDG;var k$k;var m6=function(){var D=_.w.apply(this,arguments)||this;D.setVisible=!1;D.boundOnSubmitButtonClick=function(){D.onSubmitButtonClick()};
D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.h(m6,_.w);m6.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}}}}}};
m6.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
m6.prototype.onSubmitButtonClick=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&!_.b("enable_ytc_refunds_submit_form_signal_action")&&_.cE(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
m6.prototype.handleSignalActionSubmitForm=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&_.cE(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.$a.Object.defineProperties(m6.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hiddenByDefault)&&!this.setVisible}}});
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],m6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],m6.prototype,"setVisible",void 0);_.V([_.n(),_.z("design:type",Object)],m6.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],m6.prototype,"surveyFeedbackData",void 0);_.V([_.n(),_.z("design:type",Object)],m6.prototype,"boundOnSubmitButtonClick",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data","setVisible"),_.z("design:type",Object),_.z("design:paramtypes",[])],m6.prototype,"visibilityHidden",null);_.V([_.Yn({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],m6);
_.G(m6,"yt-flow-footer-renderer",function(){if(k$k===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;iDG===void 0&&(iDG=document.createElement("template"));var c=iDG;X.call(C,c.content.cloneNode(!0),D.content.firstChild);k$k=D}D=k$k;return D},{mode:2});var uht=(0,_.V4f)(_.d4.ypc,{surveyFeedbackDataSelector:function(D){return D.surveyFeedbackData}});var et=function(){return _.w.apply(this,arguments)||this};
_.h(et,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],et.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],et.prototype,"data",void 0);_.V([_.n({selector:uht.surveyFeedbackDataSelector}),_.z("design:type",Object)],et.prototype,"surveyFeedbackData",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],et);
_.G(et,"ytd-flow-footer-renderer",function(){if(vkX!==void 0)return vkX;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return vkX=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var Qnt;var BCG;var ET=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return D};
_.h(ET,_.w);_.S=ET.prototype;_.S.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ml("multiPageMenuSectionItems")}}};
_.S.handleHideEnclosingAction_=function(D){if(this.data&&this.data.items)for(var C=0;C<this.data.items.length;C++){var X=this.data.items[C].notificationRenderer;if(X&&X.notificationId==D.hideEnclosingAction.notificationId){this.splice("data.items",C,1);_.DS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.S.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.ao(this.hostElement,"hidden",!0)};
_.S.updateMenu_=function(D){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&D&&!D.doNotRefreshInbox){D=this.data.continuations;for(var C=0;C<D.length;C++)if(D[C].invalidationContinuationData){var X=void 0;var c=(X=D[C].invalidationContinuationData)==null?void 0:X.continuation;break}D=_.ZI.clone(this.data.continuationUpdateEndpoint||null);D.continuation=c;D.click_tracking_params=this.data.trackingParams;_.cE(this.hostElement,[D])}};
_.S.onServiceRequestCompleted_=function(D,C){if(this.data&&(D=C.actions)){C=0;for(var X=D.length;C<X;C++){var c=_.r(D[C],_.TWg);if(!c)break;if((c.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||c.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&c.continuationItems&&this.data.items){var W=this.data.items.length-1;this.data.items[W].continuationItemRenderer&&(c=["data.items",W,1].concat(c.continuationItems),this.splice.apply(this,c))}}}};
ET.prototype.onServiceRequestCompleted_=ET.prototype.onServiceRequestCompleted_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],ET.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ET.prototype,"data",void 0);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],ET.prototype,"onServiceRequestCompleted_",null);_.V([_.Yn({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ET);
_.o3()(ET,"yt-multi-page-menu-section-renderer",function(){if(BCG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Qnt===void 0&&(Qnt=document.createElement("template"));var c=Qnt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);BCG=D}D=BCG;return D},{allowedProps:["data"],
mode:2});var bDw;var r4t;var tL=function(){return _.w.apply(this,arguments)||this};
_.h(tL,_.w);tL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.$a.Object.defineProperties(tL.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)==null?0:this.data.progress*100}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],tL.prototype,"data",void 0);_.V([_.e("data.progress"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tL.prototype,"showProgressBar",null);
_.V([_.e("data.progress"),_.z("design:type",Number),_.z("design:paramtypes",[])],tL.prototype,"progress",null);_.V([_.Yn({is:"yt-flow-header-renderer",disableElementRegistration:!0})],tL);
_.G(tL,"yt-flow-header-renderer",function(){if(r4t===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;bDw===void 0&&(bDw=document.createElement("template"));var c=bDw;X.call(C,c.content.cloneNode(!0),D.content.firstChild);r4t=D}D=r4t;return D},{mode:2});var KK1;var h$G;var Nu=function(){return _.w.apply(this,arguments)||this};
_.h(Nu,_.w);Nu.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Nu.prototype,"data",void 0);_.V([_.Yn({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Nu);
_.G(Nu,"yt-post-confirmation-flow-step-renderer",function(){if(h$G===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;KK1===void 0&&(KK1=document.createElement("template"));var c=KK1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);h$G=D}D=h$G;return D},{mode:2});var x71;var LKN;var Ym=function(){return _.w.apply(this,arguments)||this};
_.h(Ym,_.w);
Ym.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ym.prototype,"data",void 0);_.V([_.Yn({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ym);
_.G(Ym,"yt-refund-confirmation-flow-step-renderer",function(){if(LKN===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;x71===void 0&&(x71=document.createElement("template"));var c=x71;X.call(C,c.content.cloneNode(!0),D.content.firstChild);LKN=D}D=LKN;return D},{mode:2});var snw=_.F(function(D){var C=D.data;return _.A("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.A("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.A(_.M_,{data:function(){return{thumbnails:[{url:C().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.A("div",{class:"profileBadgeViewModelContent"},_.A("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return C().badgeDesc}),_.A(_.v,{cond:function(){return C().badgeSubtitle},
then:function(){return _.A("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return C().badgeSubtitle})}})))},"oj");
snw.idomCompat=!0;var m7w=_.F(function(D){var C=D.data;return _.A("yt-comment-interaction-view-model",{el:_.fb(_.NH(function(){return C().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.A("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return C().onTapA11yLabel},
"on:keydown":_.V2t(),tabindex:0},_.A("div",{class:"ytCommentInteractionViewModelHeader"},_.A("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return C().headerPrefix},' "',function(){return C().videoTitle}),_.A("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.A("div",{class:"ytCommentInteractionViewModelContent"},_.A("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return C().commentContent}),_.A("div",{class:"ytCommentInteractionViewModelChevron"},
_.A(_.M_,{data:function(){return{thumbnails:[{url:C().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"pj");
m7w.idomCompat=!0;var e$6=_.F(function(D){var C=D.data;return _.A("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu}),_.A("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return C().channelName}))},"qj");
e$6.idomCompat=!0;var y4t=_.F(function(D){var C=D.data;D={};return _.A("yt-profile-info-view-model",{class:_.g$("ytProfileInfoViewModelHost",(D.ytProfileInfoViewModelWithVideoShelf=function(){return C().videosHorizontalShelf},D))},_.A(Ek1,{profileInfo:C}),_.A(_.BX,{data:function(){return C().videosHorizontalShelf}},{horizontalShelfViewModel:function(X){return _.A("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.A(_.KZ,{data:X.data}))}}),_.A(_.v,{cond:function(){return C().comments},
then:function(){return _.A(tQP,{profileInfo:C})}}),_.A(_.v,{cond:function(){return C().sharedSubscriptionsTitle},
then:function(){return _.A(_.v,{cond:function(){return C().subscriptionsAccessButtonCommand},
then:function(){return _.A(NC1,{profileInfo:C})},
else:function(){return _.A(Ybt,{profileInfo:C})}})}}))},"rj");
y4t.idomCompat=!0;var tQP=_.F(function(D){var C=D.profileInfo;return _.A("div",{class:"ytProfileInfoViewModelActivity"},_.A("div",{class:"ytProfileInfoViewModelHeader"},_.A("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return C().commentsInteractionTitle})),_.A(_.BX,{data:function(){return C().comments}},{commentInteractionViewModel:function(X){return _.A("div",{class:"ytProfileInfoViewModelActivity"},_.A(m7w,{data:X.data}))}}))},"sj"),NC1=_.F(function(D){var C=D.profileInfo;
return _.A("div",{class:"ytProfileInfoViewModelSubSection"},_.A("div",{class:"ytProfileInfoViewModelSubHeader"},_.A(_.ty,{command:function(){return C().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.A("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return C().sharedSubscriptionsTitle}),_.A("div",null,_.A(_.BX,{data:function(){return C().subscriptionsAccessButton}},{buttonViewModel:_.Ze})))),_.A(nk3,{sharedSubscriptions:function(){var X;
return((X=C().sharedSubscriptions)==null?void 0:X.slice(0,5))||[]}}))},"tj"),Ybt=_.F(function(D){var C=D.profileInfo;
return _.A("div",{class:"ytProfileInfoViewModelSubSection"},_.A("div",{class:"ytProfileInfoViewModelSubHeader"},_.A("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return C().sharedSubscriptionsTitle})),_.A(nk3,{sharedSubscriptions:function(){var X;
return((X=C().sharedSubscriptions)==null?void 0:X.slice(0,5))||[]}}))},"uj"),nk3=_.F(function(D){return _.A("div",{class:"ytProfileInfoViewModelSubs"},_.A(_.BX,{data:D.sharedSubscriptions},{sharedSubscriptionViewModel:function(C){return _.A("div",{class:"ytProfileInfoViewModelSub"},_.A(e$6,{data:C.data}))}}))},"vj"),Ek1=_.F(function(D){var C=D.profileInfo;
return _.A("div",{class:"ytProfileInfoViewModelActivity"},_.A(_.Zh,{each:function(){return[C().profileBadgeInfoYtWide,C().profileBadgeInfoChannelWide].filter(function(X){return!!X})},
keyBy:"INDEX"},function(X){return _.A(_.kQ,null,_.A("div",{class:"ytProfileInfoViewModelHeader"},_.A("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return X().profileSectionTitle}),_.A("div",{class:"ytProfileInfoViewModelSectionDesc"},_.A("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var c;
return(c=X().commentBadge)==null?void 0:c.commentDesc}),_.A(_.v,{cond:function(){var c;
return(c=X().commentBadge)==null?void 0:c.blackHeartDesc},
then:function(){return _.A("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.A("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.A(_.M_,{data:function(){var c;
return{thumbnails:[{url:(c=X().commentBadge)==null?void 0:c.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.A("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var c;return(c=X().commentBadge)==null?void 0:c.blackHeartDesc}))),_.A("div",{class:"ytProfileInfoViewModelBadge"},_.A(_.Zh,{each:function(){return X().badges||[]}},function(c){return _.A(snw,{data:c})})))}))},"wj");var wQ3=_.F(function(D){var C=D.data;var X=function(){return C().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.A("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.A(_.BX,{data:function(){return C().profileIdentityInfo}},{profileIdentityInfoViewModel:function(c){return _.A(_.KUw,{data:c.data,
hideDivider:X,isChannelInfoCard:X})},
profileInfoViewModel:y4t}),_.A(_.BX,{data:function(){return C().profileInfo}},{profileIdentityInfoViewModel:_.KUw,
profileInfoViewModel:y4t}))},"xj");
wQ3.idomCompat=!0;_.CI(wQ3,"yt-profile-card-view-model",{props:{data:_.Bm}});var yz=function(){var D=_.w.apply(this,arguments)||this;D.enableFocusFix=_.b("music_web_enable_focus_on_setting_menu_fix")&&_.dq("IS_MOBILE_WEB",!1);D.covered=!1;D.hideMenu=!1;D.isCommentNotificationOnProfileCard=!1;D.scrolledByTouch=!1;D.disableBackdropFilter=_.b("web_disable_backdrop_filter");D.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return D};
_.h(yz,_.w);_.S=yz.prototype;
_.S.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"}}}};
_.S.ready=function(){var D=this;this.JSC$20703_containerElement.addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.S.attributeChanged=function(D,C){D==="menu-style"&&_.DS(this.hostElement,"yt-multi-page-menu-closed-action",[C])};
_.S.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Pr(this,this.focusOnStampFinished))};
_.S.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Pr(this,this.focusOnStampFinished))};
_.S.reset=function(){this.closeJobId&&(_.qX.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.S.focusOnStampFinished=function(D){D.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Pr(this,this.focusOnStampFinished)),this.doFocus())};
_.S.doFocus=function(){var D=_.J6x(this.sectionsElement);D.length&&D[0].focus()};
_.S.computeMenuStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.S.computeIsCommentNotificationOnProfileCard=function(D){return _.b("enable_profile_cards_on_comments")&&D.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.S.computeHideMenu=function(D,C){return D||!(!C||!C.showLoadingSpinner)};
_.S.onPopupClosed=function(){this.isPopUpOpen=!1;_.DS(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.S.onPopupOpened=function(D,C){this.isPopUpOpen=!0;C.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.lE(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.oI({type:"CHANNEL_REPORT_RESET"})))};
_.S.onYtNavigate=function(D,C){this.shouldCloseOnNavigateEvent(C.endpoint)&&_.DS(this.hostElement,"yt-close-all-popups-action")};
_.S.handleEndpoint=function(D){D=_.r(D,_.Uq);!this.isCommentNotificationOnProfileCard&&D&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20703_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.S.handleActions=function(D){for(var C=0,X=D.length;C<X;C++){var c=_.r(D[C],u01);c&&this.handleGetMultiPageMenuAction(c);(c=_.r(D[C],_.TWg))&&this.handleAppendContinuationItemsAction(c)}};
_.S.onServiceRequestSentOrCompleted=function(D,C){D.detail&&D.detail.endpoint&&this.handleEndpoint(D.detail.endpoint);C.actions&&this.handleActions(C.actions)};
_.S.handleGetMultiPageMenuAction=function(D){var C=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.SY(this.submenuElement).appendChild(C);(D=D.menu.multiPageMenuRenderer)&&this.logSubmenu(D);C.data=D;C.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.S.handleAppendContinuationItemsAction=function(D){if(this.data&&D.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&D.continuationItems&&this.data.sections){var C=this.data.sections.length-1;this.data.sections[C].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),C--);if(this.data.sections[C].multiPageMenuNotificationSectionRenderer&&D.continuationItems){D=_.U(D==null?void 0:D.continuationItems);for(var X=D.next();!X.done;X=D.next())if(X=X.value,_.r(X,JS3)){var c=
void 0,W=void 0,p=void 0,g=void 0,a=void 0;((c=this)==null?0:(W=c.data)==null?0:(p=W.sections)==null?0:(g=p[C])==null?0:(a=g.multiPageMenuNotificationSectionRenderer)==null?0:a.items)&&this.push("data.sections."+C+".multiPageMenuNotificationSectionRenderer.items",X)}else if(_.r(X,_.tBx)||_.r(X,_.dE))this.push("data.sections",X),C++}}};
_.S.logSubmenu=function(D){if(!_.b("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var C=this.ytRendererBehavior.getScreenLayer(),X=_.LN(C),c=_.xr(C);if((D=D.trackingParams)&&X&&c){var W=_.bO(D);_.b("combine_ve_grafts")?_.iO().graftServerVe(D,c,C):_.F_(X,c,W)}}};
_.S.emptySubmenuContainer=function(){for(var D=_.SY(this.submenuElement);D.firstChild;)D.removeChild(D.firstChild)};
_.S.onMenuBackTap=function(D){_.lE(this.hostElement,"yt-submenu-closed");D.stopPropagation()};
_.S.onSubmenuClosed=function(D){_.qz(D)!==this.hostElement&&(this.covered=!1,_.lE(this.hostElement,"yt-refit"),D.stopPropagation())};
_.S.onRetrieveLocation=function(D,C){C.hasComments&&(C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),D.stopPropagation())};
_.S.shouldCloseOnNavigateEvent=function(D){if(!D)return!0;if(_.r(D,_.O4q)||_.r(D,_.AyM)||_.r(D,_.Ied)||_.r(D,_.oX))return!1;var C;return((C=_.r(D==null?void 0:D.commandMetadata,_.ge))==null?0:C.ignoreNavigation)?!1:!0};
_.S.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.S.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.S.refitAfterRender=function(){var D=this;_.A0(this,function(){_.lE(D.hostElement,"yt-refit")})};
yz.prototype.refitAfterRender=yz.prototype.refitAfterRender;yz.prototype.onRetrieveLocation=yz.prototype.onRetrieveLocation;yz.prototype.onSubmenuClosed=yz.prototype.onSubmenuClosed;yz.prototype.onMenuBackTap=yz.prototype.onMenuBackTap;yz.prototype.onServiceRequestSentOrCompleted=yz.prototype.onServiceRequestSentOrCompleted;yz.prototype.onYtNavigate=yz.prototype.onYtNavigate;yz.prototype.onPopupOpened=yz.prototype.onPopupOpened;yz.prototype.onPopupClosed=yz.prototype.onPopupClosed;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],yz.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],yz.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yz.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],yz.prototype,"enableFocusFix",void 0);_.V([_.n(),_.z("design:type",Object)],yz.prototype,"covered",void 0);_.V([_.n({computed:"computeHideMenu(covered, data)"}),_.z("design:type",Object)],yz.prototype,"hideMenu",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.z("design:type",String)],yz.prototype,"menuStyle",void 0);
_.V([_.n({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.z("design:type",Object)],yz.prototype,"isCommentNotificationOnProfileCard",void 0);_.V([_.n(),_.z("design:type",Boolean)],yz.prototype,"isPopUpOpen",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yz.prototype,"scrolledByTouch",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],yz.prototype,"disableBackdropFilter",void 0);
_.V([_.kn("#sections"),_.z("design:type",HTMLElement)],yz.prototype,"sectionsElement",void 0);_.V([_.kn("#spinner"),_.z("design:type",HTMLElement)],yz.prototype,"spinnerElement",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLElement)],yz.prototype,"headerElement",void 0);_.V([_.kn("#container"),_.z("design:type",HTMLElement)],yz.prototype,"JSC$20703_containerElement",void 0);_.V([_.kn("#submenu"),_.z("design:type",HTMLElement)],yz.prototype,"submenuElement",void 0);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yz.prototype,"onPopupClosed",null);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],yz.prototype,"onPopupOpened",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],yz.prototype,"onYtNavigate",null);
_.V([_.$n("yt-service-request-completed"),_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],yz.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.$n("yt-menu-back-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yz.prototype,"onMenuBackTap",null);
_.V([_.$n("yt-submenu-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],yz.prototype,"onSubmenuClosed",null);_.V([_.$n("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],yz.prototype,"onRetrieveLocation",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yz.prototype,"refitAfterRender",null);
_.V([_.yj({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],yz);
_.G(yz,"ytd-multi-page-menu-renderer",function(){if(XQ6!==void 0)return XQ6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return XQ6=D},{mode:1});var FKw;var nO=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return D};
_.h(nO,_.w);_.S=nO.prototype;_.S.created=function(){this.showTooltips=!0};
_.S.computeAccessibility_=function(D){return this.get("accessibility.accessibilityData",D)||null};
_.S.onTap=function(){var D=_.Ct(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(D&&D.length===1&&D[0])_.DS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var C;if((C=this.data)==null?0:C.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var X;((X=this.data)==null?0:X.menuRequest)&&_.cE(this.hostElement,[this.data.menuRequest])}}};
_.S.handleTopbarMenuClosedAction=function(D){var C,X;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(D)===((C=this.data)==null?void 0:(X=C.icon)==null?void 0:X.iconType)&&this.toggleIconState(!1)};
_.S.toggleIconState=function(D){_.b("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=D)};
_.S.handleUpdateTopbarAvatarAction=function(D){var C;D=(C=_.r(D,O66))==null?void 0:C.avatarUrl;var X,c;C=(X=this.data)==null?void 0:(c=X.avatar)==null?void 0:c.thumbnails;D&&C&&(X={thumbnails:[Object.assign({},C[0],{url:D})]},this.set("data.avatar",X))};
_.$a.Object.defineProperties(nO.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.SY(this.hostElement).querySelector("#button")}}});
nO.prototype.onTap=nO.prototype.onTap;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],nO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],nO.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.eEf.YtButtonBehavior),_.z("design:type",Object)],nO.prototype,"ytButtonBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nO.prototype,"data",void 0);
_.V([_.kn("yt-icon-button#button"),_.z("design:type",Object)],nO.prototype,"iconButton",void 0);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nO.prototype,"onTap",null);_.V([_.yj({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],nO);
_.o3()(nO,"ytd-topbar-menu-button-renderer",function(){if(FKw===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);FKw=D}D=FKw;return D},{allowedProps:["data"],
mode:1});var ZDo;var w9=function(){return _.w.apply(this,arguments)||this};
_.h(w9,_.w);w9.prototype.getSelected=function(){return this.reasons.selected};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],w9.prototype,"data",void 0);_.V([_.kn("#reasons"),_.z("design:type",Object)],w9.prototype,"reasons",void 0);_.V([_.yj({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],w9);
_.G(w9,"ytd-ad-feedback-content",function(){if(ZDo!==void 0)return ZDo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ZDo=D},{mode:1});var G$U;var FY=function(){return _.w.apply(this,arguments)||this};
_.h(FY,_.w);_.S=FY.prototype;_.S.onPopupOpened=function(){_.DS(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.S.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
_.S.computeCancelButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.cancelLabel}};
_.S.onConfirmTap=function(){var D=this.content.getSelected();D!==void 0&&(D=this.data.reasons[D].endpoint)&&(_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}}),_.DS(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.S.sendFeedbackSubmitToastAction=function(){var D;(D=this.data)!=null&&D.completionMessage&&(D=_.RI(this.data.completionMessage),_.DS(this.hostElement,"yt-open-popup-action",[D,this]))};
_.S.onCancelTap=function(){_.DS(this.hostElement,"yt-close-popup-action")};
FY.prototype.onPopupOpened=FY.prototype.onPopupOpened;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FY.prototype,"data",void 0);_.V([_.kn("#content"),_.z("design:type",Object)],FY.prototype,"content",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],FY.prototype,"onPopupOpened",null);
_.V([_.yj({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],FY);
_.G(FY,"ytd-ad-feedback-renderer",function(){if(G$U!==void 0)return G$U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return G$U=D},{mode:1});var VQp;var TC3=function(){return _.w.apply(this,arguments)||this};
_.h(TC3,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],TC3.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TC3.prototype,"data",void 0);_.V([_.yj({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],TC3);
_.G(TC3,"ytd-ad-info-dialog-content",function(){if(VQp!==void 0)return VQp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return VQp=D},{mode:1});var HDt;var ZP=function(){return _.w.apply(this,arguments)||this};
_.h(ZP,_.w);ZP.prototype.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
ZP.prototype.onConfirmTap=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
ZP.prototype.computeShouldShowTitle=function(){var D;return!((D=this.data)==null||!D.title)};
ZP.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
ZP.prototype.onPopupClosed=ZP.prototype.onPopupClosed;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ZP.prototype,"data",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ZP.prototype,"onPopupClosed",null);_.V([_.yj({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],ZP);
_.G(ZP,"ytd-ad-info-dialog-renderer",function(){if(HDt!==void 0)return HDt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return HDt=D},{mode:1});var J43;var GK=function(){var D=_.w.apply(this,arguments)||this;D.actionButtonClass="action-button";D.dismissButtonId="dismiss-button";D.dialogDismiss=!0;return D};
_.h(GK,_.w);_.S=GK.prototype;_.S.computeInPlayer=function(D){return(D==null?void 0:D.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.S.computedLogo=function(){var D,C;return this.isDarkTheme()?(D=this.data)==null?void 0:D.logoDark:(C=this.data)==null?void 0:C.logo};
_.S.computedHeaderImage=function(){var D,C;return this.isDarkTheme()?(D=this.data)==null?void 0:D.headerImageDark:(C=this.data)==null?void 0:C.headerImage};
_.S.computeLogoIconId=function(){var D,C,X,c=(D=this.computedLogo())==null?void 0:(C=D.sources)==null?void 0:(X=C[0])==null?void 0:X.height;return c&&c%31===0?"logo-icon-with-padding":"logo-icon"};
_.S.computeLogoIconHeight=function(){var D,C,X,c=(D=this.computedLogo())==null?void 0:(C=D.sources)==null?void 0:(X=C[0])==null?void 0:X.height;return c&&c%31===0?"31":"24"};
_.S.onPopupClosed=function(){_.iX().resolve(_.Ub).dispose()};
_.S.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.S.onShow=function(){this.inPlayer&&_.O2(6);this.titleElement.focus()};
_.S.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++){var C=_.r(this.data.impressionEndpoints[D],_.N_);C&&this.ytComponentBehavior.resolveCommand(C)}};
_.S.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.DS(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.$a.Object.defineProperties(GK.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var D,C;return!((D=this.data)==null||!D.headerImageDark)&&!((C=this.data)==null||!C.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.secondaryButton)}}});
GK.prototype.onPopupClosed=GK.prototype.onPopupClosed;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],GK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.$Z.YtVisibilityBehavior),_.z("design:type",Object)],GK.prototype,"ytVisibilityBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],GK.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],GK.prototype,"actionButtonClass",void 0);_.V([_.n(),_.z("design:type",Object)],GK.prototype,"dismissButtonId",void 0);_.V([_.n(),_.z("design:type",Object)],GK.prototype,"dialogDismiss",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],GK.prototype,"hasHeaderImage",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],GK.prototype,"hasPremiumButton",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.z("design:type",Boolean)],GK.prototype,"inPlayer",void 0);_.V([_.kn("#dismiss-button"),_.z("design:type",HTMLElement)],GK.prototype,"dismissButton",void 0);_.V([_.kn("#title"),_.z("design:type",HTMLElement)],GK.prototype,"titleElement",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],GK.prototype,"onPopupClosed",null);
_.V([_.yj({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],GK);
_.G(GK,"ytd-enforcement-message-view-model",function(){if(J43!==void 0)return J43;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return J43=D},{mode:1});var z$G;var jn3;var Vz=function(){var D=_.w.apply(this,arguments)||this;D.TEST_ONLY={immediateValidation:function(){D.immediateValidation()},
onValidationResponse:function(C){D.onValidationResponse(C)},
onGenerateHandleFromNameResponse:function(C){D.onGenerateHandleFromNameResponse(C)}};
return D};
_.h(Vz,_.w);_.S=Vz.prototype;_.S.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.S.validate=function(){this.immediateValidation()};
_.S.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.S.setHandleInputValue=function(D){this.handleDir=this.getHandleDir(D);this.handleInput.value=D;this.validationState={status:"PENDING"};this.immediateValidation()};
_.S.getHandleDir=function(D){var C=D===""&&!1;return(C=_.UC5.test.call(_.UC5,D))?"rtl":"ltr"};
_.S.onDataChanged=function(){var D,C;this.handleDir=this.getHandleDir((C=(D=this.data)==null?void 0:D.handle)!=null?C:"");var X;this.validationState=((X=this.data)==null?0:X.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var c;((c=this.data)==null?0:c.validateOnInit)&&this.immediateValidation()};
_.S.stopPropagation=function(D){D.stopPropagation()};
_.S.onInput=function(){var D;this.handleDir=this.getHandleDir((D=this.handleInput.value)!=null?D:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.S.onFocusout=function(D){this.handleInput.contains(D.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.S.delayedValidation=function(){var D,C;this.debouncedValidation((C=(D=this.data)==null?void 0:D.validationDelayMs)!=null?C:1E3)};
_.S.immediateValidation=function(){this.debouncedValidation(0)};
_.S.debouncedValidation=function(D){var C=this;_.Hr(this,"debouncedValidation",function(){var X,c=C.staticValidation((X=C.handleInput.value)!=null?X:"");if(c!==void 0)C.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:c};else{var W;if((W=C.data)!=null&&W.validateChannelHandleCommand){C.validationState={status:"LOADING"};var p;C.ytComponentBehavior.resolveCommand(C.data.validateChannelHandleCommand,{form:{handle:(p=C.handleInput.value)!=null?p:""},commandController:{onSuccess:function(g,
a){C.onValidationResponse(a)},
onServerError:function(g,a){C.onValidationServerError(a)}}})}else C.handleUnexpectedValidationError(new _.Zf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",C.data))}},D)};
_.S.staticValidation=function(D){var C;if(((C=this.data)==null?void 0:C.channelHandleStaticValidationParams)!==void 0){C=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(D)&&C.validValueRegexpErrorMessage!==void 0)return C.validValueRegexpErrorMessage;if(C.minLength!==void 0&&D.length<C.minLength&&C.minLengthErrorMessage!==void 0)return C.minLengthErrorMessage;if(C.maxLength!==void 0&&D.length>C.maxLength&&C.maxLengthErrorMessage!==void 0)return C.maxLengthErrorMessage}};
_.S.onValidationResponse=function(D){var C=_.r(D.result,AS6);C===void 0?this.handleUnexpectedValidationError(new _.Zf("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",D)):this.handleValidationResultRenderer(C)};
_.S.onValidationServerError=function(D){this.handleUnexpectedValidationError(new _.Zf("ValidateChannelHandle request failed.",D))};
_.S.handleValidationResultRenderer=function(D){if(D.handle===void 0)this.handleUnexpectedValidationError(new _.Zf("ChannelHandleValidationResultRenderer does not contain handle.",D));else if(D.handle===this.handleInput.value)switch(D.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:D.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:D.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Zf("Unrecognized ChannelHandleValidationResult",D));break;default:_.qf(D.result)}};
_.S.handleUnexpectedValidationError=function(D){var C;this.validationState={status:"UNKNOWN",handle:(C=this.handleInput.value)!=null?C:""};_.fQ(D)};
_.S.stopEventPropagation=function(D){D.stopPropagation()};
_.S.updateHandleOnChannelNameInputChange=function(D){if(!this.wasEdited){var C,X;this.debouncedGenerateHandleFromName(D,(X=(C=this.data)==null?void 0:C.validationDelayMs)!=null?X:1E3)}};
_.S.debouncedGenerateHandleFromName=function(D,C){var X=this;_.Hr(this,"debouncedGenerateHandleFromName",function(){var c;(c=X.data)!=null&&c.validateChannelHandleCommand?X.ytComponentBehavior.resolveCommand(X.data.validateChannelHandleCommand,{form:{name:D},commandController:{onSuccess:function(W,p){X.onGenerateHandleFromNameResponse(p)},
onServerError:function(W,p){_.fQ(new _.Zf("Error calling GenerateHandleFromName",p))}}}):_.fQ(new _.Zf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",X.data))},C)};
_.S.onGenerateHandleFromNameResponse=function(D){this.wasEdited||((D=_.r(D.result,PIw))?this.setHandleInputValue(D.handle):_.fQ(new _.Zf("Invalid results when generate handle from name")))};
_.$a.Object.defineProperties(Vz.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var D;if(D=this.validationState)D=this.validationState,D=D.status==="OK"||D.status==="UNKNOWN";if(D)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.validationState)==null?void 0:D.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 D,C=(D=this.channelHandleEntity)==null?void 0:D.handleEdit;this.handleDir=this.getHandleDir(C!=null?C:"");return C}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var D,C;if(((D=this.data)==null?void 0:(C=D.channelHandleStaticValidationParams)==null?void 0:C.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Vz.prototype.stopEventPropagation=Vz.prototype.stopEventPropagation;Vz.prototype.onDataChanged=Vz.prototype.onDataChanged;Vz.prototype.applyHandleEdit=Vz.prototype.applyHandleEdit;Vz.prototype.onValueChanged=Vz.prototype.onValueChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Vz.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Vz.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Vz.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Boolean)],Vz.prototype,"wasEdited",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],Vz.prototype,"handleDir",void 0);_.V([_.kn("#handle-input"),_.z("design:type",Object)],Vz.prototype,"handleInput",void 0);_.V([_.n(),_.e("validationState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vz.prototype,"value",null);
_.V([_.vr("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vz.prototype,"onValueChanged",null);_.V([_.e("validationState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vz.prototype,"errorIndicator",null);_.V([_.n({reflectToAttribute:!0}),_.e("errorIndicator"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Vz.prototype,"borderErrorIndicator",null);
_.V([_.n({selectorArgs:["data.channelHandleEntityKey"],selector:function(D,C){return _.aI(D.entities,"channelHandle",C)}}),
_.z("design:type",Object)],Vz.prototype,"channelHandleEntity",void 0);_.V([_.e("channelHandleEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vz.prototype,"handleEdit",null);_.V([_.vr("handleEdit"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vz.prototype,"applyHandleEdit",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vz.prototype,"onDataChanged",null);
_.V([_.e("data.channelHandleStaticValidationParams.validValueRegexp"),_.z("design:type",Object),_.z("design:paramtypes",[])],Vz.prototype,"validValueRegexp",null);_.V([_.$n("yt-service-request-sent"),_.$n("yt-service-request-completed"),_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Vz.prototype,"stopEventPropagation",null);_.V([_.yj({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Vz);
_.G(Vz,"ytd-channel-handle-input-renderer",function(){if(jn3!==void 0)return jn3;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return jn3=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var TK=function(){var D=_.w.apply(this,arguments)||this;D.data=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!1;D.enableNewChannelCreationOnIdForAll=_.b("enable_new_channel_creation_for_id4all");D.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"};D.testOnly={setErrorMessage:function(C){D.resetErrorState();
D.setErrorState(C)}};
return D};
_.h(TK,_.w);_.S=TK.prototype;_.S.created=function(){this.logScreenVe()};
_.S.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")};
_.S.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var D;((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.set("errorMessage",_.jV(this.zeroStepErrorMessageEntity.value))};
_.S.onCreateTap=function(){var D=this;if(this.data&&this.data.channelCreationEndpoint){var C,X;if(!((C=this.data.createChannelButton)==null?0:(X=C.buttonRenderer)==null?0:X.isDisabled)){var c;if((c=this.nameInput)!=null&&c.value){this.setLoadingState();var W,p;C=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(W=this.handleInput)==null?void 0:W.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((p=this.handleInput)==null?void 0:p.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:C,commandController:{onSuccess:function(g,a){D.onChannelCreationEndpointSuccess(a);D.obakeImageSource&&_.zu("channelCreatedWithObakeImage",{imageSourceType:D.obakeImageSource})},
onServerError:function(){D.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.S.endpointRequiresServiceRequestAction=function(D){return!!_.r(D,_.E3)||!!_.r(D,O66)};
_.S.isNavigateAction=function(D){var C;return!!_.r(D,_.gnp)||!!_.r((C=_.r(D,i6t))==null?void 0:C.command,_.gnp)};
_.S.isPlaylistAction=function(D){return!!_.r(D,_.gX)||!!_.r(D,_.vj)};
_.S.onChannelCreationEndpointSuccess=function(D){if(D.createChannelError){var C;this.setErrorState((C=D.createChannelError)==null?void 0:C.errorMessage);this.handleInput&&this.handleInput.validate()}else{D.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(D.navigationEndpoint);if(D.actions){C=_.U(D.actions);for(var X=C.next();!X.done;X=C.next())if(X=X.value,this.endpointRequiresServiceRequestAction(X)&&this.ytComponentBehavior.resolveCommand(X),this.isNavigateAction(X)){var c=void 0;X=_.r((c=
_.r(X,i6t))==null?void 0:c.command,_.gnp);c=void 0;this.isPlaylistAction((c=X)==null?void 0:c.endpoint)&&(_.DS(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),c=void 0,this.ytComponentBehavior.resolveCommand((c=X)==null?void 0:c.endpoint))}}D.actions&&D.actions.some(function(W){var p;return _.r(W,_.gnp)||_.r((p=_.r(W,i6t))==null?void 0:p.command,_.gnp)})||_.DS(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.S.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.S.onCancelTap=function(){var D,C,X;if(!((D=this.data)==null?0:(C=D.cancelButton)==null?0:(X=C.buttonRenderer)==null?0:X.isDisabled)){var c,W,p;D=(c=this.data)==null?void 0:(W=c.cancelButton)==null?void 0:(p=W.buttonRenderer)==null?void 0:p.command;if(!D||!_.r(D,_.hCt)){var g;this.nameInput&&((g=this.data)==null?0:g.name)&&(this.nameInput.value=this.data.name);var a;this.handleInput&&((a=this.data)==null?0:a.channelHandleInput)&&(this.handleInput.data=_.r(this.data.channelHandleInput,$lU));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.S.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.S.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.S.onClearProfilePhotoTap=function(){var D,C,X;((D=this.data)==null?0:(C=D.clearProfilePhotoButton)==null?0:(X=C.buttonRenderer)==null?0:X.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.S.onEditAvatarTap=function(){var D,C,X;((D=this.data)==null?0:(C=D.editAvatarButton)==null?0:(X=C.buttonRenderer)==null?0:X.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.S.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)};
_.S.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var D;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((D=this.data)==null?0:D.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.S.setErrorState=function(D){this.resetErrorState();if(D)this.set("errorMessage",D);else{var C;if((C=this.zeroStepErrorMessageEntity)==null?0:C.value)this.set("errorMessage",_.jV(this.zeroStepErrorMessageEntity.value));else{var X;((X=this.data)==null?0:X.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.S.fetchImageBlobWithAlr=function(D,C){C=C===void 0?5:C;var X=this,c,W,p,g,a;return _.I(function(O){switch(O.nextAddress){case 1:return O.yield(fetch(D,{method:"GET",mode:"cors"}),2);case 2:c=O.yieldResult;if(c.ok){O.jumpTo(3);break}if(C===0)throw Error();W=X.addJitter(Math.pow(2,5-C));return O.yield(new Promise(function(P){setTimeout(P,W*1E3)}),4);
case 4:return O.return(X.fetchImageBlobWithAlr(D,C-1));case 3:if(!c.headers.get("content-type").split(";").some(function(P){return P.trim()==="text/plain"})){O.jumpTo(5);
break}p=X;g=p.fetchImageBlobWithAlr;return O.yield(c.text(),6);case 6:return O.return(g.call(p,O.yieldResult,C-1));case 5:return O.yield(c.blob(),7);case 7:return a=O.yieldResult,O.return(a)}})};
_.S.addJitter=function(D){var C=D*.3*Math.random();Math.random()>.5&&(C*=-1);return D+C};
_.S.openProfilePicturePicker=function(){var D=this,C,X,c,W,p,g;return _.I(function(a){if(a.nextAddress==1){C=D.data.scottyUploadUrl;if(!C)return a.return();X=document.documentElement.hasAttribute("dark");c=document.body.style.colorScheme;X&&(document.body.style.colorScheme="dark");W=dk1(Rb6(fpP(TR1(X?"dark":"light")),function(O){var P,k,u,Q,B;return _.I(function(K){if(K.nextAddress==1)return P=_.DZ($Lw(new EfX(O.photoUrl,!1)).build(),"alr","yes"),D.obakeImageSource=D.pictureChangeSourceToObakeImageSourceType(O.photoSource),
_.KK(K,2),D.setLoadingState(),K.yield(D.fetchImageBlobWithAlr(P),4);if(K.nextAddress!=2)return k=K.yieldResult,u=new FileReader,u.addEventListener("load",function(){var L,t,Y,y,J,T;return _.I(function(H){if(H.nextAddress==1){if(k.size>15728640)return D.setErrorState((L=D.data)==null?void 0:L.imageSizeErrorMessage),_.fQ(Error("Hl")),H.return();if(!u.result)return D.setErrorState((t=D.data)==null?void 0:t.genericImageLoadErrorMessage),_.fQ(Error("Il")),H.return();Y=u.result;_.KK(H,2);return H.yield(c6p(k,
C),4)}if(H.nextAddress!=2)return y=H.yieldResult,D.handleImageUpdatedAction(Y,y),D.resetErrorState(),_.SR(H,0);J=_.Eu(H);D.setErrorState((T=D.data)==null?void 0:T.uploadErrorMessage);if(J instanceof Error)_.MN(J);else{var q=new _.Zf(JSON.stringify(J));_.MN(q)}_.t_(H)})}),u.readAsDataURL(k),_.SR(K,0);
Q=_.Eu(K);D.setErrorState((B=D.data)==null?void 0:B.genericImageLoadErrorMessage);Q instanceof Error?_.MN(Q):_.qN(new _.Zf(JSON.stringify(Q)));_.t_(K)})}),function(){D.hideContainer=!1;
document.body.style.colorScheme=c});
_.KK(a,2);return((p=D.data)==null?0:p.shouldViewChannelCreationFormForSupex)?a.yield(W.openPicker("profile-picture/art-selection"),5):a.yield(W.openPicker(),5)}if(a.nextAddress!=2)return _.SR(a,0);_.Eu(a);D.setErrorState((g=D.data)==null?void 0:g.selectImageErrorMessage);_.t_(a)})};
_.S.pictureChangeSourceToObakeImageSourceType=function(D){switch(D){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.S.logScreenVe=function(){_.Gm(_.iO(),124448)};
_.S.graftServerVe=function(){var D=_.xr(),C,X,c=(C=this.data)==null?void 0:(X=C.loggingDirectives)==null?void 0:X.trackingParams;c&&D&&(this.channelCreationFormVe=_.iO().graftServerVe(c,D),D={visualElement:this.channelCreationFormVe},_.Pc().reportShown(D))};
_.S.isNameChanged=function(D){var C;return((C=this.data)==null?void 0:C.name)!==D};
_.S.isHandleChanged=function(D){var C,X=_.r((C=this.data)==null?void 0:C.channelHandleInput,$lU);return X&&D?X.handle!==D:!1};
_.S.handleImageUpdatedAction=function(D,C){this.hideContainer=!1;this.previewDataUrl=D;this.encryptedBlobId=C};
_.S.handleImageSelectionErrorAction=function(D){this.hideContainer=!1;this.setErrorState(D)};
_.S.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.S.showContainer=function(){this.hideContainer=!1};
_.S.maybeWipeZeroStepErrorMessage=function(){var D,C=(D=this.data)==null?void 0:D.zeroStepErrorMessageEntityKey,X;C&&((X=this.zeroStepErrorMessageEntity)==null?0:X.value)&&this.ytdReduxBehavior.dispatch(_.bK("stringEntity",C,{key:C,value:""}))};
_.$a.Object.defineProperties(TK.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 D;return((D=this.photoThumbnail)==null?0:D.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 D;return!((D=this.data)==null||!D.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.descriptionInfo}}});
TK.prototype.dataChanged=TK.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],TK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],TK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],TK.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TK.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],TK.prototype,"errorMessage",void 0);
_.V([_.n(),_.z("design:type",Object)],TK.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",String)],TK.prototype,"previewDataUrl",void 0);_.V([_.n(),_.z("design:type",Number)],TK.prototype,"obakeImageSource",void 0);_.V([_.n(),_.z("design:type",Object)],TK.prototype,"hideContainer",void 0);_.V([_.kn("#title-input"),_.z("design:type",Object)],TK.prototype,"nameInput",void 0);_.V([_.kn("#handle-input"),_.z("design:type",Object)],TK.prototype,"handleInput",void 0);
_.V([_.n(),_.z("design:type",Boolean)],TK.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.V([_.n({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.UTm}),_.z("design:type",Object)],TK.prototype,"zeroStepErrorMessageEntity",void 0);_.V([_.e("data","data.isDefaultProfilePhoto","previewDataUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],TK.prototype,"photoThumbnail",null);
_.V([_.e("data","data.isDefaultProfilePhoto","photoThumbnail"),_.z("design:type",Object),_.z("design:paramtypes",[])],TK.prototype,"userSetPhotoThumbnailUrl",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TK.prototype,"hideProfilePhotoButtonLayer",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TK.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.V([_.bH("data","zeroStepErrorMessageEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TK.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.descriptionInfo","zeroStepErrorMessageEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],TK.prototype,"description",null);_.V([_.yj({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],TK);
_.G(TK,"ytd-channel-creation-dialog-renderer",function(){if(z$G!==void 0)return z$G;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return z$G=D},{mode:1});var MQX;var Ha=function(){var D=_.w.apply(this,arguments)||this;D.isLoading=!1;D.isDisabled=!1;return D};
_.h(Ha,_.w);Ha.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Ha.prototype.updateDisabled=function(){var D;this.isDisabled=this.isLoading||((D=this.handleInput)==null?void 0:D.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Ha.prototype.onSaveClick=function(){var D=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var C;((C=this.data)==null?void 0:C.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var X;if((X=D.data)==null?0:X.nextEndpoint){var c;D.ytComponentBehavior.resolveCommand((c=D.data)==null?void 0:c.nextEndpoint)}else D.isLoading=
!1,D.closeDialog()},
onServerError:function(){D.isLoading=!1;D.handleInput.validate();var X;D.errorMessage=(X=D.data)==null?void 0:X.errorMessage}}}))}};
Ha.prototype.closeDialog=function(){_.DS(this.hostElement,"yt-close-popup-action",[this.is])};
Ha.prototype.updateDisabled=Ha.prototype.updateDisabled;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Ha.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Ha.prototype,"data",void 0);_.V([_.kn("#handle-input"),_.z("design:type",Object)],Ha.prototype,"handleInput",void 0);_.V([_.vr("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ha.prototype,"updateDisabled",null);
_.V([_.yj({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Ha);
_.G(Ha,"ytd-channel-handle-edit-dialog-renderer",function(){if(MQX!==void 0)return MQX;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return MQX=D},{mode:1});var qbw;var JL=function(){return _.w.apply(this,arguments)||this};
_.h(JL,_.w);JL.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],JL.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],JL);
_.G(JL,"ytd-channel-switcher-footer-renderer",function(){if(qbw!==void 0)return qbw;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return qbw=D},{mode:1});var f3X;var d76;var zK=function(){return _.w.apply(this,arguments)||this};
_.h(zK,_.w);zK.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
zK.prototype.onIronChange=zK.prototype.onIronChange;_.V([_.n(),_.z("design:type",Object)],zK.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Function)],zK.prototype,"onDontAskAgainChanged",void 0);_.V([_.kn("#checkbox"),_.z("design:type",Object)],zK.prototype,"checkbox",void 0);_.V([_.$n("iron-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zK.prototype,"onIronChange",null);
_.V([_.yj({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],zK);
_.G(zK,"ytd-identity-prompt-footer-renderer",function(){if(d76!==void 0)return d76;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return d76=D},{mode:1});var jt=function(){var D=_.w.apply(this,arguments)||this;D.dontAskAgain=!1;D.showPopup=!1;D.boundDontAskAgainChanged=function(C){D.dontAskAgainChanged(C)};
D.boundOnAccountItemTap=function(C){D.onAccountItemTap(C)};
return D};
_.h(jt,_.w);_.S=jt.prototype;
_.S.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]]"}}}}}};
_.S.ready=function(){var D=this;_.SY(this.hostElement).querySelector("#container").addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.S.dontAskAgainChanged=function(D){this.dontAskAgain=D};
_.S.onAccountItemTap=function(D){if(D){var C={};this.dontAskAgain&&(C={dont_ask_again:this.dontAskAgain});_.nH(D,C)}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.S.redirectOnlyAccount=function(D){D.sections&&D.sections.length>0&&(D=_.r(D.sections[0],_.sNM),(D==null?0:D.contents)&&(D==null?void 0:D.contents.length)<=1?(D=_.UY(window.location.href),(D==null?0:D.next)&&_.fuj(D.next)?_.nH(D.next):_.nH("/")):this.showPopup=!0)};
jt.prototype.dataChanged=jt.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],jt.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Object)],jt.prototype,"dontAskAgain",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],jt.prototype,"showPopup",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Object)],jt.prototype,"boundDontAskAgainChanged",void 0);_.V([_.n({reflectToAttribute:!1}),_.z("design:type",Object)],jt.prototype,"boundOnAccountItemTap",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jt.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],jt);
_.G(jt,"ytd-channel-switcher-renderer",function(){if(f3X!==void 0)return f3X;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return f3X=D},{mode:1});var R$w;var Mu=function(){return _.w.apply(this,arguments)||this};
_.h(Mu,_.w);_.$a.Object.defineProperties(Mu.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.V([_.n(),_.z("design:type",Object)],Mu.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],Mu.prototype,"steps",null);_.V([_.yj({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Mu);
_.G(Mu,"ytd-channel-transfer-stepper-renderer",function(){if(R$w!==void 0)return R$w;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return R$w=D},{mode:1});var l3t;var qu=function(){var D=_.w.apply(this,arguments)||this;D.data=null;D.isError=!1;D.isLoading=!1;return D};
_.h(qu,_.w);_.S=qu.prototype;_.S.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"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.S.computeProfileName=function(D){return D?D.givenNameValue+" "+D.familyNameValue:""};
_.S.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)};
_.S.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)};
qu.prototype.onYtServiceRequestError=qu.prototype.onYtServiceRequestError;qu.prototype.onYtServiceRequestSent=qu.prototype.onYtServiceRequestSent;qu.prototype.dataChanged=qu.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qu.prototype,"data",void 0);
_.V([_.n({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.z("design:type",String)],qu.prototype,"profileName",void 0);_.V([_.n(),_.z("design:type",Object)],qu.prototype,"isError",void 0);_.V([_.n(),_.z("design:type",Object)],qu.prototype,"isLoading",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qu.prototype,"dataChanged",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],qu.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],qu.prototype,"onYtServiceRequestError",null);_.V([_.yj({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],qu);
_.G(qu,"ytd-channel-warm-welcome-cont-renderer",function(){if(l3t!==void 0)return l3t;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return l3t=D},{mode:1});var D9X;var fO=function(){var D=_.w.apply(this,arguments)||this;D.data=null;return D};
_.h(fO,_.w);fO.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],fO.prototype,"data",void 0);_.V([_.yj({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],fO);
_.G(fO,"ytd-channel-warm-welcome-renderer",function(){if(D9X!==void 0)return D9X;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return D9X=D},{mode:1});var Cg1;var d9=function(){return _.w.apply(this,arguments)||this};
_.h(d9,_.w);_.$a.Object.defineProperties(d9.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.authorThumbnail)||{}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],d9.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],d9.prototype,"thumbnailDetails",null);_.V([_.yj({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],d9);
_.G(d9,"ytd-comment-preview-renderer",function(){if(Cg1!==void 0)return Cg1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Cg1=D},{mode:1});var XWU;var Rj=function(){return _.w.apply(this,arguments)||this};
_.h(Rj,_.w);Rj.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$a.Object.defineProperties(Rj.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.submitButton}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Rj.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Rj.prototype,"submitButton",null);_.V([_.yj({is:"ytd-notice-renderer",disableElementRegistration:!0})],Rj);
_.G(Rj,"ytd-notice-renderer",function(){if(XWU!==void 0)return XWU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return XWU=D},{mode:1});var cE3;var l2=function(){return _.w.apply(this,arguments)||this};
_.h(l2,_.w);l2.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],l2.prototype,"data",void 0);_.V([_.yj({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],l2);
_.G(l2,"ytd-preview-comment-dialog-content",function(){if(cE3!==void 0)return cE3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return cE3=D},{mode:1});var o4G;var DB=function(){return _.w.apply(this,arguments)||this};
_.h(DB,_.w);DB.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
DB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],DB.prototype,"data",void 0);_.V([_.yj({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],DB);
_.G(DB,"ytd-preview-comment-dialog-renderer",function(){if(o4G!==void 0)return o4G;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return o4G=D},{mode:1});var Wup;var pWo=_.b("web_button_rework")&&_.dq("BUTTON_REWORK")||_.b("web_button_rework_with_live"),Cg=function(){var D=_.w.apply(this,arguments)||this;D.closeLabel=_.I7("CLOSE");D.selectedAmountIndex=1;D.privacyCheckboxValue=!1;D.useAmsterdamStyle=pWo;D.amountPlaceholderIndex=-1;return D};
_.h(Cg,_.w);_.S=Cg.prototype;_.S.onAmountClick=function(D){this.selectedAmountIndex=_.SY(this.hostElement).querySelector("#amounts").indexForElement(D.currentTarget)};
_.S.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.DS(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.S.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.DS(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.DS(this.hostElement,"yt-close-popup-action",[this.is]);var D;(D=_.CT())==null||D.getPlayerPromise().then(function(C){C.pauseVideo()})}};
_.S.donationCallback=function(D){D.success?(this.hostElement.hasAttribute("live-chat")&&D.response&&D.response.data&&D.response.data.actions&&_.DS(this.hostElement,"yt-live-chat-open-popup",[D.response.data.actions[0]]),_.DS(this.hostElement,"yt-close-popup-action",[this.is]),_.DS(this.hostElement,"yt-live-chat-close-buy-flow")):D.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(D.errorMessageRenderer)};
_.S.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.SY(this.hostElement).querySelector("#custom-amount-input").focus()};
_.S.updateConfirmationDialogTextWithAmount=function(D){var C=this.getConfirmDialogRuns();C&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(C),"text"],this.getFormattedAmount(D))};
_.S.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.S.getAmountPlaceholderIndex=function(D){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=D.findIndex(function(C){return C.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.S.getFormattedAmount=function(D){var C;return(new _.VZ(4,((C=this.data)==null?void 0:C.currencyCode)||"")).format(D)};
_.S.isAmountValid=function(D){if(D==="")return!1;D=Number(D)*1E6;var C=this.get("minAmountMicros",this.data),X=this.get("maxAmountMicros",this.data);return C&&D<C||X&&D>X?!1:!0};
_.S.setInputError=function(){this.shouldShowValidationError?_.SY(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.SY(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.S.setInitialCheckboxValue=function(){var D;this.privacyCheckboxValue=!((D=this.data)==null||!D.privacyCheckboxInitialState)};
_.S.updateCustomAmountInputFromBinding=function(D){this.customAmountInput=D.detail.value};
_.S.updatePrivacyCheckboxValueFromBinding=function(D){this.privacyCheckboxValue=D.detail.value};
_.$a.Object.defineProperties(Cg.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var D=this,C,X;return((C=this.data)==null?void 0:(X=C.suggestedAmounts)==null?void 0:X.map(function(c,W){return{buttonRenderer:{style:D.selectedAmountIndex===W?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:c.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 D;return!((D=this.data)==null||!D.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 D=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(D&&this.amountMicros!==null)return Object.assign({},D,{ypcGetCartEndpoint:Object.assign({},D.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 D=this.get("confirmLargeAmount",this.data);if(D&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),D}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.get("donateButton.buttonRenderer",this.data);if(D)return Object.assign({},D,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Cg.prototype.setInitialCheckboxValue=Cg.prototype.setInitialCheckboxValue;Cg.prototype.setInputError=Cg.prototype.setInputError;Cg.prototype.setFocusOnCustomAmountInput=Cg.prototype.setFocusOnCustomAmountInput;_.V([_.m(aqt),_.z("design:type",Object)],Cg.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Cg.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Cg.prototype,"closeLabel",void 0);_.V([_.n(),_.z("design:type",Object)],Cg.prototype,"selectedAmountIndex",void 0);_.V([_.n(),_.z("design:type",String)],Cg.prototype,"customAmountInput",void 0);_.V([_.n(),_.z("design:type",Object)],Cg.prototype,"privacyCheckboxValue",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Cg.prototype,"useAmsterdamStyle",void 0);_.V([_.vr("customAmount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cg.prototype,"setFocusOnCustomAmountInput",null);_.V([_.e("data","selectedAmountIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],Cg.prototype,"suggestedAmountButtons",null);
_.V([_.e("data","selectedAmountIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cg.prototype,"isCustomAmountSelected",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cg.prototype,"showPrivacyCheckbox",null);_.V([_.e("data","selectedAmountIndex","customAmount"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"amountMicros",null);
_.V([_.e("isCustomAmountSelected","customAmountInput"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"customAmount",null);_.V([_.e("customAmount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cg.prototype,"shouldShowValidationError",null);_.V([_.e("customAmount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cg.prototype,"isDonateButtonEnabled",null);
_.V([_.e("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"donateCommand",null);_.V([_.e("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"donateCommandWithConfirmation",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"largeDonationThreshold",null);
_.V([_.e("customAmount","donateCommand","amountMicros"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"confirmLargeAmountCommand",null);_.V([_.e("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cg.prototype,"donateButtonRenderer",null);_.V([_.vr("shouldShowValidationError"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cg.prototype,"setInputError",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cg.prototype,"setInitialCheckboxValue",null);_.V([_.yj({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Cg);
_.G(Cg,"ytd-donation-amount-picker-renderer",function(){if(Wup!==void 0)return Wup;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Wup=D},{mode:1});var S5t;var U9G=function(){return _.w.apply(this,arguments)||this};
_.h(U9G,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],U9G.prototype,"ytComponentBehavior",void 0);_.V([_.n({}),_.z("design:type",Object)],U9G.prototype,"data",void 0);_.V([_.yj({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],U9G);
_.G(U9G,"ytd-donation-post-transaction-content",function(){if(S5t!==void 0)return S5t;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return S5t=D},{mode:1});var g4U;var XT=function(){return _.w.apply(this,arguments)||this};
_.h(XT,_.w);XT.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.V([_.n({}),_.z("design:type",Object)],XT.prototype,"data",void 0);_.V([_.yj({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],XT);
_.G(XT,"ytd-donation-post-transaction-renderer",function(){if(g4U!==void 0)return g4U;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return g4U=D},{mode:1});var a2t;var I2p;var c1=function(){return _.w.apply(this,arguments)||this};
_.h(c1,_.w);c1.prototype.computeIsStreamingProvider=function(D){return!!D.isStreamingShelf};
c1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],c1.prototype,"data",void 0);_.V([_.n({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],c1.prototype,"isStreamingProvider",void 0);
_.V([_.yj({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],c1);
_.G(c1,"ytd-media-provider-renderer",function(){if(I2p!==void 0)return I2p;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return I2p=D},{mode:1});var OYU;var o8=function(){return _.w.apply(this,arguments)||this};
_.h(o8,_.w);o8.prototype.observeLightsourcePalette=function(){var D,C=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;C&&_.x_(this.hostElement,C)};
o8.prototype.observeLightsourcePalette=o8.prototype.observeLightsourcePalette;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],o8.prototype,"data",void 0);
_.V([_.vr("data.vibrantsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o8.prototype,"observeLightsourcePalette",null);_.V([_.yj({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],o8);
_.G(o8,"ytd-streaming-pop-up-dialog",function(){if(OYU!==void 0)return OYU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return OYU=D},{mode:1});var W1=function(){return _.w.apply(this,arguments)||this};
_.h(W1,_.w);W1.prototype.onPopupOpened_=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.iX().resolve(_.uX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
W1.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
W1.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"}}}}};
W1.prototype.onPopupOpened_=W1.prototype.onPopupOpened_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.xA),_.z("design:type",Object)],W1.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],W1.prototype,"data",void 0);
_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W1.prototype,"onPopupOpened_",null);_.V([_.yj({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],W1);
_.G(W1,"ytd-brandconnect-popup-renderer",function(){if(a2t!==void 0)return a2t;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return a2t=D},{mode:1});var AEY;var pg=function(){return _.w.apply(this,arguments)||this};
_.h(pg,_.w);_.S=pg.prototype;_.S.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){for(var D=0;D<this.getOptionRenderers().length;D++)this.notifyPath("data.options."+D+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+D+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.S.updateSubmitButton=function(D){this.set("data.submitButton.buttonRenderer.isDisabled",!D)};
_.S.computeAlt=function(D){return _.Mh(D)};
_.S.onDismissTap=function(){_.DS(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.S.getOptionRenderers=function(D){return(D=D||this.data)&&D.options?D.options.reduce(function(C,X){X.checkboxSurveyOptionRenderer&&C.push(X.checkboxSurveyOptionRenderer);return C},[]):[]};
_.S.onOptionChange=function(D){var C=this,X=!1;if(D.detail.checked)for(var c=this.getOptionRenderers().find(function(a){return a.value===D.detail.value}),W=this.getOptionRenderers(),p=0;p<W.length;p++){var g=W[p];
this.notifyPath("data.options."+p+".checkboxSurveyOptionRenderer.checked");g.checked&&((c==null?0:c.isExclusiveOption)?!g.isExclusiveOption:g.isExclusiveOption)?this.set("data.options."+p+".checkboxSurveyOptionRenderer.checked",!1):g.checked&&(X=!0)}else X=this.getOptionRenderers().some(function(a,O){C.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked");return a.checked});
this.updateSubmitButton(X)};
_.S.onSubmitTap=function(){var D=this.getOptionRenderers().filter(function(p){return p.checked});
if(D.length!==0){var C=D.map(function(p){return p.responseEndpoint});
D=[];for(var X=1;X<C.length;X++){var c=void 0,W=(c=_.r(C[X],_.tT))==null?void 0:c.feedbackToken;W&&D.push(W)}C=[C[0]];D.length&&C.push({extra_feedback_tokens:D});_.cE(this.hostElement,C);_.DS(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);D=this.data&&this.data.submitActions||[];if(_.b("kevlar_command_handler_migration_killswitch"))_.o7(this.hostElement,D,this.hostElement);else for(D=_.U(D),C=D.next();!C.done;C=D.next())this.ytComponentBehavior.resolveCommand(C.value)}};
pg.prototype.onOptionChange=pg.prototype.onOptionChange;pg.prototype.dataChanged=pg.prototype.dataChanged;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],pg.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],pg.prototype,"ytComponentBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.V([_.m(szG),_.z("design:type",Object)],pg.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pg.prototype,"data",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pg.prototype,"dataChanged",null);
_.V([_.$n("ytd-checkbox-survey-option-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pg.prototype,"onOptionChange",null);_.V([_.yj({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],pg);
_.G(pg,"ytd-checkbox-survey-renderer",function(){if(AEY!==void 0)return AEY;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return AEY=D},{mode:1});var Pg6;var $9U;var S8=function(){return _.w.apply(this,arguments)||this};
_.h(S8,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.V([_.m(LtX),_.z("design:type",Object)],S8.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],S8.prototype,"data",void 0);_.V([_.yj({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],S8);
_.G(S8,"ytd-dismissal-reason-text-renderer",function(){if($9U!==void 0)return $9U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return $9U=D},{mode:1});var v46;var UZ=function(){return _.w.apply(this,arguments)||this};
_.h(UZ,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(LtX),_.z("design:type",Object)],UZ.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UZ.prototype,"data",void 0);_.V([_.yj({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],UZ);
_.G(UZ,"ytd-dismissal-reason-video-renderer",function(){if(v46!==void 0)return v46;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return v46=D},{mode:1});var gA=function(){return _.w.apply(this,arguments)||this};
_.h(gA,_.w);_.S=gA.prototype;_.S.created=function(){this.selectedFeedbackTokens=new $q};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.S.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.S.onDismissalReasonSelected=function(D,C){_.lE(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(C);this.hasReasonsSelected=!0};
_.S.onDismissalReasonDeselected=function(D,C){_.lE(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(C);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.S.onCancelTap=function(){_.DS(this.hostElement,"yt-close-popup-action")};
_.S.onSubmitTap=function(){var D=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(D={feedback_tokens:D},_.iX().resolve(_.uX).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}));_.DS(this.hostElement,"yt-close-popup-action")};
gA.prototype.onDismissalReasonDeselected=gA.prototype.onDismissalReasonDeselected;gA.prototype.onDismissalReasonSelected=gA.prototype.onDismissalReasonSelected;gA.prototype.dataChanged=gA.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gA.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Boolean)],gA.prototype,"hasReasonsSelected",void 0);_.V([_.n(),_.z("design:type",$q)],gA.prototype,"selectedFeedbackTokens",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gA.prototype,"dataChanged",null);_.V([_.$n("yt-dismissal-reason-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],gA.prototype,"onDismissalReasonSelected",null);
_.V([_.$n("yt-dismissal-reason-deselected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],gA.prototype,"onDismissalReasonDeselected",null);_.V([_.yj({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],gA);
_.G(gA,"ytd-dismissal-follow-up-renderer",function(){if(Pg6!==void 0)return Pg6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Pg6=D},{mode:1});var iYp;var a8=function(){return _.w.apply(this,arguments)||this};
_.h(a8,_.w);_.S=a8.prototype;_.S.onCheckedChange=function(){this.multiselect||_.lE(this.hostElement,"yt-feedback-single-select-changed");_.SY(this.hostElement).querySelector("#freeform").focus();_.lE(this.hostElement,"yt-refit")};
_.S.showTextBox=function(D,C){return D&&C};
_.S.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))};
_.S.updateDataCheckedFromBinding=function(D){this.set("data.checked",D.detail.value)};
_.S.updateDataResultTextFromBinding=function(D){this.set("data.resultText",D.detail.value)};
a8.prototype.dataChanged=a8.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],a8.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],a8.prototype,"multiselect",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a8.prototype,"dataChanged",null);
_.V([_.yj({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],a8);
_.G(a8,"ytd-feedback-option-renderer",function(){if(iYp!==void 0)return iYp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return iYp=D},{mode:1});var kMo;var I8=function(){return _.w.apply(this,arguments)||this};
_.h(I8,_.w);I8.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
I8.prototype.onSingleSelectCheckedChanged=function(D){D=_.qz(D);for(var C=0;C<this.data.options.length;C++)if(D.data!==_.r(this.data.options[C],GG6)){var X="data.options."+C+".feedbackOptionRenderer.checked";this.notifyPath(X);this.set(X,!1)}};
I8.prototype.onSingleSelectCheckedChanged=I8.prototype.onSingleSelectCheckedChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],I8.prototype,"data",void 0);
_.V([_.$n("yt-feedback-single-select-changed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],I8.prototype,"onSingleSelectCheckedChanged",null);_.V([_.yj({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],I8);
_.G(I8,"ytd-feedback-question-renderer",function(){if(kMo!==void 0)return kMo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return kMo=D},{mode:1});var uS1;var OZ=function(){return _.w.apply(this,arguments)||this};
_.h(OZ,_.w);OZ.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
OZ.prototype.getSelectedFeedbackResults=function(){for(var D={},C=0;C<this.data.questions.length;C++)for(var X=_.r(this.data.questions[C],Zjt),c=0;c<X.options.length;c++){var W=_.r(X.options[c],GG6);W&&W.checked&&(D[W.optionKey]=W.resultText)}return D};
OZ.prototype.onKeyUp=function(){var D=this;_.pI(_.qX,function(){_.lE(D.hostElement,"yt-refit")});
_.qX.start()};
OZ.prototype.submitSurvey=function(){var D=this.getSelectedFeedbackResults();Object.keys(D).length>0&&this.data.submitFeedbackEndpoint&&(D={survey_results:D,is_feedback_token_unencrypted:!0},_.iX().resolve(_.uX).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],OZ.prototype,"data",void 0);_.V([_.yj({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],OZ);
_.G(OZ,"ytd-feedback-survey-renderer",function(){if(uS1!==void 0)return uS1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return uS1=D},{mode:1});var QMN;var B_w;var Aq=function(){return _.w.apply(this,arguments)||this};
_.h(Aq,_.w);Aq.prototype.computeAlt=function(D){return _.Mh(D)};
Aq.prototype.submitResponse=function(){var D,C;(D=this.data)!=null&&D.feedbackToken&&((C=this.data)==null?void 0:C.nextStageIndex)!==void 0&&(_.Ct(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Ct(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Aq.prototype.onClick=function(){this.submitResponse()};
Aq.prototype.onClick=Aq.prototype.onClick;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Aq.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Aq.prototype,"vertical",void 0);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Aq.prototype,"onClick",null);
_.V([_.yj({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Aq);
_.G(Aq,"ytd-single-select-answer-option-renderer",function(){if(B_w!==void 0)return B_w;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return B_w=D},{mode:1});var bY3;var P1=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return D};
_.h(P1,_.w);P1.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
P1.prototype.dataChanged=function(){var D,C;this.vertical=((C=(D=this.data)==null?void 0:D.answerOrientation)!=null?C:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
P1.prototype.submitFeedback=function(D){var C;((C=this.data)==null?0:C.responseEndpoint)&&D&&_.cE(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[D]}])};
P1.prototype.dataChanged=P1.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],P1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],P1.prototype,"eventForwardingBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],P1.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],P1.prototype,"vertical",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],P1.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],P1);
_.G(P1,"ytd-single-select-question-renderer",function(){if(bY3!==void 0)return bY3;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return bY3=D},{mode:1});var $G=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return D};
_.h($G,_.w);_.S=$G.prototype;_.S.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"}}}};
_.S.dataChanged=function(){this.jumpToStage(0)};
_.S.jumpToStage=function(D){var C,X;if((C=this.data)==null?0:(X=C.stages)==null?0:X[D])this.currentStage=this.data.stages[D],this.refitAfterRender()};
_.S.computeAlt=function(D){return _.Mh(D)};
_.S.computeSimpleMessage=function(D){var C;return(C=_.r(D,HjP))==null?void 0:C.messageText};
_.S.computeHideDismiss=function(D){var C;return(C=_.r(D,emG))==null?void 0:C.hideParentDismissButton};
_.S.onDismissTap=function(){_.DS(this.hostElement,"yt-close-popup-action");_.r(this.currentStage,HjP)||this.data.dismissalEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.S.refitAfterRender=function(){var D=this;_.A0(this,function(){_.lE(D.hostElement,"yt-refit")})};
$G.prototype.dataChanged=$G.prototype.dataChanged;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],$G.prototype,"eventForwardingBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m(szG),_.z("design:type",Object)],$G.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$G.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],$G.prototype,"currentStage",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$G.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],$G);
_.G($G,"ytd-multi-stage-survey-renderer",function(){if(QMN!==void 0)return QMN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return QMN=D},{mode:1});var rEG;var v1=function(){return _.w.apply(this,arguments)||this};
_.h(v1,_.w);v1.prototype.computeAlt=function(D){return _.Mh(D)};
v1.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.iX().resolve(_.uX).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.DS(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.hO1(!1)))};
v1.prototype.onTap=function(){this.vertical&&this.submitResponse()};
v1.prototype.onTap=v1.prototype.onTap;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],v1.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],v1.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],v1.prototype,"vertical",void 0);
_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],v1.prototype,"onTap",null);_.V([_.yj({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],v1);
_.G(v1,"ytd-single-option-survey-option-renderer",function(){if(rEG!==void 0)return rEG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rEG=D},{mode:1});var KuU;var kG=function(){return _.w.apply(this,arguments)||this};
_.h(kG,_.w);_.S=kG.prototype;_.S.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(){var D,C;this.vertical=(((D=this.data)==null?void 0:(C=D.surveyOrientation)==null?void 0:C.type)||"HORIZONTAL")==="VERTICAL"};
_.S.computeAlt=function(D){return _.Mh(D)};
_.S.onDismissTap=function(){_.DS(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.iX().resolve(_.uX).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.hO1(!1))};
kG.prototype.dataChanged=kG.prototype.dataChanged;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],kG.prototype,"eventForwardingBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(szG),_.z("design:type",Object)],kG.prototype,"ytdHatsSurveyBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],kG.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kG.prototype,"vertical",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kG.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],kG);
_.G(kG,"ytd-single-option-survey-renderer",function(){if(KuU!==void 0)return KuU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return KuU=D},{mode:1});var hyP;var uf=function(){return _.w.apply(this,arguments)||this};
_.h(uf,_.w);uf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uf.prototype.onDismissTap=function(){_.DS(this.hostElement,"yt-close-popup-action")};
uf.prototype.onNavigate=function(){_.DS(this.hostElement,"yt-close-popup-action")};
uf.prototype.onNavigate=uf.prototype.onNavigate;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],uf.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],uf.prototype,"data",void 0);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uf.prototype,"onNavigate",null);
_.V([_.yj({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],uf);
_.G(uf,"ytd-survey-follow-up-renderer",function(){if(hyP!==void 0)return hyP;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hyP=D},{mode:1});var x9U;var LuG;var sMt;var Qr=function(){var D=_.w.apply(this,arguments)||this;D.polymer2="Element"in Polymer;return D};
_.h(Qr,_.w);_.S=Qr.prototype;_.S.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.S.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.S.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.S.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("minutes-changed",this.minutes))};
_.S.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("seconds-changed",this.seconds))};
_.S.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.S.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
Qr.prototype.secondsChangedForBinding=Qr.prototype.secondsChangedForBinding;Qr.prototype.minutesChangedForBinding=Qr.prototype.minutesChangedForBinding;Qr.prototype.secondsChanged=Qr.prototype.secondsChanged;_.V([_.n(),_.z("design:type",String)],Qr.prototype,"minutes",void 0);_.V([_.n(),_.z("design:type",String)],Qr.prototype,"seconds",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Qr.prototype,"polymer2",void 0);
_.V([_.kn("#seconds"),_.z("design:type",Object)],Qr.prototype,"secondsEl",void 0);_.V([_.vr("seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qr.prototype,"secondsChanged",null);_.V([_.vr("minutes"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qr.prototype,"minutesChangedForBinding",null);
_.V([_.vr("seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qr.prototype,"secondsChangedForBinding",null);_.V([_.Yn({is:"yt-timestamp-input",disableElementRegistration:!0})],Qr);
_.G(Qr,"yt-timestamp-input",function(){if(sMt===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;LuG===void 0&&(LuG=document.createElement("template"));var c=LuG;X.call(C,c.content.cloneNode(!0),D.content.firstChild);sMt=D}D=sMt;return D},{mode:2});var B1=function(){return _.w.apply(this,arguments)||this};
_.h(B1,_.w);_.S=B1.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20876_scroller.dialogElement=this.hostElement.parentNode};
_.S.dataChanged=function(){var D=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Xv().getPlayerPromise().then(function(C){C=C.getCurrentTime();D.minutes=Math.floor(C/60).toString();D.seconds=(Math.floor(C)%60).toString()})};
_.S.onTapSubmit=function(D){D.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(D={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(D.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(D.minutes=this.minutes,D.seconds=this.seconds),_.iX().resolve(_.uX).resolveCommand(this.serviceEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.S.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.S.onYtServiceRequestCompleted=function(D,C){C=C.actions;if(Array.isArray(C))for(var X=0,c=C.length;X<c;X++)_.r(C[X],_.fo)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(C[X]))};
_.S.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.S.toggleSubmitButton=function(D){this.set("submitButton.isDisabled",!D)};
_.S.handleInput=function(){var D=this.issueType,C=this.affiliation,X=this.minutes,c=this.seconds;X=!this.showTimestamp||!!X&&!!c;this.toggleSubmitButton(!!this.descriptionText&&!!D&&!!C&&X)};
_.S.computeServiceEndpoint=function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)};
_.S.computeSubmitButton=function(D){(D=this.get("submitButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.S.computeShowTimestamp=function(D){return!!D};
_.S.onValueChangedForIssueType=function(D){this.issueType=D.detail.value};
_.S.onValueChangedForAffiliation=function(D){this.affiliation=D.detail.value};
_.S.updateDescriptionTextFromBinding=function(D){this.descriptionText=D.detail.value};
_.S.updateFullNameTextFromBinding=function(D){this.fullNameText=D.detail.value};
_.S.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.S.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
B1.prototype.handleInput=B1.prototype.handleInput;B1.prototype.onYtServiceRequestError=B1.prototype.onYtServiceRequestError;B1.prototype.onYtServiceRequestCompleted=B1.prototype.onYtServiceRequestCompleted;B1.prototype.onYtServiceRequestSent=B1.prototype.onYtServiceRequestSent;B1.prototype.dataChanged=B1.prototype.dataChanged;_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],B1.prototype,"ytOpenPopupBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.V([_.kn("#scroller"),_.z("design:type",Object)],B1.prototype,"JSC$20876_scroller",void 0);_.V([_.kn("#description"),_.z("design:type",HTMLInputElement)],B1.prototype,"description",void 0);_.V([_.kn("#full-name"),_.z("design:type",Object)],B1.prototype,"fullName",void 0);_.V([_.n(),_.z("design:type",Object)],B1.prototype,"data",void 0);
_.V([_.n({computed:"computeShowTimestamp(data.timestampLabel)"}),_.z("design:type",Boolean)],B1.prototype,"showTimestamp",void 0);_.V([_.n({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.z("design:type",Object)],B1.prototype,"serviceEndpoint",void 0);_.V([_.n({computed:"computeSubmitButton(data)"}),_.z("design:type",Object)],B1.prototype,"submitButton",void 0);_.V([_.n(),_.z("design:type",String)],B1.prototype,"descriptionText",void 0);
_.V([_.n(),_.z("design:type",Number)],B1.prototype,"issueType",void 0);_.V([_.n(),_.z("design:type",Number)],B1.prototype,"affiliation",void 0);_.V([_.n(),_.z("design:type",String)],B1.prototype,"fullNameText",void 0);_.V([_.n(),_.z("design:type",String)],B1.prototype,"minutes",void 0);_.V([_.n(),_.z("design:type",String)],B1.prototype,"seconds",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B1.prototype,"dataChanged",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],B1.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],B1.prototype,"onYtServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],B1.prototype,"onYtServiceRequestError",null);_.V([_.vr("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B1.prototype,"handleInput",null);_.V([_.yj({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],B1);
_.G(B1,"ytd-legal-report-details-form-renderer",function(){if(x9U!==void 0)return x9U;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return x9U=D},{mode:1});var m96;var bf=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return D};
_.h(bf,_.w);bf.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
bf.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var D=this.formRenderer.getForm();D&&this.data.submitEndpoint&&(_.iX().resolve(_.uX).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},D,{element:this.hostElement})}),_.DS(this.hostElement,"yt-close-popup-action"))}};
bf.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.DS(this.hostElement,"yt-close-popup-action"))};
bf.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
bf.prototype.onPopupClosed=bf.prototype.onPopupClosed;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],bf.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],bf.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);
_.V([_.kn("yt-form-renderer"),_.z("design:type",Object)],bf.prototype,"formRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],bf.prototype,"data",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bf.prototype,"onPopupClosed",null);_.V([_.yj({is:"ytd-form-popup-content",disableElementRegistration:!0})],bf);
_.G(bf,"ytd-form-popup-content",function(){if(m96!==void 0)return m96;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return m96=D},{mode:1});var eyU;var rA=function(){return _.w.apply(this,arguments)||this};
_.h(rA,_.w);rA.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rA.prototype.onPopupOpened=function(){_.lE(this.hostElement,"yt-invalidate-popup-tabbables")};
rA.prototype.onYtServiceRequestCompleted=function(D,C){C.data&&C.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.lE(this.hostElement,"yt-invalidate-popup-tabbables"))};
rA.prototype.onYtServiceRequestCompleted=rA.prototype.onYtServiceRequestCompleted;rA.prototype.onPopupOpened=rA.prototype.onPopupOpened;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],rA.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],rA.prototype,"data",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rA.prototype,"onPopupOpened",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],rA.prototype,"onYtServiceRequestCompleted",null);_.V([_.yj({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],rA);
_.G(rA,"ytd-form-popup-renderer",function(){if(eyU!==void 0)return eyU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return eyU=D},{mode:1});var E4k;var Kg=function(){var D=_.w.apply(this,arguments)||this;D.isLoading=!1;return D};
_.h(Kg,_.w);_.S=Kg.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");X01(this.hostElement)};
_.S.onYtServiceRequestSent=function(){this.isLoading=!0};
_.S.onYtServiceRequestCompleted=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.S.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.o7(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.S.closePopupHandler=function(){this.fireOnCloseActions()};
_.S.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var D=this.get("data.headerImage.thumbnails");D&&(D=_.XA(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")")}};
_.S.onYtNavigate=function(D){(D=_.qz(D))&&D.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Kg.prototype.onYtNavigate=Kg.prototype.onYtNavigate;Kg.prototype.onHeaderImageChanged=Kg.prototype.onHeaderImageChanged;Kg.prototype.closePopupHandler=Kg.prototype.closePopupHandler;Kg.prototype.onYtServiceRequestCompleted=Kg.prototype.onYtServiceRequestCompleted;Kg.prototype.onYtServiceRequestSent=Kg.prototype.onYtServiceRequestSent;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],Kg.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Kg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Kg.prototype,"isLoading",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLDivElement)],Kg.prototype,"header",void 0);_.V([_.kn("#confirm-button"),_.z("design:type",_.lY)],Kg.prototype,"confirmButton",void 0);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Kg.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Kg.prototype,"onYtServiceRequestCompleted",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Kg.prototype,"closePopupHandler",null);_.V([_.vr("data.headerImage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Kg.prototype,"onHeaderImageChanged",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Kg.prototype,"onYtNavigate",null);
_.V([_.yj({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Kg);
_.G(Kg,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(E4k!==void 0)return E4k;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return E4k=D},{mode:1});var tSt;var hq=function(){var D=_.w.apply(this,arguments)||this;D.isLoading=!1;return D};
_.h(hq,_.w);_.S=hq.prototype;_.S.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"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);X01(this.hostElement)};
_.S.onYtServiceRequestCompleted=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.S.onYtServiceRequestError=function(D){_.JG(this.hostElement,D.detail.error.message)};
_.S.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.S.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.DS(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.S.onDataChanged=function(){this.isLoading=!1;var D=this.get("data.headerImage.thumbnails");D&&(D=_.XA(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")");D=_.LN();var C=_.xr(),X=this.get("data.trackingParams");X&&C&&D&&_.F_(D,C,_.bO(X))};
_.$a.Object.defineProperties(hq.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
hq.prototype.onDataChanged=hq.prototype.onDataChanged;hq.prototype.onDomChange=hq.prototype.onDomChange;hq.prototype.onYtServiceRequestError=hq.prototype.onYtServiceRequestError;hq.prototype.onYtServiceRequestCompleted=hq.prototype.onYtServiceRequestCompleted;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],hq.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],hq.prototype,"isLoading",void 0);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hq.prototype,"hasDescription",null);_.V([_.kn("tp-yt-paper-dialog-scrollable"),_.z("design:type",Object)],hq.prototype,"scrollable",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLElement)],hq.prototype,"header",void 0);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hq.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hq.prototype,"onYtServiceRequestError",null);
_.V([_.$n("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hq.prototype,"onDomChange",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hq.prototype,"onDataChanged",null);_.V([_.yj({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],hq);
_.G(hq,"ytd-gaming-account-link-setting-renderer",function(){if(tSt!==void 0)return tSt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return tSt=D},{mode:1});var N_t;var Y5p;var xG=function(){var D=_.w.apply(this,arguments)||this;D.isHeader=!1;D.getEndpointForm=function(){return gJG(D.data)};
return D};
_.h(xG,_.w);_.S=xG.prototype;_.S.triggerHintActions=function(){var D=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var C=_.Ct(D.hostElement,"yt-get-opened-popups-action");!(C&&C.length===1?C[0]:[]).some(function(X){X=X.openPopupAction.popupType;return X==="SURVEY"||X==="MEALBAR"||X==="HINT"})&&D.data.hintActions&&D.guideOpened&&(_.o7(D.hostElement,D.data.hintActions,D.hostElement),D.data.hintActions=void 0)})};
_.S.getBadgeIconType=function(D){return D&&D.liveBroadcasting?"live":null};
_.S.onDown=function(){this.interaction.triggerDown()};
_.S.onUp=function(){this.interaction.triggerUp()};
_.S.onTap=function(D){if(this.data.serviceEndpoint){var C;_.b("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.r(this.data.serviceEndpoint,_.ko))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):UsG(this.data.serviceEndpoint,this);D.preventDefault()}else this.data.navigationEndpoint&&!_.d$(_.Mz(D),this.hostElement,["A".toString()])&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.S.computeActive=function(D,C){if(!D)return!1;var X=D.navigationEndpoint;D=D.serviceEndpoint;if(!X&&!D||!C)return!1;if(X){D=(D=_.A9(C))&&["subscriptions","filteredsubscriptions"].includes(D);if(_.r(X,_.Pl)&&_.r(C,_.Pl)&&!D){var c=_.r(X,_.Pl).browseId;C=_.r(C,_.Pl).browseId;return c!==void 0&&C!==void 0&&(c===C||c==="VLWL"&&C==="FEwatch_later"||c==="FEwatch_later"&&C==="VLWL")}var W;X=(W=_.r(X.commandMetadata,_.ge))==null?void 0:W.url;C=(c=_.r(C.commandMetadata,_.ge))==null?void 0:c.url;return!(!X||
!C||X!==C&&X!==_.mC(C))}return this.isActiveShortsTab(D,C)};
_.S.isActiveShortsTab=function(D,C){C=!!_.r(C,_.ko)||!!_.r(C,_.ad);return(!!_.r(D,_.ko)||!!_.r(D,_.ad))&&C};
_.S.computeIsPrimary=function(D){return!!D};
_.$a.Object.defineProperties(xG.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 D=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&D)return D}}});
xG.prototype.onTap=xG.prototype.onTap;xG.prototype.onUp=xG.prototype.onUp;xG.prototype.onDown=xG.prototype.onDown;xG.prototype.triggerHintActions=xG.prototype.triggerHintActions;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],xG.prototype,"componentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],xG.prototype,"rendererBehavior",void 0);_.V([_.m(_.xZ.YtTaskEmitterBehavior),_.z("design:type",Object)],xG.prototype,"taskEmitterBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],xG.prototype,"activeEndpoint",void 0);_.V([_.n(),_.z("design:type",Object)],xG.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],xG.prototype,"guideOpened",void 0);_.V([_.n(),_.z("design:type",String)],xG.prototype,"type",void 0);_.V([_.kn("yt-interaction"),_.z("design:type",Object)],xG.prototype,"interaction",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],xG.prototype,"isHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data","activeEndpoint"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xG.prototype,"active",null);_.V([_.n({reflectToAttribute:!0}),_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xG.prototype,"isPrimary",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.count","data.presentationStyle","data.badges.*"),_.z("design:type",String),_.z("design:paramtypes",[])],xG.prototype,"lineEndStyle",null);
_.V([_.e("lineEndStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],xG.prototype,"ariaLabel",null);_.V([_.vr("data.hintActions","guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xG.prototype,"triggerHintActions",null);_.V([_.$n("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xG.prototype,"onDown",null);
_.V([_.$n("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xG.prototype,"onUp",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],xG.prototype,"onTap",null);_.V([_.yj({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],xG);
_.G(xG,"ytd-guide-entry-renderer",function(){if(Y5p!==void 0)return Y5p;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Y5p=D},{mode:1});var Lg=function(){var D=_.w.apply(this,arguments)||this;D.userToggled=!1;return D};
_.h(Lg,_.w);_.S=Lg.prototype;_.S.getItemsPath=function(){return"data.expandableItems"};
_.S.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.S.onExpanderItemTapped=function(D){var C=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.b("kevlar_guide_expandable_items_killswitch")&&_.A0(this,function(){_.Ii(C.expandableItems)});
D.preventDefault()};
_.S.onCollapserItemTapped=function(D){var C=this;this._setExpanded(!1);this.userToggled=!0;D.preventDefault();this.expandableItems&&!_.b("kevlar_guide_collapsible_items_killswitch")&&_.A0(this,function(){_.ai(C.hostElement)})};
_.S.observeActiveEndpoint=function(){for(var D=this.activeEndpoint,C=this.data,X=this.expandableItems.children,c=0,W=X.length;c<W;c++)X[c].activeEndpoint=D;C&&C.autoExpandCommand&&D&&!this.userToggled&&(X=this.data.autoExpandCommand,C=!(!_.r(X,_.Pl)||!_.r(D,_.Pl)||_.r(X,_.Pl).browseId!==_.r(D,_.Pl).browseId),D=this.get("commandMetadata.webCommandMetadata.url",D),X=this.get("commandMetadata.webCommandMetadata.url",X),C=C||!!(D&&X&&D.includes(X)),this._setExpanded(C),C&&this.ytLazyListBehavior.fillRemainingListItems())};
Lg.prototype.observeActiveEndpoint=Lg.prototype.observeActiveEndpoint;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],Lg.prototype,"ytLazyListBehavior",void 0);_.V([_.kn("#expandable-items"),_.z("design:type",HTMLElement)],Lg.prototype,"expandableItems",void 0);
_.V([_.n(),_.z("design:type",Object)],Lg.prototype,"data",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Lg.prototype,"expanded",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],Lg.prototype,"initialCount",void 0);_.V([_.n(),_.z("design:type",Object)],Lg.prototype,"activeEndpoint",void 0);_.V([_.vr("data","activeEndpoint","canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lg.prototype,"observeActiveEndpoint",null);
_.V([_.yj({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Lg);
_.G(Lg,"ytd-guide-collapsible-entry-renderer",function(){if(N_t!==void 0)return N_t;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return N_t=D},{mode:_.Wc("kevlar_poly_si_batch_j079")?1:2});var yEt;var n41;var sZ=function(){var D=_.w.apply(this,arguments)||this;D.allVideosCount=0;D.renderGuideEntry=!1;return D};
_.h(sZ,_.w);sZ.prototype.observeRenderEntry=function(){var D;this.renderGuideEntry=!((D=this.data)==null||!D.alwaysShow)||!!this.allVideosCount};
sZ.prototype.observeRenderEntry=sZ.prototype.observeRenderEntry;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],sZ.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sZ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],sZ.prototype,"activeEndpoint",void 0);_.V([_.n({selector:_.Glh}),_.z("design:type",Object)],sZ.prototype,"allVideosCount",void 0);
_.V([_.n(),_.z("design:type",Object)],sZ.prototype,"renderGuideEntry",void 0);_.V([_.bH("allVideosCount","data.alwaysShow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sZ.prototype,"observeRenderEntry",null);_.V([_.yj({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],sZ);
_.G(sZ,"ytd-guide-downloads-entry-renderer",function(){if(n41===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);n41=D}D=n41;return D},{mode:1});var m9=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return D};
_.h(m9,_.w);_.S=m9.prototype;_.S.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]]"}}}}}};
_.S.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var D=this.sectionItems.children,C=0,X=D.length;C<X;C++)D[C].activeEndpoint=this.activeEndpoint}};
_.S.handleAddToGuideSectionAction=function(D){var C=_.r(D,Q43);if(C&&this.data&&(D=C.items,C=C.handlerData,D&&C&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(C)>-1)){C=0;for(var X=D.length;C<X;C++)D[C].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,D[C])}};
_.S.handleRemoveFromGuideSectionAction=function(D){var C=_.r(D,BuU);C&&this.data&&(D=C.guideEntryId,C=C.handlerData,D&&C&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(C)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(D,this.data.sectionItems),this.removeFromCollapsedSection(D,this.data.sectionItems)))};
_.S.removeFromExpandedSection=function(D,C){D=this.getEntryIndexMatchingId(D,C);D!==-1&&this.splice("data.sectionItems",D,1)};
_.S.removeFromCollapsedSection=function(D,C){var X=C.findIndex(function(c){return!!_.r(c,IVX)});
X&&X!==-1&&C[X]&&_.r(C[X],IVX)&&(C=_.r(C[X],IVX).expandableItems)&&(D=this.getEntryIndexMatchingId(D,C),D!==-1&&this.splice("data.sectionItems."+X+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.S.getEntryIndexMatchingId=function(D,C){var X=this;return C.findIndex(function(c){return X.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c)===D})};
m9.prototype.activeEndpointChanged=m9.prototype.activeEndpointChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],m9.prototype,"actionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#section-items"),_.z("design:type",HTMLDivElement)],m9.prototype,"sectionItems",void 0);
_.V([_.kn("#header-entry"),_.z("design:type",Object)],m9.prototype,"headerEntry",void 0);_.V([_.n(),_.z("design:type",Object)],m9.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],m9.prototype,"activeEndpoint",void 0);_.V([_.vr("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m9.prototype,"activeEndpointChanged",null);_.V([_.yj({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],m9);
_.G(m9,"ytd-guide-collapsible-section-entry-renderer",function(){if(yEt===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);yEt=D}D=yEt;return D},{mode:1});var wWU;var Fuo;var e8=function(){var D=_.w.apply(this,arguments)||this;D.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 D};
_.h(e8,_.w);_.S=e8.prototype;
_.S.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}}}}};
_.S.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var D=_.Ct(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);D&&D.length===1&&D[0]&&_.Ct(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.S.handleResetChannelUnreadCountCommand=function(D){var C;(D=(C=_.r(D,rSt))==null?void 0:C.channelId)&&this.data&&this.data.items&&(C=this.getPathToEntryMatchingId(D))&&(this.set(C+".guideEntryRenderer.count",0),this.set(C+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.S.handleResetSubscriptionsUnreadDotCommand=function(D){var C,X=(C=_.r(D,KmG))==null?void 0:C.targetId,c;X&&(c=this.data)!=null&&c.items&&(D=this.data.items.findIndex(function(W){var p;return((p=W.guideEntryRenderer)==null?void 0:p.targetId)===X}),D<0||this.set("data.items."+D+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.S.getPathToEntryMatchingId=function(D){if(this.data&&this.data.items){var C=this.getEntryIndexMatchingId(D,this.data.items);if(C>-1)return"data.items."+C;for(var X=0;X<this.data.items.length;X++)if(C=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[X]))if(C=this.getEntryIndexMatchingId(D,C),C>-1)return"data.items."+X+".guideCollapsibleEntryRenderer.expandableItems."+C}};
_.S.handleAddToGuideSectionAction=function(D){var C=this;if(_.r(D,Q43)){var X=_.r(D,Q43).items;D=_.r(D,Q43).handlerData;var c,W;if(X&&D&&((c=this.data)==null?void 0:(W=c.handlerDatas)==null?void 0:W.indexOf(D))>-1){X=X.filter(function(g){return(g=C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",g))&&!C.isGuideItemPresent(g)});
var p;if(D==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((p=this.data)==null?0:p.items)&&(c=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),c>-1)){this.splice.apply(this,["data.items",c+1,0].concat(_.VB(X)));return}this.unshift.apply(this,["data.items"].concat(_.VB(X)))}}};
_.S.isGuideItemPresent=function(D){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(D,this.data.items)!==-1)return!0;var C=this.data.items.find(function(X){return!!X.guideCollapsibleEntryRenderer});
if((C==null?0:C.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(D,C.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.S.getEntryIndexMatchingId=function(D,C){var X=this;return C.findIndex(function(c){return X.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c)===D})};
_.S.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(D,C){var X=this;return C.findIndex(function(c){return X.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",c)===D})};
_.S.handleRemoveFromGuideSectionAction=function(D){if(_.r(D,BuU)){var C=_.r(D,BuU).guideEntryId;D=_.r(D,BuU).handlerData;var X,c;C&&D&&((X=this.data)==null?void 0:(c=X.handlerDatas)==null?void 0:c.indexOf(D))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(C,this.data.items),this.removeFromCollapsedSection(C,this.data.items))}};
_.S.removeFromExpandedSection=function(D,C){D=this.getEntryIndexMatchingId(D,C);D!==-1&&this.splice("data.items",D,1)};
_.S.removeFromCollapsedSection=function(D,C){var X=C.findIndex(function(c){return!!c.guideCollapsibleEntryRenderer});
X!==-1&&(C=C[X].guideCollapsibleEntryRenderer.expandableItems)&&(D=this.getEntryIndexMatchingId(D,C),D!==-1&&this.splice("data.items."+X+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.S.activeEndpointChanged=function(){for(var D=_.SY(this.hostElement).querySelector("#items").children,C=0,X=D.length;C<X;C++)D[C].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.S.guideOpenedChanged=function(){for(var D=_.SY(this.hostElement).querySelector("#items").children,C=0,X=D.length;C<X;C++)D[C].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
e8.prototype.guideOpenedChanged=e8.prototype.guideOpenedChanged;e8.prototype.activeEndpointChanged=e8.prototype.activeEndpointChanged;e8.prototype.persistentGuideChanged=e8.prototype.persistentGuideChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],e8.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],e8.prototype,"ytLazyListBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],e8.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],e8.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],e8.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",String)],e8.prototype,"type",void 0);_.V([_.n({value:20}),_.z("design:type",Number)],e8.prototype,"initialCount",void 0);_.V([_.n({value:10}),_.z("design:type",Number)],e8.prototype,"targetFramerate",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],e8.prototype,"autoFill",void 0);_.V([_.n({value:50}),_.z("design:type",Number)],e8.prototype,"renderDelay",void 0);
_.V([_.vr("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e8.prototype,"persistentGuideChanged",null);_.V([_.bH("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e8.prototype,"activeEndpointChanged",null);_.V([_.bH("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e8.prototype,"guideOpenedChanged",null);
_.V([_.yj({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],e8);
_.G(e8,"ytd-guide-section-renderer",function(){if(Fuo!==void 0)return Fuo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Fuo=D},{mode:_.Wc("kevlar_poly_si_batch_j073")?1:2});var ZYw;var EZ=function(){return _.w.apply(this,arguments)||this};
_.h(EZ,_.w);_.$a.Object.defineProperties(EZ.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],EZ.prototype,"rendererBehaviors",void 0);_.V([_.n(),_.z("design:type",Object)],EZ.prototype,"data",void 0);_.V([_.n(),_.e("data.signInButton.buttonRenderer.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],EZ.prototype,"alignByText",null);_.V([_.yj({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],EZ);
_.G(EZ,"ytd-guide-signin-promo-renderer",function(){if(ZYw===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);ZYw=D}D=ZYw;return D},{mode:1});var tq=function(){var D=_.w.apply(this,arguments)||this;D.showFooter=!1;return D};
_.h(tq,_.w);tq.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}}}}};
tq.prototype.attached=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1){C=_.iX().resolve(_.vK(_.iC));if(!C)return X.jumpTo(0);C.setGuideData(D.hostElement);return X.yield(0,3)}D.ytLazyListBehavior.initialCount=2;return X.return()})};
tq.prototype.onMouseExit=function(){_.b("web_guide_hover_expansion")&&_.Ct(this.hostElement,"yt-guide-mouseleaved",[])};
tq.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
tq.prototype.dataChanged=tq.prototype.dataChanged;tq.prototype.onMouseExit=tq.prototype.onMouseExit;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],tq.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.tb.YtLazyListBehavior),_.z("design:type",Object)],tq.prototype,"ytLazyListBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],tq.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],tq.prototype,"showFooter",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],tq.prototype,"autoFill",void 0);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tq.prototype,"onMouseExit",null);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tq.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-guide-renderer",disableElementRegistration:!0})],tq);
_.G(tq,"ytd-guide-renderer",function(){if(wWU!==void 0)return wWU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return wWU=D},{mode:_.Wc("kevlar_poly_si_batch_j073")?1:2});var GM1;var NK=function(){var D=_.w.apply(this,arguments)||this;D.systemIcons=_.b("kevlar_system_icons");D.frostedGlass=_.b("web_frosted_glass");D.onAllyMenuButtonClick=function(){var C=D.getShowSheetCommand();C&&D.ytComponentBehavior.resolveCommand(C)};
D.getEndpointForm=function(){return gJG(D.data)};
return D};
_.h(NK,_.w);_.S=NK.prototype;_.S.attached=function(){this.JSC$20929_sheetController=_.iX().resolve(_.S0)};
_.S.onDown=function(){this.interaction.triggerDown()};
_.S.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var D;if((D=this.JSC$20929_sheetController)!=null){var C=this.mouseEnterCallback.bind(this),X=this.mouseLeaveCallback.bind(this);D.hoverEnterCallback=C!=null?C:void 0;D.hoverLeaveCallback=X!=null?X:void 0}}};
_.S.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.S.isSeedlessReelCommand=function(D){var C;return!!D&&((C=_.r(D,_.ko))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.S.isShowSheetCommand=function(D){return!!D&&!!_.r(D,_.rU)};
_.S.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.S.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.S.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.S.onUp=function(){this.interaction.triggerUp()};
_.S.onTap=function(D){if(this.data.serviceEndpoint){if(_.b("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);D.preventDefault();return}UsG(this.data.serviceEndpoint,this)}D.preventDefault()}else{var C;((C=this.data)==null?0:C.navigationEndpoint)&&!_.d$(_.Mz(D),
this.hostElement,["A".toString()])&&_.lE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.S.computeActive=function(D,C){if(!D)return!1;var X=D.navigationEndpoint;D=D.serviceEndpoint;if(!X&&!D||!C)return!1;if(X){D=_.r(X,_.Pl);var c=_.r(C,_.Pl);if(D&&c)return D.browseId===c.browseId&&D.params===c.params;var W;X=(W=_.r(X.commandMetadata,_.ge))==null?void 0:W.url;var p;C=(p=_.r(C.commandMetadata,_.ge))==null?void 0:p.url;return!(!X||!C||X!==C&&X!==_.mC(C))}return this.isActiveShortsTab(D,C)};
_.S.isActiveShortsTab=function(D,C){C=!!_.r(C,_.ko)||!!_.r(C,_.ad);return(!!_.r(D,_.ko)||!!_.r(D,_.ad))&&C};
_.S.computeTitle=function(D,C){return C?"":_.Mh(D)};
_.S.computeEndpoint=function(D){return this.isSeedlessReelCommand(D.serviceEndpoint)?D.serviceEndpoint:D.navigationEndpoint};
_.S.computeAriaLabelTitle=function(D){return _.Mh(D)};
_.S.computeAllyShowMenuOnTap=function(D){return this.isShowSheetCommand(D.mouseEnterEndpoint)||this.isShowSheetCommand(D.serviceEndpoint)};
_.$a.Object.defineProperties(NK.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
NK.prototype.onMouseLeave=NK.prototype.onMouseLeave;NK.prototype.onMouseEnter=NK.prototype.onMouseEnter;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.Co),_.z("design:type",Object)],NK.prototype,"ironButtonState",void 0);_.V([_.n(),_.z("design:type",Object)],NK.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],NK.prototype,"activeEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],NK.prototype,"noLabels",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.z("design:type",Boolean)],NK.prototype,"isActive",void 0);_.V([_.n({computed:"computeEndpoint(data)"}),_.z("design:type",Object)],NK.prototype,"computedEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],NK.prototype,"systemIcons",void 0);_.V([_.kn("yt-interaction"),_.z("design:type",Object)],NK.prototype,"interaction",void 0);_.V([_.e("isActive"),_.z("design:type",Object),_.z("design:paramtypes",[])],NK.prototype,"ariaSelected",null);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],NK.prototype,"frostedGlass",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.z("design:type",Boolean)],NK.prototype,"allyShowMenuOnTap",void 0);_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],NK.prototype,"onMouseEnter",null);_.V([_.$n("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],NK.prototype,"onMouseLeave",null);
_.V([_.yj({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],NK);
_.G(NK,"ytd-mini-guide-entry-renderer",function(){if(GM1!==void 0)return GM1;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return GM1=D},{mode:_.Wc("kevlar_poly_si_batch_j063")?1:2});var VSt;var YG=function(){var D=_.w.apply(this,arguments)||this;D.allVideosCount=0;D.noLabels=_.b("kevlar_mini_guide_no_labels");D.frostedGlass=_.b("web_frosted_glass");return D};
_.h(YG,_.w);_.S=YG.prototype;_.S.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.S.onMouseEnter=function(){_.b("web_guide_hover_expansion")&&_.Ct(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.S.visibleChanged=function(){if(this.visible&&!this.data){var D=_.iX().resolve(_.vK(_.iC));D&&D.setGuideData(this.hostElement)}};
_.S.dataChanged=function(){var D=_.b("kevlar_guide_menu_on_hover")&&_.b("kevlar_modern_mini_guide"),C=_.b("kevlar_guide_menu_on_click")&&_.b("kevlar_modern_mini_guide"),X;var c=(X=this.data)==null?void 0:X.items;X=this.allVideosCount;var W=[];D=D?0:C?1:void 0;C=D!==void 0;if(c){for(var p=[],g=_.U(c),a=g.next();!a.done;a=g.next())if(a=a.value,a.guideSubscriptionsSectionRenderer){var O=void 0;p=((O=a.guideSubscriptionsSectionRenderer)==null?void 0:O.items)||[]}c=_.U(c);for(g=c.next();!g.done;g=c.next())if(g=
g.value,a=void 0,(a=g.guideSectionRenderer)==null?0:a.items)for(a=void 0,g=_.U((a=g.guideSectionRenderer)==null?void 0:a.items),a=g.next();!a.done;a=g.next()){a=a.value;var P=void 0,k=void 0;O=a.guideEntryRenderer||_.r((P=a)==null?void 0:(k=P.guideCollapsibleSectionEntryRenderer)==null?void 0:k.headerEntry,aVo);P=[];k=[];var u=void 0;if(((u=O)==null?void 0:u.targetId)==="subscriptions-guide-item")P=p;else{var Q=u=void 0;if((u=a)==null?0:(Q=u.guideCollapsibleSectionEntryRenderer)==null?0:Q.sectionItems)k=
P=a.guideCollapsibleSectionEntryRenderer.sectionItems}A6U(W,O,C?P:[],D);if(k.length>0)for(a=_.U(k),O=a.next();!O.done;O=a.next())O=O.value,k=_.r(O,wOp),P=void 0,k=k&&(k.alwaysShow||X)?_.r((P=k)==null?void 0:P.entryRenderer,aVo):_.r(O,aVo),A6U(W,k,[])}}this.miniGuideItems=W};
_.S.activeEndpointChanged=function(){for(var D=this.items.children,C=0;C<D.length;C++)D[C].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.S.registerWithViewTransitionManager=function(){var D=this;_.Zo(_.qX,function(){var C=_.iX().resolve(_.vK(_.c3));if(C&&C.isAnyTransitionEnabled){var X={};C.viewTransitionCoordinator.registerElement(D.hostElement,(X.slide="mini-guide-page-transition",X))}})};
YG.prototype.activeEndpointChanged=YG.prototype.activeEndpointChanged;YG.prototype.dataChanged=YG.prototype.dataChanged;YG.prototype.visibleChanged=YG.prototype.visibleChanged;YG.prototype.onMouseEnter=YG.prototype.onMouseEnter;_.V([_.m(_.OA),_.z("design:type",Object)],YG.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],YG.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],YG.prototype,"ytComponentBehavior",void 0);_.V([_.kn("#items"),_.z("design:type",Object)],YG.prototype,"items",void 0);_.V([_.n(),_.z("design:type",Object)],YG.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Boolean)],YG.prototype,"visible",void 0);_.V([_.n(),_.z("design:type",Object)],YG.prototype,"miniGuideItems",void 0);_.V([_.n({selector:_.Glh}),_.z("design:type",Object)],YG.prototype,"allVideosCount",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],YG.prototype,"noLabels",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],YG.prototype,"frostedGlass",void 0);
_.V([_.$n("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YG.prototype,"onMouseEnter",null);_.V([_.bH("visible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YG.prototype,"visibleChanged",null);_.V([_.bH("data","allVideosCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YG.prototype,"dataChanged",null);
_.V([_.bH("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YG.prototype,"activeEndpointChanged",null);_.V([_.yj({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],YG);
_.G(YG,"ytd-mini-guide-renderer",function(){if(VSt===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);VSt=D}D=VSt;return D},{mode:1});var T_w;var HY6=/^[\x00-\x7F]+$/,yr=function(){return _.w.apply(this,arguments)||this};
_.h(yr,_.w);_.$a.Object.defineProperties(yr.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var D,C=_.Mh((D=this.data)==null?void 0:D.handle);if(C)return _.jV("@"+C)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.Mh(this.displayHandle),C,X=_.Mh((C=this.data)==null?void 0:C.handleUrl);if(D&&X)return _.jV(X+D)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var D=_.Mh(this.displayHandle);if(D&&!HY6.test(D)){var C;return(C=this.data)==null?void 0:C.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.Mh(this.displayHandleUrl),C,X=_.Mh((C=this.data)==null?void 0:C.urlInfoText);if(D&&X)return _.jV(X+" "+D)}}});
_.V([_.n(),_.z("design:type",Object)],yr.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],yr.prototype,"displayHandle",null);_.V([_.e("displayHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],yr.prototype,"displayHandleUrl",null);_.V([_.e("displayHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],yr.prototype,"warningText",null);
_.V([_.e("displayHandleUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],yr.prototype,"urlInfoTextWithUrl",null);_.V([_.yj({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],yr);
_.G(yr,"ytd-handles-claiming-confirm-dialog-content",function(){if(T_w!==void 0)return T_w;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return T_w=D},{mode:1});var JEk;var ng=function(){var D=_.w.apply(this,arguments)||this;D.okButtonOverride={style:"mono",type:"outline",size:"M"};return D};
_.h(ng,_.w);ng.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ng.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],ng.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],ng.prototype,"okButtonOverride",void 0);_.V([_.n(),_.z("design:type",Object)],ng.prototype,"data",void 0);_.V([_.yj({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],ng);
_.G(ng,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(JEk!==void 0)return JEk;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return JEk=D},{mode:1});var zyG;var jMt=/^[\x00-\x7F]+$/,wA=function(){var D=_.w.apply(this,arguments)||this;D.isLoading=!1;return D};
_.h(wA,_.w);wA.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var D;this.selectedHandle=(D=this.handleInput)==null?void 0:D.value;this.onSelectedHandleChanged(this.selectedHandle);_.Ct(this.hostElement,"yt-refit-popups-action")}};
_.$a.Object.defineProperties(wA.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.jV("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.jV(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!jMt.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],wA.prototype,"selectedHandle",void 0);_.V([_.n(),_.z("design:type",Object)],wA.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Function)],wA.prototype,"onSelectedHandleChanged",void 0);_.V([_.kn("#channel-handle-input"),_.z("design:type",Object)],wA.prototype,"handleInput",void 0);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wA.prototype,"handleUrlPrefix",null);_.V([_.e("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],wA.prototype,"displayHandle",null);_.V([_.e("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],wA.prototype,"displayHandleUrl",null);_.V([_.e("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],wA.prototype,"warningText",null);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.V([_.yj({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],wA);
_.G(wA,"ytd-handles-claiming-edit-dialog-content",function(){if(zyG!==void 0)return zyG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return zyG=D},{mode:1});var MSo;var FT=function(){var D=_.w.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.selectButtonDisabled=!1;D.isLoading=!1;D.hasSelectedHandleEventListener=!1;D.selectedHandleChanged=function(C){D.selectedHandle=C};
return D};
_.h(FT,_.w);_.S=FT.prototype;_.S.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.S.onDataChanged=function(){var D,C;this.selectedHandle=(C=_.r((D=this.data)==null?void 0:D.inputField,$lU))==null?void 0:C.handle};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onCancel=function(){this.selectedHandle="";_.DS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var C;((C=this.data)==null?void 0:C.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(X,c){if(c.newHandleUpdateStatus!==void 0&&c.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&c.newHandleUpdateStatus.errorMessage)_.JG(D.hostElement,_.Mh(c.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var W;if((W=D.data)==null?0:W.onChannelUpdateSuccess){X=D.data.onChannelUpdateSuccess;var p,g;if(c=(p=_.r(X,_.fo))==null?void 0:(g=p.popup)==null?void 0:g.handlesClaimingConfirmDialogRenderer)c.handle=_.jV(D.selectedHandle);D.ytComponentBehavior.resolveCommand(X);_.DS(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){var X;D.content&&((X=D.content)==null?0:X.handleInput)&&D.content.handleInput.validate();D.isLoading=!1;_.JG(D.hostElement,_.I7("TRY_AGAIN_LATER"))}}}))}};
_.S.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
FT.prototype.onDataChanged=FT.prototype.onDataChanged;FT.prototype.onSelectedHandleChanged=FT.prototype.onSelectedHandleChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],FT.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"actionButtonOverride",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"cancelButtonOverride",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",String)],FT.prototype,"selectedHandle",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"selectButtonDisabled",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"hasSelectedHandleEventListener",void 0);_.V([_.n(),_.z("design:type",Object)],FT.prototype,"handleInput",void 0);
_.V([_.vr("selectedHandle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FT.prototype,"onSelectedHandleChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FT.prototype,"onDataChanged",null);_.V([_.kn("ytd-handles-claiming-edit-dialog-content"),_.z("design:type",Object)],FT.prototype,"content",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.yj({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],FT);
_.G(FT,"ytd-handles-claiming-edit-dialog-renderer",function(){if(MSo!==void 0)return MSo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return MSo=D},{mode:1});var q5G;var ZB=function(){return _.w.apply(this,arguments)||this};
_.h(ZB,_.w);_.$a.Object.defineProperties(ZB.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.handle){var C;return _.jV("@"+_.Mh((C=this.data)==null?void 0:C.handle))}}}});
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZB.prototype,"formattedHandle",null);_.V([_.n(),_.z("design:type",Object)],ZB.prototype,"data",void 0);_.V([_.yj({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ZB);
_.G(ZB,"ytd-handles-claiming-radio-option-renderer",function(){if(q5G!==void 0)return q5G;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return q5G=D},{mode:1});var f2U;var d91=/^[\x00-\x7F]+$/,G7=function(){var D=_.w.apply(this,arguments)||this;D.initialRadioIndex="-1";D.isLoading=!1;D.maybeSubmitFeedback=function(){D.feedbackSurveyRenderer.submitSurvey()};
return D};
_.h(G7,_.w);G7.prototype.updateSelectedHandleIndexFromBinding=function(D){this.selectedRadioIndex=+D.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(D)};
G7.prototype.selectedHandleChanged=function(D){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var C;this.selectedHandle=(C=this.handleInput)==null?void 0:C.value;this.onSelectedHandleChanged(D)}};
_.$a.Object.defineProperties(G7.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return this.ytRendererBehavior.getSimpleString((D=this.data)==null?void 0:D.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.jV("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.jV(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!d91.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.V([_.n(),_.z("design:type",Object)],G7.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],G7.prototype,"initialRadioIndex",void 0);_.V([_.n(),_.z("design:type",Number)],G7.prototype,"selectedRadioIndex",void 0);_.V([_.n(),_.z("design:type",String)],G7.prototype,"selectedHandle",void 0);_.V([_.n(),_.z("design:type",Object)],G7.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Function)],G7.prototype,"onSelectedHandleChanged",void 0);
_.V([_.n(),_.z("design:type",Function)],G7.prototype,"onSelectedRadioIndexChanged",void 0);_.V([_.kn("#channel-handle-input"),_.z("design:type",Object)],G7.prototype,"handleInput",void 0);_.V([_.kn("ytd-feedback-survey-renderer"),_.z("design:type",Object)],G7.prototype,"feedbackSurveyRenderer",void 0);_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],G7.prototype,"radioButtonLength",null);
_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],G7.prototype,"handleUrlPrefix",null);_.V([_.e("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],G7.prototype,"displayHandle",null);_.V([_.e("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],G7.prototype,"displayHandleUrl",null);_.V([_.e("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],G7.prototype,"warningText",null);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.V([_.yj({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],G7);
_.G(G7,"ytd-handles-claiming-select-dialog-content",function(){if(f2U!==void 0)return f2U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return f2U=D},{mode:1});var RyP;var Vr=function(){var D=_.w.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.initialRadioIndex="-1";D.selectButtonDisabled=!1;D.isLoading=!1;D.selectedRadioIndexChanged=function(C){D.selectedRadioIndex=Number(C.detail.value)};
D.selectedHandleChanged=function(C){D.selectedHandle=C.detail.value};
return D};
_.h(Vr,_.w);_.S=Vr.prototype;_.S.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.S.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.S.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Ct(this.hostElement,"yt-refit-popups-action")};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.DS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var C;((C=this.data)==null?void 0:C.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(X,c){if(c.newHandleUpdateStatus!==void 0&&c.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&c.newHandleUpdateStatus.errorMessage)_.JG(D.hostElement,_.Mh(c.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var W;if((W=D.data)==null?0:W.onChannelUpdateSuccess){X=D.data.onChannelUpdateSuccess;c=_.r(X,_.fo);var p;if(c==null?0:(p=c.popup)==null?0:p.handlesClaimingConfirmDialogRenderer)c.popup.handlesClaimingConfirmDialogRenderer.handle=_.jV(D.selectedHandle);D.ytComponentBehavior.resolveCommand(X);_.DS(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){if(D.selectedRadioIndex===D.radioButtonLength){var X;D.content&&((X=D.content)==null?0:X.handleInput)&&D.content.handleInput.validate()}D.isLoading=!1;_.JG(D.hostElement,_.I7("TRY_AGAIN_LATER"))}}}))}};
_.S.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var D,C;this.selectedHandle=(D=this.content)==null?void 0:(C=D.handleInput)==null?void 0:C.value}else this.selectedRadioIndex>=0&&((D=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(D==null?void 0:D.handle):this.selectedHandle=void 0)};
_.S.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.S.getRadioItem=function(D){if(this.radioButtonLength>D&&D>=0)return _.r(this.data.radioButton[D],EdP)};
_.$a.Object.defineProperties(Vr.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}}});
Vr.prototype.onSelectedHandleChanged=Vr.prototype.onSelectedHandleChanged;Vr.prototype.onSelectedHandleIndexChanged=Vr.prototype.onSelectedHandleIndexChanged;Vr.prototype.onDataChanged=Vr.prototype.onDataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Vr.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Vr.prototype,"actionButtonOverride",void 0);_.V([_.n(),_.z("design:type",Object)],Vr.prototype,"cancelButtonOverride",void 0);
_.V([_.n(),_.z("design:type",Object)],Vr.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Vr.prototype,"initialRadioIndex",void 0);_.V([_.n(),_.z("design:type",Number)],Vr.prototype,"selectedRadioIndex",void 0);_.V([_.n(),_.z("design:type",String)],Vr.prototype,"selectedHandle",void 0);_.V([_.n(),_.z("design:type",Object)],Vr.prototype,"selectButtonDisabled",void 0);_.V([_.n(),_.z("design:type",Object)],Vr.prototype,"isLoading",void 0);
_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],Vr.prototype,"radioButtonLength",null);_.V([_.kn("ytd-handles-claiming-select-dialog-content"),_.z("design:type",Object)],Vr.prototype,"content",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vr.prototype,"onDataChanged",null);
_.V([_.vr("selectedRadioIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vr.prototype,"onSelectedHandleIndexChanged",null);_.V([_.vr("selectedHandle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vr.prototype,"onSelectedHandleChanged",null);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.yj({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Vr);
_.G(Vr,"ytd-handles-claiming-select-dialog-renderer",function(){if(RyP!==void 0)return RyP;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return RyP=D},{mode:1});var l2U;var D5N;var T7=function(){return _.w.apply(this,arguments)||this};
_.h(T7,_.w);T7.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],T7.prototype,"data",void 0);_.V([_.yj({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],T7);
_.G(T7,"ytd-hotkey-dialog-section-option-renderer",function(){if(D5N!==void 0)return D5N;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return D5N=D},{mode:1});var CZt;var H1=function(){return _.w.apply(this,arguments)||this};
_.h(H1,_.w);H1.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],H1.prototype,"data",void 0);_.V([_.yj({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],H1);
_.G(H1,"ytd-hotkey-dialog-section-renderer",function(){if(CZt!==void 0)return CZt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return CZt=D},{mode:1});var Jq=function(){return _.w.apply(this,arguments)||this};
_.h(Jq,_.w);Jq.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Jq.prototype,"data",void 0);_.V([_.yj({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Jq);
_.G(Jq,"ytd-hotkey-dialog-content",function(){if(l2U!==void 0)return l2U;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return l2U=D},{mode:1});var XSt;var z7=function(){return _.w.apply(this,arguments)||this};
_.h(z7,_.w);z7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D=document.querySelector("ytd-hotkey-dialog-content #scrollable");D&&(D.dialogElement=this.hostElement.parentElement)};
z7.prototype.onCloseTap=function(){_.DS(this.hostElement,"yt-close-popup-action")};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],z7.prototype,"data",void 0);_.V([_.yj({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],z7);
_.G(z7,"ytd-hotkey-dialog-renderer",function(){if(XSt!==void 0)return XSt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return XSt=D},{mode:1});var cj6;var j8=function(){return _.w.apply(this,arguments)||this};
_.h(j8,_.w);j8.prototype.onYtServiceRequestError=function(){if(this.blocked){var D;var C=(D=this.data)==null?void 0:D.defaultServiceEndpoint}else{var X;C=(X=this.data)==null?void 0:X.toggledServiceEndpoint}var c;(C=(c=_.r(C,_.Fa4))==null?void 0:c.onFailureAction)&&this.ytComponentBehavior.resolveCommand(C);this.updateBlockState(!this.blocked)};
j8.prototype.onYtToggleButton=function(D){this.updateBlockState(D.detail.toggled)};
j8.prototype.updateBlockState=function(D){if(D!==this.blocked){var C=this.blockedEntityKey;C&&this.ytdReduxBehavior.dispatch(_.bK("blockStateEntity",C,{key:C,blocked:D}));this.set("data.isToggled",D)}};
_.$a.Object.defineProperties(j8.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)}}});
j8.prototype.onYtToggleButton=j8.prototype.onYtToggleButton;j8.prototype.onYtServiceRequestError=j8.prototype.onYtServiceRequestError;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],j8.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],j8.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],j8.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],j8.prototype,"blockedEntityKey",void 0);
_.V([_.n({selectorArgs:["blockedEntityKey"],selector:function(D,C){return _.aI(D.entities,"blockStateEntity",C)}}),
_.z("design:type",Object)],j8.prototype,"blockStateEntity",void 0);_.V([_.e("data","blockStateEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],j8.prototype,"blocked",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],j8.prototype,"onYtServiceRequestError",null);
_.V([_.$n("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],j8.prototype,"onYtToggleButton",null);_.V([_.yj({is:"ytd-block-button",disableElementRegistration:!0})],j8);
_.G(j8,"ytd-block-button",function(){if(cj6!==void 0)return cj6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return cj6=D},
{mode:1});var o86;var WBU;var MK=function(){return _.w.apply(this,arguments)||this};
_.h(MK,_.w);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],MK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],MK.prototype,"data",void 0);_.V([_.yj({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],MK);
_.G(MK,"ytd-kids-blocklist-picker-item-renderer",function(){if(WBU!==void 0)return WBU;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return WBU=D},{mode:1});var qK=function(){return _.w.apply(this,arguments)||this};
_.h(qK,_.w);qK.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qK.prototype,"data",void 0);_.V([_.yj({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],qK);
_.G(qK,"ytd-kids-blocklist-picker-content",function(){if(o86!==void 0)return o86;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return o86=
D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var pSG;var fg=function(){var D=_.w.apply(this,arguments)||this;D.hasAnyRequestSucceeded=!1;D.hasAnyRequestFailed=!1;D.numPendingRequests=0;return D};
_.h(fg,_.w);_.S=fg.prototype;_.S.attached=function(){this.hostElement.setAttribute("dialog","")};
_.S.onDoneButtonTap=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.S.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.S.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.S.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.S.onPopupClosed=function(D){var C,X;if(((C=D.detail)==null?void 0:(X=C.popup)==null?void 0:X.is)==="tp-yt-paper-dialog"){var c;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((c=this.data)==null?0:c.successfulToastActionMessage)&&(D=_.RI(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(D));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
fg.prototype.onPopupClosed=fg.prototype.onPopupClosed;fg.prototype.onYtServiceRequestError=fg.prototype.onYtServiceRequestError;fg.prototype.onYtServiceRequestCompleted=fg.prototype.onYtServiceRequestCompleted;fg.prototype.onYtServiceRequestSent=fg.prototype.onYtServiceRequestSent;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],fg.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],fg.prototype,"data",void 0);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fg.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fg.prototype,"onYtServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fg.prototype,"onYtServiceRequestError",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],fg.prototype,"onPopupClosed",null);_.V([_.yj({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],fg);
_.G(fg,"ytd-kids-blocklist-picker-renderer",function(){if(pSG!==void 0)return pSG;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return pSG=D},{mode:1});var SDG;var U5p;var dA=function(){return _.w.apply(this,arguments)||this};
_.h(dA,_.w);dA.prototype.setTip=function(D){var C=this;this.data&&(this.tip=zwo(HEU.getInstance(),D,this.data),_.A0(this,function(){_.lE(C.hostElement,"yt-refit")}))};
dA.prototype.clearTip=function(){this.tip=void 0};
dA.prototype.computeHidden=function(D){return!D};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],dA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.z("design:type",Boolean)],dA.prototype,"hidden",void 0);_.V([_.n(),_.z("design:type",Object)],dA.prototype,"tip",void 0);_.V([_.yj({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],dA);
_.G(dA,"ytd-menu-popup-tip-renderer",function(){if(U5p!==void 0)return U5p;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);
return U5p=D},{mode:1});var g8N;var R8=function(){var D=_.w.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.b("kevlar_system_icons");return D};
_.h(R8,_.w);_.S=R8.prototype;_.S.onFocus=function(){var D;(D=_.SY(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.S.onTap=function(){var D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(D&&_.r(D,_.pt))this.componentBehavior.resolveCommand(D),this.updateToggledStateInEntity();else if(D){this.componentBehavior.resolveCommand(D)||_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}});var C;((C=_.r(D,_.Up))==null?void 0:C.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.S.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.S.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.S.updateToggledStateInEntity=function(){var D=this.data.toggleMenuServiceItemEntityKey,C=!this.data.isToggled;D&&this.ytdReduxBehavior.dispatch(_.bK("toggleMenuServiceItemEntity",D,{key:D,isToggled:C}))};
_.S.computeIcon=function(D,C,X){return(D=D?X:C)&&D.iconType?_.g2(D.iconType):""};
_.S.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.S.isIconActive=function(D){return!_.b("toggle_menu_active_icon_killswitch")&&D};
_.$a.Object.defineProperties(R8.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?0:D.isToggled)?(C=this.data)==null?void 0:C.toggledText:(X=this.data)==null?void 0:X.defaultText}}});
R8.prototype.toggledStateEntityChanged=R8.prototype.toggledStateEntityChanged;R8.prototype.onYtServiceRequestCompleted=R8.prototype.onYtServiceRequestCompleted;R8.prototype.onTap=R8.prototype.onTap;R8.prototype.onFocus=R8.prototype.onFocus;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],R8.prototype,"componentBehavior",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],R8.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],R8.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],R8.prototype,"useIcons",void 0);_.V([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.z("design:type",String)],R8.prototype,"icon",void 0);
_.V([_.n({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.ck.toggleMenuServiceItemEntitySelector}),_.z("design:type",Object)],R8.prototype,"toggleMenuServiceItemEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],R8.prototype,"systemIcons",void 0);_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R8.prototype,"onFocus",null);
_.V([_.e("data.isToggled"),_.z("design:type",Object),_.z("design:paramtypes",[])],R8.prototype,"toggleButtonText",null);_.V([_.$n("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R8.prototype,"onTap",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R8.prototype,"onYtServiceRequestCompleted",null);
_.V([_.vr("toggleMenuServiceItemEntity.isToggled","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R8.prototype,"toggledStateEntityChanged",null);_.V([_.yj({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],R8);
_.G(R8,"ytd-toggle-menu-service-item-renderer",function(){if(g8N!==void 0)return g8N;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return g8N=D},{mode:1});var axU;var lf=function(){return _.w.apply(this,arguments)||this};
_.h(lf,_.w);lf.prototype.onFocus=function(){var D;(D=_.SY(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.$a.Object.defineProperties(lf.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Hv(this.data.iconUrl)}}});
lf.prototype.onFocus=lf.prototype.onFocus;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lf.prototype,"rendererBehavior",void 0);_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],lf.prototype,"ytEndpointBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],lf.prototype,"data",void 0);_.V([_.$n("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lf.prototype,"onFocus",null);
_.V([_.e("data.iconUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],lf.prototype,"imageSource",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],lf);
_.G(lf,"ytd-menu-custom-icon-item-renderer",function(){if(axU!==void 0)return axU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return axU=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});_.CI(_.Bb,"yt-list-item-view-model",{props:{data:_.Bm,isMenuItem:_.Bm,isCompact:_.Bm,onTap:_.R3,trailingAccessory:_.R3,hideSelectionTextChevron:_.Bm,disabled:_.Bm,inPopup:_.Bm,disableHorizontalPadding:_.Bm,isOverlay:_.Bm,isToggled:_.Bm,ariaLabel:_.Bm,ariaPressed:_.Bm,shouldNotFillIcon:_.Bm}});var D_=function(){var D=_.w.apply(this,arguments)||this;D.disableBackdropFilter=_.b("web_disable_backdrop_filter");return D};
_.h(D_,_.w);_.S=D_.prototype;
_.S.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"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.S.computeAriaLabel=function(D){return D};
_.S.onPopupOpened=function(){this.items.selected=0;for(var D=_.U(_.SY(this.items).children),C=D.next();!C.done;C=D.next())C.value.popupPositionTarget=this.positionTarget;if(D=this.popupTip||void 0)D.setTip(this.source||""),this.source=void 0;this.veData&&(D=_.LN())&&_.VP(D,[this.veData])};
_.S.onPopupClosed=function(){var D=this.popupTip||void 0;D&&D.clearTip()};
_.S.onIronActivate=function(D){this.shouldPersist(D)||_.DS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(D=_.LN())&&_.HE(D,this.veData)};
_.S.shouldPersist=function(D){var C,X;if(((C=D.detail)==null?void 0:C.selected)===void 0||(X=this.data)==null||!X.items)return!1;var c,W;return!((W=(c=this.data.items[D.detail.selected])==null?void 0:c.toggleMenuServiceItemRenderer)==null||!W.persistentOnMenuPopup)};
_.S.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(D){return D.menuNavigationItemRenderer?!!D.menuNavigationItemRenderer.icon:D.menuServiceItemRenderer?!!D.menuServiceItemRenderer.icon:D.menuConditionalServiceItemRenderer?!!D.menuConditionalServiceItemRenderer.icon:D.menuConditionalNavigationItemRenderer?!!D.menuConditionalNavigationItemRenderer.icon:D.toggleMenuServiceItemRenderer?!!D.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
D_.prototype.onPopupClosed=D_.prototype.onPopupClosed;D_.prototype.onPopupOpened=D_.prototype.onPopupOpened;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],D_.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],D_.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],D_.prototype,"veData",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.z("design:type",String)],D_.prototype,"ariaLabel",void 0);_.V([_.n({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],D_.prototype,"useIcons",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],D_.prototype,"disableBackdropFilter",void 0);_.V([_.kn("#items"),_.z("design:type",Object)],D_.prototype,"items",void 0);_.V([_.kn("ytd-menu-popup-tip-renderer"),_.z("design:type",Object)],D_.prototype,"popupTip",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D_.prototype,"onPopupOpened",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D_.prototype,"onPopupClosed",null);_.V([_.yj({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],D_);
_.G(D_,"ytd-menu-popup-renderer",function(){if(SDG!==void 0)return SDG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return SDG=D},{mode:1});var Ixt;var Ock=_.F(function(D){D=_.Ro(D,{icon:void 0});var C=D.data;D=D.icon;var X=function(){return C().iconBadgeText},c={},W=_.g$("yt-spec-icon-badge-shape",function(){a:switch(C().iconBadgeType){case "notification":var p="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":p="yt-spec-icon-badge-shape--type-cart";break a;default:p=""}return p},function(){a:switch(C().iconBadgeStyle){case "overlay":var p="yt-spec-icon-badge-shape--style-overlay";
break a;default:p=""}return p},(c["yt-spec-icon-badge-shape--text-size-small"]=function(){var p=X();
return!!((p==null?0:p.length)&&p.length>2)},c));
return _.A("yt-icon-badge-shape",null,_.A(_.v,{cond:D,then:function(p){return _.A("div",{class:W},_.A("div",{class:"yt-spec-icon-badge-shape__icon"},_.A(_.$_,{icon:p})),_.A(_.v,{cond:X,then:function(g){return _.A("div",{class:"yt-spec-icon-badge-shape__badge"},g)}}))}}))},"yj");
Ock.idomCompat=!0;_.CI(Ock,"yt-icon-badge-shape",{props:{data:_.Bm,icon:_.Bm}});var CS=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};D.unseenCount=0;D.isOverlay=!1;return D};
_.h(CS,_.w);_.S=CS.prototype;_.S.attached=function(){var D=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(C){D.onServiceWorkerMessage(C)})};
_.S.onDataChanged=function(){this.isAttached&&!this.JSC$21016_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$21016_lastData=this.data};
_.S.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.S.computeIcon=function(){var D,C;return(D=this.data)==null?void 0:(C=D.icon)==null?void 0:C.iconType};
_.S.onServiceWorkerMessage=function(D){D.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.S.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.r(this.data.updateUnseenCountEndpoint,_.Up)&&_.r(this.data.updateUnseenCountEndpoint,_.Up).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.S.handleUpdateNotificationsUnseenCountAction=function(D){var C=this;D=_.r(D,b6p);D!=null&&D.unseenCount&&D.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(D.unseenCount),_.qX.addLowPriorityJob(function(){C.data.updateUnseenCountEndpoint&&C.ytComponentBehavior.resolveCommand(C.data.updateUnseenCountEndpoint)},D.timeoutMs))};
_.S.onClick=function(){_.lE(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var D=_.Ct(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),C=this.data.menuRequest;D&&D.length===1&&D[0]?_.DS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):C&&this.ytComponentBehavior.resolveCommand(C)};
_.S.handleTopbarMenuClosedAction=function(D){D==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.S.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
_.S.sendUnseenCountRequest=function(D){var C=this;_.Zo(_.qX,function(){C.ytComponentBehavior.resolveCommand(D)})};
_.S.updateCountUI=function(D){this.set("unseenCount",D<9?D:"9+")};
_.$a.Object.defineProperties(CS.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
CS.prototype.handleUpdateNotificationsUnseenCountAction=CS.prototype.handleUpdateNotificationsUnseenCountAction;CS.prototype.onDataChanged=CS.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],CS.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eu),_.z("design:type",Object)],CS.prototype,"ytdOpenPopupBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],CS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],CS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],CS.prototype,"unseenCount",void 0);_.V([_.n(),_.z("design:type",Object)],CS.prototype,"isOverlay",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],CS.prototype,"showTooltips",void 0);_.V([_.kn("yt-icon-button"),_.z("design:type",Object)],CS.prototype,"iconButton",void 0);
_.V([_.e("unseenCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],CS.prototype,"showNotificationCount",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CS.prototype,"onDataChanged",null);_.V([_.$n("yt-update-notifications-unseen-count-action"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],CS.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.V([_.yj({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],CS);
_.G(CS,"ytd-notification-topbar-button-renderer",function(){if(Ixt!==void 0)return Ixt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ixt=D},{mode:_.Wc("kevlar_poly_si_batch_j025")?1:2});var Ajo;var Xw=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return D};
_.h(Xw,_.w);Xw.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}}}}}};
Xw.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Xw.prototype.onDarkModeToggled=function(D){this.dark=D};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Xw.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Xw.prototype,"data",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Xw.prototype,"dark",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Xw);
_.G(Xw,"yt-pdg-buy-flow-header-renderer",function(){if(Ajo!==void 0)return Ajo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ajo=D},{mode:1});var PZt;var $53;var cA=function(){var D=_.w.apply(this,arguments)||this;D.immediateValue=0;D.isDarkTheme=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(cA,_.w);_.S=cA.prototype;_.S.created=function(){_.aZ.requestAvailability()};
_.S.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.S.dataChanged=function(){var D=_.SY(this.hostElement).querySelector("#color-slider");D.immediateValue&&this.updateSliderKnobAndGradientStyles(D.immediateValue);this.data.notches[0].knobColorArgb&&_.Os(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.e_(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.q6("HTML_DIR")==="rtl"&&_.SY(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.S.onSliderImmediateChange=function(){var D=_.SY(this.hostElement).querySelector("#color-slider");D.dragging&&(D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue)),this.updateSliderAria())};
_.S.onSliderChange=function(){var D=_.SY(this.hostElement).querySelector("#color-slider");D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue));this.updateSliderAria()};
_.S.updateSliderAria=function(){var D=_.SY(this.hostElement).querySelector("#color-slider"),C=_.SY(this.hostElement).querySelector("#color-slider");C=_.Mh(this.data.notches[C.immediateValue].tierValue);_.kJR()&&_.lE(this.hostElement,"iron-announce",{text:C});D.setAttribute("aria-valuetext",C)};
_.S.updateSuperThanksSelectedTierEntity=function(D){if(D!==this.immediateValue){var C,X,c=this==null?void 0:(C=this.data)==null?void 0:(X=C.superThanksSelectedTierEntity)==null?void 0:X.key;c&&c.length>0&&this.ytdReduxBehavior.dispatch(_.bK("superThanksSelectedTierEntity",c,{key:c,index:D}))}};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.updateSliderKnobAndGradientStyles=function(D){this.immediateValue=D;D=this.data.notches[D];if(D==null?0:D.knobColorArgb)var C={"--ytd-pdg-color-slider-knob-color":_.e_(D.knobColorArgb)};(D==null?0:D.linearGradientCssStyle)&&C!==null&&(C=Object.assign({},C,{"--ytd-pdg-color-slider-active-color":D==null?void 0:D.linearGradientCssStyle}));C!==null&&_.Os(this.hostElement,C)};
cA.prototype.onSliderChange=cA.prototype.onSliderChange;cA.prototype.onSliderImmediateChange=cA.prototype.onSliderImmediateChange;cA.prototype.dataChanged=cA.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],cA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],cA.prototype,"immediateValue",void 0);_.V([_.n(),_.z("design:type",Number)],cA.prototype,"maxMarkers",void 0);
_.V([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AGt}),_.z("design:type",Object)],cA.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],cA.prototype,"isDarkTheme",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cA.prototype,"dataChanged",null);
_.V([_.$n("immediate-value-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cA.prototype,"onSliderImmediateChange",null);_.V([_.$n("change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cA.prototype,"onSliderChange",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],cA);
_.G(cA,"ytd-pdg-color-slider-renderer",function(){if($53!==void 0)return $53;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return $53=D},{mode:1});var v8p;var ic3;var oY=null;
_.mZ({is:"ytd-comment-input",_template:function(){if(ic3!==void 0)return ic3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return ic3=D},
behaviors:[_.Dcn.YtHostElementBehavior,_.H8,_.O7.YtComponentBehavior,_.eO.YtRendererstamperBehavior,_.OB4.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 _.Qd}},
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",_.Pr(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;_.m8();this.focus()},
detached:function(){document.removeEventListener("tap",_.Pr(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var C=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(C,D);this.maybeUpdateTextDirection_();_.lE(this.hostElement,"input")},
getInputRange_:function(){var D=_.gE();if(D){D=D.getBrowserRangeObject();for(var C=D.commonAncestorContainer;C;){if(C===this.getEditableTextArea_())return D;C=C.parentNode}}D=this.getEditableTextArea_();D=_.C0(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,C,X){(C=this.emojiManager.createDocumentFragment(C,!0,!1,X===void 0?!0:X))&&C.childNodes.length!==0&&(D.collapsed||D.deleteContents(),X=C.lastChild,D.insertNode(C),_.Q_k(X).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var D=_.gE();if(D){var C=D.JSC$11509_getStartNode(),X=D.JSC$11509_getEndNode();if(PpG(C)&&PpG(X)){var c=D.JSC$11509_getStartOffset(),W;if(_.Au&&C.nodeType===Node.ELEMENT_NODE&&(W=_.$3b(C)))_.C0(W,0).select();else{W=WB(C)?C:_.zv(C,WB);var p=WB(X)?X:_.zv(X,WB);if(W||p)if(D.isCollapsed()){if(C.nodeType===Node.TEXT_NODE){D=!0;c===C.length&&(D=!1);if(oY==="end"||oY==="right")D=!1;C=C.parentNode;D=[].concat(_.VB(C.parentNode.childNodes)).indexOf(C)+(D?0:1);_.C0(C.parentNode,
D).select()}}else W?W.previousSibling&&W.previousSibling.length>0?_.Xl(X,D.JSC$11509_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(C=document.createTextNode("\u200b"),W.parentNode.insertBefore(C,W),_.Xl(X,D.JSC$11509_getEndOffset(),C,0).select()):p&&(p.nextSibling&&p.nextSibling.length>0?_.Xl(C,D.JSC$11509_getStartOffset(),p.nextSibling,1).select():(X=document.createTextNode("\u200b"),p.parentNode.insertBefore(X,p.nextSibling),_.Xl(C,D.JSC$11509_getStartOffset(),X,X.length).select()));
oY=null}}else oY=null}else oY=null},
leftKeyPressed_:function(){oY="left"},
rightKeyPressed_:function(){oY="right"},
endKeyPressed_:function(){oY="end"},
maybeDeleteChip_:function(){var D=Bd1(!0);if(D){var C=_.gE(),X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();_.fr(X,C,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=Bd1(!1);if(D){var C=_.gE(),X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();_.fr(X,C,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var C=_.gE();if(C.isCollapsed()){var X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();var c=bLG(X,C,!0);c&&(_.fr(X,C,c,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var C=_.gE();if(C.isCollapsed()){var X=C.JSC$11509_getStartNode();C=C.JSC$11509_getStartOffset();var c=bLG(X,C,!1);c&&(_.fr(X,C,c,c.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onContentClick:function(D){D.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(D){D.defaultPrevented||D.currentTarget.tagName==="YTD-COMMENT-INPUT"&&WB(D.target)&&D.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.SY(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.SY(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(D,C){D=vJw(D,this.emojiManager,C).cloneNode(!0);for(C=D.firstChild;C;)if(C.nodeType!==1)C=C.nextSibling;else switch(C.tagName){case "BR":var X=_.ZV();_.rp5(X,C);C=X.nextSibling;break;case "DIV":(X=C.lastChild)&&C.nextSibling&&_.Hq(_.ZV(),X);C.previousSibling&&(C.previousSibling.nodeType===1||C.previousSibling.nodeType===3&&!C.previousSibling.textContent.endsWith("\n"))&&_.Ti(_.ZV(),C);X&&X.nodeName==="BR"&&_.ep(X);X=C;C.hasChildNodes()?(C=C.firstChild,
_.Keq(X)):(C=C.nextSibling,_.ep(X));break;default:C=C.nextSibling}return r6X(D)},
setTextAreaValue:function(D){D||(D="");var C=this.getEditableFormattedString_();C.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});C.text=D},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();oY=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.C0(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.q6("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),C=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",C)}},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var C=this.getInputRange_();C&&(D=this.emojiInput.retrieveTextBeforeRange(C))}this.insertText_(D,!0);this.updateCharCount_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
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(D){this.isEmojiButtonDisplayed&&(D.preventDefault(),D.stopImmediatePropagation(),D=D.clipboardData.getData("text/plain"),this.insertText_(D,!1,!1),_.lE(this.hostElement,"input"))},
insertText_:function(D,C,X){C=C===void 0?!1:C;X=X===void 0?!0:X;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var c=this.getInputRange_().cloneRange();this.emojiManager&&c&&(C&&this.emojiInput.offsetStartOfRangeBy(c,D.length),this.insertTextWithEmojis_(c,D,X),$sw(this.getEditableTextArea_().lastChild)||(c=this.getInputRange_().cloneRange()),c&&(this.emojiInput.updateSuggestions(c,D),this.updateSuggestionOffset_(c)))}},
getSimpleString:_.Mh,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computePlaceholderText_:function(D){return this.getSimpleString(D)},
computeEditableText_:function(D){return this.getSimpleString(D)},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(D,C){D?this.fire("yt-autonav-pause-focus"):C!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var C=this.getEditableTextArea_();[].concat(_.VB(D.dataTransfer.items)).forEach(function(X){X.kind==="string"&&X.type.match("^text/plain")&&X.getAsString(function(c){C.appendChild(document.createTextNode(c))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.SY(this.emojiInput).querySelector("#dropdown")){var C=this.getEditableTextArea_().getBoundingClientRect().bottom,X=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(C-X)+5;C=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-C;_.SY(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Do("yt-post"));return this.localStorage}});var WA=function(){var D=_.w.apply(this,arguments)||this;D.currentCommentOptionIndex=0;D.isEmojiPickerDisplayed=!1;D.emojiManager=_.Qd;D.isUgcEmpty=!1;D.userGeneratedCommentChangedHandler=function(){_.lE(D.hostElement,"ytd-pdg-user-generated-comment-changed");D.isEmojiYtdCommentInputEnabled&&(D.isUgcEmpty=!D.ytdCommentInputEl.getTextAreaValue())};
D.pasteHandler=function(C){C.preventDefault();C.stopImmediatePropagation();var X;if(C=(X=C.clipboardData)==null?void 0:X.getData("text/plain"))X=document.getSelection().getRangeAt(0),X.collapsed||X.deleteContents(),C=document.createTextNode(C),X.insertNode(C),X.selectNodeContents(C),X.collapse(!1),C=window.getSelection(),C.removeAllRanges(),C.addRange(X)};
D.onDocumentClick=function(C){if(D.isEmojiPickerDisplayed){var X,c,W;!(C.target instanceof Node)||(X=C.composedPath())!=null&&X.includes(D.editableTextEl)||(c=C.composedPath())!=null&&c.includes(D.emojiButtonEl)||(W=C.composedPath())!=null&&W.includes(D.emojiPickerEl)||(D.isEmojiPickerDisplayed=!1)}};
return D};
_.h(WA,_.w);_.S=WA.prototype;_.S.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.S.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.S.detached=function(){var D;(D=this.contentEl)==null||D.removeEventListener("input",this.userGeneratedCommentChangedHandler);var C;(C=this.contentEl)==null||C.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.S.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.S.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var D;this.contentEl.textContent=this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.S.reloadEmojis=function(){this.emojiPickerEl&&_.r(this.emojiPicker,_.uIe)&&this.emojiPickerEl.updateEmojiCategories()};
_.S.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Os(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.S.handleBackgroundColorStyling=function(){var D;if((D=this.currentCommentOption)==null?0:D.commentBackgroundColorArgb){var C;_.Os(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.e_((C=this.currentCommentOption)==null?void 0:C.commentBackgroundColorArgb)})}else _.Os(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.S.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var D;(D=this.contentEl)==null||D.focus()}};
_.S.onEditButtonClick=function(D){var C=document.getSelection();C&&this.contentEl&&(D.stopPropagation(),D.preventDefault(),C.selectAllChildren(this.contentEl),C.collapseToEnd())};
_.S.onContentDrop=function(D){var C=this;if(D.dataTransfer){D=_.U(D.dataTransfer.items);for(var X=D.next();!X.done;X=D.next())X=X.value,X.kind==="string"&&X.type.match("^text/plain")&&X.getAsString(function(c){var W;(W=C.contentEl)==null||W.appendChild(document.createTextNode(c))})}};
_.S.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.S.getUserGeneratedCommentText=function(){var D,C=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(D=this.contentEl)==null?void 0:D.textContent;return C?C.trim():""};
_.S.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.S.onEmojiSelect=function(D){this.ytdCommentInputEl.onEmojiSelect(D)};
_.$a.Object.defineProperties(WA.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.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 D;return!((D=this.currentCommentOption)==null||!D.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(_.r((D=this.currentCommentOption)==null?void 0:D.chipRenderer,_.VOx)){var C;return _.r((C=this.currentCommentOption)==null?void 0:C.chipRenderer,_.VOx)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var D,C;return((D=this.data)==null?0:D.commentOptionRenderers)?_.r((C=this.data)==null?void 0:C.commentOptionRenderers[this.superThanksSelectedTierEntity.index],YKU):void 0}var X,c;return((X=this.data)==null?0:X.commentOptionRenderers)?_.r((c=this.data)==null?void 0:c.commentOptionRenderers[this.currentCommentOptionIndex],YKU):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.commentDialog,_.yxe))==null?void 0:C.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.commentDialog,_.yxe))==null?void 0:C.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=_.r((D=this.data)==null?void 0:D.commentDialog,_.yxe))==null?void 0:C.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(C=_.r((D=this.data)==null?void 0:D.commentDialog,_.yxe))==null?void 0:C.emojiPicker;if(!_.r(X,_.uIe)||!_.r(X,_.uIe).categories)return!1;D=function(p){return p.emojiPickerCategoryRenderer?p.emojiPickerCategoryRenderer.emojiIds&&p.emojiPickerCategoryRenderer.emojiIds.length>0:p.emojiPickerUpsellCategoryRenderer?p.emojiPickerUpsellCategoryRenderer.emojis&&p.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var c,W;return((c=_.r(X,_.uIe))==null?0:(W=c.categories)==null?0:W.find(D))?!0:!1}}});
WA.prototype.onEmojiSelect=WA.prototype.onEmojiSelect;WA.prototype.dataChanged=WA.prototype.dataChanged;WA.prototype.currentCommentOptionChanged=WA.prototype.currentCommentOptionChanged;_.V([_.m(_.OA),_.z("design:type",Object)],WA.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],WA.prototype,"rendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.kn("#content-dom-if"),_.z("design:type",_.Es)],WA.prototype,"contentDomIfEl",void 0);_.V([_.kn("#content-no-emojis"),_.z("design:type",HTMLElement)],WA.prototype,"contentEl",void 0);_.V([_.kn("#container"),_.z("design:type",HTMLElement)],WA.prototype,"containerEl",void 0);_.V([_.kn("#comment-chip-container"),_.z("design:type",HTMLElement)],WA.prototype,"paidCommentChipContainerEl",void 0);_.V([_.kn("#text-input"),_.z("design:type",HTMLElement)],WA.prototype,"editableTextEl",void 0);
_.V([_.kn("#emoji-button"),_.z("design:type",HTMLElement)],WA.prototype,"emojiButtonEl",void 0);_.V([_.kn("#emoji-picker > yt-emoji-picker-renderer"),_.z("design:type",Object)],WA.prototype,"emojiPickerEl",void 0);_.V([_.kn("#text-input > ytd-comment-input"),_.z("design:type",Object)],WA.prototype,"ytdCommentInputEl",void 0);_.V([_.n(),_.z("design:type",Object)],WA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],WA.prototype,"currentCommentOptionIndex",void 0);
_.V([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AGt}),_.z("design:type",Object)],WA.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.n(),_.z("design:type",Object)],WA.prototype,"isEmojiPickerDisplayed",void 0);_.V([_.n(),_.z("design:type",Object)],WA.prototype,"emojiManager",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],WA.prototype,"isUgcEmpty",void 0);
_.V([_.vr("currentCommentOption"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WA.prototype,"currentCommentOptionChanged",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WA.prototype,"dataChanged",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WA.prototype,"isEmojiYtdCommentInputEnabled",null);
_.V([_.e("data.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"title",null);_.V([_.e("data.authorText"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"channelName",null);_.V([_.e("data.commentOptionRenderers","currentCommentOption"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WA.prototype,"shouldShowPaidCommentChipRenderer",null);
_.V([_.e("data.commentOptionRenderers","currentCommentOption"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"paidCommentChipRenderer",null);_.V([_.e("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"currentCommentOption",null);
_.V([_.e("data.defaultCommentText","superThanksSelectedTierEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"commentText",null);_.V([_.e("data.placeholderText"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"placeholderText",null);_.V([_.e("data.commentDialog.commentDialogRenderer.editableText"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"editableText",null);
_.V([_.e("data.commentDialog.commentDialogRenderer.emojiButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"emojiButton",null);_.V([_.e("data.commentDialog.commentDialogRenderer.emojiPicker"),_.z("design:type",Object),_.z("design:paramtypes",[])],WA.prototype,"emojiPicker",null);
_.V([_.e("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WA.prototype,"isEmojiButtonDisplayed",null);_.V([_.$n("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],WA.prototype,"onEmojiSelect",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],WA);
_.G(WA,"ytd-pdg-comment-preview-renderer",function(){if(v8p!==void 0)return v8p;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return v8p=D},{mode:2});var kqo;var pS=function(){var D=_.w.apply(this,arguments)||this;D.selected=!1;return D};
_.h(pS,_.w);_.S=pS.prototype;_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.S.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.S.dataChanged=function(){this.data&&(_.Us(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Os(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.e_(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.e_(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.S.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.S.onClick=function(){this.logClick()};
_.S.onKeyboardSelect=function(){_.lE(this.hostElement,"tap");this.onClick()};
_.S.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
pS.prototype.onClick=pS.prototype.onClick;pS.prototype.selectedChanged=pS.prototype.selectedChanged;pS.prototype.dataChanged=pS.prototype.dataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],pS.prototype,"componentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.H8),_.z("design:type",Object)],pS.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.m(_.zA),_.z("design:type",Object)],pS.prototype,"ironSelectableBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],pS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],pS.prototype,"shownThumbnail",void 0);_.V([_.n(),_.z("design:type",Object)],pS.prototype,"basePriceText",void 0);_.V([_.n(),_.z("design:type",Object)],pS.prototype,"purchaseCommand",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],pS.prototype,"selected",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pS.prototype,"dataChanged",null);_.V([_.vr("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pS.prototype,"selectedChanged",null);_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pS.prototype,"onClick",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],pS);
_.G(pS,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(kqo!==void 0)return kqo;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return kqo=D},{mode:1});var SK=function(){var D=_.w.apply(this,arguments)||this;D.selectedItemIndex=0;D.buyButtonDisabled=!1;return D};
_.h(SK,_.w);_.S=SK.prototype;
_.S.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]]"}}}}}};
_.S.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var D;var C=(D=_.r(this.data.colorSlider,NIU))==null?void 0:D.notches[this.selectedItemIndex].purchaseCommand}else{var X;C=(X=_.r(this.data.selectableItemButtons[this.selectedItemIndex],nMX))==null?void 0:X.purchaseCommand}if(C){D=_.r(C,_.suq);D.productData||(D.productData={});var c;D.productData={pdgData:{commentMessageText:(c=this.commentPreviewRenderer)==null?void 0:c.getUserGeneratedCommentText()}};
_.lE(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(C)}}};
_.S.dataChanged=function(){if(this.data){_.Qd.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.TZ5(_.Qd,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Qd.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var D;this.buyButtonDisabled=!((D=_.r(this.data.commentPreview,y1t))==null||!D.placeholderText);this.updatePriceSelectorStatus();var C;if((C=this.data)==null?0:C.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;D=[];this.data.preloadImages&&(D=this.data.preloadImages);
D=D.map(function(X){return _.XA(X.thumbnails,1920)});
D=_.U(D);for(C=D.next();!C.done;C=D.next())(C=C.value)&&_.ytd(C).thenCatch(function(){_.fQ(Error("Jl"))})}};
_.S.superThanksSelectedTierEntityChanged=function(){var D;(this==null?void 0:(D=this.superThanksSelectedTierEntity)==null?void 0:D.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.S.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.S.updatePriceSelectorStatus=function(){this.isColorSlider?(_.SY(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.SY(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.SY(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.SY(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.S.closeBuyFlow=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.S.onUserGeneratedContentChanged=function(){var D;this.buyButtonDisabled=!((D=this.commentPreviewRenderer)==null?0:D.getUserGeneratedCommentText())};
_.S.updateSelectedItemIndexFromBinding=function(D){this.selectedItemIndex=D.detail.value};
_.$a.Object.defineProperties(SK.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disclaimerText)}}});
SK.prototype.onUserGeneratedContentChanged=SK.prototype.onUserGeneratedContentChanged;SK.prototype.closeBuyFlow=SK.prototype.closeBuyFlow;SK.prototype.selectedItemIndexChanged=SK.prototype.selectedItemIndexChanged;SK.prototype.superThanksSelectedTierEntityChanged=SK.prototype.superThanksSelectedTierEntityChanged;SK.prototype.dataChanged=SK.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],SK.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],SK.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],SK.prototype,"selectedItemIndex",void 0);_.V([_.n(),_.z("design:type",Boolean)],SK.prototype,"isColorSlider",void 0);
_.V([_.n(),_.z("design:type",Object)],SK.prototype,"buyButtonDisabled",void 0);_.V([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AGt}),_.z("design:type",Object)],SK.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.kn("ytd-pdg-comment-preview-renderer"),_.z("design:type",Object)],SK.prototype,"commentPreviewRenderer",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],SK.prototype,"ytdReduxBehavior",void 0);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SK.prototype,"dataChanged",null);_.V([_.vr("superThanksSelectedTierEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SK.prototype,"superThanksSelectedTierEntityChanged",null);_.V([_.vr("selectedItemIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SK.prototype,"selectedItemIndexChanged",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SK.prototype,"closeBuyFlow",null);_.V([_.$n("ytd-pdg-user-generated-comment-changed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SK.prototype,"onUserGeneratedContentChanged",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SK.prototype,"isDisclaimerTextShown",null);
_.V([_.yj({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],SK);
_.G(SK,"yt-super-vod-buy-flow-content-renderer",function(){if(PZt!==void 0)return PZt;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return PZt=D},{mode:1});var uq1;var UQ=function(){var D=_.w.apply(this,arguments)||this;D.lottieAnimationRef={};return D};
_.h(UQ,_.w);_.S=UQ.prototype;_.S.created=function(){_.aZ.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Pr(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.S.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.lE(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.S.detached=function(){this.autoCloseJobId&&_.qX.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Pr(this,this.onPopupIronOverlayOpened))};
_.S.dataChanged=function(){var D=this;this.data&&this.data.autoCloseDelay&&(_.DS(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.pI(_.qX,function(){D.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Os(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.S.onDOMLoadedLottie=function(){var D=this,C,X,c=Number((C=this.data)==null?void 0:(X=C.autoCloseDelay)==null?void 0:X.seconds)||0;this.fadeOutJobId=_.pI(_.qX,function(){D.lottiePlayerEl.classList.add("fadeout")},(c-.25)*1E3);
this.autoCloseJobId=_.pI(_.qX,function(){D.closePopup()},c*1E3)};
_.S.openPopup=function(){this.ironOverlayBehavior.open()};
_.S.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.DS(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.o7(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.iX().resolve(_.uX).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.qX.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.qX.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.S.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var D,C;(D=this.lottieAnimationRef)==null||(C=D.lottieEl)==null||C.destroy();D=this.data.lottie;var X,c;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:D.url+"_"+Math.random(),path:D.url,autoplay:!0,loop:(c=(X=D.settings)==null?void 0:X.loop)!=null?c:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.$a.Object.defineProperties(UQ.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var D,C;return!!((D=this.data)==null?0:(C=D.lottie)==null?0:C.url)}}});
UQ.prototype.maybeInitializeLottie=UQ.prototype.maybeInitializeLottie;UQ.prototype.dataChanged=UQ.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UQ.prototype,"rendererBehavior",void 0);_.V([_.m(_.$O),_.z("design:type",Object)],UQ.prototype,"ironOverlayBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UQ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],UQ.prototype,"lottiePlayerProps",void 0);
_.V([_.n(),_.z("design:type",Object)],UQ.prototype,"lottieAnimationRef",void 0);_.V([_.kn("ytd-lottie-player"),_.z("design:type",HTMLElement)],UQ.prototype,"lottiePlayerEl",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UQ.prototype,"dataChanged",null);_.V([_.e("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UQ.prototype,"hasLottieAnimation",null);
_.V([_.vr("data.lottie.url"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UQ.prototype,"maybeInitializeLottie",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],UQ);
_.G(UQ,"ytd-desktop-image-overlay-renderer",function(){if(uq1!==void 0)return uq1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return uq1=D},{mode:1});var Qxo;var gS=function(){return _.w.apply(this,arguments)||this};
_.h(gS,_.w);_.S=gS.prototype;_.S.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"}}}}};
_.S.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",_.Pr(this,this.closePopup))};
_.S.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Pr(this,this.closePopup))};
_.S.dataChanged=function(){_.Ct(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.r(this.data.header,two)&&(this.hasBackgroundBanner=!!_.r(this.data.header,two).backgroundBanner)};
_.S.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Pr(this,this.closePopup))};
_.S.closePopup=function(){this.data&&this.data.onCloseCommand&&_.cE(this.hostElement,[this.data.onCloseCommand])};
gS.prototype.handleBuyflowSelectionSubmitted=gS.prototype.handleBuyflowSelectionSubmitted;gS.prototype.dataChanged=gS.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],gS.prototype,"data",void 0);
_.V([_.n({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],gS.prototype,"hasBackgroundBanner",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gS.prototype,"dataChanged",null);_.V([_.$n("yt-pdg-buy-flow-selection-submitted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gS.prototype,"handleBuyflowSelectionSubmitted",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],gS);
_.G(gS,"ytd-pdg-buy-flow-renderer",function(){if(Qxo!==void 0)return Qxo;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Qxo=D},{mode:1});var Bs1;var aY=function(){var D=_.w.apply(this,arguments)||this;D.isOpen=!1;D.isPlaylistCreated=!1;return D};
_.h(aY,_.w);_.S=aY.prototype;_.S.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.S.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.lE(this.hostElement,"yt-refit")};
_.S.onCreateTap=function(){var D=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.cE(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(C,X){if(!_.b("killswitch_ep_in_create_playlist_response")&&(X==null?0:X.actions))for(C=_.U(X.actions),X=C.next();!X.done;X=C.next())X=X.value,_.r(X,_.E3)&&D.ytComponentBehavior.resolveCommand(X)}}]),this.isPlaylistCreated=!0)};
_.S.onKeydown=function(D){if(D.keyCode===13)this.onCreateTap()};
_.S.onServiceRequestCompleted=function(D){D.stopPropagation();_.DS(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.S.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
aY.prototype.onServiceRequestCompleted=aY.prototype.onServiceRequestCompleted;aY.prototype.onKeydown=aY.prototype.onKeydown;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],aY.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],aY.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],aY.prototype,"isOpen",void 0);
_.V([_.n(),_.z("design:type",Object)],aY.prototype,"isPlaylistCreated",void 0);_.V([_.n({value:{REQUIRED_LABEL:_.I7("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.I7("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.z("design:type",Object)],aY.prototype,"addToStrings",void 0);_.V([_.n({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.z("design:type",Array)],aY.prototype,"privacyBadge",void 0);
_.V([_.kn("#privacy-input"),_.z("design:type",Object)],aY.prototype,"privacyInput",void 0);_.V([_.kn("#name-input"),_.z("design:type",Object)],aY.prototype,"nameInput",void 0);_.V([_.$n("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],aY.prototype,"onKeydown",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],aY.prototype,"onServiceRequestCompleted",null);
_.V([_.yj({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],aY);
_.G(aY,"ytd-add-to-playlist-create-renderer",function(){if(Bs1!==void 0)return Bs1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Bs1=D},{mode:1});var bcG;var rjU;var IY=function(){var D=_.w.apply(this,arguments)||this;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.h(IY,_.w);IY.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
IY.prototype.onCheckboxChange=function(D){var C=this;this.data&&_.Hr(this,"yt-playlist-checkbox-changed",function(){var X=_.qz(D).checked?C.data.addToPlaylistServiceEndpoint:C.data.removeFromPlaylistServiceEndpoint;X&&_.iX().resolve(_.uX).resolveCommand(X,{form:{element:C.hostElement}});_.b("dl_playlist_killswitch")||C.transferState!=="TRANSFER_STATE_UNKNOWN"&&C.transferState!=="TRANSFER_STATE_FAILED"&&C.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:C.data.playlistId,action:"ACTION_SYNC"}})},
100)};
IY.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
IY.prototype.dataChanged=IY.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],IY.prototype,"data",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],IY.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);_.V([_.kn("#checkbox"),_.z("design:type",HTMLInputElement)],IY.prototype,"checkbox",void 0);
_.V([_.n({selector:_.yZ,selectorArgs:["data.playlistId"]}),_.z("design:type",String)],IY.prototype,"transferState",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IY.prototype,"dataChanged",null);_.V([_.yj({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],IY);
_.G(IY,"ytd-playlist-add-to-option-renderer",function(){if(rjU!==void 0)return rjU;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rjU=D},{mode:1});var KBo=_.F(function(D){var C=D.data;return _.A("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.A("div",null,_.A(_.QG,{text:function(){return C().title}})),_.A(_.v,{cond:function(){return C().subtitle},
then:function(X){return _.A("div",{class:"ytdMenuTitleRendererSubtitle"},_.A(_.QG,{text:X}))}}))},"zj");
KBo.idomCompat=!0;_.CI(KBo,"ytd-menu-title-renderer",{props:{data:_.Bm}});var OQ=function(){var D=_.w.apply(this,arguments)||this;D.addToStrings={ADD_TO_DROPDOWN_LABEL:_.I7("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};D.closeButtonAriaLabel=_.I7("SBOX_INAPPROPRIATE_CANCEL");D.dialog=_.b("desktop_add_to_playlist_renderer_dialog_popup");return D};
_.h(OQ,_.w);_.S=OQ.prototype;_.S.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"}}}};
_.S.onPopupOpened=function(){_.gi(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.S.onPopupClosed=function(){_.gi(this.playlists,"scrollable",!1)};
_.S.computeAriaLabel=function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.U(this.data.actions);for(var C=D.next();!C.done;C=D.next())if(C=C.value,C.menuTitleRenderer)return _.Mh(C.menuTitleRenderer.title)}};
_.S.onTapClose=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.$a.Object.defineProperties(OQ.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.U(this.data.actions);for(var C=D.next();!C.done;C=D.next())if(C=C.value,C.menuTitleRenderer)return C.menuTitleRenderer}return!1}}});
OQ.prototype.onPopupClosed=OQ.prototype.onPopupClosed;OQ.prototype.onPopupOpened=OQ.prototype.onPopupOpened;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],OQ.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],OQ.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],OQ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],OQ.prototype,"addToStrings",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.z("design:type",String)],OQ.prototype,"ariaLabel",void 0);_.V([_.n(),_.z("design:type",String)],OQ.prototype,"closeButtonAriaLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],OQ.prototype,"dialog",void 0);
_.V([_.kn("#playlists"),_.z("design:type",HTMLElement)],OQ.prototype,"playlists",void 0);_.V([_.kn("ytd-add-to-playlist-create-renderer"),_.z("design:type",Object)],OQ.prototype,"createRenderer",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],OQ.prototype,"menuTitleRenderer",null);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OQ.prototype,"onPopupOpened",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OQ.prototype,"onPopupClosed",null);_.V([_.yj({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],OQ);
_.G(OQ,"ytd-add-to-playlist-renderer",function(){if(bcG!==void 0)return bcG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return bcG=D},{mode:1});var hEG;var AK=function(){var D=_.w.apply(this,arguments)||this;D.isPlaylistEditComplete=!1;D.isCollabEngagementDisabled=!1;D.closeButtonAriaLabel=_.I7("SBOX_INAPPROPRIATE_CANCEL");D.saveButton={title:_.I7("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"};D.onValueChanged=function(){D.updateSaveButtonState();D.computeCollabEngagementDisabled()};
return D};
_.h(AK,_.w);_.S=AK.prototype;_.S.attached=function(){this.JSC$21070_scroller&&(this.JSC$21070_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21070_scroller.attached&&typeof this.JSC$21070_scroller.attached==="function"&&this.JSC$21070_scroller.attached())};
_.S.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.S.onPopupClosed=function(){this.reset()};
_.S.close=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.S.onClickSave=function(){var D=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var C=[];this.nameInput.value!==null&&C.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&C.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var X=Number(this.privacyInput.value);isNaN(X)||C.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:X})}this.votingInput.value!==null&&(X=this.votingInput.value)&&C.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:X});if(C.length>0){var c;_.r((c=this.data)==null?void 0:c.updateSettingsEndpoint,_.gX).actions=C;var W;if((W=this.data)==null?0:W.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){D.close()}}}),this.isPlaylistEditComplete=!0}}};
_.S.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
_.S.computeEditorData=function(D){var C,X;return D==null?void 0:(C=D.sections)==null?void 0:(X=C[0])==null?void 0:X.playlistSettingsEditorCasualSectionRenderer};
_.S.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.S.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}}}}}};
_.S.computeAriaLabel=function(){var D,C,X,c=(D=this.data)==null?void 0:(C=D.sections)==null?void 0:(X=C[0])==null?void 0:X.playlistSettingsEditorCasualSectionRenderer;return _.Mh(c==null?void 0:c.title)};
_.S.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"}))};
_.S.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.S.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.S.isNameChanged=function(){var D,C,X;return(((D=this.editorData)==null?void 0:(C=D.name)==null?void 0:(X=C.textInputFormFieldRenderer)==null?void 0:X.value)||"")!==(this.nameInput.value||"")};
_.S.isDescriptionChanged=function(){var D,C,X;return(((D=this.editorData)==null?void 0:(C=D.description)==null?void 0:(X=C.textInputFormFieldRenderer)==null?void 0:X.value)||"")!==(this.descriptionInput.value||"")};
_.S.isPrivacyChanged=function(){var D,C,X,c,W,p,g,a;return((g=(D=this.editorData)==null?void 0:(C=D.privacy)==null?void 0:(X=C.dropdownFormFieldRenderer)==null?void 0:(c=X.dropdown)==null?void 0:(W=c.dropdownRenderer)==null?void 0:(p=W.entries)==null?void 0:p.find(function(O){var P;return O==null?void 0:(P=O.privacyDropdownItemRenderer)==null?void 0:P.isSelected}))==null?void 0:(a=g.privacyDropdownItemRenderer)==null?void 0:a.int32Value)!==this.privacyInput.value};
_.S.isVotingChanged=function(){var D,C,X,c,W,p,g,a;return((g=(D=this.editorData)==null?void 0:(C=D.voting)==null?void 0:(X=C.dropdownFormFieldRenderer)==null?void 0:(c=X.dropdown)==null?void 0:(W=c.dropdownRenderer)==null?void 0:(p=W.entries)==null?void 0:p.find(function(O){var P;return O==null?void 0:(P=O.privacyDropdownItemRenderer)==null?void 0:P.isSelected}))==null?void 0:(a=g.privacyDropdownItemRenderer)==null?void 0:a.int32Value)!==this.votingInput.value};
AK.prototype.onPopupClosed=AK.prototype.onPopupClosed;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],AK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],AK.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],AK.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],AK.prototype,"data",void 0);_.V([_.n({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.z("design:type",Array)],AK.prototype,"privacyBadge",void 0);_.V([_.n({computed:"computeEditorData(data)"}),_.z("design:type",Object)],AK.prototype,"editorData",void 0);_.V([_.n(),_.z("design:type",Object)],AK.prototype,"isPlaylistEditComplete",void 0);_.V([_.n(),_.z("design:type",Object)],AK.prototype,"isCollabEngagementDisabled",void 0);
_.V([_.n({value:{REQUIRED_LABEL:_.I7("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.I7("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.z("design:type",Object)],AK.prototype,"addToStrings",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.z("design:type",String)],AK.prototype,"ariaLabel",void 0);_.V([_.n(),_.z("design:type",String)],AK.prototype,"closeButtonAriaLabel",void 0);
_.V([_.n(),_.z("design:type",Object)],AK.prototype,"saveButton",void 0);_.V([_.kn("#name-input"),_.z("design:type",Object)],AK.prototype,"nameInput",void 0);_.V([_.kn("#description-input"),_.z("design:type",Object)],AK.prototype,"descriptionInput",void 0);_.V([_.kn("#privacy-input"),_.z("design:type",Object)],AK.prototype,"privacyInput",void 0);_.V([_.kn("#voting-input"),_.z("design:type",Object)],AK.prototype,"votingInput",void 0);
_.V([_.kn("#scroller"),_.z("design:type",Object)],AK.prototype,"JSC$21070_scroller",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AK.prototype,"onPopupClosed",null);_.V([_.n(),_.z("design:type",Object)],AK.prototype,"onValueChanged",void 0);_.V([_.yj({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],AK);
_.G(AK,"ytd-playlist-settings-editor-renderer",function(){if(hEG===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);hEG=D}D=hEG;return D},{mode:1});var x53;_.sI("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var PA=function(){return _.w.apply(this,arguments)||this};
_.h(PA,_.w);_.S=PA.prototype;_.S.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}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.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 D=this.get("data.nextButton.buttonRenderer.navigationEndpoint");D&&(this.nextNavigationEndpoint=D,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.S.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 D={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",D)}}};
_.S.onPopupOpened=function(D){D.detail!==this&&D.detail!==this.hostElement||!_.b("enable_premium_voluntary_pause")||_.DS(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.S.onNextButtonTap=function(){var D=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);D&&this.ytdOpenPopupBehavior.openPopup(D)};
_.S.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
PA.prototype.onPopupOpened=PA.prototype.onPopupOpened;PA.prototype.onSelectedResponseIndexChange=PA.prototype.onSelectedResponseIndexChange;PA.prototype.dataChanged=PA.prototype.dataChanged;_.V([_.m(_.eu),_.z("design:type",Object)],PA.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],PA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],PA.prototype,"selectedResponseIndex",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PA.prototype,"dataChanged",null);_.V([_.vr("selectedResponseIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PA.prototype,"onSelectedResponseIndexChange",null);
_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],PA.prototype,"onPopupOpened",null);_.V([_.yj({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],PA);
_.G(PA,"ytd-red-cancel-survey-renderer",function(){if(x53!==void 0)return x53;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return x53=D},{mode:1});var LBN;var $H=function(){var D=_.w.apply(this,arguments)||this;D.closeButtonAriaLabel=_.I7("SBOX_INAPPROPRIATE_CANCEL");return D};
_.h($H,_.w);$H.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
$H.prototype.onClickClose=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$H.prototype,"rendererStamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$H.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],$H.prototype,"closeButtonAriaLabel",void 0);_.V([_.yj({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],$H);
_.G($H,"ytd-search-filter-options-dialog-renderer",function(){if(LBN!==void 0)return LBN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return LBN=D},{mode:1});var sx3;var xst=function(){return function(D){D=D.availabilityType;return D===void 0||D==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||D==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var iv=function(){var D=_.w.apply(this,arguments)||this;D.qualityOptions=[];D.upsellOptions=[];D.showUpsellSection=!1;D.rememberSettingsChecked=!1;return D};
_.h(iv,_.w);_.S=iv.prototype;_.S.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}}}}};
_.S.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.S.updateQualityOptions=function(){if(this.formats===void 0)_.DS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var D=[],C=[];this.showUpsellSection=!1;for(var X=_.U(this.formats),c=X.next();!c.done;c=X.next())(c=c.value)&&(c.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?C.push(c):D.push(c));D.length&&(this.qualityOptions=hJ1(D));C.length&&(this.showUpsellSection=!0,this.upsellOptions=hJ1(C))}};
_.S.updateRememberString=function(){if(this.downloadQualityPickerEntity)var D=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var C;D=(C=this.data)==null?void 0:C.premiumRememberSettingString}else{var X;D=(X=this.data)==null?void 0:X.rememberSettingString}D=D===void 0?_.I7("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):D;this.rememberSettingsCheckboxRenderer={title:_.Ce(D),disabled:!1}};
_.S.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.$a.Object.defineProperties(iv.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
iv.prototype.updateRememberString=iv.prototype.updateRememberString;iv.prototype.updateQualityOptions=iv.prototype.updateQualityOptions;iv.prototype.dataChanged=iv.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],iv.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],iv.prototype,"data",void 0);
_.V([_.m(_.OA),_.z("design:type",Object)],iv.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Boolean)],iv.prototype,"selectedUpsellQuality",void 0);_.V([_.n({computed:"computeIcon_(data.premiumIcon)",value:""}),_.z("design:type",String)],iv.prototype,"premiumIcon",void 0);_.V([_.n({selector:p0k,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.z("design:type",Object)],iv.prototype,"downloadQualityPickerEntity",void 0);
_.V([_.n(),_.z("design:type",Array)],iv.prototype,"qualityOptions",void 0);_.V([_.n(),_.z("design:type",Array)],iv.prototype,"upsellOptions",void 0);_.V([_.n(),_.z("design:type",Object)],iv.prototype,"showUpsellSection",void 0);_.V([_.n(),_.z("design:type",Object)],iv.prototype,"rememberSettingsCheckboxRenderer",void 0);_.V([_.kn("#remember-settings"),_.z("design:type",HTMLInputElement)],iv.prototype,"rememberSettingsCheckbox",void 0);
_.V([_.n(),_.z("design:type",Object)],iv.prototype,"rememberSettingsChecked",void 0);_.V([_.n(),_.z("design:type",Function)],iv.prototype,"onRememberSettingsCheckedChanged",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iv.prototype,"dataChanged",null);_.V([_.vr("downloadQualityPickerEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iv.prototype,"updateQualityOptions",null);
_.V([_.vr("selectedUpsellQuality"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iv.prototype,"updateRememberString",null);_.V([_.yj({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],iv);
_.G(iv,"ytd-download-quality-selector-content",function(){if(sx3!==void 0)return sx3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return sx3=D},{mode:1});var m5U;var kH=function(){var D=_.w.apply(this,arguments)||this;D.selectedUpsellQuality=!1;D.qualityOptions=[];D.useUpsellDismissAlternate=_.b("use_not_now_dl_upsell_dismiss_cta");D.shouldShowAlternateUpsellDimiss=!1;D.rememberSettings=!1;D.rememberSettingsChecked=!1;D.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};D.rememberSettingsCheckedChanged=function(C){D.rememberSettingsChecked=C};
return D};
_.h(kH,_.w);_.S=kH.prototype;
_.S.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(_.I7("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(_.I7("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(_.I7("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ce(_.I7("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.S.updateQualityOptions=function(){this.formats===void 0?_.DS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=hJ1(this.formats)};
_.S.onQualityOptionsSelect=function(D){if(this.qualityOptions&&D){D!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var C=_.U(this.qualityOptions.entries()),X=C.next();!X.done;X=
C.next()){X=_.U(X.value);var c=X.next().value;X=X.next().value;var W=void 0,p=void 0;if(((W=X)==null?void 0:(p=W.settingsRadioOptionRenderer)==null?void 0:p.id)===D){this.selectedQualityIndex=c;D=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((D=this.formats[c])==null?void 0:D.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.S.onClickSubmit=function(){var D;if((D=this.downloadButtonRenderer)==null||!D.isDisabled){var C,X;D=(X=(C=this.data)==null?void 0:C.onSubmitEndpoint)!=null?X:{};var c,W;if(this.formats&&(((c=_.r(D,_.vX))==null?0:c.videoId)||((W=_.r(D,_.iK))==null?0:W.playlistId))){var p,g,a,O,P,k;C={formatType:(O=(p=this.formats)==null?void 0:(g=p[(a=this.selectedQualityIndex)!=null?a:0])==null?void 0:g.format)!=null?O:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(P=this.getOfflineEndpoint(D))==null?void 0:(k=P.actionParams)==null?void 0:k.settingsAction)};this.getOfflineEndpoint(D).actionParams=C;this.ytComponentBehavior.resolveCommand(D)}_.DS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.S.onClickUpsell=function(){var D;if((D=this.upsellButtonRenderer)==null||!D.isDisabled){var C,X;D=(X=(C=this.data)==null?void 0:C.upsellEndpoint)!=null?X:{};this.ytComponentBehavior.resolveCommand(D);_.DS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);C="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var c,W,p,g;C=(g=(c=this.formats)==null?void 0:(W=c[(p=this.selectedQualityIndex)!=null?p:0])==null?void 0:W.format)!=null?g:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:C}})}};
_.S.onClickClose=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.S.getOfflineSettingsAction=function(D,C){return D?C===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":C:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.S.getOfflineEndpoint=function(D){return _.r(D,_.vX)?_.r(D,_.vX):_.r(D,_.iK)};
_.$a.Object.defineProperties(kH.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Ce(_.I7("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
kH.prototype.updateQualityOptions=kH.prototype.updateQualityOptions;kH.prototype.dataChanged=kH.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],kH.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],kH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Number)],kH.prototype,"selectedQualityIndex",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"selectedUpsellQuality",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],kH.prototype,"ytdReduxBehavior",void 0);
_.V([_.n({selector:p0k,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.z("design:type",Object)],kH.prototype,"downloadQualityPickerEntity",void 0);_.V([_.n(),_.z("design:type",Array)],kH.prototype,"qualityOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],kH.prototype,"useUpsellDismissAlternate",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.V([_.n(),_.z("design:type",Object)],kH.prototype,"downloadButtonRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"upsellButtonRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"cancelButtonRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"upsellCancelButtonRenderer",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"rememberSettings",void 0);_.V([_.n(),_.z("design:type",Object)],kH.prototype,"rememberSettingsChecked",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kH.prototype,"dataChanged",null);_.V([_.vr("downloadQualityPickerEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kH.prototype,"updateQualityOptions",null);_.V([_.yj({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],kH);
_.G(kH,"ytd-download-quality-selector-renderer",function(){if(m5U!==void 0)return m5U;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return m5U=D},{mode:1});var eEY;var uv=function(){return _.w.apply(this,arguments)||this};
_.h(uv,_.w);uv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uv.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],uv.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.infoIcon)"}),_.z("design:type",Object)],uv.prototype,"infoIcon",void 0);
_.V([_.n({computed:"computeIcon_(data.warningIcon)"}),_.z("design:type",Object)],uv.prototype,"warningIcon",void 0);_.V([_.yj({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],uv);
_.G(uv,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(eEY!==void 0)return eEY;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return eEY=D},{mode:1});var E8k;var Qp=function(){return _.w.apply(this,arguments)||this};
_.h(Qp,_.w);Qp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Qp.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Qp.prototype,"data",void 0);_.V([_.yj({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Qp);
_.G(Qp,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(E8k!==void 0)return E8k;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return E8k=D},{mode:1});var tI1;var BA=function(){return _.w.apply(this,arguments)||this};
_.h(BA,_.w);BA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BA.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"}}}}};
BA.prototype.onServiceRequestSentOrCompleted=function(D,C){C&&C.actions&&C.actions.length>0&&_.DS(this.hostElement,"yt-close-popup-action",[this.is])};
BA.prototype.onServiceRequestSentOrCompleted=BA.prototype.onServiceRequestSentOrCompleted;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],BA.prototype,"data",void 0);
_.V([_.$n("yt-service-request-completed"),_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],BA.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.yj({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],BA);
_.G(BA,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(tI1!==void 0)return tI1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return tI1=D},{mode:1});var Nsk;var bv=function(){var D=_.w.apply(this,arguments)||this;D.submitButtonDisabled=!0;return D};
_.h(bv,_.w);_.S=bv.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.S.onDataChanged=function(){var D,C,X;if(((D=this.data)==null?void 0:(C=D.confirmButton)==null?void 0:(X=C.buttonRenderer)==null?void 0:X.isDisabled)!==void 0){var c,W,p;this.submitButtonDisabled=(c=this.data)==null?void 0:(W=c.confirmButton)==null?void 0:(p=W.buttonRenderer)==null?void 0:p.isDisabled}};
_.S.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.S.updateSubmitButtonDisabledFromBinding=function(D){this.submitButtonDisabled=D.detail.value};
_.S.updateSubmitButtonDisabledFromConfirmCheckbox=function(D){this.submitButtonDisabled=!D.detail.value};
bv.prototype.onDataChanged=bv.prototype.onDataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bv.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],bv.prototype,"submitButtonDisabled",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bv.prototype,"onDataChanged",null);_.V([_.yj({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],bv);
_.G(bv,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Nsk!==void 0)return Nsk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Nsk=D},{mode:1});var YDp;var rS=function(){return _.w.apply(this,arguments)||this};
_.h(rS,_.w);_.$a.Object.defineProperties(rS.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D,C,X;return((D=this.data)==null?void 0:D.title)+" "+((C=this.data)==null?void 0:C.metadataPrimary)+" "+((X=this.data)==null?void 0:X.metadataSecondary)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],rS.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],rS.prototype,"data",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],rS.prototype,"ariaLabel",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],rS);
_.G(rS,"ytd-compact-product-list-item-renderer",function(){if(YDp!==void 0)return YDp;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return YDp=D},{mode:1});var yjU;var KS=function(){return _.w.apply(this,arguments)||this};
_.h(KS,_.w);KS.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]]"}}}}}};
_.$a.Object.defineProperties(KS.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],KS.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],KS.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],KS);
_.G(KS,"ytd-compact-product-list-renderer",function(){if(yjU!==void 0)return yjU;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return yjU=D},{mode:1});var n8t;var hK=function(){return _.w.apply(this,arguments)||this};
_.h(hK,_.w);_.S=hK.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.S.getBackgroundUrl=function(){var D=this.get("data.headerImage.thumbnails");return D?"url("+_.XA(D,this.hostElement.clientWidth)+")":""};
_.S.onDataChanged=function(){var D=this.getBackgroundUrl();D&&(this.header.style.backgroundImage=D);D=_.LN();var C=_.xr(),X=this.get("data.trackingParams");X&&C&&D&&_.F_(D,C,_.bO(X));D=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(C=D.next();!C.done;C=D.next())C.value.onShow()};
_.S.onPopupClosed=function(D){_.qz(D).localName==="ytd-membership-post-cancel-renderer"&&_.DS(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
hK.prototype.onPopupClosed=hK.prototype.onPopupClosed;hK.prototype.onDataChanged=hK.prototype.onDataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hK.prototype,"data",void 0);_.V([_.kn("#header"),_.z("design:type",HTMLDivElement)],hK.prototype,"header",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hK.prototype,"onDataChanged",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hK.prototype,"onPopupClosed",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],hK);
_.G(hK,"ytd-membership-post-cancel-renderer",function(){if(n8t!==void 0)return n8t;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return n8t=D},{mode:1});var wSN;var xH=function(){return _.w.apply(this,arguments)||this};
_.h(xH,_.w);xH.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
xH.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],xH.prototype,"data",void 0);_.V([_.kn("ytd-feedback-survey-renderer"),_.z("design:type",Object)],xH.prototype,"feedbackSurveyRenderer",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],xH);
_.G(xH,"ytd-sponsorship-confirm-cancel-content",function(){if(wSN!==void 0)return wSN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return wSN=D},{mode:1});var FBN;var LS=function(){var D=_.w.apply(this,arguments)||this;D.maybeSubmitFeedback=function(){D.content&&D.content.maybeSubmitFeedback()};
return D};
_.h(LS,_.w);_.S=LS.prototype;_.S.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.S.onYtPopupOpened=function(D,C){C===this&&this.data&&this.data.onOpenCommands&&_.o7(this.hostElement,this.data.onOpenCommands,this.hostElement);_.DS(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.S.onYtPopupClosed=function(D,C){(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.o7(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.S.onYtServiceRequestCompleted=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.S.onYtServiceRequestError=function(D){_.JG(this.hostElement,D.detail.error.message)};
_.S.onDataChanged=function(){if(this.isAttached){var D=this.backgroundUrl;D&&(_.SY(this.hostElement).querySelector("#header").style.backgroundImage=D)}};
_.$a.Object.defineProperties(LS.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return D?"url("+_.XA(D,this.hostElement.clientWidth)+")":""}}});
LS.prototype.onDataChanged=LS.prototype.onDataChanged;LS.prototype.onYtServiceRequestError=LS.prototype.onYtServiceRequestError;LS.prototype.onYtServiceRequestCompleted=LS.prototype.onYtServiceRequestCompleted;LS.prototype.onYtPopupClosed=LS.prototype.onYtPopupClosed;LS.prototype.onYtPopupOpened=LS.prototype.onYtPopupOpened;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],LS.prototype,"data",void 0);_.V([_.n({value:function(){return _.I7("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],LS.prototype,"closeButtonAriaLabel",void 0);_.V([_.kn("#scrollable"),_.z("design:type",Object)],LS.prototype,"scrollable",void 0);_.V([_.kn("ytd-sponsorship-confirm-cancel-content"),_.z("design:type",Object)],LS.prototype,"content",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],LS.prototype,"onYtPopupOpened",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],LS.prototype,"onYtPopupClosed",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],LS.prototype,"onYtServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],LS.prototype,"onYtServiceRequestError",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LS.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],LS);
_.G(LS,"ytd-sponsorship-confirm-cancel-renderer",function(){if(FBN!==void 0)return FBN;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return FBN=D},{mode:_.Wc("kevlar_poly_si_batch_j081")?1:2});var Zc3;var sQ=function(){return _.w.apply(this,arguments)||this};
_.h(sQ,_.w);sQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],sQ.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],sQ);
_.G(sQ,"ytd-sponsorships-celebration-content",function(){if(Zc3!==void 0)return Zc3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Zc3=
D},{mode:1});var Gqo;var VIU=_.q8(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),mg=function(){var D=_.w.apply(this,arguments)||this;D.scriptsAppended=!1;D.useFullWidthPrimaryButton=!1;D.buttonOverrides={type:"tonal",style:"overlay-dark"};return D};
_.h(mg,_.w);_.S=mg.prototype;_.S.dataChanged=function(){var D;this.useFullWidthPrimaryButton=!((D=this.data)==null||!D.useFullWidthPrimaryButton)};
_.S.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:_.b("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.onDataChanged=function(){var D;(D=this.header)==null||D.style.setProperty("background-color",this.backgroundColor);if(D=this.headerImageUrl){var C;(C=this.header)==null||C.style.setProperty("background-image",D)}C=_.LN(4);D=_.xr(4);var X=this.get("data.trackingParams");if(X&&D&&C){var c=_.bO(X);_.F_(C,D,c);_.b("combine_ve_grafts")?_.iO().graftServerVe(X,D,4):_.F_(C,D,c)}C=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(D=C.next();!D.done;D=C.next())D.value.onShow();if(C=this.get("data.gtmId"))_.lP(C,
_.q6("GL","")),this.setupConversionTracking()};
_.S.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("script");_.Uu(D,_.pK(VIU.join("")));document.head.appendChild(D);D=document.createElement("noscript");D.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(D);this.scriptsAppended=!0}};
_.S.onPopupClosed=function(D){if(_.qz(D).localName==="ytd-sponsorships-celebration-renderer"){_.DS(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var C;this.data&&((C=this.data)==null?0:C.dismissCommand)&&_.I3.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.$a.Object.defineProperties(mg.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.e_(D)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return D?"url("+_.XA(D,this.hostElement.getBoundingClientRect().width)+")":""}}});
mg.prototype.onPopupClosed=mg.prototype.onPopupClosed;mg.prototype.onDataChanged=mg.prototype.onDataChanged;mg.prototype.dataChanged=mg.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],mg.prototype,"data",void 0);
_.V([_.kn("#header"),_.z("design:type",HTMLElement)],mg.prototype,"header",void 0);_.V([_.n(),_.z("design:type",Object)],mg.prototype,"scriptsAppended",void 0);_.V([_.n({type:Boolean,reflectToAttribute:!0}),_.z("design:type",Object)],mg.prototype,"useFullWidthPrimaryButton",void 0);_.V([_.n(),_.z("design:type",Object)],mg.prototype,"buttonOverrides",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mg.prototype,"dataChanged",null);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mg.prototype,"onDataChanged",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],mg.prototype,"onPopupClosed",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],mg);
_.G(mg,"ytd-sponsorships-celebration-renderer",function(){if(Gqo!==void 0)return Gqo;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return Gqo=D},{mode:1});var Ts1;var eK=function(){var D=_.w.apply(this,arguments)||this;D.isToggleChecked=!1;return D};
_.h(eK,_.w);eK.prototype.onDataChanged=function(){var D;this.isToggleChecked=((D=this.data)==null?void 0:D.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
eK.prototype.close=function(){var D;((D=this.data)==null?0:D.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
eK.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var D,C=_.r((D=this.data)==null?void 0:D.switchButton,wnt);C&&(this.isToggleChecked&&C.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(C.switchOnInnertubeCommand),!this.isToggleChecked&&C.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(C.switchOffInnertubeCommand))};
eK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eK.prototype.onDataChanged=eK.prototype.onDataChanged;_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],eK.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],eK.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],eK.prototype,"isToggleChecked",void 0);_.V([_.n({value:_.I7("CLOSE")}),_.z("design:type",String)],eK.prototype,"closeButtonAriaLabel",void 0);
_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eK.prototype,"onDataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],eK);
_.G(eK,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Ts1!==void 0)return Ts1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Ts1=D},{mode:1});var Hc1;var EQ=function(){return _.w.apply(this,arguments)||this};
_.h(EQ,_.w);_.S=EQ.prototype;_.S.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"}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.detached=function(){this.playerElement.stop()};
_.S.onYtServiceRequestCompleted=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.S.onYtServiceRequestError=function(D){_.JG(this.hostElement,D.detail.error.message)};
_.S.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.S.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.S.getTier=function(D,C){return!D||!D.tiers||C<0?null:_.r(D.tiers[C],Vwo)};
_.S.moreThanOne=function(D){return!!(D&&D.length>1)};
_.S.tierOverviewTap=function(D){var C=this;this.selectedTier=D.model.index;_.A0(this,function(){_.lE(C.hostElement,"yt-refit")})};
_.S.computeSelectedClass=function(D,C){return this.isSelected(D,C)?"selected":""};
_.S.computeButtonAriaPressed=function(D,C){return this.isSelected(D,C)?"true":"false"};
_.S.isSelected=function(D,C){return D===C};
_.S.onDataChanged=function(){_.SY(this.hostElement).querySelector("#header-overlay").style.visibility="";_.SY(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 D=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),
C=D.next();!C.done;C=D.next())C.value.onShow();var X;this.set("selectedTier",(X=this.get("data.targetTierIndex"))!=null?X:0);var c;(D=(c=this.data)==null?void 0:c.onVisible)&&this.ytComponentBehavior.resolveCommand(D)};
_.S.initializeVe=function(D){var C=_.LN(),X=_.xr(),c=this.get("data.trackingParams");X&&C&&(this.screenLayer=4,C=_.lq(_.pjo)(void 0,69877,{clientScreenNonce:C,visualElement:X},void 0,void 0,void 0),_.ec(C,69877,4),X=_.xr(4),c&&X&&(c=_.bO(c),_.F_(C,X,c),D&&(this.offerVideoVe=_.Ia(74659),_.F_(C,c,this.offerVideoVe))))};
_.S.setHeaderBackground=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.SY(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.e_(D);if(D=this.getHeaderImage())D=_.XA(D,screen.width),_.SY(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+D+")"};
_.S.getHeaderImage=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&D?D:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.S.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.S.setupVideoPlayer=function(D){var C=this,X,c,W,p;return _.I(function(g){if(g.nextAddress==1)return X=C.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),c=C.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.b("kevlar_player_update_killswitch")?C.playerElement.update({args:{autoplay:X,video_id:D,player_params:c}}):C.playerElement.loadVideoWithPlayerVars({autoplay:X,video_id:D,player_params:c}),
g.yield(C.playerElement.getPlayerPromise(),2);W=g.yieldResult;W.addEventListener("onStateChange",function(a){C.onPlayerStateChange(a)});
W.setScreenLayer(C.screenLayer);(p=_.LN(4))&&C.offerVideoVe&&_.Go(p,C.offerVideoVe);X&&(C.pauseOtherPlayers(),C.playerElement.focusOnPlayer(),C.playerElement.getPlayer().hideControls(),_.Zo(_.qX,function(){C.fadeOutHeaderOverlay()},4E3));
_.t_(g)})};
_.S.onPlayerStateChange=function(D){D===1?this.backgroundPlayerElement&&(D=this.backgroundPlayerElement.player_.getPlayerState(),D!==1&&D!==3||this.backgroundPlayerElement.pause()):D===0&&(_.SY(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.SY(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.S.fadeOutHeaderOverlay=function(){_.SY(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.S.onHeaderTap=function(){if(this.offerVideo){_.SY(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var D;((D=this.playerElement.player_)==null?void 0:D.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(D=_.LN(4))&&this.offerVideoVe&&_.HE(D,this.offerVideoVe)}};
_.S.getBackgroundImageLayerClass=function(D){return D?"background-image-layer-with-video":""};
_.S.getHeaderClass=function(D){return D?"header-with-video":""};
_.S.getHeaderOverlayClass=function(D){return D?"header-overlay-with-video":""};
_.S.getTitleContainerClass=function(D,C){return D?"title-container-with-video":C?"title-container-without-video-flexible":"title-container-without-video"};
_.S.tierTitleDisplayStatus=function(D){return this.moreThanOne(D)?"hide":"show"};
_.S.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.iX().resolve(_.wB).getPlayerElement():this.backgroundPlayerElement=_.CT();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var D=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=D===1||D===3;this.backgroundPlayerElement.pause()}};
_.S.isMiniplayerActive=function(){return _.iX().resolve(_.wB).isMiniplayerActive()};
_.S.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("selected-tier-changed",this.selectedTier))};
EQ.prototype.selectedTierChangedForBinding=EQ.prototype.selectedTierChangedForBinding;EQ.prototype.onDataChanged=EQ.prototype.onDataChanged;EQ.prototype.onYtPopupClosed=EQ.prototype.onYtPopupClosed;EQ.prototype.onYtPopupOpened=EQ.prototype.onYtPopupOpened;EQ.prototype.onYtServiceRequestError=EQ.prototype.onYtServiceRequestError;EQ.prototype.onYtServiceRequestCompleted=EQ.prototype.onYtServiceRequestCompleted;
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],EQ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],EQ.prototype,"data",void 0);_.V([_.n({value:0}),_.z("design:type",Number)],EQ.prototype,"selectedTier",void 0);
_.V([_.n({value:""}),_.z("design:type",String)],EQ.prototype,"offerVideo",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],EQ.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.V([_.n({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.fh(this)}}),
_.z("design:type",String)],EQ.prototype,"playerId",void 0);_.V([_.kn("tp-yt-paper-dialog-scrollable"),_.z("design:type",Object)],EQ.prototype,"scrollable",void 0);_.V([_.kn("ytd-sponsorships-tier-renderer"),_.z("design:type",Object)],EQ.prototype,"tierRenderer",void 0);_.V([_.kn("#player"),_.z("design:type",Object)],EQ.prototype,"playerElement",void 0);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],EQ.prototype,"onYtServiceRequestCompleted",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],EQ.prototype,"onYtServiceRequestError",null);
_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EQ.prototype,"onYtPopupOpened",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EQ.prototype,"onYtPopupClosed",null);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EQ.prototype,"onDataChanged",null);
_.V([_.vr("selectedTier"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EQ.prototype,"selectedTierChangedForBinding",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],EQ);
_.G(EQ,"ytd-sponsorships-offer-renderer",function(){if(Hc1!==void 0)return Hc1;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Hc1=D},{mode:_.Wc("kevlar_poly_si_batch_j077")?1:2});var Jjt;var tK=function(){var D=_.w.apply(this,arguments)||this;D.buttonOverrides={type:"filled",style:"mono"};return D};
_.h(tK,_.w);tK.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}}}}}};
tK.prototype.backgroundColorChanged=function(){var D,C,X,c=(C=_.r((D=this.data)==null?void 0:D.content,TIt))==null?void 0:(X=C.backgroundColor)==null?void 0:X.backgroundColor;c&&(D=_.mW(c),_.SY(this.hostElement).querySelector("#banner").style.backgroundColor=D,_.SY(this.hostElement).querySelector("#abstract-art").style.backgroundColor=D)};
tK.prototype.attached=function(){this.JSC$21155_scroller&&(this.JSC$21155_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21155_scroller.attached&&typeof this.JSC$21155_scroller.attached==="function"&&this.JSC$21155_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tK.prototype.backgroundColorChanged=tK.prototype.backgroundColorChanged;_.V([_.n(),_.z("design:type",Object)],tK.prototype,"data",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#scroller"),_.z("design:type",Object)],tK.prototype,"JSC$21155_scroller",void 0);_.V([_.n(),_.z("design:type",Object)],tK.prototype,"buttonOverrides",void 0);
_.V([_.vr("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tK.prototype,"backgroundColorChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],tK);
_.G(tK,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Jjt!==void 0)return Jjt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Jjt=D},{mode:_.Wc("kevlar_poly_si_batch_j077")?1:2});var zEk;var jxG;var Np=function(){return _.w.apply(this,arguments)||this};
_.h(Np,_.w);Np.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Np.prototype.computeIsInitiallyChecked=function(D){return D===1};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Np.prototype,"data",void 0);_.V([_.kn("#checkbox"),_.z("design:type",Object)],Np.prototype,"checkbox",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Np);
_.G(Np,"ytd-subscription-toggle-option-renderer",function(){if(jxG!==void 0)return jxG;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return jxG=D},{mode:1});var YH=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return D};
_.h(YH,_.w);YH.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"}}}};
YH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
YH.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var D=_.SY(this.hostElement).querySelector("#options").selected;D=this.data.options[D].subscriptionRadioOptionRenderer.serviceEndpoint;var C=_.SY(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");C&&D&&D.modifyChannelNotificationPreferenceEndpoint&&(C=C.getValue())&&(D.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[C]);_.iX().resolve(_.uX).resolveCommand(D,{form:{element:this.hostElement}});
_.DS(this.hostElement,"yt-close-popup-action")};
_.$a.Object.defineProperties(YH.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var D=this.data.options,C=0;C<D.length;C++){var X=D[C].subscriptionRadioOptionRenderer;if(X&&X.selected)return C}return null}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],YH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],YH.prototype,"eventForwardingBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],YH.prototype,"data",void 0);_.V([_.e("data.options"),_.z("design:type",Object),_.z("design:paramtypes",[])],YH.prototype,"initialIndex",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],YH);
_.G(YH,"ytd-subscription-notification-options-renderer",function(){if(zEk!==void 0)return zEk;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return zEk=D},{mode:1});var MI6;var qDG=function(){return _.w.apply(this,arguments)||this};
_.h(qDG,_.w);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],qDG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],qDG.prototype,"data",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],qDG);
_.G(qDG,"ytd-tvfilm-offer-groups-renderer",function(){if(MI6!==void 0)return MI6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return MI6=D},{mode:1});var fxt;var yp=function(){return _.w.apply(this,arguments)||this};
_.h(yp,_.w);_.S=yp.prototype;_.S.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"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.S.computeThumbnailClass=function(D){return D.thumbnailOverlays?D.isShow?"thumbnail-show":"thumbnail-movie":D.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.S.computeCommerceSectionClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.S.computeTitleClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.S.onDataChanged=function(){[].concat(_.VB(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(D){D.onShow()})};
yp.prototype.onDataChanged=yp.prototype.onDataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],yp.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yp.prototype,"onDataChanged",null);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],yp);
_.G(yp,"ytd-ypc-offers-overlay-renderer",function(){if(fxt!==void 0)return fxt;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return fxt=D},{mode:_.Wc("kevlar_poly_si_batch_j028")?1:2});var d5X;var REP=function(){this.usedMethods=new Set};
REP.prototype.add=function(D){this.usedMethods.add(D)};
REP.prototype.reset=function(){this.usedMethods.clear()};var lxU,DbU;
_.CD3=function(D,C){this.query=D;this.previousSearchQuery=C;this.id=lxU++;if(!DbU){C=_.q6("SBOX_SETTINGS");D="https://"+((C==null?void 0:C.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var X=C==null?void 0:C.REQUEST_LANGUAGE;X&&(D+="&hl="+X);(X=C==null?void 0:C.REQUEST_DOMAIN)&&(D+="&gl="+X);D+="&client=youtube&gs_ri=youtube";(X=C==null?void 0:C.SUGG_EXP_ID)&&(D+="&sugexp="+encodeURIComponent(X));(X=C==null?void 0:C.PSUGGEST_TOKEN)&&(D+="&tok="+X);(C=C==
null?void 0:C.SESSION_INDEX)&&(D+="&authuser="+C);_.b("desktop_enable_visual_suggest")&&(D+="&h=180&w=320&ytvs=1");DbU=D}};
_.XuU=function(D){var C="q="+encodeURIComponent(D.query);D.previousSearchQuery&&(C+="&pq="+encodeURIComponent(D.previousSearchQuery));return C};
_.crt=function(){var D=_.q6("SBOX_SETTINGS"),C={};if(D==null?0:D.SEND_VISITOR_DATA)C["X-Goog-Visitor-Id"]=D==null?void 0:D.VISITOR_DATA;return C};
_.o0P=function(D){var C=DbU;C+="&gs_id="+D.id.toString(36);C+="&q="+encodeURIComponent(D.query);C+="&cp="+D.query.length;D.previousSearchQuery&&(C+="&pq="+encodeURIComponent(D.previousSearchQuery));(D=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(C+="&video_id="+D);return C};
lxU=0;DbU="";var Wq6=_.Ry.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,puU=_.Ry.SEARCH_ENTITY_SUGGESTION_MOVIE,SPo=_.Ry.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,UbG=_.Ry.SEARCH_ENTITY_SUGGESTION_TV_SHOW,g0t=function(D,C){this.text=D;this.bold=C},am3=function(D,C,X){this.input=C;
this.index=X;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=D[0];this.type=D[1];this.subtypes=D[2];var c;this.displayText=sKP((c=D[3])==null?void 0:c.b);var W;this.ignoredPrefix=sKP((W=D[3])==null?void 0:W.a);var p,g;this.hasNewVideo=((p=D[3])==null?void 0:(g=p.zam)==null?void 0:g.toString())==="true"?!0:!1;var a;this.visualSuggestUrl=(a=D[3])==null?void 0:a.zai;var O;this.entityType=sKP((O=D[3])==null?void 0:O.zap);var P;this.entityName=sKP((P=D[3])==null?void 0:P.zao);var k;C=
sKP((k=D[3])==null?void 0:k.zaf);var u;this.entityMid=(u=D[3])==null?void 0:u.zae;k=msp(this.subtypes,this.entityMid);if(C&&k){if(C){u="";switch(k){case "YOUTUBE_ENTITY_TYPE_SONG":u=SPo;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":u=Wq6;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":u=UbG;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":u=puU}k=k==="YOUTUBE_ENTITY_TYPE_SONG"||k==="YOUTUBE_ENTITY_TYPE_ALBUM"?u+" \u2022  \u2022 "+C:C}else k="";this.entitySubtitle=k}var Q;this.externalChannelId=(Q=D[3])==null?void 0:Q.zav;
var B;this.entityThumbnailAttributionUrl=(B=D[3])==null?void 0:B.zaq},OPt=function(D,C){var X=[],c,W=(c=D.displayText)!=null?c:D.text;
(C==null?0:C.useEntityName)&&ImY(D)&&D.entityName&&(W=D.entityName);if(D.type===33)return X.push(new g0t(W,!1)),X;if(W.length>=D.input.length&&W.substring(0,D.input.length)===D.input)X.push(new g0t(D.input,!1)),X.push(new g0t(W.substring(D.input.length),!0));else{var p=new Set(D.input.split(/\s/)),g=W.split(/\s/);X=g.map(function(a,O){return new g0t(a.trim()+(O===g.length-1?"":" "),!p.has(a))})}return X},ImY=function(D){var C=!!msp(D.subtypes);
D=!!D.entityMid;return C||D};_.Ark=function(D){this.rawResponse=["",[],{}];this.suggestions=[];try{var C=JSON.parse(eJt(D));if(typeof C==="object"&&C!==null)this.rawResponse=C;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(c){console.log("Suggest: Failed to parse SuggestResponse!");return}var X=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(c,W){return new am3(c,X,W)})};var PDY=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new REP;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21192_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},$bp,v0G=function(){$bp||($bp=new PDY);
return $bp};
PDY.prototype.updateSuggestions=function(D){var C=this;this.availableSuggestions.forEach(function(X){C.previousSuggestions[X]=!0});
this.availableSuggestions=D.map(function(X){var c=X.type.toString();X.subtypes.length>0&&(c+="i"+X.subtypes.join("i"),c+="k"+X.suggestionSources.COMPLETE_SERVER.toString());return c})};
var iPG=function(D,C){var X=Date.now();D.firstEditTime<0&&(D.firstEditTime=X);C&&(D.lastQueryBuildTime=X);D.lastEditTime=X};
PDY.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21192_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var ke6=function(D){var C="";D.availableSuggestions.forEach(function(W){delete D.previousSuggestions[W]});
for(var X=_.U(Object.keys(D.previousSuggestions)),c=X.next();!c.done;c=X.next())c=c.value,D.previousSuggestions[c]&&(C+=(C?"j":"")+c);return C},u4k=function(D,C){var X=[];
C&&(X[1]=C.toString());X[0]="youtube";X[7]=Date.now()-D.startTime;X[6]=D.sessionNumber;D.zeroPrefixSuggestionCount>=0&&(X[33]=D.zeroPrefixSuggestionCount);X[13]=D.outOfSyncResponseCount;if(D.availableSuggestions.length>0){for(var c=C="",W=0,p=_.U(D.availableSuggestions),g=p.next();!g.done;g=p.next())g=g.value,g!==c&&(W>1&&(C+="l"+W),C+=(c?"j":"")+g,W=0,c=g),W+=1;W>1&&(C+="l"+W);X[3]=C}X[35]=ke6(D);D.selectedSuggestionIndex>=0&&(X[2]=D.selectedSuggestionIndex);var a;if(C=(a=_.q6("SBOX_SETTINGS"))==
null?void 0:a.SUGG_EXP_ID)X[19]=D.normalize(C),a=0,D.experimentTriggeredBeforeFinal&&(a|=1),D.experimentTriggeredFinal&&(a|=2),X[20]=a;X[26]=Array.from(D.inputMethodsTracker.usedMethods).join("j");if(D.JSC$21192_totalRoundTripTime>0){X[15]=D.JSC$21192_totalRoundTripTime;X[14]=D.maxRoundTripTime;a=[];for(W=C=0;W<10;W++)c=D.roundTripTimeHistogram[W],c===0?C++:(C>1?a.push(W+"-"+c):C===1?a.push("0j"+c):a.push(c.toString()),C=0);a=a.join("j");X[16]=a}D.zeroPrefixRoundTripTime>0&&(X[36]=D.zeroPrefixRoundTripTime);
D.lastQueryBuildTime>0&&(X[18]=D.lastQueryBuildTime-D.startTime);D.firstEditTime>0&&(X[4]=D.firstEditTime-D.startTime);D.lastEditTime>0&&(X[5]=D.lastEditTime-D.startTime);return X.join(".")};
PDY.prototype.normalize=function(D){return D.replaceAll(".","-")};
var QWo=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var nS=function(){var D=_.w.apply(this,arguments)||this;D.microphoneSpinnerActive=!1;D.noAnimations=!1;D.boundExitClick=function(){D.onExitButtonClick()};
D.speechOverlayClassName="";D.isLevelAnimating=!1;D.playCloseDialogAudioFeedback=!0;D.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return D};
_.h(nS,_.w);_.S=nS.prototype;_.S.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.S.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=RMk()};
_.S.dataChanged=function(){this.logDialog()};
_.S.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var D;(D=this.manager.audioPlayer)!=null&&(D.JSC$20504_audioEnabled=!1)}this.manager.stop();(D=this.manager.audioPlayer)!=null&&(D.JSC$20504_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.S.handleSpeechQueryCompleteAction=function(D){var C=D.navigationAction;C&&(D.trackingParams&&_.iO().graftServerVe(D.trackingParams,this.dialogVe,5),_.lE(this.hostElement,"yt-navigate",{endpoint:C,tempData:this.getNavigationParams(C),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.S.onExitButtonClick=function(){this.closeDialog()};
_.S.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var D;if((D=this.manager)!=null){var C;(C=D.audioPlayer)==null||fM(C,"failure");D.setState("microphone-off");D.stop()}}else(D=this.manager)==null||D.start()};
_.S.transcriptionChanged=function(){var D,C;(((D=this.transcription)==null?0:D.low)||((C=this.transcription)==null?0:C.high))&&this.setState("transcribing",this.transcription)};
_.S.stateChanged=function(){this.setState(this.state,this.transcription)};
_.S.logDialog=function(){var D;(D=this.data)!=null&&D.trackingParams&&(D=_.iO(),_.Gm(D,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=D.graftServerVe(this.data.trackingParams,void 0,5))};
_.S.getNavigationParams=function(D){var C={};if(_.b("web_yt_searchbox")){var X=v0G();X.inputMethodsTracker.add(6);X=u4k(X,15);C.gs_l=X;var c;C.oq=((c=_.r(D,_.$o))==null?void 0:c.query)||""}else if(D=window.ytvoicesearchloggingparams){if(D=D())C.oq=D.oq,C.gs_l=D.gs_l}else _.CC(Error("Kl"));return C};
_.S.closeDialog=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.S.setState=function(D,C){if(this.data){var X=this.data,c={};switch(D){case "listening":c={headerText:X.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:X.microphoneButtonAriaLabel};break;case "timeout":c={headerText:X.promptHeader,microphoneState:"try-again",microphoneLabel:X.promptMicrophoneLabel,microphoneAriaLabel:X.promptMicrophoneLabel};break;case "microphone-off":c={headerText:X.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:X.promptMicrophoneLabel,
microphoneAriaLabel:X.promptMicrophoneLabel};break;case "transcribing":(C==null?0:C.low)||(C==null?0:C.high)?c={transcriptionLow:C==null?void 0:C.low,transcriptionHigh:C==null?void 0:C.high,microphoneState:"speaking",microphoneAriaLabel:X.microphoneButtonAriaLabel}:c={headerText:X.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:X.microphoneButtonAriaLabel};break;case "processing":c={headerText:X.loadingHeader,microphoneState:"processing",microphoneAriaLabel:X.microphoneButtonAriaLabel};
break;case "offline":c={headerText:X.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:X.connectionErrorMicrophoneLabel,microphoneAriaLabel:X.connectionErrorMicrophoneLabel};break;case "permission":c={headerText:X.permissionsHeader,bodyLine1:X.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:X.permissionsSubtext};break;case "permission-denied":c={headerText:X.disabledHeader,bodyLine1:X.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:X.disabledSubtext}}c.className=
D;this.speechOverlayState=c;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.S.setMicrophoneState=function(D){var C=this.isLevelAnimating;this.isLevelAnimating=D==="speaking";!C&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=D==="processing"&&!this.noAnimations};
_.S.setClass=function(D){this.speechOverlayClassName&&_.gi(this.hostElement,this.speechOverlayClassName,!1);D&&(this.speechOverlayClassName=D,_.gi(this.hostElement,D,!0))};
_.S.runLevelAnimation=function(){var D=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var C=1+Math.random()*.75,X=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+X/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+C+")");_.qX.addJob(function(){D.runLevelAnimation()},3,X)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
nS.prototype.stateChanged=nS.prototype.stateChanged;nS.prototype.transcriptionChanged=nS.prototype.transcriptionChanged;nS.prototype.onPopupClosed=nS.prototype.onPopupClosed;nS.prototype.dataChanged=nS.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],nS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],nS.prototype,"rendererStamperBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],nS.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],nS.prototype,"eventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],nS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],nS.prototype,"speechOverlayState",void 0);
_.V([_.n(),_.z("design:type",Object)],nS.prototype,"microphoneSpinnerActive",void 0);_.V([_.n({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.z("design:type",Object)],nS.prototype,"noAnimations",void 0);_.V([_.n({selector:function(D){var C;return(C=D.voiceSearch)==null?void 0:C.transcription}}),
_.z("design:type",Object)],nS.prototype,"transcription",void 0);_.V([_.n({selector:function(D){var C;return(C=D.voiceSearch)==null?void 0:C.overlay}}),
_.z("design:type",String)],nS.prototype,"state",void 0);_.V([_.n(),_.z("design:type",Object)],nS.prototype,"boundExitClick",void 0);_.V([_.kn("#microphone-levels"),_.z("design:type",HTMLElement)],nS.prototype,"level",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nS.prototype,"dataChanged",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nS.prototype,"onPopupClosed",null);
_.V([_.bH("transcription"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nS.prototype,"transcriptionChanged",null);_.V([_.bH("state"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nS.prototype,"stateChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],nS);
_.G(nS,"ytd-voice-search-dialog-renderer",function(){if(d5X!==void 0)return d5X;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return d5X=D},{mode:1});var BZt;var wS=function(){var D=_.w.apply(this,arguments)||this;D.isOverlay=!1;D.hidden=!1;return D};
_.h(wS,_.w);_.S=wS.prototype;_.S.onPopupClosed=function(){this.toggleIconState(!1)};
_.S.computeIcon=function(){var D,C,X;return(C=_.r((D=this.data)==null?void 0:D.icon,Mwt))==null?void 0:(X=C.icon)==null?void 0:X.iconType};
_.S.computeIconBadgeShape=function(){var D;return{iconBadgeType:"cart",iconBadgeText:(D=this.iconBadgeEntity)==null?void 0:D.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.S.onClick=function(){var D;(D=this.data)!=null&&D.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.S.computeHidden=function(D){return!D};
_.S.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
wS.prototype.onPopupClosed=wS.prototype.onPopupClosed;_.V([_.m(_.OA),_.z("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],wS.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],wS.prototype,"isOverlay",void 0);
_.V([_.n({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.z("design:type",Object)],wS.prototype,"hidden",void 0);_.V([_.n({selectorArgs:["data.iconBadgeEntityKey"],selector:function(D,C){return _.aI(D.entities,"iconBadgeEntity",C)}}),
_.z("design:type",Object)],wS.prototype,"iconBadgeEntity",void 0);_.V([_.kn("yt-icon-button"),_.z("design:type",HTMLButtonElement)],wS.prototype,"iconButton",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wS.prototype,"onPopupClosed",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],wS);
_.G(wS,"ytd-icon-badge-topbar-button-renderer",function(){if(BZt!==void 0)return BZt;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return BZt=D},{mode:1});var bPG;var Fw=function(){var D=_.w.apply(this,arguments)||this;D.premiumOptions=[];return D};
_.h(Fw,_.w);Fw.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.$a.Object.defineProperties(Fw.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Fw.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Array)],Fw.prototype,"premiumOptions",void 0);_.V([_.e("premiumOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fw.prototype,"hasPremiumOptions",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Fw);
_.G(Fw,"ytd-offline-promo-content",function(){if(bPG!==void 0)return bPG;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return bPG=D},{mode:1});var rrp;var Z_=function(){var D=_.w.apply(this,arguments)||this;D.premiumOptions=[];return D};
_.h(Z_,_.w);Z_.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D;this.premiumOptions=LE3((D=this.data)==null?void 0:D.formats)};
Z_.prototype.onClickSubmit=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var D;(D=_.CT())==null||D.pause()};
Z_.prototype.attached=function(){this.JSC$21212_scroller&&(this.JSC$21212_scroller.dialogElement=this.hostElement.parentNode)};
_.$a.Object.defineProperties(Z_.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Z_.prototype.dataChanged=Z_.prototype.dataChanged;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Z_.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Z_.prototype,"data",void 0);
_.V([_.n({computed:"computeIcon_(data.headersIcon)",value:""}),_.z("design:type",String)],Z_.prototype,"headersIcon",void 0);_.V([_.n(),_.z("design:type",Array)],Z_.prototype,"premiumOptions",void 0);_.V([_.kn("#scroller"),_.z("design:type",Object)],Z_.prototype,"JSC$21212_scroller",void 0);_.V([_.e("headersIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Z_.prototype,"showIcon",null);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z_.prototype,"dataChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Z_);
_.G(Z_,"ytd-offline-promo-renderer",function(){if(rrp!==void 0)return rrp;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return rrp=D},{mode:1});var Kq3;var GH=function(){var D=_.w.apply(this,arguments)||this;D.playbackPauseInterval=NaN;D.isLoading=!1;D.hasError=!1;D.dialogClass="";D.youtubeLabel=_.I7("LOGO_ALT_LABEL",{},"YouTube Home");D.logoName="yt-logos-ext:yt-logo-updated";D.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return D};
_.h(GH,_.w);_.S=GH.prototype;_.S.onDataChange=function(){var D;if(this.showEOMV1Text=!((D=this.data)==null||!D.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.S.attached=function(){this.pausePlayer()};
_.S.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.S.handleLangSelect=function(D){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[D.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.S.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.S.handleSaveConsent=function(D){var C=this;this.showLoadingSpinner();this.showLoadingSpinner();j33(_.r(D,gd1)).catch(function(X){_.fQ(new _.Zf("Something went wrong when save consent "+(X.message?X.message:X)+"."));C.hideLoadingSpinner();C.showErrorMessage()})};
_.S.handleDisablePersonalization=function(D){var C=this;this.showLoadingSpinner();M6N(_.r(D,Ulw)).then(function(){C.dialog.close();C.resumePlayer()}).catch(function(X){_.fQ(new _.Zf("Something went wrong when disable personalization "+(X.message?X.message:X)+"."));
C.hideLoadingSpinner();C.showErrorMessage()})};
_.S.showLoadingSpinner=function(){var D=this;this.showSpinnerJobId=_.qX.addLowPriorityJob(function(){D.isLoading=!0},500)};
_.S.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.qX.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.S.showErrorMessage=function(){var D=this;this.hasError=!0;_.qX.addLowPriorityJob(function(){D.hasError=!1},2E3)};
_.S.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.LC(function(){try{var D=_.CT();D&&D.pause()}catch(C){}},100))};
_.S.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var D=_.CT();D&&D.play()}catch(C){}};
_.$a.Object.defineProperties(GH.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var C=["SHIELD","WARNING","BAR_CHART"],X=this.data.eomV1Text.essentialCookieMsg.items,c=0;c<C.length&&c<X.length;c++)D.push({icon:C[c],text:X[c]});return D}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var C=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],X=this.data.eomV1Text.nonEssentialCookieMsg.items,c=0;c<C.length&&c<X.length;c++)D.push({icon:C[c],text:X[c]});return D}}});
GH.prototype.onDataChange=GH.prototype.onDataChange;_.V([_.n(),_.z("design:type",Object)],GH.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],GH.prototype,"showEOMV1Text",void 0);_.V([_.n(),_.z("design:type",Object)],GH.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Object)],GH.prototype,"hasError",void 0);_.V([_.n(),_.z("design:type",Number)],GH.prototype,"showSpinnerJobId",void 0);_.V([_.n(),_.z("design:type",Object)],GH.prototype,"dialogClass",void 0);
_.V([_.kn("#dialog"),_.z("design:type",Object)],GH.prototype,"dialog",void 0);_.V([_.kn("#cb-header"),_.z("design:type",HTMLElement)],GH.prototype,"header",void 0);_.V([_.kn("#lang-select"),_.z("design:type",HTMLElement)],GH.prototype,"langSelect",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],GH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],GH.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.z("design:type",String)],GH.prototype,"youtubeLabel",void 0);_.V([_.n(),_.z("design:type",Object)],GH.prototype,"logoName",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GH.prototype,"onDataChange",null);_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],GH.prototype,"eomEssentialCookieMsgItems",null);
_.V([_.e("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],GH.prototype,"eomNonEssentialCookieMsgItems",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],GH);
_.G(GH,"ytd-consent-bump-v2-lightbox",function(){if(Kq3!==void 0)return Kq3;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return Kq3=D},{mode:1});var hgG;var Vp=function(){return _.w.apply(this,arguments)||this};
_.h(Vp,_.w);Vp.prototype.ready=function(){if(!_.nC()||wGG)var D=!0;else wGG=!0,D=!1;D||(D=document.querySelector("ytd-app"),D||(D=document.body),this.internalLightBox=_.SY(D).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.V([_.n(),_.z("design:type",Object)],Vp.prototype,"data",void 0);_.V([_.kn("#lightbox"),_.z("design:type",Object)],Vp.prototype,"lightBox",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Vp);
_.G(Vp,"ytd-consent-bump-v2-renderer",function(){if(hgG!==void 0)return hgG;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return hgG=D},{mode:1});var xbU;var Lqw;var sWk;var TH=function(){return _.w.apply(this,arguments)||this};
_.h(TH,_.w);_.S=TH.prototype;_.S.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&R8w(this.toastManager,this.toastType)};
_.S.open=function(D){this.toast&&(this.ephemeralAction&&_.iX().resolve(_.yH).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=D!=null?D:0,this.toastManager.enqueue(this.toast,D)):this.toast.open())};
_.S.close=function(D){var C;(C=this.toast)==null||C.close();this.toastManager&&D===1&&R8w(this.toastManager,D)};
_.S.refit=function(){var D;(D=this.toast)==null||D.refit()};
_.S.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var D;(D=this.toast)==null||D.close()}};
_.S.setVerticalOffset=function(D){this.toast&&(this.toast.verticalOffset=D,this.toast.fit())};
_.S.computeButtonClass_=function(D){return D?"toast-button":""};
_.S.computeText_=function(D){return _.Mh(D)};
_.S.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kz("toast-opened-changed",this.toastOpened))};
_.S.updateToastOpenedFromBinding=function(D){this.toastOpened=D.detail.value};
_.$a.Object.defineProperties(TH.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var D,C,X=(D=this.data)==null?void 0:(C=D.actionButton)==null?void 0:C.buttonRenderer;return(X==null?void 0:X.command)||(X==null?void 0:X.serviceEndpoint)||(X==null?void 0:X.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.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 D=[],C;((C=this.data)==null?0:C.responseText)&&D.push(_.Mh(this.data.responseText));var X;((X=this.data)==null?0:X.subText)&&D.push(_.Mh(this.data.subText));var c,W;if((c=this.data)==null?0:(W=c.actionButton)==null?0:W.buttonRenderer){var p,g;D.push(((p=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(g=p.accessibilityData)==null?void 0:g.label)||_.Mh(this.data.actionButton.buttonRenderer.text))}return D.filter(function(a){return a}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var D,C;return(C=(D=this.toast)==null?void 0:D.opened)!=null?C:!1}}});
TH.prototype.toastOpenedChangedForBinding=TH.prototype.toastOpenedChangedForBinding;TH.prototype.toastOpenedChanged=TH.prototype.toastOpenedChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],TH.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],TH.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],TH.prototype,"duration",void 0);
_.V([_.n(),_.z("design:type",Number)],TH.prototype,"toastType",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],TH.prototype,"useCloseButton",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],TH.prototype,"closeToastOnActionButtonClick",void 0);_.V([_.n({value:function(){return _.I7("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],TH.prototype,"closeButtonAriaLabel",void 0);_.V([_.n(),_.z("design:type",Boolean)],TH.prototype,"toastOpened",void 0);_.V([_.n(),_.z("design:type",Boolean)],TH.prototype,"hasOpened",void 0);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],TH.prototype,"command",null);_.V([_.e("labelText","command","duration"),_.z("design:type",Object),_.z("design:paramtypes",[])],TH.prototype,"ephemeralAction",null);
_.V([_.e("ephemeralAction"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TH.prototype,"hasEphemeralAction",null);_.V([_.kn("#toast"),_.z("design:type",Object)],TH.prototype,"toast",void 0);_.V([_.n({value:function(){return{style:"call-to-action-inverse"}}}),
_.z("design:type",Object)],TH.prototype,"buttonOverrides",void 0);_.V([_.n({value:{style:"mono-inverse"}}),_.z("design:type",Object)],TH.prototype,"closeButtonOverrides",void 0);_.V([_.n({value:function(){return _.iX().resolve(_.vK(_.eW))}}),
_.z("design:type",Object)],TH.prototype,"toastManager",void 0);_.V([_.e("data.responseText","data.subText","data.actionButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],TH.prototype,"labelText",null);_.V([_.vr("toastOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TH.prototype,"toastOpenedChanged",null);
_.V([_.vr("toastOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TH.prototype,"toastOpenedChangedForBinding",null);_.V([_.Yn({is:"yt-notification-action-renderer",disableElementRegistration:!0})],TH);
_.G(TH,"yt-notification-action-renderer",function(){if(sWk===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Lqw===void 0&&(Lqw=document.createElement("template"));var c=Lqw;X.call(C,c.content.cloneNode(!0),D.content.firstChild);sWk=D}D=sWk;return D},{mode:2});var HA=function(){var D=_.w.apply(this,arguments)||this;D.duration=4E3;D.downloadingCount=0;D.downloadedCount=0;D.downloadingOnlySmartDownloads=!1;D.sessionTotalDownloads=0;D.sessionDownloaded=0;D.previousSessionsDownloaded=0;D.totalDownloadPercentage=0;D.currentDownloadProgress=0;D.currentDownloadPercentage=0;D.isLeaderTab=!0;D.isFullScreen=!1;D.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};D.boundBeforeUnload=function(C){D.isLeaderTab&&D.downloadingCount>0&&(C.preventDefault(),
C.returnValue=!0)};
return D};
_.h(HA,_.w);_.S=HA.prototype;
_.S.open=function(){this.updateDownloadState();if(this.data){var D=this.sessionDownloaded+1,C=this.sessionTotalDownloads>1?_.I7("VIDEOS_DOWNLOADING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+D+"/"+this.sessionTotalDownloads):_.I7("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(C=this.sessionTotalDownloads>1?_.I7("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
D+"/"+this.sessionTotalDownloads):_.I7("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));D=this.isLeaderTab?_.I7("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Mh(this.data.responseText)!==C||_.Mh(this.data.subText)!==D)this.set("data.responseText",_.jV(C)),this.set("data.subText",_.jV(D)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.S.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.S.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.S.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.S.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var D=this.downloadedCount-this.previousSessionsDownloaded;D<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-D);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.S.handleFullscreenChange=function(D){(this.isFullScreen=D)||this.updatePopup()};
HA.prototype.updateCurrentDownloadProgress=HA.prototype.updateCurrentDownloadProgress;HA.prototype.updatePopup=HA.prototype.updatePopup;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],HA.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],HA.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],HA.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"duration",void 0);_.V([_.n({selector:function(D){return _.Z_m(D.entities).length}}),
_.z("design:type",Object)],HA.prototype,"downloadingCount",void 0);_.V([_.n({selector:Wl1}),_.z("design:type",Object)],HA.prototype,"downloadedCount",void 0);_.V([_.n({selector:function(D){var C=_.Z_m(D.entities);return o_t(D.entities,C)}}),
_.z("design:type",Object)],HA.prototype,"downloadingOnlySmartDownloads",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"sessionTotalDownloads",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"sessionDownloaded",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"previousSessionsDownloaded",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"totalDownloadPercentage",void 0);
_.V([_.n({selector:function(D){var C;D=(C=_.Z_m(D.entities))!=null?C:[];return D.length>0?_.scF(D.slice(-1)):0}}),
_.z("design:type",Object)],HA.prototype,"currentDownloadProgress",void 0);_.V([_.n(),_.z("design:type",Object)],HA.prototype,"currentDownloadPercentage",void 0);_.V([_.n({selector:_.JyR}),_.z("design:type",Object)],HA.prototype,"isLeaderTab",void 0);_.V([_.kn("yt-notification-action-renderer"),_.z("design:type",Object)],HA.prototype,"notificationActionRenderer",void 0);
_.V([_.bH("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HA.prototype,"updatePopup",null);_.V([_.bH("currentDownloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HA.prototype,"updateCurrentDownloadProgress",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],HA);
_.G(HA,"ytd-video-download-toast-renderer",function(){if(xbU!==void 0)return xbU;var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return xbU=D},{mode:1});var mbo;var egG;var JK=function(){return _.w.apply(this,arguments)||this};
_.h(JK,_.w);JK.prototype.computeIsRedLogo=function(D,C){!D&&C&&(D=C);return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
JK.prototype.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],JK.prototype,"componentBehavior",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.z("design:type",Boolean)],JK.prototype,"isRedLogo",void 0);_.V([_.n({computed:"computeLogoName(data)"}),_.z("design:type",String)],JK.prototype,"logoName",void 0);_.V([_.n({value:{}}),_.z("design:type",Object)],JK.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],JK.prototype,"logoType",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-logo"})],JK);
_.G(JK,"ytd-logo",function(){if(egG!==void 0)return egG;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return egG=D},{mode:_.Wc("kevlar_poly_si_batch_j074")?1:2});var zH=function(){var D=_.w.apply(this,arguments)||this;D.animationRef={};return D};
_.h(zH,_.w);_.S=zH.prototype;_.S.attached=function(){document.addEventListener("yt-navigate-finish",_.Pr(this,this.logYoodle))};
_.S.detached=function(){document.removeEventListener("yt-navigate-finish",_.Pr(this,this.logYoodle))};
_.S.logYoodle=function(){var D,C;if((D=this.data)==null?0:(C=D.loggingDirectives)==null?0:C.trackingParams)this.ytRendererBehavior.markDirty(),_.iO().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.S.computeHideImg=function(D,C){return!!D||!!C};
_.S.computeHideYtdLogo=function(D,C){return!D||!!C};
_.S.computeHideLottie=function(D){return!D};
_.S.computeIsRedLogo=function(D){return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
_.S.renderLogoEntity=function(){var D=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),C=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),X=this.getLogoTitleText(this.data),c=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==D&&(this.url=D);this.animatedUrl!==C&&(this.animatedUrl=C);this.logoTitleText!==X&&(this.logoTitleText=X);this.lottieUrl!==c&&(this.lottieUrl=c,this.lottiePlayerProps=this.computeLottiePlayerProps(c))};
_.S.getSanitizedThumbnail=function(D){return D&&D.thumbnails?_.zyn(D.thumbnails,122)||"":""};
_.S.getThumbnailUrl=function(D,C){if(!C)return"";var X,c;D=D?(X=C.darkThemeLogo)==null?void 0:X.thumbnail:(c=C.lightThemeLogo)==null?void 0:c.thumbnail;return this.getSanitizedThumbnail(D)};
_.S.getAnimatedThumbnailUrl=function(D,C){return C?this.getSanitizedThumbnail(D?C.darkThemeAnimatedLogo:C.lightThemeAnimatedLogo):""};
_.S.getLogoTitleText=function(D){if(D)return _.Mh(D.tooltipText)};
_.S.computeLogoIcon=function(D,C){if(C){var X,c;return D?(X=C.darkThemeLogo)==null?void 0:X.icon:(c=C.lightThemeLogo)==null?void 0:c.icon}};
_.S.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.S.getLottieUrl=function(D,C){var X,c,W,p;return D?C==null?void 0:(X=C.darkThemeLogo)==null?void 0:(c=X.lottieAnimation)==null?void 0:c.url:C==null?void 0:(W=C.lightThemeLogo)==null?void 0:(p=W.lottieAnimation)==null?void 0:p.url};
_.S.computeLottiePlayerProps=function(D){if(D){var C;if((C=this.animationRef)==null?0:C.lottieEl){var X;(X=this.animationRef)==null||X.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:D,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.S.onLottieError=function(){this.data&&this.lottieUrl&&_.lE(this.hostElement,"yoodle-error")};
_.S.onImgError=function(){this.data&&!this.lottieUrl&&_.lE(this.hostElement,"yoodle-error")};
zH.prototype.playAnimation=zH.prototype.playAnimation;zH.prototype.renderLogoEntity=zH.prototype.renderLogoEntity;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],zH.prototype,"data",void 0);_.V([_.n({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.z("design:type",Boolean)],zH.prototype,"hideImg",void 0);
_.V([_.n({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.z("design:type",Boolean)],zH.prototype,"hideYtdLogo",void 0);_.V([_.n({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.z("design:type",Boolean)],zH.prototype,"hideLottie",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.z("design:type",Boolean)],zH.prototype,"isRedLogo",void 0);
_.V([_.n(),_.z("design:type",Boolean)],zH.prototype,"useDarkThemeYoodle",void 0);_.V([_.n(),_.z("design:type",String)],zH.prototype,"url",void 0);_.V([_.n(),_.z("design:type",String)],zH.prototype,"animatedUrl",void 0);_.V([_.n(),_.z("design:type",String)],zH.prototype,"logoTitleText",void 0);_.V([_.n({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.z("design:type",Object)],zH.prototype,"logoIcon",void 0);_.V([_.n(),_.z("design:type",Object)],zH.prototype,"logoType",void 0);
_.V([_.n(),_.z("design:type",String)],zH.prototype,"lottieUrl",void 0);_.V([_.n(),_.z("design:type",Object)],zH.prototype,"lottiePlayerProps",void 0);_.V([_.n(),_.z("design:type",Object)],zH.prototype,"animationRef",void 0);_.V([_.vr("data"),_.vr("useDarkThemeYoodle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zH.prototype,"renderLogoEntity",null);
_.V([_.$n("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zH.prototype,"playAnimation",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],zH);
_.G(zH,"ytd-yoodle-renderer",function(){if(mbo!==void 0)return mbo;var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return mbo=D},{mode:_.Wc("kevlar_poly_si_batch_j074")?1:2});var E0t;var taw;var NZP=_.TU.currentPageTypeSelector,YPo=_.TU.currentPageSubTypeSelector,jK=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return D};
_.h(jK,_.w);_.S=jK.prototype;_.S.onYoodleError=function(){_.b("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.S.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.S.computeTitle=function(D,C,X){return X&&(C==null?0:C.tooltipText)?_.Mh(C.tooltipText):_.Mh(D)};
_.S.computeAriaLabel=function(D,C,X){return X&&(C==null?0:C.tooltipText)?_.Mh(D):""};
_.S.computeShowYoodle=function(D,C,X){return!D||!C&&!!X&&!_.ZI.isEmpty(X)};
_.S.onNavigateHomeAction=function(){if(_.b("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D;(D=_.SY(this.hostElement).querySelector(".yt-simple-endpoint"))==null||D.click()}};
_.S.computeLogoHref=function(D,C,X){var c;(X==null?0:X.onTapCommand)?c=this.componentBehavior.computeHref_(X.onTapCommand):D&&(c=this.componentBehavior.computeHref_(D));return c?c:C};
_.S.computeCommand=function(D,C){return(C==null?void 0:C.onTapCommand)||D};
_.S.getEndpointForm=function(){if(_.b("kevlar_topbar_disable_cache_only_home")){var D=_.iX().resolve(_.gp),C=NZP(D.getState())||"";D=YPo(D.getState())||"";return{disableCache:C==="ytd-browse"&&D==="home"}}return{disableCache:!0}};
jK.prototype.onYoodleError=jK.prototype.onYoodleError;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],jK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],jK.prototype,"componentBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],jK.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],jK.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],jK.prototype,"countryCode",void 0);_.V([_.n({selectorArgs:["data.overrideEntityKey"],selector:function(D,C){return _.aI(D.entities,"logoEntity",C)}}),
_.z("design:type",Object)],jK.prototype,"logoEntity",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.z("design:type",Boolean)],jK.prototype,"showYoodle",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],jK.prototype,"yoodleError",void 0);_.V([_.n({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.z("design:type",String)],jK.prototype,"titleText",void 0);
_.V([_.n({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.z("design:type",String)],jK.prototype,"ariaLabelText",void 0);_.V([_.n({value:"/"}),_.z("design:type",String)],jK.prototype,"defaultEndpointUrl",void 0);_.V([_.n({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.z("design:type",String)],jK.prototype,"endpointUrl",void 0);
_.V([_.n({computed:"computeCommand(data.endpoint, logoEntity)"}),_.z("design:type",String)],jK.prototype,"command",void 0);_.V([_.n(),_.z("design:type",Object)],jK.prototype,"logoType",void 0);_.V([_.n({}),_.z("design:type",Boolean)],jK.prototype,"useDarkThemeYoodle",void 0);_.V([_.$n("yoodle-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jK.prototype,"onYoodleError",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],jK);
_.G(jK,"ytd-topbar-logo-renderer",function(){if(taw!==void 0)return taw;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return taw=D},{mode:_.Wc("kevlar_poly_si_batch_j027")?1:2});var yrt=0;var n06=_.Ry.SEARCH_APPEND_LABEL,wu6=_.Ry.SUGGESTION_NEW_VIDEOS_TEXT,Fqo=_.Ry.SUGGESTION_THUMBNAIL_LABEL,ZPU=_.Ry.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Get=_.F(function(D){function C(oH){var QU,jN;return _.I(function(Oe){if(Oe.nextAddress==1)return QU=new Request(oH),_.KK(Oe,2),Oe.yield(fetch(QU,{credentials:"include"}),4);if(Oe.nextAddress!=2)return g5(!0),_.SR(Oe,0);jN=_.Eu(Oe);_.fQ(jN);_.t_(Oe)})}
var X=D.isHighlighted;var c=D.suggestion;var W=D.onClickCallback;var p=D.onHoverUpdateCallback;var g=D.labels;var a=D.queryBuilderFunction;var O=D.onRemoveCallback;var P=D.suggestionIndex;var k=D.generateUniqueId;var u=D.highlightedId;var Q=D.useScrollMargin;var B=D.isKeyboardMode;var K=null,L=null,t=null,Y=_.aX("div"),y=_.aX("span");D=_.U(_.Li(!1,void 0,"LafNkf"));var J=D.next().value,T=D.next().value,H=_.IX("a",function(oH){oH&&_.Lm(237477,oH,L,function(QU){L=QU})}),q=_.IX("button",function(oH){oH&&
_.Lm(237477,oH,L,function(QU){L=QU})}),R=_.IX("div",function(oH){oH&&_.Lm(281939,oH,t,function(QU){t=QU})}),ph=_.I_(function(oH){if((oH==null?void 0:oH.button)===2)return oH.preventDefault(),!1;
var QU=_.LN();QU&&K&&_.JZ(QU,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var jN;W(oH,c().text,c().index,c().entityMid,oH==null?void 0:(jN=oH.detail)==null?void 0:jN.wasSelectedByKeyboard);return!1}),Om=function(){return c().type===35},xj=function(){return _.b("desktop_enable_single_suggestion_highlight")},Bo=function(){return _.BK("desktop_suggestions_panel_row_height")||0},r5=function(){var oH;
return _.b("desktop_enable_new_video_metadata")&&((oH=c())==null?void 0:oH.hasNewVideo)===!0},Fd=function(){return _.b("desktop_enable_visual_suggest")},GJ=function(){return _.b("desktop_enable_entity_suggest")&&ImY(c())},jZ=function(){return c().entitySubtitle},Ac=function(){return xj()?(X==null?void 0:X())||Rq()&&!(B==null?0:B()):(X==null?void 0:X())||Rq()},ib=function(){var oH=_.q6("SBOX_SETTINGS");
return Om()&&!(oH==null?0:oH.HIDE_REMOVE_LINK)},d5=function(){return OPt(c(),{useEntityName:GJ()})},ub,L5=!((ub=_.iX().resolve(_.vK(_.Hc)))==null||!ub()),Nf=function(){return Om()?_.b("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},xt=function(){return g==null?void 0:g().SUGGESTION_DISMISS_LABEL},u6=function(){return g==null?void 0:g().SUGGESTION_DISMISSED_LABEL};
D=_.U(_.Li(!1,void 0,"JyfUlf"));ub=D.next().value;var g5=D.next().value;D=_.U(_.Li(!1,void 0,"QKfAGe"));var oq=D.next().value,rx=D.next().value,Rq=oq,K5=_.I_(function(){a(y.value.innerText);return!1}),C1=_.I_(function(oH){oH.preventDefault();
return!1}),LK=_.I_(function(oH){var QU=c().text,jN=_.q6("SBOX_SETTINGS"),Oe="https://"+(jN.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Oe+="&delq="+encodeURIComponent(QU);(QU=jN==null?void 0:jN.PSUGGEST_TOKEN)&&(Oe+="&tok="+QU);(jN=jN==null?void 0:jN.SESSION_INDEX)&&(Oe+="&authuser="+jN);C(Oe);oH.preventDefault();(oH=_.LN())&&L&&_.JZ(oH,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");O(P==null?void 0:P());return!1}),Mf=_.I_(function(){if(xj()&&(B==null?0:B()))return!1;
rx(!0);p(!0);return!1}),vM=_.I_(function(){rx(!1);
p(!1);return!1}),kg=_.I_(function(){T(!0);
return!1}),p1=_.I_(function(){T(!1);
return!1}),Rm=_.I_(function(oH){oH.preventDefault();
if(c().entityThumbnailAttributionUrl){t&&_.Hj(_.iO(),t);var QU=c().entityThumbnailAttributionUrl;oH=c().entityName;var jN={dismissDialogEndpoint:{}};QU={commandExecutorCommand:{commands:[jN,{urlEndpoint:{url:QU,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:QU}}}]}};jN={buttonViewModel:{title:_.I7("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:jN}}};QU={buttonViewModel:{title:_.I7("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:QU}}};oH={dialogHeaderViewModel:{headline:{content:oH!=null?oH:_.I7("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var Oe={basicContentViewModel:{paragraphs:[{text:{content:_.I7("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};oH={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:oH,footer:{panelFooterViewModel:{primaryButton:QU,
secondaryButton:jN,shouldHideDivider:!0}},content:Oe}}}}};_.iX().resolve(_.uX).resolveCommand(oH)}return!1});
D=_.U(_.Li("",void 0,"MvIBn"));var ow=D.next().value,iU=D.next().value;_.H2(function(){ib()&&iU(k==null?void 0:k(P==null?void 0:P()));Y.value&&_.Lm(12453,Y.value,K,function(oH){K=oH})});
return _.A(_.v,{cond:ub,then:function(){var oH={};return _.A("div",{class:_.g$("ytSuggestionComponentRemovedText",(oH.ytSuggestionComponentLargerRemovedText=function(){return Fd()},oH)),
style:function(){return Bo()>0?"height: "+Bo()+"px;":""},
role:"button"},u6)},
else:function(){var oH={},QU={};return _.A("div",{class:_.g$("ytSuggestionComponentSuggestion",(oH.ytSuggestionComponentSuggestionHover=function(){return!xj()},oH.ytSuggestionComponentHighlighted=Ac,oH.ytSuggestionComponentPersonalizedSuggestion=Om,oH.ytSuggestionComponentMweb=!1,oH.ytSuggestionComponentLargerSuggestion=function(){return r5()||Fd()},oH.ytSuggestionComponentThumbnailSuggestion=function(){return Fd()},oH.ytSuggestionComponentRoundedSuggestion=function(){return _.b("desktop_enable_scrollable_suggestions_panel")&&
_.b("desktop_enable_suggestions_panel_padding")},oH.ytSuggestionComponentThumbnailPadding=function(){return Fd()&&!Om()},oH)),
style:function(){return Bo()>0?"height: "+Bo()+"px;":""},
role:"presentation","on:mousedown":ph,"on:mouseover":Mf,"on:mouseout":vM,el:Y},_.A("div",{class:_.g$("ytSuggestionComponentText",(QU.ytSuggestionComponentScrollMargin=Q,QU)),"aria-label":function(){return r5()?c().text+" "+wu6:c().text},
id:function(){return k==null?void 0:k(P==null?void 0:P())},
"on:mousedown":ph,role:"option"},_.A(_.v,{cond:function(){return c().type!==33},
then:function(){return _.A(_.$_,{icon:Nf,className:"ytSuggestionComponentIcon"})}}),_.A("div",{class:"ytSuggestionComponentLeftContainer"},_.A("span",{el:y,
role:"button",tabindex:0},_.A(_.Zh,{each:d5},function(jN){return jN.bold?_.A("span",{class:"ytSuggestionComponentBold"},jN.text):_.A("span",null,jN.text)})),_.A(_.v,{cond:function(){return GJ()&&!!c().entitySubtitle||r5()},
then:function(){return _.A("div",{class:"ytSuggestionComponentMetadataContainer"},_.A(_.v,{cond:function(){return GJ()&&!!c().entitySubtitle},
then:function(){return _.A("div",{class:"ytSuggestionComponentEntitySubtitle"},jZ)}}),_.A(_.v,{cond:function(){return r5()},
then:function(){return _.A("div",{class:"ytSuggestionComponentNewVideoContainer"},_.A("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.A("div",{class:"ytSuggestionComponentNewVideoText"},wu6))}}))}}))),_.A("div",{class:"ytSuggestionComponentRightContainer"},_.A(_.v,{cond:function(){return Fd()&&c().visualSuggestUrl!==void 0},
then:function(){var jN={};return _.A("div",{class:"ytSuggestionComponentThumbnailContainer"},_.A("img",{"aria-label":Fqo,class:_.g$("ytSuggestionComponentVisualSuggestThumbnail",(jN.ytSuggestionComponentCircularFrame=function(){return GJ()&&c().subtypes.includes(790)},jN.ytSuggestionComponentEntitySuggestThumbnail=function(){return GJ()},jN)),
src:function(){return c().visualSuggestUrl}}),_.A(_.v,{cond:function(){return GJ()&&!!c().entityThumbnailAttributionUrl},
then:function(){var Oe={};return _.A("span",{title:ZPU,role:"tooltip"},_.A("div",{el:R,"on:mouseover":kg,"on:mouseout":p1,"on:mousedown":Rm,class:_.g$("ytSuggestionComponentThumbnailOverlay",(Oe.ytSuggestionComponentThumbnailOverlayHidden=function(){return!J()},Oe))},_.A(_.$_,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.A(_.G4,null,_.A(_.wq,{when:function(){return Fd()&&ib()}},function(){var jN={};
return _.A("button",{class:_.g$("ytSuggestionComponentRemoveLinkClearButton",(jN.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return ow()&&ow()===(u==null?void 0:u())},jN.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ac()},jN)),
el:q,"on:mousedown":LK,"aria-label":xt,id:function(){return ow()}},_.A(_.$_,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.A(_.wq,{when:function(){return!(Fd()&&c().visualSuggestUrl!==void 0)&&ib()}},function(){var jN={};
return _.A("a",{class:_.g$("ytSuggestionComponentRemoveLink",(jN.ytSuggestionComponentRemoveLinkDark=L5,jN.ytSuggestionComponentRemoveLinkSelected=function(){return ow()&&ow()===(u==null?void 0:u())},jN)),
el:H,"on:mousedown":LK,"aria-label":xt,tabindex:0,role:"button",id:function(){return ow()}},xt)}),_.A(_.wq,{when:function(){return!1}},function(){return _.A("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":K5,"on:mousedown":C1,role:"button","aria-label":n06},_.A(_.$_,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Bj");var Va6=_.q8(["//www.google.com/textinputassistant/","/","_tia.js"]),TZU=_.F(function(){return _.A("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.A("button",{class:"ytdTextInputAssistantButton","on:click":_.I_(function(){v0G().inputMethodsTracker.add(3);var D,C=(D=_.q6("SBOX_SETTINGS"))==null?void 0:D.REQUEST_LANGUAGE;if(C)return _.yy(_.kX(Va6,14,C)),!1})},_.A("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Cj");var JrX;_.HPk=function(){this.cache=new Map};
JrX=function(D){for(var C=_.U(D.cache.entries()),X=C.next();!X.done;X=C.next()){var c=_.U(X.value);X=c.next().value;c=c.next().value;c.suggestions.some(function(W){return W.type===35})&&D.cache.delete(X)}};var zgt=_.Ry.SEARCH,jWG=_.Ry.SEARCH_CLEAR_LABEL,MaX=new _.P6("FAKE_SUGGEST_RESPONSE"),qPY=_.F(function(D){function C(){Mf||(Mf=setTimeout(function(){kg()},1E3))}
function X(Ed,sd,Hp){if(Ed.trim()){LK=Ed;_.M6("REFINEMENTS_TUPLE",void 0);K5=!0;var zd;sd=u4k(u6,sd);var bb=(zd=D.searchEndpoint)==null?void 0:zd.call(D);_.t$k(Ed,sd,bb,ub.value.value,Hp);kg();ub.value.value=Ed;ub.value.blur();u6.reset()}}
function c(Ed){return _.I(function(sd){return sd.return(new Promise(function(Hp){var zd=new XMLHttpRequest;zd.open("GET",_.o0P(Ed),!0);zd.withCredentials=!0;var bb=_.q6("SBOX_SETTINGS");(bb==null?0:bb.SEND_VISITOR_DATA)&&zd.setRequestHeader("X-Goog-Visitor-Id",bb==null?void 0:bb.VISITOR_DATA);zd.onload=function(){Hp(zd.responseText)};
zd.onerror=function(){_.fQ(Error("Ml"));Hp(null)};
setTimeout(function(){zd.abort()},1E4);
zd.send(null)}))})}
function W(Ed){var sd,Hp,zd,bb;return _.I(function(dV){switch(dV.nextAddress){case 1:return sd={credentials:"include",headers:_.crt()},window.AbortController&&(Hp=new AbortController,setTimeout(function(){Hp.abort("ytsbox-suggest-timeout")},1E4),sd.signal=Hp.signal),_.KK(dV,2),dV.yield(fetch(_.o0P(Ed),sd),4);
case 4:zd=dV.yieldResult.text();_.SR(dV,3);break;case 2:return bb=_.Eu(dV),bb!=="ytsbox-abort-last"&&bb!=="ytsbox-suggest-timeout"&&_.fQ(bb),dV.return(null);case 3:return dV.return(zd)}})}
function p(Ed){var sd,Hp,zd;return _.I(function(bb){switch(bb.nextAddress){case 1:if(sd=_.iX().resolve(_.vK(MaX)))return bb.return(sd);Hp=Date.now();C();return _.b("yt_searchbox_xhr")?bb.yield(c(Ed),5):bb.yield(W(Ed),4);case 4:zd=bb.yieldResult;bb.jumpTo(3);break;case 5:zd=bb.yieldResult;case 3:if(zd){Mf&&(clearTimeout(Mf),Mf=null);var dV=u6,f7=Hp,jD=Ed.query.length===0;f7=Date.now()-f7;jD?dV.zeroPrefixRoundTripTime=f7:(dV.JSC$21192_totalRoundTripTime+=f7,dV.maxRoundTripTime=Math.max(dV.maxRoundTripTime,
f7),jD=Math.floor(f7/100),jD>=QWo.length?++dV.roundTripTimeHistogram[9]:++dV.roundTripTimeHistogram[QWo[jD]])}return bb.return(zd)}})}
function g(Ed){var sd,Hp,zd;return _.I(function(bb){if(bb.nextAddress==1)return(sd=xt.cache.get(_.XuU(Ed)))?bb.return(sd):bb.yield(p(Ed),2);Hp=bb.yieldResult;if(Hp===null)return bb.return(null);zd=new _.Ark(Hp);Ed.query.length===0&&zd.suggestions.length===0||xt.cache.set(_.XuU(Ed),zd);return bb.return(zd)})}
function a(Ed){var sd,Hp;return _.I(function(zd){if(zd.nextAddress==1){C1=!1;var bb=LK;bb=_.qH()==="search"?(_.DH(location.href,"search_query")||_.DH(location.href,"q"))===bb:!1;sd=new _.CD3(Ed,bb?LK:null);return zd.yield(g(sd),2)}Hp=zd.yieldResult;if(Hp===null)return zd.return();sd.query.length===0&&(u6.zeroPrefixSuggestionCount=Hp.suggestions.length);if(sd.id<=vM)return u6.outOfSyncResponseCount++,zd.return();if(document.activeElement!==ub.value)return zd.return();vM=sd.id;var dV=u6,f7=Hp.rawResponse[2]||
{};dV.experimentTriggeredBeforeFinal||(dV.experimentTriggeredBeforeFinal=dV.experimentTriggeredFinal);dV.experimentTriggeredFinal=!!f7.e;u6.updateSuggestions(Hp.suggestions);t(-1);jZ([]);Hp.suggestions!==B()&&We(Hp.suggestions.length);K(Hp.suggestions);ph(Hp.suggestions.length>0&&Hp.suggestions[0].type===33);Nf&&(Nf.hidden=Hp.suggestions.length===0,R()?(Nf.style.minWidth="",dV=Nf.style,f7=(bb=B()[0])==null?void 0:bb.ignoredPrefix,dV.marginLeft=(f7?Math.min(f7.length*6,L5.value.offsetWidth):0).toString()+
"px"):(Nf.style.minWidth=L5.value.offsetWidth+"px",Nf.style.marginLeft="0"),su());_.t_(zd)})}
function O(){if(!K5)return!1;var Ed=_.q6("REFINEMENTS_TUPLE");return Ed?(Ed=Ed[1].map(function(sd,Hp){return new am3([sd,0,[71]],ub.value.value,Hp)}),B()!==Ed&&We(Ed.length),jZ([]),K(Ed),u6.updateSuggestions(Ed),K5=!1,Nf.hidden=Ed.length===0,C1=Ed.length>0,!0):!1}
function P(){var Ed=ub.value.value;(typeof Ed==="string"||Ed instanceof String)&&Ed!==""?T(!0):T(!1)}
function k(){if(_.qH()==="search"){var Ed=window.location.href;try{var sd=_.DH(Ed,"search_query")||_.DH(Ed,"q")||""}catch(Hp){sd=""}sd&&(ub.value.value=sd,T(!0))}}
var u=_.U(_.Li([],void 0,"OC8EPc")),Q=u.next().value;u=u.next().value;var B=Q,K=u;Q=_.U(_.Li(-1,void 0,"t2tVQb"));var L=Q.next().value,t=Q.next().value;Q=_.U(_.Li(-1,void 0,"v0RZCe"));var Y=Q.next().value,y=Q.next().value;Q=_.U(_.Li(!1,void 0,"rjAnI"));var J=Q.next().value,T=Q.next().value;Q=_.U(_.Li(!1,void 0,"SyGLvb"));var H=Q.next().value,q=Q.next().value;u=_.U(_.Li(!1,void 0,"tL09Cb"));Q=u.next().value;u=u.next().value;var R=Q,ph=u;u=_.U(_.Li(!1,void 0,"FlH7mc"));Q=u.next().value;var Om=u.next().value;
u=_.U(_.Li(!1,void 0,"ea3fwe"));var xj=u.next().value,Bo=u.next().value;u=_.U(_.Li(1,void 0,"vSK1xe"));var r5=u.next().value,Fd=u.next().value;u=_.U(_.Li([],void 0,"ijlw4b"));var GJ=u.next().value,jZ=u.next().value;u=_.U(_.Li(!1,void 0,"HcRey"));var Ac=u.next().value,ib=u.next().value;u=_.b("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var d5=_.aX("yt-searchbox"),ub=_.aX("input"),L5=_.aX("div"),Nf,xt=
new _.HPk,u6=v0G(),g5=_.iX().resolve(_.vK(_.Hc)),oq=function(){var Ed;return((Ed=D.forceDarkMode)==null?void 0:Ed.call(D))||!(g5==null||!g5())},rx=function(){return _.b("desktop_enable_scrollable_suggestions_panel")},Rq="i"+yrt++,K5=!1,C1=!1,LK="",Mf=null,vM=-1,kg=function(){jZ([]);
K([]);ph(!1);Nf&&(Nf.hidden=!0);Mf&&(clearTimeout(Mf),Mf=null);t(-1)},p1=function(Ed,sd){Ed.preventDefault();
ib(!0);Nf&&(Nf.hidden=!1);var Hp=L();Ed=B();var zd=GJ();sd=NdG(sd);Hp+=sd;for(Hp>=Ed.length?Hp=-1:Hp<-1&&(Hp=Ed.length-1);Hp!==-1&&(zd.includes(Hp)||Hp>=Ed.length||Hp<0);)Hp+=sd,Hp>=Ed.length&&(Hp=-1);t(Hp);L()>=0&&(ub.value.value=B()[L()].text,y(0),P(),Ed=L(),zd=Y(),(zd=document.getElementById(ro[Ed][zd]))&&rx()&&(Ed===B().length-1?Nf.scrollTop=Nf.scrollHeight:zd.scrollIntoView({block:"nearest",inline:"start"})))},Rm=_.I_(function(Ed){if(!(Ed.relatedTarget instanceof Element&&Ed.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){q(!0);
var sd;(sd=D.focusCallback)==null||sd.call(D,!0);O()||(C1?Nf.hidden=!1:(_.lE(d5.value,"yt-autonav-pause-focus",{}),a(Ed.target.value)))}}),ow=_.I_(function(Ed){if(!(Ed.relatedTarget instanceof Element&&Ed.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){q(!1);
var sd;(sd=D.focusCallback)==null||sd.call(D,!1);Nf.scrollTop=0;Nf.hidden=!0;_.lE(d5.value,"yt-autonav-pause-blur",{})}}),iU=function(Ed){Ed=NdG(Ed);
var sd;((sd=ro[L()])==null?0:sd[Y()+Ed])&&y(Y()+Ed)},oH=_.I_(function(Ed){var sd=Ed.target;
switch(Ed.keyCode){case 13:Ed.preventDefault();var Hp;if((Hp=ro[L()])==null?0:Hp[Y()]){var zd;(zd=document.getElementById(ro[L()][Y()]))==null||zd.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Ed=Ed.shiftKey?4:3;Hp=u6;zd=L();Hp.selectedSuggestionIndex=zd;X(sd.value,Ed);break;case 27:Nf&&(Nf.hidden=!0);break;case 40:p1(Ed,40);break;case 38:p1(Ed,38);break;case 39:iU(39);break;case 37:iU(37);break;case 229:u6.inputMethodsTracker.add(4);break;default:u6.inputMethodsTracker.add(1),
iPG(u6)}return!1}),QU=_.I_(function(Ed){a(Ed.target.value);
P();rx()&&Nf&&(Nf.scrollTop=0);return!1}),jN=_.I_(function(){u6.inputMethodsTracker.add(2);
iPG(u6);return!1});
_.H2(function(){if(Nf){u6.reset();if(window.ResizeObserver){var Ed=new ResizeObserver(function(){R()||(Nf.style.minWidth=L5.value.offsetWidth+"px")});
Ed.observe(L5.value);(new ResizeObserver(function(){su()})).observe(Nf);
_.z3(function(){Ed.disconnect()})}k();
window.addEventListener("yt-navigate-finish",k);window.addEventListener("yt-focus-searchbox",function(){ub.value.focus()});
var sd;Om((sd=_.q6("SBOX_SETTINGS"))==null?void 0:sd.HAS_ON_SCREEN_KEYBOARD)}else _.MN(new _.Zf("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Oe=_.I_(function(Ed){Ed.preventDefault();X(ub.value.value,12);return!1}),Bd=_.I_(function(Ed){Ed.preventDefault();
var sd,Hp;(sd=ub)==null||(Hp=sd.value)==null||Hp.focus();var zd,bb;((zd=ub)==null?void 0:(bb=zd.value)==null?void 0:bb.value)!==""&&(ub.value.value="",ub.value.dispatchEvent(new Event("input")));return!1}),HM=_.I_(function(){var Ed=PKt(ub.value.value,B().filter(function(sd){return sd.type!==35}).map(function(sd){return{label:sd.text}}));
_.DS(d5.value,"yt-open-popup-action",[{openPopupAction:Ed},document.body]);return!1}),mG=_.I_(function(){ub.value.focus();
return!1}),UX=function(Ed,sd,Hp,zd,bb){u6.selectedSuggestionIndex=Hp;
X(sd,bb?3:1,zd)},bc=function(Ed){ub.value.value=Ed;
ub.value.dispatchEvent(new Event("input"));u6.inputMethodsTracker.add(5);iPG(u6,!0)},ro=[[]],fy=function(Ed){var sd="searchbox-suggestion"+_.jP(_.vb);
ro[Ed].push(sd);return sd},We=function(Ed){if(B()){ro=[[]];
for(var sd=0;sd<Ed;sd++)ro.push([])}},su=function(){if(rx()){var Ed=Nf,sd=Ed.scrollTop;
Ed=Ed.scrollHeight-Ed.clientHeight;Bo(sd>=Ed);sd=Math.abs(Ed-sd);sd<=40?Fd(1-(40-sd)/40):Fd(1)}},Kq=function(){return"opacity: "+r5()*100+"%"},Em=_.I_(function(){su();
return!1}),TJ=_.I_(function(){ib(!1);
return!1}),qR,xg={},K1={},wj={},NY={};
return _.A("yt-searchbox",{class:_.g$("ytSearchboxComponentHost",(xg.ytSearchboxComponentMweb=!1,xg.ytSearchboxComponentDesktop=!0,xg["yt-searchbox-filled-query"]=function(){return J()},xg["ytd-masthead"]=function(){return!H()},xg.ytSearchboxComponentHostDark=oq,xg)),
role:"search",el:d5,"client-ve-type":10349},_.A("div",{el:L5,"on:click":mG,class:_.g$("ytSearchboxComponentInputBox",(K1.ytSearchboxComponentInputBoxDark=oq,K1.ytSearchboxComponentInputBoxHasFocus=H,K1))},_.A("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Oe},_.A(_.v,{cond:H,then:function(){return _.A("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.A(_.$_,{icon:"SEARCH"}))}}),_.A("input",{el:ub,
class:_.g$("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Rq,"aria-expanded":!((qR=Nf)==null?0:qR.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":ow,"on:focus":Rm,"on:input":QU,"on:keydown":oH,"on:paste":jN,placeholder:D.placeholderText,"aria-activedescendant":function(){var Ed;return(Ed=ro[L()])==null?void 0:Ed[Y()]},
"aria-autocomplete":"list",role:"combobox"})),_.A(_.v,{cond:Q,then:function(){return _.A("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.A(TZU,null))}}),_.A(_.v,{cond:J,
then:function(){return _.A("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.A("button",{class:"ytSearchboxComponentClearButton","on:click":Bd,"aria-label":D.clearButtonAriaLabel||jWG},_.A(_.$_,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.A(_.NL,{model:{}})))}})),_.A("button",{class:_.g$("ytSearchboxComponentSearchButton",(wj.ytSearchboxComponentSearchButtonDark=oq,wj)),
"on:click":Oe,"aria-label":zgt,title:D.placeholderText},_.A(_.$_,{icon:"SEARCH"})),_.A(_.v,{cond:function(){if(Cpo()&&_.b("mweb_voice_search")&&D.voiceSearchButton)return D.voiceSearchButton()},
then:function(Ed){var sd={};return _.A("div",{class:_.g$("ytSearchboxComponentVoiceSearchWrapper",(sd.ytSearchboxComponentHideVoiceSearchButton=function(){return J()},sd))},_.A(_.BX,{data:Ed},{buttonRenderer:function(Hp){return _.A(_.mb,{data:Hp.data,
onButtonClickCallback:function(){}})}}))}}),_.A("div",{el:_.fb(function(Ed){return void(Nf=Ed)}),
id:Rq,class:_.g$("ytSearchboxComponentSuggestionsContainer",(NY.ytSearchboxComponentSuggestionsContainerDark=oq,NY["yt-searchbox-suggestions-container"]=!1,NY.ytSearchboxComponentSuggestionsContainerScrollable=rx(),NY.ytSearchboxComponentSuggestionsContainerAnimated=u,NY)),"on:scroll":Em,"on:mousemove":TJ,role:"listbox",hidden:!0},_.A(_.Zh,{each:B},function(Ed,sd){return _.A(Get,{suggestion:Ed,isHighlighted:function(){return sd()===L()},
onClickCallback:UX,onHoverUpdateCallback:function(Hp){if(_.b("desktop_enable_single_suggestion_highlight")){var zd=sd();Hp&&(y(0),t(zd))}},
onRemoveCallback:function(Hp){JrX(xt);Hp===void 0||Hp<0||GJ().includes(Hp)||jZ([].concat(_.VB(GJ()),[Hp]))},
labels:D.labels,queryBuilderFunction:bc,suggestionIndex:sd,generateUniqueId:fy,highlightedId:function(){var Hp;return(Hp=ro[L()])==null?void 0:Hp[Y()]},
useScrollMargin:rx(),isKeyboardMode:Ac})}),_.A(_.v,{cond:function(){return!R()&&B().find(function(Ed){return Ed.type!==35})&&_.b("searchbox_reporting")},
then:function(){return _.A("button",{class:"ytSearchboxComponentReportButton","on:mousedown":HM},_.I7("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.A(_.v,{cond:function(){return!xj()&&rx()},
then:function(){return _.A("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.A("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Kq}))}})))},"Ej");
qPY.idomCompat={callbacks:{focusCallback:!0}};_.CI(qPY,"yt-searchbox",{props:{searchEndpoint:_.Bm,placeholderText:_.Bm,labels:_.Bm,voiceSearchButton:_.Bm,focusCallback:_.R3,clearButtonAriaLabel:_.Bm,forceDarkMode:_.Bm}});var Mp=function(){var D=_.w.apply(this,arguments)||this;D.menuButtonTargetId="topbar-guide-menu";D.narrow=!1;D.menuStrings={BACK_ALT_LABEL:_.I7("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.I7("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.I7("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.I7("SBOX_PLACEHOLDER",void 0,"Search")};D.pageDarkTheme=document.documentElement.hasAttribute("dark");D.watchPageScrollTop=0;D.theater=!1;D.fullscreen=!1;D.disableFrostedGlassDuringViewTransition=
!1;D.desktopUnifiedSearchPanelMode=_.b("desktop_enable_unified_search_panel");D.aiCompanionEnabled=_.b("enable_ai_companion");D.ytSearchboxFocused=!1;D.searchboxLabels=_.q6("SBOX_LABELS");D.topbarIsAboveChipbar=!1;D.isDarkThemeForced=!1;D.areGhostCardsHidden=!1;D.guideKeyboardToggle=!1;D.voiceSearchManager=RMk();D.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};D.setYtSearchboxFocused=function(C){D.ytSearchboxFocused=C};
D.toggleFrostedGlassDuringViewTransition=function(C){D.disableFrostedGlassDuringViewTransition=C};
return D};
_.h(Mp,_.w);_.S=Mp.prototype;_.S.computeSimpleText=function(D){return _.Mh(D)};
_.S.onDarkChanged=function(){for(var D=_.U(this.buttons||[]),C=D.next();!C.done;C=D.next())C.value.isOverlay=!!this.dark;D=_.U(this.buttonRenderers||[]);for(C=D.next();!C.done;C=D.next())C.value.overrides=this.computeButtonOverride()};
_.S.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.S.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var D=_.Q4(_.uP(),"aa");_.gi(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||D||(this.isDarkThemeForced=this.dark=!0);this.logoType?(D=this.hostElement.querySelector("#masthead-logo"))&&(_.b("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.ep(D)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Pr(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Pr(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.S.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Pr(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Pr(this,this.onSetTheaterModeEnabled))};
_.S.dataChanged=function(){var D=this.data;D&&(this.voiceEnabled=D.voiceSearchButton?RMk().isSupported():!1,_.z0(_.jJ(),this.menuButtonTargetId,this.guideButton),D.onReceivedActions&&D.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.o7(this.hostElement,D.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&D&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.gi(this.hostElement,"dark",!1),_.gi(this.hostElement,"theater",!1),(D=
this.hostElement.querySelector("#masthead-logo"))&&(_.b("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.ep(D))))};
_.S.computeCenterHidden=function(){var D;return this.data&&!((D=this.data.searchbox)==null?0:D.fusionSearchboxRenderer)};
_.S.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.gi(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.S.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.S.onWatchScroll=function(D){this.watchPageScrollTop=D.detail||0;this.updateMastheadBackgroundOpacity()};
_.S.onFullscreenChangeAction=function(D){D||(this.watchPageScrollTop=0);this.fullscreen=D;this.updateMastheadBackgroundOpacity()};
_.S.onSetTheaterModeEnabled=function(D){this.theater=D.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.S.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.S.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.S.setBackgroundOpacity=function(D){D=this.calculateBackgroundOpacity(D);this.background.style.opacity=""+D};
_.S.calculateBackgroundOpacity=function(D){var C=this.theater?.6:0,X=this.hostElement.clientHeight/2;return Math.min(Math.max(D,0),X)/X*(1-C)+C};
_.S.shouldShowCinematicMastHead=function(){var D=_.b("kevlar_watch_grid")&&!_.b("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(D||this.pageDarkTheme)};
_.S.focusGuide=function(){this.guideButton.focus()};
_.S.onGuideToggleTap=function(){_.lE(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.S.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.S.onGuideToggleHover=function(){_.lE(this.hostElement,"yt-guide-hover")};
_.S.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.S.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.S.closeOnOutsideClickCondition=function(D){for(D=_.Mz(D);D[0];){var C=D.shift();if(C instanceof Element&&C.id==="kbd")return!1}return!0};
_.S.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.S.pausePlayer=function(){var D;(D=_.CT())==null||D.pause();this.pauseMiniplayer()};
_.S.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var D;(D=_.iX().resolve(_.wB).getPlayerElement())==null||D.pause()}};
_.S.isMiniplayerActive=function(){return _.iX().resolve(_.wB).isMiniplayerActive()};
_.S.updateNarrowFromBinding=function(D){this.narrow=D.detail.value};
_.S.onYtSendFeedbackAction=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.S.registerWithViewTransitionManager=function(){aEX(_.iX().resolve(_.c3),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.$a.Object.defineProperties(Mp.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.aiCompanionEnabled&&((D=this.data)==null?0:D.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var D;return(D=this.data)==null?void 0:D.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
Mp.prototype.narrowChanged=Mp.prototype.narrowChanged;Mp.prototype.onWatchPageChange=Mp.prototype.onWatchPageChange;Mp.prototype.onRendererStamperFinished=Mp.prototype.onRendererStamperFinished;Mp.prototype.dataChanged=Mp.prototype.dataChanged;Mp.prototype.onDarkChanged=Mp.prototype.onDarkChanged;_.V([_.m(_.lR),_.z("design:type",Object)],Mp.prototype,"ironResizableBehavior",void 0);_.V([_.m(_.IJN),_.z("design:type",Object)],Mp.prototype,"ytdExpandableInputBehavior",void 0);
_.V([_.m(_.kc.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Mp.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.OA),_.z("design:type",Object)],Mp.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"narrow",void 0);_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"logoType",void 0);_.V([_.n(),_.z("design:type",Boolean)],Mp.prototype,"voiceEnabled",void 0);
_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"menuStrings",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mp.prototype,"dark",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mp.prototype,"pageDarkTheme",void 0);_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"watchPageScrollTop",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.tOo}),_.z("design:type",Boolean)],Mp.prototype,"isWatchPage",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.NpF}),_.z("design:type",Boolean)],Mp.prototype,"isShortsPage",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mp.prototype,"theater",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mp.prototype,"fullscreen",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.wm5}),_.z("design:type",String)],Mp.prototype,"frostedGlassMode",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mp.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],Mp.prototype,"aiCompanionEnabled",void 0);_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"ytSearchboxFocused",void 0);_.V([_.uH("#buttons > *"),_.z("design:type",Array)],Mp.prototype,"buttons",void 0);_.V([_.uH("ytd-button-renderer"),_.z("design:type",Array)],Mp.prototype,"buttonRenderers",void 0);
_.V([_.kn("#background"),_.z("design:type",HTMLDivElement)],Mp.prototype,"background",void 0);_.V([_.kn("#guide-button"),_.z("design:type",Object)],Mp.prototype,"guideButton",void 0);_.V([_.kn("#logo"),_.z("design:type",Object)],Mp.prototype,"logo",void 0);_.V([_.n({computed:"computeButtonOverride(dark)"}),_.z("design:type",Object)],Mp.prototype,"buttonOverrides",void 0);
_.V([_.bH("dark"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mp.prototype,"onDarkChanged",null);_.V([_.n({value:function(){return this.onVoiceTap.bind(this)}}),
_.z("design:type",Function)],Mp.prototype,"boundOnTapVoiceButton",void 0);_.V([_.n(),_.z("design:type",Object)],Mp.prototype,"topbarIsAboveChipbar",void 0);_.V([_.n(),_.z("design:type",String),_.z("design:paramtypes",[])],Mp.prototype,"guideIcon",null);_.V([_.e("voiceEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Mp.prototype,"shouldShowVoiceSearchButton",null);
_.V([_.e("data.aiCompanionButton","aiCompanionEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Mp.prototype,"shouldShowAiCompanionButton",null);_.V([_.e("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mp.prototype,"voiceSearchButton",null);_.V([_.e("aiCompanionEnabled"),_.z("design:type",String),_.z("design:paramtypes",[])],Mp.prototype,"narrowQuery",null);
_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mp.prototype,"dataChanged",null);_.V([_.$n("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mp.prototype,"onRendererStamperFinished",null);_.V([_.bH("isWatchPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mp.prototype,"onWatchPageChange",null);
_.V([_.bH("narrow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mp.prototype,"narrowChanged",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-masthead"})],Mp);
_.G(Mp,"ytd-masthead",function(){if(E0t!==void 0)return E0t;var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return E0t=D},{mode:_.Wc("kevlar_poly_si_batch_j036")?1:2});var fm6;var dbG={},RgN={},lmN={},DTt={},Cik=(DTt.OFFLINE=(dbG["publicytnetworkstatus-online"]="BACK_ONLINE",dbG),DTt.ONLINE=(RgN["publicytnetworkstatus-offline"]="OFFLINE",RgN),DTt.BACK_ONLINE=(lmN["publicytnetworkstatus-offline"]="OFFLINE",lmN.TIMER_TRIGGER="ONLINE",lmN),DTt),qp=function(){var D=_.w.apply(this,arguments)||this;D.currentState="ONLINE";D.scheduledJobId=0;D.bannerString="";D.bannerVe=null;D.networkStatusManagerInstance=new _.Se;return D};
_.h(qp,_.w);_.S=qp.prototype;_.S.attached=function(){var D=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.S.detached=function(){var D=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.S.enterState=function(D){var C=this;this.scheduledJobId&&_.qX.cancelJob(this.scheduledJobId);D==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):D==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.I7("NO_INTERNET_CONNECTION",void 0,"No internet connection")):D==="BACK_ONLINE"&&(this.bannerString=_.I7("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Zo(_.qX,function(){C.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=D};
_.S.stateChangeHandler=function(D){(D=Cik[this.currentState][D])&&this.enterState(D)};
_.S.logVisibility=function(D){var C=_.LN();this.createBannerVe(D);C&&this.bannerVe&&(D?_.VP(C,[this.bannerVe]):_.To(C,[this.bannerVe]))};
_.S.createBannerVe=function(D){!this.bannerVe&&D&&(this.bannerVe=_.Ia(37929),_.Tm(_.iO(),this.bannerVe))};
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",String)],qp.prototype,"currentState",void 0);_.V([_.n(),_.z("design:type",Object)],qp.prototype,"scheduledJobId",void 0);_.V([_.n(),_.z("design:type",Object)],qp.prototype,"bannerString",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-network-status-banner"})],qp);
_.G(qp,"ytd-network-status-banner",function(){if(fm6!==void 0)return fm6;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return fm6=
D},{mode:1});var X$t;var fS=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};D.hidden=!0;D.frostedGlass=_.b("web_frosted_glass");return D};
_.h(fS,_.w);fS.prototype.computeHidden=function(D){return D&&D.status?!1:!0};
fS.prototype.handleUpdatePermissionRoleCommand=function(D){if(D=_.r(D,_.H45))if(D=_.r(D.renderer,_.TpN))this.data=D};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],fS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],fS.prototype,"componentBehavior",void 0);_.V([_.n({value:!0,computed:"computeHidden(data)"}),_.z("design:type",Object)],fS.prototype,"hidden",void 0);_.V([_.n(),_.z("design:type",Object)],fS.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],fS.prototype,"frostedGlass",void 0);
_.V([_.yj({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],fS);
_.G(fS,"ytd-permission-role-bottom-bar-renderer",function(){if(X$t!==void 0)return X$t;var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);return X$t=D},{mode:1});var ctp;var oI6;var YfP={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var dS=function(){return _.w.apply(this,arguments)||this};
_.h(dS,_.w);_.S=dS.prototype;_.S.attached=function(){this.JSC$21310_scroller&&(this.JSC$21310_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21310_scroller.attached&&typeof this.JSC$21310_scroller.attached==="function"&&this.JSC$21310_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.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 D=_.SY(this.hostElement);D.querySelector("tp-yt-paper-radio-group").selected="";var C=D.querySelector("#reason-text");C&&(C.value="");D.querySelector("#description-text").value=""}};
_.S.canSubmit=function(D,C){_.lE(this.hostElement,"yt-invalidate-popup-tabbables");return!(D&&C)};
_.S.onCancel=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.S.onSubmit=function(){var D=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(p){return p.active}).map(function(p){return p.innerText.trim()}),C=this.hostElement.querySelector("tp-yt-paper-radio-group"),X=C.selectedItem,c=X.name;
X=X.innerText.trim();var W=C.querySelector("#reason-text");C=void 0;W&&(C=W.value);(W=this.descriptionText.value)&&(W=W.trim());y6p(this.data.searchQuery,D,c,X,W,C);_.DS(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.S.sendFormSubmitToast=function(){var D=_.l8(_.I7("SBOX_INAPPROPRIATE_TOAST"));_.DS(this.hostElement,"yt-open-popup-action",[D,this])};
_.S.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(D){return D.active})};
_.S.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
dS.prototype.onIronSelect=dS.prototype.onIronSelect;dS.prototype.onIronChange=dS.prototype.onIronChange;dS.prototype.dataChanged=dS.prototype.dataChanged;_.V([_.n(),_.z("design:type",Object)],dS.prototype,"data",void 0);_.V([_.n({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.z("design:type",Boolean)],dS.prototype,"submitDisabled",void 0);_.V([_.n(),_.z("design:type",Boolean)],dS.prototype,"suggestionSelected",void 0);
_.V([_.n(),_.z("design:type",Boolean)],dS.prototype,"catagorySelected",void 0);_.V([_.kn("#scroller"),_.z("design:type",Object)],dS.prototype,"JSC$21310_scroller",void 0);_.V([_.kn("#description-text"),_.z("design:type",Object)],dS.prototype,"descriptionText",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dS.prototype,"dataChanged",null);
_.V([_.$n("iron-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dS.prototype,"onIronChange",null);_.V([_.$n("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dS.prototype,"onIronSelect",null);_.V([_.yj({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],dS);
_.G(dS,"ytd-search-suggestion-report-dialog",function(){if(oI6!==void 0)return oI6;var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return oI6=D},{mode:1});var RY=function(D){var C=D.openPopupAction;var X=D.target;var c=D.container;var W=D.popupContainerConfig;var p=D.getElement;D=D.removeWhenClosed===void 0?!1:D.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=C;this.target=X;this.container=c;this.popupContainerConfig=W;this.getElement=p;this.JSC$21316_popupConfig=this.popupContainerConfig.JSC$20439_popupConfig[this.openPopupAction.popupType];this.rendererName=(C=this.getName())?_.SNt(C,m2Y(this.popupContainerConfig,
C)):"";_.b("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=D);this.createPopup()};
RY.prototype.updatePopup=function(D){this.openPopupAction=D;this.JSC$21316_popupConfig=this.popupContainerConfig.JSC$20439_popupConfig[this.openPopupAction.popupType];WfG(this);_.b("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
RY.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var UTX=function(D,C,X){(C=C&&D.JSC$21316_popupConfig.narrowProperties?D.JSC$21316_popupConfig.narrowProperties:D.JSC$21316_popupConfig.properties)&&X!==void 0&&(C.isAriaModal=X);p$N(D,C);D.isRtl()&&p$N(D,D.JSC$21316_popupConfig.rtlProperties);SjN(D)};
RY.prototype.createPopup=function(){var D=this.JSC$21316_popupConfig.component;if(this.popupContent=gIt(this,this.rendererName)){if(D){this.popup=gIt(this,D);var C=this.popupContent;_.b("web_enable_wrapper_for_cow_component_in_popup")&&(C=document.createElement("div"),C.appendChild(this.popupContent));_.b("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21316_popupConfig.slotName&&C.setAttribute("slot",this.JSC$21316_popupConfig.slotName);D=this.popup;var X=this.container.tagName.toLowerCase();
_.CG("desktop_web_boolean_flag_with_counterfactual_study");var c=_.dL(C);_.Xnm(_.lj(D),_.Xz(C,X,c));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.b("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.SY(this.container).appendChild(this.popup)}};
var WfG=function(D){var C,X,c=(C=D.openPopupAction.accessibilityData)==null?void 0:(X=C.accessibilityData)==null?void 0:X.label;c&&(D.popup.ariaLabel=c);var W;((W=D.popupContent.polymerController)!=null?W:D.popupContent).data=(0,_.ZI.unsafeClone)(D.openPopupAction.popup[D.getName()]);D.popupContent.duration=ar6(D);D.popupContent.positionType=D.openPopupAction.position;var p=D.openPopupAction.properties;p&&Object.keys(p).forEach(function(g){D.popupContent[g]=p[g]})},p$N=function(D,C){if(C)for(var X=
_.U(Object.keys(C)),c=X.next();!c.done;c=X.next())c=c.value,D.popup[c]=C[c]},SjN=function(D){if(D.openPopupAction.position){var C=D.JSC$21316_popupConfig.positionalProperties&&D.JSC$21316_popupConfig.positionalProperties[D.openPopupAction.position],X=D.JSC$21316_popupConfig.rtlPositionalProperties&&D.JSC$21316_popupConfig.rtlPositionalProperties[D.openPopupAction.position];
C=D.isRtl()&&X?X:C;C.shiftedHorizontalOffset&&(X=D.popup.style.display,D.popup.style.display="block",D.popupContent&&D.popup.positionTarget&&D.popupContent.clientWidth>D.popup.positionTarget.clientWidth&&(C.horizontalOffset=D.popup.positionTarget.clientWidth/2-C.shiftedHorizontalOffset),D.popup.style.display=X);p$N(D,C)}},Irk=function(D,C,X){if(C){for(var c=_.U(Object.keys(C)),W=c.next();!W.done;W=c.next())W=W.value,D.popup.style[W]=C[W];
if(X)for(C=_.U(Object.keys(X)),c=C.next();!c.done;c=C.next())c=c.value,D.popup.style[c]=X[c]}};
RY.prototype.getName=function(){return _.z4(this.openPopupAction.popup,"renderer")||_.z4(this.openPopupAction.popup,"dialog")||_.z4(this.openPopupAction.popup,"model")||void 0};
var ar6=function(D){D=D.openPopupAction.durationHintMs;return D===0?D:Math.max(4E3,D||4E3)};
RY.prototype.isRtl=function(){return _.q6("HTML_DIR")==="rtl"};
var gIt=function(D,C){D=D.getElement(C,D.target);D==null&&_.fQ(new _.Zf("popup getElement returned null",C));return D};var OAU={};
OAU.YtPopupContainerBehavior=[_.O7.YtComponentBehavior,_.Jy.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.dl(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.RB(this.hostElement)},
closePopup:function(D){var C=this.createCacheKey(void 0,D);this.popups_[C]&&this.handleClosePopupAction_(void 0,D)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.qX.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.qX.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(D){D.opened&&D.keepBelowPlayer&&this.ensurePopupBelowPlayer(D)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var D in this.popups_){var C=this.popups_[D];if(C.popup.scrollAction==="refit"){var X=C.popup.positionTarget.getBoundingClientRect(),c=C.popup;X=X.top;var W=C;if(!W.naturalHeight){W.popup.hidden=!1;W.popup.style.position="fixed";W.popup.style.top="0px";W.popup.style.left="0px";var p=W.popup.getBoundingClientRect();W.naturalHeight=p.bottom-p.top;W.popup.refit()}c.hidden=!(X>=W.naturalHeight+60);C.popupContent.clientHeight===0&&C.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(D){this.popupContainerConfig=D},
handleOpenPopupAction:function(D,C){var X=D.openPopupAction,c=_.iX().resolve(_.vK(_.eW))&&X.popupType==="TOAST";c&&!X.uniqueId&&(X.uniqueId=_.Dj());if(!_.b("popup_container_parent_target_killswitch")){var W;C=(W=this.getParentTarget(C))!=null?W:C}var p=this.ensurePopup_(X,C);return new _.mM(function(g){p.then(function(a){if(!a)return g();this.maybeCreateNarrowMediaQuery_();var O=this.createCacheKey(a.rendererName,a.openPopupAction.uniqueId);if(X.showOncePerUniqueId){if(this.shownPopupKeys_.has(O))return g();
this.shownPopupKeys_.add(O)}O=this.popups_[O];var P=!(!O||!O.openPopupAction.beReused);P=!!X.reusePopup||P;if(a.popup.opened&&!P){c&&!a.openPopupAction.replacePopup||this.handleClosePopupAction_(a.rendererName,a.openPopupAction.uniqueId);P=X.popupType==="DIALOG"&&!_.b("popup_container_dialog_reopen_killswitch");if(!c&&!P&&O&&O.target==C&&!a.openPopupAction.replacePopup)return g();_.A0(a.popup,function(){this.completeOpenPopupAction_(X,C,a);g()}.bind(this))}else a.popup.opened?a.updatePopup(X):this.completeOpenPopupAction_(X,
C,a),g()}.bind(this))}.bind(this))},
getParentTarget:function(D){if(D&&D instanceof HTMLElement)for(var C=_.U(Object.entries(this.popups_)),X=C.next();!X.done;X=C.next())if(X=_.U(X.value),X.next(),X=X.next().value,this.popupClosesOnClick(X)&&X.popup.contains(D))return X.target},
popupClosesOnClick:function(D){return D.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(D.rendererName.toUpperCase())},
completeOpenPopupAction_:function(D,C,X){X.updatePopup(D);var c=this.narrowMediaQuery_.queryMatches,W=this.isAriaModal;D=this.expandToFullWidth;X.target=C;var p;C=((p=X.target.polymerController)!=null?p:X.target).popupPositionTarget||X.target;X.JSC$21316_popupConfig.targetContainer&&(C=X.container);X.popup.positionTarget=C;X.popupContent.positionTarget=C;SjN(X);X.JSC$21316_popupConfig.forceFocus&&(X.popupContent.style.outline="none");X.popupContent.tabIndex=-1;X.JSC$21316_popupConfig.narrowProperties&&
(X.popup.style.position="static");X.JSC$21316_popupConfig.preventAutonav&&X.popup.setAttribute("prevent-autonav",!0);X.JSC$21316_popupConfig.forceCloseOnOutsideClick&&X.popup.setAttribute("force-close-on-outside-click",!0);UTX(X,c,W);p={};p.width=D?"100%":"";Irk(X,X.JSC$21316_popupConfig.styles,p);X.isRtl()&&Irk(X,X.JSC$21316_popupConfig.rtlStyles,p);if(!X.openPopupAction.shouldStopParentSignal){var g;D=(g=X.target.polymerController)!=null?g:X.target;(X.popupContent.startForwardingEvents||X.popupContainerConfig.forwardingEnabledPopups.has(X.rendererName))&&
D.parentComponent!==X.popupContent&&X.popupContent!==X.target&&X.target!==document.body&&(X.popupContent.startForwardingEvents?X.popupContent.startForwardingEvents(X.popupContainerConfig.forwardedEvents,X.target):(X.JSC$21316_eventForwarder||(X.JSC$21316_eventForwarder=new _.gB(X.popupContent)),X.JSC$21316_eventForwarder.start(X.popupContainerConfig.forwardedEvents,X.target)))}X=X.popup;X.addEventListener("iron-overlay-opened",_.Pr(this,this.onPopupIronOverlayOpened_));X.addEventListener("iron-overlay-closed",
_.Pr(this,this.onPopupIronOverlayClosed_));X.addEventListener("iron-overlay-canceled",_.Pr(this,this.onPopupIronOverlayCanceled_));X.addEventListener("yt-refit",_.Pr(this,this.refitPopup_));X.addEventListener("yt-invalidate-popup-tabbables",_.Pr(this,this.handleInvalidatePopupTabbables_));X.open()},
getPopupDurationMs_:function(D){return D.durationHintMs===0?D.durationHintMs:Math.max(4E3,D.durationHintMs||4E3)},
handleClosePopupAction_:function(D,C){var X=_.b("web_popup_cache_key_killswitch")||!!C;if(D||X){var c=this.createCacheKey(D,C);D=(D=this.popups_[c])&&D.popup}else D=_.M$M(_.Af);if(D&&D.close){if(C=_.iX().resolve(_.vK(_.E7)))D.restoreFocusOnClose=C.isKeyBoardInUse();D.close();this.removePopup_(D,c)}},
handleClosePopupCommand_:function(D){D.closePopupCommand&&D.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,D.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(D){var C={},X;for(X in this.popups_)if(C={key$jscomp$1233:C.key$jscomp$1233},C.key$jscomp$1233=X,!D||!D.some(function(p){return function(g){return g==p.key$jscomp$1233}}(C))){var c=this.popups_[C.key$jscomp$1233],W=c.popup;
_.iX().resolve(_.vK(_.eW))&&c.openPopupAction.popupType==="TOAST"||(W&&W.close&&W.close(),this.removePopup_(W,C.key$jscomp$1233))}},
handleClosePopupsAction_:function(D){D.forEach(function(C){var X=this.popups_[C];X&&((X=X.popup)&&X.close&&X.close(),this.removePopup_(X,C))}.bind(this))},
handleGetPopupOpenedAction_:function(D,C){return(C=this.createCacheKey(D,C))&&this.popups_[C]?this.popups_[D].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var D=[],C;for(C in this.popups_){var X=this.popups_[C];X.popup.opened&&D.push(X)}return D},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(D,C){_.b("ytpopup_disable_default_html_caching")&&D&&D.removeWhenClosed&&(_.SY(this.hostElement).removeChild(D),C&&this.popups_[C]&&delete this.popups_[C])},
shouldReusePopup_:function(D){return!(!D||!D.reusePopup)||!(!D||!D.beReused)},
ensurePopup_:function(D,C){this.maybeCreateNarrowMediaQuery_();var X=_.z4(D.popup,"renderer")||_.z4(D.popup,"dialog")||_.z4(D.popup,"model");if(!X)return _.WE();X=_.SNt(X,m2Y(this.popupContainerConfig,X));return _.WE(this.getAndMaybeCreatePopup_(D,X,C))},
getAndMaybeCreatePopup_:function(D,C,X){var c=this.createCacheKey(C,D.uniqueId);if(this.popups_[c])return this.popups_[c];D=new RY({openPopupAction:D,target:X,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(C)});return this.popups_[c]=D},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(D){return _.b("ytpopup_disable_default_html_caching")?_.b("ytpopup_disable_cache_allowlist")?D&&this.doNotCacheList_.includes(D):D&&D.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",_.Pr(this,this.openPopupQueryMatchesChanged_)),_.SY(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(D){D=D.detail.value;for(var C in this.popups_)UTX(this.popups_[C],D)},
onPopupIronOverlayClosed_:function(D){var C=D.currentTarget,X=_.bj5(C);X=X.length>0?X[0]:C;if(X.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){D.detail.popup=C;D.detail.popupRenderer=X;var c,W={context:{openingElement:((c=this.popups_[(X==null?void 0:X.is)||""])==null?void 0:c.target)||void 0}};Object.assign(W,D.detail);var p;_.lE((p=X.hostElement)!=null?p:X,"yt-popup-closed",W);C.removeEventListener("yt-refit",_.Pr(this,this.refitPopup_));C.removeEventListener("yt-invalidate-popup-tabbables",
_.Pr(this,this.handleInvalidatePopupTabbables_));C.removeEventListener("iron-overlay-canceled",_.Pr(this,this.onPopupIronOverlayCanceled_));C.removeEventListener("iron-overlay-closed",_.Pr(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(C)}},
onPopupIronOverlayCanceled_:function(D,C){var X=D.currentTarget,c=_.bj5(X);c=c.length>0?c[0]:X;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){var W;_.lE((W=c.hostElement)!=null?W:c,"yt-popup-canceled",D.detail);W=C?_.Mz(C):null;(!C||["click","tap"].includes(C.type))&&!X.hasAttribute("force-close-on-outside-click")&&X.positionTarget&&W&&W.includes(X.positionTarget)&&D.preventDefault();X.restoreFocusOnClose=_.H8.keyboardEventMatchesKeys(C,"esc")}},
onPopupIronOverlayOpened_:function(D){D=D.currentTarget;var C=_.bj5(D);C=C.length>0?C[0]:D;var X,c;_.lE((X=C.hostElement)!=null?X:C,"yt-popup-opened",(c=C.hostElement)!=null?c:C);D.keepBelowPlayer&&(this.ensurePopupBelowPlayer(D,!0),this.dynamicallyPositionedElements_.add(D));X=_.iX().resolve(_.vK(_.E7));c=!!C.querySelector("#toast");X&&X.isKeyBoardInUse()&&!c&&(typeof C.focusFirstItem==="function"?C.focusFirstItem():(C=_.J6x(D),C.length&&C[0].focus()));D.removeEventListener("iron-overlay-opened",
_.Pr(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(D){D=D.currentTarget;D.refit&&D.refit()},
refitPopups_:function(){for(var D in this.popups_)this.popups_[D].refit()},
handleInvalidatePopupTabbables_:function(D){D=D.currentTarget;D.invalidateTabbables&&D.invalidateTabbables()},
createCacheKey:function(D,C){return _.b("web_popup_cache_key_killswitch")?C?D+"#"+C:D:C?"#"+C:D},
openSheet:function(D,C){var X=D==null?void 0:D.openPopupActionCommand;if(!X&&(D==null?0:D.viewModel)){if(D.sheetPosition)a:switch(D.sheetPosition){case "SHEET_POSITION_RIGHT":X="OPEN_POPUP_POSITION_RIGHT";break a;default:X="OPEN_POPUP_POSITION_UNKNOWN"}else X=void 0;X={openPopupAction:{popup:{sheetViewModel:D.viewModel},popupType:"CONTEXTUAL_SHEET",position:X}}}if(X){var c;this.expandToFullWidth=(c=D==null?void 0:D.expandToFullWidth)!=null?c:!1;this.handleOpenPopupAction(X,C)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var D=this;return _.I(function(C){return C.return(D.handleGetOpenedPopupsAction_().filter(function(X){var c;return((c=X.openPopupAction)==null?void 0:c.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(D,C,X){if(_.b("web_dialog_utils_killswitch")){var c=D==null?void 0:D.openPopupActionCommand,W=(X==null?0:X.ariaLabel)?{accessibilityData:{accessibilityData:{label:X.ariaLabel}}}:void 0;!c&&(D==null?0:D.viewModel)&&(c={openPopupAction:Object.assign({},{popup:{dialogViewModel:D.viewModel},popupType:(X==null?0:X.isModal)?"MODAL":"DIALOG"},W&&W)});c&&this.handleOpenPopupAction(c,C)}else{if(W=D==null?void 0:D.viewModel){var p=X=X===void 0?{}:X;X=p.ariaLabel;W={popup:{dialogViewModel:W},
popupType:p.isModal?"MODAL":"DIALOG"};p={accessibilityData:{label:X}};X&&(W.accessibilityData=p);W={openPopupAction:W}}else W=void 0;if(W=(c=W)!=null?c:D==null?void 0:D.openPopupActionCommand)this.isAriaModal=_.b("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(W,C)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var D=this;return _.I(function(C){return C.return(D.handleGetOpenedPopupsAction_().filter(function(X){var c;return((c=X.openPopupAction)==null?void 0:c.popupType)==="DIALOG"}).length>0)})}}];var Ato;var PiG;var $Tk=_.q8(["about:blank"]),lv=function(){var D=_.w.apply(this,arguments)||this;D.isMuted=!1;D.pageLoadTimeoutId=void 0;D.enableA11yFocusFix=_.b("enable_a11y_focus_fix_for_mac_panel_on_desktop");D.moveFocusToContent=function(){D.iframe.focus()};
return D};
_.h(lv,_.w);_.S=lv.prototype;_.S.dataChanged=function(){var D=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var C=this.data.url,X=_.fq(C);_.b("enable_yt_ata_iframe_authuser")?(X=_.fq(C),_.CK(this.iframe,nJP(X))):_.CK(this.iframe,X);this.pageLoadTimeoutId=_.Zo(_.s3(),function(){return void D.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Of({destination:window,iframe:this.iframe,origin:_.gTq(X.toString()),channelName:"ataiframe",onMessage:_.vN5(adG,function(c){Idt(c.data)?(c=_.d3(c.data,1,_.SN,_.AR()),c.length!==1?_.fQ(Error("Nl")):(c=c[0],c===3?(D.isMuted=!0,D.logStateChanged({adMuteRequested:!0})):c===1&&D.close())):_.fQ(Error("Ol"))}),
onEstablished:function(){D.cancelPageLoadTimeout();D.logStateChanged({pageLoadSucceeded:!0})}})}};
_.S.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.s3().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.S.logStateChanged=function(D){var C;if((C=this.data)==null?0:C.trackingParams)D={adsClientData:{aboutThisAdData:D}},_.iO().stateChanged(this.data.trackingParams,D)};
_.S.close=function(){_.DS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.handlesPopupClosed=function(D,C){var X=this,c,W;return _.I(function(p){if(p.nextAddress==1)return _.q6("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.DS(X.hostElement,"on-about-this-ad-popup-closed",[X.isMuted,C]),p.jumpTo(0)):D&&wq6(D)?p.yield(FEp(D),4):(X.isMuted&&_.DS(X.hostElement,"yt-mute-ad-action",[X.is,X]),p.jumpTo(0));if(c=p.yieldResult){var g=W=new _.gQ(c),a=X.isMuted;g.getOptions().includes("onAboutThisAdPopupClosed")?_.xpd(g,"onAboutThisAdPopupClosed",{isMuted:a,layoutId:C}):_.HX("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.t_(p)})};
_.S.onPopupClosed=function(D){var C=this,X,c;return _.I(function(W){X=_.kX($Tk);_.CK(C.iframe,X);C.cancelPageLoadTimeout();if(!C.data)return W.jumpTo(0);C.ytRendererBehavior.markDirty();c=D.detail.context.openingElement;return W.yield(C.handlesPopupClosed(c,C.data.layoutId),0)})};
_.S.detached=function(){this.cancelPageLoadTimeout()};
_.S.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lv.prototype.onPopupClosed=lv.prototype.onPopupClosed;lv.prototype.dataChanged=lv.prototype.dataChanged;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.V([_.kn("#iframe"),_.z("design:type",HTMLIFrameElement)],lv.prototype,"iframe",void 0);_.V([_.n(),_.z("design:type",Object)],lv.prototype,"data",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lv.prototype,"dataChanged",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype",Promise)],lv.prototype,"onPopupClosed",null);_.V([_.Yn({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],lv);
_.G(lv,"yt-about-this-ad-renderer",function(){if(PiG===void 0){var D=document.createElement("template");_.x(D,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Ato===void 0&&(Ato=document.createElement("template"));var c=Ato;X.call(C,c.content.cloneNode(!0),D.content.firstChild);PiG=D}D=PiG;return D},{mode:2});var vIk;var iAX;var kBt=function(D){var C=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=C.message;"stack"in C&&(this.stack=C.stack);this.maxFileSizeMB=D;Object.setPrototypeOf(this,kBt.prototype)};
_.h(kBt,Error);var uOt=function(D,C){var X=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=X.message;"stack"in X&&(this.stack=X.stack);this.minWidth=D;this.minHeight=C;Object.setPrototypeOf(this,uOt.prototype)};
_.h(uOt,Error);var QDG=function(D){this.requirements=D;this.JSC$21344_maxFileSize=D.maxFileSizeMB*1024*1024},Bbt=function(D,C){if(C.size>D.JSC$21344_maxFileSize)throw new kBt(D.requirements.maxFileSizeMB);
};var bAw=function(D,C){this.canvas=D;this.imageEditorBuilder=C};
bAw.prototype.addEventListeners=function(D){var C=function(W){rtN(D,W)};
this.JSC$21350_mouseDownEvent=C;var X=function(W){Kfo(D,W)};
this.JSC$21350_mouseMoveEvent=X;var c=function(){hC6(D)};
this.JSC$21350_mouseUpEvent=c;this.canvas.addEventListener("mousedown",C);this.canvas.addEventListener("mousemove",X);document.addEventListener("mouseup",c)};
bAw.prototype.removeEventListeners=function(){this.JSC$21350_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21350_mouseDownEvent);this.JSC$21350_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21350_mouseMoveEvent);this.JSC$21350_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21350_mouseUpEvent)};
var xT3=function(D,C){D.removeEventListeners();return new Promise(function(X){var c=new Image;c.crossOrigin="anonymous";c.onload=function(){var W=D.imageEditorBuilder(D.canvas,c);D.addEventListeners(W);X(W)};
c.src=C})},D9=function(D,C,X,c,W,p,g,a){this.canvas=D;
this.image=C;this.requiredRatio=X;this.minImageCropDimension=c;this.minOutputImageResolution=W;this.component=p;this.styleFocusedCorner=a===void 0?!0:a;this.action=2;this.focusedCorner=this.resizeCorner=0;D=this.canvas.getContext("2d");if(!D)throw Error("Pl");this.ctx=D;this.canvasMargin=g!=null?g:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;g=this.image;D=this.canvasInnerWidth/g.width;g.height*D>912&&(D=g.width/g.height*912/g.width);g=D;this.scaledImageWidth=this.canvas.width%2?
Gio(this.image.width*g):ZL3(this.image.width*g);this.scaledImageHeight=Math.round(this.image.height*g);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21353_overlayMarginBottom=this.JSC$21353_overlayMarginTop=this.canvasMargin;this.JSC$21353_overlayMarginRight=this.JSC$21353_overlayMarginLeft=this.horizontalMargin;this.JSC$21353_overlayWidth=this.scaledImageWidth;this.JSC$21353_overlayHeight=this.scaledImageHeight;
D=this.image.width/this.image.height;D>this.requiredRatio?(this.JSC$21353_overlayWidth=this.canvas.width%2?Gio(this.scaledImageHeight*this.requiredRatio):ZL3(this.scaledImageHeight*this.requiredRatio),this.JSC$21353_overlayMarginRight=this.JSC$21353_overlayMarginLeft=(this.canvas.width-this.JSC$21353_overlayWidth)/2):D<this.requiredRatio&&(this.JSC$21353_overlayHeight=this.canvas.height%2?Gio(this.scaledImageWidth/this.requiredRatio):ZL3(this.scaledImageWidth/this.requiredRatio),this.JSC$21353_overlayMarginBottom=
this.JSC$21353_overlayMarginTop=(this.canvas.height-this.JSC$21353_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*g,this.scaledImageWidth);Lf6(this)};
D9.prototype.getContext=function(){return this.ctx};
var rtN=function(D,C){C={x:Math.round(C.pageX-D.canvas.getBoundingClientRect().left),y:Math.round(C.pageY-D.canvas.getBoundingClientRect().top)};D.dragStart=C;sDP(D,C)!==0?(D.action=1,mTw(D,C),D.resizeCorner=sDP(D,C)):C.x>D.JSC$21353_overlayMarginLeft&&C.x<D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth&&C.y>D.JSC$21353_overlayMarginTop&&C.y<D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight&&(D.action=0)},eCN=function(D,C){switch(C){case 1:return{x:D.JSC$21353_overlayMarginLeft,
y:D.JSC$21353_overlayMarginTop};case 2:return{x:D.JSC$21353_overlayMarginLeft,y:D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight};case 3:return{x:D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth,y:D.JSC$21353_overlayMarginTop};case 4:return{x:D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth,y:D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight};default:throw Error("Ql");}},tWX=function(D,C){if(D.focusedCorner!==0){D.dragStart=eCN(D,D.focusedCorner);
D.action=1;D.resizeCorner=D.focusedCorner;var X=D.dragStart.x,c=D.dragStart.y;switch(C){case 0:D.focusedCorner===1||D.focusedCorner===4?(X-=10,c-=10):(X-=10,c+=10);break;case 1:D.focusedCorner===1||D.focusedCorner===4?(X+=10,c+=10):(X+=10,c-=10);break;case 2:X=D.focusedCorner===1||D.focusedCorner===4?X-10:X+10;c-=10;break;case 3:X=D.focusedCorner===1||D.focusedCorner===4?X+10:X-10;c+=10;break;default:throw Error("Rl");}EIX(D,{x:X,y:c});Lf6(D);D.action=2;D.dragStart=void 0}},Kfo=function(D,C){C={x:Math.round(C.pageX-
D.canvas.getBoundingClientRect().left),
y:Math.round(C.pageY-D.canvas.getBoundingClientRect().top)};mTw(D,C);switch(D.action){case 1:EIX(D,C);break;case 0:D.dragStart&&(D.JSC$21353_overlayMarginLeft=Math.max(D.horizontalMargin,Math.min(D.JSC$21353_overlayMarginLeft-(D.dragStart.x-C.x),D.horizontalMargin+D.scaledImageWidth-D.JSC$21353_overlayWidth)),D.JSC$21353_overlayMarginRight=D.canvas.width-D.JSC$21353_overlayMarginLeft-D.JSC$21353_overlayWidth,D.JSC$21353_overlayMarginTop=Math.max(D.canvasMargin,Math.min(D.JSC$21353_overlayMarginTop-
(D.dragStart.y-C.y),D.scaledImageHeight-D.JSC$21353_overlayHeight+D.canvasMargin)),D.JSC$21353_overlayMarginBottom=D.canvas.height-(D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight));break;default:return}Lf6(D);D.dragStart=C},hC6=function(D){D.action=2;
D.dragStart=void 0;document.body.style.cursor="auto"},mTw=function(D,C){switch(sDP(D,C)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:D.action!==1&&(document.body.style.cursor="auto")}},sDP=function(D,C){var X=D.JSC$21353_overlayMarginLeft-5,c=D.JSC$21353_overlayMarginTop-5,W=D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth-5;
D=D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-5;return Nbk(C,{x:X,y:c})?1:Nbk(C,{x:W,y:c})?3:Nbk(C,{x:X,y:D})?2:Nbk(C,{x:W,y:D})?4:0},Nbk=function(D,C){return D.x>=C.x&&D.x<=C.x+10&&D.y>=C.y&&D.y<=C.y+10},EIX=function(D,C){if(D.dragStart)switch(D.resizeCorner){case 2:Math.abs((D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth-C.x)/(C.y-D.JSC$21353_overlayMarginTop))>=D.requiredRatio?Yjp(D,C.x):ytt(D,C.y);
break;case 1:Math.abs((D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth-C.x)/(D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-C.y))>=D.requiredRatio?nIN(D,C.x):ytt(D,C.y);break;case 4:Math.abs((C.x-D.JSC$21353_overlayMarginLeft)/(C.y-D.JSC$21353_overlayMarginTop))>=D.requiredRatio?Yjp(D,C.x):w$k(D,C.y);break;case 3:Math.abs((C.x-D.JSC$21353_overlayMarginLeft)/(D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-C.y))>=D.requiredRatio?nIN(D,C.x):w$k(D,C.y);break;default:throw Error("Sl");
}},Yjp=function(D,C){var X=D.JSC$21353_overlayMarginTop;
D.JSC$21353_overlayMarginBottom=Ffw(D,C);D.JSC$21353_overlayHeight=D.canvas.height-D.JSC$21353_overlayMarginBottom-X;D.JSC$21353_overlayWidth=Math.round(D.JSC$21353_overlayHeight*D.requiredRatio);ZAt(D)},nIN=function(D,C){var X=D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight;
D.JSC$21353_overlayMarginTop=Ffw(D,C);D.JSC$21353_overlayHeight=X-D.JSC$21353_overlayMarginTop;D.JSC$21353_overlayWidth=Math.round(D.JSC$21353_overlayHeight*D.requiredRatio);ZAt(D)},ZAt=function(D){switch(D.resizeCorner){case 2:case 1:D.JSC$21353_overlayMarginLeft=D.canvas.width-D.JSC$21353_overlayMarginRight-D.JSC$21353_overlayWidth;
break;case 4:case 3:D.JSC$21353_overlayMarginRight=D.canvas.width-D.JSC$21353_overlayMarginLeft-D.JSC$21353_overlayWidth;break;default:throw Error("Sl");}},ytt=function(D,C){var X=D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth;
D.JSC$21353_overlayMarginLeft=GBk(D,C);D.JSC$21353_overlayWidth=X-D.JSC$21353_overlayMarginLeft;D.JSC$21353_overlayHeight=Math.round(D.JSC$21353_overlayWidth/D.requiredRatio);VW6(D)},w$k=function(D,C){var X=D.JSC$21353_overlayMarginLeft;
D.JSC$21353_overlayMarginRight=GBk(D,C);D.JSC$21353_overlayWidth=D.canvas.width-D.JSC$21353_overlayMarginRight-X;D.JSC$21353_overlayHeight=Math.round(D.JSC$21353_overlayWidth/D.requiredRatio);VW6(D)},VW6=function(D){switch(D.resizeCorner){case 2:case 4:D.JSC$21353_overlayMarginBottom=D.canvas.height-D.JSC$21353_overlayMarginTop-D.JSC$21353_overlayHeight;
break;case 1:case 3:D.JSC$21353_overlayMarginTop=D.canvas.height-D.JSC$21353_overlayMarginBottom-D.JSC$21353_overlayHeight;break;default:throw Error("Sl");}},Ffw=function(D,C){switch(D.resizeCorner){case 2:C=D.canvas.height-(D.JSC$21353_overlayMarginTop+TbY(D,C));
break;case 4:C=D.canvas.height-(D.JSC$21353_overlayMarginTop+HA1(D,C));break;case 1:C=D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-TbY(D,C);break;case 3:C=D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-HA1(D,C);break;default:throw Error("Sl");}return Math.max(C,D.canvasMargin)},TbY=function(D,C){C=D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth-Math.max(C,D.horizontalMargin);
C=C<0?D.JSC$21353_overlayWidth:Math.max(C,D.minOverlayWidth);return Math.round(C/D.requiredRatio)},HA1=function(D,C){C=D.canvas.width-Math.max(D.canvas.width-C,D.horizontalMargin)-D.JSC$21353_overlayMarginLeft;
C=C<0?D.JSC$21353_overlayWidth:Math.max(C,D.minOverlayWidth);return Math.round(C/D.requiredRatio)},GBk=function(D,C){switch(D.resizeCorner){case 2:C=D.canvas.width-D.JSC$21353_overlayMarginRight-JtU(D,C);
break;case 4:C=D.canvas.width-D.JSC$21353_overlayMarginLeft-JtU(D,C);break;case 1:C=D.canvas.width-D.JSC$21353_overlayMarginRight-zCX(D,C);break;case 3:C=D.canvas.width-D.JSC$21353_overlayMarginLeft-zCX(D,C);break;default:throw Error("Sl");}return Math.max(C,D.horizontalMargin)},JtU=function(D,C){C=D.canvas.height-Math.max(D.canvas.height-C,D.canvasMargin)-D.JSC$21353_overlayMarginTop;
return C<0?D.JSC$21353_overlayWidth:Math.max(Math.round(C*D.requiredRatio),D.minOverlayWidth)},zCX=function(D,C){C=D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-Math.max(C,D.canvasMargin);
return C<0?D.JSC$21353_overlayWidth:Math.max(Math.round(C*D.requiredRatio),D.minOverlayWidth)},Lf6=function(D){D.ctx.clearRect(0,0,D.canvas.width,D.canvas.height);
D.ctx.drawImage(D.image,0,0,D.image.width,D.image.height,D.horizontalMargin,D.canvasMargin,D.canvas.width-2*D.horizontalMargin,D.scaledImageHeight);D.ctx.fillStyle="rgba(0, 0, 0, 0.7)";D.ctx.fillRect(D.horizontalMargin,D.JSC$21353_overlayMarginTop,D.JSC$21353_overlayMarginLeft-D.horizontalMargin,D.JSC$21353_overlayHeight);D.ctx.fillRect(D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth,D.JSC$21353_overlayMarginTop,D.JSC$21353_overlayMarginRight-D.horizontalMargin,D.JSC$21353_overlayHeight);D.ctx.fillRect(D.horizontalMargin,
D.canvasMargin,D.scaledImageWidth,D.JSC$21353_overlayMarginTop-D.canvasMargin);D.ctx.fillRect(D.horizontalMargin,D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight,D.scaledImageWidth,D.JSC$21353_overlayMarginBottom-D.canvasMargin);D.drawOverlay();D.component&&_.lE(D.component,"image-updated")};
D9.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21353_overlayMarginLeft,this.JSC$21353_overlayMarginTop,this.JSC$21353_overlayWidth,this.JSC$21353_overlayHeight);jDt(this)};
var jDt=function(D){var C=D.JSC$21353_overlayMarginLeft-5,X=D.JSC$21353_overlayMarginTop-5,c=D.JSC$21353_overlayMarginLeft+D.JSC$21353_overlayWidth-5,W=D.JSC$21353_overlayMarginTop+D.JSC$21353_overlayHeight-5;D.ctx.fillStyle="#FFF";D.ctx.fillRect(C,X,10,10);D.ctx.strokeRect(C,X,10,10);D.ctx.fillRect(c,X,10,10);D.ctx.strokeRect(c,X,10,10);D.ctx.fillRect(C,W,10,10);D.ctx.strokeRect(C,W,10,10);D.ctx.fillRect(c,W,10,10);D.ctx.strokeRect(c,W,10,10);if(D.focusedCorner!==0&&D.styleFocusedCorner){D.ctx.lineWidth=
4;D.ctx.strokeStyle="#3EA6FF";switch(D.focusedCorner){case 1:--C;--X;break;case 2:--C;X=W-1;break;case 3:C=c-1;--X;break;case 4:C=c-1;X=W-1;break;default:return}D.ctx.strokeRect(C,X,12,12)}};
D9.prototype.crop=function(D,C){C=C===void 0?!0:C;var X=this.image.width/this.scaledImageWidth,c=document.createElement("canvas"),W=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],p=this.JSC$21353_overlayWidth*X,g=this.JSC$21353_overlayHeight*X;c.width=Math.max(p,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);c.height=Math.max(g,W);D&&(c.width=Math.min(c.width,c.height),c.height=Math.min(c.width,c.height));
D=c.getContext("2d");if(!D)throw Error("Gl");W=(this.JSC$21353_overlayMarginLeft-this.horizontalMargin)*X;X*=this.JSC$21353_overlayMarginTop-this.canvasMargin;C||(D.fillStyle="white",D.fillRect(0,0,c.width,c.height));D.drawImage(this.image,W,X,p,g,0,0,c.width,c.height);return c};var MWX=function(D,C,X,c,W){D9.call(this,D,C,X,c,void 0,W,8,!1)};
_.h(MWX,D9);MWX.prototype.drawOverlay=function(){var D=this.getContext(),C=this.JSC$21353_overlayWidth,X=this.JSC$21353_overlayHeight,c=this.JSC$21353_overlayMarginTop,W=this.JSC$21353_overlayMarginLeft;D.lineWidth=2;D.strokeStyle="#3EA6FF";D.beginPath();D.arc(W+C/2,c+X/2,C/2,0,2*Math.PI);D.stroke();D.strokeRect(W,c,C,X);jDt(this)};
var qjt={maxFileSizeMB:15,minWidth:98,minHeight:98},frw=["image/png","image/jpeg","image/gif"],CJ=function(){var D=_.w.apply(this,arguments)||this;D.fileSelectorFocusListener=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!0;D.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return D};
_.h(CJ,_.w);_.S=CJ.prototype;_.S.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.S.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.S.computePlaylistThumbnail=function(D){return D==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.S.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.DS(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.S.setErrorState=function(D){this.resetErrorState();D&&(this.errorMessage=D)};
_.S.showPopup=function(){var D=this;this.hideContainer=!1;_.Zo(_.qX,function(){_.lE(D.hostElement,"yt-refit")});
this.isLoading=!1};
_.S.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.S.closePopup=function(){this.resetFileSelector();_.DS(this.hostElement,"yt-close-popup-action",[this.is])};
_.S.onCancelTap=function(){this.isPlaylistThumbnail||_.DS(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.S.openFileSelector=function(){var D=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Zo(_.qX,function(){setTimeout(function(){if(!D.fileSelector.files||D.fileSelector.files.length===0)D.onCancelTap();D.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(C){C instanceof Error?_.MN(C):_.qN(new _.Zf(JSON.stringify(C)))}};
_.S.handleFileSelection=function(){var D=this,C,X,c,W,p,g;return _.I(function(a){switch(a.nextAddress){case 1:_.KK(a,2);if(!D.fileSelector.files||!D.imageEditorCanvas)return D.onCancelTap(),a.return();C=D.fileSelector.files[0];Bbt(D.imageChecker,C);_.KK(a,4);return a.yield(WEY(C),6);case 6:D.mimeType=a.yieldResult;_.SR(a,5,2);break;case 4:_.Eu(a,2),_.DS(D.hostElement,"yt-image-selection-error-action",[(X=D.data)==null?void 0:X.genericImageLoadErrorMessage]),D.onCancelTap();case 5:c=new FileReader;
c.addEventListener("load",function(){var O,P;return _.I(function(k){if(k.nextAddress==1){if(!c.result)return _.fQ(Error("Il")),k.return();O=c.result;P=new Image;P.src=O;P.onload=function(){try{var u=D.imageChecker;if(P.width<u.requirements.minWidth||P.height<u.requirements.minHeight)throw new uOt(u.requirements.minWidth,u.requirements.minHeight);}catch(B){if(B instanceof uOt){var Q;_.DS(D.hostElement,"yt-image-selection-error-action",[(Q=D.data)==null?void 0:Q.imageDimensionErrorMessage]);D.logImageDimensionErrorVe()}else B instanceof
Error?_.MN(B):(u=new _.Zf(JSON.stringify(B)),_.MN(u));D.onCancelTap()}D.showPopup()};
P.onerror=function(){var u;_.DS(D.hostElement,"yt-image-selection-error-action",[(u=D.data)==null?void 0:u.genericImageLoadErrorMessage]);D.onCancelTap()};
return k.yield(xT3(D.imageEditorCanvas,O),2)}D.imageEditor=k.yieldResult;D.updatePositionOfAllCorners();D.addEventListeners(D.imageEditor);_.t_(k)})},!1);
c.readAsDataURL(C);_.SR(a,0);break;case 2:W=_.Eu(a),W instanceof kBt?_.DS(D.hostElement,"yt-image-selection-error-action",[(p=D.data)==null?void 0:p.imageSizeErrorMessage]):(W instanceof Error?_.MN(W):_.qN(new _.Zf(JSON.stringify(W))),_.DS(D.hostElement,"yt-image-selection-error-action",[(g=D.data)==null?void 0:g.genericImageLoadErrorMessage])),D.onCancelTap(),_.t_(a)}})};
_.S.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var D=_.vc(_.iO(),{veType:232707,visualElement:_.Ia(232707)});D&&(D={visualElement:D},_.Pc().reportShown(D))}};
_.S.handleImageSelectionErrorAction=function(D){this.isPlaylistThumbnail&&_.$ud(this.hostElement,D)};
_.S.convertToImageFormatBundle=function(D){var C=this,X,c,W;return _.I(function(p){switch(p.nextAddress){case 1:return X=D.toDataURL(C.outputMimeType,1),p.yield(pq1(X),2);case 2:c=p.yieldResult;_.KK(p,3);Bbt(C.imageChecker,c);_.SR(p,4);break;case 3:W=_.Eu(p);if(!(W instanceof kBt))throw W;_.fQ(new _.Zf("Output size is bigger than input size for image",C.mimeType,C.outputMimeType,c.size));X=D.toDataURL("image/jpeg",.95);return p.yield(pq1(X),6);case 6:c=p.yieldResult;case 4:return p.return({dataUrl:X,
imageFile:c})}})};
_.S.handleUploadImageToScottyCommand=function(D){var C=this,X,c,W,p,g,a,O,P,k,u;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!C.imageEditor||!_.r(D,xlo))return Q.return();X=_.r(D,xlo).scottyUploadUrl;if(!X){var B=new _.Zf("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.MN(B);return Q.return()}_.KK(Q,2);C.setLoadingState();c=C.imageEditor.crop(!1,!1);return Q.yield(C.convertToImageFormatBundle(c),4);case 4:return W=Q.yieldResult,Q.yield(c6p(W.imageFile,X),5);
case 5:p=Q.yieldResult;((g=C.data)==null?0:g.onUploadEndpoint)?(a=C.buildUploadServiceEndpoint(p),C.ytComponentBehavior.resolveCommand(a),O=_.r(a,_.gX),((P=O)==null?0:P.params)?C.closePopup():C.resetFileSelector()):(_.DS(C.hostElement,"yt-image-updated-action",[W.dataUrl,p]),C.closePopup());_.SR(Q,0);break;case 2:k=_.Eu(Q),C.setErrorState((u=C.data)==null?void 0:u.uploadErrorMessage),k instanceof Error?_.MN(k):(B=new _.Zf(JSON.stringify(k)),_.MN(B)),_.t_(Q)}})};
_.S.buildUploadServiceEndpoint=function(D){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",D),this.data.onUploadEndpoint):null};
_.S.dataChanged=function(){var D=this,C;return _.I(function(X){if(X.nextAddress==1){if(!D.data||!D.canvasElement)return X.return();D.data.imageRatio&&D.data.minImageCropWidth||_.qN(new _.Zf("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));C=function(c,W){return D.data.imageType==="IMAGE_TYPE_AVATAR"?new MWX(c,W,D.data.imageRatio,[D.data.minImageCropWidth,D.data.minImageCropWidth/D.data.imageRatio],D.hostElement):new D9(c,W,D.data.imageRatio,[D.data.minImageCropWidth,
D.data.minImageCropWidth/D.data.imageRatio],void 0,D.hostElement,8,!1)};
D.imageEditorCanvas=new bAw(D.canvasElement,C);return D.data.url?X.yield(xT3(D.imageEditorCanvas,D.data.url),3):(D.hideContainer=!0,D.openFileSelector(),X.jumpTo(0))}D.imageEditor=X.yieldResult;D.showPopup();D.addEventListeners(D.imageEditor);_.t_(X)})};
_.S.addEventListeners=function(D){this.removeEventListeners();var C=function(W){rtN(D,W)};
this.JSC$21361_mouseDownEvent=C;var X=function(W){Kfo(D,W)};
this.JSC$21361_mouseMoveEvent=X;var c=function(){hC6(D)};
this.JSC$21361_mouseUpEvent=c;this.topLeftCorner.addEventListener("mousedown",C);this.topLeftCorner.addEventListener("mousemove",X);this.topLeftCorner.addEventListener("mouseup",c);this.topRightCorner.addEventListener("mousedown",C);this.topRightCorner.addEventListener("mousemove",X);this.topRightCorner.addEventListener("mouseup",c);this.bottomLeftCorner.addEventListener("mousedown",C);this.bottomLeftCorner.addEventListener("mousemove",X);this.bottomLeftCorner.addEventListener("mouseup",c);this.bottomRightCorner.addEventListener("mousedown",
C);this.bottomRightCorner.addEventListener("mousemove",X);this.bottomRightCorner.addEventListener("mouseup",c)};
_.S.removeEventListeners=function(){this.JSC$21361_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21361_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21361_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21361_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21361_mouseDownEvent));this.JSC$21361_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21361_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21361_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21361_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21361_mouseMoveEvent));this.JSC$21361_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21361_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21361_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21361_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21361_mouseUpEvent))};
_.S.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var D=document.activeElement;D&&D.shadowRoot&&D.shadowRoot.activeElement;)D=D.shadowRoot.activeElement;switch(D){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};
_.S.updatePositionOfCorner=function(D,C){var X=D.y-C.offsetHeight/2+4;C.style.left=D.x-C.offsetWidth/2+16+"px";C.style.top=X+"px"};
_.S.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var D=_.U([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),C=D.next();!C.done;C=D.next()){C=C.value;var X=eCN(this.imageEditor,C.corner);this.updatePositionOfCorner(X,C.div)}};
_.S.onLeft=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(tWX(this.imageEditor,0),this.updatePositionOfAllCorners(),D.preventDefault())};
_.S.onRight=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(tWX(this.imageEditor,1),this.updatePositionOfAllCorners(),D.preventDefault())};
_.S.onUp=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(tWX(this.imageEditor,2),this.updatePositionOfAllCorners(),D.preventDefault())};
_.S.onDown=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(tWX(this.imageEditor,3),this.updatePositionOfAllCorners(),D.preventDefault())};
_.S.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.$a.Object.defineProperties(CJ.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&frw.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var D,C,X;((C=this.data)==null?0:C.imageRatio)&&((X=this.data)==null?0:X.minImageCropWidth)?D={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:D=qjt;return new QDG(D)}}});
CJ.prototype.updatePositionOfAllCorners=CJ.prototype.updatePositionOfAllCorners;CJ.prototype.dataChanged=CJ.prototype.dataChanged;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],CJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],CJ.prototype,"ytComponentBehavior",void 0);_.V([_.m(_.H8),_.z("design:type",Object)],CJ.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.kn("#canvas"),_.z("design:type",HTMLCanvasElement)],CJ.prototype,"canvasElement",void 0);_.V([_.kn("#file-selector"),_.z("design:type",HTMLInputElement)],CJ.prototype,"fileSelector",void 0);_.V([_.kn("#top-left-corner"),_.z("design:type",HTMLDivElement)],CJ.prototype,"topLeftCorner",void 0);_.V([_.kn("#top-right-corner"),_.z("design:type",HTMLDivElement)],CJ.prototype,"topRightCorner",void 0);
_.V([_.kn("#bottom-left-corner"),_.z("design:type",HTMLDivElement)],CJ.prototype,"bottomLeftCorner",void 0);_.V([_.kn("#bottom-right-corner"),_.z("design:type",HTMLDivElement)],CJ.prototype,"bottomRightCorner",void 0);_.V([_.n(),_.z("design:type",Object)],CJ.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],CJ.prototype,"errorMessage",void 0);_.V([_.n(),_.z("design:type",Object)],CJ.prototype,"isLoading",void 0);_.V([_.n(),_.z("design:type",Object)],CJ.prototype,"hideContainer",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.z("design:type",Boolean)],CJ.prototype,"isPlaylistThumbnail",void 0);_.V([_.bH("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],CJ.prototype,"dataChanged",null);_.V([_.$n("image-updated"),_.$n("yt-refit"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CJ.prototype,"updatePositionOfAllCorners",null);
_.V([_.Yn({is:"yt-image-editor-renderer",disableElementRegistration:!0})],CJ);
_.G(CJ,"yt-image-editor-renderer",function(){if(iAX===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;vIk===void 0&&(vIk=document.createElement("template"));var c=vIk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);iAX=D}D=iAX;return D},{mode:2});var dT6;var RCN;var X6=function(){return _.w.apply(this,arguments)||this};
_.h(X6,_.w);X6.prototype.updateMinutesFromBinding=function(D){this.handleMinutesChanged&&this.handleMinutesChanged(D)};
X6.prototype.updateSecondsFromBinding=function(D){this.handleSecondsChanged&&this.handleSecondsChanged(D)};
X6.prototype.updateDescriptionFromBinding=function(D){this.handleDescriptionChanged&&this.handleDescriptionChanged(D)};
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],X6.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],X6.prototype,"data",void 0);_.V([_.n(),_.z("design:type",String)],X6.prototype,"minutes",void 0);_.V([_.n(),_.z("design:type",String)],X6.prototype,"seconds",void 0);_.V([_.n(),_.z("design:type",String)],X6.prototype,"description",void 0);_.V([_.n(),_.z("design:type",Function)],X6.prototype,"handleMinutesChanged",void 0);
_.V([_.n(),_.z("design:type",Function)],X6.prototype,"handleSecondsChanged",void 0);_.V([_.n(),_.z("design:type",Function)],X6.prototype,"handleDescriptionChanged",void 0);_.V([_.n(),_.z("design:type",Number)],X6.prototype,"characterLimit",void 0);_.V([_.n(),_.z("design:type",Number)],X6.prototype,"textNumRows",void 0);_.V([_.Yn({is:"yt-report-details-form-content",disableElementRegistration:!0})],X6);
_.G(X6,"yt-report-details-form-content",function(){if(RCN===void 0){var D=document.createElement("template");_.x(D,'\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>');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;dT6===void 0&&(dT6=document.createElement("template"));var c=dT6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);RCN=D}D=RCN;return D},{mode:2});var lrt;var Djt;var cg=function(){var D=_.w.apply(this,arguments)||this;D.updateMinutesFromBinding=function(C){D.minutes=C.detail.value};
D.updateSecondsFromBinding=function(C){D.seconds=C.detail.value};
D.updateDescriptionFromBinding=function(C){D.description=C.detail.value};
return D};
_.h(cg,_.w);_.S=cg.prototype;_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.S.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"}}}};
_.S.ready=function(){_.SY(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.S.onSubmitYtAction=function(D){var C=D.detail;C.actionName==="yt-service-request"&&(C=C.args[1],C.flagEndpoint&&(D.stopPropagation(),this.refireAction(C)))};
_.S.refireAction=function(D){var C={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(C.vss_id=this.vssId);_.cE(this.hostElement,[D,C]);this.submitDisabled=!0};
_.S.dataChanged=function(){var D=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var C=_.CT();C&&C.getPlayerPromise().then(function(X){var c=X.getOption("cc","track")||X.getOption("captions","track");c&&(D.vssId=c.vss_id);X=X.getCurrentTime();D.minutes=Math.floor(X/60).toString();D.seconds=(Math.floor(X)%60).toString()})};
_.S.updateSubmitButtonState=function(){var D;((D=this.data)==null?0:D.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==="")};
_.S.onYtServiceRequestCompleted=function(){_.DS(this.hostElement,"yt-close-popup-action")};
_.S.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.$a.Object.defineProperties(cg.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.textNumRows)||4}}});
cg.prototype.onYtServiceRequestError=cg.prototype.onYtServiceRequestError;cg.prototype.onYtServiceRequestCompleted=cg.prototype.onYtServiceRequestCompleted;cg.prototype.updateSubmitButtonState=cg.prototype.updateSubmitButtonState;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);
_.V([_.n({observer:"dataChanged"}),_.z("design:type",Object)],cg.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Boolean)],cg.prototype,"submitDisabled",void 0);_.V([_.n(),_.z("design:type",String)],cg.prototype,"minutes",void 0);_.V([_.n(),_.z("design:type",String)],cg.prototype,"seconds",void 0);_.V([_.n(),_.z("design:type",String)],cg.prototype,"description",void 0);_.V([_.n(),_.z("design:type",String)],cg.prototype,"vssId",void 0);
_.V([_.n({value:_.q6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.z("design:type",Boolean)],cg.prototype,"isMusic",void 0);_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],cg.prototype,"characterLimit",null);_.V([_.e("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],cg.prototype,"textNumRows",null);
_.V([_.bH("minutes","seconds","description","submitDisabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cg.prototype,"updateSubmitButtonState",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cg.prototype,"onYtServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cg.prototype,"onYtServiceRequestError",null);_.V([_.Yn({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],cg);
_.G(cg,"yt-report-details-form-renderer",function(){if(Djt===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;lrt===void 0&&(lrt=document.createElement("template"));var c=lrt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Djt=D}D=Djt;return D});var Crk;var X4p;var cJp;var oVt;var o5=function(){return _.w.apply(this,arguments)||this};
_.h(o5,_.w);
o5.prototype.onCheckedChanged_=function(){if(this.data){var D=_.SY(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.DS(this.hostElement,"yt-additional-detail-checkbox-update",[D]):this.data.identifier==="yt-hide-user-checkbox"?_.DS(this.hostElement,"yt-hide-user-checkbox-update",[D]):D&&this.data.enableCommand?_.DS(this.hostElement,"yt-modify-report-form-command",[_.r(this.data.enableCommand,Nuw)]):!D&&this.data.disableCommand&&_.DS(this.hostElement,
"yt-modify-report-form-command",[_.r(this.data.enableCommand,Nuw)])}};
o5.prototype.onLabelTap_=function(D){D.target.tagName!="A"&&(_.SY(this.hostElement).querySelector("#checkbox").checked=!_.SY(this.hostElement).querySelector("#checkbox").checked)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],o5.prototype,"data",void 0);_.V([_.Yn({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],o5);
_.G(o5,"yt-boolean-form-field-v2-renderer",function(){if(oVt===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;cJp===void 0&&(cJp=document.createElement("template"));var c=cJp;X.call(C,c.content.cloneNode(!0),D.content.firstChild);oVt=D}D=oVt;return D});var Wg=function(){var D=_.w.apply(this,arguments)||this;D.canShowAdditionalDetailCheckbox=!1;D.canShowCheckbox=!1;D.keepDropdownFocusedAfterSelection=!0;return D};
_.h(Wg,_.w);Wg.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Wg.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],Wg.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.n(),_.z("design:type",Object)],Wg.prototype,"canShowCheckbox",void 0);_.V([_.n(),_.z("design:type",Object)],Wg.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.Yn({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Wg);
_.G(Wg,"yt-report-form-modal-content",function(){if(X4p===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;Crk===void 0&&(Crk=document.createElement("template"));var c=Crk;X.call(C,c.content.cloneNode(!0),D.content.firstChild);X4p=D}D=X4p;return D},{mode:2});var WTt;var p4P;var pJ=function(){var D=_.w.apply(this,arguments)||this;D.submitting=!1;D.submitButtonDisabled=!0;D.command=null;D.canShowCheckbox=!1;D.canShowAdditionalDetailCheckbox=!1;D.canShowNextButton=!1;D.additionalDetailCheckboxChecked=!1;D.refitJob=0;D.keepDropdownFocusedAfterSelection=!0;D.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 D};
_.h(pJ,_.w);_.S=pJ.prototype;_.S.created=function(){this.refitJob=0};
_.S.attached=function(){this.JSC$21384_scroller&&(this.JSC$21384_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21384_scroller.attached&&typeof this.JSC$21384_scroller.attached==="function"&&this.JSC$21384_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.dataChanged=function(D){D&&(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,D.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),D.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.S.onYtPopupOpened=function(){var D=_.CT();D&&D.getPlayerPromise().then(function(C){C.pauseVideo()})};
_.S.onYtNavigate=function(D){_.r(D.detail.endpoint,_.aEd)&&(D.stopPropagation(),this.hideReportForm=!0)};
_.S.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.S.onYtServiceRequestCompleted=function(D,C){var X=C.actions;if(X){if(X.length===1&&_.r(X[0],_.pt)){var c;X=((c=_.r(X[0],_.pt))==null?void 0:c.commands)||[]}c=0;for(var W=X.length;c<W;c++)_.r(X[c],_.fo)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(X[c]))}if(C.data&&(D=this.get("feedbackResponses",C.data)))for(C=0;C<D.length;C++)if(D[C].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.S.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.S._onDescendantIronResize=function(D){D.stopPropagation();return!1};
_.S.handleReportFormEndpointUpdateAction=function(D){if(D.submitEndpoint){var C=this.command=D.submitEndpoint;C=_.r(C,_.UUN);if(C==null?0:C.additionalDetailCheckboxChecked)C.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else D.submitNavigationEndpoint?(this.command=D.submitNavigationEndpoint,this.toggleSubmitButton(!1)):D.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:D.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;D.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",D));this.refit()};
_.S.handleConfirmDialogCloseAction=function(D){D.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.S.submitButtonDisabledChanged=function(){var D=this.hostElement.parentElement;D&&D.invalidateTabbables&&D.invalidateTabbables()};
_.S.handleModifyReportFormCommand=function(D){D=this.get("action",D);D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:D==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:D==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.S.updateDialogStyling=function(){var D,C,X,c,W,p=((W=(D=this.data)==null?void 0:(C=D.optionsSupportedRenderers)==null?void 0:(X=C.optionsRenderer)==null?void 0:(c=X.items)==null?void 0:c.length)!=null?W:0)<=2?0:240;_.Os(this.hostElement,{"--yt-report-form-modal-renderer-min-width":p+"px"})};
_.S.toggleSubmitButton=function(D){this.submitButtonDisabled=!D;this.submitButtonDisabled=D};
_.S.computeSubmitButtonData=function(D,C){var X={};_.r(C,_.aEd)?X.navigationEndpoint=C:X.command=C||void 0;D&&D.buttonRenderer&&_.ZI.extend(X,D.buttonRenderer);return X};
_.S.computeNextButtonData=function(D,C){var X={};if(!D||!D.buttonRenderer)return X;_.ZI.extend(X,D.buttonRenderer);if(!C)return X;if(_.r(C,_.aEd))X.navigationEndpoint=irN(C);else if(X.command=irN(C),D=_.r(X.command,_.UUN))D.legalCheckboxChecked=!0;return X};
_.S.computeShowNextButton=function(D,C,X){return!!D&&C&&X};
_.S.refit=function(){var D=this;this.refitJob||(this.refitJob=_.qX.addLowPriorityJob(function(){_.lE(D.hostElement,"yt-refit");D.refitJob=0}))};
_.S.handleAdditionalDetailCheckboxUpdateAction=function(D){this.additionalDetailCheckboxChecked=D;_.r(this.command,_.UUN).additionalDetailCheckboxChecked=D};
_.$a.Object.defineProperties(pJ,{template:{configurable:!0,enumerable:!0,get:function(){if(p4P===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;WTt===void 0&&(WTt=document.createElement("template"));var c=WTt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);p4P=D}D=p4P;return D}}});
pJ.prototype.onYtServiceRequestError=pJ.prototype.onYtServiceRequestError;pJ.prototype.onYtServiceRequestCompleted=pJ.prototype.onYtServiceRequestCompleted;pJ.prototype.onYtServiceRequestSent=pJ.prototype.onYtServiceRequestSent;pJ.prototype.onYtNavigate=pJ.prototype.onYtNavigate;pJ.prototype.onYtPopupOpened=pJ.prototype.onYtPopupOpened;_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],pJ.prototype,"openPopupBehavior",void 0);
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],pJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],pJ.prototype,"eventForwardingBehavior",void 0);_.V([_.m(_.lR),_.z("design:type",Object)],pJ.prototype,"ironResizableBehavior",void 0);_.V([_.n({observer:"dataChanged"}),_.z("design:type",Object)],pJ.prototype,"data",void 0);
_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"submitting",void 0);_.V([_.n({observer:"submitButtonDisabledChanged"}),_.z("design:type",Object)],pJ.prototype,"submitButtonDisabled",void 0);_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"command",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],pJ.prototype,"hideReportForm",void 0);_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"canShowCheckbox",void 0);
_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"canShowNextButton",void 0);_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"additionalDetailCheckboxChecked",void 0);_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"refitJob",void 0);_.V([_.n(),_.z("design:type",Object)],pJ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.kn("#scroller"),_.z("design:type",Object)],pJ.prototype,"JSC$21384_scroller",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pJ.prototype,"onYtPopupOpened",null);_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pJ.prototype,"onYtNavigate",null);
_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],pJ.prototype,"onYtServiceRequestSent",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],pJ.prototype,"onYtServiceRequestCompleted",null);
_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pJ.prototype,"onYtServiceRequestError",null);_.V([_.Yn({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],pJ);var SR1;var UjX;var Sh=function(){return _.w.apply(this,arguments)||this};
_.h(Sh,_.w);_.S=Sh.prototype;_.S.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.S.onVisible=function(){var D,C;(C=_.iX().resolve(_.vK(_.yH)))==null||C.enqueue({label:_.Mh((D=this.data)==null?void 0:D.messageTitle),elementToFocus:this.hostElement})};
_.S.onThumbnailLoaded=function(){_.lE(this.hostElement,"yt-refit")};
_.S.onDismissTap=function(){_.DS(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.S.computeAlternateIcon=function(D){return D?D==="BACKSTAGE_ARTWORK"?"backstage:artwork":D:null};
_.S.computeFontFamily=function(D){return D==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.S.computeBackgroundStyle=function(D,C){if(D=this.computeBackgroundImage(D,C))if(D=_.c0(D.thumbnails))return'background-image: url("'+D+'");'};
_.S.computeHasFullHeightImage=function(D){return!(!(D&&D.thumbnails&&D.thumbnails.length>0)||this.modern)};
_.S.isModernStyle=function(D){return D.style==="STYLE_MODERN"};
_.S.computeIcon=function(D,C){if(D&&D.icon)return C?D.iconDark:D.icon};
_.S.computeBackgroundImage=function(D,C){if(D&&D.backgroundImage)return C?D.backgroundImageDark:D.backgroundImage};
_.S.computeLogo=function(D,C){if(D&&D.logo)return C?D.logoDark:D.logo};
_.S.computeShouldShowModernIcon=function(D,C){return D&&!!C};
_.S.getLogoContainerClassName=function(D){return this.logoWithPadding(D)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.S.getLogoImageId=function(D){return this.logoWithPadding(D)?"mealbar-logo-with-padding":"mealbar-logo"};
_.S.logoWithPadding=function(D){var C,X,c;return(D=(C=this.computeLogo(D,this.isDarkTheme))==null?void 0:(X=C.thumbnails)==null?void 0:(c=X[0])==null?void 0:c.height)&&D%31===0?!0:!1};
Sh.prototype.onThumbnailLoaded=Sh.prototype.onThumbnailLoaded;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.V([_.n({}),_.z("design:type",Object)],Sh.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.z("design:type",Boolean)],Sh.prototype,"modern",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Sh.prototype,"isDarkTheme",void 0);
_.V([_.n({computed:"computeIcon(data, isDarkTheme)"}),_.z("design:type",Object)],Sh.prototype,"icon",void 0);_.V([_.n({computed:"computeLogo(data, isDarkTheme)"}),_.z("design:type",Object)],Sh.prototype,"logo",void 0);_.V([_.n({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.z("design:type",Object)],Sh.prototype,"backgroundStyle",void 0);_.V([_.n({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.z("design:type",Object)],Sh.prototype,"alternateIcon",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.z("design:type",Boolean)],Sh.prototype,"hasFullHeightImage",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.z("design:type",Boolean)],Sh.prototype,"useYoutubeSans",void 0);_.V([_.n({computed:"computeShouldShowModernIcon(modern, icon)"}),_.z("design:type",Boolean)],Sh.prototype,"shouldShowModernIcon",void 0);
_.V([_.$n("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sh.prototype,"onThumbnailLoaded",null);_.V([_.Yn({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Sh);
_.G(Sh,"yt-mealbar-promo-renderer",function(){if(UjX===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;SR1===void 0&&(SR1=document.createElement("template"));var c=SR1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);UjX=D}D=UjX;return D},{mode:2});var gVt;var aMN;var UE=function(){return _.w.apply(this,arguments)||this};
_.h(UE,_.w);_.S=UE.prototype;_.S.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]]"}}}}}};
_.S.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.acceptButton)};
_.S.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.S.observeImpressionEndpoints_=function(){var D=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;_.cE(D.hostElement,[C])})};
_.S.onTap_=function(){_.DS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
UE.prototype.observeImpressionEndpoints_=UE.prototype.observeImpressionEndpoints_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],UE.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],UE.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],UE.prototype,"positionType",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.z("design:type",Boolean)],UE.prototype,"hasButtons_",void 0);_.V([_.n({value:function(){return this.onTap_.bind(this)}}),
_.z("design:type",Function)],UE.prototype,"boundOnTap_",void 0);_.V([_.n({value:{style:"mono-inverse"}}),_.z("design:type",Object)],UE.prototype,"buttonOverride",void 0);_.V([_.vr("data.promoConfig.impressionEndpoints"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UE.prototype,"observeImpressionEndpoints_",null);_.V([_.Yn({is:"yt-tooltip-renderer",disableElementRegistration:!0})],UE);
_.G(UE,"yt-tooltip-renderer",function(){if(aMN===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;gVt===void 0&&(gVt=document.createElement("template"));var c=gVt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);aMN=D}D=aMN;return D},{mode:2});var IMt;var O$Y;var AJP={},PrP=(AJP.WEB_REMIX="music.youtube.com",AJP),g6=function(){var D=_.w.apply(this,arguments)||this;D.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return D};
_.h(g6,_.w);_.S=g6.prototype;_.S.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.created=function(){this.embedHost_=PrP[_.q6("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.S.ready=function(){_.SY(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.S.computeEmbedCode_=function(D,C,X,c,W){if(!D)return"";var p=D.videoId,g=D.fullListId,a=[];D.attributionId&&a.push("si="+D.attributionId);c||a.push("controls=0");X&&Number(C)>0&&a.push("start="+C);g&&(p="videoseries",a.push("list="+g));X="https://"+(W?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+p;D.clipId&&(a.push("clip="+D.clipId),a.push("clipt="+D.clipTiming));C=a.length>0?X+"?"+a.join("&amp;"):X;D.encryptedEmbedConfig&&a.push("embed_config="+JSON.stringify({enc:D.encryptedEmbedConfig}));
a=a.length>0?X+"?"+a.join("&amp;"):X;_.b("web_sharing_embed_preview_killswitch")?_.SY(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(a,D.previewWidth||854,D.previewHeight||480):(_.VM(this.videoPreviewContainer),_.SY(this.videoPreviewContainer).appendChild(this.buildIframeElement(a)));return this.getEmbedCode_(C,D.width||560,D.height||315)};
_.S.buildIframeElement=function(D){var C=document.createElement("iframe"),X,c;C.width=""+((c=(X=this.data)==null?void 0:X.previewWidth)!=null?c:854);var W,p;C.height=""+((p=(W=this.data)==null?void 0:W.previewHeight)!=null?p:480);_.X7(C,2,D);C.title="YouTube video player";C.frameBorder="0";C.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";C.referrerPolicy="strict-origin-when-cross-origin";C.allowFullscreen=!0;return C};
_.S.computeIsSquareAspectRatio_=function(D){return D.previewHeight&&D.previewWidth?D.previewHeight==D.previewWidth:!1};
_.S.computeShowEmbedOptions_=function(D){return!!D.enablePrivacyModeOptionLabel||!!D.showPlayerControlsOptionLabel};
_.S.getEmbedCode_=function(D,C,X){return'<iframe width="'+C+'" height="'+X+'" src="'+D+'" 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>'};
_.S.handleSignalActionCopyShareEmbedUrl_=function(){_.SY(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.S.handleSetTimestamp_=function(D){this.startAtTimeStamp_=(this.startAtChecked_=D.isSet)?D.timestamp:0};
_.S.closePanel_=function(){_.DS(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.S.onEmbedCode_=function(){_.SY(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.S.onYtPopupClosed_=function(){_.VM(_.SY(this.hostElement).querySelector("#video-preview"))};
_.S.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.r(this.data.actionButtons[0],_.AF)&&this.ytRendererBehavior.logExplicitClick(_.r(this.data.actionButtons[0],_.AF))};
g6.prototype.onYtPopupClosed_=g6.prototype.onYtPopupClosed_;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],g6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],g6.prototype,"data",void 0);
_.V([_.n({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.z("design:type",String)],g6.prototype,"embedCode_",void 0);_.V([_.n({value:!0}),_.z("design:type",Boolean)],g6.prototype,"isPlayerControlsOptionChecked_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],g6.prototype,"isPrivacyModeOptionChecked_",void 0);_.V([_.n({value:!1,notify:!0}),_.z("design:type",Boolean)],g6.prototype,"startAtChecked_",void 0);
_.V([_.n({value:0}),_.z("design:type",Number)],g6.prototype,"startAtTimeStamp_",void 0);_.V([_.n({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],g6.prototype,"isSquareAspectRatio_",void 0);_.V([_.kn("#video-preview"),_.z("design:type",HTMLElement)],g6.prototype,"videoPreviewContainer",void 0);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],g6.prototype,"onYtPopupClosed_",null);
_.V([_.Yn({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],g6);
_.G(g6,"yt-sharing-embed-renderer",function(){if(O$Y===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;IMt===void 0&&(IMt=document.createElement("template"));var c=IMt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);O$Y=D}D=O$Y;return D},{mode:2});var $jp={};
$jp.YtUnlimitedFamilyInterstitialBehavior=[_.Tl.YtOpenPopupBehavior,_.Jy.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(D){D=_.Feb(_.qz(D),"yt-button-renderer");return D?D.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(D){this.dialogHistory_.push(D)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var D=this.popFromHistory();if(D){var C={openPopupAction:{popupType:"DIALOG",popup:{}}};C.openPopupAction.popup[D.renderer]=D.data;this.showingPreviousDialog_=!0;this.openPopup(C)}},
handleOpenPopupAction_:function(D){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var C=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(c){return!!D.openPopupAction.popup[c]}),X=this.getElementName_();
C&&this.data&&(this.pushToHistory({renderer:X,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(D){if(D=_.r(D,jrt))this.loading=!0,_.DS(this.hostElement,"yt-open-create-family-dialog",[D,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var D=this.hostElement.nodeName.split("-").slice(1).map(function(C){return""+C[0].toUpperCase()+C.slice(1).toLowerCase()}).join("");
return D[0].toLowerCase()+D.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var vVt;var i$G;var a5=function(){return _.w.apply(this,arguments)||this};
_.h(a5,_.w);_.S=a5.prototype;_.S.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}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.DS(this.hostElement,"yt-register-create-family-dialog");_.SY(this.hostElement).querySelector("#thumbnail").onShow()};
_.S.fireOnCloseCommand_=function(){var D;((D=this.data)==null?0:D.onCloseCommand)&&_.o7(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.S.onYtServiceRequestSent_=function(D,C){C&&C.endpoint&&_.r(C.endpoint,_.Up)||(this.loading=!0)};
_.S.onYtServiceRequestCompleted_=function(){var D=this.hostElement.parentElement;D.close&&D.close();this.loading=!1};
_.S.openPopupHandler_=function(D){if(D.detail==this){var C;((C=this.data)==null?0:C.onOpenCommands)&&_.o7(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.S.closePopupHandler_=function(D,C){this.fireOnCloseCommand_();if(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1){var X;((X=this.data)==null?0:X.onDismissCommands)&&_.o7(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.S.dataChanged_=function(){this.loading=!1};
a5.prototype.dataChanged_=a5.prototype.dataChanged_;a5.prototype.closePopupHandler_=a5.prototype.closePopupHandler_;a5.prototype.openPopupHandler_=a5.prototype.openPopupHandler_;a5.prototype.onYtServiceRequestCompleted_=a5.prototype.onYtServiceRequestCompleted_;a5.prototype.onYtServiceRequestSent_=a5.prototype.onYtServiceRequestSent_;_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],a5.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m($jp.YtUnlimitedFamilyInterstitialBehavior),_.z("design:type",Object)],a5.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],a5.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],a5.prototype,"loading",void 0);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],a5.prototype,"onYtServiceRequestSent_",null);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],a5.prototype,"onYtServiceRequestCompleted_",null);
_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],a5.prototype,"openPopupHandler_",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],a5.prototype,"closePopupHandler_",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a5.prototype,"dataChanged_",null);
_.V([_.Yn({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],a5);
_.G(a5,"yt-unlimited-family-message-interstitial-renderer",function(){if(i$G===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;vVt===void 0&&(vVt=document.createElement("template"));var c=vVt;X.call(C,c.content.cloneNode(!0),D.content.firstChild);i$G=D}D=i$G;return D},{mode:2});var kFX;var uP3;var I5=function(){return _.w.apply(this,arguments)||this};
_.h(I5,_.w);I5.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"}}}};
I5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.SY(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(D){D.onShow()});
_.SY(this.hostElement).querySelector("#main-thumbnail").onShow()};
I5.prototype.onButtonTap_=function(D){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(D)};
I5.prototype.computeMainThumbnailWidth_=function(D){return D&&D.length!==0?72:96};
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.V([_.m($jp.YtUnlimitedFamilyInterstitialBehavior),_.z("design:type",Object)],I5.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],I5.prototype,"data",void 0);
_.V([_.n({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.z("design:type",Number)],I5.prototype,"mainThumbnailWidth_",void 0);_.V([_.n({value:function(){return this.onButtonTap_.bind(this)}}),
_.z("design:type",Function)],I5.prototype,"boundButtonTap_",void 0);_.V([_.Yn({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],I5);
_.G(I5,"yt-unlimited-family-profile-interstitial-renderer",function(){if(uP3===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;kFX===void 0&&(kFX=document.createElement("template"));var c=kFX;X.call(C,c.content.cloneNode(!0),D.content.firstChild);uP3=D}D=uP3;return D},{mode:2});var QyN;var BNk;var OE=function(){var D=_.w.apply(this,arguments)||this;D.sliderAriaValueText_=null;D.selectedIndex_=0;D.messages={PAUSE_SLIDER:_.I7("PAUSE_SLIDER",void 0,"Pause Duration")};return D};
_.h(OE,_.w);_.S=OE.prototype;_.S.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_]]"}}}}}};
_.S.onPopupOpened_=function(D){D.detail==this&&_.b("enable_premium_voluntary_pause")&&(_.DS(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.S.setDialogData=function(D){this.data=D;this.resetSlider_()};
_.S.dataChanged_=function(){this.data&&this.resetSlider_()};
_.S.onSubmitTap_=function(){if(this.data.confirmCommand){var D=this.data.confirmCommand;_.r(D,_.Ae5)&&_.cE(this.hostElement,[D,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.S.onExitButtonTap_=function(){_.DS(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.S.closePopupHandler_=function(D,C){(C&&C.canceled===!0||C.canceled===!1&&C.confirmed===!1)&&this.handleOnDismissCommands_()};
_.S.onSliderChange_=function(){this.selectedIndex_=_.SY(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.S.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.S.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.S.resetSlider_=function(){if(this.data){var D=this.data.defaultEndOptionIndex||0,C=_.SY(this.hostElement).querySelector("#id-pause-slider");if(C.immediateValue<D)for(;C.immediateValue!=D;)C.increment();else if(D<C.immediateValue)for(;C.immediateValue!=D;)C.decrement();this.selectedIndex_=D;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.S.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.o7(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.S.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.o7(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.S.onYtServiceRequestSent=function(){this.loading=!0};
_.S.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
OE.prototype.onYtServiceRequestCompleted=OE.prototype.onYtServiceRequestCompleted;OE.prototype.onYtServiceRequestSent=OE.prototype.onYtServiceRequestSent;OE.prototype.closePopupHandler_=OE.prototype.closePopupHandler_;OE.prototype.dataChanged_=OE.prototype.dataChanged_;OE.prototype.onPopupOpened_=OE.prototype.onPopupOpened_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],OE.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OE.prototype,"loading",void 0);_.V([_.n(),_.z("design:type",Number)],OE.prototype,"selectIndexMax_",void 0);_.V([_.n(),_.z("design:type",Object)],OE.prototype,"selectedData_",void 0);
_.V([_.n(),_.z("design:type",Object)],OE.prototype,"sliderAriaValueText_",void 0);_.V([_.n({value:function(){return this.onSubmitTap_.bind(this)}}),
_.z("design:type",Function)],OE.prototype,"onButtonTap_",void 0);_.V([_.n({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.z("design:type",Function)],OE.prototype,"onSecondaryTap_",void 0);_.V([_.n(),_.z("design:type",Object)],OE.prototype,"messages",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],OE.prototype,"onPopupOpened_",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OE.prototype,"dataChanged_",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],OE.prototype,"closePopupHandler_",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],OE.prototype,"onYtServiceRequestSent",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],OE.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yn({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],OE);
_.G(OE,"yt-unplugged-pause-membership-dialog-renderer",function(){if(BNk===void 0){var D=document.createElement("template");_.x(D,'\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>');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;QyN===void 0&&(QyN=document.createElement("template"));var c=QyN;X.call(C,c.content.cloneNode(!0),D.content.firstChild);BNk=D}D=BNk;return D},{mode:2});var b$w;var rJk;var AM=function(){return _.w.apply(this,arguments)||this};
_.h(AM,_.w);AM.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ml("vcBalanceRenderer")}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],AM.prototype,"data",void 0);_.V([_.Yn({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],AM);
_.G(AM,"yt-vc-offer-layout-header-renderer",function(){if(rJk===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;b$w===void 0&&(b$w=document.createElement("template"));var c=b$w;X.call(C,c.content.cloneNode(!0),D.content.firstChild);rJk=D}D=rJk;return D},{mode:2});var KTY;var htP;var xjU;var LTk;var Pg=function(){return _.w.apply(this,arguments)||this};
_.h(Pg,_.w);Pg.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.$a.Object.defineProperties(Pg.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.yct.YtTappableItemBehavior),_.z("design:type",Object)],Pg.prototype,"ytTappableItemBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Pg.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.e("data.accessibilityText"),_.z("design:type",String),_.z("design:paramtypes",[])],Pg.prototype,"ariaLabel",null);_.V([_.n({reflectToAttribute:!0}),_.e("data.style"),_.z("design:type",String),_.z("design:paramtypes",[])],Pg.prototype,"vcOfferStyle",null);_.V([_.e("data.style","data.titleText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Pg.prototype,"showTitleText",null);_.V([_.Yn({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Pg);
_.G(Pg,"yt-vc-offer-renderer",function(){if(LTk===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;xjU===void 0&&(xjU=document.createElement("template"));var c=xjU;X.call(C,c.content.cloneNode(!0),D.content.firstChild);LTk=D}D=LTk;return D},{mode:2});var $K=function(){return _.w.apply(this,arguments)||this};
_.h($K,_.w);$K.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],$K.prototype,"data",void 0);_.V([_.Yn({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],$K);
_.G($K,"yt-vc-offer-layout-renderer",function(){if(htP===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;KTY===void 0&&(KTY=document.createElement("template"));var c=KTY;X.call(C,c.content.cloneNode(!0),D.content.firstChild);htP=D}D=htP;return D},{mode:2});var sy3;var mj1;var ett;var EVk;var vg=function(){return _.w.apply(this,arguments)||this};
_.h(vg,_.w);vg.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],vg.prototype,"data",void 0);_.V([_.Yn({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],vg);
_.G(vg,"yt-ypc-offers-modal-top-bar-renderer",function(){if(EVk===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;ett===void 0&&(ett=document.createElement("template"));var c=ett;X.call(C,c.content.cloneNode(!0),D.content.firstChild);EVk=D}D=EVk;return D},{mode:2});var iA=function(){return _.w.apply(this,arguments)||this};
_.h(iA,_.w);iA.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"}}}}};
iA.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
iA.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var D=this.scrollable;D.attached&&typeof D.attached==="function"&&D.attached()};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.kn("#scrollable"),_.z("design:type",Object)],iA.prototype,"scrollable",void 0);_.V([_.n(),_.z("design:type",Object)],iA.prototype,"data",void 0);_.V([_.Yn({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],iA);
_.G(iA,"yt-ypc-offers-modal-renderer",function(){if(mj1===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;sy3===void 0&&(sy3=document.createElement("template"));var c=sy3;X.call(C,c.content.cloneNode(!0),D.content.firstChild);mj1=D}D=mj1;return D},{mode:2});var tF6;var NNX;var kK=function(){return _.w.apply(this,arguments)||this};
_.h(kK,_.w);_.S=kK.prototype;_.S.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}}}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.SY(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.S.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.DS(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.S.onYtPopupOpened_=function(D,C){(C==null?void 0:C.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.o7(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.S.onYtPopupClosed_=function(D,C){this.continueButtonTapped||C&&(C.canceled===!0||C.canceled===!1&&C.confirmed===!1)&&this.data.onDismissCommands&&_.o7(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.S.onYtServiceRequestError_=function(D){this.set("showSpinner",!1);_.JG(this.hostElement,D.detail.error.message)};
_.S.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.b("enable_ypc_spinners")?_.DS(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
kK.prototype.onYtServiceRequestError_=kK.prototype.onYtServiceRequestError_;kK.prototype.onYtPopupClosed_=kK.prototype.onYtPopupClosed_;kK.prototype.onYtPopupOpened_=kK.prototype.onYtPopupOpened_;kK.prototype.onYtServiceRequestCompleted_=kK.prototype.onYtServiceRequestCompleted_;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.z("design:type",Object)],kK.prototype,"data",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],kK.prototype,"showSpinner",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],kK.prototype,"continueButtonTapped",void 0);_.V([_.n({value:function(){return this.onContinueTapped_.bind(this)}}),
_.z("design:type",Function)],kK.prototype,"bindOnContinueTapped_",void 0);_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kK.prototype,"onYtServiceRequestCompleted_",null);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],kK.prototype,"onYtPopupOpened_",null);
_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],kK.prototype,"onYtPopupClosed_",null);_.V([_.$n("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kK.prototype,"onYtServiceRequestError_",null);_.V([_.Yn({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],kK);
_.G(kK,"yt-ypc-upgrade-dialog-renderer",function(){if(NNX===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;tF6===void 0&&(tF6=document.createElement("template"));var c=tF6;X.call(C,c.content.cloneNode(!0),D.content.firstChild);NNX=D}D=NNX;return D},{mode:2});var YRX;var yJG;var uA=function(){return _.w.apply(this,arguments)||this};
_.h(uA,_.w);uA.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
uA.prototype.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.confirmButton)};
uA.prototype.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],uA.prototype,"ytEventForwardingBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],uA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],uA.prototype,"positionType",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.z("design:type",Boolean)],uA.prototype,"hasButtons_",void 0);_.V([_.n({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.z("design:type",Boolean)],uA.prototype,"style_",void 0);_.V([_.Yn({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],uA);
_.G(uA,"yt-bubble-hint-renderer",function(){if(yJG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;YRX===void 0&&(YRX=document.createElement("template"));var c=YRX;X.call(C,c.content.cloneNode(!0),D.content.firstChild);yJG=D}D=yJG;return D},{mode:2});var nV3;var w43;var Qa=function(){var D=_.vH.apply(this,arguments)||this;D.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return D};
_.h(Qa,_.vH);_.S=Qa.prototype;_.S.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.S.attached=function(){var D=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){D.$.thumbnail.onShow();D.$["header-image"].onShow()})};
_.S.handleCheckBoxUpdateAction_=function(D){this.canShowCheckboxEnabledConfirmButton=D};
_.S.computeUseOverlayForSpinner_=function(D,C){return!!D&&C};
_.S.computeShowSpinner_=function(D,C){return D||!!C};
_.S.fireOnCloseActions_=function(){var D,C=_.U(((D=this.data)==null?void 0:D.onClosedActions)||[]);for(D=C.next();!D.done;D=C.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.S.fireOnOpenCommands_=function(D){var C,X=(C=this.data)==null?void 0:C.onOpenCommands;if(X)for(D.stopImmediatePropagation(),D=_.U(X),C=D.next();!C.done;C=D.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.S.fireOnDismissCommands_=function(D){var C,X=(C=this.data)==null?void 0:C.onDismissCommands;if(X)for(D.stopImmediatePropagation(),D=_.U(X),C=D.next();!C.done;C=D.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.S.openPopupHandler_=function(D){D.detail==this&&this.fireOnOpenCommands_(D)};
_.S.closePopupHandler_=function(D,C){_.Ct(this,"yt-confirm-dialog-close-action",[C]);this.fireOnCloseActions_();(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1)&&this.fireOnDismissCommands_(D)};
_.S.onHeaderImageChanged_=function(){var D;((D=this.data)==null?0:D.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.S.computeHasHeaderImageWidth_=function(D){return D!=void 0};
_.S.computeHasLoadingMessage=function(D){return!!D};
_.S.onHeaderImageWidthChanged_=function(){var D,C=(D=this.data)==null?void 0:D.headerImageWidth;if(C){if(D=1.25*C*2+C,this.$.main.style.width=D+"px",C=this.$.scroller.firstElementChild)C.style.minWidth=D+"px"}else this.$.main.style.width="100%"};
_.S.onThumbnailChanged_=function(){var D;((D=this.data)==null?0:D.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")};
_.S.onYtNavigate_=function(D){D=_.qz(D);D instanceof Node&&_.Us(this.$["confirm-button"]).contains(D)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.S.computePrimaryIsCancel_=function(D){return D};
_.S.computeIsCancelButtonHidden_=function(D){return D.skipCancelButton||!D.cancelButton};
_.S.computeIsCheckboxHidden_=function(D){return!D.checkbox};
_.S.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.S.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.S.onYtServiceRequestCompleted_=function(){var D;((D=this.data)==null?0:D.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.$a.Object.defineProperties(Qa,{template:{configurable:!0,enumerable:!0,get:function(){if(w43===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;nV3===void 0&&(nV3=document.createElement("template"));var c=nV3;X.call(C,c.content.cloneNode(!0),D.content.firstChild);w43=D}D=w43;return D}}});
Qa.prototype.onYtServiceRequestCompleted_=Qa.prototype.onYtServiceRequestCompleted_;Qa.prototype.onYtServiceRequestSent_=Qa.prototype.onYtServiceRequestSent_;Qa.prototype.onThumbnailLoaded_=Qa.prototype.onThumbnailLoaded_;Qa.prototype.onYtNavigate_=Qa.prototype.onYtNavigate_;Qa.prototype.onThumbnailChanged_=Qa.prototype.onThumbnailChanged_;Qa.prototype.onHeaderImageWidthChanged_=Qa.prototype.onHeaderImageWidthChanged_;Qa.prototype.onHeaderImageChanged_=Qa.prototype.onHeaderImageChanged_;
Qa.prototype.closePopupHandler_=Qa.prototype.closePopupHandler_;Qa.prototype.openPopupHandler_=Qa.prototype.openPopupHandler_;_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],Qa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],Qa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);
_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],Qa.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Qa.prototype,"data",void 0);_.V([_.n({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.z("design:type",Boolean)],Qa.prototype,"primaryIsCancel",void 0);_.V([_.n({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.z("design:type",Boolean)],Qa.prototype,"isCancelButtonHidden",void 0);
_.V([_.n({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.z("design:type",Boolean)],Qa.prototype,"isCheckboxHidden",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Qa.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.V([_.n({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Qa.prototype,"useOverlayForSpinner_",void 0);
_.V([_.n({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.z("design:type",Boolean)],Qa.prototype,"showSpinner_",void 0);_.V([_.n({value:!1}),_.z("design:type",Boolean)],Qa.prototype,"isActionInProgress_",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.z("design:type",Boolean)],Qa.prototype,"hasHeaderImageWidth_",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.z("design:type",Boolean)],Qa.prototype,"hasLoadingMessage",void 0);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Qa.prototype,"openPopupHandler_",null);_.V([_.$n("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Qa.prototype,"closePopupHandler_",null);
_.V([_.vr("data.headerImage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qa.prototype,"onHeaderImageChanged_",null);_.V([_.vr("data.headerImageWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qa.prototype,"onHeaderImageWidthChanged_",null);_.V([_.vr("data.thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qa.prototype,"onThumbnailChanged_",null);
_.V([_.$n("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Qa.prototype,"onYtNavigate_",null);_.V([_.$n("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qa.prototype,"onThumbnailLoaded_",null);_.V([_.$n("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.Gr]),_.z("design:returntype")],Qa.prototype,"onYtServiceRequestSent_",null);
_.V([_.$n("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.qn]),_.z("design:returntype")],Qa.prototype,"onYtServiceRequestCompleted_",null);_.V([_.Yn({is:"yt-confirm-dialog-renderer",noInjection:!0})],Qa);var FT1;var Z$P;var Bg=function(){return _.w.apply(this,arguments)||this};
_.h(Bg,_.w);Bg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.SY(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Bg.prototype.computeConfirmButton_=function(D){var C={text:D.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};D.confirmNavigationEndpoint?C.navigationEndpoint=D.confirmNavigationEndpoint:D.confirmServiceEndpoint&&(C.serviceEndpoint=D.confirmServiceEndpoint);return C};
Bg.prototype.computeShowTitle_=function(D){return!(D==null||!D.title)};
_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],Bg.prototype,"data",void 0);_.V([_.n({computed:"computeShowTitle_(data)"}),_.z("design:type",Boolean)],Bg.prototype,"showTitle",void 0);_.V([_.Yn({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Bg);
_.G(Bg,"yt-fancy-dismissible-dialog-renderer",function(){if(Z$P===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;FT1===void 0&&(FT1=document.createElement("template"));var c=FT1;X.call(C,c.content.cloneNode(!0),D.content.firstChild);Z$P=D}D=Z$P;return D});var GFw;var VFG;var bA=function(){var D=_.w.apply(this,arguments)||this;D.spinnerActive=!1;return D};
_.h(bA,_.w);bA.prototype.created=function(){wPG(2201)};
bA.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
bA.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
bA.prototype.onIronOverlayClosed=bA.prototype.onIronOverlayClosed;bA.prototype.onIronOverlayOpened=bA.prototype.onIronOverlayOpened;_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.$O),_.z("design:type",Object)],bA.prototype,"tpYtIronOverlayBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],bA.prototype,"data",void 0);_.V([_.n(),_.z("design:type",Object)],bA.prototype,"spinnerActive",void 0);
_.V([_.$n("iron-overlay-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bA.prototype,"onIronOverlayOpened",null);_.V([_.$n("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bA.prototype,"onIronOverlayClosed",null);_.V([_.Yn({is:"yt-loading-renderer",disableElementRegistration:!0})],bA);
_.G(bA,"yt-loading-renderer",function(){if(VFG===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;GFw===void 0&&(GFw=document.createElement("template"));var c=GFw;X.call(C,c.content.cloneNode(!0),D.content.firstChild);VFG=D}D=VFG;return D},{mode:2});var TNw;var H$t;var r6=function(){var D=_.w.apply(this,arguments)||this;D.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);D.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);D.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.h(r6,_.w);_.S=r6.prototype;_.S.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.S.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.S.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.S.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.S.openPopupHandler_=function(D){D.detail===this.hostElement&&this.hostElement.hidden&&_.DS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.S.onDismissButtonTap_=function(){var D;this.closeOnDismissButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.DS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.S.onAcceptButtonTap_=function(){var D;this.closeOnAcceptButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.DS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.S.computeHasHeader_=function(D){return!!D.headerBackgroundImage};
_.S.computeLayoutStyle_=function(D){return D};
_.S.computePopupSize_=function(D){return D};
_.S.computeIconType_=function(D){return D.dialogIcon&&D.dialogIcon.iconType?D.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":D.dialogIcon.iconType:""};
_.S.computeIsLogo_=function(D){return!!D.dialogIcon&&!!D.dialogIcon.iconType&&(D.dialogIcon.iconType==="YOUTUBE_LOGO"||D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||D.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.S.computeHasCustomLogo=function(D){return!(D==null||!D.headerForegroundImage)};
_.S.computeCustomLogo=function(D,C){if(D!=null&&D.headerForegroundImage)return D.headerForegroundImageDark?C?D.headerForegroundImageDark:D.headerForegroundImage:D.headerForegroundImage};
_.S.computeHeaderBackgroundImage=function(D,C){if(D!=null&&D.headerBackgroundImage)return C&&(D==null?0:D.headerBackgroundImageDark)?D.headerBackgroundImageDark:D.headerBackgroundImage};
_.S.shouldShowIconContainer=function(D,C){return D&&!C};
_.S.shouldShowNonYouTubeIcon=function(D,C){return!D&&!C};
_.S.getLogoImageId=function(D){var C,X,c;return(D=(C=this.computeCustomLogo(D,this.isDarkTheme))==null?void 0:(X=C.thumbnails)==null?void 0:(c=X[0])==null?void 0:c.height)&&D%31===0?"custom-logo-with-padding":"custom-logo"};
r6.prototype.openPopupHandler_=r6.prototype.openPopupHandler_;r6.prototype.dataChanged_=r6.prototype.dataChanged_;_.V([_.m(_.eO.YtRendererstamperBehavior),_.z("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.z("design:type",Boolean)],r6.prototype,"isDarkTheme",void 0);
_.V([_.n({computed:"computeCustomLogo(data, isDarkTheme)"}),_.z("design:type",Object)],r6.prototype,"customLogo",void 0);_.V([_.n({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.z("design:type",Object)],r6.prototype,"headerBackgroundImage",void 0);_.V([_.n(),_.z("design:type",Object)],r6.prototype,"data",void 0);_.V([_.n({computed:"computeHasHeader_(data)"}),_.z("design:type",Boolean)],r6.prototype,"hasHeader",void 0);
_.V([_.n({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.z("design:type",Object)],r6.prototype,"layoutStyle",void 0);_.V([_.n({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.z("design:type",Object)],r6.prototype,"popupSize",void 0);_.V([_.n({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],r6.prototype,"hasLogo",void 0);
_.V([_.n({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],r6.prototype,"hasCustomLogo",void 0);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r6.prototype,"dataChanged_",null);_.V([_.$n("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],r6.prototype,"openPopupHandler_",null);
_.V([_.Yn({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],r6);
_.G(r6,"yt-upsell-dialog-renderer",function(){if(H$t===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;TNw===void 0&&(TNw=document.createElement("template"));var c=TNw;X.call(C,c.content.cloneNode(!0),D.content.firstChild);H$t=D}D=H$t;return D},{mode:2});var JJG=_.F(function(D){return _.A("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.A(_.v,{cond:D.title,then:function(C){return _.A("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},C)}}))},"Fj"),zt6=_.F(function(D){return _.A("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.A(_.BX,{data:D.closeButton},{buttonViewModel:function(C){return _.A("div",null,_.A(_.Ze,{data:C.data}))}}))},"Gj"),jyk=_.F(function(D){var C=D.data;
return _.A(_.kQ,null,_.A("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.A("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.A(_.v,{cond:function(){return!!C().image&&!!C().title},
then:function(){return _.A(_.M_,{data:function(){return C().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.A("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.A(_.v,{cond:function(){return C().title},
then:function(X){return _.A("h3",{class:"miniAppGameInfoDialogViewModelTitle"},X)}}),_.A(_.v,{cond:function(){return C().primaryGenre},
then:function(X){return _.A("span",{class:"miniAppGameInfoDialogViewModelGenre"},X)}}))),_.A(_.v,{cond:function(){var X=C().description;
return X&&X.length<=150},
then:function(){return _.A("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.A("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return C().description}))}}))},"Hj"),MF6=_.F(function(D){D=D.infoRows;
var C=_.iX().resolve(_.e1),X=_.b("enable_displaying_ppn");return _.A("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.A(_.Zh,{each:D},function(c){return _.A("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.A(_.v,{cond:function(){return c.label},
then:function(W){return _.A("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},W)}}),_.A(_.v,{cond:function(){return c.attributedLabel},
then:function(W){return _.A("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.A(_.QG,{text:W,noPreWrap:!0}))}}),_.A(_.v,{cond:function(){return c.value},
then:function(W){return _.A("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},W)}}),_.A(_.v,{cond:function(){return c.attributedValue},
then:function(W){return _.A("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.A(_.QG,{text:W,noPreWrap:!0}))}}))}),_.A(_.v,{cond:function(){return X&&C.clientData.has("post_play_nonce")},
then:function(){return _.A("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.A("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.A("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},C.getData("post_play_nonce")))}}))},"Ij"),qR3=_.F(function(D){var C=D.data;
return _.A("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.A(JJG,{title:function(){return C().dialogTitle}}),_.A(jyk,{data:C}),_.A(_.v,{cond:function(){return C().infoRow},
then:function(X){return _.A(MF6,{infoRows:X})}}),_.A(zt6,{closeButton:function(){return C().closeButton}}))},"Jj");
qR3.idomCompat=!0;_.CI(qR3,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;return _.A("yt-gulp-triggering-dialog-view-model",{class:_.g$("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.A(_.M_,{data:function(){return C().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.A("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.A("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.A("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A(_.v,{cond:function(){return C().bodyText},
then:function(X){return _.A(_.Zh,{each:X},function(c){return _.A("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.A(_.QG,{text:c}))})}})),_.A("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.A(_.BX,{data:function(){return C().dismissButton}},{buttonViewModel:function(X){return _.A("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.A(_.Ze,{data:X.data}))}}),_.A(_.BX,{data:function(){return C().actionButton}},{buttonViewModel:function(X){return _.A("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.A(_.Ze,{data:X.data}))}}))))},"Kj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Bm}});var fMG=_.F(function(D){var C=D.data;D=_.di(function(){return C().agreements},[]);
return _.A("installment-agreements-view-model",{class:_.g$("ytInstallmentAgreementsViewModelHost")},_.A(_.Zh,{each:D},function(X){return _.A("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.A("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.A(_.QG,{text:X.label})),_.A("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.A(_.BX,{data:function(){return X.openButton}},{buttonViewModel:_.Ze})))}))},"Lj");
fMG.idomCompat=!0;var dj3=_.F(function(D){var C=_.U(_.d2(function(){var q,R;return((q=D.data().createPlaylistDialogFormSchema)==null?0:(R=q.initialValues)==null?0:R.title)?D.data().createPlaylistDialogFormSchema.initialValues.title:""})),X=C.next().value,c=C.next().value;
C=_.U(_.d2(function(){D.data();return!1}));
var W=C.next().value,p=C.next().value;C=_.U(_.d2(function(){D.data();return!1}));
var g=C.next().value,a=C.next().value;C=_.U(_.d2(function(){var q,R;return(q=D.data().createPlaylistDialogFormSchema)==null?void 0:(R=q.initialValues)==null?void 0:R.visibility}));
var O=C.next().value,P=C.next().value;C=_.U(_.d2(function(){D.data();return!1}));
var k=C.next().value,u=C.next().value;C=_.U(_.d2(function(){var q,R;return(q=D.data().createPlaylistDialogFormSchema)==null?void 0:(R=q.initialValues)==null?void 0:R.isCollaborative}));
var Q=C.next().value,B=C.next().value,K=_.aX("div");_.Jw(function(){var q=K.value.querySelector("textarea");q&&(q.value=X())},"axFRaf");
_.JU(function(){var q;_.VfP((q=D.data().createPlaylistDialogFormSchema)==null?void 0:q.id,{onSubmit:function(){var R=X();var ph=O(),Om=Q(),xj=D.data();R={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:R,privacyStatus:ph,videoIds:xj.videoIds,sourcePlaylistId:xj.sourcePlaylistId,params:Om?xj.createPlaylistParamsCollaborationEnabled:xj.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.iX().resolve(_.uX).resolveCommand(R)},
isValid:function(){return W()&&!g()&&!k()}})});
var L=function(q){if(q!==void 0&&(c(q),!W()&&q.length>0&&p(!0),W())){var R=V$U(D.data());if(R){var ph=R.minLength;R=R.maxLength;ph&&q.length<ph?a(!0):R&&q.length>R?a(!0):a(!1)}}},t=function(){var q=!(!Q()||O()!=="PRIVATE");
u(q)},Y=function(q){q!==void 0&&(P(q),t())},y=function(){if(k())return HLX(D.data())},J=function(){B(!Q());
t()},T=function(){return{validate:function(q){if(W()){var R=V$U(D.data());
if(R){var ph=R.minLength;R=R.translations;if(ph&&q.length<ph)return R==null?void 0:R.minLengthErrorMessage}}}}},H=function(){var q=V$U(D.data()),R=q==null?void 0:q.maxLength,ph;
q=q==null?void 0:(ph=q.translations)==null?void 0:ph.maxLengthErrorMessage;if(R&&q)return{maxChars:R,errorMessage:q}};
return _.A("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.A("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:K},_.A(_.BX,{data:function(){return D.data().playlistTitle}},{textFormFieldViewModel:function(q){return _.A(_.DzG,{data:q.data,
text:X,onInput:L,validation:T,characterLimit:H})},
textFieldViewModel:function(q){return _.A(_.l73,{data:q.data,text:X,onInput:L,validation:T,characterLimit:H})}})),_.A("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.A(_.BX,{data:function(){return D.data().playlistVisibility}},{dropdownViewModel:function(q){return _.A(_.agt,{data:q.data,
onSelected:Y,error:y})}})),_.A(_.v,{cond:function(){return!!D.data().playlistCollaborate},
then:function(){return _.A("div",null,_.A(_.BX,{data:function(){return D.data().playlistCollaborate}},{switchListItemViewModel:function(q){return _.A(_.ERJ,{data:q.data,
onTap:J})}}))}}))},"Nj");var Rtt=_.F(function(D){var C=D.data;return _.A("upsell-offer-table-cell-content-view-model",null,_.A("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.A(_.G4,null,_.A(_.wq,{when:function(){var X;return(X=C().icon)==null?void 0:X.iconType}},function(){return _.A("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.A(_.$_,{icon:function(){var X;
return(X=C().icon)==null?void 0:X.iconType.toString()}}))}),_.A(_.wq,{when:function(){return C().title}},function(){return _.A(_.QG,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return C().title}})}),_.A(_.wq,{when:function(){return C().subtitle}},function(){return _.A(_.QG,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return C().subtitle}})}),_.A(_.wq,{when:function(){return C().infoText}},function(){return _.A(_.QG,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return C().infoText}})}),_.A(_.wq,{when:function(){return C().featureDescription}},function(){return _.A(_.QG,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return C().featureDescription}})}),_.A(_.wq,{when:function(){return C().note}},function(){return _.A(_.QG,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return C().note}})})),_.A(_.v,{cond:function(){var X;
return(X=C().icon)==null?void 0:X.iconAccessibilityText},
then:function(){return _.A("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var X;return(X=C().icon)==null?void 0:X.iconAccessibilityText})}})))},"Oj");
Rtt.idomCompat=!0;var lMN=_.F(function(D){var C=D.data;var X=D.cellIndex;var c=D.rowIndex;return _.A("upsell-offer-table-cell-view-model",null,_.A("div",{class:_.g$("ytUpsellOfferTableCellViewModelCellWrapper",function(){return C().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":C().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var W,p;return"cell-"+((W=c==null?void 0:c())!=null?W:0)+"-"+((p=X==null?void 0:X())!=null?p:0)},
role:function(){return C().isFirstRow?"columnHeader":C().isFirstColumn?"rowheader":"gridcell"}},_.A(_.BX,{data:function(){return C().contents}},{upsellOfferTableCellContentViewModel:Rtt})))},"Pj");
lMN.idomCompat=!0;var DZw=_.F(function(D){var C=D.data;var X=D.upsellTableIsFirstRow;var c=D.rowIndex;var W=function(){return(X==null?0:X())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},p=function(){return(X==null?0:X())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.A("ytm-upsell-offer-table-row-view-model",null,_.A("div",{class:function(){return(X==null?0:X())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(c==null?void 0:c())+"-1 cell-"+(c==null?void 0:c())+"-2"}},_.A(_.BX,{data:function(){return C().rowHeaderCell}},{upsellOfferTableCellViewModel:function(g){return _.A("div",{class:W},_.A(lMN,{data:g.data,
cellIndex:0,rowIndex:c}))}}),_.A("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.A(_.BX,{data:function(){return C().contentCells}},{upsellOfferTableCellViewModel:function(g,a){return _.A("div",{class:p},_.A(lMN,{data:g.data,
cellIndex:function(){return a()+1},
rowIndex:c}))}}))))},"Qj");
DZw.idomCompat=!0;var C7o=_.F(function(D){var C=D.data;return _.A("ytm-upsell-offer-table-view-model",null,_.A("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.A("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.A(_.BX,{data:function(){return C().rows}},{upsellOfferTableRowViewModel:function(X,c){return _.A(DZw,{data:X.data,
upsellTableIsFirstRow:function(){return c()===0},
rowIndex:c})}}))))},"Rj");
C7o.idomCompat=!0;var XUG=_.F(function(D){var C=function(){return D.data()},X=_.di(D.noPadding,!1),c=function(){var p,g;
return(g=(p=C().logo.accessibilityData)==null?void 0:p.label)!=null?g:""},W={};
return _.A("upsell-view-model",{class:_.g$("ytUpsellViewModelHost",(W.ytUpsellViewModelHostNoPadding=function(){return X()},W.ytUpsellViewModelHostWide=function(){return C().offerTable!==void 0},W))},_.A("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.A(_.v,{cond:function(){return _.VX(C().logo)},
then:function(p){return _.A(_.M_,{data:p,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:c})}})),_.A("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.A(_.QG,{text:function(){return C().title}})),_.A("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.A(_.Zh,{each:function(){var p;
return(p=C().subtitles)!=null?p:[]},
keyBy:"INDEX"},function(p){var g={};return _.A("div",{class:_.g$("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(g.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return C().offerTable!==void 0},g))},_.A(_.QG,{text:p}))})),_.A("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.A(_.Zh,{each:function(){var p;
return(p=C().benefitInfos)!=null?p:[]},
keyBy:"INDEX"},function(p){return _.A(_.v,{cond:function(){return p().info},
then:function(g){return _.A("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.A(_.$_,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.A(_.QG,{text:g}))}})})),_.A(_.v,{cond:function(){return C().offerTable!==void 0},
then:function(){return _.A("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.A(_.BX,{data:function(){return C().offerTable}},{upsellOfferTableViewModel:function(p){return _.A(C7o,{data:p.data})}}))}}),_.A("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.A(_.Zh,{each:function(){var p;
return(p=C().legalInfos)!=null?p:[]},
keyBy:"INDEX"},function(p){var g={};return _.A("div",{class:_.g$("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(g.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return C().offerTable!==void 0},g))},_.A(_.QG,{text:p}))})))},"Sj");var cQt=_.F(function(D){var C=D.data;D={};D=(D.ytMiniAppScoreChallengeViewModelScoreRadial=!0,D.ytMiniAppScoreChallengeViewModelDarkScoreRadial=J63(),D);return _.A("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.A("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return C().title}),_.A("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return C().subtitle}),_.A("div",{class:_.sN(D)},_.A("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return C().score})),_.A("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return C().prompt}))},"Tj");var oWt=function(){this.store=_.qw();this.formId=""};
oWt.prototype.onInit=function(D){D.formId&&(this.formId=D.formId,this.store.dispatch(_.oI({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
oWt.prototype.cleanup=function(){this.store.dispatch(_.oI({type:"RESET_COMMAND_MAP"}))};var Wc3=_.F(function(D){function C(a){if(a&&(a=_.r(a,_.KT)))return Object.assign({},a,{isSelected:p()})}
var X=_.U(_.d2(function(){var a,O;return(O=(a=_.r(D.data().option,_.KT))==null?void 0:a.isSelected)!=null?O:!1})),c=X.next().value,W=X.next().value,p=c;
_.JU(function(){var a;_.VfP((a=D.data().formSchema)==null?void 0:a.id,{onSubmit:function(){var O=_.iX().resolve(_.uX),P=!!D.data().selectedCommand,k=!!D.data().unselectedCommand;if(p()){if(P)var u=D.data().selectedCommand}else k&&(u=D.data().unselectedCommand);u=_.Y7(u);C(D.data().option)&&!u?(O="",!P&&k?O="selected ":P&&!k&&(O="unselected "),P=new _.Zf("No "+O+"command found for SelectionListItemFormViewModel"),_.MN(P)):u&&O.resolveCommand(u)},
isValid:function(){return!0}})});
var g=function(){W(!p())};
_.z3(function(){var a,O,P=(a=D.data())==null?void 0:(O=a.formSchema)==null?void 0:O.id;P&&_.uK()().delete(P)});
return _.A("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.A("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.A(_.QG,{text:function(){return D.data().paragraph}})),_.A(_.v,{cond:function(){return C(D.data().option)},
then:function(a){return _.A(_.Bb,{data:a,isCompact:!0,hideSelectionTextChevron:!0,onTap:g,disableHorizontalPadding:!0})}}))},"Uj");var pUU=_.F(function(D){var C=D.data;var X=D.disablePadding;var c=D.className;var W=_.aX("yt-dialog-header-view-model"),p=function(){var O=C().imageBanner;a:switch(C().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var P="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:P="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:O,style:P,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},g=function(){return C().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
a=function(){return C().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.JU(function(){var O=function(){_.DS(W.value,"yt-refit-popups-action")},P;
(P=W.value)==null||P.addEventListener("image-loaded",O);_.z3(function(){var k;(k=W.value)==null||k.removeEventListener("image-loaded",O)})});
D={};return _.A("yt-dialog-header-view-model",{el:W,class:_.g$(c,(D.ytDialogHeaderViewModelHost=!0,D.ytDialogHeaderViewModelHostDisablePadding=X,D.ytDialogHeaderViewModelHostCentered=a,D))},_.A(_.v,{cond:function(){return C().imageBanner},
then:function(){var O={};return _.A("div",{class:_.g$(c,(O.ytDialogHeaderViewModelBanner=!0,O.ytDialogHeaderViewModelBannerFullBleed=g,O)),style:_.P0({"max-height":function(){return C().assetContainerMaxHeight!==void 0?C().assetContainerMaxHeight+"px":void 0}})},_.A(_.ZX,{data:p,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.A(_.v,{cond:function(){return C().headerBlock},
then:function(){var O={};return _.A("div",{class:_.g$("ytDialogHeaderViewModelHeaderBlock",(O.ytDialogHeaderViewModelHeaderBlockCentered=a,O))},_.A(_.BX,{data:function(){return C().headerBlock}},{contentPreviewImageViewModel:function(P){return _.A(_.ZX,{data:P.data,
notifyOnLoaded:!0})}}))}}),_.A(_.v,{cond:function(){return C().customBanner},
then:function(O){var P={};return _.A("div",{class:_.g$("ytDialogHeaderViewModelCustomAssetContainer",(P.ytDialogHeaderViewModelCustomAssetContainerCentered=a,P))},_.A(_.BX,{data:O},{avatarStackViewModel:_.Ae}))}}),_.A(_.v,{cond:function(){return C().headline},
then:function(O){return _.A("h2",null,_.A(_.QG,{text:O,className:"ytDialogHeaderViewModelText"}))}}))},"Vj");
pUU.idomCompat=!0;var SoG=_.F(function(D){var C=_.OB3(function(){return D.data().formId}),X=C.submitForm,c=C.isValid;
return _.A("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.A(_.BX,{data:function(){return D.data().panelFooter}},{panelFooterViewModel:function(W){return _.A(_.jF,{data:W.data,
disablePadding:!0,disablePrimaryButton:function(){return!c()},
onClickPrimaryButton:function(){X()}})}}))},"Wj");var UZw=_.F(function(D){var C=function(){var X,c;return(c=(X=_.r(D.data().rendererContext,_.by))==null?void 0:X.label)!=null?c:""};
return _.A("yt-dialog-image-content-view-model",{class:_.g$("ytDialogImageContentViewModelHost",D.className)},_.A(_.v,{cond:function(){return _.VX(D.data().image)},
then:function(X){var c={};return _.A("div",{style:_.P0((c.width=(0,_.iM)(function(){var W;return(W=D.data().imageMaxWidth)!=null?W:""}),c)),
class:"ytDialogImageContentViewModelImage"},_.A(_.M_,{data:X,alt:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.A(_.QG,{text:function(){return D.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Xj");var IjP=_.F(function(D){var C=_.Ro(D,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),X=C.elRefCallback;D=C.Icon;var c=C.Asset,W=C.assetType,p=C.Title,g=C.LeadingActionHeader,a=C.TrailingActionHeader,O=C.headerPosition,P=C.Content,k=C.buttonLayout,u=C.buttonStyle,Q=C.primaryButtonWiz,B=C.secondaryButtonWiz,K=C.contentAlignment,L=C.isFullscreen,t=C.width,Y=C.maxHeight,y=C.isHeaderWizDefined,J=C.Header,T=C.isFooterWizDefined,
H=C.Footer;C=_.aX("dialog-layout",function(Fd){X==null||X(Fd)});
var q=Q?function(){var Fd={};return Q({buttonOverrides:function(){return{style:(u==null?void 0:u())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.g$((Fd["yt-spec-dialog-layout__dialog-layout-button"]=!0,Fd["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},Fd))})}:void 0,R=B?function(){var Fd={};
return B({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.g$((Fd["yt-spec-dialog-layout__dialog-layout-button"]=!0,Fd["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},Fd))})}:void 0,ph=function(){return(!!p||!!g||!!a)&&O()===0},Om={},xj={},Bo={},r5={};
return _.A("dialog-layout",{el:C,class:_.g$((Om["yt-spec-dialog-layout"]=!0,Om["yt-spec-dialog-layout--dialog-layout-fullscreen"]=L,Om["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!L()},Om["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return Y()===1},Om["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(W==null?void 0:W())===1},Om)),
style:function(){return(t==null?void 0:t())!==void 0?"width: "+t()+"px;":""}},D?_.A("div",{class:_.g$((xj["yt-spec-dialog-layout__dialog-layout-icon"]=!0,xj["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!c&&O()===1},xj["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return K()===1},xj))},_.A(D,null)):null,_.A(_.v,{cond:y,
then:function(){return J?_.A("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.A(J,null)):null},
else:function(){return _.A(_.kQ,null,_.A(_.v,{cond:ph,then:function(){return _.A(gW1,{contentAlignment:K,LeadingActionHeader:g,TrailingActionHeader:a,Title:p,isAboveAsset:!!c})}}),c?_.A("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.A(c,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.A("div",{class:_.g$((Bo["yt-spec-dialog-layout__dialog-layout-container"]=!0,Bo["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(K==null?void 0:K())===1},
Bo["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!p&&!(J&&y())||!!c&&(O==null?void 0:O())===0},Bo))},_.A(_.v,{cond:function(){return p&&!J&&(O==null?void 0:O())===1},
then:function(){return _.A(gW1,{contentAlignment:K,LeadingActionHeader:g,TrailingActionHeader:a,Title:p,isAboveAsset:!1})}}),P?_.A("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.A("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.A(P,null))):null,_.A(_.v,{cond:T,
then:function(){return H?_.A("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.A(H,null)):null}}),q||R?_.A(ajo,{footerClasses:_.g$((r5["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,r5["yt-spec-dialog-layout__dialog-layout-footer"]=!0,r5["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(k==null?void 0:k())===2},r5["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(k==null?void 0:k())===1},r5)),
PrimaryButton:q,SecondaryButton:R}):null))},"Yj"),gW1=_.F(function(D){var C=_.Ro(D,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),X=C.contentAlignment,c=C.LeadingActionHeader;D=C.Title;var W=C.TrailingActionHeader,p=C.isAboveAsset,g=C.enableLeadingActionHeader;C={};return _.A("div",{class:_.g$((C["yt-spec-dialog-layout__dialog-header-container"]=!0,C["yt-spec-dialog-layout__dialog-header"]=!0,C["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=p,C["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(X==null?void 0:X())===1&&g()},C))},_.A(_.v,{cond:function(){return g()},
then:function(){return c?_.A("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.A(c,null)):null}}),D?_.A("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.A(D,null)):null,W?_.A("div",null,_.A(W,null)):null)},"Zj"),ajo=_.F(function(D){var C=D.footerClasses;
var X=D.PrimaryButton;D=D.SecondaryButton;return _.A("div",{class:C},D?_.A(D,null):null,X?_.A(X,null):null)},"$j");var OBo=new _.P6("TIME_PICKER_VIEW_MODEL_TOKEN");var AQP=_.F(function(D){var C=D.data;return _.A("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.A("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.A(_.BX,{data:function(){return C().avatar}},{avatarViewModel:_.Iu})),_.A("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A(_.QG,{text:function(){return C().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ak");var P7X=_.F(function(D){return _.A("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.A("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.A(_.QG,{text:function(){return D.data().inviteMessage}})),_.A("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.A(_.QG,{text:function(){return D.data().attributedAccountSectionHeaderText}})),_.A("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.A(_.BX,{data:function(){return D.data().accountAvatar}},{avatarViewModel:_.Iu}),_.A("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.A(_.QG,{text:function(){return D.data().accountName}}),_.A("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.A(_.QG,{text:function(){return D.data().handle}}))),_.A(_.BX,{data:function(){return D.data().trailingButton}},{buttonViewModel:_.Ze})),_.A("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.A(_.QG,{text:function(){return D.data().termsOfService}})))},"bk");var $Zo=_.F(function(D){var C=D.data;return _.A("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.A("div",{class:"ytAccessConfirmationViewModelContent"},_.A(_.BX,{data:function(){var X;return(X=C().avatar)!=null?X:C().dualAvatar}},{dualAvatarViewModel:function(X){return _.A(_.QHt,{data:X.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(X){return _.A(_.Og,{data:X.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.A("h2",{class:"ytAccessConfirmationViewModelTitle"},_.A(_.QG,{text:function(){return C().title}})),_.A(_.QG,{text:function(){return C().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ck");var vWG=_.F(function(D){var C=D.data;var X=void 0;D=_.U(_.d2(function(){var k;return((k=_.r(C().content,_.pEw))==null?void 0:k.defaultSelectedKey)||""}));
var c=D.next().value,W=D.next().value,p,g=function(){W("");var k;(k=X)==null||k.cleanup()};
_.JU(function(){X=new oWt;window.addEventListener("yt-popup-closed",g)});
_.Jw(function(){if(X&&p!==C().formId&&(X.onInit(C()),(p=C().formId)&&c())){var k=X,u={key:c()};u.command&&k.store.dispatch(F8N(p,u.command))}},"sAwss");
_.z3(function(){window.removeEventListener("yt-popup-closed",g)});
var a=function(k,u,Q){u.key&&Q&&u.key!==c()&&(W(u.key),X&&u.command&&X.store.dispatch(F8N(Q,u.command)))},O=function(){if(_.r(C().content,_.pEw))return!(c==null?0:c())},P=_.iX().resolve(_.vK(OBo));
return _.A("yt-dialog-view-model",{class:_.g$("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.A(IjP,{Header:function(){return _.A(_.BX,{data:function(){return C().header}},{dialogHeaderViewModel:function(k){return _.A(pUU,{data:k.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!C().header},
Content:function(){return _.A(_.BX,{data:function(){return C().customContent?C().customContent:C().content}},Object.assign({},{basicContentViewModel:_.uM,
createPlaylistDialogFormViewModel:dj3,collaborativePlaylistInviteMessageViewModel:P7X,miniAppScoreChallengeViewModel:cQt,radioButtonGroupViewModel:function(k){var u=k.data;return _.A(_.MVt,{data:u,selectedKey:c,onSelected:a,groupName:function(){return u().formId}})},
selectionListItemFormViewModel:Wc3,upsellViewModel:function(k){return _.A(XUG,{data:k.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:AQP,installmentAgreementsViewModel:fMG,accessConfirmationViewModel:$Zo,listViewModel:function(k){return _.A(_.Zve,{data:k.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:UZw},P&&{timePickerViewModel:P}))},
Footer:function(){return _.A(_.BX,{data:function(){return C().footer}},{panelFooterViewModel:function(k){return _.A(_.jF,{data:k.data,
disablePadding:!0,disablePrimaryButton:O})},
formPanelFooterViewModel:SoG,formFooterViewModel:function(k){return _.A(_.yXo,{data:k.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!C().footer}}))},"ek");
vWG.idomCompat=!0;_.CI(vWG,"yt-dialog-view-model",{props:{data:_.Bm},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var iBG=_.F(function(D){var C=D.data;return _.A("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.A(_.v,{cond:function(){return C().title},
then:function(X){return _.A("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.A(_.QG,{text:X,className:"ytPanelHeaderViewModelTitle"}))}}),_.A(_.v,{cond:function(){return C().subtitle},
then:function(X){return _.A(_.QG,{text:X,className:"ytPanelHeaderViewModelSubtitle"})}}))},"fk"),k9P=_.F(function(D){var C=D.data;
var X=_.JKF(function(){return C().rendererContext});
D={};return _.A("yt-panel-header-view-model",{class:_.g$("ytPanelHeaderViewModelHost",(D.ytPanelHeaderViewModelHostHideDivider=function(){return!!C().shouldHideDivider},D.ytPanelHeaderViewModelHostCompact=function(){return!!C().subtitle},D)),
"aria-label":function(){var c;return(c=X())==null?void 0:c.label}},_.A(_.v,{cond:function(){return _.tG(C().rendererContext)},
then:function(){return _.A(_.bv5,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.EN(C().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.A(iBG,{data:C}))},
else:function(){return _.A(iBG,{data:C})}}),_.A("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.A(_.BX,{data:function(){return C().trailingButtons}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
className:"ytPanelHeaderViewModelButton"})}})))},"gk");
k9P.idomCompat=!0;var uFt=_.F(function(D){var C=_.I_(function(p){var g;if((g=D.skipContentClick)==null?0:g.call(D))return!1;D.onContentWrapperClick(p);return!0}),X,c,W;
return _.A("div",{class:_.g$("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return D.isAnimating()?"transform: translateY("+D.currentY()+"px);transition: 0.2s":""}},(X=D.header)==null?void 0:X.call(D),_.A("div",{id:D.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.P0({"max-height":(0,_.iM)(D.maxHeightForContentWrapper)}),"on:scroll":_.I_(function(p){return D.onScroll(p),!1}),
"on:touchmove":_.I_(function(p){return p.stopPropagation(),!1})},_.A("div",{el:_.fb(D.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":C},(c=D.body)==null?void 0:c.call(D))),(W=D.footer)==null?void 0:W.call(D))},"hk");
uFt.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var QTt=_.F(function(D){var C=_.di(D.leadingLabel),X=_.di(D.trailingLabel),c=_.di(D.footerButtonType),W=function(){return C()||X()||D.hasPrimaryButton()||D.hasSecondaryButton()},p={},g=_.g$("yt-spec-bottom-sheet-layout__primary-button",(p["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return c()===0&&D.hasPrimaryButton()},p["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return c()===1&&D.hasPrimaryButton()},p["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return c()===2&&D.hasPrimaryButton()},p["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return c()===3&&D.hasPrimaryButton()},p));
p={};var a=_.g$("yt-spec-bottom-sheet-layout__secondary-button",(p["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return c()===1&&D.hasSecondaryButton()},p["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return c()===2&&D.hasSecondaryButton()},p["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return c()===3&&D.hasPrimaryButton()},p));
return _.A(_.v,{cond:D.hasFooterOverride,then:function(){var O;return _.A(_.kQ,null,(O=D.footerOverride)==null?void 0:O.call(D))},
else:function(){return _.A(_.v,{cond:W,then:function(){return _.A("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.A(_.v,{cond:function(){return C()||X()},
then:function(){var O={};return _.A("div",{class:_.g$("yt-spec-bottom-sheet-layout__footer-label-wrapper",(O["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!D.hasPrimaryButton()},O))},_.A(_.v,{cond:C,
then:function(){return _.A("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},C)}}),_.A(_.v,{cond:X,
then:function(){return _.A("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},X)}}))}}),_.A(_.v,{cond:function(){return D.hasPrimaryButton()||D.hasSecondaryButton()},
then:function(){var O={};return _.A("div",{class:_.g$("yt-spec-bottom-sheet-layout__footer-button-wrapper",(O["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Pgb,O))},_.A(_.v,{cond:function(){return D.hasSecondaryButton()&&c()!==0},
then:function(){var P;return _.A("div",{class:a},(P=D.secondaryButton)==null?void 0:P.call(D))}}),_.A(_.v,{cond:D.hasPrimaryButton,
then:function(){var P;return _.A("div",{class:g},(P=D.primaryButton)==null?void 0:P.call(D))}}))}}))}})}})},"ik");
QTt.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var BKw=_.F(function(D){var C=_.di(D.title),X=_.di(D.subtitle);return _.A("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:D.headerId,"on:touchstart":_.I_(function(c){var W;(W=D.touchstart)==null||W.call(D,c);return!1}),
"on:touchmove":_.I_(function(c){var W;(W=D.touchmove)==null||W.call(D,c);return!1}),
"on:touchend":_.I_(function(c){var W;(W=D.touchend)==null||W.call(D,c);return!1})},_.A("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.A(_.v,{cond:D.hasHeaderOverride,
then:function(){var c;return _.A(_.kQ,null,(c=D.headerOverride)==null?void 0:c.call(D))},
else:function(){var c={};return _.A("div",{class:_.g$((c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=C,c))},_.A("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.A(_.v,{cond:C,then:function(){return _.A(_.kQ,null,_.A("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},C),_.A(_.v,{cond:X,then:function(){return _.A("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
X)}}))}})),_.A(_.v,{cond:function(){return C()&&D.hasActionHeader()},
then:function(){var W;return _.A("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(W=D.actionHeader)==null?void 0:W.call(D))}}))}}))},"jk");
BKw.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.F(function(D){function C(ph){if(!J&&typeof MutationObserver!=="undefined"){var Om={childList:!0};"MutationObserver"in window&&(J=new MutationObserver(X.bind(void 0,ph)),J.observe(ph,Om))}}
function X(ph){typeof J!=="undefined"&&(T["content-wrapper"]===void 0&&(T["content-wrapper"]=ph.children[0].clientHeight),L(T["content-wrapper"]),K()>t()||Y(K()))}
function c(){B(window.innerHeight);K()>t()||Y(K());H.isFullScreen[0]()&&K()>t()?q().dispatch("Snap To Full Screen",{maxHeight:y()}):q().dispatch("Snap To Neutral Position",{maxHeight:t()})}
function W(ph){document.body.style.overscrollBehavior="none";ph.preventDefault();q().dispatch("Touch Start",{event:ph})}
function p(ph){ph.preventDefault();q().dispatch("Touch Move",{event:ph,contentScrollable:K()>t(),fullContentWrapperHeight:y(),contentWrapperHeight:t(),heightMap:T,contentWrapperId:"content-wrapper",header:fVo(D),footer:fVo(D),headerDivHeight:T["bottom-sheet-header"],footerDivHeight:T["bottom-sheet-footer"]})}
function g(){document.body.style.overscrollBehavior="";H.isFullScreen[0]()?H.currentY[0]()>=60?q().dispatch("Snap To Neutral Position",{maxHeight:t()}):q().dispatch("Snap To Full Screen",{maxHeight:y()}):H.currentY[0]()>=60?a():H.currentY[0]()<=-60&&K()>t()?q().dispatch("Snap To Full Screen",{maxHeight:y()}):q().dispatch("Snap To Neutral Position",{maxHeight:t()})}
function a(){q().dispatch("Close Sheet",{clientHeight:Q(),maxHeight:0});setTimeout(function(){qfG()},250)}
var O=_.aX("div"),P=_.aX("div"),k=_.U(_.Li(window.innerHeight,void 0,"CmOsU")),u=k.next().value;k=k.next().value;var Q=u,B=k;k=_.U(_.Li(0,void 0,"p0Flhb"));u=k.next().value;k=k.next().value;var K=u,L=k;k=_.U(_.d2(function(){var ph=fVo(D);return.6*Q()-zJk(ph)-jKG(ph)}));
u=k.next().value;k=k.next().value;var t=u,Y=k,y=function(){var ph=fVo(D),Om=Q(),xj=T["bottom-sheet-header"],Bo=T["bottom-sheet-footer"];return Om-(ph.hasHeaderFn&&xj!==void 0?xj:zJk(ph))-(ph.hasFooterFn&&Bo!==void 0?Bo:jKG(ph))-24-24},J=null,T={},H={initialY:_.Li(0,void 0,"sxdESd"),
currentY:_.Li(0,void 0,"GZzqeb"),isAnimating:_.Li(!1,void 0,"vJBupc"),isFullScreen:_.Li(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.d2(t)},q=function(){var ph=null;return function(){if(!ph){var Om={initialY:H.initialY[0](),currentY:H.currentY[0](),isAnimating:H.isAnimating[0](),isFullScreen:H.isFullScreen[0](),maxHeightForContentWrapper:H.maxHeightForContentWrapper[0]()};ph=M$p(Om)}return ph}}();
_.JU(function(){window.addEventListener("resize",c);q().subscribe(function(ph){H.initialY[1](ph.initialY);H.currentY[1](ph.currentY);H.isAnimating[1](ph.isAnimating);H.isFullScreen[1](ph.isFullScreen);H.maxHeightForContentWrapper[1](ph.maxHeightForContentWrapper)});
requestAnimationFrame(function(){O.value&&(T["bottom-sheet-header"]=O.value.clientHeight);P.value&&(T["bottom-sheet-footer"]=P.value.clientHeight)})});
_.z3(function(){window.removeEventListener("resize",c);J&&(J.disconnect(),J=null)});
var R=_.g$({"bottom-sheet-content-without-icon":function(){var ph;return!((ph=D.shouldShowIcons)==null?0:ph.call(D))}});
return _.A("bottom-sheet-layout",null,_.A(uFt,{contentWrapperId:"content-wrapper",isAnimating:function(){return H.isAnimating[0]()},
currentY:function(){return H.currentY[0]()},
maxHeightForContentWrapper:function(){return H.maxHeightForContentWrapper[0]()},
shouldShowIcons:D.shouldShowIcons,skipContentClick:D.skipContentClick,onScroll:function(){var ph=document.getElementById("bottom-sheet-header"),Om=document.getElementById("content-wrapper");if(ph&&Om){var xj={};xj=(xj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,xj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,xj);ph.className=Om.scrollTop>1?_.sN(xj):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:qfG,contentWrapperEl:function(ph){C(ph);requestAnimationFrame(function(){X(ph)})},
header:function(){return _.A("div",{el:O},_.A(BKw,{touchstart:W,touchmove:p,touchend:g,title:D.headerTitle,subtitle:D.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:D.headerFn,hasHeaderOverride:D.hasHeaderFn,actionHeader:D.headerActionHeader,hasActionHeader:D.hasHeaderActionHeader}))},
footer:function(){return _.A("div",{el:P},_.A(QTt,{footerButtonType:D.footerButtonType,leadingLabel:D.footerLeadingLabel,trailingLabel:D.footerTrailingLabel,primaryButton:D.footerPrimaryButton,hasPrimaryButton:D.hasFooterPrimaryButton,secondaryButton:D.footerSecondaryButton,hasSecondaryButton:D.hasFooterSecondaryButton,footerOverride:D.footerFn,hasFooterOverride:D.hasFooterFn}))},
body:function(){return _.A(_.v,{cond:D.hasContentFn,then:function(){var ph;return _.A("div",{class:R},(ph=D.contentFn)==null?void 0:ph.call(D))}})}}))},"kk").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var bB6=_.F(function(D){var C=_.iX().resolve(_.S0);return _.A("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.I_(function(){return void C.closeSheet()})},_.A(_.v,{cond:function(){return!!D.header},
then:function(){return _.A("div",{class:"ytContextualSheetLayoutHeaderContainer"},D.header())}}),_.A(_.v,{cond:function(){return!!D.content},
then:function(){return _.A("div",{class:"ytContextualSheetLayoutContentContainer"},D.content())}}),_.A(_.v,{cond:function(){return!!D.footer},
then:function(){return _.A("div",{class:"ytContextualSheetLayoutFooterContainer"},D.footer())}}))},"lk");
bB6.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var rQN=_.F(function(D){var C=D.data;var X=_.iX().resolve(_.uX),c=_.aX("yt-sheet-view-model",function(W){if(_.b("web_focus_first_element_sheet")||!_.b("sheet_focus_first_killswitch"))return W.addEventListener("focus",function(){Q3G(W)}),function(){W.removeEventListener("focus",function(){Q3G(W)})}});
D={};return _.A("yt-sheet-view-model",{"on:mousedown":_.I_(function(W){_.b("sheet_focus_first_killswitch")||W.currentTarget!==W.target&&W.preventDefault()}),
"on:focus":_.I_(function(){_.b("sheet_focus_first_killswitch")||Q3G(c.value)}),
"on:mouseleave":_.I_(function(){var W,p=C==null?void 0:(W=C())==null?void 0:W.rendererContext,g;(W=(g=_.r(p,_.Yu))==null?void 0:g.onHoverEnd)&&X.resolveCommand(W)}),
class:_.g$("ytSheetViewModelHost",(D.ytSheetViewModelContextual=!0,D.ytSheetViewModelDisableBackdropFilter=_.b("web_disable_backdrop_filter"),D)),el:c,tabindex:-1},_.A(_.v,{cond:C,then:function(W){return _.A(bB6,{header:function(){return _.A(_.BX,{data:function(){return W().header}},{panelHeaderViewModel:k9P})},
content:function(){return _.A(_.BX,{data:function(){return W().content}},{listViewModel:function(p){return _.A(_.Zve,{data:p.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:XUG,miniAppScoreChallengeViewModel:cQt})},
footer:function(){return _.A(_.BX,{data:function(){return W().footer}},{panelFooterViewModel:_.jF})}})}}))},"mk");
rQN.idomCompat=!0;_.CI(rQN,"yt-sheet-view-model",{props:{data:_.Bm}});var hRU=_.F(function(D){var C=function(){var X;return(X=D.data().enableDebuggingFeatures)!=null?X:!1};
return _.A("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.A(_.Zh,{each:function(){var X;return(X=D.data().stickers)!=null?X:[]}},function(X){return _.A(Kct,{data:function(){return X},
debugMode:C})}))},"nk"),Kct=_.F(function(D){var C=_.Ro(D,{debugMode:!1}).debugMode,X=_.di(function(){var O;
return(O=D.data().region)==null?void 0:O.w},0),c=_.di(function(){var O;
return(O=D.data().region)==null?void 0:O.h},0),W=_.di(function(){var O;
return(O=D.data().region)==null?void 0:O.x},0),p=_.di(function(){var O;
return(O=D.data().region)==null?void 0:O.y},0),g=_.I_(function(){var O=D.data().onTap;
O&&_.FV(O)}),a={};
return _.A("div",{class:_.g$("ytStoriesStickerLayerViewModelSticker",(a.ytStoriesStickerLayerViewModelDebugMode=C,a)),style:_.P0({width:function(){return 100*X()+"%"},
height:function(){return 100*c()+"%"},
left:function(){return 100*W()+"%"},
top:function(){return 100*p()+"%"},
"flex-direction":function(){return dsU(D.data().flexDirection)},
"justify-content":function(){return RJw(D.data().justifyContent)},
"align-items":function(){return lVX(D.data().alignItems)}}),
"on:click":g},_.A(_.BX,{data:function(){return D.data().button||D.data().toggleButton}},{buttonViewModel:function(O){return _.A(_.Ze,{data:O.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(O){return _.A(_.o1,{data:O.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ok");var Lc1=_.F(function(D){var C=function(){return D.data()},X={},c=_.U(_.Li(!1,void 0,"SegA3d")),W=c.next().value,p=c.next().value,g=_.di(function(){return C().backgroundColor},0);
c=_.di(function(){return C().actionButtons},[]);
var a=_.di(function(){return C().stickerLayer},{}),O=function(){var k,u;
return{animationRef:X,animationConfig:{autoplay:!1,loop:!1,path:(u=(k=C().foregroundAnimation)==null?void 0:k.url)!=null?u:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){p(!0)},
complete:function(){D.navigateToNextItemOnLottieComplete()}}}},P=function(){var k,u,Q,B,K,L,t,Y;
return{animationConfig:{autoplay:(L=(k=C().backgroundAnimation)==null?void 0:(u=k.settings)==null?void 0:u.autoplay)!=null?L:!1,loop:(t=(Q=C().backgroundAnimation)==null?void 0:(B=Q.settings)==null?void 0:B.loop)!=null?t:!1,path:(Y=(K=C().backgroundAnimation)==null?void 0:K.url)!=null?Y:"",name:"stories_item_background_animation"}}};
_.Jw(function(){if(D.isVisible()&&W()){var k;(k=X.lottieEl)==null||k.play();D.animationRef()&&(D.animationRef().lottieEl=X.lottieEl)}else{var u;(u=X.lottieEl)==null||u.stop()}},"MxM2wb");
return _.A("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.P0({"background-color":function(){return _.e_(g())+";"}})},_.A("div",{class:"ytStoriesItemViewModelAssetContent"},_.A(_.v,{cond:function(){return!!C().backgroundAnimation},
then:function(){return _.A(_.zl,{data:P,animationName:function(){return P().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.A(_.v,{cond:function(){return!!C().backgroundImage},
then:function(){return _.A(_.M_,{data:function(){return C().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.A(_.v,{cond:function(){return!!C().foregroundAnimation},
then:function(){return _.A(_.zl,{data:O,animationName:function(){return O().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.A(_.v,{cond:function(){return!!C().foregroundImage},
then:function(){return _.A(_.M_,{data:function(){return C().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.A("div",{class:"ytStoriesItemViewModelTopShadow"}),_.A(_.BX,{data:function(){return a()}},{storiesStickerLayerViewModel:hRU})),_.A("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.P0({"background-color":function(){return _.e_(g())}})},_.A("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.A(_.Zh,{each:c},function(k){return _.A(xZU,{data:function(){return k},
pauseAutoNavigation:D.pauseAutoNavigation})}))))},"qk"),sTk={style:"overlay",
type:"outline"},xZU=_.F(function(D){var C={};return _.A("div",{class:_.g$("ytStoriesItemViewModelActionButton",(C.ytStoriesItemViewModelStretchedActionButton=function(){return D.data().size==="STORIES_BUTTON_SIZE_STRETCH"},C)),
"on:click":_.I_(D.pauseAutoNavigation)},_.A(_.BX,{data:function(){return D.data().button}},{buttonViewModel:function(X){return _.A(_.Ze,{data:X.data,
buttonOverrides:sTk})}}))},"rk");var mZk={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.CI(_.F(function(D){var C=function(){var Bo;return(Bo=D.data().startIndex)!=null?Bo:0},X=_.U(_.d2(C)),c=X.next().value,W=X.next().value;
X=_.U(_.Li(!1,void 0,"sjy7s"));var p=X.next().value,g=X.next().value,a=function(){var Bo;return(Bo=D.data().storyItems)!=null?Bo:[]},O={},P=_.aX("yt-stories-viewer-view-model"),k=function(){return D.data().dismissButton},u=function(){var Bo;
return _.Y7((Bo=_.r(k(),_.is))==null?void 0:Bo.onTap)},Q=_.aX("div"),B,K,L=!1,t=function(){var Bo;
(Bo=B)==null||Bo.cancel();B=Y(c()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});B.onfinish=function(){var r5=_.r(a()[c()],Gpk),Fd,GJ;r5!=null&&r5.foregroundAnimation&&((r5==null?0:(Fd=r5.foregroundAnimation)==null?0:Fd.url)||(r5==null?0:(GJ=r5.foregroundAnimation)==null?0:GJ.payload))||(c()!==a().length-1?(W(c()+1),t()):u()&&_.yK(u()))}},Y=function(Bo){return Q.value.children[Bo].children[0]},y=function(){for(var Bo=0;Bo<c();Bo++)Y(Bo).style.transform=
"scaleX(1)"},J=function(){L||(p()?g(!1):(c()===a().length-1&&u()&&_.yK(u()),Y(c()).style.transform="scaleX(1)",c()!==a().length-1&&(W(c()+1),t())))},T=function(){L||(p()?g(!1):(Y(c()).style.transform="scaleX(0)",c()!==0&&W(c()-1),t()))},H=function(){g(!0)},q=function(){Y(c()).style.transform="scaleX(1)";
c()!==a().length-1?(W(c()+1),t()):u()&&_.yK(u())};
X=function(){L=!1;K=setTimeout(function(){g(!0);L=!0},300)};
var R=function(){clearTimeout(K);L&&p()&&g(!1)};
_.Jw(function(){if(p()){var Bo;(Bo=B)==null||Bo.pause();var r5;(r5=O.lottieEl)==null||r5.pause()}else{var Fd;(Fd=B)==null||Fd.play();var GJ;(GJ=O.lottieEl)==null||GJ.play()}},"vAvZob");
_.Jw(function(){y();c()===C()&&t()},"uSlfE");
var ph=function(Bo){Bo.key==="ArrowLeft"?T():Bo.key==="ArrowRight"&&J()},Om=function(Bo){if(Bo.target===P.value){(Bo=u())&&_.yK(Bo);
clearTimeout(K);var r5;(r5=B)==null||r5.cancel();var Fd;(Fd=O.lottieEl)==null||Fd.stop();window.removeEventListener("keydown",ph);window.removeEventListener("yt-popup-closed",Om)}},xj=function(Bo){if(Bo.target===P.value){var r5;
(r5=O.lottieEl)==null||r5.play();window.addEventListener("keydown",ph);window.addEventListener("yt-popup-closed",Om)}};
_.JU(function(){y();t();window.addEventListener("yt-popup-opened",xj)});
return _.A("yt-stories-viewer-view-model",{el:P,class:_.g$("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.A("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.A("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.I_(T),"on:mousedown":_.I_(X),"on:mouseup":_.I_(R),"on:mouseleave":_.I_(R)}),_.A("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.I_(J),"on:mousedown":_.I_(X),"on:mouseup":_.I_(R),"on:mouseleave":_.I_(R)})),
_.A("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.A(_.BX,{data:a},{storiesItemViewModel:function(Bo,r5){var Fd=Bo.data;return _.A(_.v,{cond:function(){return Math.abs(r5()-c())<=1},
then:function(){var GJ={};return _.A("div",{class:_.g$("ytStoriesViewerViewModelStoryItem",(GJ.ytStoriesViewerViewModelActiveStoryItem=function(){return r5()===c()},GJ))},_.A(Lc1,{data:Fd,
pauseAutoNavigation:H,navigateToNextItemOnLottieComplete:q,isVisible:function(){return r5()===c()},
animationRef:O}))}})}})),_.A("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Q},_.A(_.Zh,{each:a},function(){return _.A("div",{class:"ytStoriesViewerViewModelProgressBar"},_.A("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.A("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.A(_.M_,{data:mZk,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.A("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.A(_.BX,{data:function(){return D.data().muteButton}},{toggleButtonViewModel:function(Bo){return _.A(_.o1,{data:Bo.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.A(_.BX,{data:k},{buttonViewModel:function(Bo){return _.A(_.Ze,{data:Bo.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"uk"),"yt-stories-viewer-view-model",{props:{data:_.Bm}});_.CI(_.F(function(D){var C=D.data;var X=_.aX("yt-gen-ai-feedback-form-view-model"),c=[];return _.A("yt-gen-ai-feedback-form-view-model",{el:X,class:"ytGenAiFeedbackFormViewModelHost"},_.A(_.QG,{text:function(){return C().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.A("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.A(_.BX,{data:function(){return C().feedbackChips}},{toggleButtonViewModel:function(W){var p=W.data;
return _.A(_.o1,{data:p,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(g){var a=p();a=_.r(a,_.us);a=_.r(a==null?void 0:a.defaultButtonViewModel,_.is).trackingParams;g?c.push(a):(g=c.indexOf(a),g>-1&&c.splice(g,1))}})}})),_.A(_.QG,{text:function(){return C().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.A("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.A(_.BX,{data:function(){return C().submitButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){D$3(X.value,c,C().uniqueId)}})}}),_.A(_.BX,{data:function(){return C().moreFeedbackButton}},{buttonViewModel:function(W){return _.A(_.Ze,{data:W.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"vk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Bm},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var KJ=function(){return _.w.apply(this,arguments)||this};
_.h(KJ,_.w);KJ.prototype.created=function(){wPG(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(EeP);var D=_.iX().resolve(_.ywG);D&&(D.container=this.ytPopupContainerBehavior);if(D=_.iX().resolve(_.S0))D.container=this.ytPopupContainerBehavior;if(D=_.iX().resolve(_.U_)){var C=this.ytPopupContainerBehavior;D.containerWasInjected?_.fQ(Error("rj")):D.container=C}};
KJ.prototype.ensurePopupBelowPlayer=function(D,C){var X=_.iX().resolve(_.vK(_.lu));if(!X||!X.isOnWatch()||!_.CT())return!1;X=X.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.ij().height>X+this.getPopupHeight(D,C)?(D.style.top="auto",D.style.bottom="0px"):(D.style.top=X+"px",D.style.bottom="auto");return!0};
KJ.prototype.getPopupHeight=function(D,C){C&&(D.cachedPopupHeight=0);if(!D.cachedPopupHeight){C=0;var X=D.clientHeight,c=window.getComputedStyle(D);C+=parseInt(c.marginTop,10);C+=parseInt(c.marginBottom,10);D.cachedPopupHeight=X+C}return D.cachedPopupHeight};
KJ.prototype.getElement=function(D){return document.createElement(D)};
_.V([_.m(OAU.YtPopupContainerBehavior),_.z("design:type",Object)],KJ.prototype,"ytPopupContainerBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],KJ.prototype,"ytComponentBehavior",void 0);_.V([_.yj({disableElementRegistration:!0,is:"ytd-popup-container"})],KJ);
_.G(KJ,"ytd-popup-container",function(){if(ctp!==void 0)return ctp;var D=document.createElement("template");_.x(D,"\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");D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);return ctp=D},{mode:1});var eRp;var EWp={};EWp.YtLogYpcFlowCommandsBehavior=[_.Jy.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(D){_.r(D,zHP)&&(D=_.r(D,zHP))&&(D.serializedTransactionFlowLoggingParams?_.uH3(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.db("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.db("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=D.serializedYpcPauseFlowLoggingParams)&&
_.db("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams?(D=D.serializedYpcRefundFlowLoggingParams)&&WYt("YPC_EVENT_TYPE_START",D):D.serializedYpcDeactivateFlowLoggingParams?(D=D.serializedYpcDeactivateFlowLoggingParams)&&_.db("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",D):D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(D=D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.db("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",D))},
handleLogYpcFlowDismiss_:function(D){_.r(D,J1p)&&(D=_.r(D,J1p),D.serializedTransactionFlowLoggingParams?_.QvW(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.db("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.db("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=
D.serializedYpcPauseFlowLoggingParams)&&_.db("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams&&(D=D.serializedYpcRefundFlowLoggingParams)&&WYt("YPC_EVENT_TYPE_CANCEL",D))}}];var tHt={};tHt.YtCancelRecurrenceBehavior=[_.O7.YtComponentBehavior,_.arb,{attached:function(){var D=this;BF1(this,function(C,X){return D.ypcCancelRecurrenceHandler(C,X)})},
ypcCancelRecurrenceHandler:function(D,C){var X=this;if(!C||!C.ypcCancelRecurrenceEndpoint)return!1;if(!C.ypcCancelRecurrenceEndpoint.params)return _.Re(Error("Tl")),!0;_.F1(this.hostElement);var c=_.Tr.instance,W=_.iX().resolve(_.vK(_.Qt));c&&_.H0(c,C)?_.Jl(c,C).then(function(p){X.ypcCancelRecurrenceSuccess_(D,C,{data:p})},function(p){X.ypcCancelRecurrenceFailure_(D,C,p)}).thenCatch(function(){_.Re(Error("Ul"))}):W?W.requestDataForServiceEndpoint(C).then(function(p){X.ypcCancelRecurrenceSuccess_(D,
C,p)},function(p){X.ypcCancelRecurrenceFailure_(D,C,p)}).thenCatch(function(){_.Re(Error("Ul"))}):_.Re(Error("Vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(D,C,X){_.ZT(this.hostElement);X.data||(X={data:X});X.data&&X.data.actions&&_.o7(this.hostElement,X.data.actions,this.hostElement);X.data.messageRenderer?SN6(C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(C=C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.db("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",C);_.lE(D,"yt-service-request-completed",X)},
ypcCancelRecurrenceFailure_:function(D,C,X){_.ZT(this.hostElement);SN6(C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.lE(D,"yt-service-request-error",{error:X,params:[D,C]})}}];var NK6=function(D,C){_.Dn.call(this,C)};
_.h(NK6,lEk);var Yow={};Yow.YtCompleteTransactionBehavior=[_.O7.YtComponentBehavior,_.arb,{attached:function(){var D=this;BF1(this,function(C,X){return D.ypcCompleteTransactionHandler(C,X)})},
completeTransaction:function(D,C){var X=this;C={payments_payload:window.btoa(C.integratorData),buybucket_params:D.data.buybucketParams,offer_params:D.data.offerParams};var c=_.iX().resolve(_.Qt),W=D.data.completeTransactionEndpoint,p=this.get("ypcCompleteTransactionEndpoint.actions",W);p&&_.o7(this.hostElement,p,this.hostElement);return(p=_.Tr.instance)&&_.H0(p,W)?_.Jl(p,W,C).then(function(g){return!g||(g==null?0:g.error)?(g=X.get("data.serializedTransactionFlowLoggingParams",D),_.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
g))):{data:g}}).then(function(g){return X.handleCompleteTransactionSuccess_(g,D)},function(){return X.handleCompleteTransactionFailure_(D)}):c.requestDataForServiceEndpoint(W,C).then(function(g){return X.handleCompleteTransactionSuccess_(g,D)},function(){return X.handleCompleteTransactionFailure_(D)})},
handleCompleteTransactionSuccess_:function(D,C){D.data||(D={data:D});if(D.data.messageRenderer)return _.x7(new NK6(D.data.messageRenderer));if(D.data.trackingParams){var X=_.LN(),c=_.xr();X&&c&&_.F_(X,c,_.bO(D.data.trackingParams))}C=this.get("data.serializedTransactionFlowLoggingParams",C);pX3(C);return _.WE(D)},
handleCompleteTransactionFailure_:function(D){D=this.get("data.serializedTransactionFlowLoggingParams",D);_.zh("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D);return _.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D))},
ypcCompleteTransactionHandler:function(D,C){var X=this;if(!C.ypcCompleteTransactionEndpoint)return!1;if(!C.ypcCompleteTransactionEndpoint.transactionParams)return _.Re(Error("Wl")),!0;C.ypcCompleteTransactionEndpoint&&C.ypcCompleteTransactionEndpoint.gtmData&&_.De(C.ypcCompleteTransactionEndpoint.gtmData);var c=_.iX().resolve(_.vK(_.Qt));if(c){_.F1(this.hostElement);var W=_.Tr.instance;W&&_.H0(W,C)?_.Jl(W,C).then(function(p){return!p||(p==null?0:p.error)?(p=X.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
C),_.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p))):{data:p}}).then(function(p){_.lE(D,"yt-service-request-completed");
X.ypcCompleteTransactionSuccess_(C,p)},function(){return X.ypcCompleteTransactionFailure_(C)}):c.requestDataForServiceEndpoint(C).then(function(p){_.lE(D,"yt-service-request-completed");
X.ypcCompleteTransactionSuccess_(C,p)},function(){return X.ypcCompleteTransactionFailure_(C)})}return!0},
ypcCompleteTransactionSuccess_:function(D,C){_.ZT(this.hostElement);C.data||(C={data:C});_.DS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);C.data.messageRenderer||C.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(D):(_.De('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",D));C.data.actions&&(D=T1p(C.data.actions),C=HR3(C.data.actions),D.length&&_.cE(this.hostElement,
D),C.length&&_.o7(this.hostElement,C,this.hostElement))},
ypcCompleteTransactionFailure_:function(D){_.ZT(this.hostElement);_.DS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",D,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(D,C,X){if(C=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",C))C={serializedTransactionFlowLoggingParams:C},X&&(C.errorType=X),_.zu(D,C),_.je()}}];var yQG={};yQG.YtEndpointHandlerWithYpcBehavior=[_.arb,_.Jy.YtActionHandlerBehavior,[{openWalletDialog:function(D,C,X,c,W,p,g){var a=this,O=_.zr();C=C.replace(/-/g,"+").replace(/_/g,"/");var P=_.PE().get("hl");_.GDJ(_.ly(_.j_),C,O.resolve,W,function(k){p&&p();O.reject(k)},P,function(k){return a.onServerBackendAnalyticEvent_(D,X,k)},this.onDialogClose_.bind(this),c,g);
return O.promise},
openFixFlowDialog:function(D,C,X,c){D=D.replace(/-/g,"+").replace(/_/g,"/");_.ly(_.j_).openFixFlowDialog(D,C,X,c)},
onDialogClose_:function(){_.DS(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(D,C,X){_.lE(D,"yt-commerce-action-init-done");C&&_.cE(this.hostElement,[C,{backend_analytics:X}])}}],
_.Tl.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(D,C){D=this.get("data.nativeFlowEndpoint",C);C=this.get("data.fallbackEndpoint",C);D?_.cE(this.hostElement,[D]):C&&_.lE(this.hostElement,"yt-navigate",{endpoint:C})}}],
tHt.YtCancelRecurrenceBehavior,Yow.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 D=this;BF1(this,function(C,X,c){return D.handleYPCEndpoint(C,X,c)});
this.ypcRegisterActionMapJobId_=_.Zo(_.qX,function(){D.registerActionMap(D.buyFlowActionMap_)})},
detached:function(){var D=this;_.qX.cancelJob(this.ypcRegisterActionMapJobId_);_.Zo(_.qX,function(){D.unregisterActionMap(D.buyFlowActionMap_)})},
handleYPCEndpoint:function(D,C,X){var c=C.ypcGetCartEndpoint;if(c){_.Lt("commerce_transaction");var W=c.gtmId;W&&_.lP(W);(c=c.gtmData)&&_.De(c)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",C)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(D,C),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",C)!=null?(this.handleYPCFixInstrumentEndpoint_(D,C),!0):C.ypcPauseSubscriptionCommand?(g1G(this.hostElement,D,C,X),
!0):C.ypcResumeSubscriptionCommand?(OW1(this.hostElement,D,C),!0):C.getPaymentInstrumentsParamsCommand?(pFP(this.hostElement,D,C),!0):C.ypcHandleTransactionEndpoint?(o1U(this.hostElement,D,C,X),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(D,C){var X=this;_.sp("ttcr",void 0,"commerce_transaction");C=C.ypcGetCartEndpoint;var c=C.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,W=c.encryptedPurchaseParams,p=c.serializedTransactionFlowLoggingParams,g=c.serializedPaymentsClientParams,a=this.createGetCartResponseFromParams_(c,C.offerParams,p);this.changeButtonState(D,!0);_.ZZ(this.openWalletDialog(D,W,c.ypcLogWalletAnalyticDataEndpoint,p,function(){X.changeButtonState(D,!1)},function(){X.changeButtonState(D,
!1)},g).then(function(O){return X.handleBuyFlowCompleteCallback_(D,a,O)},function(){return X.handleOnLoadError(a)}).then(function(O){return void X.handlePostPurchaseSuccess_(D,a,O)},function(O){return void X.handlePostPurchaseError_(O)}),function(){X.changeButtonState(D,!1);
D instanceof Element&&_.lE(D,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(D,C,X){var c=D.completeTransactionEndpoint,W=D.handleTransactionEndpoint;C={data:{offerParams:window.btoa(C),serializedTransactionFlowLoggingParams:X}};W?C.data.handleTransactionEndpoint=W:C.data.completeTransactionEndpoint=c;D.onCartDismissCommand&&(C.data.onCartDismissCommand=D.onCartDismissCommand);return C},
onGetCartServiceRequestCompleted_:function(D,C){var X=this,c=D.target;if(C&&C.data&&C.data.messageRenderer)_.ZT(this.hostElement),this.handleMessageRenderer_(C.data.messageRenderer),this.changeButtonState(c,!1);else{var W=this.get("data.encryptedPurchaseParams",C),p=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",C),g=this.get("data.ypcLogWalletAnalyticDataEndpoint",C),a=this.get("data.serializedPaymentsClientParams",C),O=this.getLoggingParams_(C);if(O||W||p)D.stopPropagation(),_.sp("ttcr",
void 0,"commerce_transaction"),W||_.ZT(this.hostElement),this.changeButtonState(c,!1),p?_.DS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.q6("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:p}}},this]):W&&(this.changeButtonState(c,!0),D=null,D=this.openWalletDialog(c,W,g,O,function(){_.ZT(X.hostElement);X.changeButtonState(c,!1)},function(){_.ZT(X.hostElement);
X.changeButtonState(c,!1)},a),_.ZZ(D.then(function(P){return X.handleBuyFlowCompleteCallback_(c,C,P)},function(){return X.handleOnLoadError(C)}).then(function(P){return X.handlePostPurchaseSuccess_(c,C,P)},function(P){return X.handlePostPurchaseError_(P)}),function(){X.changeButtonState(c,!1);
_.lE(c,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(D,C){C&&C.endpoint&&C.endpoint.ypcGetCartEndpoint&&!C.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",C.endpoint.ypcGetCartEndpoint)&&_.o7(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",C.endpoint.ypcGetCartEndpoint)],D.target),_.F1(this.hostElement),this.changeButtonState(D.target,!0))},
onServiceRequestError_:function(D,C){if(C&&C.params&&C.params.length){C=_.U(C.params);for(var X=C.next();!X.done;X=C.next())if((X=X.value)&&X.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",X.ypcGetCartEndpoint)&&_.o7(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",X.ypcGetCartEndpoint)],D.target);_.ZT(this.hostElement);this.changeButtonState(D.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(D,C,X){var c=X.integratorData;return c==null||c===""||X.error!=null?(c=this.getLoggingParams_(C),String(X.error)==="-1"?(C.data.onCartDismissCommand&&_.o7(this.hostElement,[C.data.onCartDismissCommand],D),_.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",c,!0))):_.x7(new pw("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",c))):C.data.handleTransactionEndpoint?W2X(this.hostElement,C.data.handleTransactionEndpoint,{payments_payload:c,funds_guarantee_callback_client_data:X.integratorClientCallbackData}):
this.completeTransaction(C,X)},
handlePostPurchaseSuccess_:function(D,C,X){C=X.data;var c=!1,W,p;if(C&&((W=C.command)==null?0:(p=W.commandExecutorCommand)==null?0:p.commands)){var g,a;W=(g=C.command)==null?void 0:(a=g.commandExecutorCommand)==null?void 0:a.commands;for(g=0;g<W.length;g++)if(_.r(W[g],_.IXk)){c=!0;break}}c||(C&&C.gtmDatas&&C.gtmDatas.length?_.De(C.gtmDatas[0]):_.De('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));X.data&&X.data.actions&&(C=T1p(X.data.actions),X=HR3(X.data.actions),C.length&&
_.cE(this.hostElement,C),X.length&&_.o7(this.hostElement,X,D))},
handlePostPurchaseError_:function(D){D&&D.payload&&D.payload.isUserDismiss||_.MN(Error("Yl"))},
handleOnLoadError:function(D){D=this.getLoggingParams_(D);return _.x7(new pw("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",D))},
getLoggingParams_:function(D){return this.get("data.serializedTransactionFlowLoggingParams",D)},
handleMessageRenderer_:function(D){var C=_.z4(D,"renderer"),X=_.q6("openPopupConfig");C==="confirmDialogRenderer"&&X&&_.DS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:X.popupTypeMap[C],popup:D}},this])},
handleYPCFixInstrumentEndpoint_:function(D,C){var X=this,c=C.ypcFixInstrumentEndpoint;C=c.encryptedFixInstrumentParameters;this.logFixFopEvent_(c,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(D,!0);this.openFixFlowDialog(C,function(W,p){X.onFixFlowCompleteCallback_(c,W,p)},function(){return X.changeButtonState(D,!1)},function(){X.changeButtonState(D,!1);
X.logFixFopEvent_(c,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(D,C,X){var c=_.Df("payments.business.integration.scenario.FixInstrument");if(C==c.IntegratorCallbackType.ON_COMPLETE){C="FIX_FOP_EVENT_TYPE_CANCEL";var W=null;X.error!=null?X.error!=c.OnCompleteCallbackError.USER_CANCELLED&&(_.o7(this.hostElement,[D.errorAction],this.hostElement),C="FIX_FOP_EVENT_TYPE_FAILURE",W="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.o7(this.hostElement,[D.successAction],this.hostElement),C="FIX_FOP_EVENT_TYPE_SUCCESS");_.o7(this.hostElement,[D.onFinishAction],
this.hostElement);this.logFixFopEvent_(D,C,W)}},
logFixFopEvent_:function(D,C,X){(D=D.serializedFixFopLoggingParams)?(C={eventType:C,serializedFixFopLoggingParams:D},X!=null&&(C.errorType=X),_.zu("fixFopFlow",C),_.je()):_.MN(Error("Zl"))},
changeButtonState:function(D,C){_.b("enable_ypc_spinners")&&D&&(D.is==="yt-button-renderer"||D.is==="ytd-button-renderer")&&(D.disabled=C)}}];var nWt=function(D){this.JSC$33177_clientRoot=D;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Pa6,"yt-feedback-dialog-requested":A3U,"yt-signal-action-help":$$t,"yt-signal-action-send-feedback":v1G,"yt-send-feedback-action":kgk,"yt-user-feedback-endpoint":unN};_.p2(_.Wf.getInstance(),this.feedbackCollectorActionMap,this.JSC$33177_clientRoot)},wUo;var Fck=function(D){this.JSC$33182_clientRoot=D;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":QbX.bind(null,this.JSC$33182_clientRoot),"yt-signal-action-delete-all-downloads":bWp,"yt-signal-action-delete-download":r3p,"yt-signal-action-delete-playlist-download":hTG,"yt-signal-action-install-pwa":E1U,"yt-signal-action-refresh-downloads":m$G,"yt-offline-video-endpoint":NkG,"yt-offline-playlist-endpoint":y33,"yt-update-local-app-setting-command":wFp,"yt-offline-orchestration-action-command":ZWG,
"yt-signal-action-undo-delete-download":L2o,"yt-local-watch-history-command":TkX,"yt-signal-action-mark-download-to-mobile-edu-shown":J3P};_.p2(_.Wf.getInstance(),this.downloadManagerActionMap,this.JSC$33182_clientRoot);_.Gh.instance=new _.Gh},ZBU;var hM=function(){var D=_.w.apply(this,arguments)||this;D.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_"};D.remoteApi_=null;return D};
_.h(hM,_.w);_.S=hM.prototype;
_.S.ready=function(){_.b("polymer_enable_mdx")&&(B1t({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.b("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.b("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.b("enable_cast_short_lived_lounge_token")}),_.bw("yt-remote-connection-change",this.handleConnectionChange_,this),_.bw("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=myo())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.S.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.S.handleConnectionChange_=function(D){(this.mdxConnected=D)?(D=KXp(),!D&&o5X()&&WXt()&&(D={key:"cast-selector-receiver",name:WXt()}),D=D.name):D=null;this.receiverName=D;_.Ue(this.remoteApi_);(this.remoteApi_=myo())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.S.handleReceiverAvailabilityChange_=function(){var D=ruY();o5X()&&_.KH("yt-remote-cast-available")&&D.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=D.length>0};
_.S.handleRemoteQueueChange_=function(){var D=this.currentVideoId_,C=this.currentListId_,X=sl(this.remoteApi_);this.currentVideoId_=X.videoId;this.currentListId_=X.listId;this.currentVideoId_&&_.DS(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.b("polymer_enable_mdx_queue")?this.currentListId_:null,D,C])};
_.S.handleAddToQueueAction_=function(D){D=_.r(D,V0N);this.remoteApi_&&(D.videoId?this.remoteApi_.addVideo(D.videoId):D.playlistId&&this.remoteApi_.addPlaylist(D.playlistId))};
_.S.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.S.handleInsertInQueueAction_=function(D){D=_.r(D,TuG);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$20344_insertVideo(D.videoId)};
_.S.handleRemoveFromQueueAction_=function(D){D=_.r(D,H61);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$20344_removeVideo(D.videoId)};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],hM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.z("design:type",Object)],hM.prototype,"appId",void 0);_.V([_.n(),_.z("design:type",Boolean)],hM.prototype,"mdxConnected",void 0);_.V([_.n(),_.z("design:type",Boolean)],hM.prototype,"receiverAvailable",void 0);_.V([_.n(),_.z("design:type",Object)],hM.prototype,"receiverName",void 0);_.V([_.n(),_.z("design:type",Object)],hM.prototype,"currentVideoId_",void 0);
_.V([_.n(),_.z("design:type",Object)],hM.prototype,"currentListId_",void 0);_.V([_.Yn({is:"yt-mdx-manager",disableElementRegistration:!0})],hM);_.G(hM,"yt-mdx-manager",void 0,{mode:2});var G9X;var VH6;var xK=function(){var D=_.w.apply(this,arguments)||this;D.APP_IDS={ytr:3,ytm:5};D.JSC$21578_timeoutId_=0;D.actionMap={"yt-open-create-family-dialog":"open"};return D};
_.h(xK,_.w);_.S=xK.prototype;_.S.created=function(){wPG(2200)};
_.S.detached=function(){this.observer_&&this.observer_.disconnect()};
_.S.open=function(D,C){var X=this,c=D.serializedYpcFamilyCreateLoggingParams;this.JSC$21578_timeoutId_=setTimeout(this.abort_.bind(this,D.postFlowErrorEndpoint,c),3E4);C&&(this.onReadyCallback_=C);var W=_.SY(this.hostElement).querySelector("#unicorn-iframe");c&&c&&out("ypcFamilyCreateFlowStarted",c);_.UUJ("family_creation",function(){var p=_.Df("gapi.family_creation.render");_.Df("gapi.config.update")("iframes/family_creation/url",X.getFamilyCreationUrlWithUnicornParams_());var g=3;D.appId&&D.appId in
X.APP_IDS&&(g=X.APP_IDS[D.appId]);g={authUser:_.q6("SESSION_INDEX")||0,clientId:g,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.q6("HL"),initialflow:[4,5,6,7],m:X.isMobile?1:0,onFlowComplete:X.onUnicornFlowComplete_.bind(X,D.postFlowSuccessEndpoint,c),onError:X.onUnicornFlowError_.bind(X,D.postFlowErrorEndpoint,c),onReady:X.onUnicornFlowReady_.bind(X,D.referencePcidParams)};p(W,g)})};
_.S.close=function(){_.SY(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.S.onUnicornFlowComplete_=function(D,C){this.close();C&&C&&out("ypcFamilyCreateFlowSucceeded",C);_.lE(this.hostElement,"yt-navigate",{endpoint:D})};
_.S.onUnicornFlowError_=function(D,C){this.close();C&&out("ypcFamilyCreateFlowCancelled",C);_.lE(this.hostElement,"yt-navigate",{endpoint:D})};
_.S.onUnicornFlowReady_=function(D){var C=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();D&&_.Df("gapi.family_creation.setConfig")(0,D);this.observer_=new MutationObserver(function(){_.SY(C.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.SY(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.SY(this.hostElement).querySelector("#dialog").open()};
_.S.getFamilyCreationUrlWithUnicornParams_=function(){return _.q6("YTR_FAMILY_CREATION_URL")};
_.S.getCurrentUrl_=function(){return document.location.href};
_.S.abort_=function(D,C){this.clearTimeout_();this.onUnicornFlowError_(D,C)};
_.S.clearTimeout_=function(){clearTimeout(this.JSC$21578_timeoutId_)};
_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],xK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],xK.prototype,"isMobile",void 0);_.V([_.n(),_.z("design:type",Object)],xK.prototype,"onReadyCallback_",void 0);_.V([_.n(),_.z("design:type",Object)],xK.prototype,"observer_",void 0);_.V([_.Yn({is:"yt-create-family-dialog",disableElementRegistration:!0})],xK);
_.G(xK,"yt-create-family-dialog",function(){if(VH6===void 0){var D=document.createElement("template");_.x(D,'\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');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);var C=D.content,X=C.insertBefore;G9X===void 0&&(G9X=document.createElement("template"));var c=G9X;X.call(C,c.content.cloneNode(!0),D.content.firstChild);VH6=D}D=VH6;return D},{mode:2});var TKX;var HBX;var LJ=function(){var D=_.w.apply(this,arguments)||this;D.STEP=1;D.BLOCK_ON=80;D.MIN_PROGESS=0;D.MAX_PROGESS=100;return D};
_.h(LJ,_.w);_.S=LJ.prototype;_.S.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.S.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));_.iX().addProvider({provide:$2P,useValue:this})};
_.S.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.S.finish=function(){var D=this;this.progress=this.MAX_PROGESS;zTU(function(){D.progress==D.MAX_PROGESS&&(D.hostElement.hidden=!0)})};
_.S.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.$a.Object.defineProperties(LJ.prototype,{progress:{configurable:!0,enumerable:!0,set:function(D){this.progress_=D;var C="scaleX("+D/this.MAX_PROGESS+")",X=_.SY(this.hostElement).querySelector("#progress").style;X.transform=C;X.webkitTransform=C;this.hostElement.setAttribute("aria-valuenow",String(D))},
get:function(){return this.progress_}}});
_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],LJ.prototype,"ytComponentBehavior",void 0);_.V([_.Yn({is:"yt-page-navigation-progress",disableElementRegistration:!0})],LJ);
_.G(LJ,"yt-page-navigation-progress",function(){if(HBX===void 0){var D=document.createElement("template");_.x(D,'\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');D.content.insertBefore(_.M().content.cloneNode(!0),
D.content.firstChild);var C=D.content,X=C.insertBefore;TKX===void 0&&(TKX=document.createElement("template"));var c=TKX;X.call(C,c.content.cloneNode(!0),D.content.firstChild);HBX=D}D=HBX;return D},{mode:2});var JQG={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"},zRt={"font-size":"12px","font-style":"italic"},jTG={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.fZk=function(){return _.I(function(D){_.t_(D)})};var MHp=_.F(function(D){var C=function(){return D.data().subtext},X={};
return _.A("snackbar-view-model",{class:_.g$("snackbarViewModelHost",D.className)},_.A("div",{class:_.g$("snackbarViewModelEngagementBarWrapper",D.className)},_.A(_.v,{cond:function(){return D.data().image},
then:function(c){return _.A(_.M_,{data:c,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.A(_.v,{cond:function(){return D.data().imageContent},
then:function(){return _.A("div",{class:"snackbarViewModelAvatarContainer"},_.A(_.BX,{data:function(){return D.data().imageContent}},{decoratedAvatarViewModel:_.Og}))}}),_.A("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.A("div",{class:_.g$((X.snackbarViewModelTitle=!0,X.snackbarViewModelTitleWithSubtext=C,X))},_.A(_.QG,{text:function(){return D.data().text}})),_.A(_.v,{cond:C,
then:function(){return _.A("div",{class:"snackbarViewModelSubtext"},_.A(_.QG,{text:function(){return C()}}))}})),_.A(_.v,{cond:function(){return D.data().buttons},
then:function(){return _.A("div",{class:"snackbarViewModelButtonClassWrapper"},_.A(_.BX,{data:function(){return D.data().buttons}},{buttonViewModel:function(c){return _.A(_.Ze,{data:c.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:D.target})}}))}})))},"wk");_.CI(_.F(function(){function D(y,J,T){K(y);t(T);Q("in");k(!0);C(y,J);g=setTimeout(function(){X()},J)}
function C(y,J){var T,H=(T=y.text)==null?void 0:T.content;y=_.EN(y.rendererContext);H&&(J={label:H,command:y,durationMs:J},_.iX().resolve(_.yH).enqueue(J))}
function X(y){Q("out");y&&clearTimeout(g)}
function c(){X(!0)}
function W(y){if(y){var J=y.snackbarViewModel,T=y.durationMs,H=y.target;T||(T=3E3);J&&(y=_.iX().resolve(_.vK(_.eW)))&&y.enqueue({isOpened:P,open:function(){D(J,T,H)},
close:X},0)}}
var p=_.IX("snackbar-container"),g=void 0,a=_.U(_.Li(!1,void 0,"mDc5N")),O=a.next().value;a=a.next().value;var P=O,k=a;O=_.U(_.Li("out",void 0,"FpOs5e"));var u=O.next().value,Q=O.next().value;O=_.U(_.Li(void 0,void 0,"jIDRob"));var B=O.next().value,K=O.next().value;O=_.U(_.Li(void 0,void 0,"kOA3Mb"));var L=O.next().value,t=O.next().value,Y=_.I_(function(){if(u()==="out"){k(!1);K(void 0);t(void 0);var y=_.iX().resolve(_.vK(_.eW));y&&R8w(y,0)}});
_.JU(function(){var y=_.iX().resolve(_.vK(_.NVG));y&&(y.showSnackbarFn=W,y.closeSnackbarFn=c)});
return _.A("snackbar-container",{class:"ytSnackbarContainerHost",el:p},_.A(_.v,{cond:function(){return P()&&!!B()},
then:function(){var y={};return _.A("div",{class:_.g$("ytSnackbarContainerSnackbarContainer",(y.ytSnackbarContainerMobile=!1,y.ytSnackbarContainerPivotBar=function(){var J;return!((J=_.iX().resolve(_.vK(_.YFN)))==null||!J())},y.ytSnackbarContainerOpened=function(){return P()&&u()==="in"},y.ytSnackbarContainerClosed=function(){return P()&&u()==="out"},y)),
"on:animationend":Y},_.A(MHp,{data:function(){return B()},
target:function(){return L()}}))}}))},"xk"),"snackbar-container");_.CI(_.pSJ,"yt-tooltip");var qot=_.k33.ephemeralActionSelector;_.CI(_.F(function(){var D=_.uu(qot);return _.A("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var C;return(C=D())==null?void 0:C.announcement})},"yk"),"yt-ephemeral-actions");var vx6=new Map;var E7w=function(D,C){var X=this;this.handleError=D;this.logEventInternal=C;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){X.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
E7w.prototype.logError=function(D){this.handleError(D)};
E7w.prototype.logEvent=function(D,C){switch(D){case "IDB_DATA_CORRUPTED":_.b("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",C);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",C);break;case "IS_SUPPORTED_COMPLETED":_.b("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",C);break;case "QUOTA_EXCEEDED":fjt(this,C);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",C);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":D=Object.assign({},C,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",D)}};
var fjt=function(D,C){_.wb.getInstance().estimate().then(function(X){X=Object.assign({},C,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:kP3(X==null?void 0:X.usage),deviceStorageQuotaMbytes:kP3(X==null?void 0:X.quota)});D.logEventInternal("idbQuotaExceeded",X)})};var dZG=_.F(function(D){var C=_.aX("yt-draggable"),X=D.onDrag,c=D.onDragStart,W=D.onDragEnd,p=_.Ro(D,{allowClicks:!1,dragThreshold:5}),g=p.dragThreshold,a=p.allowClicks;D=p.children;p=p.className;var O=void 0,P=void 0,k=new _.VI(0,0),u=!1;_.JU(function(){O=new _.dt(C.value);P=new _.ka(B);Q(O,P);if(a()){_.FFf(O,g());var L;(L=C.value)==null||L.addEventListener("click",K,{capture:!0})}_.z3(function(){var t;(t=O)==null||t.dispose();if(a()){var Y;(Y=C.value)==null||Y.removeEventListener("click",K,{capture:!0})}})});
var Q=function(L,t){_.Kb(L,"earlycancel",function(){a()&&(u=!1)});
_.Kb(L,"start",function(Y){c==null||c(Y);Y.defaultPrevented||a()&&(u=!0)});
_.Kb(L,"beforedrag",function(Y){O&&P&&(Y.preventDefault(),k=new _.VI(Y.clientX-O.startX,Y.clientY-O.startY),P.start())});
_.Kb(L,"end",function(){t.stop();W==null||W();k=new _.VI(0,0)})},B=function(){k&&X(k)},K=function(L){u&&(u=!1,L.stopPropagation(),L.preventDefault())};
return _.A("yt-draggable",{el:C,class:_.g$("ytDraggableComponentHost",p)},D)},"zk");var RR3=_.F(function(D){var C=_.U(_.Li(0,void 0,"Qf0tbc")),X=C.next().value,c=C.next().value;C=function(W){var p={},g={};return _.A(dZG,{className:_.g$("ytdMiniplayerComponentResizer",(p.ytdMiniplayerComponentResizerDisabled=function(){return W===D.horizontalAlignment()||W===D.verticalAlignment()},p.ytdMiniplayerComponentResizerNorth=W==="north",p.ytdMiniplayerComponentResizerEast=W==="east",p.ytdMiniplayerComponentResizerSouth=W==="south",p.ytdMiniplayerComponentResizerWest=W==="west",p)),
onDragStart:function(){c(D.currentMiniplayerSize());if(D.onResizeStart)D.onResizeStart()},
onDrag:function(a){W!=="north"&&W!=="west"||a.scale(-1);var O;a=(O=W==="north"||W==="south")?a.y:a.x;var P=D.currentAspectRatio();O&&P>=1?a*=P:!O&&P<1&&(a/=P);O=a;D.onResize(X()+O)}},_.A("div",{class:_.g$("ytdMiniplayerComponentResizerCorner",(g.ytdMiniplayerComponentResizerNorthCorner=W==="north",g.ytdMiniplayerComponentResizerEastCorner=W==="east",g.ytdMiniplayerComponentResizerSouthCorner=W==="south",g.ytdMiniplayerComponentResizerWestCorner=W==="west",g))}))};
return _.A("div",{class:"ytdMiniplayerComponentResizers"},C("north"),C("east"),C("south"),C("west"))},"Ak");var ljt=16/9;_.CI(_.F(function(){var D=_.aX("ytd-miniplayer"),C=_.U(_.Li(new _.me(NaN,NaN),void 0,"NHaFyc")),X=C.next().value,c=C.next().value;C=_.U(_.Li(!1,void 0,"a0rwG"));var W=C.next().value,p=C.next().value;C=_.U(_.Li(!1,void 0,"f1jSeb"));var g=C.next().value,a=C.next().value;C=_.U(_.Li(!1,void 0,"JojXKc"));var O=C.next().value,P=C.next().value;C=_.U(_.Li(!1,void 0,"FjS8Db"));var k=C.next().value,u=C.next().value;C=_.U(_.Li(!1,void 0,"z5WG9e"));var Q=C.next().value,B=C.next().value;C=_.U(_.Li(!1,void 0,"eUzZd"));
var K=C.next().value,L=C.next().value;C=_.U(_.Li(ljt,void 0,"XsBIy"));var t=C.next().value,Y=C.next().value,y=_.U(_.Li(!1,void 0,"FJSvse"));C=y.next().value;var J=y.next().value;y=_.U(_.Li(!1,void 0,"VDUFL"));var T=y.next().value,H=y.next().value;y=_.U(_.Li(void 0,void 0,"nFeh4b"));var q=y.next().value,R=y.next().value;y=_.U(_.Li(al()?"west":"east",void 0,"T7co7c"));var ph=y.next().value,Om=y.next().value;y=_.U(_.Li("south",void 0,"QDUsLb"));var xj=y.next().value,Bo=y.next().value;y=_.U(_.Li(400,
void 0,"F7Vdze"));var r5=y.next().value,Fd=y.next().value,GJ=_.iX().resolve(_.wB).miniplayerPropSignalMap[0],jZ=GJ.data,Ac=GJ.externalPlaylistData;y=GJ.toastData;var ib=GJ.playabilityStatus,d5=GJ.isReadyToResume,ub=GJ.isDisabled,L5=GJ.watchWhile,Nf=GJ.playerVe,xt=GJ.expandVe,u6=GJ.closeVe,g5=GJ.readyToResumeVe,oq=GJ.readyToResumeCloseVe,rx=GJ.repositionVe,Rq=GJ.resizeVe;GJ=_.U(_.d2(d5));var K5=GJ.next().value,C1=GJ.next().value,LK=_.uu(_.TU.persistentPanelVisibleSelector),Mf=!1,vM=!1,kg;_.JU(function(){c(_.ij());
D.value.addEventListener("animationend",function(HM){HM.target===D.value&&(B(!1),L(!1))});
KN1(D.value)});
_.g0("yt-window-resized",function(HM){HM&&c(HM)});
var p1=function(){kg&&Y(kg.getVideoAspectRatio())},Rm=function(){if(kg){var HM=kg.getPlayerState()===1;
K5()&&HM&&C1(!1)}},ow=function(){var HM=xt();
if(HM){var mG=_.LN(3);mG&&_.HE(mG,HM)}},iU=function(){var HM=u6(),mG=oq();
HM&&_.HE(_.LN(3),HM);d5()&&mG&&_.HE(_.LN(3),mG)};
_.g0("yt-activate-miniplayer",function(HM){var mG;return _.I(function(UX){if(UX.nextAddress==1)return W()?UX.return():UX.yield((mG=_.iX().resolve(_.wB).getPlayerElement())==null?void 0:mG.getPlayerPromise(),2);kg=UX.yieldResult;if(!kg)return UX.return();!T()&&_.b("kevlar_watch_while_v2")&&(Bo(HM&&!_.b("kevlar_watch_while_bottom_align")?"north":"south"),Om(al()?"west":"east"));var bc=kg;bc.addEventListener("onVideoDataChange",p1);bc.addEventListener("onStateChange",Rm);bc.addEventListener("onExpandMiniplayer",
ow);bc.addEventListener("onCloseMiniplayer",iU);Y(kg.getVideoAspectRatio());p(!0);rsX()||B(!0);_.t_(UX)})});
_.g0("yt-deactivate-miniplayer",function(HM,mG){return _.I(function(UX){if(!W())return UX.return();p(!1);C1(!1);L(HM);u(!1);a(!1);if(kg){var bc=kg;bc.removeEventListener("onVideoDataChange",p1);bc.removeEventListener("onStateChange",Rm);bc.removeEventListener("onExpandMiniplayer",ow);bc.removeEventListener("onCloseMiniplayer",iU)}rsX()||mG?mG&&B(!1):B(!0);_.t_(UX)})});
var oH=function(){return!(L5()&&_.b("kevlar_watch_while_modern"))},QU=function(){var HM;
return!((HM=Ac())==null||!HM.contents)},jN=function(){var HM=r5();
var mG=X();mG=Math.min(Math.min(mG.width,mG.height)-32,720);var UX=t(),bc=oH(),ro=QU()&&g(),fy=Math.min(HM,mG);HM=new _.me(192,bc?116:192);UX=new _.me(ro?ljt:UX,1);fy=new _.me(fy,bc?fy-76:fy);fy=UX.aspectRatio()>fy.aspectRatio()?fy.width/UX.width:fy.height/UX.height;UX=UX.scale(fy);HM.width<=UX.width&&HM.height<=UX.height||(HM=UX.aspectRatio()<=HM.aspectRatio()?HM.width/UX.width:HM.height/UX.height,UX.scale(HM),UX.width=Math.min(UX.width,mG),UX.height=Math.min(UX.height,mG));return new _.me(UX.width,
_.N8(192,UX.height+sJt(bc,ro),720))},Oe=function(){var HM=jN(),mG=oH(),UX=QU()&&g();
return new _.me(HM.width,HM.height-sJt(mG,UX))},Bd=function(){var HM=function(mG){mG.target===D.value&&k()&&(u(!1),D.value.removeEventListener("transitionend",HM))};
rsX()||(D.value.addEventListener("transitionend",HM),u(!0));a(!g())};
_.Jw(function(){var HM=Nf(),mG=_.LN(3),UX=_.xr(3);if(mG&&UX&&HM){_.F_(mG,UX,HM);UX=rx();var bc=Rq(),ro=xt(),fy=u6(),We=oq();ro&&fy&&We&&(_.ZS(mG,HM,[ro,fy,We]),_.VP(mG,[ro,fy]));UX&&bc&&_.ZS(mG,HM,[UX,bc])}},"UBpUDd");
_.Jw(function(){var HM=g5();if(HM){var mG=_.LN(0),UX=_.xr(0);mG&&UX&&(_.F_(mG,UX,HM),_.VP(mG,[HM]))}},"fQpBzb");
GJ={};return _.A("ytd-miniplayer",{el:D,class:_.g$("ytdMiniplayerComponentHost",(GJ.ytdMiniplayerComponentVisible=function(){return(W()||Q())&&!(L5()&&_.b("kevlar_watch_while_counterfactual"))},GJ.ytdMiniplayerComponentAnimatingSnap=O,GJ.ytdMiniplayerComponentAnimatingPlaylistExpand=k,GJ.ytdMiniplayerComponentAnimatingFade=Q,GJ),function(){if(Q()){var HM=xj();
var mG=W(),UX=K();HM=mG?HM==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":UX?HM==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":HM==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else HM="";return HM}),
style:_.P0({top:function(){return xj()==="north"?"16px":""},
right:function(){var HM=ph(),mG=LK();mG=(mG===void 0?0:mG)&&!al()?400:0;return HM==="east"?16+mG+"px":""},
bottom:function(){return xj()==="south"?"16px":""},
left:function(){var HM=ph(),mG=LK();mG=(mG===void 0?0:mG)&&al()?400:0;return HM==="west"?16+mG+"px":""},
width:function(){return jN().width+"px"},
height:function(){return jN().height+"px"},
transform:function(){var HM=q();return HM?"translate("+HM.x+"px, "+HM.y+"px)":""}})},_.A("div",{class:"ytdMiniplayerComponentContent"},_.A(dZG,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(HM){var mG=LNw(ph(),xj(),X(),jN(),q()),UX=Oe();Math.abs(HM.clientY-(mG.y+UX.height))>15?(J(!0),HM=_.LN(3),mG=rx(),Mf||(Mf=!0,HM&&mG&&_.VP(HM,[mG])),HM&&mG&&_.HE(HM,mG)):HM.preventDefault()},
onDrag:function(HM){R(HM)},
onDragEnd:function(){var HM=hVw(LNw(ph(),xj(),X(),jN(),q()),X(),jN()),mG=xqP(ph(),xj(),X(),jN(),LK()),UX=xqP(HM.horizontalAlignment,HM.verticalAlignment,X(),jN(),LK());UX=new _.VI(UX.x-mG.x,UX.y-mG.y);var bc;mG=mG.y+(((bc=q())==null?void 0:bc.y)||0)+jN().height/2;var ro=function(){ph()===HM.horizontalAlignment&&xj()===HM.verticalAlignment||H(!0);Om(HM.horizontalAlignment);Bo(HM.verticalAlignment);R(void 0)},fy=function(We){We.target===D.value&&O()&&(P(!1),ro(),D.value.removeEventListener("transitionend",
fy))};
J(!1);xj()==="south"&&mG>X().height?(ro(),_.iX().resolve(_.wB).close()):(D.value.addEventListener("transitionend",fy),P(!0),R(UX))}},_.A(_.v,{cond:W,
then:function(){return _.A(_.QpN,{isDisabled:ub,playabilityStatus:ib,size:Oe})}}),_.A(_.v,{cond:oH,
then:function(){return _.A(_.kb1,{isReadyToResume:K5,data:jZ,expanded:g,onExpandClick:Bd,playlistData:Ac})}}),_.A(_.v,{cond:C,
then:function(){return _.A("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.A(_.v,{cond:function(){return QU()&&g()||k()},
then:function(){return _.A(_.Nj1,{className:"ytdMiniplayerComponentPlaylistPanel",data:Ac,hideHeaderText:!0,withinMiniplayer:!0})}}),_.A("div",{class:"ytdMiniplayerComponentToast"},_.A(_.BDU,{toastData:y}))),_.A(RR3,{onResize:function(HM){Fd(_.N8(192,HM,720))},
onResizeStart:function(){var HM=_.LN(3),mG=Rq();vM||(vM=!0,HM&&mG&&_.VP(HM,[mG]));HM&&mG&&_.HE(HM,mG)},
currentAspectRatio:t,currentMiniplayerSize:r5,horizontalAlignment:ph,verticalAlignment:xj}))},"Dk"),"ytd-miniplayer",{});var DvP=_.TU.persistentPanelVisibleSelector,sE=function(){var D=_.w.apply(this,arguments)||this;D.tabGesturesIsActive=!1;D.persistentPanelEnabled=_.b("enable_ai_companion");D.hasDelegation=!1;D.isFrostedGlassInitialized=!1;D.frostedGlassExp=_.b("web_frosted_glass");D.hasPendingWatchNavigation=!1;D.mastheadHiddenFocusWithinKillswitch=_.b("web_masthead_hidden_focus_within_killswitch");D.clientOnlyWizTooltipsEnabled=_.b("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
D.scrollAtTop=!0;D.guideScrollTop=0;D.isTheaterModeSession=_.dq("START_IN_THEATER_MODE");D.iMaxTheaterMode=_.b("web_watch_imax_theater_mode");D.isFullWindowSession=_.dq("START_IN_FULL_WINDOW_MODE");D.hasCreateFamilyDialog=!1;D.mastheadHeight=56;D.networkStatusManager=new _.Se;D.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"};D.dynamicActionMap={"yt-run-attestation-command":function(C){var X=_.u71.instance,c=_.r(C,_.K0x);return c?_.b("use_rta_manager_for_async")&&
(_.b("attmusi")&&_.b("attmusi_ue")?window.attmp:v7N())?L0P(X,c,C.clickTrackingParams):x4U(X,c,C.clickTrackingParams):_.x7(Error("qi"))}};
D.isFrostedGlassDisabled=!1;D.isChannelOrPlaylistPage=!1;return D};
_.h(sE,_.w);_.S=sE.prototype;_.S.created=function(){var D=_.iX();_.b("kevlar_clear_duplicate_pref_cookie")&&_.Zo(_.qX,function(){var C=_.Yz.get("PREF");C&&!/f\d=/.test(C)&&(C=_.bX("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=C?"PREF=null;domain="+C+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.b("gzip_gel_with_worker")&&_.on5();_.b("jspb_serialize_with_worker")&&V63();_.b("web_worker_availability_check")&&iVt();_.b("nwl_init_killswitch")||Zbt().then(function(){_.qX.addLowPriorityJob(YGt)});
this.pageManagerAttachedPromise=_.zr();this.ytdAppBehavior.loadDepsPromise=_.Fn([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Al(this.onThrottledScroll,200,this);_.b("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);t6w();RUP=!!_.Df("ytappsettings.initialized");w0k=_.Df("ytappsettings.previousValue");Fl6=_.Df("ytappsettings.previousSnapshotTime");RUP||(RUP=!0,ZIp());GjG();VzG();_.M6("DEFERRED_DETACH",
_.b("kevlar_tuner_should_defer_detach"));_.M6("REUSE_COMPONENTS",!0);_.M6("STAMPER_STABLE_LIST",!0);_.M6("SCHEDULED_LAZY_LIST",!0);_.M6("openPopupConfig",eM3);_.M6("useClickHandler",!0);_.b("kevlar_shell_cleanup")&&_.qX.addLowPriorityJob(xnU.bind(this,_.co.caches));_.dq("IS_SHELL_LOAD")&&_.hZ({shellStartupDurationMs:Math.round((0,_.kh)()-_.QP())});Dqw(this.networkStatusManager);_.b("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",jbt(JQG)),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!",
jbt(zRt)),console.log("%cVisit http://go/join-youtube-web to apply today.",jbt(jTG)));_.FPp(D.resolve(_.NT),1E3)};
_.S.ready=function(){var D=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var C=CuX();C&&!_.b("external_fullscreen_killswitch")&&document.addEventListener(C,this.setFullscreen.bind(this));(C=window.matchMedia("(prefers-color-scheme: dark)"))&&C.addEventListener&&C.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(C=_.iX().resolve(_.vK(_.r5b)))C.subscribe("navigation-start",
function(X){X.destinationPageSubtype==="watch"&&(D.hasPendingWatchNavigation=!0)}),C.subscribe("navigation-end",function(X){X.destinationPageSubtype==="watch"&&(D.hasPendingWatchNavigation=!1)})};
_.S.attached=function(){var D=this;_.uP().processSignal("ci");_.b("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.a6d?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.AT(_.sCd(),"SUCCESS");this.updateIconSet();_.dl(this.guideInnerContent,!1);_.jJ().initVisibilityObserver();this.guideService.guideElement=this.guide;var C=document.createElement("ytd-miniplayer"),X=_.SY(this.hostElement).querySelector("#content");
_.SY(this.hostElement).insertBefore(C,X);_.uP().processSignal("ma");_.iX().resolve(_.wB).init(C);this.persistentPanelEnabled&&_.J9k(_.iX().resolve(_.gu),this.persistentPanelContainer,"APP");_.dq("IS_SHELL_LOAD")&&(X=document.createElement("ytd-network-status-banner"),_.SY(this.hostElement).insertBefore(X,C));_.b("kevlar_right_click_on_lockups")&&_.Af._onCaptureClick&&document.addEventListener("contextmenu",_.Af._onCaptureClick.bind(_.Af),!0);var c=function(){var W=_.L4("yt-page-navigation-progress");
_.SY(D.hostElement).appendChild(W)};
setTimeout(function(){_.uP().parkOrScheduleJob(c,0,"eocs",16)},0);
_.b("service_worker_push_enabled")&&_.Zo(_.qX,cGo);_.p2(_.Wf.getInstance(),this.dynamicActionMap,this.hostElement);_.lE(this.hostElement,"ytd-app-attached");_.uP().processSignal("aa");iI1(this.hostElement);_.$h("gapi.load",_.UUJ);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Zo(_.qX,
function(){var W=document.createElement("ytd-video-preview");_.SY(_.SY(D.hostElement).querySelector("#video-preview")).appendChild(W)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Zo(_.qX,function(){d$G();D.registerWithViewTransitionManager()});
if(_.Zg()&&this.isAppDarkTheme()!==_.wL())this.onDarkModeToggledAction();else C=_.FU()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==C&&(_.b("enable_dark_theme_only_on_shorts")?_.nH(_.b("enable_dark_theme_only_on_shorts_control")?window.location.href:_.gT(window.location.href,{theme:"dark"})):_.fQ(new _.Zf("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(YVG=new NgX(this.hostElement)),ZBU=new Fck(this.hostElement),wUo=new nWt(this.hostElement),Drp=new lq1(this.hostElement)};
_.S.getThemeSettingsToLog=function(){var D=_.FU()==="USER_INTERFACE_THEME_DARK";D=_.Zg()?_.wL()?"os-dark":"os-light":D?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:D,cookiesEnabled:_.nC()}};
_.S.detached=function(){_.RB(this.guideInnerContent);_.qX.cancelJob(Unt);Unt=0;_.qX.cancelJob(OIU);OIU=0;_.ibZ(v_G);v_G.length=0;Alp=_.pwm=null;_.jJ().dispose();_.b("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.U6(_.Wf.getInstance(),YVG.playlistHandlerActionMap,YVG.JSC$32887_clientRoot);_.U6(_.Wf.getInstance(),ZBU.downloadManagerActionMap,ZBU.JSC$33182_clientRoot);_.U6(_.Wf.getInstance(),wUo.feedbackCollectorActionMap,wUo.JSC$33177_clientRoot);
for(var D=_.U(Drp.eventListeners),C=D.next();!C.done;C=D.next()){var X=_.U(C.value);C=X.next().value;X=X.next().value;X=_.U(X);for(var c=X.next();!c.done;c=X.next()){var W=_.U(c.value);c=W.next().value;W=W.next().value;C.removeEventListener(c,W)}}_.U6(_.Wf.getInstance(),Drp.autonavPauseActionMap,Drp.JSC$20526_clientRoot)};
_.S.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.PE().getFlag(186)};
_.S.computeIsInlinePreviewEnabled=function(D,C,X){return!X&&_.mF3({miniplayerIsActive:D,miniplayerPlaybackState:C})};
_.S.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.oI({type:"SET_FROSTED_GLASS_MODE",payload:!_.b("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"}))};
_.S.computeIsFrostedGlassDisabled=function(D,C,X,c){return D||C||X||c&&_.b("web_frosted_glass_disable_watch")};
_.S.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.b("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.S.computeIsHomePage=function(D,C){if(!D||C==null||!C.endpoint)return!1;var X;return((X=_.r(C.endpoint,_.Pl))==null?void 0:X.browseId)==="FEwhat_to_watch"};
_.S.updateIsChannelOrPlaylistPage=function(){if(_.b("web_frosted_glass")){var D,C,X=(C=(D=_.iX().resolve(_.vK(_.lu)))==null?void 0:D.getCurrentPage())==null?void 0:C.pageSubtype;this.isChannelOrPlaylistPage=X?["channel","channels","playlist"].includes(X):!1}};
_.S.scheduleFrostedGlassInitialization=function(){var D=this;_.b("web_frosted_glass")&&_.uP().parkOrScheduleJob(function(){D.isFrostedGlassInitialized=!0},0,_.RD(["eocs",
"cr"]),300)};
_.S.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.OEx(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.oI({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.oI({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.S.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(GIw(!0))};
_.S.onYtSignalActionRequestPersistentStorage=function(){if(!_.b("request_persistent_storage_killswitch")){var D=_.iX().resolve(_.Cqt);D.cachedPersistStatePromise||(D.cachedPersistStatePromise=UiX())}};
_.S.handleYtChannelCreationFormEndpoints=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.S.handleShowEngagementPanelEndpoint=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.S.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(GIw(!1))};
_.S.initIconDefs=function(D,C){var X=document.createElement("iron-iconset-svg");X.name=D;D=document.createElementNS("http://www.w3.org/2000/svg","svg");X.appendChild(D);D.appendChild(C);document.body.appendChild(X);return X};
_.S.onWindowResized=function(){_.DS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var D=_.wR.getInstance();D.documentWidth_=document.body.clientWidth;ls1(D)};
_.S.onWindowScrolled=function(){var D=_.iX().resolve(_.lu).getCurrentPage();if(D!=null&&D.getScrollTop){var C=this.ytdReduxBehavior,X=C.dispatch;D=D.getScrollTop()<=0;X.call(C,_.oI({type:"SET_SCROLL_AT_TOP",payload:D}))}};
_.S.guideIsVisibleButNotPersistentSelectorChanged=function(){var D=_.iX().resolve(_.lu).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=D.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"),
D.setScrollTop(this.guideScrollTop));_.Ct(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.S.getCurrentPageScrollableElementType=function(){var D=_.iX().resolve(_.lu).getCurrentPage();if(D&&D.getPageScrollingElement())return D.getPageScrollingElement().nodeName};
_.S.observeGuideVisibility=function(){var D=_.wR.getInstance(),C=this.miniGuideVisible;D.guidePersistentAndVisible_=this.guidePersistentAndVisible;D.miniGuideVisible_=C;ls1(D)};
_.S.observePersistentPanelVisibility=function(){var D=_.wR.getInstance();D.persistentPanelVisible_=this.persistentPanelVisible;ls1(D)};
_.S.handleEduDismissAction=function(D){D&&D.eduDismissAction&&(_.DS(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.vef.getInstance(),_.y4.set(D.eduDismissAction.key+"-dismissed",!0))};
_.S.handleEduImpressionAction=function(D){if(D&&D.eduImpressionAction){var C=_.vef.getInstance();D=D.eduImpressionAction.key;C.JSC$13347_eduDisplayedThisLoad_[_.$2c[D].setKey||D]=!0;_.y4.set(D+"-impression",parseInt(_.y4.get(D+"-impression")||0,10)+1)}};
_.S.onYtSignalActionConfirmMentionsEdu=function(){_.DS(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Zp.getInstance();_.Fj.set("edu-dismissed",!0)};
_.S.onYtSignalActionRecordMentionsEduImpression=function(){_.Zp.getInstance();var D=_.Fj.set,C=parseInt(_.Fj.get("edu-impressions"),10);D.call(_.Fj,"edu-impressions",(isFinite(C)?C:0)+1)};
_.S.onYtPageManagerAttached=function(D){var C;((C=_.qz(D))==null?void 0:C.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.S.onInvokeInstrumentManagerAction=function(D,C){bVY(C,D)};
_.S.updateIconSet=function(){var D=this.hostElement.querySelector("#masthead");if(D){var C=_.Us(D),X=C.querySelector("g#yt-logo-updated");X&&(D=document.createElementNS("http://www.w3.org/2000/svg","defs"),D.appendChild(X.cloneNode(!0)),(C=C.querySelector("g#yt-logo-red-updated"))&&D.appendChild(C.cloneNode(!0)),this.initIconDefs("yt-logos-ext",D))}};
_.S.updateMastheadData=function(){var D=this,C,X,c,W,p;return _.I(function(g){if(g.nextAddress==1){C=D.data;X=D.hostElement.querySelector("#masthead");if(!X)return g.return();_.A0(D,function(){X.data=D.topbarData});
if(!D.get("response.topbar",C)||D.get("response.topbar.responseContext.maxAgeSeconds",C)===0)return g.jumpTo(0);if(c=_.iX().resolve(_.At))return g.yield(c(),6);W=_.iX().resolve(_.Tc);return g.yield(W.put("service:topbar:fallback",new _.H9({innertubeResponse:D.get("response.topbar",C)})),0)}return(p=g.yieldResult)?g.yield(p.put("service:topbar:fallback",new _.H9({innertubeResponse:D.get("response.topbar",C)})),0):g.jumpTo(0)})};
_.S.computeTopbarData=function(D){if(!D)return null;var C;return this.isShortsPage&&this.topbarData&&!_.r((C=D.response)==null?void 0:C.topbar,mlY)?this.topbarData:D.response&&"topbar"in D.response?_.r(D.response.topbar,mlY)||null:null};
_.S.onSetTheaterModeEnabled=function(D,C){this.isTheaterModeSession=C.enabled;this.setTheaterModeStyles(C.enabled)};
_.S.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.S.onDarkModeToggledAction=function(){var D=_.mC(window.location.href);if(!_.gAR(D)){(D=!!_.UY(window.location.href).themeRefresh)&&_.fQ(new _.Zf("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!D){ZIp();D={themeRefresh:1};var C=_.iX().resolve(_.lu);if(C.isOnWatch()){var X,c;C=((X=C.getPlayerFromWatch())==null?void 0:(c=X.getPlayer())==null?void 0:c.getCurrentTime())||0;C>=1&&(D.time_continue=Math.floor(C))}_.nC()||_.FU()!=="USER_INTERFACE_THEME_DARK"||(D.theme="dark");_.nH(_.gT(window.location.href,
D))}_.b("web_appshell_refresh_trigger")&&_.co.caches&&this.refreshAppShellResponse();X=_.wl(window.location.href);_.jv(_.iX().resolve(_.Mx),_.MF(X,"theme"))}};
_.S.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.S.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.S.onPlayerFullscreen=function(D){_.qF();this.playerFullscreen=D};
_.S.setRestrictedMode=function(D){var C=_.PE();_.$C(0,58,D);C.save();_.iX().resolve(_.HV).reload()};
_.S.onPageChanged=function(D){D.detail.newPageType==="ytd-watch-flexy"||D.detail.newPageType==="ytd-watch-fixie"||D.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.mw("WEB_PAGE_TYPE_WATCH")):D.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.mw("WEB_PAGE_TYPE_SHORTS")):D.detail.newPageType==="ytd-browse"&&D.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.mw("WEB_PAGE_TYPE_MINI_APP")):_.b("web_frosted_glass")&&D.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.mw("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.mw("WEB_PAGE_TYPE_UNKNOWN"));D.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.S.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.S.onGuideToggleTap=function(){_.lE(this.hostElement,"yt-guide-toggle")};
_.S.onGuideToggleHover=function(){_.lE(this.hostElement,"yt-guide-hover")};
_.S.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.S.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.S.setMastheadTheme=function(){var D=_.Us(this.hostElement).querySelector("#masthead");D&&(D.dark=D.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),D.isDarkThemeForced=!1)};
_.S.onRequestPanelModeChange=function(D,C){this.hideHeaderShadow=C.mode!=="seamed"};
_.S.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.S.onDrawerIronSelect=function(D){_.qz(D).id==="guide"&&this.processDrawerIronSelect()};
_.S.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var D="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(D="opened"));_.lE(this.hostElement,"yt-autonav-pause-guide-"+D)};
_.S.onAddElementToApp=function(D){_.SY(this.hostElement).appendChild(D.detail)};
_.S.onThrottledScroll=function(){var D=_.iX().resolve(_.lu).getCurrentPage();D&&(this.scrollAtTop=D.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.S.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.S.setFullscreen=function(){if(_.b("external_fullscreen")||!this.isWatchPage){var D=_.b("kevlar_fullerscreen_root_only_killswitch")?!!_.qF():!!_.qF()&&_.qF()===document.documentElement;D=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(D||this.isFullWindowSession);this.fullscreen!==D&&((this.fullscreen=D)&&_.Ct(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.fe().dispatch(_.DBf(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.DS(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.S.setFullscreenLoggingForShorts=function(D){var C,X,c;return _.I(function(W){if(W.nextAddress==1)return W.yield((C=_.CT())==null?void 0:C.getPlayerPromise(),2);X=W.yieldResult;(c=X)==null||c.setAppFullscreen(D);_.t_(W)})};
_.S.updateMastheadCssHeight=function(){var D=this.mastheadHeight;this.fullscreen&&(D=0);_.Os(this.hostElement,{"--ytd-masthead-height":D+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.S.updateNetworkStatusBannerDisplayStatus=function(){var D="unset";this.fullscreen&&(D="none");_.Os(this.hostElement,{"--ytd-network-status-banner-display":D})};
_.S.updateNetworkStatusBannerCssHeight=function(){var D="unset";this.fullscreen&&(D="0px");_.Os(this.hostElement,{"--ytd-network-status-banner-max-height":D})};
_.S.updateScrollAndMasthead=function(D,C,X,c){this.iMaxTheaterMode||(c=!1);var W=_.iX().resolve(_.lu).getCurrentPage();D||C||c?(document.body.classList.add("no-scroll"),W.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Pr(this,this.onScroll)),W.setScrollTop(0),_.Os(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.CB()+"px"})):X?_.lE(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.lE(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
W.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Pr(this,this.onScroll)));this.mastheadHidden=D||C||X;this.updateMastheadCssHeight();_.b("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.S.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.S.onYtNavigateAction=function(D){D=this.get("navigateAction.endpoint",D);_.lE(this.hostElement,"yt-navigate",{endpoint:D})};
_.S.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var D=document.createElement("yt-create-family-dialog");_.SY(this.hostElement).appendChild(D);this.hasCreateFamilyDialog=!0}};
_.S.onSetPushNotificationsEnabledCommand=function(D){var C=this,X=_.r(D,s41);X&&typeof X.enabled==="boolean"&&(Notification.permission!=="granted"?R7N().then(function(){Notification.permission==="granted"?(N$X(!X.enabled).then(n_U),X.successAction&&_.cE(C.hostElement,[X.successAction])):X.failureAction&&_.cE(C.hostElement,[X.failureAction])}):(N$X(!X.enabled).then(n_U),X.successAction&&_.cE(this.hostElement,[X.successAction])))};
_.S.onYtSignalActionEnableChromeNotifications=function(){l5N(!0)};
_.S.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.r(this.topbarData.hotkeyDialog,t0G)}}})};
_.S.onYtSignalActionShowKeyboardShortcutDialog=function(){_.DS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.S.onYtEndpointChangeHandler=function(D,C){var X=_.ly(_.T0);X.pendingPrefetchJob_&&(C=!(!C||C.autonav!="1"),X.pendingPrefetchJob_.resolve(D&&_.Sgj(D)?_.UVm(D,C):""),X.pendingPrefetchJob_=null);_.DS(this.hostElement,"yt-pause-active-page-context");_.DS(this.hostElement,"ytd-log-youthere-nav");_.DS(this.hostElement,"yt-prepare-page-dispose")};
_.S.handleCommandWithCommandHandler=function(D,C){_.I3.instance.resolveCommand(D,{form:{element:C}})};
_.S.onYtTimedCommand=function(D){var C=this;D=_.r(D,i6t);var X=D.command;X&&_.$w(_.qX,function(){var c=_.r(X,_.LOC);c?(_.I3.instance.resolveCommand(X),C.maybeLogGetAnswerRequestTick(c)):_.o7(C.hostElement,[X],C.hostElement)},D.timeoutMs||0)};
_.S.maybeLogGetAnswerRequestTick=function(D){D&&D.isFirstRequest&&(_.Lt("search_overview_answer"),_.sp("so_rq",void 0,"search_overview_answer"))};
_.S.onYtSignalActionSkipNavigation=function(){var D=_.iX().resolve(_.lu).getCurrentPage();_.Ii(D)};
_.S.onYtSignalActionCopyDebugData=function(){OTk()};
_.S.handleEntityUpdateCommand=function(D){_.$P(_.r(D,_.MBd).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.S.logFlowLoggingEventCommand=function(D){if(D=_.r(D,_.Hsd))if(D.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var C=D.flowEventNamespace,X=D.flowEventType,c=D.flowType;c&&C&&X&&_.ldJ(_.aE(C,X,D.flowEventMetadata),c)}else{C=_.IE();X=D.flowEventNamespace;c=D.flowEventType;var W=D.flowType;W&&X&&c&&C.logFlowEvent(_.aE(X,c,D.flowEventMetadata),W,D.flowNonce)}};
_.S.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.S.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.S.onTouchStart=function(){var D=_.Mk();_.LN()&&_.V6(D.JSC$13469_screenManager,{visualElement:D.ve})};
_.S.handleSelectLanguageCommand=function(D){if(D=_.r(D,hmG).hl){var C=_.PE();C.set("hl",D);C.save();_.iX().resolve(_.HV).reload()}};
_.S.handleConfirmDialogEndpoint=function(D){(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D)};
_.S.handleOpenPopupNavigationEndpoints=function(D,C){(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D,C)};
_.S.handleSaveCommandToSessionStorage=function(D){if(D=_.r(D,_.e8d)){var C=D.key;C&&D.command&&window.sessionStorage.setItem(C,JSON.stringify(D.command))}};
_.S.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(D){D&&D.active&&D.active.postMessage({type:"refresh_shell"})}).catch(function(D){D.name!=="SecurityError"&&_.MN(D)})};
_.S.onDeviceThemeChanged=function(){var D=_.wL();_.$C(_.PE(),185,D);_.PE().save()};
_.S.handleYtRegisterPromoCommand=function(D){if(_.r(D,Lmo)){var C=_.iX().resolve(_.lu).getCurrentPage()||this.hostElement;get().registerPromoCommand(_.r(D,Lmo),C)}};
_.S.onYtNavigateHomeAction=function(){if(!_.b("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D,C,X,c,W=(c=(D=this.topbarData)==null?void 0:(C=D.logo)==null?void 0:(X=C.topbarLogoRenderer)==null?void 0:X.endpoint)!=null?c:_.fU;this.ytComponentBehavior.resolveCommand(W)}};
_.S.onYtLocationCollectionCommand=function(D){qC3(_.r(D,Z6U))};
_.S.onYtGetLocationCommand=function(D){zYP(_.r(D,FmG),this)};
_.S.updateRenderGuideFromBinding=function(D){this.renderGuide=D.detail.value};
_.S.updateGuidePersistentAndVisibleFromBinding=function(D){this.guidePersistentAndVisible=D.detail.value};
_.S.updateMiniGuideVisibleFromBinding=function(D){this.miniGuideVisible=D.detail.value};
_.S.onThemeSelected=function(D,C){var X=_.PE(),c=D||C?D:_.wL(),W=(c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.gAR(_.mC(window.location.href));_.$C(0,165,D);_.$C(0,174,C);X.save();W&&_.DS(this.hostElement,"yt-dark-mode-toggled-action",[c]);_.DS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.S.getCurrentTheme=function(){return _.Zg()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.FU()};
_.S.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.S.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.S.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.S.handleShowConsentPrimitive=function(D){var C=this,X,c;return _.I(function(W){if(W.nextAddress==1){try{X=(c=_.CT())==null?void 0:c.getPlayerPromise()}catch(p){}return W.yield($qN(D,X),2)}_.DS(C.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.t_(W)})};
_.S.handleSelectActiveIdentityEndpointInternal=function(D){_.Nz();D=_.r(D,_.Hzc);if(D!=null&&D.supportedTokens){D=_.U(D.supportedTokens);for(var C=D.next();!C.done;C=D.next())C=C.value,C.accountSigninToken&&_.nH(C.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.S.handleUpdatePermissionRoleCommand=function(D){if(D=_.r(D,_.H45)){var C;this.hasDelegation=!((C=_.r(D.renderer,_.TpN))==null||!C.status)}};
_.S.registerWithViewTransitionManager=function(){var D=_.iX().resolve(_.vK(_.c3));if(D){var C,X=(C=this.guide)==null?void 0:C.querySelector("#scrim"),c;C=(c=this.guide)==null?void 0:c.querySelector("#contentContainer");X&&C&&D.isAnyTransitionEnabled&&(c={},D.viewTransitionCoordinator.registerElement(X,(c.slide="app-drawer-scrim-page-transition",c["lockup-to-watch"]="app-drawer-scrim-page-transition",c["learning-journey"]="app-drawer-scrim-page-transition",c)),X={},D.viewTransitionCoordinator.registerElement(C,
(X.slide="app-drawer-container-page-transition",X["lockup-to-watch"]="app-drawer-container-page-transition",X["learning-journey"]="app-drawer-container-page-transition",X)))}};
_.$a.Object.defineProperties(sE.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.b("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.$a.Object.defineProperties(sE,{template:{configurable:!0,enumerable:!0,get:function(){if(eRp===void 0){var D=document.createElement("template");_.x(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
D.content.insertBefore(_.M().content.cloneNode(!0),D.content.firstChild);eRp=D}D=eRp;return D}}});
sE.prototype.onOpenHotkeyDialog=sE.prototype.onOpenHotkeyDialog;sE.prototype.setFullscreen=sE.prototype.setFullscreen;sE.prototype.onAddElementToApp=sE.prototype.onAddElementToApp;sE.prototype.onDrawerIronSelect=sE.prototype.onDrawerIronSelect;sE.prototype.onGuideOpenButtonHover=sE.prototype.onGuideOpenButtonHover;sE.prototype.onRequestPanelModeChange=sE.prototype.onRequestPanelModeChange;sE.prototype.onPageDataUpdated=sE.prototype.onPageDataUpdated;sE.prototype.onPageChanged=sE.prototype.onPageChanged;
sE.prototype.onSetTheaterModeEnabled=sE.prototype.onSetTheaterModeEnabled;sE.prototype.updateMastheadData=sE.prototype.updateMastheadData;sE.prototype.onYtPageManagerAttached=sE.prototype.onYtPageManagerAttached;sE.prototype.observePersistentPanelVisibility=sE.prototype.observePersistentPanelVisibility;sE.prototype.observeGuideVisibility=sE.prototype.observeGuideVisibility;sE.prototype.guideIsVisibleButNotPersistentSelectorChanged=sE.prototype.guideIsVisibleButNotPersistentSelectorChanged;
sE.prototype.isInlinePreviewEnabledChanged=sE.prototype.isInlinePreviewEnabledChanged;sE.prototype.isWatchPageChanged=sE.prototype.isWatchPageChanged;sE.prototype.dispatchFrostedGlassMode=sE.prototype.dispatchFrostedGlassMode;_.V([_.m(_.OA),_.z("design:type",Object)],sE.prototype,"ytdReduxBehavior",void 0);_.V([_.m(_.XZ.YtEventForwardingBehavior),_.z("design:type",Object)],sE.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.m(_.Tl.YtOpenPopupBehavior),_.z("design:type",Object)],sE.prototype,"ytOpenPopupBehavior",void 0);_.V([_.m(_.Jy.YtActionHandlerBehavior),_.z("design:type",Object)],sE.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.m({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Wf.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.b("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(D){this.actionRouter_.handleAction(D.detail)}}),
_.z("design:type",Object)],sE.prototype,"ytActionRouterBehavior",void 0);_.V([_.m(veY.YtdAppBehavior),_.z("design:type",Object)],sE.prototype,"ytdAppBehavior",void 0);_.V([_.m(_.Hm.YtEndpointBehavior),_.z("design:type",Object)],sE.prototype,"ytEndpointBehavior",void 0);_.V([_.m(yQG.YtEndpointHandlerWithYpcBehavior),_.z("design:type",Object)],sE.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.V([_.m(EWp.YtLogYpcFlowCommandsBehavior),_.z("design:type",Object)],sE.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.V([_.m(_.f.YtRendererBehavior),_.z("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.V([_.m(_.O7.YtComponentBehavior),_.z("design:type",Object)],sE.prototype,"ytComponentBehavior",void 0);_.V([_.n({selector:_.dzP}),_.z("design:type",Object)],sE.prototype,"tabGesturesIsActive",void 0);_.V([_.n(),_.z("design:type",Boolean)],sE.prototype,"renderGuide",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"guidePersistentAndVisible",void 0);_.V([_.n({selector:_.fgp}),_.z("design:type",Boolean)],sE.prototype,"guideIsVisibleButNotPersistent",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"standalone",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"miniGuideVisible",void 0);
_.V([_.n(),_.z("design:type",Object)],sE.prototype,"persistentPanelEnabled",void 0);_.V([_.n({selector:DvP,reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"persistentPanelVisible",void 0);_.V([_.n({selector:_.nZd}),_.z("design:type",Number)],sE.prototype,"miniplayerPlaybackState",void 0);_.V([_.n({selector:_.E1,reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"miniplayerIsActive",void 0);
_.V([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.z("design:type",Boolean)],sE.prototype,"isInlinePreviewEnabled",void 0);_.V([_.n(),_.z("design:type",Boolean)],sE.prototype,"isInlinePreviewDisabled",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.dq("START_IN_FULL_WINDOW_MODE")}}),
_.z("design:type",Boolean)],sE.prototype,"mastheadHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"playerFullscreen",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"fullscreen",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"hideHeaderShadow",void 0);
_.V([_.n({value:{GUIDE_ALT_LABEL:_.I7("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.z("design:type",Object)],sE.prototype,"menuStrings",void 0);_.V([_.n({computed:"computeTopbarData(data)"}),_.z("design:type",Object)],sE.prototype,"topbarData",void 0);_.V([_.n({selector:_.tOo,reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"isWatchPage",void 0);_.V([_.n({selector:_.NpF,reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"isShortsPage",void 0);
_.V([_.n({selector:function(D){return _.tX(D)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.z("design:type",Boolean)],sE.prototype,"isMiniAppPage",void 0);_.V([_.n({selector:function(D){return _.tX(D)==="WEB_PAGE_TYPE_BROWSE"}}),
_.z("design:type",Boolean)],sE.prototype,"isBrowsePage",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Boolean)],sE.prototype,"scrolling",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sE.prototype,"hasDelegation",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],sE.prototype,"guideScrolledByTouch",void 0);_.V([_.n(),_.z("design:type",Object)],sE.prototype,"isFrostedGlassInitialized",void 0);
_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sE.prototype,"frostedGlassExp",void 0);_.V([_.n({selector:function(D){return D.ui.chipBarIsSticky}}),
_.z("design:type",Boolean)],sE.prototype,"chipBarIsSticky",void 0);_.V([_.n({computed:"computeIsHomePage(isBrowsePage, data)"}),_.z("design:type",Boolean)],sE.prototype,"isHomePage",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sE.prototype,"hasPendingWatchNavigation",void 0);_.V([_.n({reflectToAttribute:!0}),_.z("design:type",Object)],sE.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.V([_.n(),_.z("design:type",Object)],sE.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.V([_.AQ("guide"),_.z("design:type",Object)],sE.prototype,"guide",void 0);_.V([_.AQ("guide-service"),_.z("design:type",Wip)],sE.prototype,"guideService",void 0);_.V([_.AQ("guide-inner-content"),_.z("design:type",HTMLDivElement)],sE.prototype,"guideInnerContent",void 0);_.V([_.kn("#persistent-panel-container"),_.z("design:type",HTMLElement)],sE.prototype,"persistentPanelContainer",void 0);
_.V([_.n({selector:_.wm5}),_.z("design:type",String)],sE.prototype,"frostedGlassMode",void 0);_.V([_.vr("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"dispatchFrostedGlassMode",null);_.V([_.n({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.z("design:type",Object)],sE.prototype,"isFrostedGlassDisabled",void 0);
_.V([_.vr("isWatchPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"isWatchPageChanged",null);_.V([_.e("isHomePage","chipBarIsSticky"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],sE.prototype,"applyFrostedGlassToChipBar",null);_.V([_.n(),_.z("design:type",Object)],sE.prototype,"isChannelOrPlaylistPage",void 0);
_.V([_.bH("isInlinePreviewEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"isInlinePreviewEnabledChanged",null);_.V([_.vr("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.V([_.vr("guidePersistentAndVisible","miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"observeGuideVisibility",null);_.V([_.vr("persistentPanelVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"observePersistentPanelVisibility",null);
_.V([_.$n("attached"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],sE.prototype,"onYtPageManagerAttached",null);_.V([_.vr("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],sE.prototype,"updateMastheadData",null);_.V([_.$n("yt-set-theater-mode-enabled"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],sE.prototype,"onSetTheaterModeEnabled",null);
_.V([_.$n("yt-page-type-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],sE.prototype,"onPageChanged",null);_.V([_.$n("yt-page-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"onPageDataUpdated",null);_.V([_.$n("yt-request-panel-mode-change"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],sE.prototype,"onRequestPanelModeChange",null);
_.V([_.$n("yt-guide-hover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"onGuideOpenButtonHover",null);_.V([_.$n("app-drawer-transitioned"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],sE.prototype,"onDrawerIronSelect",null);_.V([_.$n("yt-add-element-to-app"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],sE.prototype,"onAddElementToApp",null);
_.V([_.$n("yt-set-fullerscreen-styles"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"setFullscreen",null);_.V([_.$n("yt-open-hotkey-dialog"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sE.prototype,"onOpenHotkeyDialog",null);_.V([_.yj({is:"ytd-app"})],sE);_.uP().processSignal("eor");
_.zy();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
